/* Custom styles for Willy's Mex Mex Grill */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #2a1117;
}
::-webkit-scrollbar-thumb {
  background: #743041;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8c3f50;
}

/* Selection color */
::selection {
  background: rgba(251, 191, 36, 0.3);
  color: #faf5f7;
}

/* Reveal animation - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fallback: always visible if JS disabled or reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Nav transition states */
nav.scrolled {
  background: rgba(42, 17, 23, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(116, 48, 65, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu animation */
#mobileMenu.opening .mobile-link {
  animation: slideIn 0.3s ease forwards;
  opacity: 0;
}
#mobileMenu.opening .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobileMenu.opening .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobileMenu.opening .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobileMenu.opening .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobileMenu.opening .mobile-link:nth-child(5) { animation-delay: 0.25s; }
#mobileMenu.opening .mobile-link:nth-child(6) { animation-delay: 0.3s; }

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hamburger animation */
#menuToggle.active .nav-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#menuToggle.active .nav-line:nth-child(2) {
  opacity: 0;
}
#menuToggle.active .nav-line:nth-child(3) {
  width: 24px;
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Image hover container */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* Subtle glow on amber elements */
.bg-amber-500 {
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.15);
}
.bg-amber-500:hover {
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.25);
}

/* Card hover effects */
.group {
  will-change: transform;
}

/* Map dark mode override */
iframe[title*="Google Maps"] {
  border-radius: 0.75rem;
}

/* Prevent layout shift on images */
img {
  content-visibility: auto;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Remove tap highlight on mobile */
a, button {
  -webkit-tap-highlight-color: transparent;
}
