/* Red Rock Motel — Custom Styles */

/* Gold underline for section labels */
.gold-line {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #c8960a;
}

.gold-line::before {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background: linear-gradient(90deg, #c8960a, transparent);
  border-radius: 1px;
}

.gold-line.justify-center {
  justify-content: center;
}

.gold-line.justify-center::before {
  background: linear-gradient(90deg, transparent, #c8960a, transparent);
  width: 3rem;
}

/* Nav link text color — white when scrolled, white on hero */
.nav-link-text {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.nav-link-text:hover {
  color: #dbad30;
}

/* Mobile menu */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

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

/* Menu button animation */
.menu-line {
  transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(0.25rem, 0.25rem);
}

#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(0.25rem, -0.25rem);
  width: 1.5rem;
}

/* Scroll-triggered animations */
.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  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; }

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background: rgba(200, 150, 10, 0.2);
  color: #0a1f3f;
}

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

::-webkit-scrollbar-track {
  background: #0a1f3f;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #dbad30;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid #c8960a;
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .group img { transition: none; }
  .group img:hover { transform: none; }
}
