/* ============================================
   Big City Pizza — Custom Styles
   ============================================ */

/* Base Reset & Typography */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for grid items */
.reveal[data-reveal].delay-100 { transition-delay: 0.1s; }
.reveal[data-reveal].delay-200 { transition-delay: 0.2s; }
.reveal[data-reveal].delay-300 { transition-delay: 0.3s; }
.reveal[data-reveal].delay-400 { transition-delay: 0.4s; }
.reveal[data-reveal].delay-500 { transition-delay: 0.5s; }

/* Navbar Transition */
#navbar.scrolled {
  background-color: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

/* Selection Color */
::selection {
  background-color: rgba(230, 176, 0, 0.3);
  color: #102a43;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #102a43;
}

::-webkit-scrollbar-thumb {
  background: #334e68;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e6b000;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reveal[data-reveal] {
    opacity: 1;
    transform: none;
  }

  .reveal[data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  img,
  .group:hover img {
    transition: none;
    transform: none;
  }
}

/* Mobile Menu Transitions */
#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Print Styles */
@media print {
  nav,
  #reviews,
  .reveal {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  .hero-bg {
    background: #102a43 !important;
    color: #fff !important;
  }
}
