/* ========================================= */
/* --- 01. CSS VARIABLES & BASE RESETS --- */
/* ========================================= */
:root {
    --color-white: #FFFFFF;
    --color-cream: #F7EFD8;
    --color-orange: #FAA722;
    --color-brown: #694637;
    --color-green: #3D8637;
    --color-blue: #384AD3;
    --color-light-grey: #E8EAED;
    --color-grey: #C7D3D5;
    --color-red: #B21E2E;
    --color-dark: #302C29;
    --color-tan: #C2B2A3;
    --color-navy: #131946;
    --color-black: #000000;

    /* Typography - Avenir prioritized based on design */
    --font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, 'Futura', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--color-dark);
    background-color: var(--color-white);
    overflow-x: hidden;
}

.text-green { color: var(--color-green); }
.text-brown { color: var(--color-brown); }

/* ========================================= */
/* --- 02. GLOBAL BUTTON STYLES --- */
/* ========================================= */
.btn {
    font-family: var(--font-family);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-header {
    background-color: var(--color-brown);
    color: var(--color-white);
    font-size: 16px; 
    font-weight: 600;
    padding: 10px 24px;
    border: 2px solid var(--color-brown); 
}

.btn-header:hover {
    background-color: var(--color-white);
    color: var(--color-brown);
}

.btn-hero {
    background-color: var(--color-green);
    color: var(--color-white);
    font-size: 18px;
    padding: 14px 35px;
    margin-top: 15px;
    border: 2px solid var(--color-green); /* Added for smooth hover */
}

/* Updated to match the transparent hover style */
.btn-hero:hover {
    background-color: var(--color-white);
    color: var(--color-green);
}

/* ========================================= */
/* --- 03. HEADER & NAVBAR --- */
/* ========================================= */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.08); 
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 6%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    background-color: var(--color-white);
    order: 1; 
}

.logo-container img {
    height: 45px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 60px; /* Spread out (Faila hua) */
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-brown);
    font-size: 18px; 
    font-weight: 600; /* Bolder font */
    position: relative; /* Required for custom underline */
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-green);
}

/* Custom Active Line (Wider than text) */
.nav-links a.active {
    color: var(--color-brown);
    border-bottom: none; /* Removes old basic border */
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px; 
    left: -15%;   /* Starts line before text */
    width: 130%;  /* Makes line longer than text */
    height: 2px;
    background-color: var(--color-brown);
}

/* ========================================= */
/* --- 04. PROMO BAR --- */
/* ========================================= */
.promo-bar {
    background-color: var(--color-brown);
    color: var(--color-white);
    text-align: center;
    padding: 6px 0; /* Ultra-slim padding */
    font-size: 15px; 
    font-weight: 400;
    letter-spacing: 0.5px;
    order: 2; 
}

/* ========================================= */
/* --- 05. HOME: HERO SECTION --- */
/* ========================================= */
.hero-section {
    display: flex;
    align-items: center; /* This is the magic rule that vertically centers BOTH sides */
    justify-content: space-between;
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 4%; /* Equal, reduced padding on top and bottom */
}

.hero-image-container {
    width: 55%; 
    display: flex;
    justify-content: flex-end; /* Keeps it close to the text */
    align-items: center; /* Centers the image vertically in its own box */
    padding: 0;
    margin: 0;
    /* REMOVED the align-self: flex-end that was causing it to sit down! */
}

.hero-image {
    width: 100%; 
    max-width: 750px;
    min-width: 500px; 
    height: auto;
    display: block;
    object-fit: contain;
}

.hero-content {
    width: 45%; 
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0; /* REMOVED the fake bottom padding we used earlier */
}

.hero-content h1 {
    font-size: 56px; 
    line-height: 1.4; 
    font-weight: 600; 
    margin-bottom: 25px;
}

/* Fluid Typography */
@media screen and (min-width: 320px) and (max-width: 1040px) {
    .hero-content h1 {
        font-size: clamp(32px, 5vw, 52px); 
    }
}

/* Mobile Layout Overrides for Hero */
@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 4%; /* Keeps it balanced on mobile */
    }
    .hero-image-container {
        width: 100%;
        justify-content: center;
    }
    .hero-image {
        min-width: auto; /* Removes the minimum width restriction on phones */
    }
    .hero-content {
        width: 100%;
        margin-top: 30px;
    }
}

/* ========================================= */
/* --- 06. HOME: FRESHNESS BANNER --- */
/* ========================================= */
.freshness-banner {
    background-color: var(--color-green);
    color: var(--color-white);
    text-align: center;
    padding: 40px 6%; /* Significantly reduced top and bottom padding */
}

.freshness-banner h2 {
    font-size: 40px; 
    font-weight: 600;
    margin-bottom: 15px; /* Tighter gap below the heading */
}

.freshness-banner p {
    font-family: 'Futura', sans-serif !important; /* Forces Futura just for this text */
    font-size: 20px; /* Tweaked slightly to fit the geometric font style */
    line-height: 1.3; /* Tighter line height to match the reference */
    font-weight: 300; /* Much lighter font weight */
    max-width: 1100px; /* Slightly constrained to match text wrapping */
    margin: 0 auto;
}

/* ========================================= */
/* --- 07. HOME: WHY US SECTION --- */
/* ========================================= */
.why-us-section {
    padding: 80px 6%;
    background-color: var(--color-white);
    text-align: center;
}

.why-us-section h2 {
    font-size: 40px; 
    color: var(--color-green);
    margin-bottom: 60px;
    font-weight: 600;
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 40px; /* Increased gap to match reference */
    max-width: 1300px; /* Widened container to allow cards to grow */
    margin: 0 auto;
}

.feature-card {
    flex: 1;
    background-color: var(--color-white);
    border-radius: 12px; /* Slightly rounder corners */
    padding: 60px 40px; /* Much larger padding to match the tall cards in reference */
    box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.05); /* Softer, slightly larger shadow */
    border: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.feature-card img {
    width: 100%;
    max-width: 320px; /* Drastically increased from 200px so illustrations fill the card */
    height: 240px; /* Increased height to stop them from squishing */
    object-fit: contain;
    margin-bottom: 40px; /* More space between the large image and the heading */
}

.feature-card h3 {
    color: var(--color-brown);
    font-size: 26px; /* Slightly larger heading */
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: var(--color-brown);
    font-size: 16px; 
    line-height: 1.6;
    font-weight: 400;
    opacity: 0.9; /* Softens the paragraph text slightly like the reference */
}

/* ========================================= */
/* --- 08. HOME: WHAT'S IN MY BOX --- */
/* ========================================= */
.whats-in-box-section {
    padding: 60px 6% 80px 6%;
    background-color: var(--color-white);
    text-align: center;
}

.whats-in-box-section h2 {
    font-size: 40px; 
    color: var(--color-green);
    margin-bottom: 40px;
    font-weight: 600;
}

.box-image-container {
    max-width: 900px;
    margin: 0 auto;
}

.box-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.box-caption {
    color: var(--color-brown);
    font-size: 14px; 
    margin-top: 30px;
    font-weight: 400;
}

/* ========================================= */
/* --- 09. HOME: HOW DOES IT WORK --- */
/* ========================================= */
.how-it-works-section {
    padding: 40px 6% 80px 6%;
    background-color: var(--color-white);
    text-align: center;
}

.how-it-works-section h2 {
    font-size: 40px; 
    color: var(--color-green);
    margin-bottom: 40px;
    font-weight: 600;
}

.video-container {
    max-width: 1000px; 
    margin: 0 auto;
    background-color: var(--color-black); 
    border-radius: 8px;
    overflow: hidden; 
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block; 
}

/* ========================================= */
/* --- 10. HOME: INTRO OFFER BANNER --- */
/* ========================================= */
.intro-offer-banner {
    position: relative;
    width: 100%;
    min-height: 250px;
    background-image: url('assets/Introductory Offer Introductory Offer (1).gif');
    background-repeat: repeat;
    background-position: center top;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 6%;
    overflow: hidden; 
}

.banner-border {
    position: absolute;
    left: 0;
    width: 100%;
    height: 60px;
    background-repeat: repeat-x;
    background-size: contain;
    z-index: 1; 
}

.banner-border.border-top {
    top: 0;
    background-image: url('assets/Simple-Roots-banner-top.png');
    background-position: left top;
}

.banner-border.border-bottom {
    bottom: 0;
    background-image: url('assets/Simple-Roots-banner-bottom.png');
    background-position: left bottom;
}

.banner-content {
    position: relative;
    z-index: 2; 
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
}

.offer-badge {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 250px; 
    height: auto;
}

.offer-text {
    color: var(--color-white);
    font-size: 40px; 
    font-weight: 600;
    text-align: center;
    padding-left: 200px; 
    max-width: 850px;
    line-height: 1.3;
}

/* ========================================= */
/* --- 11. HOME: ORDER FORM SECTION --- */
/* ========================================= */
.order-form-section {
    background-color: var(--color-green);
    color: var(--color-white);
    padding: 80px 6%;
}

.form-container {
    max-width: 850px;
    margin: 0 auto;
}

.form-step {
    margin-bottom: 50px;
    text-align: center;
}

.form-step h2 {
    font-size: 28px; 
    font-weight: 600;
    margin-bottom: 25px;
}

.form-step .sub-text {
    font-size: 14px;
    margin-top: -15px;
    margin-bottom: 25px;
    font-weight: 400;
}

.form-row {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 20px;
    text-align: left;
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 400;
}

.input-group input,
.input-group select {
    padding: 14px 15px;
    border-radius: 4px;
    border: none;
    font-size: 16px;
    font-family: var(--font-family);
    color: var(--color-dark);
    width: 100%;
    background-color: var(--color-white);
}

.input-group input::placeholder {
    color: #A0A0A0;
}

/* Typeahead Dropdown Styles */
.typeahead-wrapper { position: relative; width: 100%; }
.typeahead-list {
    position: absolute; top: 100%; left: 0; right: 0;
    background-color: var(--color-white); color: var(--color-dark);
    list-style: none; margin: 5px 0 0 0; padding: 0;
    border-radius: 4px; box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    max-height: 200px; overflow-y: auto; z-index: 100;
}
.typeahead-list.hidden { display: none; }
.typeahead-list li {
    padding: 12px 15px; cursor: pointer;
    border-bottom: 1px solid var(--color-light-grey); font-size: 15px;
}
.typeahead-list li:last-child { border-bottom: none; }
.typeahead-list li:hover { background-color: var(--color-cream); color: var(--color-green); }

/* Offer Code Styles */
.offer-wrapper { display: flex; gap: 10px; }
.offer-wrapper input { flex: 1; }
.btn-apply {
    background-color: var(--color-brown); color: var(--color-white);
    padding: 0 20px; border-radius: 4px;
}
.offer-message { font-size: 13px; margin-top: 8px; display: block; min-height: 18px; }

.day-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.day-btn {
    background: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-white);
    padding: 12px 30px;
    border-radius: 4px; 
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.day-btn.active, .day-btn:hover {
    background: var(--color-white);
    color: var(--color-green);
}

.consent-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    margin-bottom: 40px;
    font-size: 14px;
    line-height: 1.5;
}

.consent-group input[type="checkbox"] {
    margin-top: 3px;
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--color-green);
}

.submit-container {
    text-align: center;
}

.btn-try-now {
    background: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-white);
    padding: 12px 45px;
    font-size: 18px;
    border-radius: 4px;
}

.btn-try-now:hover {
    background: var(--color-white);
    color: var(--color-green);
}

/* ========================================= */
/* --- 12. HOME: TESTIMONIALS SECTION --- */
/* ========================================= */
.testimonials-section {
    padding: 80px 6%;
    background-color: var(--color-white);
}

.testimonials-section h2 {
    text-align: center;
    font-size: 40px; 
    color: var(--color-green);
    margin-bottom: 50px;
    font-weight: 600;
}

.testimonials-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    max-width: 1000px; /* Made it more compact like the reference */
    margin: 0 auto;
    align-items: stretch;
}

.testimonial-card {
    flex: 1;
    background-color: #F4F5F6; /* The soft grey background from your reference */
    border-radius: 20px; /* Smoother, larger border radius */
    padding: 35px 35px 30px 35px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.quote-icon {
    font-family: Georgia, serif;
    font-size: 65px;
    color: #9EB09E; /* Soft sage green quote mark */
    line-height: 0.6;
    margin-bottom: 15px;
}

.stars {
    color: #F5A623; /* Golden star color */
    font-size: 18px;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.testimonial-card p {
    color: #4A4A4A; /* Darker, highly readable grey text */
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 25px;
    flex-grow: 1; /* Pushes the author info to the bottom evenly */
}

/* The faint line separating text and author */
.testimonial-divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

/* Author Block Layout */
.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-white);
    font-size: 18px;
    font-weight: 500;
}

/* Avatar Colors */
.bg-dark-green { background-color: #2D5A27; }
.bg-brown { background-color: #B58461; }
.bg-light-green { background-color: #6E9B41; }

.author-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.author-details h3 {
    color: var(--color-dark);
    font-size: 16px; 
    margin: 0;
    font-weight: 600;
}

.review-source {
    color: #7A7A7A;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* The small blue Google 'G' */
.google-g {
    color: #4285F4;
    font-weight: bold;
    font-size: 15px;
    font-family: sans-serif;
}

/* Mobile Overrides */
@media (max-width: 900px) {
    .testimonials-grid {
        flex-direction: column;
        align-items: center;
    }
    .testimonial-card {
        width: 100%;
        max-width: 450px;
    }
}

/* ========================================= */
/* --- 13. GLOBAL FOOTER --- */
/* ========================================= */
.main-footer {
    background-color: var(--color-brown);
    color: var(--color-white);
    padding: 70px 6%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 80px; 
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 40px;
    min-width: 200px;
}

.footer-logo {
    height: 65px;
    width: auto;
    object-fit: contain;
    align-self: flex-start;
}

.footer-brand-name {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-socials { display: flex; gap: 20px; margin-top: -15px; }
.footer-socials a { color: var(--color-white); transition: opacity 0.3s; }
.footer-socials a:hover { opacity: 0.7; }

.footer-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 35px;
    padding-top: 15px; 
}

.footer-nav-top {
    display: flex;
    gap: 40px;
}

.footer-nav-top a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: opacity 0.3s;
}

.footer-nav-top a:hover { opacity: 0.8; }

.footer-nav-middle {
    display: flex;
    gap: 80px; 
}

.footer-nav-middle a {
    color: var(--color-white);
    text-decoration: underline;
    font-size: 14px;
    transition: opacity 0.3s;
}

.footer-nav-middle a:hover { opacity: 0.8; }

.footer-info-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 15px;
}

.footer-address, .footer-copyright {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

/* ========================================= */
/* --- 14. PAGE: CONTACT US --- */
/* ========================================= */
.contact-header {
    background-color: var(--color-green);
    color: var(--color-white);
    text-align: center;
    padding: 35px 6%; 
}

.contact-header h1 {
    font-size: 60px; 
    font-weight: 600;
    margin-bottom: 10px; 
    letter-spacing: 0.5px;
}

.contact-header p {
    font-size: 22px; 
    font-weight: 400;
}

.contact-body {
    background-color: var(--color-white);
    color: var(--color-brown);
    text-align: center;
    max-width: 1200px; 
    margin: 0 auto;
    padding: 40px 6% 60px 6%; 
}

.contact-body p {
    font-size: 20px;
    line-height: 1.35; 
    margin-bottom: 20px; 
    font-weight: 400;
}

.contact-body .contact-highlight {
    font-size: 24px;
    margin-bottom: 25px; 
}

.contact-body p:last-child {
    margin-bottom: 0;
}

/* ========================================= */
/* --- 15. PAGE: FAQ --- */
/* ========================================= */
.faq-header {
    background-color: var(--color-green);
    color: var(--color-white);
    text-align: center;
    padding: 45px 6%;
}

.faq-header h1 {
    font-size: 60px; 
    font-weight: 600;
    margin-bottom: 15px;
}

.faq-header p {
    font-size: 22px; 
    font-weight: 400;
}

.faq-body {
    background-color: var(--color-white);
    max-width: 1050px; 
    margin: 0 auto;
    padding: 80px 6% 120px 6%;
    text-align: left;
}

.faq-item {
    margin-bottom: 50px; 
}

.faq-item:last-child { margin-bottom: 0; }

.faq-question {
    font-size: 24px; 
    font-weight: 600;
    color: var(--color-green); 
    margin-bottom: 20px;
}

.faq-answer {
    font-size: 18px; 
    color: var(--color-brown); 
    line-height: 1.8; 
    font-weight: 400;
    margin-bottom: 15px;
}

.faq-answer:last-child { margin-bottom: 0; }
.faq-answer strong { font-weight: 600; }

/* ========================================= */
/* --- 16. PAGE: ABOUT US --- */
/* ========================================= */
.about-header {
    background-color: var(--color-green);
    color: var(--color-white);
    text-align: center;
    padding: 30px 6%; 
}

.about-header h1 {
    font-size: 46px; 
    font-weight: 600;
    margin-bottom: 15px;
}

.about-header p {
    font-size: 18px; 
    font-weight: 400;
    max-width: 950px;
    margin: 0 auto;
    line-height: 1.5;
}

.about-image-section {
    width: 100%;
    line-height: 0; 
    display: block;
}

.founders-image {
    width: 100%;
    height: 500px; 
    object-fit: cover; 
    object-position: center; 
    display: block;
}

.about-body {
    background-color: var(--color-white);
    color: var(--color-brown);
    max-width: 1000px; 
    margin: 0 auto;
    padding: 50px 6% 80px 6%; 
    text-align: center; 
}

.about-body p {
    font-size: 18px; 
    line-height: 1.6;
    margin-bottom: 25px;
    font-weight: 400;
}

.about-body p:last-child { margin-bottom: 0; }

/* ========================================= */
/* --- 17. UTILITY PAGES (OTP & CONFIRM) --- */
/* ========================================= */
.utility-section {
    background-color: var(--color-light-grey);
    padding: 80px 6%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.utility-card {
    background-color: var(--color-white);
    max-width: 600px;
    width: 100%;
    padding: 60px 40px;
    border-radius: 12px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background-color: var(--color-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
}

.utility-card h1 { font-size: 36px; margin-bottom: 15px; }
.utility-card p { font-size: 18px; color: var(--color-brown); margin-bottom: 25px; line-height: 1.6; }
.utility-card .utility-subtext { font-size: 16px; color: var(--color-dark); opacity: 0.8; }

.otp-form-group { display: flex; flex-direction: column; align-items: center; margin: 30px 0; }
.otp-form-group label { font-size: 14px; color: var(--color-brown); margin-bottom: 10px; font-weight: 600; }

.otp-input-field {
    font-size: 24px; letter-spacing: 5px; text-align: center;
    padding: 15px; border: 2px solid var(--color-grey); border-radius: 8px;
    width: 100%; max-width: 300px; outline: none; transition: border-color 0.3s;
    font-family: var(--font-family); color: var(--color-dark);
}
.otp-input-field:focus { border-color: var(--color-green); }

/* ========================================= */
/* --- 18. LEGAL PAGES --- */
/* ========================================= */
.legal-section { background-color: var(--color-white); padding: 80px 6%; min-height: 60vh; }
.legal-container { max-width: 900px; margin: 0 auto; color: var(--color-brown); }
.legal-container h1 { font-size: 46px; margin-bottom: 10px; }
.legal-container .last-updated { font-size: 16px; color: var(--color-tan); margin-bottom: 50px; font-style: italic; }
.legal-container h2 { font-size: 24px; color: var(--color-green); margin-top: 40px; margin-bottom: 15px; font-weight: 600; }
.legal-container p { font-size: 18px; line-height: 1.8; margin-bottom: 20px; font-weight: 400; }

/* ========================================= */
/* --- 19. GLOBAL POPUP MODAL --- */
/* ========================================= */
.popup-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: rgba(0, 0, 0, 0.6); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 1; transition: opacity 0.4s ease;
}
.popup-overlay.hidden { opacity: 0; pointer-events: none; }

.popup-content {
    background-color: var(--color-white); 
    padding: 40px 45px; 
    border-radius: 8px;
    text-align: left; /* Left aligned to match new design */
    position: relative; 
    max-width: 600px; /* Made slightly wider to accommodate the form row */
    width: 90%;
    box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.2);
}

.close-popup {
    position: absolute; top: 15px; right: 20px; background: none; border: none;
    font-size: 28px; color: var(--color-brown); cursor: pointer; font-weight: 300;
}

.popup-content h2 { 
    font-size: 28px; color: var(--color-brown); margin-bottom: 20px; font-weight: 600; 
}

.popup-content p { 
    font-size: 18px; color: var(--color-brown); margin-bottom: 10px; line-height: 1.5; 
}

/* New Popup Form Styles */
.popup-form {
    display: flex; 
    gap: 15px; 
    margin-top: 25px; 
    align-items: stretch;
}

.popup-form input {
    flex: 1; 
    padding: 12px 15px; 
    font-size: 16px; 
    font-family: var(--font-family);
    border: 2px solid var(--color-red); /* Red border from design */
    border-radius: 4px; 
    outline: none;
    color: var(--color-dark);
}

.popup-form input::placeholder { color: #C7D3D5; }

.btn-popup-submit {
    background-color: var(--color-white); 
    color: var(--color-brown);
    border: 1px solid var(--color-brown); 
    padding: 0 30px; 
    font-size: 16px;
    border-radius: 4px; 
    transition: all 0.3s ease; 
    letter-spacing: 0.5px;
}

.btn-popup-submit:hover {
    background-color: var(--color-brown); 
    color: var(--color-white);
}

@media (max-width: 600px) {
    .popup-form { flex-direction: column; }
    .btn-popup-submit { padding: 15px; }
}

/* ========================================= */
/* --- 21. POPUP SUCCESS STATE --- */
/* ========================================= */
.popup-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
}

.success-checkmark {
    margin-bottom: 25px;
}

.success-checkmark svg {
    display: block;
}

.success-checkmark circle {
    stroke-dasharray: 175;
    stroke-dashoffset: 175;
    animation: circle-animation 0.6s ease-out forwards;
}

.checkmark-path {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: checkmark-animation 0.4s ease-out 0.4s forwards;
}

@keyframes circle-animation {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes checkmark-animation {
    to {
        stroke-dashoffset: 0;
    }
}

.popup-success h2 {
    font-size: 22px;
    color: var(--color-brown);
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

/* ========================================= */
/* --- 20. MOBILE RESPONSIVENESS (GLOBAL) --- */
/* ========================================= */

/* Hamburger Menu Button */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--color-brown);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    visibility: hidden;
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Navigation Panel */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--color-white);
    z-index: 1001;
    transition: right 0.3s ease;
    display: none;
    flex-direction: column;
    visibility: hidden;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.mobile-nav.active {
    display: flex;
    right: 0;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* Ensure mobile nav content is hidden on mobile by default */
@media (max-width: 768px) {
    .mobile-nav {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    .mobile-nav.active {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--color-light-grey);
}

.mobile-nav-logo {
    height: 40px;
    object-fit: contain;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--color-brown);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.3s ease;
}

.mobile-nav-close:hover {
    color: var(--color-green);
}

.mobile-nav-links {
    list-style: none;
    padding: 40px 0;
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-nav-links li {
    border-bottom: 1px solid var(--color-light-grey);
    width: 80%;
    text-align: center;
}

.mobile-nav-links li:last-child {
    border-bottom: none;
}

.mobile-nav-links a {
    display: block;
    padding: 25px 20px;
    color: var(--color-brown);
    text-decoration: none;
    font-size: 22px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.mobile-nav-links a:hover {
    background-color: var(--color-cream);
    color: var(--color-green);
}

@media (max-width: 900px) {
    .nav-links { gap: 20px; }
    .nav-links a { font-size: 15px; }
    .navbar { padding: 15px 4%; }
    
    .hero-section { flex-direction: column; text-align: center; }
    .hero-content { padding-left: 0; margin-top: 30px; }
    
    .freshness-banner h2 { font-size: 32px; }
    .freshness-banner p { font-size: 18px; }
    .freshness-banner br { display: none; }
    
    .cards-container { flex-direction: column; align-items: center; }
    .feature-card { width: 100%; max-width: 450px; }
    
    .whats-in-box-section h2, .how-it-works-section h2 { font-size: 32px; }
    
    .intro-offer-banner { padding: 80px 20px; min-height: auto; }
    .banner-content { flex-direction: column; justify-content: center; }
    .offer-badge { position: relative; transform: none; left: auto; top: auto; width: 180px; margin-bottom: 25px; }
    .offer-text { padding-left: 0; font-size: 28px; line-height: 1.4; }
    .banner-border { height: 40px; }
    
    .form-row { flex-direction: column; gap: 15px; }
    .day-selector { flex-direction: column; align-items: stretch; }
    .day-btn { width: 100%; }
    .consent-group { flex-direction: column; align-items: center; text-align: center; }
    .form-step h2 { font-size: 24px; }
    
    .testimonials-grid { flex-direction: column; align-items: center; }
    .testimonial-card { width: 100%; max-width: 450px; }
    .testimonials-section h2 { font-size: 32px; margin-bottom: 40px; }

    .footer-container { flex-direction: column; gap: 50px; }
    .footer-left { align-items: center; text-align: center; width: 100%; gap: 20px; }
    .footer-logo { align-self: center; }
    .footer-right { padding-top: 0; gap: 30px; }
    .footer-nav-top { flex-wrap: wrap; justify-content: center; gap: 20px; }
    .footer-nav-middle { flex-direction: column; align-items: center; gap: 15px; }
    .footer-info-bottom { flex-direction: column; align-items: center; text-align: center; gap: 30px; }

    .contact-header { padding: 25px 20px; }
    .contact-header h1 { font-size: 40px; }
    .contact-body { padding: 30px 20px 50px 20px; }
    .contact-body p { font-size: 18px; line-height: 1.35; margin-bottom: 15px; }

    .faq-header { padding: 30px 20px; }
    .faq-header h1 { font-size: 40px; }
    .faq-body { padding: 50px 20px 80px 20px; }
    .faq-question { font-size: 20px; }
    .faq-answer { font-size: 16px; line-height: 1.6; }

    .about-header { padding: 25px 20px; }
    .about-header h1 { font-size: 36px; }
    .about-header p { font-size: 16px; }
    .founders-image { height: 250px; }
    .about-body { padding: 40px 20px 60px 20px; }
    .about-body p { font-size: 16px; line-height: 1.5; }

    .utility-card { padding: 40px 20px; }
    .utility-card h1 { font-size: 28px; }

    .legal-section { padding: 50px 20px; }
    .legal-container h1 { font-size: 36px; }
    .legal-container h2 { font-size: 20px; }
    .legal-container p { font-size: 16px; line-height: 1.6; }
}

@media (max-width: 768px) {
    .nav-links { display: none; /* Hide standard nav on mobile */ }
    .nav-action .btn-header { display: none; /* Hide Get Started button on mobile */ }
    .hamburger-menu { display: flex; /* Show hamburger on mobile */ }
}

/* Hide hamburger on desktop */
@media (min-width: 769px) {
    .hamburger-menu { display: none !important; }
    .mobile-nav { 
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    .mobile-nav-overlay { 
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}
