/* ── Base & Typography ── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

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

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

/* Fallback: always visible if JS is off or prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Navbar transition ── */
#site-header.scrolled {
  background: rgba(4, 10, 20, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(200, 164, 86, 0.08);
}

#site-header.scrolled #site-header {
  background: rgba(4, 10, 20, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

/* ── Gold accent line ── */
.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 164, 86, 0.4), transparent);
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #040a14;
}
::-webkit-scrollbar-thumb {
  background: #1a4478;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c8a456;
}

/* ── Selection color ── */
::selection {
  background: rgba(200, 164, 86, 0.3);
  color: #f0f4f8;
}

/* ── Input autofill override ── */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #040a14 inset !important;
  -webkit-text-fill-color: #f0f4f8 !important;
}

/* ── Focus visible ring ── */
:focus-visible {
  outline: 2px solid #c8a456;
  outline-offset: 2px;
}
