/* Custom styles for Three Forks Cafe */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf9f3;
}
::-webkit-scrollbar-thumb {
  background: #d4a0a8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a1243c;
}

/* Selection color */
::selection {
  background: #fce7eb;
  color: #6c1d2d;
}

/* Fade-in animation for scroll reveals (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
}

/* Mobile menu transitions */
#mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

/* Navbar glass effect */
.navbar-scrolled {
  background: rgba(254, 253, 251, 0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(108, 29, 45, 0.08);
}

/* Image hover zoom */
img {
  transition: transform 0.5s ease;
}

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

/* Subtle pattern for cream backgrounds */
.bg-cream-50 {
  background-color: #fefdfb;
  background-image: radial-gradient(ellipse at 20% 50%, rgba(252, 231, 235, 0.3) 0%, transparent 50%);
}

/* Nav link underline animation */
a[href="#menu"]:after,
a[href="#about"]:after,
a[href="#visit"]:after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #d94f6e;
  transition: width 0.3s ease;
}

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