/* ===== CUSTOM STYLES ===== */

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

/* Navigation height */
#siteNav {
  height: 72px;
}

/* Scroll reveal base state (visible by default for progressive enhancement) */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply animation when JS is active and reduced motion is not preferred */
@media (prefers-reduced-motion: no-preference) {
  .js-active .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .js-active .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile menu transition */
#mobileMenu {
  max-height: 0;
}
#mobileMenu.open {
  max-height: 400px;
}

/* Mobile link hover */
.mobile-link {
  display: block;
}

/* Gold accent line animation on scroll */
@keyframes drawLine {
  from { width: 0; }
  to { width: 48px; }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0A1F44;
}
::-webkit-scrollbar-thumb {
  background: #C9A84C;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #D4B96A;
}

/* Select dropdown styling */
select option {
  background: #0A1F44;
  color: #C9A84C;
}

/* Nav scroll state */
.nav.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Image loading fallback */
img {
  background: linear-gradient(135deg, #0A1F44 0%, #153A75 100%);
}

/* Selection color */
::selection {
  background: #C9A84C;
  color: #0A1F44;
}
