/* ── Base ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(26, 107, 66, 0.2);
    color: inherit;
}

/* ── Navbar ── */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(250, 248, 244, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(26, 60, 42, 0.08);
}

#navbar.scrolled .nav-link,
#navbar.scrolled a {
    color: inherit;
}

/* ── Hero Animations ── */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-eyebrow {
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-headline {
    animation: heroFadeUp 0.9s ease forwards;
    animation-delay: 0.4s;
}

.hero-sub {
    animation: heroFadeUp 0.9s ease forwards;
    animation-delay: 0.6s;
}

.hero-ctas {
    animation: heroFadeUp 0.9s ease forwards;
    animation-delay: 0.8s;
}

/* ── Scroll Reveal ── */
.reveal {
    will-change: transform, opacity;
}

.reveal.fade-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal.fade-up:not(.revealed) {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

/* ── Hamburger ── */
#menu-toggle[aria-expanded="true"] #bar-top {
    transform: rotate(45deg) translate(3px, 3px);
}

#menu-toggle[aria-expanded="true"] #bar-mid {
    opacity: 0;
    transform: scaleX(0);
}

#menu-toggle[aria-expanded="true"] #bar-bot {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
    margin-left: 0;
}

/* ── Select styling ── */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237bbf96' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 2rem;
}

/* ── Date input ── */
input[type="date"] {
    color: rgb(10, 46, 28);
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.3) sepia(0.5) saturate(3) hue-rotate(90deg);
    cursor: pointer;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal.fade-up {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Focus visible ── */
:focus-visible {
    outline: 2px solid rgb(47, 133, 85);
    outline-offset: 2px;
}
