/* Custom styles for La Sabrosita */

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

/* Navbar transition */
#navbar {
  transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
  background-color: rgba(255, 248, 245, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(116, 28, 54, 0.08);
}

/* Menu card hover */
.menu-card {
  will-change: transform;
}

/* Gallery item hover */
.gallery-item {
  cursor: pointer;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #FFF8F5;
}

::-webkit-scrollbar-thumb {
  background: #b51f44;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #941636;
}

/* Selection color */
::selection {
  background: #f9d0d8;
  color: #67122a;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Scroll reveal base — content is visible by default */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .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; }
}
