/* Custom styles for Mesa Motel */

:root {
  --color-burgundy-700: #ab1c36;
  --color-burgundy-900: #75172b;
  --color-dark-900: #080808;
  --color-dark-950: #040404;
  --color-gold-400: #e8c060;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-dark-900);
  color: #ffffff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-dark-950);
}
::-webkit-scrollbar-thumb {
  background: var(--color-burgundy-900);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-burgundy-700);
}

/* Reveal animations - progressive enhancement, only with JS */
.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar glass effect */
#navbar.scrolled {
  background: rgba(4, 4, 4, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Gold shimmer on text */
.text-transparent.bg-clip-text.bg-gradient-to-r {
  background-size: 200% auto;
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}

/* Subtle pulse on CTA */
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 192, 96, 0.3); }
  50% { box-shadow: 0 0 0 12px rgba(232, 192, 96, 0); }
}

/* Mobile menu transitions */
#mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

/* Map dark mode */
iframe[src*="google.com/maps"] {
  filter: invert(90%) hue-rotate(180deg) brightness(0.9) contrast(1.1);
}

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

/* Selection */
::selection {
  background: rgba(171, 28, 54, 0.6);
  color: #ffffff;
}
