/* James County Brewery — Custom Styles */

/* Smooth scroll 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: #F8C4B0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #E05020;
}

/* Selection */
::selection {
  background: #F8C4B0;
  color: #661F10;
}

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

/* Navbar glass effect */
.nav-scrolled {
  background: rgba(253, 249, 243, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(102, 31, 16, 0.08);
}

/* Mobile menu transition */
#mobileMenu {
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile links */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(224, 80, 32, 0.08);
  text-decoration: none;
}
.mobile-link:last-child {
  border-bottom: none;
}
.mobile-link:hover {
  color: #E05020;
}

/* Beer card image container */
.card-hover img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle pattern overlay for sections */
.barrel-pattern {
  background-color: #FDF9F3;
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(248, 196, 176, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(237, 174, 94, 0.12) 0%, transparent 50%);
}

/* Hero parallax-like effect (subtle) */
#hero img {
  will-change: transform;
}

/* Button hover glow */
button:hover,
a:hover {
  /* handled by individual classes */
}

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