/* FONT IMPORTS FROM GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Montserrat:wght@700&display=swap');

/* CSS VARIABLES */
:root {
    --font-primary: 'Lato', sans-serif;
    --font-display: 'Montserrat', sans-serif;

    --color-dark-green: #00482e;
    --color-light-green-bg: #f9fbe1;
    --color-tags-bar-bg: #d8e4b2; 
    --color-accent-orange: #e55a3d;
    --color-text-dark: #4d5761;
    --color-text-light: #ffffff;
    --color-text-grey: #77887f;
    --color-text-light-grey: #c3d2ca;
    --color-white: #ffffff;
    --color-light-grey-bg: #f7f9f8;
    --color-border: #e8e7e3;

    --container-width: 1120px;
    --container-padding: 1.5rem;
}

/* BASIC RESET & SETUP */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: var(--color-white);
}

img {
    max-width: 100%;
    display: block;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--color-dark-green);
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

/* CONTAINER */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid transparent;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--primary {
    background-color: var(--color-accent-orange);
    color: var(--color-white);
}
.btn--primary:hover {
    background-color: #d44a2c;
}

.btn--secondary {
    background-color: var(--color-white);
    color: var(--color-accent-orange);
    border-color: var(--color-accent-orange);
}
.btn--secondary:hover {
    background-color: #fff8f6;
}

/* HEADER */
.header {
    background-color: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header__top {
    padding: 1rem 0;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo img {
    height: 40px;
}

.header__nav {
    display: flex;
    gap: 2rem;
}

.header__nav a {
    font-weight: 700;
    color: var(--color-dark-green);
    transition: color 0.3s;
}
.header__nav a:hover {
    color: var(--color-accent-orange);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header__menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 1001;
}

.header__menu-toggle span {
    display: block;
    background-color: var(--color-dark-green);
    height: 3px;
    width: 100%;
    border-radius: 3px;
    position: absolute;
    transition: all 0.3s;
}
.header__menu-toggle span:nth-child(1) { top: 0; }
.header__menu-toggle span:nth-child(2) { top: 9px; }
.header__menu-toggle span:nth-child(3) { top: 18px; }

.header__benefits {
    background-color: var(--color-dark-green);
    color: var(--color-text-light);
    padding: 0.75rem 0;
}

.benefits__container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.benefit-item img {
    width: 20px;
    height: 20px;
}

/* HERO SECTION */
.hero {
    background-color: var(--color-light-green-bg);
    padding: 4rem 0;
}

.hero__container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero__content {
    flex: 1;
}

.hero__image {
    flex: 1;
}

.hero__image img {
    border-radius: 16px;
}

.hero__title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero__subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* TAGS BAR */
.tags-bar {
    background-color: var(--color-tags-bar-bg);
    padding: 1rem 0;
}

.tags-bar__container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.tag {
    color: var(--color-dark-green);
    font-weight: 700;
    font-size: 0.9rem;
}

/* NATURAL SOLUTION SECTION */
.natural-solution {
    padding: 5rem 0;
    background-color: var(--color-white);
}

.natural-solution__container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.natural-solution__text {
    flex: 1;
}

.natural-solution__text h2 {
    margin-bottom: 1rem;
}

.natural-solution__text p {
    margin-bottom: 2rem;
}

.natural-solution__features {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-item img {
    width: 40px;
    margin-top: 5px;
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* INGREDIENTS SECTION */
.ingredients {
    background-color: var(--color-light-grey-bg);
    padding: 5rem 0;
}

.ingredients__container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.ingredients__image {
    flex: 1;
}

.ingredients__content {
    flex: 1;
}

.ingredients__content h2 {
    margin-bottom: 1rem;
}

.ingredients__accordion {
    margin-bottom: 2rem;
}

.ingredients__footnotes {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--color-text-grey);
    font-size: 0.75rem;
    line-height: 1.5;
}

/* HOW TO USE SECTION */
.how-to-use {
    background-color: var(--color-light-green-bg); /* UPDATED */
    padding: 5rem 0;
    text-align: center;
}

.section-title {
    margin-bottom: 3rem;
}

.how-to-use__grid {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.how-to-use__item {
    flex: 1;
}

.how-to-use__icon-wrapper {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.how-to-use__icon-wrapper img {
    width: 60px;
}

.how-to-use__item h3 {
    margin-bottom: 0.5rem;
}

/* FAQ SECTION */
.faq {
    padding: 5rem 0;
    background-color: var(--color-light-grey-bg);
}

.faq .container {
    max-width: 740px;
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq__item {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
}
.faq__item:last-child {
    border-bottom: none;
}

.faq__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-dark-green);
    text-align: left;
}

.faq__icon {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
    position: relative;
}
.faq__icon::before, .faq__icon::after {
    content: '';
    position: absolute;
    background-color: var(--color-text-grey);
    transition: all 0.3s;
}
.faq__icon::before {
    width: 100%; height: 2px; top: 6px; left: 0;
}
.faq__icon::after {
    width: 2px; height: 100%; top: 0; left: 6px;
}
.faq__item.active .faq__icon {
    transform: rotate(45deg);
}
.faq__item.active .faq__icon::after {
    opacity: 0;
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq__answer p {
    padding: 0 1.25rem 1.25rem;
    margin: 0;
    color: var(--color-text-grey);
}

/* FOOTER */
.footer {
    background-color: var(--color-dark-green);
    color: var(--color-text-light);
    padding: 4rem 0 2rem 0;
}

.footer__container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.footer__top {
    display: flex;
    gap: 4rem;
}

.footer__logo img {
    height: 40px;
}

.footer__links {
    display: flex;
    gap: 4rem;
    flex-grow: 1;
}

.footer__column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer__column h4 {
    color: var(--color-tags-bar-bg);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer__column a {
    color: var(--color-text-light);
    transition: color 0.3s;
}

.footer__column a:hover {
    color: var(--color-tags-bar-bg);
}

.footer__bottom {
    border-top: 1px solid var(--color-text-grey);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer__legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__secure {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-text-light-grey);
}

.footer__copyright {
    font-size: 0.8rem;
    color: var(--color-text-light-grey);
    margin: 0;
}

.footer__disclaimer {
    font-size: 0.75rem;
    color: var(--color-text-grey);
    margin: 0;
    max-width: 100%;
    line-height: 1.5;
}

/* NEW: LEGAL PAGE STYLES */
.legal-page {
    padding: 4rem 0;
}

.legal-page .container {
    max-width: 800px;
}

.legal-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.legal-page h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-page p, .legal-page li {
    color: var(--color-text-dark);
    line-height: 1.7;
}

.legal-page ul {
    list-style-position: inside;
    padding-left: 1rem;
}

.legal-page a {
    color: var(--color-accent-orange);
    text-decoration: underline;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    h2, .legal-page h1 { font-size: 2rem; }
    .hero__title { font-size: 2.2rem; }
    
    /* UPDATED: Mobile Header Styles */
    .header__nav {
        display: none; /* Hide nav menu completely on mobile */
    }
    .header__actions .btn {
        /* Make the CTA button visible and size it for mobile */
        display: inline-block; 
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    .header__menu-toggle {
        display: none; /* Hide hamburger menu completely */
    }

    .benefits__container {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .hero__container, 
    .natural-solution__container,
    .ingredients__container {
        flex-direction: column;
        text-align: center;
    }

    .hero__container {
        flex-direction: column-reverse;
    }

    .tags-bar__container {
        gap: 0.5rem 1rem;
    }

    .natural-solution__container {
        gap: 2rem;
    }
    .natural-solution__text {
        order: 2;
    }
    .natural-solution__features {
        order: 1;
    }

    .ingredients__container {
        gap: 2rem;
    }
    
    .ingredients__footnotes {
        padding: 0 1rem;
    }

    .how-to-use__grid {
        flex-direction: column;
        gap: 3rem;
    }

    .footer__top, .footer__links {
        flex-direction: column;
        gap: 2rem;
    }

    .footer__legal {
        flex-direction: column;
        align-items: flex-start;
    }
}

    /* FOMO POPUP STYLES */
    .popup-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.75);
        z-index: 2000;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1rem;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .popup-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .popup-content {
        background-color: var(--color-white);
        border-radius: 16px;
        width: 100%;
        max-width: 550px; /* UPDATED: Widened for desktop */
        text-align: center;
        position: relative;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        transform: translateY(20px);
        transition: transform 0.4s ease;
        overflow: hidden;
    }

    .popup-overlay.active .popup-content {
        transform: translateY(0);
    }

    .popup-timer {
        background: linear-gradient(45deg, #e55a3d, #ff7e5f);
        color: var(--color-yellow);
        padding: 0.15rem;
        font-family: var(--font-primary);
        font-weight: 700;
        font-size: 1.1rem;
    }

    .popup-timer span {
        display: inline-block; /* ADDED: This allows the animation to work */
        font-family: 'Courier New', Courier, monospace;
        font-size: 1.8rem;
        margin-left: 0.5rem;
        animation: heartbeat 1.5s ease-in-out infinite; /* NEW: Heartbeat animation */
    }

    .popup-body {
        padding: 1.5rem 2rem 2rem 2rem;
    }

    .popup-close {
        position: absolute;
        top: 5px;
        right: 10px;
        background: none;
        border: none;
        font-size: 0.7rem;
        color: rgba(1, 0, 0, 4.6); /* UPDATED: Darker close button */
        cursor: pointer;
        line-height: 1;
        z-index: 10;
        text-shadow: none;
    }

    .popup-close:hover {
        color: rgba(0, 0, 0, 0.9);
    }

    .popup-header {
        font-family: var(--font-display);
        font-size: 2rem;
        color: var(--color-dark-green);
        margin-bottom: 0.25rem;
    }

    .popup-subheading {
        font-size: 1.1rem;
        color: var(--color-text-dark);
        margin-bottom: 1.5rem;
    }

    .popup-main-offer {
        margin: 1rem 0;
    }

    .popup-image {
        max-width: 220px;
        margin: 0 auto 1rem auto;
    }

    .popup-save-amount {
        font-family: var(--font-display);
        font-size: 2.2rem;
        color: var(--color-accent-orange);
        margin-bottom: 0.5rem;
        line-height: 1.1;
    }

    .popup-offer-details {
        font-size: 1rem;
        color: var(--color-text-dark);
        margin: 0;
    }

    .scarcity-bar {
        background-color: #e9e9e9;
        border-radius: 50px;
        height: 28px;
        width: 100%;
        position: relative;
        margin: 2rem 0;
        overflow: hidden;
        border: 1px solid #ddd;
    }

    .scarcity-bar-progress {
        background: linear-gradient(90deg, #39b54a, #91b242);
        height: 100%;
        border-radius: 50px;
        position: relative; /* ADDED: Needed for the pseudo-element */
        overflow: hidden;   /* ADDED: To contain the shimmer */
    }

    /* NEW: Shimmering animation for the scarcity bar */
    .scarcity-bar-progress::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(
            100deg,
            rgba(255, 255, 255, 0) 20%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 80%
        );
        animation: shimmer 1.5s infinite;
    }
    .scarcity-bar span {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: var(--color-white);
        font-weight: 700;
        font-size: 0.9rem;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    }

    .popup-cta {
        width: 100%;
        display: block;
        padding: 0.5rem;
        font-size: 1.2rem;
        animation: pulse 1.5s infinite;
    }

    .popup-footer {
        background-color: var(--color-light-grey-bg);
        padding: 0.5rem;
        font-size: 0.6rem;
        color: var(--color-text-grey);
        border-top: 1px solid var(--color-border);
    }

    /* NEW: Animation keyframes */
    @keyframes pulse {
        0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(229, 90, 61, 0.7); }
        70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(229, 90, 61, 0); }
        100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(229, 90, 61, 0); }
    }

    @keyframes heartbeat {
      0% { transform: scale(1); }
      50% { transform: scale(1.1); }
      100% { transform: scale(1); }
    }

    /* NEW: Keyframes for the shimmer effect */
    @keyframes shimmer {
      0% {
        transform: translateX(-100%);
      }
      100% {
        transform: translateX(100%);
      }
    }

    /* NEW: Class to disable body scroll */
    body.no-scroll {
        overflow: hidden;
    }

    /* UPDATED: Media query for mobile popup height */
    @media (max-width: 768px) {
        .popup-body {
            padding: 1rem 1.5rem 1.5rem 1.5rem; /* Reduced padding */
        }
        .popup-image {
            max-width: 180px; /* Smaller image */
        }
        .popup-header {
            font-size: 1.8rem;
        }
        .popup-save-amount {
            font-size: 2rem;
        }
        .scarcity-bar {
            margin: 1.5rem 0; /* Reduced margin */
        }
    }