/* ==========================================================================
   The White Boar - site styles
   Colours sampled from the White Boar logo and 2026 food menu.
   These map 1:1 to theme.json / style.css when converted to WordPress.
   ========================================================================== */

:root {
  /* Brand */
  --green: #17362e;
  --green-800: #1f4439;
  --green-600: #2c5446;
  --cream: #eae0c2;
  --paper: #efe9df;
  --paper-dark: #e3dbcd;
  --taupe: #c8b8a6;
  --red: #9d3931;
  --red-dark: #7f2c25;

  /* Menu badge accents (home made food / live sports / live music) */
  --badge-blue: #2f5e7d;
  --badge-orange: #d98a22;
  --badge-olive: #7d8c35;

  --ink: #1d2622;
  --ink-soft: #4d5651;
  --line: rgba(23, 54, 46, 0.18);

  --font: "Poppins", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 10px;
  --header-h: 76px;
  --shadow: 0 10px 30px -12px rgba(23, 54, 46, 0.35);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--red); }

:focus-visible {
  outline: 3px solid var(--badge-orange);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.1;
  color: var(--green);
  text-wrap: balance;
}

h1, h2 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1em; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--cream);
  color: var(--green);
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* Small uppercase label above headings */
.eyebrow {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }

.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); color: #fff; }

.btn--cream { background: var(--cream); color: var(--green); }
.btn--cream:hover { background: #fff; color: var(--green); }

.btn--ghost { border-color: currentColor; color: var(--cream); }
.btn--ghost:hover { background: var(--cream); color: var(--green); border-color: var(--cream); }

.btn--outline { border-color: var(--green); color: var(--green); }
.btn--outline:hover { background: var(--green); color: var(--cream); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green);
  color: var(--cream);
  border-bottom: 3px solid var(--red);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}

/* Logo hangs below the bar on larger screens, like a pub sign */
.site-logo {
  flex: none;
  align-self: flex-start;
  margin-top: 8px;
  width: 104px;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 2;
  transition: width 0.25s;
}
.site-logo img { width: 100%; }

.site-nav { margin-left: auto; }

.site-nav ul {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  color: var(--cream);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-nav a:hover { background: var(--green-800); color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--badge-orange); }

.header-call { flex: none; min-height: 42px; padding: 0.5rem 1.1rem; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border: 2px solid var(--cream);
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  :root { --header-h: 68px; }

  .site-logo { width: 84px; margin-top: 6px; }
  .header-call { display: none; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    inset: calc(var(--header-h) + 3px) 0 0 0;
    padding: 2.5rem var(--gutter) 2rem;
    background: var(--green);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s;
  }
  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s, transform 0.2s;
  }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(234, 224, 194, 0.15);
    border-radius: 0;
    font-size: 1.3rem;
  }
  .site-nav a[aria-current="page"] { box-shadow: none; color: var(--badge-orange); }
  .site-nav__extra { display: grid; gap: 0.75rem; margin-top: 2rem; }
  .site-nav .site-nav__extra .btn {
    display: inline-flex;
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font-size: 0.95rem;
  }
  .site-nav .site-nav__extra .btn--ghost { border-color: var(--cream); }
}
@media (min-width: 1081px) {
  .site-nav__extra { display: none; }
}

body.nav-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   Hero (home) and page banners
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(82vh, 760px);
  display: grid;
  align-items: end;
  color: var(--cream);
  overflow: hidden;
}
.hero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(23, 54, 46, 0.8) 0%, rgba(23, 54, 46, 0.35) 65%, rgba(23, 54, 46, 0) 100%),
    linear-gradient(180deg, rgba(23, 54, 46, 0.25) 0%, rgba(23, 54, 46, 0.45) 45%, rgba(23, 54, 46, 0.95) 100%);
}
.hero__content { padding-block: 9rem 6.5rem; max-width: 760px; }
.hero h1 {
  color: var(--cream);
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 0.98;
  margin-bottom: 1rem;
}
.hero h1 span { color: var(--taupe); }
.hero__lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); max-width: 34rem; margin-bottom: 1.75rem; }
.hero .eyebrow { color: var(--badge-orange); }

.page-banner {
  position: relative;
  isolation: isolate;
  padding-block: 7rem 3rem;
  color: var(--cream);
  background: var(--green);
  overflow: hidden;
}
.page-banner__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; opacity: 0.35;
}
.page-banner::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--green) 20%, rgba(23, 54, 46, 0.4));
}
.page-banner h1 { color: var(--cream); font-size: clamp(2.4rem, 7vw, 4.5rem); margin-bottom: 0.4rem; }
.page-banner p { max-width: 38rem; font-size: 1.1rem; margin: 0; }
.page-banner .eyebrow { color: var(--badge-orange); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--green { background: var(--green); color: var(--cream); }
.section--green h2, .section--green h3 { color: var(--cream); }
.section--green .eyebrow { color: var(--badge-orange); }
.section--paper-dark { background: var(--paper-dark); }

.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.section--green .section-head p { color: var(--cream); opacity: 0.85; }

/* Three pillars - echo the shield badges on the printed menu */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: -3.5rem;
  position: relative;
  z-index: 3;
}
.pillar {
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: var(--radius);
  color: #fff;
  box-shadow: var(--shadow);
}
.pillar h3 { color: #fff; font-size: 1.4rem; text-transform: uppercase; margin-bottom: 0.35rem; }
.pillar p { margin: 0 0 1rem; opacity: 0.92; }
.pillar a { color: #fff; font-weight: 700; text-decoration: none; }
.pillar a:hover { text-decoration: underline; color: #fff; }
.pillar--food { background: var(--badge-blue); }
.pillar--sport { background: var(--badge-orange); }
.pillar--music { background: var(--badge-olive); }
.pillar__icon { width: 36px; height: 36px; margin-bottom: 0.75rem; }

/* Two-column split used for intro / roast / find us */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--reverse > :first-child { order: 2; }
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.stamp strong { font-size: 2rem; color: var(--red); line-height: 1; }

/* --------------------------------------------------------------------------
   What's on - weekly cards
   -------------------------------------------------------------------------- */
.week {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}
.event-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.event-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.event-card__body { padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.event-card__day {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}
.event-card h3 { color: var(--green); margin: 0.25rem 0 0.4rem; }
.event-card p { color: var(--ink-soft); margin: 0; }
.event-card__meta { margin-top: auto; padding-top: 1rem; font-weight: 600; color: var(--green); }

/* Chalkboard (pub quiz) */
.chalk {
  background: #262a27 radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.07), transparent 60%);
  color: #f3f1ea;
  border: 10px solid #6b4f36;
  border-radius: 6px;
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.chalk h3 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.4rem); text-transform: none; margin-bottom: 0.25rem; }
.chalk__time { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; color: #fff; line-height: 1.1; margin: 0.5rem 0; }
.chalk p { margin: 0.25rem 0; font-size: 1.1rem; }
.chalk strong { color: var(--badge-orange); }

/* --------------------------------------------------------------------------
   Food teasers
   -------------------------------------------------------------------------- */
.dish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.dish {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.dish img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dish__body { padding: 1.1rem 1.25rem 1.3rem; }
.dish__top { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.dish h3 { margin: 0; font-size: 1.1rem; }
.dish__price { font-weight: 800; color: var(--red); white-space: nowrap; }
.dish p { margin: 0.4rem 0 0; color: var(--ink-soft); font-size: 0.92rem; }

/* --------------------------------------------------------------------------
   Sport
   -------------------------------------------------------------------------- */
.game-on {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--green-800);
  border-left: 4px solid var(--badge-orange);
  border-radius: var(--radius);
}
.game-on p { opacity: 0.9; }

.sport-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.sport-list li {
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(234, 224, 194, 0.35);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 0.75rem;
}
.gallery--strip { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 800px) { .gallery--strip { grid-template-columns: repeat(2, 1fr); } }

.gallery__item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--green);
  cursor: zoom-in;
}
.gallery__item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.35s, opacity 0.35s;
}
.gallery__item:hover img { transform: scale(1.04); opacity: 0.9; }

.gallery-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem; }
.gallery-filters button {
  min-height: 40px;
  padding: 0.4rem 1rem;
  border: 2px solid var(--green);
  border-radius: 999px;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}
.gallery-filters button[aria-pressed="true"] { background: var(--green); color: var(--cream); }

.lightbox {
  width: min(92vw, 1100px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(10, 22, 18, 0.88); backdrop-filter: blur(3px); }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 6px; }
.lightbox figcaption { color: var(--cream); text-align: center; padding-top: 0.75rem; }
.lightbox__close {
  position: absolute;
  top: -3.25rem; right: 0;
  width: 44px; height: 44px;
  border: 2px solid var(--cream);
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Food menu page
   -------------------------------------------------------------------------- */
.menu-nav {
  position: sticky;
  top: calc(var(--header-h) + 3px);
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.menu-nav ul {
  display: flex;
  gap: 0.4rem;
  margin: 0;
  padding: 0.75rem 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.menu-nav ul::-webkit-scrollbar { display: none; }
.menu-nav a {
  display: block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--green);
  background: var(--paper-dark);
}
.menu-nav a:hover, .menu-nav a.is-active { background: var(--green); color: var(--cream); }

.menu-key { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; color: var(--ink-soft); font-size: 0.92rem; }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 860px) { .menu-grid { grid-template-columns: 1fr; } }

.menu-section {
  scroll-margin-top: calc(var(--header-h) + 80px);
  padding: 1.75rem 1.75rem 1.25rem;
  background: #fbf8f2;
  border: 2px solid var(--green);
  border-radius: 4px;
}
.menu-section--wide { grid-column: 1 / -1; }
.menu-section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  text-align: center;
  padding-bottom: 0.6rem;
  margin-bottom: 0.9rem;
  border-bottom: 2px solid var(--green);
}
.menu-section__note { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 1rem; }

.menu-items { margin: 0; padding: 0; list-style: none; }
.menu-items .menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--line);
}
.menu-items .menu-item:last-child { border-bottom: 0; }
.menu-item__name { font-weight: 700; color: var(--green); }
.menu-item__desc { grid-column: 1 / -1; max-width: 46ch; margin: 0; font-size: 0.88rem; color: var(--ink-soft); line-height: 1.45; }
.menu-item__price { grid-row: 1; grid-column: 2; font-weight: 700; white-space: nowrap; text-align: right; }
.menu-item__price small { font-weight: 500; color: var(--ink-soft); margin-right: 0.35rem; }
.menu-items .menu-item--featured .menu-item__name::after {
  content: "House favourite";
  margin-left: 0.5rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 0.15em;
}

.tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0 0.4rem;
  border-radius: 4px;
  background: var(--badge-olive);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.6;
  vertical-align: 0.15em;
}
.tag--gf { background: var(--badge-blue); }

.menu-items--compact { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); column-gap: 2rem; }

.roast-banner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--green);
  color: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.roast-banner__body { padding: clamp(1.75rem, 4vw, 3rem); }
.roast-banner h2 { color: var(--cream); }
.roast-banner img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.roast-banner__prices { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.25rem; }
.roast-banner__prices span {
  padding: 0.6rem 1.1rem;
  border: 2px solid var(--taupe);
  border-radius: 8px;
  font-weight: 700;
}
.roast-banner__prices strong { color: #fff; font-size: 1.25rem; margin-left: 0.3rem; }
@media (max-width: 760px) {
  .roast-banner { grid-template-columns: 1fr; }
  .roast-banner img { order: -1; min-height: 0; aspect-ratio: 16 / 9; }
}

.allergy-note {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--red);
  background: #fbf8f2;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Visit / contact
   -------------------------------------------------------------------------- */
.info-list { display: grid; gap: 1.25rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.info-list li { display: grid; grid-template-columns: 44px 1fr; gap: 0.9rem; align-items: start; }
.info-list__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: var(--cream);
}
.info-list__icon svg { width: 20px; height: 20px; }
.info-list strong { display: block; color: var(--green); }
.info-list a { font-weight: 600; }

.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 0.55rem 0; border-bottom: 1px solid var(--line); text-align: left; }
.hours th { font-weight: 600; }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--red); font-weight: 700; }
.section--green .hours th, .section--green .hours td { border-color: rgba(234, 224, 194, 0.2); }
.section--green .hours tr.is-today th, .section--green .hours tr.is-today td { color: var(--badge-orange); }

.map {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--paper-dark);
}

.card {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form { display: grid; gap: 1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.92rem; color: var(--green); }
.form input, .form select, .form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--paper-dark);
  border-radius: 8px;
  background: var(--paper);
  font: inherit;
  font-weight: 400;
  color: var(--ink);
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { border-color: var(--green); outline-offset: 0; }
.form input:user-invalid, .form textarea:user-invalid { border-color: var(--red); }
.form__hint { font-size: 0.85rem; color: var(--ink-soft); margin: 0; }

/* Social icons */
.social { display: flex; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.social a {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--green);
}
.social a:hover { background: #fff; color: var(--red); }
.social svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   CTA band + footer
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--red);
  color: #fff;
  padding-block: 2.75rem;
}
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.cta-band h2 { color: #fff; margin: 0; font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
.cta-band p { margin: 0.25rem 0 0; opacity: 0.9; }

.site-footer {
  background: var(--green);
  color: var(--cream);
  padding-block: 4rem 1.5rem;
  font-size: 0.95rem;
}
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: #fff; }
.site-footer h3 { color: var(--cream); font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { width: 120px; margin-bottom: 1rem; }
.footer-brand p { opacity: 0.85; max-width: 22rem; }
.footer-links { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-hours { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; margin: 0; }
.footer-hours dt { opacity: 0.8; }
.footer-hours dd { margin: 0; text-align: right; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(234, 224, 194, 0.15);
  font-size: 0.82rem;
  opacity: 0.75;
}

/* Prototype-only: marks content that still needs real details */
.todo {
  background: rgba(217, 138, 34, 0.18);
  outline: 1px dashed var(--badge-orange);
  outline-offset: 2px;
  border-radius: 3px;
}

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

/* Keep the sticky food nav clear of the hanging logo on desktop */
@media (min-width: 1081px) {
  .menu-nav ul { padding-left: 120px; }
}

/* --------------------------------------------------------------------------
   Award, facilities, quiz, teams
   -------------------------------------------------------------------------- */
.award {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.25rem;
  align-items: center;
  margin-top: 1.75rem;
  padding: 1rem 1.25rem 1rem 1rem;
  background: #fff;
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.award img { width: 96px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; }
.award__label { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.award strong { display: block; font-size: 1.15rem; color: var(--green); line-height: 1.25; }
.award p { margin: 0.2rem 0 0; font-size: 0.9rem; color: var(--ink-soft); }

.facilities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 0.6rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.facilities li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.9rem;
  background: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--green);
}
.section--green .facilities li { background: var(--green-800); color: var(--cream); }
.facilities svg { flex: none; width: 22px; height: 22px; color: var(--red); }
.section--green .facilities svg { color: var(--badge-orange); }

.event-card--poster img { aspect-ratio: 3 / 2; }

.quiz-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: #0fb4e6;
  color: #0d1b24;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.quiz-card h3 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.4rem); text-transform: uppercase; font-weight: 800; margin-bottom: 0.25rem; }
.quiz-card__time { font-size: 1.4rem; font-weight: 800; margin: 0 0 0.75rem; }
.quiz-card ul { margin: 0 0 1rem; padding-left: 1.1rem; }
.quiz-card p { margin: 0; font-size: 0.92rem; }
.quiz-card a { color: #0d1b24; font-weight: 700; }
.quiz-card figure { margin: 0; text-align: center; font-size: 0.8rem; font-weight: 600; }
.quiz-card figure img { width: 150px; background: #fff; border-radius: 8px; margin-bottom: 0.4rem; }
@media (max-width: 520px) {
  .quiz-card { grid-template-columns: 1fr; }
}

.teams { display: grid; gap: 1rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.teams li {
  padding: 1.1rem 1.25rem;
  background: #fff;
  border-left: 4px solid var(--badge-orange);
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.teams strong { display: block; color: var(--green); font-size: 1.05rem; }
.teams span { color: var(--ink-soft); font-size: 0.92rem; }

.dog-note {
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  background: #fff;
  border-left: 4px solid var(--badge-olive);
  border-radius: var(--radius);
}
.dog-note strong { color: var(--green); }

.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.contact-cards .card h3 { margin-bottom: 0.4rem; }
.contact-cards .card p { color: var(--ink-soft); }

.occasions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 1.75rem; padding: 0; list-style: none; }
.occasions li {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--green);
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 600;
}
.award--hosts { margin-top: 1rem; border-left-color: var(--badge-olive); }
@media (max-width: 600px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
}
.gallery__item[hidden] { display: none; }

.quiz-col { display: grid; gap: 1.25rem; }
.quiz-poster { border-radius: var(--radius); box-shadow: var(--shadow); }
.league-logo { display: block; width: min(100%, 260px); margin-top: 0.75rem; }
.league-logo:hover { opacity: 0.8; }
/* Stack the QR code under the quiz details so the text has room */
.quiz-card { grid-template-columns: 1fr; }
.quiz-card figure { display: flex; align-items: center; gap: 1rem; text-align: left; font-size: 0.95rem; }
.quiz-card figure img { width: 120px; margin: 0; }

.dog-note { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: center; }
.dog-note img { width: 96px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; }
.dog-note p { margin: 0; }

.team-badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--badge-orange);
  color: #fff !important;
  font-size: 0.75rem !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.teams li > span:not(.team-badge) { display: block; }

.team-photos { display: grid; gap: 1rem; }
.team-photos figure { margin: 0; }
.team-photos .gallery__item { box-shadow: var(--shadow); border-radius: var(--radius); }
.team-photos .gallery__item img { aspect-ratio: 3 / 2; }
.team-photos figcaption { margin-top: 0.4rem; font-size: 0.88rem; font-weight: 600; color: var(--green); }
.team-badge--silver { background: var(--green-600); }
/* Portrait frontage photo: keep the pub building and sign in view */
.hero__img--outside { object-position: 60% 30%; }

/* WordPress Gallery block on the Gallery page */
.wb-gallery-content .wp-block-gallery { gap: 0.75rem; }
.wb-gallery-content .wp-block-image { cursor: zoom-in; border-radius: 8px; overflow: hidden; }
.wb-gallery-content .wp-block-image img { aspect-ratio: 1; object-fit: cover; }


/* Content from the WordPress editor (generic pages, posts) */
.entry-content { max-width: 760px; }
.entry-content > * + * { margin-top: 1em; }
.entry-content img { border-radius: var(--radius); }

/* Keep the sticky header and food nav below the WordPress admin bar when logged in */
.admin-bar .site-header { top: 32px; }
.admin-bar .menu-nav { top: calc(var(--header-h) + 35px); }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .menu-nav { top: calc(var(--header-h) + 49px); }
}
@media (max-width: 600px) {
  /* The admin bar scrolls away on small screens */
  .admin-bar .site-header { top: 0; }
  .admin-bar .menu-nav { top: calc(var(--header-h) + 3px); }
}
@media (max-width: 1080px) {
  .admin-bar .site-nav { top: calc(var(--header-h) + 35px); }
}
@media (max-width: 782px) {
  .admin-bar .site-nav { top: calc(var(--header-h) + 49px); }
}
