/* ── Base & Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }

/* ── Hero entrance animations (above the fold — always visible) ── */
.hero-eyebrow {
    animation: slideInLeft 0.8s ease-out both;
}
.hero-title {
    animation: slideInUp 0.9s ease-out 0.15s both;
}
.hero-subtitle {
    animation: slideInUp 0.9s ease-out 0.3s both;
}
.hero-ctas {
    animation: slideInUp 0.9s ease-out 0.45s both;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-24px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Scroll reveal (below fold only, progressive enhancement) ── */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal-left { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }

@media (prefers-reduced-motion: no-preference) {
    .reveal-up.is-visible,
    .reveal-left.is-visible,
    .reveal-right.is-visible {
        opacity: 1;
        transform: none;
    }
    .reveal-up.is-hidden,
    .reveal-left.is-hidden,
    .reveal-right.is-hidden {
        opacity: 0;
    }
    .reveal-left.is-hidden { transform: translateX(-32px); }
    .reveal-right.is-hidden { transform: translateX(32px); }
}

/* ── Nav active state ── */
.nav-link.active {
    color: #1a2538;
    background: rgba(245, 247, 250, 0.8);
}

/* ── Mobile menu transition ── */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}
#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* ── Navbar scrolled state ── */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(26, 37, 56, 0.08);
}

/* ── Selection color ── */
::selection {
    background: #d4940f;
    color: #1a2538;
}

/* ── Subtle image hover zoom ── */
img {
    transition: transform 0.5s ease;
}

/* ── Smooth focus outlines ── */
:focus-visible {
    outline: 2px solid #d4940f;
    outline-offset: 2px;
}

/* ── Form select arrow ── */
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='%239db3d1' 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 12px center;
    padding-right: 40px;
    appearance: none;
}
