/* Shared base for all seven pub sites.
   Every colour and font is a token. Each site's theme.css sets the tokens;
   this file never hard-codes a brand colour.
   Layout: fluid, max-width container, flex/grid with gap, stacks at phone width. */

:root {
  /* Fallback tokens; theme.css overrides every one of these. */
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --fg: #141414;
  --fg-muted: #555555;
  --line: #dddddd;
  --accent: #c85a08;
  --accent-fg: #ffffff;
  --dark: #121212;
  --dark-fg: #ffffff;
  --dark-muted: #bdbdbd;
  --font-display: Impact, "Arial Narrow Bold", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 4px;
  --container: 1200px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--fg); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 7vw, 84px); }
h2 { font-size: clamp(30px, 4.5vw, 52px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); }
p { margin: 0; }
.muted { color: var(--fg-muted); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Container and sections */
.wrap { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.section { padding-block: clamp(48px, 7vw, 96px); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 36px; }
.section-head p { max-width: 48ch; }
.band-dark { background: var(--dark); color: var(--dark-fg); }
.band-dark .muted { color: var(--dark-muted); }
.band-dark h1, .band-dark h2, .band-dark h3 { color: var(--dark-fg); }
.band-alt { background: var(--bg-alt); }
.band-accent { background: var(--accent); color: var(--accent-fg); }
.band-accent a:not(.btn) { color: inherit; }
.prose { max-width: 68ch; display: flex; flex-direction: column; gap: 16px; }
.prose ul { margin: 0; padding-left: 20px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px; border-radius: var(--radius); font-weight: 700; font-size: 15px; letter-spacing: 0.5px; text-transform: uppercase; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: var(--font-body); transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.btn-primary:hover { color: var(--accent-fg); filter: brightness(1.08); }
.btn-outline { background: transparent; color: currentColor; border-color: currentColor; }
.btn-outline:hover { background: currentColor; }
.btn-outline:hover span { color: var(--bg); }
.btn-dark { background: var(--dark); color: var(--dark-fg); border-color: var(--dark); }
.btn-dark:hover { color: var(--dark-fg); }

/* Header with phone menu (no JS required) */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--dark); color: var(--dark-fg); }
.site-header .wrap { display: flex; align-items: center; gap: 16px 28px; min-height: 72px; padding-block: 6px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-family: var(--font-display); font-size: 22px; line-height: 1; }
.brand img { height: 62px; width: auto; }
.nav-toggle { display: none; }
.nav-toggle-label { display: none; margin-left: auto; cursor: pointer; padding: 10px; border: 1px solid var(--dark-muted); border-radius: var(--radius); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; flex-grow: 1; font-size: 14px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; }
.site-nav a { color: inherit; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.header-actions .phone { color: inherit; text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; }
@media (max-width: 900px) {
  .nav-toggle-label { display: inline-block; }
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; gap: 0; padding-block: 8px 12px; border-top: 1px solid var(--dark-muted); }
  .site-nav a { padding: 12px 0; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .header-actions { order: 1; }
  .nav-toggle-label { order: 2; }
  .header-actions .phone { display: none; }
}

/* Heroes */
.hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(420px, 60vw, 680px); background: var(--dark); color: var(--dark-fg); overflow: hidden; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.25) 60%, rgba(0,0,0,.1) 100%); }
.hero .wrap { position: relative; width: 100%; padding-block: clamp(40px, 6vw, 80px); display: flex; flex-direction: column; gap: 18px; }
.hero h1 { max-width: 14ch; }
.hero p.lead { font-size: clamp(16px, 1.6vw, 20px); max-width: 52ch; color: var(--dark-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-centered { align-items: center; text-align: center; }
.hero-centered .wrap { align-items: center; }
.hero-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); min-height: auto; }
.hero-split .hero-text { padding-block: clamp(48px, 7vw, 96px); padding-left: var(--gutter-l); padding-right: var(--gutter-r); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.hero-split .hero-media { position: static; min-height: 360px; }
.page-hero { min-height: clamp(260px, 36vw, 420px); }

/* Hours strip */
.hours-strip { background: var(--accent); color: var(--accent-fg); }
.hours-strip .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 32px; padding-block: 18px; font-size: 14px; }
.hours-strip strong { display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }

/* Card grids */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 14px; color: inherit; text-decoration: none; min-width: 0; }
.card img, .card .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); max-width: 100%; }
.card .ph { background: var(--bg-alt); color: var(--fg-muted); display: flex; align-items: center; justify-content: center; font-size: 14px; border: 1px dashed var(--line); }
.card h3 a { color: inherit; text-decoration: none; }
.card .cta { font-weight: 700; color: var(--accent); text-decoration: none; margin-top: auto; }
.card-boxed { background: var(--bg-alt); border-radius: var(--radius); padding: 24px; }
.band-dark .card-boxed { background: rgba(255,255,255,.06); }

/* Events / What's On */
.event-list { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.event { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius); background: var(--bg-alt); min-width: 0; }
.band-dark .event { background: rgba(255,255,255,.06); }
.event .when { font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.event img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); }
.weekly { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.weekly > div { padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); }
.band-dark .weekly > div { border-color: rgba(255,255,255,.18); }
.weekly strong { display: block; font-family: var(--font-display); font-size: 22px; margin-bottom: 4px; }

/* Menus */
.menu-section { display: flex; flex-direction: column; gap: 10px; }
.menu-section h3 { padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
.menu-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.menu-item .name { font-weight: 700; }
.menu-item .price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-item .desc { grid-column: 1 / -1; color: var(--fg-muted); font-size: 15px; }
.tags { display: inline-flex; gap: 6px; margin-left: 8px; vertical-align: middle; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: .5px; padding: 2px 7px; border-radius: 99px; border: 1px solid var(--line); color: var(--fg-muted); }

/* Spaces, rooms, packages */
.spec { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--fg-muted); }
.spec strong { color: var(--fg); }
.band-dark .spec { color: var(--dark-muted); } .band-dark .spec strong { color: var(--dark-fg); }
.package { border: 2px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.package.featured { border-color: var(--accent); }
.package ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--fg); width: 100%; min-height: 46px; }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 13px; color: var(--fg-muted); }
.form-success { display: none; padding: 16px; border-radius: var(--radius); background: var(--bg-alt); font-weight: 600; }
.form.sent .form-success { display: block; }
.form.sent .form-fields { display: none; }

/* Gallery */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); }
.gallery .wide { grid-column: span 2; }
@media (max-width: 480px) { .gallery .wide { grid-column: span 1; } }

/* Split feature */
.feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.feature .text { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.feature.flip > :first-child { order: 2; }
@media (max-width: 720px) { .feature.flip > :first-child { order: 0; } }

/* Info blocks */
.info-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.info-grid dl { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.info-grid dt { font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.info-grid dd { margin: 0; }
.notice { padding: 16px 20px; border-left: 4px solid var(--accent); background: var(--bg-alt); font-size: 15px; }

/* Footer */
.site-footer { background: var(--dark); color: var(--dark-muted); font-size: 14px; }
.site-footer .wrap { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding-block: 56px 40px; }
.site-footer strong { color: var(--dark-fg); display: block; margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: var(--dark-fg); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.14); }
.site-footer .legal .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px; font-size: 12px; }
.gamble { font-size: 12px; }

/* Tables (for hours etc) */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--fg-muted); }

/* Menu PDF download cards and poster-based events (client rule: menus stay PDFs, events keep the venue's poster) */
.menu-cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.menu-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--bg); min-width: 0; }
.menu-card h3 { font-size: 24px; }
.menu-card .updated { font-size: 13px; color: var(--fg-muted); }
.menu-card .btn { align-self: flex-start; margin-top: auto; }
.band-dark .menu-card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }
.band-dark .menu-card .updated { color: var(--dark-muted); }
.menu-teaser { margin: 0; padding-left: 18px; color: var(--fg-muted); font-size: 15px; display: flex; flex-direction: column; gap: 4px; }
.poster-list { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.poster-event { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.poster-event img { width: 100%; height: auto; border-radius: var(--radius); max-width: 100%; }
.poster-event .when { font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.poster-event p { color: var(--fg-muted); font-size: 15px; }
.band-dark .poster-event p { color: var(--dark-muted); }
.poster-event .btn { align-self: flex-start; }

/* Live sport fixtures panel, styled after the Fanzo widget the venues embed; the real widget replaces it on WordPress */
.fixtures { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); color: var(--fg); }
.fixtures-days { display: flex; gap: 8px; overflow-x: auto; padding: 14px; }
.fixtures-days span { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; text-align: center; line-height: 1.25; min-width: 54px; }
.fixtures-days span small { display: block; font-weight: 500; font-size: 11px; }
.fixtures-days .is-today { border-color: var(--fg); }
.fixtures-panel { background: var(--bg-alt); min-height: 220px; display: flex; align-items: center; padding: 32px; font-size: 18px; font-weight: 600; color: var(--fg-muted); text-wrap: balance; }
.fixtures-credit { font-size: 11px; color: var(--fg-muted); padding: 8px 14px; }

/* Smaller poster grid for reusing What's On items on other pages */
.poster-list.compact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 16px; }
.poster-list.compact h3 { font-size: 20px; }
.poster-list.compact p { font-size: 14px; }

/* Slideshow: scroll-snap track with prev/next buttons; replaces large photo grids */
.slideshow { position: relative; border-radius: var(--radius); overflow: hidden; }
.slideshow-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; aspect-ratio: 16 / 9; max-height: 560px; }
.slideshow-track::-webkit-scrollbar { display: none; }
.slideshow-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.slideshow-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 22px; line-height: 44px; text-align: center; cursor: pointer; }
.slideshow-btn:hover { background: rgba(0,0,0,.8); }
.slideshow-btn.prev { left: 12px; } .slideshow-btn.next { right: 12px; }
.slideshow-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; }
.slideshow-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); }
.slideshow-dots .on { background: #fff; }
.slideshow figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 32px; background: linear-gradient(to top, rgba(0,0,0,.6), transparent); color: #fff; font-size: 14px; pointer-events: none; }
/* Live-feed panel stand-in (Thirsty Camel specials, etc.), same idea as .fixtures */
.feed-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--fg); padding: 20px; display: grid; gap: 14px; }
.feed-panel .feed-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; font-weight: 700; }
.feed-panel .feed-body { min-height: 140px; display: grid; place-items: center; text-align: center; color: var(--fg-muted); border: 1px dashed var(--line); border-radius: var(--radius); padding: 20px; }
.feed-panel .feed-credit { font-size: 12px; color: var(--fg-muted); }
