/* === Base & Utilities === */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Scroll Reveal (progressive enhancement) === */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
    .reveal:nth-child(5) { transition-delay: 0.4s; }
    .reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* === Navbar scroll state === */
.nav-scrolled {
    background: rgba(253, 252, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(4, 120, 87, 0.08);
}

.nav-scrolled .nav-link {
    color: rgb(6, 78, 59) !important;
}

.nav-scrolled .nav-link:hover {
    color: rgb(4, 120, 87) !important;
}

.nav-scrolled .nav-cta {
    background: rgb(4, 120, 87) !important;
}

/* === Mobile menu transitions === */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Custom scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgb(253, 252, 248);
}

::-webkit-scrollbar-thumb {
    background: rgb(167, 243, 208);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(110, 231, 183);
}

/* === Selection === */
::selection {
    background: rgb(167, 243, 208);
    color: rgb(6, 78, 59);
}
