/* ── Custom Properties ── */
:root {
  --navy-900: #0a1628;
  --navy-950: #060e1a;
  --gold-400: #f0c040;
  --gold-500: #d4a017;
  --gold-600: #b8860b;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
}

/* ── Base ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--navy-900);
  background: var(--navy-900);
  overflow-x: hidden;
}

.font-playfair { font-family: 'Playfair Display', serif; }

/* ── Navbar ── */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-400);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ── Mobile Menu ── */
.mobile-link {
  font-size: 1.5rem;
}

#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Hero ── */
.hero {
  position: relative;
}

.hero-bg {
  will-change: transform;
}

.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(6, 14, 26, 0.55) 0%,
    rgba(10, 22, 40, 0.70) 50%,
    rgba(10, 22, 40, 0.88) 100%
  );
}

.hero-title {
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ── Buttons ── */
.btn-primary {
  background: var(--gold-500);
  color: var(--navy-900);
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  border: 2px solid var(--gold-500);
}

.btn-primary:hover {
  background: var(--gold-400);
  border-color: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(212, 160, 23, 0.35);
}

.btn-secondary {
  background: transparent;
  color: white;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: var(--gold-400);
  color: var(--gold-400);
  transform: translateY(-2px);
}

/* ── Hero Scroll ── */
.hero-scroll-indicator {
  animation: fadeScroll 2s ease-in-out infinite;
}

@keyframes fadeScroll {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(6px); }
}

/* ── Marquee ── */
.marquee-bar {
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee-track {
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Cards ── */
.card-glow {
  position: relative;
}

.card-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, var(--gold-400), transparent, var(--gold-500));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.card-glow:hover::before {
  opacity: 0.5;
}

/* ── Gallery ── */
.gallery-item {
  cursor: pointer;
  position: relative;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0);
  transition: background 0.3s ease;
  border-radius: 0.75rem;
}

.gallery-item:hover::after {
  background: rgba(10, 22, 40, 0.15);
}

/* ── Reveal Animations ── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ── Focus Styles ── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.75rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .font-playfair.text-4xl {
    font-size: 2.25rem;
  }

  .font-playfair.text-5xl {
    font-size: 2.5rem;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ── 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;
  }

  .marquee-track {
    animation: none;
  }
}
