/* Custom styles for Meme's Diner */

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

/* Prevent flash of hidden content — progressive enhancement for scroll reveals */
.scroll-reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Subtle image hover */
img {
  transition: transform 0.4s ease;
}

/* Navbar shadow on scroll */
#nav.scrolled {
  box-shadow: 0 1px 12px rgba(27, 67, 50, 0.08);
}

/* Selection color */
::selection {
  background-color: #1B4332;
  color: #FDFBF7;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDFBF7;
}
::-webkit-scrollbar-thumb {
  background: #b9ccbe;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8fb093;
}
