/* ============================================================
   FLORIDA AVENUE BREWING CO. — Brewed for Sharing
   Palette sampled from the brewery's own 2026 menu system.
   ============================================================ */

:root {
  --slate-900: #22303A;
  --slate-800: #2E3E4A;
  --slate-700: #3C4854;
  --slate-600: #4C5C68;
  --slate-500: #6A7B87;

  --gold:      #C9A063;
  --gold-lt:   #D8A86C;
  --gold-deep: #A8823F;

  --cream:     #FCFCF0;
  --cream-2:   #F5F1DC;
  --sand:      #F0CCA8;
  --sand-deep: #E0B48C;
  --coral:     #EE8E6C;

  --ink:       #22303A;
  --ink-soft:  rgba(34, 48, 58, 0.72);
  --cream-soft: rgba(252, 252, 240, 0.68);

  --font-display: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-script:  "Kaushan Script", cursive;
  --font-body:    "Poppins", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 72px);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--slate-900);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.loading { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--gold); color: var(--slate-900); }

/* ---------------- preloader ---------------- */
#loader {
  position: fixed; inset: 0; z-index: 300;
  background: var(--slate-900);
  display: grid; place-content: center; justify-items: center;
  gap: 26px;
  transition: opacity .7s ease, visibility .7s ease;
}
#loader.hide { opacity: 0; visibility: hidden; }
/* Same reasoning as .reveal: never trap the page behind the loader without JS. */
html:not(.js) #loader { display: none; }
html:not(.js) body.loading { overflow: auto; }
.loader-mark { text-align: center; }
.loader-mark .script {
  font-family: var(--font-script); color: var(--gold);
  font-size: clamp(38px, 7vw, 62px); line-height: 1;
}
.loader-mark .word {
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: .34em; font-size: clamp(13px, 2.4vw, 19px);
  color: var(--cream); margin-top: 6px;
}
.loader-track {
  width: min(260px, 60vw); height: 3px; border-radius: 3px;
  background: rgba(252, 252, 240, .16); overflow: hidden;
}
#loader-bar {
  height: 100%; width: 100%; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.loader-note {
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--cream-soft);
}

/* ---------------- nav ---------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 16px var(--pad);
  transition: background .45s ease, backdrop-filter .45s ease, padding .45s ease,
              box-shadow .45s ease;
}
.nav.solid {
  background: rgba(34, 48, 58, .88);
  backdrop-filter: blur(14px) saturate(1.2);
  padding-top: 11px; padding-bottom: 11px;
  box-shadow: 0 1px 0 rgba(201, 160, 99, .28);
}
.brand { display: flex; align-items: center; line-height: 1; }
.brand img { height: 42px; width: auto; transition: height .45s ease; }
.nav.solid .brand img { height: 36px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 12px; font-weight: 600; letter-spacing: .17em;
  text-transform: uppercase; color: var(--cream);
  opacity: .84; transition: opacity .25s, color .25s;
  white-space: nowrap; /* never let a label break mid-phrase in the bar */
}
.nav-links a:hover { opacity: 1; color: var(--gold-lt); }
.nav-cta {
  border: 1.5px solid var(--gold);
  color: var(--gold-lt) !important;
  padding: 9px 20px; border-radius: 999px; opacity: 1 !important;
  transition: background .3s, color .3s;
}
.nav-cta:hover { background: var(--gold); color: var(--slate-900) !important; }
.burger {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 8px; flex-direction: column; gap: 5px;
}
.burger span { width: 24px; height: 2px; background: var(--cream); display: block; }

/* ---------------- scrub sections ---------------- */
.cinematic { position: relative; background: var(--slate-900); }
.cinematic .sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
}
.cinematic canvas { width: 100%; height: 100%; display: block; }

.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 85% at 50% 45%, transparent 38%, rgba(34,48,58,.62) 100%),
    linear-gradient(to bottom, rgba(34,48,58,.72) 0%, transparent 22%, transparent 62%, rgba(34,48,58,.92) 100%);
}
.grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  text-align: center; padding: 0 var(--pad); pointer-events: none;
}
/* Soft centred scrim — the hero copy sits directly over the can, and without
   this the smaller lines lose contrast against the label art. */
.overlay::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(58% 46% at 50% 50%,
    rgba(34, 48, 58, .62) 0%, rgba(34, 48, 58, .42) 45%, transparent 78%);
}
.reveal-line { grid-area: 1 / 1; will-change: opacity, transform; max-width: 900px; }
.reveal-line .eyebrow {
  font-size: clamp(10px, 1.5vw, 12px); letter-spacing: .42em;
  text-transform: uppercase; color: var(--gold-lt);
  margin: 0 0 18px;
}
.reveal-line h1, .reveal-line h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(38px, 7.4vw, 92px);
  line-height: .98; letter-spacing: -.02em; margin: 0;
  text-shadow: 0 8px 44px rgba(34, 48, 58, .68);
}
.reveal-line h1 .script, .reveal-line h2 .script {
  font-family: var(--font-script); font-weight: 400;
  color: var(--gold); letter-spacing: 0;
  font-size: 1.02em; display: inline-block; padding-right: .08em;
}
.reveal-line p {
  margin: 20px auto 0; max-width: 560px;
  color: rgba(252, 252, 240, .86); font-size: clamp(15px, 1.8vw, 18px);
  text-shadow: 0 4px 22px rgba(34, 48, 58, .8);
}

/* The hero can spins centre-frame and is bright yellow, so the centred copy needs
   a heavier scrim than the other two sections to stay legible over it. */
#hero .overlay::before {
  background: radial-gradient(60% 52% at 50% 48%,
    rgba(34, 48, 58, .82) 0%, rgba(34, 48, 58, .58) 46%, transparent 80%);
}
/* Portrait phones: the engine now letterboxes the clip into the upper part of the
   stage (see minVisibleWidth/focusY), so copy drops into the clear space below it
   instead of sitting on top of the subject. */
/* Matches the engine's own condition (canvas narrower than it is tall), so the
   copy always lands in the letterbox space rather than on the subject. */
@media (orientation: portrait) {
  .cinematic .overlay {
    align-items: end;
    padding-bottom: 13vh;
  }
  .cinematic .overlay::before {
    background: linear-gradient(to bottom,
      transparent 0%, rgba(34, 48, 58, .35) 34%, rgba(34, 48, 58, .82) 56%, rgba(34, 48, 58, .93) 100%);
  }
  .cinematic .vignette {
    background:
      linear-gradient(to bottom, rgba(34,48,58,.55) 0%, transparent 18%, transparent 50%, rgba(34,48,58,.9) 100%);
  }
}

@media (max-width: 760px) {
  .reveal-line h1, .reveal-line h2 { font-size: clamp(32px, 9vw, 48px); }
  .reveal-line p { font-size: 14.5px; }
}

.reveal-line { position: relative; z-index: 1; }

.scrub-bar {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 30px;
  height: 2px; background: rgba(252, 252, 240, .18); border-radius: 2px;
}
.scrub-bar-fill {
  height: 100%; background: var(--gold); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
}
.scroll-hint {
  position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%);
  font-size: 10px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--cream-soft); transition: opacity .4s ease;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }

/* ---------------- generic sections ---------------- */
.section { padding: clamp(80px, 11vw, 150px) var(--pad); position: relative; }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.section.cream { background: var(--cream); color: var(--ink); }
.section.sand  { background: var(--sand); color: var(--ink); }
.section.slate { background: var(--slate-800); color: var(--cream); }

.eyebrow {
  font-size: 11px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600; margin: 0 0 16px;
}
.section.slate .eyebrow, .section.dark .eyebrow { color: var(--gold-lt); }

h2.title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 5.2vw, 60px); line-height: 1.02;
  letter-spacing: -.02em; margin: 0 0 22px;
}
h2.title .script {
  font-family: var(--font-script); font-weight: 400; color: var(--gold-deep);
  letter-spacing: 0; font-size: 1.05em;
}
.section.slate h2.title .script { color: var(--gold); }

.lede { font-size: clamp(16px, 2vw, 19px); max-width: 62ch; color: var(--ink-soft); }
.section.slate .lede { color: rgba(252, 252, 240, .78); }

/* torn-paper divider, echoing the brewery's menu art */
.torn { position: relative; }
.torn::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 26px;
  transform: translateY(-100%);
  background: inherit;
  clip-path: polygon(0 100%, 3% 62%, 8% 88%, 14% 54%, 21% 82%, 27% 48%, 34% 76%,
                     41% 44%, 48% 74%, 55% 42%, 62% 70%, 69% 46%, 76% 78%,
                     83% 50%, 90% 80%, 96% 56%, 100% 84%, 100% 100%);
}

/* ---------------- reveal ----------------
   Scoped to .js so the page still reads fine if scripts fail or are disabled —
   without this, 47 elements would sit at opacity:0 forever. */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .09s; }
.reveal.d2 { transition-delay: .18s; }
.reveal.d3 { transition-delay: .27s; }
.reveal.d4 { transition-delay: .36s; }

/* ---------------- story ---------------- */
.story-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 6vw, 84px); align-items: center;
}
.rules { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 2px; }
.rules li {
  display: grid; grid-template-columns: 46px 1fr; align-items: baseline;
  gap: 14px; padding: 15px 0;
  border-top: 1px solid rgba(34, 48, 58, .14);
}
.rules li:last-child { border-bottom: 1px solid rgba(34, 48, 58, .14); }
.rules .n {
  font-size: 11px; letter-spacing: .18em; color: var(--gold-deep); font-weight: 700;
}
.rules b { font-weight: 600; display: block; font-size: 16px; }
.rules span.desc { color: var(--ink-soft); font-size: 14.5px; }

.story-card {
  background: var(--slate-800); color: var(--cream);
  border-radius: var(--radius); padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(201, 160, 99, .3);
  box-shadow: 0 30px 70px -32px rgba(34, 48, 58, .6);
}
.story-card img {
  border-radius: 12px; margin-bottom: 24px;
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
}
.story-card .quote {
  font-family: var(--font-script); color: var(--gold);
  font-size: clamp(21px, 2.7vw, 28px); line-height: 1.35; margin: 0 0 14px;
}
.story-card .attr {
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--sand);
}

/* ---------------- stats ---------------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 3vw, 40px); text-align: center;
}
.stat-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(38px, 6vw, 68px); line-height: 1;
  color: var(--gold); letter-spacing: -.03em;
}
.stat-label {
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  margin-top: 12px; color: rgba(252, 252, 240, .72);
}

/* ---------------- beers ---------------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 34px 0 44px; }
.chip {
  font-family: var(--font-body); font-size: 11.5px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 10px 20px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ink-soft);
  border: 1.5px solid rgba(34, 48, 58, .22);
  transition: all .28s ease;
}
.chip:hover { border-color: var(--gold-deep); color: var(--ink); }
.chip.active { background: var(--slate-800); border-color: var(--slate-800); color: var(--cream); }

.beer-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 20px;
}
.beer {
  background: var(--cream); border: 1.5px solid rgba(34, 48, 58, .13);
  border-radius: var(--radius); padding: 26px 24px 24px;
  position: relative; overflow: hidden;
  /* Column layout so the ABV row can be pushed to the bottom — award badges wrap
     to different heights, which otherwise leaves the meta rows misaligned. */
  display: flex; flex-direction: column;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease, border-color .4s ease;
}
.beer .medal { align-self: flex-start; }
.beer::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: var(--accent, var(--gold));
}
.beer:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 160, 99, .55);
  box-shadow: 0 26px 50px -26px rgba(34, 48, 58, .42);
}
/* Can shelf — the brewery's own can renders are transparent PNGs, so they sit on
   a tinted panel keyed to each beer's accent colour and cast a real drop shadow. */
.beer-img {
  margin: -26px -24px 22px; padding: 26px 20px 20px;
  /* flex-basis, not just height: as a flex child of .beer the box would otherwise
     stretch and the can would spill out over the card text. */
  height: 250px; flex: 0 0 250px; overflow: hidden;
  display: grid; place-items: center;
  background:
    radial-gradient(80% 70% at 50% 92%, color-mix(in srgb, var(--accent) 30%, transparent) 0%, transparent 70%),
    linear-gradient(to bottom, rgba(34, 48, 58, .07), rgba(34, 48, 58, 0));
  border-bottom: 1px solid rgba(34, 48, 58, .09);
}
.beer-img img {
  /* Absolute cap, not a percentage: inside a flex-sized, grid-centred parent a
     percentage height resolved to 292px in a 250px panel. 204 = 250 - 26 - 20 padding.
     Keep in sync with .beer-img height/padding above. */
  max-height: 204px; max-width: 100%; width: auto; object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(34, 48, 58, .32));
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
.beer:hover .beer-img img { transform: translateY(-6px) scale(1.045); }

.beer .tag {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600;
}
.beer h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 21px;
  margin: 10px 0 4px; line-height: 1.15; letter-spacing: -.01em;
}
.beer .style {
  font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--slate-500); margin-bottom: 14px;
}
.beer p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
.beer .meta {
  margin-top: auto; padding-top: 18px; /* auto pins it to the card bottom so ABV rows line up */
  border-top: 1px solid rgba(34, 48, 58, .12);
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--slate-500);
}
.beer .meta b {
  font-family: var(--font-display); font-size: 15px; color: var(--ink);
  letter-spacing: 0; white-space: nowrap;
}
.beer .medal {
  display: inline-block; margin-top: 12px; margin-right: 6px;
  font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
  background: var(--gold); color: var(--slate-900);
  padding: 5px 11px; border-radius: 999px; font-weight: 600; line-height: 1.3;
}
.beer .medal.charity { background: var(--slate-700); color: var(--sand); }

/* ---------------- beer detail modal ---------------- */
.beer { cursor: pointer; }
.beer:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 4px; }
.beer::before {
  content: "View details";
  position: absolute; right: 18px; top: 18px; z-index: 2;
  font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  color: var(--slate-900); background: rgba(252, 252, 240, .92);
  padding: 5px 10px; border-radius: 999px;
  opacity: 0; transform: translateY(-4px); transition: opacity .3s ease, transform .3s ease;
}
.beer:hover::before, .beer:focus-visible::before { opacity: 1; transform: none; }

.beer-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 4vh 20px; }
.beer-modal[hidden] { display: none; }
.beer-modal-backdrop {
  position: absolute; inset: 0; background: rgba(18, 26, 32, .82);
  backdrop-filter: blur(6px); animation: bmFade .3s ease;
}
.beer-modal-panel {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: .85fr 1.15fr;
  width: min(940px, 100%); max-height: 92vh; overflow: auto;
  background: var(--cream); color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7);
  animation: bmRise .42s cubic-bezier(.2,.7,.2,1);
}
@keyframes bmFade { from { opacity: 0 } }
@keyframes bmRise { from { opacity: 0; transform: translateY(26px) scale(.98) } }

.beer-modal-close {
  position: absolute; top: 12px; right: 14px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  border: 0; background: rgba(34, 48, 58, .1); color: var(--ink);
  font-size: 24px; line-height: 1; transition: background .25s ease;
}
.beer-modal-close:hover { background: rgba(34, 48, 58, .2); }

.bm-visual {
  display: grid; place-items: center; padding: 34px 24px;
  background:
    radial-gradient(78% 62% at 50% 88%, color-mix(in srgb, var(--bm-accent, #C9A063) 34%, transparent) 0%, transparent 72%),
    linear-gradient(to bottom, rgba(34,48,58,.07), rgba(34,48,58,0));
  border-right: 1px solid rgba(34, 48, 58, .1);
}
.bm-visual img { max-height: 340px; width: auto; filter: drop-shadow(0 18px 22px rgba(34,48,58,.34)); }

.bm-body { padding: clamp(26px, 3.6vw, 44px); }
.bm-avail {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 600; color: var(--gold-deep);
}
.bm-body h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 3.4vw, 38px); margin: 10px 0 4px; line-height: 1.05;
}
.bm-style {
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--slate-500); margin: 0 0 18px;
}
.bm-desc { font-size: 15.5px; margin: 0 0 14px; }
.bm-flavor {
  font-size: 14.5px; color: var(--ink-soft); margin: 0 0 22px;
  padding-left: 14px; border-left: 2px solid var(--gold);
}
.bm-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px 20px; }
.bm-specs .row { padding: 11px 0; border-top: 1px solid rgba(34, 48, 58, .14); }
.bm-specs .row.wide { grid-column: 1 / -1; }
.bm-specs dt {
  font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600; margin-bottom: 3px;
}
.bm-specs dd { margin: 0; font-size: 14.5px; font-weight: 500; }
.bm-nutrition { font-size: 12.5px; color: var(--slate-500); margin: 16px 0 0; }
.bm-body .btn { margin-top: 24px; }

@media (max-width: 760px) {
  .beer-modal { padding: 0; }
  .beer-modal-panel {
    grid-template-columns: 1fr; width: 100%; max-height: 100vh;
    border-radius: 0; height: 100%;
  }
  .bm-visual { padding: 26px; border-right: 0; border-bottom: 1px solid rgba(34,48,58,.1); }
  .bm-visual img { max-height: 210px; }
  .beer::before { display: none; }
}

/* ---------------- on tap ---------------- */
.core-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 34px;
}
.core-label {
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  font-weight: 600; color: var(--gold-deep); margin-right: 6px;
}
.core-pill {
  font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 999px;
  background: var(--slate-800); color: var(--cream);
}
.tap-list {
  list-style: none; margin: 0; padding: 0;
  columns: 2; column-gap: 44px;
}
.tap {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline;
  gap: 4px 14px; padding: 13px 0;
  border-bottom: 1px dashed rgba(34, 48, 58, .26);
  break-inside: avoid;
}
/* `display: grid` above outranks the UA's `[hidden] { display: none }`, so the
   tab switch needs this or both lists render at once. */
.tap[hidden] { display: none; }
.tap-name { font-weight: 600; font-size: 16px; color: var(--ink); }
.tap-style {
  grid-column: 1; font-size: 13px; color: rgba(34, 48, 58, .62);
  letter-spacing: .04em;
}
/* Column must be explicit: an item with a definite grid-row is placed before the
   auto-flow items, so without this the ABV grabs column 1 and shoves the name right. */
.tap b {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  font-size: 15px; color: var(--gold-deep); white-space: nowrap;
}
.tap-note {
  margin-top: 26px; font-size: 13.5px; color: rgba(34, 48, 58, .6); font-style: italic;
}
@media (max-width: 760px) {
  .tap-list { columns: 1; }
  .core-row { gap: 8px; }
  .core-label { width: 100%; margin-bottom: 2px; }
}
.section.sand .chip { border-color: rgba(34, 48, 58, .3); }
.section.sand .chip.active { background: var(--slate-800); border-color: var(--slate-800); color: var(--cream); }

/* ---------------- beer finder ---------------- */
.finder-frame {
  margin-top: 40px; border-radius: var(--radius); overflow: hidden;
  border: 1.5px solid rgba(201, 160, 99, .34);
  background: var(--cream);
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, .6);
}
.finder-frame iframe {
  display: block; width: 100%; height: clamp(520px, 66vh, 760px);
  border: 0;
}
.finder-actions {
  margin-top: 22px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.finder-note { font-size: 13px; color: rgba(252, 252, 240, .6); }

/* ---------------- signature plates ---------------- */
/* Menu-board feel: a hairline rule under each dish rather than a card, so the
   list reads as printed menu copy and never competes with the PDF cards below. */
.plates {
  list-style: none; margin: 44px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px;
}
@media (max-width: 780px) { .plates { grid-template-columns: 1fr; gap: 0; } }
.plate {
  padding: 20px 0; border-bottom: 1px solid rgba(201, 160, 99, .22);
  display: flex; flex-direction: column; gap: 7px;
}
.plate-head {
  display: flex; align-items: baseline; gap: 12px;
}
/* Dotted leader between dish and price, the way a printed menu sets it. */
.plate-head::after {
  content: ""; flex: 1; order: 1;
  border-bottom: 1px dotted rgba(201, 160, 99, .45);
  transform: translateY(-4px);
}
.plate-head b { order: 2; font-size: 16px; font-weight: 700; color: var(--gold-lt); }
.plate-name {
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  letter-spacing: .01em; color: var(--cream);
}
.plate-desc { font-size: 14px; line-height: 1.6; color: rgba(252, 252, 240, .7); }
.plates-note {
  margin: 26px 0 0; font-size: 13px; color: rgba(252, 252, 240, .55);
}

/* ---------------- menu PDF cards ---------------- */
/* Explicit columns rather than auto-fit: with five menus, auto-fit lands on
   4 + 1 orphan at desktop width. Three columns gives a balanced 3 + 2. */
.menu-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 44px;
}
@media (max-width: 1000px) { .menu-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .menu-grid { grid-template-columns: 1fr; } }
.menu-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius); padding: clamp(26px, 3.4vw, 36px);
  background: rgba(252, 252, 240, .05);
  border: 1.5px solid rgba(201, 160, 99, .28);
  transition: transform .4s cubic-bezier(.2,.7,.2,1), background .4s ease,
              border-color .4s ease, box-shadow .4s ease;
}
.menu-card:hover {
  transform: translateY(-6px);
  background: rgba(252, 252, 240, .09);
  border-color: var(--gold);
  box-shadow: 0 26px 50px -26px rgba(0, 0, 0, .55);
}
.menu-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.menu-card .kicker {
  font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold-lt); font-weight: 600;
}
.menu-card h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(23px, 2.9vw, 30px); margin: 12px 0 10px; line-height: 1.05;
}
.menu-card p {
  margin: 0 0 26px; font-size: 14.5px; color: rgba(252, 252, 240, .74);
}
.menu-btn {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .17em; text-transform: uppercase;
  padding: 13px 26px; border-radius: 999px;
  border: 1.5px solid var(--gold); color: var(--gold-lt);
  transition: background .3s ease, color .3s ease;
}
.menu-card:hover .menu-btn { background: var(--gold); color: var(--slate-900); }

/* ---------------- locations ---------------- */
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.loc {
  border-radius: var(--radius); overflow: hidden;
  background: var(--slate-700); border: 1px solid rgba(201, 160, 99, .3);
  display: flex; flex-direction: column;
}
.loc-img { height: 220px; overflow: hidden; position: relative; }
.loc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.loc:hover .loc-img img { transform: scale(1.06); }
.loc-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(60, 72, 84, .95), transparent 62%);
}
.loc-body { padding: clamp(24px, 3vw, 34px); flex: 1; display: flex; flex-direction: column; }
.loc h3 { font-family: var(--font-display); font-weight: 700; font-size: 26px; margin: 0 0 6px; }
.loc .addr { color: var(--sand); font-size: 14.5px; margin-bottom: 20px; }
.loc .hours { list-style: none; padding: 0; margin: 0 0 22px; }
.loc .hours li {
  display: flex; justify-content: space-between; gap: 14px;
  font-size: 14px; padding: 7px 0;
  border-bottom: 1px dashed rgba(252, 252, 240, .14);
  color: rgba(252, 252, 240, .84);
}
.loc .feat { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 24px; }
.loc .feat span {
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(201, 160, 99, .16); color: var(--gold-lt);
  border: 1px solid rgba(201, 160, 99, .3);
}
.loc .actions { margin-top: auto; display: flex; gap: 12px; flex-wrap: wrap; }

/* live "today" row, mirroring the highlight on their own location pages */
.loc .hours li.today {
  color: var(--cream);
  border-bottom-color: rgba(201, 160, 99, .5);
}
.loc .hours li.today span:first-child { font-weight: 600; color: var(--gold-lt); }
.loc .hours li.today span:first-child::after {
  content: "Today"; margin-left: 9px;
  font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase;
  background: var(--gold); color: var(--slate-900);
  padding: 2px 7px; border-radius: 999px; vertical-align: middle;
}

.loc-notes {
  margin-top: 22px; padding-top: 20px;
  border-top: 1px solid rgba(252, 252, 240, .14);
}
.loc-notes p { margin: 0 0 10px; font-size: 13.5px; color: rgba(252, 252, 240, .74); line-height: 1.55; }
.loc-notes p:last-child { margin-bottom: 0; }
.loc-notes b {
  display: block; font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-lt); font-weight: 600; margin-bottom: 2px;
}
.loc-notes a { color: var(--sand); text-decoration: underline; text-underline-offset: 3px; }
.loc-notes a:hover { color: var(--gold-lt); }
.loc-email { margin-top: 14px !important; }
.loc-email a { color: var(--gold-lt); font-size: 14px; }

/* ---------------- team ---------------- */
.team { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(201, 160, 99, .3); }
.team ul {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.team li { text-align: center; }
.team img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  margin-bottom: 9px; border: 2px solid rgba(201, 160, 99, .45);
}
.team b { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.team span { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--sand); margin-top: 2px; }

/* ---------------- newsletter ---------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.news-wrap {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(30px, 5vw, 64px); align-items: center;
}
.news-wrap .title { margin-bottom: 14px; }
.news-wrap .lede { margin: 0; }
.news-form { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }
.news-form input {
  flex: 1 1 240px; min-width: 0;
  font-family: var(--font-body); font-size: 15px;
  padding: 15px 20px; border-radius: 999px;
  background: rgba(252, 252, 240, .07); color: var(--cream);
  border: 1.5px solid rgba(252, 252, 240, .26);
  transition: border-color .25s ease, background .25s ease;
}
.news-form input::placeholder { color: rgba(252, 252, 240, .45); }
.news-form input:focus {
  outline: none; border-color: var(--gold); background: rgba(252, 252, 240, .11);
}
.news-form button { flex: 0 0 auto; border: 0; font-family: var(--font-body); cursor: pointer; }
.news-msg {
  flex: 1 0 100%; margin: 2px 0 0; font-size: 13px; min-height: 1.2em;
  color: var(--gold-lt);
}
.news-msg.error { color: #F2A6A6; }

@media (max-width: 860px) {
  .news-wrap { grid-template-columns: 1fr; }
  .team ul { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 600; letter-spacing: .17em; text-transform: uppercase;
  padding: 14px 28px; border-radius: 999px; cursor: pointer;
  transition: all .3s cubic-bezier(.2,.7,.2,1); border: 1.5px solid transparent;
}
.btn-gold { background: var(--gold); color: var(--slate-900); }
.btn-gold:hover { background: var(--gold-lt); transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(201,160,99,.8); }
/* Sits between the solid gold primary and the plain ghost buttons, so a card can
   carry two important CTAs without two filled blocks competing. */
.btn-gold-outline { border-color: var(--gold); color: var(--gold-lt); }
.btn-gold-outline:hover { background: var(--gold); color: var(--slate-900); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(252, 252, 240, .4); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-lt); }
.btn-dark { background: var(--slate-800); color: var(--cream); }
.btn-dark:hover { background: var(--slate-700); transform: translateY(-2px); }
/* Outline button for use on the light gold/sand panels, where a cream border would vanish. */
.btn-ink-outline { border-color: rgba(34, 48, 58, .4); color: var(--slate-900); }
.btn-ink-outline:hover { background: var(--slate-800); border-color: var(--slate-800); color: var(--cream); transform: translateY(-2px); }

/* ---------------- events ---------------- */
.sub-head {
  margin: 40px 0 16px; font-size: 11px; letter-spacing: .28em;
  text-transform: uppercase; font-weight: 600; color: var(--gold-deep);
}
.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 18px; }
.event {
  display: grid; grid-template-columns: 74px 1fr; gap: 20px; align-items: center;
  padding: 22px; border-radius: 14px;
  background: var(--cream); border: 1.5px solid rgba(34, 48, 58, .12);
  transition: transform .35s ease, border-color .35s ease;
}
.event:hover { transform: translateY(-4px); border-color: var(--gold); }
.event .date {
  text-align: center; background: var(--slate-800); color: var(--cream);
  border-radius: 10px; padding: 10px 6px;
}
.event .date .m { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-lt); }
.event .date .d { font-family: var(--font-display); font-weight: 700; font-size: 25px; line-height: 1.1; }
.event h4 { margin: 3px 0; font-size: 17px; font-weight: 600; line-height: 1.2; }
.event p { margin: 0; font-size: 13.5px; color: var(--ink-soft); }

.etype {
  display: inline-block; font-size: 9.5px; letter-spacing: .16em;
  text-transform: uppercase; font-weight: 600; color: var(--gold-deep);
}

.recurring { list-style: none; margin: 0; padding: 0; }
.recurring li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 18px; padding: 15px 0;
  border-bottom: 1px dashed rgba(34, 48, 58, .26);
}
.recurring .etype { grid-column: 1; }
.recurring .rname { grid-column: 1; font-weight: 600; font-size: 16.5px; }
.recurring .rwhere { grid-column: 1; font-size: 13.5px; color: var(--ink-soft); }
.recurring .rwhen {
  grid-column: 2; grid-row: 1 / span 3; align-self: center;
  font-size: 13.5px; color: var(--gold-deep); white-space: nowrap;
}
.events-actions { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 560px) {
  .recurring li { grid-template-columns: 1fr; }
  .recurring .rwhen { grid-column: 1; grid-row: auto; margin-top: 4px; }
}

/* ---------------- questions / FAQ ---------------- */
.qa-list { margin-top: 40px; border-top: 1px solid rgba(34, 48, 58, .16); }
.qa {
  border-bottom: 1px solid rgba(34, 48, 58, .16);
}
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 22px 0; transition: color .25s ease;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; font-family: var(--font-display); font-weight: 400;
  font-size: 24px; line-height: 1; color: var(--gold-deep);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
  flex: 0 0 auto;
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa summary:hover .q { color: var(--gold-deep); }
.qa .q {
  font-size: clamp(16px, 2vw, 19px); font-weight: 600; flex: 1;
  transition: color .25s ease;
}
.qa .qcat {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--slate-500); white-space: nowrap; flex: 0 0 auto;
}
.qa p {
  margin: 0 0 24px; max-width: 68ch;
  color: var(--ink-soft); font-size: 15.5px;
}
.qa-actions { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 620px) {
  .qa .qcat { display: none; }
}

/* ---------------- host an event band ---------------- */
.host-band {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  padding: clamp(26px, 3.4vw, 38px);
  border-radius: var(--radius);
  background: rgba(252, 252, 240, .5);
  border: 1.5px solid rgba(34, 48, 58, .16);
}
.host-band h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(21px, 2.6vw, 27px); margin: 0 0 8px; line-height: 1.1;
}
.host-band p {
  margin: 0; max-width: 62ch; font-size: 14.5px; color: var(--ink-soft);
}
.host-band .btn { flex: 0 0 auto; }

/* ---------------- perks CTA ---------------- */
.perks {
  border-radius: var(--radius); padding: clamp(34px, 5vw, 66px);
  background: linear-gradient(135deg, var(--gold) 0%, var(--sand-deep) 100%);
  color: var(--slate-900); text-align: center;
}
.perks h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4.6vw, 50px); margin: 0 0 14px; line-height: 1.04; }
.perks p { max-width: 56ch; margin: 0 auto 28px; color: rgba(34, 48, 58, .8); }
.perks .pill-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------------- footer ---------------- */
footer { background: var(--slate-900); padding: clamp(60px, 8vw, 96px) var(--pad) 34px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.1fr; gap: 34px; }
footer h5 {
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold-lt); margin: 0 0 16px; font-weight: 600;
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 9px; }
footer a { font-size: 14.5px; color: rgba(252, 252, 240, .74); transition: color .25s; }
footer a:hover { color: var(--gold-lt); }
.foot-brand img { width: 190px; height: auto; }
.foot-brand p { font-size: 14.5px; color: rgba(252,252,240,.66); max-width: 34ch; margin: 16px 0 0; }
.foot-bottom {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid rgba(252, 252, 240, .14);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(252, 252, 240, .5);
}
.drink-note { font-size: 11.5px; letter-spacing: .1em; }

/* Spec-work disclosure. Deliberately quiet — it has to be legible and findable
   without competing with the brewery's own footer above it. */
.foot-spec { margin-top: 18px; }
.foot-spec p {
  margin: 0; max-width: 92ch;
  font-size: 11px; line-height: 1.75; color: rgba(252, 252, 240, .38);
}
.foot-spec a { color: rgba(252, 252, 240, .55); text-decoration: underline; text-underline-offset: 2px; }
.foot-spec a:hover { color: var(--gold-lt); }

/* ---------------- responsive ---------------- */
@media (max-width: 940px) {
  .story-grid, .loc-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 38px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
/* Eight items + logo need tightening before they fit a laptop-width bar. */
@media (max-width: 1240px) {
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 11px; letter-spacing: .1em; }
  .nav-cta { padding: 8px 16px; }
}

/* Below this the bar can't hold eight items on one line at all — go off-canvas. */
@media (max-width: 1100px) {
  .burger { display: flex; position: relative; z-index: 120; }
  .nav-links {
    position: fixed; inset: 0; z-index: 110;
    background: rgba(34, 48, 58, .97); backdrop-filter: blur(12px);
    flex-direction: column; justify-content: center; gap: 26px;
    transform: translateX(100%); transition: transform .45s cubic-bezier(.2,.7,.2,1);
  }
  body.menu-open .nav-links { transform: none; }

  /* .nav.solid applies backdrop-filter once you scroll, which per spec makes .nav
     a containing block for position:fixed descendants — the full-screen menu then
     resolves inset:0 against the 74px bar instead of the viewport and collapses.
     Drop the filter while the menu is open; the menu covers the bar anyway. */
  body.menu-open .nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: transparent;
    box-shadow: none;
  }
  /* .nav-links carries z-index 110 and would otherwise paint over the logo,
     leaving the open menu with no brand anchor. */
  body.menu-open .brand { position: relative; z-index: 120; }
  .nav-links a { font-size: 16px; letter-spacing: .22em; }
}

@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr; }
  .event { grid-template-columns: 64px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.in { opacity: 1; transform: none; transition: none; }
  .scroll-hint { animation: none; }
}
