/* ============================================
   Pollards Inn, Willaston - Static Site
   Fonts: Caslonian Std L (headings), Berthold Baskerville Pro (body),
   served from Adobe Fonts. The kit carries caslonian at 300 only and
   baskerville at 400 only, so nothing here asks for a weight it has not got.
   ============================================ */


/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand ------------------------------------------------- */
  --graphite: #2C2924;
  --bone: #D4D2C4;
  --parchment: #EEECE8;
  --bright-snow: #F8F8F6;

  /* Roles. The greys are graphite mixed toward bone, so everything
     on the page comes back to the four brand colours. Muted is held
     dark enough to clear 4.5:1 on bone, the darkest light surface. */
  --ink: var(--graphite);
  --ink-soft: #423F39;
  --muted: #54524A;
  --surface: var(--parchment);
  --surface-sink: var(--bone);
  --surface-raised: var(--bright-snow);
  --text-body: #33302A;
  --text-light: #54524A;
  --rule: rgba(44, 41, 36, 0.14);
  --font-heading: "caslonian-std-l", Georgia, "Times New Roman", serif;
  --font-body: "berthold-baskerville-pro", Baskerville, Georgia, serif;
  --max-w: 1280px;
  --nav-h: 96px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--surface);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Layout ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--surface { background: var(--surface); }
.section--sink { background: var(--surface-sink); }
.section--muted { background: var(--muted); color: var(--surface-raised); }
.section--ink { background: var(--ink); color: var(--surface-raised); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-title--light { color: var(--surface-raised); }
.section-title--centre { text-align: center; }

.section-rule {
  width: 48px;
  height: 2px;
  background: var(--ink);
  margin-bottom: 28px;
}

.section-rule--centre { margin-left: auto; margin-right: auto; }
.section-rule--white { background: rgba(255,255,255,0.75); }

.lede {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 640px;
}

.lede--light { color: rgba(255,255,255,0.85); }
.lede--centre { margin-left: auto; margin-right: auto; text-align: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 2px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1.5px solid transparent;
}

.btn--solid {
  background: var(--ink);
  color: var(--surface-raised);
  border-color: var(--ink);
}
.btn--solid:hover { background: var(--ink-soft); border-color: var(--ink-soft); }


.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--outline:hover { background: var(--ink); color: var(--surface-raised); }

.btn--outline-light {
  background: transparent;
  color: var(--surface-raised);
  border-color: var(--surface-raised);
}
.btn--outline-light:hover { background: var(--surface-raised); color: var(--ink); }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(238, 236, 232, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
}

.nav__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr) minmax(0, 1fr);
  align-items: center;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 24px;
  gap: 32px;
}

.nav__logo { display: flex; align-items: center; gap: 12px; justify-self: start; }
.nav__logo img {
  /* Sized by height, not width. The lockup is a stacked mark, so a width
     cap let it grow taller than a fixed-height bar and spill out of it. */
  max-height: calc(var(--nav-h) - 28px);
  width: auto;
  max-width: 100%;
  height: auto;
}

.nav__links {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-self: center;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-body);
  text-transform: uppercase;
  letter-spacing: 0;
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav__links a:hover { color: var(--ink); }
.nav__links a.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.nav__cta {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--surface-raised);
  background: var(--ink);
  padding: 12px 22px;
  border-radius: 2px;
  transition: background 0.25s;
  justify-self: end;
}
.nav__cta:hover { background: var(--ink-soft); }

/* The panel copy of the CTA sits inside .nav__links, whose link colour
   is more specific than .nav__cta — restate it so both read the same. */
.nav__links a.nav__cta { color: var(--surface-raised); }
.nav__links a.nav__cta:hover { background: var(--ink-soft); color: var(--surface-raised); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 6px;
}
.nav__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  transition: all 0.3s;
}

/* Offcanvas-only elements: hidden on desktop, revealed in mobile nav */
.nav__close-item,
.nav__cta-item { display: none; }
.nav__overlay { display: none; }

/* ============================================
   HOME HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  /* Multiplied rather than veiled. A flat alpha scrim pulls every pixel
     toward its own grey; multiplying by a warm tone darkens the photograph
     while the colour in it survives. Darker at the foot, where the text is. */
  background: linear-gradient(#857E6D, #5F594C), url('../assets/images/exterior-front.avif') center/cover no-repeat;
  background-blend-mode: multiply;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: calc(var(--nav-h) + 48px) 24px 48px;
  color: var(--surface-raised);
  text-align: center;
}

.hero__inner {
  max-width: 820px;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

.hero__title em {
  /* Caslonian ships a true italic at this weight, so the last phrase
     leans rather than just shifting tone. The italic S has a tight left
     sidebearing, so the word space needs a little optical help. */
  font-style: italic;
  color: var(--surface-sink);
  margin-left: 0.14em;
}

.hero__sub {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  margin: 0 auto 36px;
  max-width: 620px;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  height: 320px;
  /* Multiplied, like the hero, so the photograph keeps its colour. Light
     at the head, dark at the foot where the title sits. */
  background: linear-gradient(#C2BCAE 0%, #8A8477 38%, #3A362E 100%), url('../assets/images/exterior-garden-side.webp') center/cover no-repeat;
  background-blend-mode: multiply;
  display: flex;
  align-items: flex-end;
  padding: 0 24px 56px;
  margin-top: var(--nav-h);
  color: var(--surface-raised);
}

.page-hero__inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
}

.page-hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 12px;
}

.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 300;
  line-height: 1.1;
}

/* ============================================
   HOME - INTRO STRIP
   ============================================ */
.intro {
  text-align: center;
  padding: 96px 0 48px;
}

.intro__inner {
  max-width: 720px;
  margin: 0 auto;
}

/* ============================================
   HOME - PILLARS (Pub / Beer / Food / Location)
   ============================================ */
.pillars {
  padding: 48px 0 96px;
}

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px 40px;
}

/* Three-up variant, used by the About page's "what we stand for". Set as a
   class rather than inline so the responsive rules below can override it. */
.pillars__grid--three {
  grid-template-columns: repeat(3, 1fr);
}

.pillar {
  text-align: center;
  /* The 32px vertical padding was holding an 84px icon off the title.
     Without it the cells are short and the row gap did the rest. */
  padding: 0 16px;
}

.pillar__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 12px;
}

.pillar__body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-body);
}

/* ============================================
   HOME - FEATURE SPLIT
   ============================================ */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* For a split whose photo has not arrived yet. Drop the modifier and the
   media column comes back. */
.feature-split--solo {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
}
.feature-split--solo .feature-split__media { display: none; }

.feature-split--reverse .feature-split__media { order: 2; }

.feature-split__media {
  height: 460px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface-sink);
}
.feature-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   EVENTS LIST
   ============================================ */
.events {
  display: grid;
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}

.event {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 28px;
  align-items: center;
  background: var(--surface-raised);
  padding: 28px 32px;
  border-left: 3px solid var(--ink);
}

.event__date {
  font-family: var(--font-heading);
  color: var(--ink);
}
.event__date .day {
  font-size: 2.4rem;
  font-weight: 300;
  line-height: 1;
  display: block;
}
.event__date .month {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

.event__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 6px;
}

.event__meta {
  font-size: 0.88rem;
  color: var(--text-light);
}

.hire-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.hire-card {
  background: var(--surface-raised);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 4px;
  padding: 40px 36px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.04);
}

.hire-card__label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.hire-card__title {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 16px;
}

.hire-card__capacity {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 8px;
}

.hire-card__capacity span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-light);
  margin-top: 8px;
}

.hire-card p {
  margin-top: 16px;
}

/* ============================================
   MENU VIEWER (tabs + image + download)
   ============================================ */
.menu-viewer {
  max-width: 880px;
  margin: 0 auto;
}

.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}

.menu-tab {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-light);
  background: transparent;
  border: none;
  padding: 16px 28px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

.menu-tab:hover { color: var(--ink); }

.menu-tab.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.menu-select {
  display: none;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 28px;
  padding: 14px 16px;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface-raised);
  border: 1px solid var(--rule);
  border-radius: 2px;
  cursor: pointer;
}

.menu-panel { display: none; text-align: center; }
.menu-panel.active { display: block; }

/* Each page is wrapped in a link to its own full-size render. */
.menu-panel__page {
  display: block;
  margin: 0 auto 28px;
}

.menu-panel__image {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(44, 41, 36, 0.12);
}

.menu-panel__hint {
  margin-top: 8px;
  color: var(--text-light);
  font-size: 0.85rem;
}

.menu-panel__summary {
  max-width: 62ch;
  margin: 18px auto 0;
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.65;
  text-align: center;
}

.menu-allergens {
  max-width: 68ch;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
}

/* ============================================
   SIGNPOST CARD
   ============================================ */

.signpost {
  max-width: 620px;
  margin: 0 auto;
  padding: 48px 32px;
  text-align: center;
  background: var(--surface-raised);
  border: 1px solid var(--rule);
  border-radius: 3px;
}

.signpost__icon {
  font-size: 2.25rem;
  /* Facebook's own blue. The card exists to send people there, so the mark
     is doing recognition work rather than decoration. */
  color: #1877F2;
}

.signpost__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--ink);
  margin: 18px 0 0;
}

.signpost__body {
  max-width: 44ch;
  margin: 14px auto 28px;
  color: var(--text-body);
}

/* ============================================
   LIGHTBOX
   ============================================ */
/* Sits above the nav (100), its overlay (150) and the mobile nav panel (200). */
body.lightbox-open { overflow: hidden; }

.lightbox {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 300;
  background: rgba(44, 41, 36, 0.94);
  opacity: 0;
  visibility: hidden;
  /* Visibility flips instantly on open and is held back until the fade has
     finished on close. Transitioning visibility itself would leave the box
     unfocusable until the animation ran. */
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0s linear 0s;
}

/* Centring is done with margin:auto on the image, NOT justify-content /
   align-items. When a centred flex item overflows its scroll container the
   start-side overflow is unreachable — scrollLeft cannot go negative — which
   hid the left edge of the zoomed landscape menus. An auto margin collapses
   to 0 once the image is larger than the stage, so it scrolls end to end. */
.lightbox__stage {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  padding: 72px 20px 56px;
  overflow: hidden;
}

/* Only ever constrained, never sized — a small image stays at its own size
   rather than being stretched and going soft. */
.lightbox__image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  margin: auto;
  cursor: zoom-in;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

.lightbox.is-zoomed .lightbox__stage { overflow: auto; }

.lightbox.is-zoomed .lightbox__image {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: var(--surface-raised);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--ink);
  color: var(--surface-raised);
}

.lightbox__close[hidden],
.lightbox__nav[hidden],
.lightbox__counter[hidden] { display: none; }

.lightbox__close {
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 72px;
  font-size: 1.5rem;
}

.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }

.lightbox__counter {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  z-index: 1;
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

@media (max-width: 700px) {
  .lightbox__stage { padding: 64px 8px 48px; }
  .lightbox__nav { width: 40px; height: 60px; font-size: 1.2rem; }
  .lightbox__nav--prev { left: 4px; }
  .lightbox__nav--next { right: 4px; }
}

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

/* ============================================
   GALLERY GRID
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* Portrait to match the source photography (1600x2133), so object-fit: cover
   has nothing to crop. A landscape tile would throw away over half of every
   shot. */
.gallery-grid__item {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface-sink);
}

.gallery-grid__item .lightbox-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-grid__item:hover img {
  transform: scale(1.04);
}

/* ============================================
   CONTACT PANELS
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: -80px;
  position: relative;
  z-index: 5;
}

.contact-card {
  background: var(--surface-raised);
  padding: 40px 28px;
  text-align: center;
  box-shadow: 0 6px 30px rgba(44, 41, 36, 0.08);
}

.contact-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--surface-raised);
}
.contact-card__icon .bi { font-size: 1.3rem; }

.contact-card__label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.contact-card__value {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-card__value a:hover { color: var(--ink); }

.hours {
  display: grid;
  gap: 14px;
  max-width: 560px;
  margin: 0 auto;
}

.hours__row {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
}

.hours__day {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
}

.hours__time {
  font-family: var(--font-body);
  color: var(--text-body);
}

.map {
  aspect-ratio: 16 / 7;
  width: 100%;
  border: none;
}

/* ============================================
   TESTIMONIAL BAND
   ============================================ */
/* Full-bleed letterbox bands, left in full colour. They break up runs of
   sections that would otherwise share a background and read as one slab.
   No text sits on them, so they need no scrim. */
.band {
  height: clamp(220px, 28vw, 340px);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.band--garden  { background-image: url('../assets/images/garden.webp'); }
.band--terrace { background-image: url('../assets/images/covered-terrace.webp'); }
.band--lamp    { background-image: url('../assets/images/detail-lamp.avif'); }
.band--play    { background-image: url('../assets/images/play-area.avif'); }

.factbar {
  background: var(--surface-sink);
  color: var(--ink);
  text-align: center;
  padding: 26px 20px;
}

.factbar__text {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  margin: 0;
}

/* A real review block goes back here once there are five-star Google
   reviews from after the reopening. It will want its own styles; the old
   ones assumed light text over a scrimmed photograph, which is not how
   this band works any more. */

/* ============================================
   CTA BAND
   ============================================ */
.cta-band {
  background: var(--surface-sink);
  padding: 64px 0;
  text-align: center;
  color: var(--ink);
}

.cta-band__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 300;
  margin-bottom: 12px;
}

.cta-band__sub {
  font-size: 1rem;
  color: var(--text-body);
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.footer__brand img {
  max-width: 300px;
  width: 100%;
  height: auto;
}

.footer__col-title {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--surface-raised);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 18px;
}

.footer__text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}

.footer__links li { margin-bottom: 10px; }
.footer__links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--surface-raised); }

.footer__contact {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}
.footer__contact a:hover { color: var(--surface-raised); }
.footer__contact p { margin-bottom: 6px; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

.footer__copy a {
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__meta {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .pillars__grid { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
  /* Three items in a two-column grid orphans the last one. They are
     text only now, so they stay three-up until the phone breakpoint. */
  .pillars__grid--three { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile navigation — left-sliding offcanvas panel */
@media (max-width: 900px) {
  .nav__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  .nav__logo { justify-self: auto; }
  .nav__logo img { max-width: 180px; }   /* secondary guard; height still governs */
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }

  .nav__links {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    height: 100dvh;
    width: 90%;
    max-width: 420px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    background: var(--ink);
    padding: 84px 32px 40px;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
    z-index: 200;
  }

  /* The shadow is offset 6px right with a 40px blur, so while the panel is
     parked off-canvas it still painted a soft dark gradient down the left of
     every page. It only exists once the panel is actually open. */
  .nav__links.open {
    transform: translateX(0);
    box-shadow: 6px 0 40px rgba(0, 0, 0, 0.35);
  }

  .nav__links a {
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    padding: 12px 0;
    border-bottom: none;
    color: rgba(248, 248, 246, 0.86);
  }
  .nav__links a.active {
    border-bottom: none;
    color: var(--surface-raised);
  }

  .nav__close-item {
    display: block;
    position: absolute;
    top: 22px;
    right: 22px;
  }
  .nav__close {
    background: transparent;
    border: none;
    color: var(--surface-raised);
    font-size: 1.7rem;
    line-height: 1;
    padding: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
  }
  .nav__close:hover { opacity: 0.7; }

  .nav__cta-item { display: block; margin-top: 24px; }
  /* The panel is already ink, so the button inverts to stand off it. */
  .nav__cta-item .nav__cta,
  .nav__links a.nav__cta {
    display: inline-block;
    font-size: 0.85rem;
    padding: 14px 28px;
    background: var(--surface-raised);
    color: var(--ink);
  }
  .nav__links a.nav__cta:hover {
    background: var(--surface-sink);
    color: var(--ink);
  }

  .nav__overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 150;
  }
  .nav__overlay.open { opacity: 1; visibility: visible; }

  /* Overlay is appended to body. Without this, the nav's own stacking
     context (z-index 100) sits under the overlay (150) and the drawer
     cannot be tapped even though it is painted on top visually. */
  body.nav-open .nav { z-index: 200; }

  body.nav-open { overflow: hidden; }
}

@media (max-width: 640px) {
  .menu-tabs { display: none; }
  .menu-select { display: block; }
}

@media (max-width: 900px) {
  .hire-grid { grid-template-columns: 1fr; }
  .contact-split { grid-template-columns: 1fr; gap: 48px; }
  .map { aspect-ratio: 4 / 3; }
  .feature-split { grid-template-columns: 1fr; gap: 32px; }
  .feature-split--reverse .feature-split__media { order: 0; }
  .feature-split__media { height: 320px; }
  .event { grid-template-columns: 90px 1fr; }
  .event__cta { grid-column: 1 / -1; justify-self: start; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --nav-h: 76px; }

  .section { padding: 64px 0; }
  .intro { padding: 72px 0 32px; }
  .pillars { padding: 32px 0 72px; }

  .hero { min-height: 88vh; }
  .hero__ctas { flex-direction: column; align-items: center; }
  .hero__ctas .btn { width: 100%; max-width: 280px; }

  .page-hero { height: 240px; padding-bottom: 36px; }

  .pillars__grid,
  .pillars__grid--three { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .contact-card { padding: 28px 20px; }
  .contact-card__value { font-size: 1rem; }

  /* Stays two-up on phones — a single column of 31 portrait photos makes for
     an unreasonably long scroll, and tapping opens the lightbox anyway. */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  .footer__grid { grid-template-columns: 1fr; gap: 36px; }

  /* The column goes full width here, and a 300px lockup lands just short
     of the text under it, which reads as a misalignment rather than a
     size. Smaller, so its left edge aligns and the right is clearly a
     deliberate stop. */
  .footer__brand img { max-width: 220px; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

.legal {
  max-width: 760px;
  margin: 0 auto;
}

.legal h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--ink);
  margin: 40px 0 12px;
}

.legal p + p { margin-top: 16px; }

.legal ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 16px 0;
}

.legal li {
  margin-bottom: 8px;
}

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

/* The body face is a single weight. Emphasis comes from colour and
   letterspacing rather than a synthesised bold. */
strong, b { font-weight: 400; color: var(--ink); }
