/* ── Base & Utilities ─────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

/* ── Navigation ───────────────────────────────────────────────── */
#site-header {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

#site-header.scrolled {
    background: rgba(254, 253, 248, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(6, 78, 59, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #064E3B;
    transition: width 0.25s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

#mobile-menu.hidden {
    animation: menuSlideOut 0.2s ease forwards;
}

@keyframes menuSlideIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes menuSlideOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.mobile-menu-link {
    position: relative;
}

/* ── Floating Cards ───────────────────────────────────────────── */
@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(0.5deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-0.5deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(0.3deg); }
}

.animate-float-card-1 { animation: float1 4s ease-in-out infinite; }
.animate-float-card-2 { animation: float2 5s ease-in-out infinite 0.5s; }
.animate-float-card-3 { animation: float3 4.5s ease-in-out infinite 1s; }

/* ── Scroll Reveal ────────────────────────────────────────────── */
.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);
}

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

/* Default state for reduced motion — always visible */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #A7F3D0;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6EE7B7;
}

/* ── Selection ────────────────────────────────────────────────── */
::selection {
    background: #D1FAE5;
    color: #064E3B;
}
