/* ── Hero Gradient ── */
.hero-gradient {
  background: linear-gradient(135deg, #0a1020 0%, #1B2A4A 35%, #2d4e8a 65%, #1B2A4A 100%);
}

.hero-pattern {
  background-image: radial-gradient(circle at 25% 25%, rgba(212, 168, 67, 0.08) 0%, transparent 50%),
                    radial-gradient(circle at 75% 75%, rgba(212, 168, 67, 0.06) 0%, transparent 50%);
}

/* ── Header Scroll State ── */
#site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(27, 42, 74, 0.08);
}

#site-header.scrolled .font-serif {
  color: #1B2A4A;
}

#site-header.scrolled .menu-line {
  background: #1B2A4A;
}

#site-header.scrolled nav a:not(.bg-navy-700) {
  color: #1B2A4A;
}

/* ── Mobile Menu ── */
.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}

#mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ── Hamburger Animation ── */
.menu-line:last-child {
  width: 1.25rem;
}

body.menu-open .menu-line:first-child {
  transform: translateY(5px) rotate(45deg);
}

body.menu-open .menu-line:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-line:last-child {
  transform: translateY(-5px) rotate(-45deg);
  width: 1.25rem;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .reveal.revealed {
    opacity: 1;
    transform: none;
  }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ── Smooth Scroll ── */
html {
  scroll-behavior: smooth;
}

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

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

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0f3f9;
}
::-webkit-scrollbar-thumb {
  background: #b3c1cf;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8da2cf;
}
