/* ═══════════════════════════════════════════════════════════════
   Camp Sweeney — Custom Styles
   Deep Navy + Warm Gold | Cormorant Garamond + Lato
   ═══════════════════════════════════════════════════════════════ */

/* ── Base ── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* ── Selection ── */
::selection {
  background-color: rgba(212, 160, 23, 0.25);
  color: #f0f3f9;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a152e;
}
::-webkit-scrollbar-thumb {
  background: #1e3563;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2e4d8a;
}

/* ── Navigation ── */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #d4a017;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* ── Mobile Menu Transitions ── */
#mobile-menu {
  transition: opacity 0.4s ease, pointer-events 0.4s ease;
}
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Mobile Nav Links ── */
.mobile-nav-link {
  position: relative;
  display: block;
  padding: 0.5rem 0;
}

/* ── Reveal Animations (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }
  .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* ── Reduced motion fallback ── */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ── Header Scroll State ── */
#site-header.scrolled {
  background-color: rgba(6, 12, 28, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(30, 53, 99, 0.3);
}

/* ── Image Hover Effects ── */
article img,
section img {
  will-change: transform;
}

/* ── Button Focus Styles ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #d4a017;
  outline-offset: 2px;
}

/* ── Gold Accent Dividers ── */
.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #d4a017, transparent);
}

/* ── Card Hover Glow ── */
article:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
              0 0 40px -10px rgba(212, 160, 23, 0.08);
}

/* ── Form Inputs ── */
input,
textarea {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
input:focus,
textarea:focus {
  border-color: #d4a017 !important;
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1);
}

/* ── Star Rating ── */
.star-rating {
  display: inline-flex;
  gap: 2px;
}
.star-rating svg {
  flex-shrink: 0;
}

/* ── Utility ── */
.no-underline {
  text-decoration: none;
}
.no-underline:hover {
  text-decoration: none;
}
