/* Custom styles for Archaic Craft Brewery */

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

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

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

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(240, 251, 246, 0.95) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 1px 0 rgba(10, 22, 40, 0.06);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
  opacity: 0.4;
}

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

/* Beer card image zoom */
.beer-card img {
  will-change: transform;
}

/* Feature card hover */
.feature-card {
  will-change: transform, box-shadow;
}

.feature-card:hover {
  transform: translateY(-4px);
}

/* Mobile menu */
.mobile-menu-link {
  transition: opacity 0.3s ease;
}

/* Scroll reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .animate-marquee {
    animation: none;
  }
  
  html {
    scroll-behavior: auto;
  }
  
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Selection color */
::selection {
  background: #7DD9C8;
  color: #0A1628;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #7DD9C8;
}

/* Focus visible styles */
:focus-visible {
  outline: 2px solid #7DD9C8;
  outline-offset: 2px;
}

/* Loading state for form */
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
