/* Base & Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FDFCF7; }
::-webkit-scrollbar-thumb { background: #B3C9B3; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #7FA87F; }

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(253, 252, 247, 0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(27, 67, 50, 0.08), 0 4px 20px rgba(27, 67, 50, 0.06);
}

.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #D4A843;
  transition: all 0.2s ease;
  transform: translateX(-50%);
}
.nav-link:hover::after { width: 60%; }

/* Beer card hover */
.beer-card { cursor: pointer; }

/* Event card hover */
.event-card { cursor: pointer; }

/* Selection color */
::selection { background: #D4A843; color: #0E251C; }

/* Float animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* Scroll reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .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; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Mobile menu animation */
#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
#mobileMenu.open {
  max-height: 400px;
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
  outline: none;
}

/* Smooth image loading */
img {
  image-rendering: -webkit-optimize-contrast;
}

/* Geometric shape decorations */
.geo-dots::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: #D4A843;
  border-radius: 50%;
  box-shadow: 12px 0 0 #D4A843, 24px 6px 0 #7FA87F, 6px 12px 0 #D4A843;
  opacity: 0.5;
}
