/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; }

/* ── Scroll reveal ── */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

/* ── Navbar scrolled state ── */
nav.scrolled {
    background: rgba(253, 248, 240, 0.92) !important;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(232, 212, 168, 0.3);
    box-shadow: 0 1px 20px rgba(5, 150, 105, 0.06);
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FDF8F0; }
::-webkit-scrollbar-thumb { background: #059669; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #047857; }

/* ── Selection ── */
::selection { background: rgba(5, 150, 105, 0.15); color: #042E24; }
