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

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

/* Scroll Reveal — progressive enhancement, hidden by default */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Nav */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(13, 27, 42, 0.06);
}

#navbar.scrolled .font-display {
    color: #0d1b2a !important;
}

#navbar.scrolled a:not(.inline-flex) {
    color: #1b3a5c !important;
}

/* Menu Tabs */
.menu-tab {
    background: transparent;
    color: #1b3a5c;
    border: none;
    cursor: pointer;
}

.menu-tab.active {
    background: #0d1b2a;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(13, 27, 42, 0.25);
}

.menu-tab:not(.active):hover {
    background: #d5f5e3;
    color: #0d1b2a;
}

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

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

#mobile-menu.hiding {
    animation: slideUp 0.25s ease forwards;
}

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

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

::-webkit-scrollbar-track {
    background: #f0faf5;
}

::-webkit-scrollbar-thumb {
    background: #a8e6cf;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7dd4b5;
}

/* Selection */
::selection {
    background: #a8e6cf;
    color: #0d1b2a;
}
