/* ==========================================================================
   The Cricketers, Duncton — site stylesheet
   Built on Bootstrap 5.3. Design tokens come from the design system
   (The Cricketers Design System/tokens/*.css) and are inlined here so the
   site is self-contained. No inline styles are used anywhere in the HTML.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Schibsted+Grotesk:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* --------------------------------------------------------------------------
   2. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Type families */
  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

  /* Chalk — whitewashed walls, scorebook paper */
  --chalk-50: #FBF9F3;
  --chalk-100: #F4F0E6;
  --chalk-200: #E9E3D3;
  --chalk-300: #D8D0BB;

  /* Stout — warm near-blacks */
  --stout-900: #1A1815;
  --stout-800: #24211D;
  --stout-700: #38332D;
  --stout-500: #6E665C;
  --stout-300: #B4ACA0;
  --stout-100: #E7E2D9;

  /* Baize, brass, ball, ink */
  --baize-600: #33483A;
  --brass-500: #B5A268;
  --brass-600: #9A8650;
  --brass-700: #75653A;
  --brass-100: #EFE8D2;
  --ball-600: #9E2B25;
  --ball-100: #F3DEDA;
  --ink-900: #1A1A17;
  --ink-700: #3D3B35;
  --ink-500: #6B675C;
  --ink-300: #A39E90;
  --white: #FFFFFF;

  /* Semantic colour */
  --surface-page: var(--chalk-100);
  --surface-raised: var(--chalk-50);
  --surface-sunken: var(--chalk-200);
  --surface-inverse: var(--stout-800);
  --surface-inverse-deep: var(--stout-900);
  --surface-accent: var(--brass-500);
  --text-body: var(--ink-700);
  --text-strong: var(--ink-900);
  --text-muted: var(--ink-500);
  --text-on-inverse: var(--chalk-100);
  --text-on-inverse-muted: var(--stout-300);
  --text-accent: var(--brass-700);
  --text-accent-on-inverse: var(--brass-500);
  --text-link: var(--stout-800);
  --text-link-hover: var(--brass-700);
  --border-hairline: var(--chalk-300);
  --border-strong: var(--ink-900);
  --border-inverse: rgba(244, 240, 230, .18);
  --focus-ring: var(--brass-500);
  --status-open: var(--baize-600);
  --status-closed: var(--ball-600);
  --status-notice-bg: var(--brass-100);
  --status-error: var(--ball-600);
  --status-error-bg: var(--ball-100);

  /* Type scale */
  --fs-display-xl: clamp(56px, 7vw, 112px);
  --fs-display-lg: clamp(44px, 5vw, 72px);
  --fs-display-md: 40px;
  --fs-display-sm: 30px;
  --fs-body-lg: 19px;
  --fs-body: 16px;
  --fs-body-sm: 14px;
  --fs-label: 12px;
  --lh-display: 1.02;
  --lh-tight: 1.2;
  --lh-body: 1.6;
  --tracking-display: -0.015em;
  --tracking-label: 0.16em;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 144px;
  --container-max: 1240px;
  --container-narrow: 720px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(64px, 9vw, 128px);
  --header-h: 76px;

  /* Effects */
  --radius-none: 0;
  --radius-sm: 2px;
  --shadow-sm: 0 1px 2px rgba(26, 24, 21, .08);
  --shadow-md: 0 8px 24px -12px rgba(26, 24, 21, .28);
  --shadow-lg: 0 24px 60px -24px rgba(26, 24, 21, .45);
  --shadow-panel: 10px -14px 30px -16px rgba(26, 24, 21, .5);
  --scrim-bottom: linear-gradient(180deg, rgba(26, 24, 21, 0) 35%, rgba(26, 24, 21, .78) 100%);
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast: 140ms;
  --dur-base: 240ms;
  --dur-slow: 600ms;
}

/* --------------------------------------------------------------------------
   3. Bootstrap variable overrides
   -------------------------------------------------------------------------- */
:root,
[data-bs-theme="light"] {
  --bs-body-bg: var(--surface-page);
  --bs-body-color: var(--text-body);
  --bs-body-font-family: var(--font-body);
  --bs-body-font-size: 1rem;
  --bs-body-line-height: var(--lh-body);
  --bs-heading-color: var(--text-strong);
  --bs-link-color: var(--text-link);
  --bs-link-hover-color: var(--text-link-hover);
  --bs-link-color-rgb: 36, 33, 29;
  --bs-link-hover-color-rgb: 117, 101, 58;
  --bs-border-color: var(--border-hairline);
  --bs-border-radius: 0;
  --bs-border-radius-sm: 0;
  --bs-border-radius-lg: 0;
  --bs-border-radius-xl: 0;
  --bs-border-radius-xxl: 0;
  --bs-focus-ring-color: rgba(181, 162, 104, .4);
}

/* --------------------------------------------------------------------------
   4. Base
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

/* The page must never scroll sideways on phones */
html,
body {
  overflow-x: clip;
}

body {
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: var(--tracking-display);
  line-height: var(--lh-tight);
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-out);
}

::selection {
  background: var(--brass-500);
  color: var(--stout-900);
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

/* Container matches the 1240px design width and uses the fluid gutter.
   Side padding never drops below 1.5rem so a .g-5 row's negative margins
   can't poke past the viewport on phones. */
.container,
.container-fluid {
  --bs-gutter-x: max(3rem, calc(var(--gutter) * 2));
}

@media (min-width: 1200px) {
  .container {
    max-width: var(--container-max);
  }
}

.container-narrow {
  max-width: var(--container-narrow);
  margin-inline: auto;
}

/* Lucide icon font */
[class^="icon-"],
[class*=" icon-"] {
  display: inline-block;
  line-height: 1;
}

.icon-brass {
  color: var(--brass-500);
}

.icon-brass-dark {
  color: var(--brass-600);
}

.icon-lg {
  font-size: 18px;
}

/* --------------------------------------------------------------------------
   5. Surfaces, sections & type utilities
   -------------------------------------------------------------------------- */
.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: 56px;
}

/* First section on pages without a hero clears the fixed header */
.section--under-header {
  padding-top: calc(var(--header-h) + var(--section-y));
}

.bg-raised {
  background: var(--surface-raised);
}

.bg-sunken {
  background: var(--surface-sunken);
}

.bg-inverse {
  background: var(--surface-inverse);
  color: var(--text-on-inverse);
}

.bg-inverse h1,
.bg-inverse h2,
.bg-inverse h3 {
  color: var(--chalk-100);
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-accent);
}

.bg-inverse .eyebrow {
  color: var(--brass-500);
}

.display-lg {
  font-size: var(--fs-display-lg);
  line-height: var(--lh-display);
}

.display-md {
  font-size: var(--fs-display-md);
  line-height: var(--lh-display);
}

.display-sm {
  font-size: var(--fs-display-sm);
  line-height: var(--lh-display);
}

/* Headline formula: roman statement + italic brass tail */
.display-lg em,
.display-md em,
.display-sm em,
.hero__title em {
  font-style: italic;
  color: var(--text-accent);
}

.bg-inverse .display-lg em,
.bg-inverse .display-md em,
.bg-inverse .display-sm em {
  color: var(--brass-500);
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 640px;
}

.section-heading--center {
  align-items: center;
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}

.section-heading__lead {
  font-size: var(--fs-body-lg);
  line-height: 1.55;
  color: var(--text-body);
}

.bg-inverse .section-heading__lead {
  color: var(--text-on-inverse-muted);
}

.lead {
  font-size: var(--fs-body-lg);
  font-weight: 400;
  color: var(--text-strong);
}

.text-strong {
  color: var(--text-strong);
}

.text-muted-cric {
  color: var(--text-muted);
}

.text-sm {
  font-size: var(--fs-body-sm);
}

.text-xs {
  font-size: 13px;
}

.max-w-prose {
  max-width: 640px;
}

/* --------------------------------------------------------------------------
   6. Buttons (Bootstrap .btn re-skinned with CSS variables)
   -------------------------------------------------------------------------- */
.btn {
  --bs-btn-font-family: var(--font-body);
  --bs-btn-font-size: 13px;
  --bs-btn-font-weight: 600;
  --bs-btn-line-height: 1;
  --bs-btn-padding-x: 24px;
  --bs-btn-padding-y: 14px;
  --bs-btn-border-width: 1px;
  --bs-btn-border-radius: 0;
  --bs-btn-focus-box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.btn:active,
.btn.active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  box-shadow: none;
}

.btn-sm {
  --bs-btn-padding-x: 16px;
  --bs-btn-padding-y: 9px;
  --bs-btn-font-size: 12px;
}

.btn-lg {
  --bs-btn-padding-x: 32px;
  --bs-btn-padding-y: 18px;
  --bs-btn-font-size: 14px;
}

/* Primary — stout */
.btn-primary {
  --bs-btn-bg: var(--stout-800);
  --bs-btn-border-color: var(--stout-800);
  --bs-btn-color: var(--chalk-100);
  --bs-btn-hover-bg: var(--stout-700);
  --bs-btn-hover-border-color: var(--stout-700);
  --bs-btn-hover-color: var(--chalk-50);
  --bs-btn-active-bg: var(--stout-700);
  --bs-btn-active-border-color: var(--stout-700);
  --bs-btn-active-color: var(--chalk-50);
  --bs-btn-disabled-bg: var(--stout-800);
  --bs-btn-disabled-border-color: var(--stout-800);
  --bs-btn-disabled-color: var(--chalk-100);
}

/* Accent — brass (never more than one per view) */
.btn-accent {
  --bs-btn-bg: var(--brass-500);
  --bs-btn-border-color: var(--brass-500);
  --bs-btn-color: var(--stout-900);
  --bs-btn-hover-bg: var(--brass-600);
  --bs-btn-hover-border-color: var(--brass-600);
  --bs-btn-hover-color: var(--stout-900);
  --bs-btn-active-bg: var(--brass-600);
  --bs-btn-active-border-color: var(--brass-600);
  --bs-btn-active-color: var(--stout-900);
}

/* Outline — 1px ink, fills on hover */
.btn-outline-ink {
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--border-strong);
  --bs-btn-color: var(--text-strong);
  --bs-btn-hover-bg: var(--ink-900);
  --bs-btn-hover-border-color: var(--ink-900);
  --bs-btn-hover-color: var(--chalk-100);
  --bs-btn-active-bg: var(--ink-900);
  --bs-btn-active-border-color: var(--ink-900);
  --bs-btn-active-color: var(--chalk-100);
}

/* Outline on dark surfaces */
.btn-outline-chalk {
  --bs-btn-bg: transparent;
  --bs-btn-border-color: rgba(244, 240, 230, .5);
  --bs-btn-color: var(--chalk-100);
  --bs-btn-hover-bg: var(--chalk-100);
  --bs-btn-hover-border-color: var(--chalk-100);
  --bs-btn-hover-color: var(--stout-900);
  --bs-btn-active-bg: var(--chalk-100);
  --bs-btn-active-border-color: var(--chalk-100);
  --bs-btn-active-color: var(--stout-900);
}

/* Ghost — text only */
.btn-ghost {
  --bs-btn-bg: transparent;
  --bs-btn-border-color: transparent;
  --bs-btn-color: var(--text-strong);
  --bs-btn-hover-bg: var(--surface-sunken);
  --bs-btn-hover-border-color: transparent;
  --bs-btn-hover-color: var(--text-strong);
  --bs-btn-active-bg: var(--surface-sunken);
  --bs-btn-active-border-color: transparent;
  --bs-btn-active-color: var(--text-strong);
}

/* --------------------------------------------------------------------------
   7. Badges
   -------------------------------------------------------------------------- */
.badge {
  --bs-badge-font-size: 11px;
  --bs-badge-font-weight: 600;
  --bs-badge-padding-x: 9px;
  --bs-badge-padding-y: 5px;
  --bs-badge-border-radius: var(--radius-sm);
  --bs-badge-color: var(--text-strong);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-sunken);
  font-family: var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.2;
}

.badge-brass {
  --bs-badge-color: var(--brass-700);
  background: var(--brass-100);
}

.badge-green {
  --bs-badge-color: var(--stout-700);
  background: var(--stout-100);
}

.badge-red {
  --bs-badge-color: var(--ball-600);
  background: var(--ball-100);
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* --------------------------------------------------------------------------
   8. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1030;
  background: rgba(26, 24, 21, .8);
  border-bottom: 1px solid rgba(244, 240, 230, .15);
  transition: background-color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}

.site-header.is-scrolled,
.site-header--solid {
  background: var(--stout-900);
  border-bottom-color: transparent;
}

.site-header .navbar {
  --bs-navbar-padding-x: 0;
  --bs-navbar-padding-y: 0;
  position: relative;
  min-height: var(--header-h);
}

.site-header .navbar > .container-fluid {
  min-height: var(--header-h);
  gap: 24px;
}

.brand-logo {
  display: block;
  width: clamp(150px, 14vw, 190px);
}

.site-nav {
  --bs-nav-link-padding-x: 0;
  --bs-nav-link-padding-y: 4px;
  --bs-nav-link-font-size: 13px;
  --bs-nav-link-font-weight: 500;
  --bs-nav-link-color: var(--chalk-100);
  --bs-nav-link-hover-color: var(--brass-500);
  gap: clamp(14px, 2vw, 28px);
}

.site-nav .nav-link {
  letter-spacing: .04em;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.site-nav .nav-link.active {
  color: var(--brass-500);
  border-bottom-color: var(--brass-500);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--chalk-100);
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--brass-500);
}

/* Hamburger — a plain icon button instead of Bootstrap's SVG toggler */
.nav-toggle {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--chalk-100);
  font-size: 24px;
  line-height: 1;
}

.nav-toggle:hover {
  color: var(--brass-500);
}

.nav-toggle .icon-x,
.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-x {
  display: inline-block;
}

/* Phones: tighten the bar so brand, phone, booking and toggle fit on one line */
@media (max-width: 575.98px) {
  .site-header .navbar > .container-fluid {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .brand-logo {
    width: 130px;
  }

  .header-actions {
    gap: 12px;
  }
}

/* Collapsed menu becomes a solid stout panel beneath the bar */
@media (max-width: 1199.98px) {
  .site-header .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--stout-900);
    padding: 8px var(--gutter) 24px;
    border-top: 1px solid var(--border-inverse);
    box-shadow: var(--shadow-lg);
  }

  .site-nav {
    gap: 0;
  }

  .site-nav .nav-link {
    font-size: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-inverse);
  }

  .site-nav .nav-link.active {
    border-bottom-color: var(--border-inverse);
  }
}

/* --------------------------------------------------------------------------
   9. Heroes
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  height: min(92vh, 820px);
  min-height: 560px;
  overflow: clip;
  background: var(--stout-800);
}

.hero--page {
  height: 520px;
  min-height: 0;
}

.hero .carousel,
.hero .carousel-inner,
.hero .carousel-item {
  height: 100%;
}

/* "clip" rather than "hidden" so the carousel never becomes the scroll
   container that the parallax view timeline resolves against */
.hero .carousel-inner {
  overflow: clip;
}

/* Crossfade timing from the motion tokens */
.hero .carousel-fade .carousel-item {
  transition-duration: 1.2s;
  transition-timing-function: var(--ease-in-out);
}

.hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero__img--center {
  object-position: center;
}

/* Engraved mark, knocked out to white over the photo */
.hero__mark {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(28px, 4vw, 48px);
  width: clamp(140px, 14vw, 200px);
  filter: brightness(0) invert(1) drop-shadow(0 2px 10px rgba(26, 24, 21, .45));
  pointer-events: none;
}

.hero--page .hero__mark {
  width: clamp(120px, 12vw, 170px);
}

/* Chalk caption panel, bottom-left */
.hero__panel {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  max-width: 640px;
  background: var(--surface-page);
  box-shadow: var(--shadow-panel);
  padding: clamp(22px, 2.4vw, 32px) clamp(28px, 3vw, 40px) clamp(22px, 2.4vw, 32px) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero__title {
  font-size: clamp(30px, 3.3vw, 46px);
  line-height: 1.02;
  color: var(--text-strong);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

/* The slider's <picture> wrapper must fill the carousel item */
.hero__pic {
  display: block;
  height: 100%;
}

/* Small screens: the photo gets the full frame and the caption panel sits
   beneath it in normal flow instead of covering the bottom half. The
   parallax crop is switched off here so the whole picture is visible. */
@media (max-width: 767.98px) {
  .hero,
  .hero--page {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .hero .carousel,
  .hero > .hero__img {
    flex: none;
    height: min(64vh, 560px);
    min-height: 380px;
  }

  .hero--page > .hero__img {
    height: min(52vh, 440px);
    min-height: 300px;
  }

  .hero .parallax__layer {
    position: static;
    inset: auto;
    height: 100%;
    animation: none;
    transform: none;
    will-change: auto;
  }

  .hero__img {
    object-position: center;
  }

  .hero__panel {
    position: static;
    max-width: none;
    box-shadow: none;
    padding: 24px var(--gutter) 28px;
  }
}

/* --------------------------------------------------------------------------
   10. Split (image 4:5 beside text)
   -------------------------------------------------------------------------- */
.split__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--surface-sunken);
}

.split__body {
  display: grid;
  gap: 20px;
}

/* --------------------------------------------------------------------------
   11. Feature cards
   -------------------------------------------------------------------------- */
.ratio-3x4 {
  --bs-aspect-ratio: 133.3333%;
}

.ratio-4x5 {
  --bs-aspect-ratio: 125%;
}

.ratio-2x3 {
  --bs-aspect-ratio: 150%;
}

.feature-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.feature-card:hover {
  color: inherit;
}

.feature-card__media {
  overflow: clip;
  background: var(--surface-sunken);
}

.feature-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.feature-card:hover .feature-card__media img {
  transform: scale(1.04);
}

/* Garden photo strip on the home page */
.garden-grid__media {
  overflow: clip;
  background: var(--surface-sunken);
}

.garden-grid__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* From lg the 4:3 tile sets each row's height and the two portrait tiles
   beside it stretch to match, so every row shares one straight edge */
@media (min-width: 992px) {
  .garden-grid > [class*="col-"] {
    display: flex;
  }

  .garden-grid__media {
    flex: 1 1 auto;
  }

  .garden-grid__media.ratio-2x3 {
    --bs-aspect-ratio: 0%;
    height: auto;
  }
}

.feature-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 0 0;
}

.feature-card__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-accent);
}

.feature-card__title {
  font-size: 30px;
  line-height: 1.1;
  color: var(--text-strong);
}

.feature-card__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-body);
}

.feature-card__cta {
  align-self: flex-start;
  margin-top: 4px;
  padding-bottom: 3px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-strong);
  border-bottom: 1px solid currentColor;
  transition: border-color var(--dur-fast) var(--ease-out);
}

.feature-card:hover .feature-card__cta {
  border-bottom-color: var(--brass-500);
}

/* Inverse variant: image over a baize panel */
.feature-card--inverse {
  background: var(--stout-800);
}

.feature-card--inverse .feature-card__body {
  padding: 24px;
}

.feature-card--inverse .feature-card__eyebrow {
  color: var(--brass-500);
}

.feature-card--inverse .feature-card__title,
.feature-card--inverse .feature-card__cta {
  color: var(--chalk-100);
}

.feature-card--inverse .feature-card__text {
  color: var(--text-on-inverse-muted);
}

/* --------------------------------------------------------------------------
   12. Opening hours (scorebook ruling)
   -------------------------------------------------------------------------- */
.hours {
  border-top: 1px solid var(--border-hairline);
}

.hours__row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-hairline);
}

.hours__day {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.1;
  color: var(--text-strong);
}

.hours__row--highlight .hours__day {
  color: var(--text-accent);
}

.hours__label {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hours__value {
  font-size: 15px;
  color: var(--text-strong);
}

.hours__closed {
  grid-column: span 2;
  font-size: 15px;
  font-weight: 500;
  color: var(--status-closed);
}

.bg-inverse .hours,
.bg-inverse .hours__row {
  border-color: var(--border-inverse);
}

.bg-inverse .hours__day,
.bg-inverse .hours__value {
  color: var(--chalk-100);
}

.bg-inverse .hours__row--highlight .hours__day {
  color: var(--brass-500);
}

.bg-inverse .hours__label {
  color: var(--text-on-inverse-muted);
}

@media (max-width: 575.98px) {
  .hours__row {
    grid-template-columns: 1fr 1fr;
    row-gap: 8px;
  }

  .hours__day {
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------------------------------------
   13. Quote
   -------------------------------------------------------------------------- */
.quote {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 880px;
  margin: 0;
}

.quote__mark {
  height: 32px;
  font-family: var(--font-display);
  font-size: 72px;
  line-height: .6;
  color: var(--brass-500);
}

.quote__text {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

.quote__cite {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-muted);
}

.quote__source {
  color: var(--text-accent);
}

/* --------------------------------------------------------------------------
   14. Menu tabs & menu list
   -------------------------------------------------------------------------- */
.nav-menu {
  --bs-nav-link-padding-x: 0;
  --bs-nav-link-padding-y: 0;
  --bs-nav-link-font-size: 13px;
  --bs-nav-link-font-weight: 600;
  --bs-nav-link-color: var(--text-muted);
  --bs-nav-link-hover-color: var(--text-strong);
  flex-wrap: nowrap;
  gap: 28px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border-hairline);
}

.nav-menu .nav-link {
  padding-bottom: 14px;
  margin-bottom: -1px;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) var(--ease-out);
}

.nav-menu .nav-link.active {
  color: var(--text-strong);
  border-bottom-color: var(--brass-500);
}

.menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-hairline);
}

.menu-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.menu-item__name {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--text-strong);
}

.menu-item__desc {
  margin-top: 4px;
  font-size: 15px;
  color: var(--text-muted);
}

.menu-item__price {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--text-accent);
}

/* --------------------------------------------------------------------------
   15. Facts strip, notice, mark divider
   -------------------------------------------------------------------------- */
.fact {
  padding-top: 16px;
  border-top: 1px solid var(--brass-500);
}

.fact__num {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  color: var(--chalk-100);
}

.fact__text {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-on-inverse-muted);
}

.notice {
  padding: 14px 20px;
  font-size: 14px;
  text-align: center;
  background: var(--status-notice-bg);
  color: var(--brass-700);
}

.mark-divider {
  display: flex;
  align-items: center;
  gap: 40px;
}

.mark-divider__line {
  flex: 1;
  height: 1px;
  background: var(--border-hairline);
}

.mark-divider__logo {
  width: 150px;
}

/* Logo treatments */
.mark--ink {
  filter: brightness(0) opacity(.82);
}

.mark--sm {
  width: 120px;
  opacity: .7;
}

.mark--watermark {
  position: absolute;
  left: -80px;
  bottom: -60px;
  width: 620px;
  max-width: none;
  opacity: .06;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   16. Contact
   -------------------------------------------------------------------------- */
.contact-list {
  display: grid;
  gap: 4px;
  padding-top: 24px;
  border-top: 1px solid var(--border-hairline);
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  font-size: 16px;
  color: var(--text-strong);
  text-decoration: none;
}

.contact-row:hover {
  color: var(--text-link-hover);
}

.contact-row .icon-lg {
  color: var(--brass-600);
}

.contact-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface-sunken);
}

.map-card {
  background: var(--surface-raised);
}

.map-embed {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 0;
  filter: grayscale(.55) sepia(.15) contrast(1.02);
}

.map-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
}

.map-card__title {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
  color: var(--text-strong);
}

@media (max-width: 767.98px) {
  .map-embed {
    aspect-ratio: 4 / 3;
  }
}

/* --------------------------------------------------------------------------
   17. Forms
   -------------------------------------------------------------------------- */
.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-strong);
}

.required-mark {
  color: var(--brass-600);
}

.form-control,
.form-select {
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-strong);
  background-color: var(--surface-raised);
  border: 1px solid var(--chalk-300);
  border-radius: 0;
  box-shadow: none;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}

.form-control::placeholder {
  color: var(--ink-300);
}

.form-control:focus,
.form-select:focus {
  color: var(--text-strong);
  background-color: var(--surface-raised);
  border-color: var(--stout-800);
  box-shadow: 0 0 0 3px rgba(36, 33, 29, .12);
  outline: 0;
}

.form-select {
  --bs-form-select-bg-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231A1A17' stroke-width='1.5'/%3E%3C/svg%3E");
  padding-right: 40px;
  background-position: right 14px center;
  background-size: 12px 8px;
}

textarea.form-control {
  resize: vertical;
}

.form-text {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.form-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 0;
  padding-left: 0;
  margin-bottom: 0;
}

.form-check .form-check-input {
  float: none;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  background-color: transparent;
  border: 1px solid var(--ink-900);
  border-radius: 0;
  box-shadow: none;
  transition: background-color var(--dur-fast) var(--ease-out);
}

.form-check-input:focus {
  border-color: var(--ink-900);
  box-shadow: 0 0 0 3px rgba(36, 33, 29, .12);
}

.form-check-input:checked {
  background-color: var(--ink-900);
  border-color: var(--ink-900);
}

.form-check-input:checked[type="checkbox"] {
  --bs-form-check-bg-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='8' viewBox='0 0 11 8'%3E%3Cpath d='M1 4l3 3 6-6' fill='none' stroke='%23F4F0E6' stroke-width='1.6'/%3E%3C/svg%3E");
  background-size: 11px 8px;
}

.form-check-input[type="radio"] {
  border-radius: 50%;
}

.form-check-input:checked[type="radio"] {
  --bs-form-check-bg-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='4' fill='%231A1A17'/%3E%3C/svg%3E");
  background-color: transparent;
}

.form-check-label {
  font-size: 15px;
  color: var(--text-body);
  cursor: pointer;
}

/* Validation colours use ball red, not Bootstrap green/red */
.was-validated .form-control:invalid,
.form-control.is-invalid {
  border-color: var(--status-error);
  background-image: none;
  padding-right: 14px;
}

.was-validated .form-control:valid,
.form-control.is-valid {
  border-color: var(--chalk-300);
  background-image: none;
  padding-right: 14px;
}

.was-validated .form-control:valid:focus,
.was-validated .form-control:invalid:focus {
  box-shadow: 0 0 0 3px rgba(36, 33, 29, .12);
}

.invalid-feedback {
  margin-top: 6px;
  font-size: 13px;
  color: var(--status-error);
}

.form-alert {
  padding: 14px 16px;
  font-size: 14px;
  background: var(--status-notice-bg);
  color: var(--brass-700);
}

.form-alert--error {
  background: var(--status-error-bg);
  color: var(--status-error);
}

.form-alert a {
  color: inherit;
  text-decoration: underline;
}

/* Honeypot field: off-screen rather than display:none, which some bots skip */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   18. Booking dialog (Bootstrap modal re-skinned)
   -------------------------------------------------------------------------- */
.modal {
  --bs-modal-width: 520px;
  --bs-modal-bg: var(--surface-raised);
  --bs-modal-border-width: 0;
  --bs-modal-border-radius: 0;
  --bs-modal-box-shadow: var(--shadow-lg);
  --bs-modal-padding: 36px;
  --bs-modal-header-padding: 36px 36px 0;
  --bs-modal-header-border-width: 0;
  --bs-modal-footer-border-width: 0;
  --bs-modal-footer-gap: 12px;
}

.modal-backdrop {
  --bs-backdrop-bg: var(--stout-900);
  --bs-backdrop-opacity: .55;
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
}

.modal-header {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.05;
  color: var(--text-strong);
}

.modal-body {
  padding-top: 20px;
  padding-bottom: 12px;
  font-size: 15px;
}

.modal-footer {
  padding-top: 0;
  padding-bottom: 32px;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: var(--text-muted);
}

.dialog-close:hover {
  color: var(--text-strong);
}

.booking-form {
  display: grid;
  gap: 14px;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.booking-form__options {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.booking-form__note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--surface-inverse-deep);
  color: var(--text-on-inverse-muted);
}

.site-footer__main {
  padding-top: 80px;
  padding-bottom: 40px;
}

.footer-logo {
  width: 170px;
  margin-bottom: 20px;
}

.footer-blurb {
  max-width: 260px;
  font-size: 14px;
}

.footer-heading {
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--brass-500);
}

.footer-address {
  font-size: 15px;
  color: var(--chalk-100);
}

.footer-note {
  margin-top: 12px;
  font-size: 14px;
}

.footer-link {
  display: block;
  padding: 4px 0;
  font-size: 15px;
  color: var(--chalk-100);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--brass-500);
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-inverse);
  border-radius: 50%;
  color: var(--chalk-100);
  text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}

.social-btn:hover {
  border-color: var(--brass-500);
  color: var(--brass-500);
}

.site-footer__bottom {
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 13px;
  border-top: 1px solid var(--border-inverse);
}

/* Agency credit, on its own line under the copyright */
.site-credit {
  margin-top: 2px;
  font-size: 12px;
  opacity: .6;
}

.site-credit a {
  color: inherit;
  text-decoration: none;
  transition: opacity .3s;
}

.site-credit a:hover,
.site-credit a:focus {
  text-decoration: underline;
}

.camra-badge {
  height: 40px;
  width: auto;
  opacity: .8;
}

/* --------------------------------------------------------------------------
   20. Parallax imagery
   A .parallax frame clips a .parallax__layer that is 130% of its height.
   A CSS scroll-driven animation on the frame's view timeline drifts the
   layer as the frame crosses the viewport, so photos move slower than the
   page. No JavaScript and no inline styles; browsers without
   animation-timeline support simply show the image static.
   -------------------------------------------------------------------------- */
.parallax {
  position: relative;
  overflow: clip;
  view-timeline-name: --parallax-frame;
  view-timeline-axis: block;
}

.parallax__layer {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes parallax-drift {
  from {
    transform: translate3d(0, 11%, 0);
  }

  to {
    transform: translate3d(0, -11%, 0);
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .parallax__layer {
      position: absolute;
      inset: -15% 0;
      height: 130%;
      will-change: transform;
      animation: parallax-drift linear both;
      animation-timeline: --parallax-frame;
      animation-range: entry 0% exit 100%;
    }
  }
}

/* --------------------------------------------------------------------------
   21. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .feature-card__media img,
  .hero .carousel-fade .carousel-item {
    transition: none;
  }
}
