/* Custom styles for Baskin-Robbins Jonesville */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f0f11;
}
::-webkit-scrollbar-thumb {
  background: #f05a28;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d94418;
}

/* Selection color */
::selection {
  background: #f05a28;
  color: white;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile menu animation */
#mobileMenu {
  animation: slideDown 0.2s ease-out;
}

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

/* Scroll reveal base — always visible by default */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only animate when JS adds the class (progressive enhancement) */
.js .scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.js .scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
}

/* Nav scroll state */
.nav-scrolled {
  background: rgba(15, 15, 17, 0.98) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}
