/* ===== Base & Utilities ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background: #2D5A3D;
    color: #F5F0E8;
}

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 252, 250, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(45, 90, 61, 0.08);
}

.nav-logo-text {
    transition: color 0.4s ease;
}

#navbar.scrolled .nav-logo-text {
    color: #2D5A3D;
}

.nav-link {
    position: relative;
}

#navbar:not(.scrolled) .nav-link {
    color: rgba(245, 240, 232, 0.85);
}

#navbar:not(.scrolled) .nav-link:hover {
    color: #FDFCFA;
    background: rgba(253, 252, 250, 0.12);
}

#navbar.scrolled .nav-link {
    color: #2D5A3D;
}

/* ===== Mobile Menu ===== */
#mobile-menu.open {
    max-height: 320px;
}

.mobile-link {
    transition: all 0.2s ease;
}

/* ===== Float Animation ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== Stagger children ===== */
.stagger-children .reveal:nth-child(1) { transition-delay: 0.05s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.12s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.19s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.26s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.33s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.40s; }

/* ===== Hero text gradient ===== */
.gradient-text {
    background: linear-gradient(135deg, #F5F0E8 0%, #D4E8D0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Card hover glow ===== */
.featured-card:hover {
    box-shadow: 0 20px 60px rgba(45, 90, 61, 0.15);
}

/* ===== Button focus ===== */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #2D5A3D;
    outline-offset: 2px;
}

/* ===== Custom scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F5F0E8;
}
::-webkit-scrollbar-thumb {
    background: #93bc96;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #47804f;
}

/* ===== Responsive tweaks ===== */
@media (max-width: 640px) {
    html {
        scroll-padding-top: 72px;
    }
}
