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

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

body {
  margin: 0;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background-color: #c9a84c;
  color: #0a1628;
}

/* ===== NAVBAR SCROLL STATE ===== */
#navbar.scrolled {
  background: rgba(6, 15, 29, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(201, 168, 76, 0.1);
}

.nav-logo-text {
  transition: color 0.4s ease;
}

#navbar:not(.scrolled) .nav-logo-text {
  color: #ffffff;
}

#navbar.scrolled .nav-logo-text {
  color: #ffffff;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 1;
  transform: none;
  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);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
  }

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

/* Stagger children */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== MOBILE MENU ===== */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

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

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

/* ===== GOLD ACCENT LINE ANIMATION ===== */
.hero-accent-line {
  width: 0;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-loaded .hero-accent-line {
  width: 100%;
}

/* ===== CARD HOVER EFFECTS ===== */
.menu-card {
  position: relative;
  overflow: hidden;
}

.menu-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 168, 76, 0);
  border-radius: inherit;
  transition: border-color 0.4s ease;
  pointer-events: none;
}

.menu-card:hover::after {
  border-color: rgba(201, 168, 76, 0.3);
}

/* ===== FOCUS STYLES ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #c9a84c;
  outline-offset: 2px;
}

/* ===== FORM INPUTS ===== */
input::placeholder,
textarea::placeholder {
  color: rgba(10, 22, 40, 0.2);
}

/* ===== SUBTLE PARALLAX HELPER ===== */
.parallax-slow {
  will-change: transform;
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 767px) {
  .font-serif {
    line-height: 1.15;
  }
}

/* ===== SMOOTH SCROLL OFFSET FOR FIXED NAV ===== */
section[id] {
  scroll-margin-top: 80px;
}
