/* Custom styles for Swamp City Eats */

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

/* Navigation styles */
#site-header {
  background: rgba(254, 253, 249, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

#site-header.scrolled {
  background: rgba(254, 253, 249, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #d14a28;
  transition: width 0.3s ease;
  border-radius: 1px;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-nav-link {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  transition: background-color 0.2s ease;
}

.mobile-nav-link:hover {
  background: rgba(209, 74, 40, 0.08);
}

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

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
  }

  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero image parallax-like subtle effect */
#hero img {
  transition: transform 0.6s ease;
}

#hero:hover img {
  transform: scale(1.02);
}

/* Card hover effects */
.bg-sand-50 {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

/* Focus styles */
input:focus, textarea:focus, select:focus {
  outline: none;
}

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

::-webkit-scrollbar-track {
  background: #fdf9ee;
}

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

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

/* Selection color */
::selection {
  background: #f3b4a0;
  color: #752517;
}

/* Mobile menu animation */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  opacity: 0;
}

#mobile-menu.open {
  max-height: 400px;
  opacity: 1;
}

/* Subtle pattern overlay for sections */
.bg-sand-50::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.03) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
}

/* Ensure images don't overflow rounded containers */
img {
  max-width: 100%;
  height: auto;
}

/* Print styles */
@media print {
  #site-header, #mobile-menu, .scroll-reveal {
    display: none;
  }

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