:root {
  --blue:       #003087;
  --blue-mid:   #1a4fa0;
  --blue-light: #b8dcf5;
  --gold:       #E8B100;
  --gold-light: #F5CA30;
  --green:      #4a9e5c;
  --ground:     #FAFAF4;
  --text:       #0A1628;
  --muted:      #5a6a7a;
  --white:      #ffffff;
  --r:          8px;
  --pad:        clamp(1.25rem, 5vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'IBM Plex Sans', system-ui, sans-serif; background: var(--ground); color: var(--text); line-height: 1.65; }

/* ── STORE ANNOUNCEMENT MODAL ────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(10,22,40,0.6);
}
.modal-overlay.hidden { display: none; }

.modal-box {
  position: relative;
  max-width: 30rem;
  width: 100%;
  background: var(--white);
  border-top: 4px solid var(--gold);
  border-radius: var(--r);
  padding: 2.25rem 2rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  text-align: center;
}
.modal-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  color: var(--blue);
  margin-top: 0.5rem;
  line-height: 1.3;
}
.modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  border: none;
  background: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.modal-close:hover { color: var(--blue); }

/* ── TOP BAR ──────────────────────────────────── */
.sticky-bar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

/* Logo (left) + nav (true page-centre via the 1fr/auto/1fr trick), same row;
   filters sit on the row below. */
.sticky-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 0.65rem var(--pad);
  border-bottom: 1px solid rgba(0,48,135,0.08);
}

.sticky-logo { height: clamp(70px, 8vw, 96px); width: auto; display: block; justify-self: start; }

.main-nav ul {
  display: flex;
  list-style: none;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

/* Contact data (right of nav), two stacked rows, vertically centred */
.top-contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 0.3rem;
  justify-self: end;
  font-size: 1rem;
}
.top-contact a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,48,135,0.2);
  transition: color 0.15s;
}
.top-contact a:hover { color: var(--gold); }

/* Desktop renders contact next to the nav; mobile renders it inside the
   pinned filter bar instead (see Responsive section) — only one is shown. */
.top-contact--mobile { display: none; }

.main-nav a {
  color: var(--blue);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.15s;
}
.main-nav a:hover         { color: var(--gold); }
.main-nav a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Filter bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.6rem var(--pad);
  background: rgba(0,48,135,0.02);
  flex-wrap: wrap;
}

/* Reserves the filter bar's height in normal flow once it switches to
   position:fixed on mobile (see .filter-bar.is-pinned), so pinning it
   doesn't yank the page content up underneath it. */
.filter-bar-spacer { display: none; }

.filter-group {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.fbtn {
  background: transparent;
  border: 1.5px solid rgba(0,48,135,0.22);
  color: var(--blue);
  padding: 4px 13px;
  border-radius: 100px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.77rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.fbtn:hover         { border-color: var(--blue); }
.fbtn.active        { background: var(--blue); border-color: var(--blue); color: var(--gold-light); }
.fbtn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ── SECTIONS ─────────────────────────────────── */
#beers, #order, #store { scroll-margin-top: 110px; }
.beer-card { scroll-margin-top: 110px; }

.section-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 5rem var(--pad);
}

.section-head {
  position: relative;
  padding-bottom: 2.5rem;
  padding-right: clamp(90px, 14vw, 170px);
}

.section-head-text { display: flex; flex-direction: column; justify-content: center; }

.section-title-img {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: auto;
  display: block;
}

.credit-link {
  display: block;
  padding: 2px var(--pad);
  color: var(--ground);
  font-size: 0.6rem;
  text-decoration: none;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--blue);
  line-height: 1;
  letter-spacing: -0.01em;
}

/* ── BEER CARDS ───────────────────────────────── */
.beer-list { border-top: 1px solid rgba(0,48,135,0.1); }

.beer-card {
  display: grid;
  grid-template-columns: 3rem 260px 1fr;
  gap: 0 2.5rem;
  align-items: start;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(0,48,135,0.1);
}

.beer-card.hidden { display: none; }

.beer-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--blue);
  opacity: 0.3;
  padding-top: 0.4rem;
}

.beer-img-wrap {
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #d8e4f0;
}

.beer-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.beer-card:hover .beer-img { transform: scale(1.04); }

.beer-body { padding-top: 0.25rem; }

.beer-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.05;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

/* Properties */
.props { margin-bottom: 1.25rem; font-size: 0.87rem; }

.prop-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.28rem 0;
  border-bottom: 1px solid rgba(0,48,135,0.06);
}
.prop-row:last-child { border-bottom: none; }

.prop-key {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  min-width: 56px;
  flex-shrink: 0;
}

.prop-val { color: var(--text); }

.abv-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.82rem;
}
.abv-zero   { background: var(--green); color: var(--blue); }
.abv-medium { background: var(--blue-light); color: var(--blue); }
.abv-strong { background: var(--gold); color: var(--white); }

.ibu-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ibu-bar-track {
  width: 90px; height: 5px;
  background: rgba(0,48,135,0.12);
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}

.ibu-bar-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 3px;
}

.ibu-num { font-size: 0.82rem; color: var(--muted); }

/* Description + footer */
.beer-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.78;
  margin-bottom: 0.75rem;
}

.inline-link {
  color: var(--blue-mid);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,48,135,0.25);
  transition: color 0.15s;
}
.inline-link:hover { color: var(--blue); }

.beer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.official-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--blue-mid);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,48,135,0.2);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.official-link:hover         { color: var(--blue); border-color: var(--blue); }
.official-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.share-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  background: transparent;
  border: 1.5px solid rgba(0,48,135,0.22);
  color: var(--blue);
  padding: 5px 12px;
  border-radius: 100px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.share-btn:hover         { border-color: var(--blue); background: rgba(0,48,135,0.05); }
.share-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.share-icon { flex-shrink: 0; }

.share-toast {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: var(--blue);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.share-toast.visible { opacity: 1; transform: translateY(0); }

.no-results {
  display: none;
  padding: 3rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
}

/* ── ORDER ────────────────────────────────────── */
#order { background: var(--blue); }

.order-layout {
  max-width: 1160px;
  margin: 0 auto;
  padding: 5rem var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

#order .eyebrow       { color: var(--gold); }
#order .section-title { color: var(--white); }
#order .section-desc  { color: rgba(255,255,255,0.62); margin-top: 0.9rem; font-size: 1.05rem; max-width: 520px; }
#order .section-note  { color: rgba(255,255,255,0.42); margin-top: 0.5rem; font-size: 0.88rem; }

.order-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; align-self: center; }

.order-contact-link {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: color 0.15s, border-color 0.15s;
}
.order-contact-link:hover { color: var(--gold-light); border-color: var(--gold-light); }

/* ── STORE ────────────────────────────────────── */
.store-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }

.store-dl dt {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 1.75rem;
}
.store-dl dt:first-child { margin-top: 0; }
.store-dl dd { margin-top: 0.35rem; color: var(--muted); line-height: 1.85; }

.store-dl a {
  color: var(--blue-mid);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,48,135,0.2);
  transition: color 0.15s;
}
.store-dl a:hover { color: var(--blue); }

.map-box {
  aspect-ratio: 4 / 3;
  border-radius: var(--r);
  overflow: hidden;
  border: 2px solid rgba(0,48,135,0.15);
}
.map-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ── FOOTER ───────────────────────────────────── */
footer {
  background: var(--blue);
  border-top: 3px solid rgba(232,177,0,0.25);
  padding: 1.75rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-brand { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 1.4rem; color: var(--gold); letter-spacing: 0.05em; }
.footer-copy  { color: rgba(255,255,255,0.42); font-size: 0.83rem; }
.footer-prost { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.2rem; letter-spacing: 0.2em; color: rgba(255,255,255,0.18); }

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 960px) {
  .beer-card { grid-template-columns: 2.5rem 200px 1fr; gap: 0 1.75rem; }
}

@media (max-width: 720px) {
  .beer-card    { grid-template-columns: 1fr; gap: 1.25rem; padding: 2rem 0; }
  .beer-num     { display: none; }
  .beer-img-wrap { width: min(60vw, 260px); margin: 0 auto; }
  .order-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .store-layout { grid-template-columns: 1fr; }

  /* Logo + nav scroll away normally; only contact data + filters stay pinned.
     script.js watches .sticky-top with IntersectionObserver and switches
     .filter-bar to position:fixed once it scrolls out of view. */
  .sticky-bar   { position: static; border-bottom: none; box-shadow: none; }
  .sticky-top   { grid-template-columns: 1fr; row-gap: 0.6rem; }
  .sticky-logo  { justify-self: center; }
  .main-nav ul  { justify-content: center; gap: 1.25rem; }
  .top-contact--desktop { display: none; }

  .filter-bar   { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .filter-bar.is-pinned {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--white);
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  }
  .top-contact--mobile {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .main-nav ul { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
