/* Custom styles for Sunnyday Market and Deli */

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

/* Header scroll state */
#site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Navigation link underline animation */
.nav-link {
  position: relative;
}

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

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

/* Mobile menu transitions */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

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

/* Fade-in animation for scroll reveals */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.fade-in-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.fade-in-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.fade-in-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.fade-in-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; }
.fade-in-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.fade-in-stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }

.fade-in-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Hero image hover */
.group:hover .group-hover\:-translate-y-1 {
  transform: translateY(-0.25rem);
}

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

/* Custom selection color */
::selection {
  background: #99f6e4;
  color: #134e4a;
}

/* Subtle gradient text utility */
.text-gradient {
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Map container responsive */
iframe {
  border-radius: 1rem;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .fade-in,
  .fade-in-stagger > * {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .group:hover .group-hover\:scale-105 {
    transform: none;
  }
}
