/* ─── Base & Reset ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg { display: block; max-width: 100%; }

/* ─── Nav ─── */
#nav { background: transparent; }
#nav.scrolled {
    background: rgba(253, 248, 240, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(6, 78, 59, 0.08);
}
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #d4a574;
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ─── Mobile menu ─── */
.mobile-link { position: relative; }
#mobile-menu.open { display: block; animation: slideDown 0.3s ease; }
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Scroll reveal (progressive enhancement) ─── */
.reveal-up {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* JS-enhanced hidden state — only applied when JS runs and user prefers motion */
.js-active .reveal-up {
    opacity: 0;
    transform: translateY(24px);
}
.js-active .reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.js-active .reveal-up:nth-child(1) { transition-delay: 0ms; }
.js-active .reveal-up:nth-child(2) { transition-delay: 80ms; }
.js-active .reveal-up:nth-child(3) { transition-delay: 160ms; }
.js-active .reveal-up:nth-child(4) { transition-delay: 240ms; }
.js-active .reveal-up:nth-child(5) { transition-delay: 320ms; }
.js-active .reveal-up:nth-child(6) { transition-delay: 400ms; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal-up { opacity: 1; transform: none !important; transition: none; }
    html { scroll-behavior: auto; }
    .animate-bounce-slow { animation: none; }
}

/* ─── Animations ─── */
@keyframes bounceSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}
.animate-bounce-slow {
    animation: bounceSlow 2.5s ease-in-out infinite;
}

/* ─── Form ─── */
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='%23064e3b' stroke-width='2.5' 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;
}

/* ─── Utility ─── */
::selection { background: rgba(6, 78, 59, 0.15); }
