/* Custom styles for Laum Hibachi */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f9f1fc;
}
::-webkit-scrollbar-thumb {
  background: #903598;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #76287e;
}

/* Navbar transition */
#navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
#navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 20px rgba(95, 32, 101, 0.08);
  backdrop-filter: blur(10px);
}

/* Hero image parallax-like effect */
.hero-bg {
  will-change: transform;
}

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

/* Gallery image hover */
.rounded-2xl.overflow-hidden img {
  display: block;
}

/* Mobile menu animation */
#mobile-menu {
  animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* Ensure images don't overflow */
img {
  max-width: 100%;
  height: auto;
}
