/* Graham's Tavern — custom styles */

/* Base */
*, *::before, *::after { box-sizing: border-box; }

/* Scrollbar styling */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fdfcfa; }
::-webkit-scrollbar-thumb { background: #c5dfb9; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #99c788; }

/* Selection */
::selection { background: #99c788; color: #1c3416; }

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

/* Mobile menu animations */
.menu-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #1c3416;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-toggle.active .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#menu-toggle.active .menu-bar:nth-child(2) {
  opacity: 0;
}
#menu-toggle.active .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Smooth image loading */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card-lift {
    transition: none;
  }
  .card-lift:hover {
    transform: none;
  }
  #mobile-menu {
    transition: none;
  }
  #navbar {
    transition: none;
  }
}
