/* ===== BASE & RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }
  .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* ===== NAVBAR ===== */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(253, 252, 250, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .nav-link {
  color: #2d5577;
}

#navbar.scrolled .font-display {
  color: #0d1b2a;
}

/* ===== MOBILE MENU ===== */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  transition: opacity 0.3s ease;
}

/* ===== BUTTON HOVER EFFECTS ===== */
a[href="#beers"],
a[href="#story"],
a[href="#taproom"],
a[href="#visit"],
a[href="#contact"] {
  position: relative;
}

/* ===== SELECTION ===== */
::selection {
  background: #bcecd4;
  color: #0d1b2a;
}

/* ===== FOCUS ===== */
:focus-visible {
  outline: 2px solid #88ddb8;
  outline-offset: 2px;
}

/* ===== FORM INPUTS ===== */
input, textarea {
  font-family: inherit;
}

/* ===== MAP CONTAINER ===== */
iframe {
  border-radius: 0 0 1.5rem 1.5rem;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: #88ddb8;
}
