/* ── Base & Typography ── */
:root {
    --green-900: #1B4332;
    --green-700: #2D6A4F;
    --green-600: #40916C;
    --green-100: #D8F3DC;
    --amber-400: #F59E0B;
    --amber-300: #FCD34D;
    --cream: #FAF9F6;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--cream);
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.font-nunito {
    font-family: 'Nunito', sans-serif;
}

.font-dm {
    font-family: 'DM Sans', sans-serif;
}

/* ── Scroll Animations ── */
.scroll-animate {
    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);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Navbar ── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(27, 67, 50, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    padding-top: 0;
    padding-bottom: 0;
}

/* ── Mobile Menu ── */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--cream);
}
::-webkit-scrollbar-thumb {
    background: var(--green-600);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--green-700);
}

/* ── Selection ── */
::selection {
    background: var(--green-700);
    color: white;
}

/* ── Form Focus Styles ── */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}

/* ── Utility ── */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }
}
