/* Custom styles for Bueno Bueno Taqueria */

/* Smooth scroll offset for fixed navbar */
section[id] {
  scroll-margin-top: 80px;
}

/* Navbar scroll state */
#navbar.scrolled {
  box-shadow: 0 1px 20px rgba(108, 19, 44, 0.08);
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    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);
  }
}

/* Ensure reveal content is visible without JS */
@supports not (animation: reveal 0.7s) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Button hover micro-interactions */
a, button {
  -webkit-tap-highlight-color: transparent;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf8f0;
}
::-webkit-scrollbar-thumb {
  background: #d4cbc0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b8aa9a;
}

/* Selection color */
::selection {
  background: #fce7eb;
  color: #6c132c;
}

/* Image loading placeholder */
img {
  background-color: #f5f2ed;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid #c72551;
  outline-offset: 2px;
}

/* Mobile menu transition */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}
#mobile-menu.open {
  max-height: 400px;
  opacity: 1;
}
#mobile-menu.hidden {
  opacity: 0;
}
