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

/* ── Nav ── */
#nav { transition: background 0.3s, box-shadow 0.3s, padding 0.3s; }
#nav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(30,58,95,0.08);
}

.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #d4a843;
  transition: width 0.25s;
}
.nav-link:hover::after { width: 100%; }

/* Mobile menu bars animation */
#menu-toggle.active .bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
#menu-toggle.active .bar:nth-child(2) { opacity: 0; }
#menu-toggle.active .bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); width: 1.25rem; }

#mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  translate: 0;
}

.mobile-link { transition: color 0.2s, padding-left 0.2s; }
.mobile-link:hover { color: #d4a843; padding-left: 8px; }

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Staggered children ── */
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.3s; }

/* ── Utility ── */
::selection { background: rgba(212,168,67,0.25); color: #1e3a5f; }

/* ── Map placeholder fallback ── */
iframe { border-radius: 1rem; }

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