/* ─── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }

/* ─── Scrollbar ────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f5f2ec; }
::-webkit-scrollbar-thumb { background: #1B4332; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #2a5239; }

/* ─── Navigation ───────────────────────────────────── */
#site-header {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}
#site-header.scrolled {
    background: rgba(251, 250, 247, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(27, 67, 50, 0.08);
}
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #1B4332;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* ─── Mobile Menu ──────────────────────────────────── */
#mobile-menu.open {
    transform: translateX(0);
}
#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}
#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
}

/* ─── Hero Animations ──────────────────────────────── */
.hero-eyebrow {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.3s forwards;
}
.hero-headline {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s 0.5s forwards;
}
.hero-subtext {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.7s forwards;
}
.hero-cta {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.9s forwards;
}
.hero-cards {
    opacity: 0;
    animation: fadeIn 1s 1s forwards;
}
.stat-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s forwards;
}
.stat-card:nth-child(1) { animation-delay: 1.1s; }
.stat-card:nth-child(2) { animation-delay: 1.3s; }
.stat-card:nth-child(3) { animation-delay: 1.5s; }
.stat-card:nth-child(4) { animation-delay: 1.7s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeIn {
    to { opacity: 1; }
}

/* ─── Reveal on Scroll ─────────────────────────────── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Decorative Divider ───────────────────────────── */
.divider {
    width: 60px;
    height: 1px;
    background: #1B4332;
}

/* ─── Button Focus ─────────────────────────────────── */
a:focus-visible, button:focus-visible {
    outline: 2px solid #1B4332;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ─── Reduced Motion ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ─── Responsive ───────────────────────────────────── */
@media (max-width: 767px) {
    .font-serif.text-5xl { font-size: 2.5rem; }
    .font-serif.text-4xl { font-size: 2rem; }
}
