/* ===== BASE & RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #D4A017;
  color: #0F1F38;
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

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

/* Fallback: content always visible even if JS is blocked */
.scroll-reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
}

/* ===== NAVBAR SHADOW ON SCROLL ===== */
#navbar.scrolled {
  box-shadow: 0 4px 20px rgba(11, 22, 40, 0.3);
}

/* ===== HERO IMAGE RESPONSIVE ===== */
#hero img {
  min-height: 100vh;
}

@media (max-width: 640px) {
  #hero img {
    min-height: 80vh;
  }
}

/* ===== MOBILE MENU TRANSITION ===== */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

#mobile-menu.open {
  max-height: 400px;
}

/* ===== SUBTLE CARD TILT ON HOVER ===== */
.group:hover .group-hover\:bg-gold-500 {
  transform: scale(1.05);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

/* ===== FORM INPUT FOCUS RING ===== */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.2);
}

/* ===== ACCESSIBILITY: REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
}
