/* Custom styles for Nancy Restaurant */

@keyframes fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fade-in 0.8s ease-out forwards;
}

/* Scroll reveal — progressive enhancement, only active when JS runs and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Always visible regardless of JS */
@media not all and (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #e6f7f2;
}
::-webkit-scrollbar-thumb {
  background: #3aa88a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2d8a70;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #3aa88a;
  outline-offset: 2px;
}

/* Navbar transition */
#navbar {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#navbar.scrolled {
  background: rgba(10, 22, 40, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Hero text animation stagger */
.animate-fade-in {
  animation-delay: 0.2s;
  animation-fill-mode: both;
}

/* Image hover zoom container */
.rounded-2xl.overflow-hidden img {
  display: block;
}
