/* ================================================================
   THE DURHAM CASTLE ARMS
   Design: Dark heraldic — bottle green, amber-gold, near-black
   Type: Bebas Neue (display) + Arvo (body)
   ================================================================ */

/* 1. TOKENS ---------------------------------------------------- */
:root {
  /* Palette — all OKLCH */
  --color-bg:            oklch(0.09 0.010 150);
  --color-surface:       oklch(0.14 0.012 150);
  --color-border:        oklch(0.22 0.012 150);
  --color-primary:       oklch(0.43 0.13 148);
  --color-primary-hover: oklch(0.50 0.13 148);
  --color-primary-deep:  oklch(0.36 0.12 148);
  --color-accent:        oklch(0.74 0.11 78);
  --color-accent-hover:  oklch(0.80 0.11 78);
  --color-ink:           oklch(0.95 0.008 150);
  --color-muted:         oklch(0.62 0.008 150);

  /* Typography */
  --font-display: 'Bebas Neue', system-ui, sans-serif;
  --font-body:    'Arvo', Georgia, serif;

  /* Fluid type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   clamp(1.25rem,  2.5vw, 1.75rem);
  --text-2xl:  clamp(1.5rem,   3.5vw, 2.25rem);
  --text-3xl:  clamp(2rem,     5vw,   3.5rem);
  --text-4xl:  clamp(2.5rem,   6vw,   4.5rem);
  --text-hero: clamp(3rem,     8vw,   6rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --max-w:        1200px;
  --content-pad:  clamp(1.25rem, 5vw, 3rem);
  --section-py:   clamp(4rem, 8vw, 7rem);

  /* Easing */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);

  /* Z-index scale */
  --z-sticky:   100;
  --z-dropdown: 200;
  --z-modal:    300;
  --z-toast:    400;
  --z-tooltip:  500;
}

/* 2. RESET ----------------------------------------------------- */
@keyframes fade-up-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  font-kerning: normal;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

/* 3. TYPOGRAPHY ------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: 0.01em;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }

p {
  margin: 0 0 var(--space-4);
  max-width: 65ch;
  text-wrap: pretty;
}
p:last-child { margin-bottom: 0; }

/* 4. LAYOUT ---------------------------------------------------- */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--content-pad);
}

/* 5. BUTTONS --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  padding: 0.65em 2em;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease-out-quart),
    color 0.2s var(--ease-out-quart),
    border-color 0.2s var(--ease-out-quart);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.btn-gold {
  background-color: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}
.btn-gold:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-outline:hover {
  background-color: var(--color-accent);
  color: var(--color-bg);
}

.btn-ink {
  background-color: var(--color-ink);
  color: var(--color-bg);
  border-color: var(--color-ink);
}
.btn-ink:hover {
  background-color: oklch(0.88 0.008 150);
  border-color: oklch(0.88 0.008 150);
}

.btn-sm { font-size: 0.85rem; padding: 0.5em 1.5em; }
.btn-lg { font-size: 1.2rem; padding: 0.75em 2.25em; }

/* 6. NAVIGATION ----------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: var(--z-sticky);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  gap: 0;
  background-color: oklch(0 0 0);
}

/* Two-band nav: info strip + main nav row */
.nav-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem var(--content-pad);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  color: var(--color-accent);
}

.nav-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  padding-inline: var(--content-pad);
  gap: var(--space-8);
}

.nav-back {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(0.85 0.008 150 / 0.5);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-back:hover { color: var(--color-accent); }

.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 80px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--color-ink); }

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-shrink: 0;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  z-index: calc(var(--z-modal) + 1);
  width: 40px;
  height: 40px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-ink);
  transform-origin: center;
  transition:
    transform 0.35s var(--ease-out-expo),
    opacity   0.25s var(--ease-out-quart);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile fullscreen menu */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background-color: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out-quart), visibility 0.3s;
}

.nav-mobile.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.nav-mobile-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--color-ink);
  padding: var(--space-2);
  transition: color 0.2s;
}
.nav-mobile-close:hover { color: var(--color-accent); }

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.nav-mobile-links a {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  letter-spacing: 0.06em;
  color: var(--color-ink);
  transition: color 0.2s;
}
.nav-mobile-links a:hover { color: var(--color-accent); }

.nav-mobile-contact {
  font-size: var(--text-sm);
  color: var(--color-muted);
  text-align: center;
  line-height: 2;
}
.nav-mobile-contact a:hover { color: var(--color-accent); }

/* 7. HERO ----------------------------------------------------- */
.hero {
  position: relative;
  margin-top: 136px;
  min-height: calc(100svh - 136px);
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-2.webp');
  background-size: cover;
  background-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    oklch(0.09 0.010 150 / 0.25) 0%,
    oklch(0.09 0.010 150 / 0.55) 45%,
    oklch(0.09 0.010 150 / 0.92) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--content-pad);
}

.hero-kicker {
  font-family: var(--font-display);
  font-size: var(--text-base);
  letter-spacing: 0.2em;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  animation: fade-up-in 0.75s var(--ease-out-expo) 100ms  both;
}

.hero-kicker::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background-color: var(--color-accent);
  flex-shrink: 0;
}

.hero-title {
  font-size: var(--text-hero);
  color: var(--color-ink);
  line-height: 0.92;
  margin-bottom: var(--space-6);
  animation: fade-up-in 0.75s var(--ease-out-expo) 270ms  both;
}

.hero-title .accent {
  color: var(--color-accent);
}

.hero-tagline {
  font-size: var(--text-lg);
  color: var(--color-muted);
  max-width: 44ch;
  line-height: 1.55;
  margin-bottom: var(--space-10);
  animation: fade-up-in 0.75s var(--ease-out-expo) 440ms  both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  animation: fade-up-in 0.75s var(--ease-out-expo) 610ms  both;
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  z-index: 2;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.6); }
}

/* 8. SECTION: WHAT'S ON --------------------------------------- */
.whats-on {
  padding-block: var(--section-py);
}

.event-book-hint {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  color: var(--color-accent);
  display: block;
  margin-top: var(--space-3);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s var(--ease-out-quart), transform 0.25s var(--ease-out-quart);
}
.event-item:hover .event-book-hint { opacity: 1; transform: none; }

/* ── What's On: horizontal scroll strip ── */
.whats-on > .container {
  max-width: none;
  padding-inline: 0;
}

.whats-on > .container > .section-heading {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--content-pad);
  margin-bottom: 0;
}

.v2-track-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-top: var(--space-8);
  padding-bottom: var(--space-4);
}
.v2-track-wrap::-webkit-scrollbar { display: none; }

.v2-track {
  display: flex;
  gap: 4px;
  padding-inline: var(--content-pad);
  width: max-content;
  min-width: 100%;
  justify-content: center;
  box-sizing: border-box;
}
@media (min-width: 769px) {
  .v2-track-wrap {
    max-width: min(100%, 1260px);
    margin-inline: auto;
  }
  .v2-track {
    justify-content: flex-start;
  }
}

.v2-track .event-item,
.v2-track .event-item:nth-child(n) {
  width: 200px;
  height: 340px;
  flex-shrink: 0;
  scroll-snap-align: start;
  aspect-ratio: auto;
  grid-column: auto;
  border-radius: 0;
}

.v2-track .event-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.v2-track-empty {
  width: 100%;
  text-align: center;
  padding: var(--space-12) var(--content-pad);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-muted);
}

.v2-skeleton {
  display: flex;
  gap: 4px;
  padding-inline: var(--content-pad);
  width: max-content;
  min-width: 100%;
  justify-content: center;
}

.v2-skeleton-item {
  width: 200px;
  height: 340px;
  flex-shrink: 0;
  background: var(--color-surface);
  animation: skeleton-pulse 1.4s ease-in-out infinite;
}

.v2-skeleton-item:nth-child(2) { animation-delay: 0.15s; }
.v2-skeleton-item:nth-child(3) { animation-delay: 0.3s; }
.v2-skeleton-item:nth-child(4) { animation-delay: 0.45s; }
.v2-skeleton-item:nth-child(5) { animation-delay: 0.6s; }

@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.v2-scroll-hint {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-inline: var(--content-pad);
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}
.v2-scroll-hint::after {
  content: '';
  display: block;
  flex: 1;
  height: 1px;
  background: var(--color-border);
  max-width: 120px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}

.section-heading h2 { color: var(--color-ink); }

.section-link {
  font-family: var(--font-display);
  font-size: var(--text-base);
  letter-spacing: 0.1em;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
  transition: gap 0.2s var(--ease-out-quart);
}
.section-link:hover { gap: var(--space-3); }
.section-link::after { content: '→'; }

.events-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
}

.event-item {
  display: block;
  position: relative;
  overflow: hidden;
  background-color: var(--color-surface);
  cursor: pointer;
  text-decoration: none;
}

.event-item:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -3px;
}

/* Asymmetric spans */
.event-item:nth-child(1) { grid-column: span 4; aspect-ratio: 4/3; }
.event-item:nth-child(2) { grid-column: span 2; aspect-ratio: 2/3; }
.event-item:nth-child(3) { grid-column: span 2; aspect-ratio: 2/3; }
.event-item:nth-child(4) { grid-column: span 4; aspect-ratio: 16/9; }
.event-item:nth-child(5) { grid-column: span 6; aspect-ratio: 21/9; }

.event-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out-quart);
}

.event-item:hover img { transform: scale(1.045); }

.event-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    oklch(0.09 0.010 150 / 0.92) 0%,
    oklch(0.09 0.010 150 / 0.0)  55%
  );
  display: flex;
  align-items: flex-end;
  padding: var(--space-6);
  transition: background 0.3s;
}

.event-item:hover img { filter: brightness(0.4); }
.event-item:hover .event-overlay {
  background: linear-gradient(
    to top,
    oklch(0.09 0.010 150 / 0.97) 0%,
    oklch(0.09 0.010 150 / 0.15) 65%
  );
}

.event-item.event-past { opacity: 0.4; filter: grayscale(0.7); }
.event-item.event-past:hover { opacity: 1; filter: none; }
.event-past-label {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-18deg);
  font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: oklch(0.95 0 0 / 0.9);
  background: oklch(0.15 0.01 150 / 0.75); padding: 0.5em 1.5em; border-radius: 4px;
  white-space: nowrap;
  z-index: 3; pointer-events: none;
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.event-date {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  color: var(--color-accent);
}

.event-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-ink);
  line-height: 1.05;
}

/* 9. SECTION: THIS WEEK --------------------------------------- */
.this-week {
  padding-block: var(--section-py);
  background-color: var(--color-surface);
}

.schedule {
  margin-top: var(--space-12);
}

.schedule-row {
  display: grid;
  grid-template-columns: 11rem 1fr auto;
  align-items: baseline;
  gap: var(--space-4);
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}

.schedule-row:first-child {
  border-top: 1px solid var(--color-border);
}

.schedule-day {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  letter-spacing: 0.05em;
  color: var(--color-accent);
}

.schedule-events {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.schedule-event {
  font-size: var(--text-base);
  color: var(--color-ink);
  font-weight: 700;
}

.schedule-note {
  font-size: var(--text-sm);
  color: var(--color-muted);
  font-weight: 400;
}

.schedule-time {
  font-family: var(--font-display);
  font-size: var(--text-base);
  letter-spacing: 0.06em;
  color: var(--color-muted);
  text-align: right;
  white-space: nowrap;
}

.schedule-price {
  color: var(--color-accent);
}

/* 10. SECTION: ALE MARY BREWING ------------------------------ */
.brewery {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: var(--section-py);
}

.brewery-photo {
  position: absolute;
  inset: 0;
  background: url('../images/inspiration/unnamed-3.webp') center / cover no-repeat;
}

.brewery-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    95deg,
    oklch(0.10 0.04 78 / 0.97) 0%,
    oklch(0.10 0.04 78 / 0.82) 50%,
    oklch(0.10 0.04 78 / 0.15) 100%
  );
}

.brewery-content {
  position: relative;
  z-index: 2;
  padding: clamp(3rem, 7vw, 6rem);
  max-width: 580px;
}

.brewery-kicker {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.22em;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.brewery-kicker::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: var(--color-accent);
  flex-shrink: 0;
}

.brewery-logo {
  max-width: 260px;
  height: auto;
  margin-bottom: var(--space-8);
  display: block;
}

.brewery-body {
  font-size: var(--text-base);
  color: oklch(0.85 0.012 78);
  line-height: 1.75;
  max-width: 50ch;
  margin-bottom: var(--space-6);
}

.brewery-est {
  font-family: var(--font-display);
  font-size: var(--text-base);
  letter-spacing: 0.16em;
  color: var(--color-accent);
  display: block;
}

/* 11. SECTION: OUR MENU -------------------------------------- */
.our-menu {
  padding-block: var(--section-py);
  background-color: var(--color-surface);
}

.menu-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-muted);
  margin-top: calc(-1 * var(--space-4));
  margin-bottom: var(--space-12);
  letter-spacing: 0.02em;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.menu-cat {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: var(--space-6);
}

.menu-cat-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-ink);
  letter-spacing: 0.04em;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-accent);
  margin-bottom: var(--space-4);
  line-height: 1;
}

.menu-cat-note {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-bottom: var(--space-4);
  font-style: italic;
  letter-spacing: 0.02em;
}

.menu-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.menu-items li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
}

.mi-name {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-ink);
  line-height: 1.4;
  flex: 1;
}

.mi-name em {
  font-style: normal;
  font-size: 0.7em;
  color: var(--color-muted);
  letter-spacing: 0.06em;
  margin-left: 0.3em;
}

.mi-price {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--color-accent);
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-items-divider {
  height: 1px;
  background: var(--color-border);
  margin-block: var(--space-1);
}

.menu-footer {
  text-align: center;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.menu-dietary {
  font-size: var(--text-xs);
  color: var(--color-muted);
  letter-spacing: 0.05em;
  line-height: 1.8;
}

.menu-dietary em {
  font-style: normal;
  color: var(--color-ink);
  font-weight: 700;
}

.menu-surcharge {
  font-size: var(--text-xs);
  color: var(--color-muted);
  letter-spacing: 0.02em;
  max-width: 55ch;
}

/* 12. SECTION: BOOK A TABLE ---------------------------------- */
.booking {
  padding-block: var(--section-py);
  background-color: var(--color-surface);
}

.booking-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.booking-header h2 {
  color: var(--color-ink);
  margin-bottom: var(--space-4);
}

.booking-header p {
  color: var(--color-muted);
  max-width: 48ch;
  margin-inline: auto;
}

.booking-widget {
  max-width: 900px;
  margin-inline: auto;
  background-color: var(--color-bg);
  padding: var(--space-2);
  border: 1px solid var(--color-border);
}

.booking-widget iframe {
  width: 100%;
  border: none;
  min-height: 520px;
  display: block;
}

.booking-fallback {
  text-align: center;
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-muted);
  max-width: none;
  margin-bottom: 0;
}

.booking-fallback a {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--color-border);
  transition: color 0.2s, text-decoration-color 0.2s;
}

.booking-fallback a:hover {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent);
}

/* 13. SECTION: FUNCTIONS ------------------------------------- */
.functions {
  padding-block: var(--section-py);
  background-color: var(--color-bg);
}

.functions-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.functions-header h2 {
  color: var(--color-ink);
  margin-bottom: var(--space-4);
}

.functions-header p {
  color: var(--color-muted);
  max-width: 55ch;
  margin-inline: auto;
  line-height: 1.7;
}

.functions-form {
  max-width: 640px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.form-row {
  display: flex;
  gap: var(--space-6);
}
@media (max-width: 500px) {
  .form-row { flex-direction: column; }
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group-full {
  width: 100%;
}

.functions-form label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.functions-form input,
.functions-form textarea {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  padding: 0.7rem 0.9rem;
  transition: border-color 0.2s;
}

.functions-form input:focus,
.functions-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.functions-form textarea {
  resize: vertical;
}

.functions-form button {
  align-self: center;
  margin-top: var(--space-2);
}

.functions-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.functions-form input:user-invalid,
.functions-form textarea:user-invalid {
  border-color: oklch(0.65 0.2 25);
}

.form-status {
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--text-base);
  letter-spacing: 0.08em;
  padding: var(--space-6);
}

.form-status--success {
  color: oklch(0.70 0.14 148);
}

.form-status--error {
  color: oklch(0.65 0.2 25);
}

.form-status--error a {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 14. SECTION: FIND US --------------------------------------- */
.find-us {
  padding-block: var(--section-py);
}

.find-us > .container > h2 {
  color: var(--color-ink);
  margin-bottom: var(--space-12);
}

.find-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-12);
}

.find-us-block { min-width: 0; }

.find-us-block h3 {
  font-size: var(--text-xl);
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
}

.find-us-block p,
.find-us-block address {
  font-style: normal;
  color: var(--color-muted);
  line-height: 1.8;
  font-size: var(--text-base);
}

.find-us-block a {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--color-border);
  transition: color 0.2s, text-decoration-color 0.2s;
}
.find-us-block a:hover {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent);
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.hours-day {
  color: var(--color-ink);
  font-weight: 700;
  min-width: 7ch;
}

.hours-time { text-align: right; }

/* 14. SECTION: INSTAGRAM ------------------------------------- */
.instagram {
  padding-block: var(--section-py);
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.instagram-cta {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  flex-wrap: wrap;
}

.instagram-cta-icon {
  flex-shrink: 0;
  color: var(--color-accent);
  opacity: 0.9;
}

.instagram-cta-icon svg {
  width: 96px;
  height: 96px;
  display: block;
}

.instagram-handle {
  font-family: var(--font-display);
  font-size: var(--text-base);
  letter-spacing: 0.2em;
  color: var(--color-muted);
  display: block;
  margin-bottom: var(--space-4);
}

.instagram-cta-body h2 {
  color: var(--color-ink);
  margin-bottom: var(--space-6);
  font-size: var(--text-4xl);
}

.instagram-cta-body > p {
  color: var(--color-muted);
  margin-bottom: var(--space-8);
  max-width: 44ch;
}

.instagram-cta-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Utility */
.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;
}

/* 15. FOOTER ------------------------------------------------- */
.footer {
  padding-block: var(--space-16) var(--space-10);
  border-top: 1px solid var(--color-border);
}

.footer-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-16);
  align-items: start;
  margin-bottom: var(--space-12);
}

.footer-logo img {
  height: 56px;
  width: auto;
  margin-bottom: var(--space-4);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--color-muted);
  max-width: 28ch;
  line-height: 1.6;
}

.footer-nav-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3) var(--space-12);
  align-self: center;
}

.footer-nav-group a {
  font-family: var(--font-display);
  font-size: var(--text-base);
  letter-spacing: 0.08em;
  color: var(--color-muted);
  transition: color 0.2s;
}
.footer-nav-group a:hover { color: var(--color-ink); }

.footer-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: flex-end;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  transition: color 0.2s, border-color 0.2s;
}
.footer-social a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.footer-contact-mini {
  font-size: var(--text-sm);
  color: var(--color-muted);
  text-align: right;
  line-height: 1.8;
}
.footer-contact-mini a {
  transition: color 0.2s;
}
.footer-contact-mini a:hover { color: var(--color-accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.footer-bottom a {
  color: var(--color-muted);
  text-underline-offset: 2px;
  text-decoration: underline;
  text-decoration-color: var(--color-border);
  transition: color 0.2s;
}
.footer-bottom a:hover { color: var(--color-ink); }

/* 16. SCHEDULE: TODAY HIGHLIGHT ------------------------------ */
.tonight-badge {
  display: none;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  background-color: var(--color-accent);
  color: var(--color-bg);
  padding: 0.15em 0.55em;
  margin-left: var(--space-3);
  line-height: 1.8;
  vertical-align: middle;
}

.schedule-row.is-today .tonight-badge {
  display: inline;
}

.schedule-row.is-today {
  background-color: oklch(0.74 0.11 78 / 0.07);
  padding-inline: var(--space-5);
  margin-inline: calc(var(--space-5) * -1);
}

.schedule-footer {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-muted);
  letter-spacing: 0.04em;
  max-width: none;
  margin-bottom: 0;
}

/* 17. REVEAL ANIMATIONS -------------------------------------- */
/* Elements visible by default; JS adds .visible via IntersectionObserver to trigger animation */
.reveal.visible {
  animation: fade-up-in 0.65s var(--ease-out-expo) both;
}

.reveal-stagger.visible > *:nth-child(1) { animation: fade-up-in 0.55s var(--ease-out-expo)   0ms both; }
.reveal-stagger.visible > *:nth-child(2) { animation: fade-up-in 0.55s var(--ease-out-expo)  80ms both; }
.reveal-stagger.visible > *:nth-child(3) { animation: fade-up-in 0.55s var(--ease-out-expo) 160ms both; }
.reveal-stagger.visible > *:nth-child(4) { animation: fade-up-in 0.55s var(--ease-out-expo) 240ms both; }
.reveal-stagger.visible > *:nth-child(5) { animation: fade-up-in 0.55s var(--ease-out-expo) 320ms both; }
.reveal-stagger.visible > *:nth-child(6) { animation: fade-up-in 0.55s var(--ease-out-expo) 400ms both; }
.reveal-stagger.visible > *:nth-child(7) { animation: fade-up-in 0.55s var(--ease-out-expo) 480ms both; }

/* 17. RESPONSIVE --------------------------------------------- */

/* Tablet */
@media (max-width: 1024px) {
  .brewery-inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-main {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  .footer-right {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .footer-contact-mini { text-align: left; }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links, .nav-right, .nav-back { display: none; }
  .nav-toggle { display: flex; }
  .nav-topbar { display: none; }
  .hero {
    margin-top: 100px;
    min-height: calc(100svh - 100px);
    align-items: center;
    padding-bottom: var(--space-8);
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .menu-grid .menu-cat:nth-child(n+4) {
    display: none;
  }
  .menu-grid.menu-grid--expanded .menu-cat:nth-child(n+4) {
    display: block;
  }

  .menu-expand-toggle {
    display: flex;
    justify-content: center;
    width: fit-content;
    margin: -1rem auto 0;
    position: relative;
    z-index: 2;
  }

  .menu-grid:not(.menu-grid--expanded) {
    mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  }

  /* Events: 2-col asymmetric on tablet */
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
  }
  .event-item:nth-child(1) { grid-column: span 2; aspect-ratio: 16/9; }
  .event-item:nth-child(2) { grid-column: span 1; aspect-ratio: 1; }
  .event-item:nth-child(3) { grid-column: span 1; aspect-ratio: 1; }
  .event-item:nth-child(4) { grid-column: span 2; aspect-ratio: 16/9; }
  .event-item:nth-child(5) { grid-column: span 2; aspect-ratio: 16/9; }

  /* Schedule: wrap day to own line */
  .schedule-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }
  .schedule-day { grid-column: 1 / -1; }
  .schedule-events { grid-row: 2; grid-column: 1; }
  .schedule-time { grid-row: 2; grid-column: 2; align-self: start; }

  /* Find us: stack */
  .find-us-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  /* Instagram CTA: stack icon + text */
  .instagram-cta { gap: var(--space-8); }
  .instagram-cta-icon svg { width: 56px; height: 56px; }

  /* Footer */
  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .footer-right {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-6);
  }
  .footer-contact-mini { text-align: left; }
  .footer-nav-group { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
}

/* Small mobile */
@media (max-width: 480px) {
  .events-grid { grid-template-columns: 1fr; gap: 2px; }
  .event-item:nth-child(n) { grid-column: span 1; aspect-ratio: 4/3; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .booking-widget { padding: 0; }
}

/* Touch-friendly targets for coarse pointers */
@media (pointer: coarse) {
  .functions-form input,
  .functions-form textarea {
    min-height: 44px;
    font-size: 1rem;
  }

  .nav-mobile-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .footer-nav-group a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* 18. REDUCED MOTION ----------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-delay: 0ms !important;
  }

  html { scroll-behavior: auto; }

  .hero-kicker,
  .hero-title,
  .hero-tagline,
  .hero-actions,
  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }

  .panel-bg,
  .hero-scroll-line,
  .event-lightbox,
  .event-lightbox-content {
    transition-duration: 0.01ms !important;
  }
}

/* LIGHTBOX -------------------------------------------------------- */
.event-lightbox {
  position: fixed; inset: 0; z-index: var(--z-modal, 300);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.event-lightbox.is-open { opacity: 1; pointer-events: all; }

.event-lightbox-backdrop {
  position: absolute; inset: 0;
  background: oklch(0.05 0.01 150 / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.event-lightbox-close {
  position: absolute; top: var(--space-6, 1.5rem); right: var(--space-6, 1.5rem);
  z-index: 2; background: none; border: none; cursor: pointer;
  font-size: 2rem; line-height: 1; color: var(--color-ink, #fff);
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.event-lightbox-close:hover { background: oklch(1 0 0 / 0.1); }
.event-lightbox-close:focus-visible {
  outline: 2px solid var(--color-accent, oklch(0.74 0.11 78));
  outline-offset: 2px;
}

.event-lightbox-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: var(--space-4, 1rem);
  max-width: min(90vw, 900px); max-height: 85vh;
  transform: scale(0.92); opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease-out;
}
.event-lightbox.is-open .event-lightbox-content {
  transform: scale(1); opacity: 1;
}

.event-lightbox-img {
  max-width: 100%; max-height: 72vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 80px oklch(0 0 0 / 0.5);
}

.event-lightbox-info {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.25rem; text-align: center;
}

.event-lightbox-title {
  font-family: var(--font-display, var(--display, system-ui));
  font-size: var(--text-2xl, 1.75rem);
  color: var(--color-ink, #fff);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.event-lightbox-date {
  font-family: var(--font-display, var(--display, system-ui));
  font-size: var(--text-sm, 0.875rem);
  color: var(--color-accent, oklch(0.74 0.11 78));
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .event-lightbox,
  .event-lightbox-content { transition: none; }
}
