/* Custom styles for JDubs Brewing Company Taproom */

/* Smooth focus styles */
*:focus-visible {
  outline: 2px solid #166534;
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background: #166534;
  color: #fdf9f0;
}

/* Navbar scroll state */
nav.scrolled {
  box-shadow: 0 4px 20px rgba(5, 46, 22, 0.3);
}

/* Hero parallax-like subtle effect */
#hero {
  background-attachment: fixed;
}

@media (max-width: 768px) {
  #hero {
    background-attachment: scroll;
  }
}

/* Button ripple effect */
button, a {
  -webkit-tap-highlight-color: transparent;
}

/* Image loading placeholder */
img {
  background: linear-gradient(135deg, #166534 0%, #14532d 100%);
  background-size: cover;
  background-position: center;
}

/* Custom scrollbar for the page */
html {
  scrollbar-width: thin;
  scrollbar-color: #166534 #fdf9f0;
}

/* Print styles */
@media print {
  nav, #contact, .reveal { display: none; }
  body { background: white; color: black; }
}

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

/* High contrast mode support */
@media (forced-colors: active) {
  .bg-emerald-950 { background: Canvas; }
  .text-emerald-950 { color: CanvasText; }
}
