/* ============================================
   SnoCool SnoBalls — Custom Styles
   ============================================ */

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: #046C4E;
  color: #FDF9F3;
}

/* Marquee Animation */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  animation: marquee 30s linear infinite;
}

/* Flavor card entrance animation (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .flavor-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .flavor-card.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Nav scroll state */
nav.scrolled {
  background: rgba(253, 249, 243, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(4, 108, 78, 0.08);
}

nav.scrolled .logo-text {
  color: #025239 !important;
}

nav.scrolled a:not(.bg-emerald-700) {
  color: rgba(2, 82, 57, 0.7) !important;
}

nav.scrolled a:not(.bg-emerald-700):hover {
  color: #046C4E !important;
}

nav.scrolled .hamburger span {
  background: #025239 !important;
}

/* Mobile menu open state */
.mobile-menu-open #mobileMenu {
  opacity: 1 !important;
  pointer-events: all !important;
}

.mobile-menu-open #menuToggle {
  z-index: 51;
}

.mobile-menu-open #bar1 {
  transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-open #bar2 {
  opacity: 0;
}

.mobile-menu-open #bar3 {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 1.5rem;
}

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

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

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

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

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