/* Custom styles for 503 Bagels & Pizza */

html {
  scroll-behavior: smooth;
}

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

/* Subtle gradient background */
body {
  background-image: linear-gradient(180deg, #f0fdf9 0%, #ffffff 100%);
  background-attachment: fixed;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0fdf9;
}
::-webkit-scrollbar-thumb {
  background: #99f6e4;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #5eead4;
}

/* Selection color */
::selection {
  background: #99f6e4;
  color: #0f1d4a;
}

/* Nav transition */
#nav {
  transition: box-shadow 0.3s ease;
}

#nav.scrolled {
  box-shadow: 0 1px 20px rgba(15, 29, 74, 0.08);
}

/* Smooth image loading */
img {
  transition: opacity 0.3s ease;
}

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

/* Mobile menu animation */
#mobile-menu {
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
