/* ============================================
   ZION SUITES OF HILDALE — Custom Styles
   Premium Dark Luxury | Emerald + Gold
   ============================================ */

/* --- Reset & Base --- */
*, *::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;
}

::selection {
  background: rgba(232, 176, 74, 0.3);
  color: #fefdf8;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #070e0a;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2d9d5e, #e8b04a);
  border-radius: 4px;
}

/* --- Scroll Line Animation --- */
@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* --- Room Cards --- */
.room-card {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}
.room-card:hover {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(232, 176, 74, 0.15);
}

/* --- Amenity Cards --- */
.amenity-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.amenity-card:hover {
  border-color: rgba(232, 176, 74, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.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; }

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .room-card, .amenity-card { transition: none; }
  .room-card:hover { transform: none; }
  .amenity-card:hover { transform: none; }
  img { transition: none; }
  @keyframes scrollLine { 0%, 100% { transform: translateY(0); } }
}

/* --- Navbar scroll state --- */
.nav-scrolled {
  background: rgba(7, 14, 10, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(232, 176, 74, 0.08), 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* --- Gold gradient text utility --- */
.gold-gradient {
  background: linear-gradient(135deg, #e8b04a, #f5e0a0, #e8b04a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.emerald-gradient {
  background: linear-gradient(135deg, #4fbf7e, #8ed8a8, #4fbf7e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Mobile menu transition --- */
#mobileMenu {
  max-height: 0;
  transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
#mobileMenu.open {
  max-height: 500px;
}

/* --- Image hover zoom --- */
.group img {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Button focus styles --- */
a:focus-visible, button:focus-visible {
  outline: 2px solid #e8b04a;
  outline-offset: 2px;
  border-radius: 9999px;
}

/* --- Responsive adjustments --- */
@media (max-width: 767px) {
  .room-card {
    margin-bottom: 0;
  }
  .room-card:last-child {
    margin-bottom: 0;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .room-card {
    margin-bottom: 0;
  }
}
