/* ============================================
   TAQUERIA BANDAS — Custom Styles
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background-color: #d94f22;
  color: #FDF8F0;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
  background: #d94f22;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b83a15;
}

/* Navigation */
.nav-link {
  position: relative;
}

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

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

/* Mobile Menu */
#mobile-menu.open {
  opacity: 1 !important;
  pointer-events: all !important;
}

#mobile-menu.open .mobile-nav-link {
  animation: slideIn 0.3s ease forwards;
}

#mobile-menu .mobile-nav-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu .mobile-nav-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu .mobile-nav-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu .mobile-nav-link:nth-child(4) { animation-delay: 0.2s; }

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Menu Items */
.menu-item {
  border-left: 2px solid #f4e9d8;
  padding-left: 1.5rem;
  transition: border-color 0.3s ease, padding-left 0.3s ease;
}

.menu-item:hover {
  border-left-color: #d94f22;
  padding-left: 2rem;
}

/* Scroll Reveal */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
  }

  .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; }
}

/* Header scroll state */
#site-header.scrolled {
  box-shadow: 0 1px 20px rgba(26, 18, 8, 0.08);
}

/* Image hover zoom */
.aspect-square.overflow-hidden img,
.aspect-\[4\/5\].overflow-hidden img {
  transition: transform 0.6s ease;
}

.aspect-square.overflow-hidden:hover img,
.aspect-\[4\/5\].overflow-hidden:hover img {
  transform: scale(1.05);
}

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

/* Print */
@media print {
  #site-header,
  .reveal {
    display: block !important;
    opacity: 1 !important;
  }
  
  body {
    background: white !important;
  }
}
