/* Custom style overrides and animations for The Test Brewery */

/* Smooth scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #faf5f7; }
::-webkit-scrollbar-thumb { background: #d9a8be; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #c47a96; }

/* Selection color */
::selection {
  background: rgba(168, 85, 112, 0.15);
  color: #4b242f;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid #a85570;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Nav scroll effect */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(250, 245, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 61, 86, 0.06);
  transition: box-shadow 0.3s;
}
.nav.scrolled {
  box-shadow: 0 4px 24px rgba(90, 41, 56, 0.08);
}

/* Subtle gradient animation on hero */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero {
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite;
}

/* Product card image hover */
.product-card img {
  transition: transform 0.5s ease;
}
.product-card:hover img {
  transform: scale(1.05);
}
.product-card { overflow: hidden; }

/* Testimonial card shimmer on hover */
.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  transition: left 0.5s;
}
.testimonial-card { position: relative; overflow: hidden; }
.testimonial-card:hover::before { left: 100%; }

/* Ensure all sections have proper spacing on mobile */
@media (max-width: 768px) {
  .hero-buttons { flex-direction: column; }
  .hero-buttons a { text-align: center; justify-content: center; }
}

/* Print styles */
@media print {
  .nav, .mobile-menu, .map-section { display: none; }
  body { color: #000; background: #fff; }
  .hero { min-height: auto; background: #fff; }
}
