/*
    GrassID Website Redesign
    ------------------------
    - Visual Hierarchy: Clear flow from headline to CTA.
    - Color Palette: Fresh, vibrant greens matching the logo.
      - Primary: #66BB6A (Medium Vibrant Green)
      - Accent: #8BC34A (Light Vibrant Green)  
      - Secondary: #4CAF50 (Darker Green)
      - Text: #2E4034 (Dark Green-Gray)
      - Headings: #000000 (Black)
      - Background: #FAFAFA (Clean White)
    - Typography: Modern, clean, and readable fonts from Google Fonts.
      - Headings: 'Poppins', sans-serif
      - Body: 'Lora', serif
    - Spacing: Generous whitespace for a clean, uncluttered layout.
    - Interactive Elements: Clear, inviting buttons and links.
*/

/* 1. Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Lora:wght@400;700&display=swap');

/* 2. Root Variables */
:root {
    /* Logo-matched colors */
    --primary-color: #66BB6A;        /* Medium vibrant green from logo */
    --accent-color: #8BC34A;          /* Light vibrant green from logo */
    --secondary-color: #4CAF50;       /* Darker green from logo grass blades */
    --pale-green: #E8F5E9;            /* Very pale green background from logo */
    --light-green-bg: #C5E99B;        /* Light green circle from logo */
    
    /* Earthy colors */
    --soil-brown: #2E1A1A;            /* Very dark brown like rich soil */
    --light-brown: #A1887F;           /* Light brown for footer headings */
    
    /* Text and neutrals */
    --text-color: #2E4034;            /* Dark green-gray for body text */
    --heading-color: #000000;         /* Black for headings */
    --background-color: #FAFAFA;      /* Clean white background */
    --white-color: #FFFFFF;
    
    /* UI elements */
    --border-radius: 8px;
    --shadow: 0 4px 12px rgba(139, 195, 74, 0.15);  /* Green-tinted shadow */
    --shadow-hover: 0 6px 16px rgba(139, 195, 74, 0.25);
    --transition-speed: 0.3s ease;
}

/* 3. General Body and Reset Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lora', serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Main gradient wrapper - continuous flow from white to pale green */
.main-gradient-wrapper {
    background: linear-gradient(180deg, 
        #FFFFFF 0%,           /* Pure white at top */
        #FAFAFA 15%,          /* Very light gray-white */
        #F5FDF5 30%,          /* Hint of green */
        #F1F8E9 50%,          /* Light pale green */
        #E8F5E9 70%,          /* Pale green */
        #E3F2E3 85%,          /* Slightly deeper pale green */
        #DFF0DF 100%          /* Deepest pale green at bottom */
    );
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 4. Typography */
h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--heading-color);  /* Black for all headings */
}

h1 {
    font-size: 3.5rem; /* 56px */
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem; /* 40px */
    text-align: center;
    margin-bottom: 3rem;
}

h3 {
    font-size: 1.5rem; /* 24px */
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    text-decoration: underline;
}

/* 5. Header and Navigation */
.header {
    background-color: rgba(255, 255, 255, 0.95);  /* Semi-transparent white */
    backdrop-filter: blur(10px);  /* Blur effect for modern browsers */
    box-shadow: 0 2px 8px rgba(139, 195, 74, 0.08);  /* Very subtle green shadow */
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--heading-color);  /* Black for navigation links */
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
}

.nav-menu a:hover::after {
    width: 100%;
}

.cta-button-nav {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    background-color: #4CAF50;  /* Darker green to match popup */
    color: var(--white-color);  /* White text for better contrast */
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: all var(--transition-speed);
    box-shadow: var(--shadow);
}

.cta-button-nav:hover {
    background-color: #388E3C; /* Even darker green on hover */
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
}



/* 7. Sections Styling */
section {
    padding: 5rem 0;
    background: transparent;  /* All sections transparent to show main gradient */
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white-color);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);  /* Elegant subtle shadow */
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);  /* Deeper shadow on hover */
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);  /* Medium green for icons */
}

/* How It Works Section - Premium Design */
.how-it-works-preview {
    position: relative;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4.5rem;  /* Increased spacing from title */
}

.step {
    background: var(--white-color);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white-color);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.step h3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--heading-color);
}

.step p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--pale-green);  /* Pale green border from logo */
}

.stars {
    color: #FFD700;  /* Golden color for all stars */
}

.testimonial-card .stars {
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-style: italic;
}

.testimonial-author {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #666666;  /* Light dark color for author names */
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.testimonial-author .location {
    color: var(--accent-color);  /* Light green for location */
    font-weight: 400;
    font-size: 0.95rem;
}

/* FAQ Section - Premium Accordion Style */
/* Background is defined in section styling above */

.faq-schema {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    padding: 0;
    box-shadow: 0 2px 10px rgba(139, 195, 74, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(139, 195, 74, 0.1);
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(139, 195, 74, 0.15);
    transform: translateY(-2px);
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--heading-color);
    padding: 1.5rem 2rem;
    margin: 0;
    cursor: pointer;
    position: relative;
    background: linear-gradient(90deg, var(--white-color) 0%, rgba(232, 245, 233, 0.3) 100%);
    transition: background 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item h3::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 300;
    transition: transform 0.3s ease;
    line-height: 1;
}

.faq-item.active h3::after {
    transform: rotate(45deg);
}

.faq-item h3:hover {
    background: linear-gradient(90deg, var(--white-color) 0%, rgba(232, 245, 233, 0.5) 100%);
}

.faq-item [itemprop="acceptedAnswer"] {
    padding: 0 2rem 1.5rem;
    display: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active [itemprop="acceptedAnswer"] {
    display: block;
    opacity: 1;
    max-height: 500px;
    animation: fadeIn 0.3s ease;
}

.faq-item [itemprop="acceptedAnswer"] p {
    color: var(--text-color);
    line-height: 1.8;
    margin: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CTA Section */






/* 8. Footer */
.footer {
    background-color: var(--soil-brown);  /* Dark brown like soil */
    color: var(--white-color);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--light-brown);  /* Light brown for footer headings */
    margin-bottom: 1.5rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--white-color);
    opacity: 0.9;
    transition: opacity var(--transition-speed);
}

.footer-column a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(161, 136, 127, 0.3);  /* Light brown border */
    opacity: 0.8;
}

/* 9. Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    

    h2 {
        font-size: 2rem;
    }

    .nav-menu {
        display: none; /* Simple solution for this task, a real site would need a hamburger menu */
    }

    
}

/* 6. Hero Section - Redesigned for V2 */
.hero {
    background: transparent;  /* Transparent to show main gradient */
    padding: 8rem 0;
    position: relative;
    color: var(--text-color);  /* Dark text for light background */
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-text {
    text-align: left;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--heading-color);  /* Black for headings */
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-color);  /* Dark green-gray for body text */
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hero-cta .cta-button-primary img {
    height: 60px;
    width: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.hero-cta .cta-button-primary:hover img {
    transform: scale(1.05);
}

.hero-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.hero-rating .stars {
    font-size: 1.5rem;
    color: #FFD700;
}

.hero-rating span {
    font-size: 0.9rem;
    color: var(--text-color);  /* Dark text for light background */
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-code-container {
    background: var(--white-color);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.05);  /* Premium layered shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qr-code-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.12), 0 8px 12px rgba(0, 0, 0, 0.06);  /* Deeper shadow on hover */
}

.qr-code-container .qr-brand-name {
    font-family: 'Poppins', sans-serif;
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--primary-color);  /* Medium vibrant green */
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.qr-code-container .qr-code {
    width: 180px;
    height: 180px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.qr-code-container .qr-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Mobile only line break - hidden on desktop */
br.mobile-only {
    display: none;
}

/* Responsive adjustments for the new hero */
@media (max-width: 768px) {
    /* Show line break on mobile */
    br.mobile-only {
        display: block;
    }
    /* Hero section adjustments */
    .hero {
        padding: 2rem 0 3rem;
        min-height: auto;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .hero-text {
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .hero-cta {
        flex-direction: column;
        justify-content: center;
        gap: 1rem;
    }

    .hero-cta .cta-button-primary img {
        height: 60px;
        max-width: 200px;
    }

    /* Responsive rating text */
    .hero-rating {
        align-items: center;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-rating .stars {
        font-size: 1.2rem;
    }
    
    .hero-rating .rating-text {
        font-size: 0.85rem;
    }
    
    .hero-rating .review-separator {
        display: inline;
    }
    
    .hero-rating .review-count {
        display: inline;
        margin-top: 0;
    }

    /* QR code container adjustments */
    .qr-code-container {
        padding: 1.5rem;
        margin-top: 1rem;
    }

    .qr-code-container .qr-brand-name {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .qr-code-container .qr-brand-name img {
        width: 30px;
        height: 30px;
    }

    .qr-code-container .qr-code {
        width: 150px;
        height: 150px;
    }

    .qr-code-container .qr-text {
        font-size: 0.9rem;
    }
}

/* Extra small devices (phones in portrait) */
@media (max-width: 390px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        padding: 0;
    }
    
    .hero-cta .cta-button-primary img {
        height: 55px;
        max-width: 180px;
    }
}

/* Navigation responsive adjustments */
@media (max-width: 768px) {
    .header {
        padding: 0.75rem 0;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    .nav-menu {
        display: none; /* Hide menu on mobile - you may want to add a hamburger menu later */
    }
    
    .cta-button-nav {
        display: none; /* Hide Download App button on mobile to make room for hamburger menu */
    }
    
    /* Features section responsive */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.25rem;
    }
    
    .feature-card p {
        font-size: 0.95rem;
    }
    
    /* Steps section responsive */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .step {
        padding: 1.5rem;
    }
    
    /* Testimonials responsive */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Section titles */
    section h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    /* Container padding */
    .container {
        padding: 0 1rem;
    }
}