/* Custom styles for Hunt's Dairy Bar */

/* Smooth scroll offset for fixed nav */
section[id] {
  scroll-margin-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #031624;
}
::-webkit-scrollbar-thumb {
  background: #153a5c;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #204c78;
}

/* Selection color */
::selection {
  background: rgba(46, 184, 104, 0.3);
  color: #f0f4f8;
}

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

/* Image lazy loading fade */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.4s ease;
}
img[loading="lazy"].loaded {
  opacity: 1;
}

/* Reduced motion - all animations off */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .card-float, .card-float-delay, .card-float-slow {
    animation: none !important;
  }
  img[loading="lazy"] {
    opacity: 1 !important;
    transition: none !important;
  }
}

/* Mobile nav transitions */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
#mobile-menu.open {
  max-height: 300px;
}

/* Navbar glass effect when scrolled */
.nav-scrolled {
  background: rgba(3, 22, 36, 0.85) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(21, 58, 92, 0.5);
}

/* Subtle pulse for scroll indicator */
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
