/* Taqueria Ceibas Tuzantla — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf9f3;
}
::-webkit-scrollbar-thumb {
  background: #b92f2f;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9a2525;
}

/* Selection */
::selection {
  background: #b92f2f;
  color: #fefdfb;
}

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

/* Image aspect ratio fallbacks */
img {
  max-width: 100%;
  height: auto;
}

/* Subtle pattern for cream backgrounds */
.bg-cream-50 {
  background-color: #fefdfb;
  background-image: radial-gradient(circle at 1px 1px, rgba(127, 31, 31, 0.03) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Navbar transition */
#navbar.scrolled {
  background: rgba(254, 253, 251, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(127, 31, 31, 0.1);
}

#navbar.scrolled .font-serif,
#navbar.scrolled .text-burgundy-900 {
  color: #6b1a1a !important;
}

#navbar.scrolled .text-burgundy-600 {
  color: #9a2525 !important;
}

/* Mobile menu animations */
.mobile-link {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

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

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

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

/* Print styles */
@media print {
  nav, #gallery, .reveal {
    display: none;
  }
  body {
    color: #000;
    background: #fff;
  }
}
