/* ============================================
   UNLV- Dayton Complex — Custom Styles
   ============================================ */

/* Base & Typography */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
  background: #D4A843;
  color: #0A1628;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0A1628;
}
::-webkit-scrollbar-thumb {
  background: #D4A843;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #E8C06A;
}

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

#navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(10, 22, 40, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #D4A843;
  transition: width 0.3s ease;
}

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

/* Mobile menu */
#mobile-menu {
  box-shadow: none;
}

#mobile-menu.open {
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
}

.menu-line {
  transition: all 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
  width: 24px;
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero
   ============================================ */
.hero-scroll-indicator {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-8px) translateX(-50%); }
  60% { transform: translateY(-4px) translateX(-50%); }
}

/* ============================================
   Room Cards
   ============================================ */
.room-card {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.4s ease;
}

.room-card:hover {
  box-shadow: 0 20px 60px rgba(10, 22, 40, 0.12);
}

/* ============================================
   Amenity Cards
   ============================================ */
.amenity-card {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.4s ease;
}

/* ============================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible
   by default; JS adds animated state)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    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);
  }

  .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; }
  .reveal-delay-5 { transition-delay: 0.5s; }
  .reveal-delay-6 { transition-delay: 0.6s; }
  .reveal-delay-7 { transition-delay: 0.7s; }
  .reveal-delay-8 { transition-delay: 0.8s; }
}

/* ============================================
   Testimonial Cards
   ============================================ */
.testimonial-card {
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(212, 168, 67, 0.1);
}

/* ============================================
   Buttons & Links
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #D4A843;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================
   Image aspect ratios
   ============================================ */
img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 768px) {
  .font-serif {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }
}

/* ============================================
   Print styles
   ============================================ */
@media print {
  nav, #contact, footer, .hero-scroll-indicator {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
  }
}
