/* Cedar Cliff Diner — Custom Styles */
/* Additional custom styles that complement the inline styles in index.html */

/* Ensure smooth scrolling for all browsers */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Prevent layout shift on images */
img {
  max-width: 100%;
  height: auto;
}

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

/* Print styles */
@media print {
  body {
    background: white;
    color: black;
  }
  #navbar,
  #mobile-menu,
  .reveal {
    display: none !important;
  }
}

/* Subtle grain texture overlay (applied via JS for progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
  }
}

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