/* ── Reset & Base ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
img { display: block; max-width: 100%; }
button { cursor: pointer; }
a { text-decoration: none; color: inherit; }

/* ── Scroll Reveal (progressive enhancement) ─────── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Fallback: always visible when JS is disabled */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 1; transform: none; }
}

/* ── Hero Content Animation ──────────────────────── */
@media (prefers-reduced-motion: no-preference) {
    .hero-content > * {
        opacity: 0;
        transform: translateY(24px);
        animation: heroFadeIn 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
    .hero-content > *:nth-child(1) { animation-delay: 0.1s; }
    .hero-content > *:nth-child(2) { animation-delay: 0.25s; }
    .hero-content > *:nth-child(3) { animation-delay: 0.4s; }
    .hero-content > *:nth-child(4) { animation-delay: 0.55s; }

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

/* ── Navbar Scrolled State ───────────────────────── */
#site-header.scrolled {
    background-color: rgba(245, 244, 241, 0.97);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
#site-header.scrolled .nav-brand { color: #0d4f4f; }
#site-header.scrolled .nav-link { color: #4a4239; }

/* ── Mobile Menu ─────────────────────────────────── */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Utility ─────────────────────────────────────── */
::selection { background-color: #c5e4e5; color: #0d4f4f; }
</style>
