/* Custom styles for Winnebago Family Restaurant */

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

/* Selection color */
::selection {
  background-color: #E05A3B;
  color: #ffffff;
}

/* Scroll reveal animations — progressive enhancement, hidden by default via JS */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .reveal.animated {
    opacity: 1;
    transform: none;
  }
}

/* Navbar background on scroll */
.navbar-scrolled {
  background-color: rgba(13, 13, 13, 0.95) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Image hover effect */
img {
  transition: transform 0.5s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #141414;
}
::-webkit-scrollbar-thumb {
  background: #3a3a3a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #E05A3B;
}

/* Mobile menu transitions */
#mobile-menu {
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

/* Body scroll lock when mobile menu is open */
body.menu-open {
  overflow: hidden;
}

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

/* Subtle text rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ensure hero is visible immediately */
section {
  contain: layout style paint;
}
