/* ─── BASE ─── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: color-mix(in srgb, #1a3c2a 80%, transparent);
    color: #faf9f6;
}

/* ─── NAV ─── */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

#site-header.scrolled {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(26, 60, 42, 0.08);
}

#site-header.scrolled .nav-link {
    color: #1a3c2a;
}

#site-header.scrolled .font-serif {
    color: #1a3c2a;
}

/* ─── MOBILE MENU ─── */
.mobile-link {
    opacity: 1;
}

/* ─── HERO ANIMATIONS ─── */
.hero-eyebrow {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
}

.hero-title {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    opacity: 0;
}

.hero-subtitle {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
    opacity: 0;
}

.hero-ctas {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
    opacity: 0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── SECTION ANIMATIONS (below fold only) ─── */
.section-eyebrow,
.section-title,
.product-card,
.benefit-card,
.faq-item,
.mobile-link {
    /* Default state: visible for accessibility */
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* ─── PRODUCT CARDS ─── */
.product-card {
    opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .product-card {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .product-card.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── FAQ ─── */
.faq-answer {
    max-height: 0;
}

.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f5f3ed;
}

::-webkit-scrollbar-thumb {
    background: #8fbb93;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #46844e;
}

/* ─── FOCUS VISIBLE ─── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #46844e;
    outline-offset: 2px;
}

/* ─── PRINT ─── */
@media print {
    #site-header,
    #mobile-menu {
        display: none;
    }

    body {
        color: #1a3c2a;
        background: white;
    }

    .hero-eyebrow,
    .hero-title,
    .hero-subtitle,
    .hero-ctas {
        opacity: 1;
        animation: none;
    }
}
