/* Custom styles for Erwina's Inasal Filipino BBQ */

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

/* Scroll reveal base — content is visible by default, JS adds animation */
.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal.animated {
    opacity: 0;
    transform: translateY(30px);
  }
  .scroll-reveal.animated.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar scroll effect */
#navbar.scrolled {
  box-shadow: 0 4px 20px rgba(78, 34, 46, 0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #faf5f7;
}
::-webkit-scrollbar-thumb {
  background: #d9a3b8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a84f6c;
}

/* Hero gradient animation */
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.05); }
}

#hero .absolute.rounded-full {
  animation: float 8s ease-in-out infinite;
}

#hero .absolute.rounded-full:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 10s;
}

/* Card hover effects */
.rounded-3xl:hover {
  transform: translateY(-4px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Menu list item hover */
.flex.justify-between.items-baseline:hover {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding-left: 8px;
  margin-left: -8px;
  transition: background 0.2s ease;
}

/* Gallery image overlay */
.overflow-hidden {
  position: relative;
}

.overflow-hidden::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(78, 34, 46, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.overflow-hidden:hover::after {
  opacity: 1;
}

/* Mobile menu transitions */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Selection color */
::selection {
  background: #d9a3b8;
  color: #4e222e;
}
