/* ── Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }

/* ── Reveal-on-scroll (progressive enhancement) ──────────────────── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(.22,.61,.36,1), transform 0.7s cubic-bezier(.22,.61,.36,1);
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Fallback: always visible if JS is disabled or motion is reduced */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; }
}

/* ── Floating cards ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
    .floating-card-1 { animation: float1 5s ease-in-out infinite; }
    .floating-card-2 { animation: float2 6s ease-in-out infinite; }
    .floating-card-3 { animation: float3 4.5s ease-in-out infinite; }
}
@keyframes float1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes float2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}
@keyframes float3 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ── Nav ──────────────────────────────────────────────────────────── */
#nav.scrolled {
    box-shadow: 0 1px 20px rgba(16,42,67,0.06);
}

/* ── Section titles ───────────────────────────────────────────────── */
.section-label {
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ── Button focus ─────────────────────────────────────────────────── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #c9952a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Mobile menu transition ───────────────────────────────────────── */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(.4,0,.2,1);
}
#mobile-menu.open {
    max-height: 400px;
}

/* ── 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='%23627d98' 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: 36px;
}
