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

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

body {
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: rgba(245, 176, 65, 0.3);
  color: #F5B041;
}

/* ===== NAVBAR ===== */
#navbar {
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

#navbar.scrolled {
  background: rgba(26, 13, 31, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(91, 44, 111, 0.3), 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* ===== HERO STAT CARDS ===== */
.stat-card {
  animation: float 4s ease-in-out infinite;
}

.stat-card:nth-child(2) {
  animation-delay: -1.3s;
}

.stat-card:nth-child(3) {
  animation-delay: -2.6s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== LODGING CARDS ===== */
.lodging-card {
  animation: card-rise 0.5s ease-out both;
}

.lodging-card:nth-child(2) { animation-delay: 0.1s; }
.lodging-card:nth-child(3) { animation-delay: 0.2s; }

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== REVEAL ANIMATIONS (below-fold only) ===== */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.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);
  }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1A0D1F;
}

::-webkit-scrollbar-thumb {
  background: #5B2C6F;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7D4E7E;
}

/* ===== MOBILE MENU TRANSITIONS ===== */
#mobileMenu {
  animation: menuSlide 0.25s ease-out;
}

@keyframes menuSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== FOCUS STYLES ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #F5B041;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 640px) {
  .stat-card {
    padding: 1rem !important;
  }

  .stat-card div:first-child {
    font-size: 1.75rem !important;
  }
}
