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

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #09150e; }
::-webkit-scrollbar-thumb { background: #1a3a2a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #2a4a31; }

/* ── Selection ── */
::selection { background: rgba(201, 168, 76, 0.3); color: #faf9f6; }

/* ── Reveal animations (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal[data-revealed="false"] {
    opacity: 0;
    transform: translateY(32px);
  }
}

/* ── Header scroll state ── */
#site-header.scrolled {
  background: rgba(9, 21, 14, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
  box-shadow: 0 1px 40px rgba(0,0,0,0.4);
}

/* ── Mobile menu animation ── */
#mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}
#mobile-nav.open .mobile-link {
  animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}
#mobile-nav.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-nav.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-nav.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-nav.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-nav.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Hamburger animation ── */
.menu-btn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}
.menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}
.menu-btn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(3px, -3px);
  width: 1.25rem;
}

/* ── Gold shimmer on CTA buttons ── */
button[type="submit"]:hover,
a[href="#contact"]:hover {
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.25);
}

/* ── Input autofill override ── */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #1a3a2a inset !important;
  -webkit-text-fill-color: #faf9f6 !important;
  caret-color: #c9a84c;
}

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