/* ─── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }
p, ul, ol { margin: 0; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
a { text-decoration: none; color: inherit; }

/* ─── NAV ───────────────────────────────────────────────────── */
#nav {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}
#nav.scrolled {
    background: rgba(253, 252, 249, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(27, 67, 50, 0.08);
}

/* ─── HERO ANIMATIONS ───────────────────────────────────────── */
.hero-eyebrow {
    opacity: 0;
    animation: fadeUp 0.8s 0.2s forwards;
}
.hero-headline {
    opacity: 0;
    animation: fadeUp 0.8s 0.4s forwards;
}
.hero-sub {
    opacity: 0;
    animation: fadeUp 0.8s 0.6s forwards;
}
.hero-cta {
    opacity: 0;
    animation: fadeUp 0.8s 0.8s forwards;
}
.hero-stats {
    opacity: 0;
    animation: fadeUp 0.8s 1s forwards;
}

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

/* Stat cards stagger */
.stat-card {
    opacity: 0;
    animation: fadeUp 0.6s forwards;
}
.stat-card:nth-child(1) { animation-delay: 1.1s; }
.stat-card:nth-child(2) { animation-delay: 1.25s; }
.stat-card:nth-child(3) { animation-delay: 1.4s; }
.stat-card:nth-child(4) { animation-delay: 1.55s; }

/* ─── SCROLL REVEAL ─────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Fallback: always visible if JS is off or reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ─── MENU CARDS ────────────────────────────────────────────── */
.menu-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(27, 67, 50, 0.1);
}

/* ─── MOBILE MENU ───────────────────────────────────────────── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}
#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}
.menu-line:last-child {
    width: 1.5rem;
}
body.menu-open { overflow: hidden; }

/* ─── UTILITY ───────────────────────────────────────────────── */
::selection {
    background: rgba(27, 67, 50, 0.15);
    color: inherit;
}
