/* Custom styles for The Stockroom */

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

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

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

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

/* Scroll reveal animated via JS only (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal.is-hidden {
    opacity: 0;
    transform: translateY(30px);
  }
}

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

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

/* Navbar glass effect on scroll */
nav.scrolled {
  background: rgba(254, 253, 248, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

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

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

::-webkit-scrollbar-thumb {
  background: #065f46;
  border-radius: 5px;
}

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

/* Selection color */
::selection {
  background: #a7f3d0;
  color: #065f46;
}

/* Image hover zoom container */
.rounded-3xl.overflow-hidden img {
  display: block;
}

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

/* Mobile menu active state */
.mobile-link {
  border-bottom: 1px solid rgba(6, 95, 70, 0.1);
}

.mobile-link:last-child {
  border-bottom: none;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .animate-marquee {
    animation: none;
  }
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-reveal.is-hidden {
    opacity: 1;
    transform: none;
  }
  .rounded-3xl.overflow-hidden img {
    transition: none;
  }
  .rounded-3xl.overflow-hidden img:hover {
    transform: none;
  }
}
