/* ==========================================================
   Tee Time Partners
   Colours come straight from the logo: pine, gold, mist.
   ========================================================== */

/* Fonts are self-hosted: faster, and no visitor data is sent to Google */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../assets/fonts/playfair-latin.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400 500; font-display: swap;
  src: url("../assets/fonts/playfair-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url("../assets/fonts/jost-latin.woff2") format("woff2"); }

:root {
  /* Brand */
  --pine: #213D2E;
  --pine-deep: #172C21;
  --pine-raised: #2B4A3A;
  --gold: #C9A24A;
  --gold-bright: #D9B560;
  --gold-ink: #8F7128;      /* gold dark enough for headings on mist */
  --mist: #EEF3EE;
  --mist-deep: #DFE7E0;

  /* Roles */
  --text-dark: #16241C;
  --text-dark-muted: #3A4A40;
  --text-light: #EEF3EE;
  --text-light-muted: #C6D3CA;
  --line-light: rgba(238, 243, 238, 0.18);
  --line-dark: rgba(33, 61, 46, 0.18);

  /* Type */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;

  /* Space (8pt) */
  --s1: 0.5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem;
  --s5: 3rem; --s6: 4rem; --s7: 6rem; --s8: 8rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 76rem;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur: 280ms;

  --z-header: 40;
  --z-menu: 100;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--pine);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

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

.visually-hidden, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: fixed; left: var(--s2); top: -4rem; z-index: 200;
  background: var(--gold); color: var(--pine-deep); padding: 0.75rem 1rem;
  border-radius: 999px; font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: var(--s2); }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
section[id] { scroll-margin-top: 4.5rem; }

/* ---------- Type ---------- */
.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h2.on-dark { color: var(--text-light); }
.h2.on-light { color: var(--gold-ink); }
.lede { font-size: 1.1875rem; line-height: 1.65; color: var(--text-dark-muted); max-width: 36rem; }
.lede.on-dark { color: var(--text-light-muted); }

/* Small label flanked by a gold rule, taken from the references */
.rule-label {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.04em;
  color: var(--gold); margin-bottom: var(--s3);
}
.rule-label::before { content: ""; width: 2rem; height: 1px; background: currentColor; }
.rule-label-center::after { content: ""; width: 2rem; height: 1px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0 2rem; border-radius: 999px; border: 0;
  font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.03em; text-decoration: none;
  transition: background-color var(--dur-fast) ease, transform var(--dur-fast) ease;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.98); }
.btn-gold { background: var(--gold); color: var(--pine-deep); }
.btn-gold:hover { background: var(--gold-bright); }
.btn-block { width: 100%; }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }

.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0 1.25rem; border-radius: 999px;
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.03em; text-decoration: none;
  transition: background-color var(--dur-fast) ease;
}
.pill-ghost, .pill-glass {
  color: var(--text-light);
  background: rgba(238, 243, 238, 0.1);
  border: 1px solid var(--line-light);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.pill-ghost:hover, .pill-glass:hover { background: rgba(238, 243, 238, 0.2); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  color: var(--text-light);
  background: rgba(238, 243, 238, 0.1);
  border: 1px solid var(--line-light);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color var(--dur-fast) ease;
}
.icon-btn:hover { background: rgba(238, 243, 238, 0.2); }

.text-link {
  color: var(--text-light); font-size: 0.9375rem;
  text-decoration: underline; text-decoration-color: var(--gold);
  text-underline-offset: 0.35em; text-decoration-thickness: 1px;
}
.text-link:hover { color: var(--gold-bright); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 1rem var(--gutter);
  transition: background-color var(--dur) ease, padding var(--dur) ease;
}
.site-header > :last-child { justify-self: end; }
.site-header.is-scrolled {
  background: rgba(23, 44, 33, 0.86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  padding-block: 0.625rem;
}

.lockup { display: inline-flex; align-items: center; gap: 0.625rem; min-height: 2.75rem; text-decoration: none; color: var(--text-light); }
.lockup-mark { width: 2.75rem; height: 2rem; color: var(--mist); flex: none; }
.lockup-name { font-family: var(--font-display); font-size: 1.25rem; line-height: 1; letter-spacing: 0.01em; white-space: nowrap; }
.lockup-stacked { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.lockup-stacked .lockup-mark { width: 4.5rem; height: 3.25rem; }
.lockup-stacked .lockup-name { font-size: 1.625rem; }

@media (max-width: 520px) {
  .lockup-name { font-size: 1.0625rem; }
  .site-header .lockup-mark { width: 2.25rem; height: 1.625rem; }
  .site-header .pill { padding: 0 1rem; }
}
@media (max-width: 400px) {
  .site-header .lockup { gap: 0.375rem; }
  .site-header .lockup-mark { width: 1.75rem; height: 1.25rem; }
  .site-header .lockup-name { font-size: 0.9375rem; }
  .site-header .pill { padding: 0 0.875rem; }
}
@media (max-width: 340px) {
  .site-header .lockup-name { display: none; }
}

/* ---------- Menu ---------- */
.menu { position: fixed; inset: 0; z-index: var(--z-menu); display: grid; grid-template-columns: minmax(0, 34rem) 1fr; }
.menu[hidden] { display: none; }
.menu-panel {
  background: var(--pine); color: var(--text-light);
  padding: 1rem var(--gutter) var(--s5);
  display: flex; flex-direction: column; gap: var(--s5);
  overflow-y: auto;
  animation: menu-in var(--dur) var(--ease-out);
}
.menu-scrim { background: rgba(23, 44, 33, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade-in var(--dur) ease; }
.menu-links { display: grid; gap: 0.25rem; margin-top: var(--s4); }
.menu-links a {
  display: inline-block; padding: 0.375rem 0;
  font-family: var(--font-display); font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.2;
  color: var(--text-light-muted); text-decoration: none;
  transition: color var(--dur-fast) ease;
}
.menu-links a:hover, .menu-links a:focus-visible { color: var(--text-light); }
.menu-meta { margin-top: auto; }
.menu-meta a { text-decoration: none; }
.menu-meta a:hover { color: var(--gold-bright); }
@media (max-width: 640px) {
  .menu { grid-template-columns: 1fr; }
  .menu-scrim { display: none; }
}
@keyframes menu-in { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: 7rem var(--gutter) 7rem;
  color: var(--text-light); text-align: center;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* Lighter than before so the sunny course shows, with a soft pool of shade behind the text */
  background:
    radial-gradient(ellipse 62% 46% at 50% 52%, rgba(23, 44, 33, 0.62) 0%, rgba(23, 44, 33, 0) 100%),
    linear-gradient(180deg, rgba(23, 44, 33, 0.45) 0%, rgba(33, 61, 46, 0.28) 38%, rgba(23, 44, 33, 0.55) 72%, rgba(23, 44, 33, 0.9) 100%);
}
.hero-flight { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.flight-dots {
  fill: none; stroke: var(--mist); stroke-opacity: 0.5;
  stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 0 0.011; /* round dots along the path */
  vector-effect: non-scaling-stroke;
}
.flight-mask { fill: none; stroke: #fff; stroke-width: 40; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.flight-ball { fill: var(--mist); opacity: 0.55; transform-box: fill-box; transform-origin: center; }
@media (max-width: 700px) { .hero-flight { opacity: 0.6; } }
.hero-inner { max-width: 52rem; display: grid; justify-items: center; }
.hero-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.75rem, 8vw, 6rem); line-height: 1.02; letter-spacing: -0.015em;
  display: grid; gap: 0.1em;
}
.hero-title em { font-style: italic; color: var(--mist); }
.hero-title, .hero-lede, .hero .rule-label { text-shadow: 0 1px 24px rgba(15, 30, 22, 0.45); }
.hero-lede { margin-top: var(--s4); max-width: 34rem; font-size: 1.125rem; line-height: 1.7; color: var(--mist); }
.hero-actions { margin-top: var(--s5); display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
.hero-scroll { position: absolute; left: var(--gutter); bottom: var(--s4); }
@media (max-width: 560px) {
  .hero-scroll { display: none; }
}

/* ---------- Services ---------- */
.services {
  position: relative; background: var(--pine); color: var(--text-light);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  min-height: 46rem;
}
.services-media { position: relative; order: 2; min-height: 22rem; }
.services-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity var(--dur) ease;
}
.services-media img.is-swapping { opacity: 0.15; }
.services-inner { padding: var(--s7) var(--gutter); max-width: 38rem; justify-self: end; width: 100%; }
.service-tabs { display: grid; margin-top: var(--s5); border-top: 1px solid var(--line-light); }
.service-tabs [role="tab"] {
  position: relative; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--line-light);
  padding: 1rem 0 1rem 1.5rem; min-height: 3.25rem;
  font-size: 1.125rem; color: var(--text-light-muted);
  transition: color var(--dur-fast) ease;
}
.service-tabs [role="tab"]::before {
  content: ""; position: absolute; left: 0.25rem; top: 50%; width: 6px; height: 6px;
  margin-top: -3px; border-radius: 50%; background: var(--gold);
  opacity: 0; transform: scale(0.4); transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.service-tabs [role="tab"]:hover { color: var(--text-light); }
.service-tabs [role="tab"][aria-selected="true"] { color: var(--text-light); }
.service-tabs [role="tab"][aria-selected="true"]::before { opacity: 1; transform: none; }
.service-panels { margin-block: var(--s4) var(--s5); min-height: 12.5rem; }
.service-panels [role="tabpanel"] { color: var(--text-light-muted); max-width: 32rem; }
.service-panels [role="tabpanel"]:focus-visible { outline-offset: 8px; }
.ticks { margin-top: var(--s3); display: grid; gap: 0.5rem; }
.ticks li { position: relative; padding-left: 1.75rem; color: var(--text-light); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 0.75rem; height: 0.4rem;
  border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(-45deg);
}
@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; }
  .services-media { order: 0; aspect-ratio: 4 / 3; min-height: 0; }
  .services-inner { justify-self: stretch; max-width: none; padding-block: var(--s6); }
}

/* ---------- Why ---------- */
.why { background: var(--mist); padding-block: var(--s8) var(--s7); }
.why-head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s6); align-items: end; }
.why-head .h2 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); }
.why-grid {
  margin-top: var(--s6);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s6);
  align-items: start;
}
.why-photo { position: sticky; top: 6rem; }
.why-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.reasons { display: grid; }
.reason {
  display: grid; grid-template-columns: 1.5rem 1fr; column-gap: var(--s2);
  padding-block: var(--s4); border-top: 1px solid var(--line-dark);
}
.reason:last-child { border-bottom: 1px solid var(--line-dark); }
.reason::before {
  content: ""; grid-row: 1 / span 2; margin-top: 0.7rem;
  width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--gold);
}
.reason h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; line-height: 1.2; color: var(--text-dark); }
.reason p { margin-top: 0.625rem; color: var(--text-dark-muted); max-width: 34rem; }

.steps { margin-top: var(--s7); }
.steps-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.75rem, 3vw, 2.25rem); color: var(--gold-ink); }
.steps-list {
  margin-top: var(--s4);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4);
  counter-reset: step;
}
.steps-list li { position: relative; padding-top: var(--s4); }
/* The dotted line between steps echoes the ball flight in the logo */
.steps-list li::before {
  content: ""; position: absolute; top: 1.25rem; left: 3rem; right: calc(var(--s4) * -1 + 0.5rem);
  border-top: 2px dotted rgba(143, 113, 40, 0.5);
}
.steps-list li:last-child::before { display: none; }
.step-n {
  position: absolute; top: 0; left: 0;
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--pine); color: var(--gold);
  font-family: var(--font-display); font-size: 1.125rem;
}
.steps-list h4 { margin-top: var(--s4); font-size: 1.125rem; font-weight: 500; color: var(--text-dark); }
.steps-list p { margin-top: 0.375rem; color: var(--text-dark-muted); font-size: 1rem; }

@media (max-width: 960px) {
  .why-head { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .why-photo { position: static; }
  .why-photo img { aspect-ratio: 16 / 10; }
  .steps-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-list li:nth-child(2)::before { display: none; }
}
@media (max-width: 560px) {
  .why { padding-block: var(--s7) var(--s6); }
  .steps-list { grid-template-columns: 1fr; gap: var(--s3); }
  .steps-list li { padding: 0 0 0 3.5rem; }
  .steps-list li::before { display: none; }
  .steps-list h4 { margin-top: 0.4rem; }
}

/* ---------- Partners ---------- */
.partners { background: var(--mist); padding-block: 0 var(--s7); }
.partners .container { border-top: 1px solid var(--line-dark); padding-top: var(--s6); }
.partners .h2 { font-size: clamp(2rem, 4vw, 3rem); }
.partner-group { margin-top: var(--s5); }
.partner-heading { font-size: 1.0625rem; font-weight: 500; color: var(--text-dark-muted); margin-bottom: var(--s3); }
.partner-clubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: var(--s3); }
.partner-clubs a { display: block; text-decoration: none; border-radius: 1rem; }
.club-card {
  display: grid; justify-items: start; gap: 0.25rem;
  padding: var(--s4); border-radius: 1rem; background: var(--pine); color: var(--text-light);
  height: 100%; transition: background-color var(--dur-fast) ease;
}
.partner-clubs a:hover .club-card { background: var(--pine-raised); }
.club-logo { max-height: 4rem; width: auto; margin-bottom: var(--s2); }
.club-logo-text, .club-name { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; }
.club-location { font-size: 0.9375rem; color: var(--text-light-muted); }
.partner-companies { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); }
.partner-companies a { text-decoration: none; }
.company-logo { height: 2.5rem; width: auto; filter: grayscale(1); opacity: 0.75; transition: opacity var(--dur-fast) ease, filter var(--dur-fast) ease; }
.partner-companies a:hover .company-logo, .company-logo:hover { filter: none; opacity: 1; }
.company-logo-text { font-family: var(--font-display); font-size: 1.625rem; color: var(--pine); }
.partner-quotes { margin-top: var(--s5); display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: var(--s4); }
.partner-quote { padding-left: var(--s3); border-left: 2px solid var(--gold); }
.partner-quote blockquote { margin: 0; font-family: var(--font-display); font-size: 1.375rem; line-height: 1.45; color: var(--text-dark); }
.partner-quote figcaption { margin-top: var(--s2); font-size: 0.9375rem; color: var(--text-dark-muted); }

/* ---------- For golf clubs ---------- */
.clubs { position: relative; isolation: isolate; overflow: hidden; background: var(--pine-deep); color: var(--text-light); padding-block: var(--s8); }
.clubs-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.35; }
.clubs::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, var(--pine-deep) 20%, rgba(23, 44, 33, 0.7) 100%); }
.clubs-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); align-items: center; }
.clubs-copy .lede { margin-top: var(--s3); }
.club-benefits { margin-block: var(--s5); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s4); }
.club-benefits h3 { font-size: 1.0625rem; font-weight: 500; color: var(--text-light); padding-top: var(--s2); border-top: 1px solid var(--gold); }
.club-benefits p { margin-top: 0.375rem; font-size: 0.9375rem; color: var(--text-light-muted); }

.teesheet {
  background: rgba(33, 61, 46, 0.78); border: 1px solid var(--line-light);
  border-radius: 1.25rem; padding: var(--s4);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.teesheet-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); }
.teesheet-title { font-family: var(--font-display); font-size: 1.375rem; }
.toggle { display: inline-flex; padding: 0.25rem; border-radius: 999px; background: rgba(23, 44, 33, 0.8); border: 1px solid var(--line-light); }
.toggle button {
  border: 0; background: none; border-radius: 999px;
  min-height: 2.5rem; padding: 0 1rem; font-size: 0.875rem; color: var(--text-light-muted);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) ease;
}
.toggle button[aria-pressed="true"] { background: var(--gold); color: var(--pine-deep); font-weight: 500; }

.teesheet-grid {
  margin-top: var(--s4);
  display: grid; grid-template-columns: 3.25rem repeat(7, minmax(0, 1fr)); gap: 0.375rem;
  font-size: 0.8125rem; font-variant-numeric: tabular-nums;
}
.ts-day { text-align: center; color: var(--text-light-muted); padding-bottom: 0.25rem; }
.ts-time { color: var(--text-light-muted); align-self: center; }
.ts-slot {
  height: 1.75rem; border-radius: 0.375rem;
  border: 1px dashed rgba(238, 243, 238, 0.5); background: transparent;
  transition: background-color 420ms var(--ease-out), border-color 420ms var(--ease-out), transform 420ms var(--ease-out);
}
.ts-slot.is-member { background: rgba(238, 243, 238, 0.62); border: 1px solid transparent; }
.ts-slot.is-ttp { background: var(--gold); border: 1px solid transparent; transform: scale(1.0); }
.teesheet-key { margin-top: var(--s3); display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.8125rem; color: var(--text-light-muted); align-items: center; }
.teesheet-key span { display: inline-flex; align-items: center; gap: 0.5rem; }
.key { width: 0.875rem; height: 0.875rem; border-radius: 0.25rem; display: inline-block; }
.key-member { background: rgba(238, 243, 238, 0.62); }
.key-empty { border: 1px dashed rgba(238, 243, 238, 0.6); }
.key-ttp { background: var(--gold); }
.teesheet-note { margin-left: auto; font-style: italic; }

@media (max-width: 960px) {
  .clubs { padding-block: var(--s7); }
  .clubs-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .club-benefits { grid-template-columns: 1fr; }
  .teesheet { padding: var(--s3) var(--s2); }
  .teesheet-grid { grid-template-columns: 2.75rem repeat(7, minmax(0, 1fr)); gap: 0.25rem; font-size: 0.75rem; }
  .ts-slot { height: 1.5rem; }
  .teesheet-note { margin-left: 0; }
}

/* ---------- Enquiry ---------- */
.enquire { background: var(--mist); padding: var(--s7) var(--gutter); }
.enquire-card {
  max-width: var(--max); margin-inline: auto;
  background: var(--pine); color: var(--text-light);
  border-radius: 1.75rem; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.enquire-form-wrap { padding: var(--s6) clamp(1.25rem, 5vw, 4.5rem); }
.enquire-intro { margin-top: var(--s2); color: var(--text-light-muted); max-width: 30rem; }
.enquire-photo { position: relative; min-height: 20rem; }
.enquire-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.form { margin-top: var(--s5); display: grid; gap: var(--s3); }
.form [data-when] { display: grid; gap: var(--s3); }
.form [data-when][hidden] { display: none; }
.field { display: grid; gap: 0.375rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.field label, .field legend { font-size: 0.9375rem; color: var(--text-light); }
.optional { color: var(--text-light-muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: 0.625rem 0;
  background: transparent; border: 0; border-bottom: 1px solid rgba(238, 243, 238, 0.55);
  border-radius: 0; color: var(--text-light); font-size: 1rem;
  transition: border-color var(--dur-fast) ease;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 10px) 1.3rem, calc(100% - 5px) 1.3rem; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--pine); color: var(--text-light); }
.field textarea { resize: vertical; min-height: 5rem; }
.field input::placeholder, .field textarea::placeholder { color: rgba(179, 196, 185, 0.7); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); box-shadow: 0 1px 0 0 var(--gold); }
.field [aria-invalid="true"] { border-bottom-color: #F0A08C !important; }
.field-error { color: #F4B3A3; font-size: 0.875rem; }
.form-error-summary { background: rgba(240, 160, 140, 0.12); border: 1px solid rgba(240, 160, 140, 0.5); border-radius: 0.75rem; padding: var(--s2); font-size: 0.9375rem; }
.form-error-summary ul { margin-top: 0.25rem; list-style: disc; padding-left: 1.25rem; }
.form-error-summary a { color: #F4B3A3; }

.segmented { border: 0; margin: 0; padding: 0.25rem; display: grid; grid-template-columns: 1fr 1fr; background: rgba(23, 44, 33, 0.7); border-radius: 999px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span {
  display: grid; place-items: center; text-align: center; min-height: 2.75rem; padding: 0.25rem 0.75rem;
  border-radius: 999px; font-size: 0.9375rem; color: var(--text-light-muted);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) ease;
}
.segmented input:checked + span { background: var(--gold); color: var(--pine-deep); font-weight: 500; }
.segmented input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.days { border: 0; padding: 0; margin: 0; }
.day-chips { margin-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.day-chips label { position: relative; }
.day-chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.day-chips span {
  display: grid; place-items: center; min-width: 3.25rem; min-height: 2.75rem; padding: 0 0.875rem;
  border-radius: 999px; border: 1px solid var(--line-light); font-size: 0.9375rem; color: var(--text-light-muted);
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.day-chips input:checked + span { background: rgba(201, 162, 74, 0.18); border-color: var(--gold); color: var(--text-light); }
.day-chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.check { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.75rem; align-items: start; font-size: 0.9375rem; color: var(--text-light-muted) !important; cursor: pointer; }
.check input { width: 1.125rem; height: 1.125rem; margin: 0.2rem 0 0; accent-color: var(--gold); }
.check a { color: var(--text-light); text-decoration-color: var(--gold); text-underline-offset: 0.25em; }

.form-status { min-height: 1.5rem; font-size: 0.9375rem; color: var(--text-light); text-align: center; }
.form-status.is-error { color: #F4B3A3; }

.form-success { margin-top: var(--s5); padding: var(--s4); border: 1px solid var(--gold); border-radius: 1rem; }
.form-success h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; }
.form-success p { margin-top: 0.5rem; color: var(--text-light-muted); }

@media (max-width: 900px) {
  .enquire { padding: var(--s6) var(--gutter); }
  .enquire-card { grid-template-columns: 1fr; }
  .enquire-photo { order: -1; min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 520px) {
  .enquire { padding-inline: 0; padding-block: 0; }
  .enquire-card { border-radius: 0; }
  .field-row { grid-template-columns: 1fr; }
  .segmented span { font-size: 0.875rem; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--pine-deep); color: var(--text-light-muted); padding-top: var(--s7); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.25fr; gap: var(--s5); }
.footer-brand p { margin-top: var(--s3); max-width: 22rem; }
.footer-links { display: grid; gap: 0.25rem; }
.footer-links a { display: inline-block; padding-block: 0.25rem; text-decoration: none; color: var(--text-light); }
.footer-links a:hover { color: var(--gold-bright); }
.socials { margin-top: var(--s3); display: flex; gap: 0.5rem; }
.socials a {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1px solid var(--line-light); color: var(--text-light);
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.socials a:hover { background: var(--gold); color: var(--pine-deep); border-color: var(--gold); }
.socials svg { width: 1.125rem; height: 1.125rem; }
.footer-base {
  margin-top: var(--s6); padding-block: var(--s3);
  border-top: 1px solid var(--line-light);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2);
  font-size: 0.875rem;
}
.footer-base a { text-decoration: none; }
.footer-base a:hover { color: var(--text-light); }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 440px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Load moment: the ball flight draws across the hero ---------- */
.js .flight-mask { stroke-dashoffset: 1; }
.js .flight-ball { opacity: 0; transform: scale(0.4); }
.js.is-loaded .flight-mask { stroke-dashoffset: 0; transition: stroke-dashoffset 1800ms cubic-bezier(0.33, 0, 0.2, 1) 300ms; }
.js.is-loaded .flight-ball { opacity: 0.55; transform: none; transition: opacity 400ms ease 1950ms, transform 500ms var(--ease-out) 1950ms; }
/* Hero text shows immediately (it is the page's main content); only the ball flight animates */

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

/* ---------- Document pages (privacy notice) ---------- */
.page-doc { background: var(--mist); }
.doc-header {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  padding: 1rem var(--gutter); background: var(--pine);
}
.doc { max-width: 44rem; margin: 0 auto; padding: var(--s6) var(--gutter) var(--s7); color: var(--text-dark); }
.doc .doc-updated { margin-top: var(--s2); color: var(--text-dark-muted); font-size: 0.9375rem; }
.doc h2 { margin-top: var(--s5); font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; line-height: 1.2; color: var(--pine); }
.doc p, .doc ul { margin-top: var(--s2); }
.doc ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.doc li::marker { color: var(--gold-ink); }
.doc strong { font-weight: 500; }
.doc a { color: var(--pine); text-decoration-color: var(--gold-ink); text-underline-offset: 0.2em; }
.doc-footer { padding-top: 0; }
.doc-footer .footer-base { margin-top: 0; border-top: 0; }

/* ---------- Footer legal links ---------- */
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.link-btn {
  background: none; border: 0; padding: 0; font: inherit; color: inherit;
  text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer;
}
.footer-base a, .link-btn { display: inline-block; padding-block: 0.25rem; }
.footer-base a:hover, .link-btn:hover { color: var(--text-light); }
.link-btn[hidden] { display: none; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; z-index: 90; left: var(--s2); right: var(--s2); bottom: var(--s2);
  max-width: 40rem; margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3);
  padding: var(--s3); border-radius: 1rem;
  background: var(--pine-deep); color: var(--text-light);
  border: 1px solid var(--line-light); box-shadow: 0 12px 40px rgba(10, 20, 15, 0.35);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { flex: 1 1 18rem; font-size: 0.9375rem; line-height: 1.55; color: var(--text-light-muted); }
.cookie-banner a { color: var(--text-light); text-decoration-color: var(--gold); text-underline-offset: 0.2em; }
.cookie-actions { display: flex; gap: 0.5rem; }
/* Accept and Reject are equally prominent, as UK guidance expects */
.cookie-btn {
  min-height: 2.75rem; min-width: 6.5rem; padding: 0 1.25rem; border-radius: 999px;
  border: 1px solid var(--gold); background: transparent; color: var(--text-light);
  font-size: 0.9375rem; font-weight: 500;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.cookie-btn:hover { background: var(--gold); color: var(--pine-deep); }
.doc code { font-size: 0.9em; background: var(--mist-deep); padding: 0.1em 0.35em; border-radius: 0.25rem; }
.doc-header .lockup-mark { width: 2.75rem; height: 2rem; }

/* ---------- 404 ---------- */
.page-404 { background: var(--pine); color: var(--text-light); min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.page-404 .doc-header { background: transparent; }
.not-found { flex: 1; display: grid; place-content: center; justify-items: center; text-align: center; padding: var(--s6) var(--gutter); }
.nf-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(3rem, 9vw, 5.5rem); line-height: 1.05; }
.nf-lede { margin-top: var(--s3); max-width: 30rem; color: var(--text-light-muted); font-size: 1.125rem; }
.nf-actions { margin-top: var(--s5); display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
