/* =====================================================================
   HARROGATE RACQUETS CLUB · SITE STYLES
   Colours, type and spacing are set once here as variables.
   To retune the palette (e.g. to match the crest exactly) change the
   values in :root and nothing else.
   ===================================================================== */

:root {
  /* Approved club palette (Canva brand kit) */
  --navy: #01173F;        /* deep navy: ground, buttons, footer */
  --navy-2: #0A2A5C;      /* navy, one step lighter (hover, notices strip) */
  --navy-3: #0053B3;      /* club blue */
  --royal: #0053B3;       /* club blue: links */
  --royal-2: #003F8A;
  --brass: #F3CA65;       /* club gold: primary accent on navy */
  --brass-2: #9C7A1F;     /* darkened gold for small text and icons on white */
  --brass-soft: #F6ECD2;  /* pale tint of the sand #E6C98A */
  --sand: #E6C98A;        /* sand: gold button hover */
  --sky: #00BFE8;         /* sky: open-now pip, table tennis accent */
  --red: #F3360C;         /* red: badminton accent */
  --green: #004428;       /* green: tennis accent */
  --paper: #F3F5F9;
  --white: #FFFFFF;
  --ink: #01173F;
  --ink-2: #3A4763;
  --ink-3: #66718A;
  --line: #DFE4EC;
  --line-2: #C6CEDB;
  --tennis: var(--green);
  --tennis-ink: #004428;
  --badminton: var(--red);
  --badminton-ink: #B52A05;
  --table-tennis: var(--sky);
  --table-tennis-ink: #00789A;
  --club: var(--royal);
  --club-ink: var(--royal);

  --font-display: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1200px;
  --gutter: clamp(18px, 4.5vw, 44px);
  --radius: 5px;
  --radius-lg: 14px;
  --shadow: 0 18px 50px -22px rgba(1, 23, 63, .38);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--royal); text-decoration-thickness: 1px; text-underline-offset: .16em; }
a:hover { color: var(--royal-2); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -.015em; margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(42px, 6.4vw, 84px); line-height: .98; letter-spacing: -.025em; }
h2 { font-size: clamp(31px, 3.8vw, 46px); }
h3 { font-size: clamp(22px, 2.2vw, 27px); }
h4 { font-size: 19px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(17.5px, 1.5vw, 20px); color: var(--ink-2); max-width: 60ch; line-height: 1.55; }
.measure { max-width: 66ch; }
.muted { color: var(--ink-3); }
.small { font-size: 14.5px; }
strong { font-weight: 600; }
::selection { background: var(--brass-soft); color: var(--navy); }

:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 3px; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 14px; border-radius: var(--radius);
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

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

section { padding: clamp(60px, 8.5vw, 120px) 0; scroll-margin-top: var(--header-h); }
[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
section.tight { padding: clamp(40px, 5vw, 64px) 0; }
.bg-paper { background: var(--paper); }
.bg-navy { background: var(--navy); color: #fff; }
.bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }
.bg-navy .lead, .bg-navy p { color: rgba(255,255,255,.82); }
.bg-navy a { color: #fff; }
.bg-navy .ruled-text, .bg-navy .muted, .bg-navy .small, .bg-navy .ruled h3 { color: rgba(255,255,255,.82); }
.bg-navy .ruled h3 { color: #fff; }

.section-head { display: grid; gap: 14px; margin-bottom: clamp(30px, 4vw, 52px); max-width: 68ch; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head .lead { margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px; border-radius: var(--radius); border: 1px solid transparent;
  font-weight: 600; font-size: 15px; letter-spacing: .005em; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-brass { background: var(--brass); color: var(--navy); }
.btn-brass:hover { background: var(--sand); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: rgba(1,23,63,.03); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--brass-soft); color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.textlink {
  font-weight: 600; color: var(--navy); text-decoration: none;
  border-bottom: 1px solid var(--line-2); padding-bottom: 1px;
  transition: border-color .18s var(--ease);
}
.textlink:hover { border-color: var(--navy); color: var(--navy); }
.bg-navy .textlink { color: #fff; border-color: rgba(255,255,255,.35); }
.bg-navy .textlink:hover { border-color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  color: #fff;
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(1,23,63,.55), rgba(1,23,63,0));
  opacity: 1; transition: opacity .25s var(--ease);
}
.site-header.is-solid { background: var(--navy); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 10px 24px -14px rgba(1,23,63,.55); }
.site-header.is-solid::after { opacity: 0; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: inherit; min-width: 0; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name strong { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -.01em; white-space: nowrap; }
.brand-name span { font-size: 12px; opacity: .78; letter-spacing: .02em; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: inherit; text-decoration: none; font-weight: 500; font-size: 15px; padding: 9px 12px; border-radius: 4px; opacity: .92; transition: background-color .18s var(--ease), opacity .18s; }
.nav a:hover { opacity: 1; background: rgba(255,255,255,.12); }
.site-header.is-solid .nav a:hover { background: rgba(255,255,255,.12); }
.nav a[aria-current="page"] { opacity: 1; box-shadow: inset 0 -2px 0 var(--brass); border-radius: 4px 4px 0 0; }
.nav .btn { margin-left: 10px; }
.nav a.btn-brass, .nav a.btn-brass:hover { color: var(--navy); opacity: 1; }
.nav a.btn-brass:hover { background: var(--sand); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: inherit; border-radius: 6px; }
.nav-toggle svg { width: 28px; height: 28px; }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 150; background: var(--navy); color: #fff; display: none; flex-direction: column; padding: 24px var(--gutter) 40px; overflow-y: auto; }
.drawer.is-open { display: flex; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; height: calc(var(--header-h) - 24px); }
.drawer-close { background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; }
.drawer-close svg { width: 28px; height: 28px; }
.drawer nav { display: grid; gap: 4px; margin-top: 18px; }
.drawer nav a { color: #fff; text-decoration: none; font-family: var(--font-display); font-size: 34px; font-weight: 500; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); letter-spacing: -.01em; }
.drawer nav a[aria-current="page"] { color: var(--brass); }
.drawer .cta-row { margin-top: 26px; }
.drawer .drawer-meta { margin-top: auto; padding-top: 32px; font-size: 14.5px; color: rgba(255,255,255,.7); }
.drawer .drawer-meta a { color: #fff; }
body.drawer-open { overflow: hidden; }

@media (max-width: 1260px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- hero (home) ---------- */
.hero {
  position: relative; min-height: clamp(580px, 88vh, 840px); display: flex; align-items: flex-end;
  color: #fff; background: var(--navy); overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.hero-media img.is-active { opacity: 1; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(1,23,63,.94) 0%, rgba(1,23,63,.55) 42%, rgba(1,23,63,.18) 75%, rgba(1,23,63,.05) 100%),
    linear-gradient(to right, rgba(1,23,63,.35), rgba(1,23,63,0) 60%);
}
.hero-inner { padding: calc(var(--header-h) + 40px) 0 clamp(44px, 6vw, 84px); }
.hero h1 { color: #fff; max-width: none; font-size: clamp(50px, 8.2vw, 110px); line-height: .96; letter-spacing: -.028em; }
.hero .hero-eyebrow { margin: clamp(22px, 2.4vw, 34px) 0 0; font-size: 14px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.hero .hero-eyebrow + .hero-sub { margin-top: 14px; }
@media (max-width: 700px) { .hero .hero-eyebrow { font-size: 12.5px; letter-spacing: .13em; } }
.hero .hero-sub { font-size: clamp(17px, 1.6vw, 20px); color: rgba(255,255,255,.86); max-width: 54ch; margin: 22px 0 30px; line-height: 1.5; }
.hero-foot { display: flex; flex-wrap: wrap; gap: 18px 34px; align-items: center; margin-top: 34px; font-size: 14.5px; color: rgba(255,255,255,.78); }
.hero-foot a { color: #fff; }
.hero-foot .dot-open { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px rgba(0,191,232,.22); display: inline-block; }
.dot.is-closed { background: var(--brass); box-shadow: 0 0 0 4px rgba(243,202,101,.22); }
.hero-dots { position: absolute; right: var(--gutter); bottom: 28px; display: flex; gap: 8px; z-index: 2; }
.hero-dots button { width: 26px; height: 3px; border: 0; padding: 0; background: rgba(255,255,255,.35); cursor: pointer; border-radius: 2px; transition: background .2s; }
.hero-dots button[aria-pressed="true"] { background: #fff; }

.reveal > * { opacity: 0; transform: translateY(14px); animation: rise .8s var(--ease) forwards; }
.reveal > *:nth-child(2) { animation-delay: .12s; }
.reveal > *:nth-child(3) { animation-delay: .24s; }
.reveal > *:nth-child(4) { animation-delay: .34s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- notices ---------- */
.notices { background: var(--navy-2); color: #fff; }
.notices:empty { display: none; }
.notices-inner { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.notices-inner::-webkit-scrollbar { display: none; }
.notice { display: flex; align-items: center; gap: 14px; padding: 15px 22px 15px 0; margin-right: 22px; border-right: 1px solid rgba(255,255,255,.15); white-space: nowrap; font-size: 14.5px; }
.notice:last-child { border-right: 0; }
@media (max-width: 700px) {
  .notices-inner { flex-direction: column; }
  .notice { white-space: normal; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); margin-right: 0; padding: 13px 0; }
  .notice:last-child { border-bottom: 0; }
}
.notice a { color: var(--brass); font-weight: 600; text-decoration: none; }
.notice a:hover { text-decoration: underline; }
.notice .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--brass); flex: none; }

/* ---------- sport switcher (home) ---------- */
.switcher { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.switcher-tabs { display: grid; border-top: 1px solid var(--line); position: sticky; top: calc(var(--header-h) + 24px); }
.switcher-tab {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0;
  width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line);
  padding: 22px 0; cursor: pointer; color: var(--ink-3);
  font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 48px); font-weight: 500; letter-spacing: -.02em; line-height: 1;
  transition: color .2s var(--ease), padding-left .25s var(--ease);
}
.switcher-tab small { font-family: var(--font-body); font-size: 14px; letter-spacing: 0; color: var(--ink-3); font-weight: 500; }
.switcher-tab::before { content: ""; width: 0; height: 3px; background: var(--accent, var(--navy)); border-radius: 2px; align-self: center; transition: width .25s var(--ease), margin-right .25s var(--ease); margin-right: 0; }
.switcher-tab[aria-selected="true"] { color: var(--ink); }
.switcher-tab[aria-selected="true"]::before { width: 28px; margin-right: 16px; }
.switcher-tab:hover { color: var(--ink); }
.switcher-tab .tab-label { flex: 1; }
.switcher-panel { display: none; }
.switcher-panel.is-active { display: block; animation: fadein .35s var(--ease); }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.switcher-panel .panel-photo { aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); box-shadow: var(--shadow); }
.switcher-panel .panel-photo img { width: 100%; height: 100%; object-fit: cover; }
.switcher-panel h3 { margin-top: 26px; font-size: clamp(24px, 2.4vw, 30px); }
.switcher-panel .facts { display: flex; flex-wrap: wrap; gap: 8px 0; margin: 16px 0 18px; padding: 0; list-style: none; font-size: 14.5px; color: var(--ink-2); }
.switcher-panel .facts li { padding-right: 14px; margin-right: 14px; border-right: 1px solid var(--line-2); line-height: 1.3; }
.switcher-panel .facts li:last-child { border: 0; margin: 0; padding: 0; }
.switcher-panel .facts strong { color: var(--ink); font-weight: 600; }
.switcher-panel .panel-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
@media (max-width: 860px) {
  .switcher { grid-template-columns: 1fr; }
  .switcher-tabs { position: static; grid-template-columns: repeat(3, 1fr); border-top: 0; border-bottom: 1px solid var(--line); }
  .switcher-tab { font-size: 20px; padding: 14px 6px 14px 0; border-bottom: 3px solid transparent; justify-content: flex-start; margin-bottom: -1px; }
  .switcher-tab small { display: none; }
  .switcher-tab::before { display: none; }
  .switcher-tab[aria-selected="true"] { border-bottom-color: var(--accent, var(--navy)); }
  .switcher-panel { padding-top: 22px; }
}

/* ---------- split feature (coaching / membership teasers) ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split .photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper); box-shadow: var(--shadow); }
.split .photo img { width: 100%; height: 100%; object-fit: cover; }
.split .cta-row { margin-top: 26px; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split .photo { order: -1; } }

/* ---------- ruled list ---------- */
.ruled { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ruled > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) 190px; gap: 18px 32px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ruled h3, .ruled h4 { font-size: 22px; }
.ruled .ruled-text { color: var(--ink-2); }
.ruled .ruled-action { text-align: right; width: 190px; justify-self: end; }
.bg-navy .ruled, .bg-navy .ruled > li { border-color: rgba(255,255,255,.16); }
.bg-navy .ruled .ruled-text { color: rgba(255,255,255,.82); }
.grid-2 .ruled > li { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); }
.grid-2 .ruled .ruled-action { grid-column: 2; width: auto; justify-self: start; text-align: left; padding-top: 0; }
@media (max-width: 760px) { .ruled > li { grid-template-columns: 1fr; gap: 8px; } .ruled .ruled-action { text-align: left; width: auto; justify-self: start; } }

.benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px 36px; }
.benefits li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--ink-2); }
.benefits li strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.benefits svg { width: 22px; height: 22px; color: var(--brass-2); margin-top: 2px; }
.bg-navy .benefits li { color: rgba(255,255,255,.78); }
.bg-navy .benefits li strong { color: #fff; }
.bg-navy .benefits svg { color: var(--brass); }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(0, auto); gap: 16px; }
.gallery-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper); position: relative; aspect-ratio: 4 / 3; }
.gallery-grid figure:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery-grid figure button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.025); }
.gallery-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; font-size: 13.5px; color: #fff; background: linear-gradient(to top, rgba(1,23,63,.75), rgba(1,23,63,0)); opacity: 0; transition: opacity .25s; pointer-events: none; }
.gallery-grid figure:hover figcaption, .gallery-grid figure:focus-within figcaption { opacity: 1; }
.gallery-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gallery-strip figure { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.gallery-strip figure button { width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-strip figure:hover img { transform: scale(1.03); }
.gallery-empty { padding: 40px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--ink-3); text-align: center; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gallery-grid figure:first-child { grid-column: span 2; grid-row: span 1; aspect-ratio: 16 / 9; } .gallery-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery-grid { gap: 10px; } }

/* chips (filters) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chip { border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); padding: 9px 15px; border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: all .18s var(--ease); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip-group { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
.chip-group .chip-label { font-size: 14px; font-weight: 600; color: var(--ink-3); margin-right: -14px; min-width: 44px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(1,23,63,.94); display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1400px, 100%); max-height: 84vh; object-fit: contain; border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; }
.lightbox figcaption { color: rgba(255,255,255,.8); font-size: 14.5px; text-align: center; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: background .18s; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox button svg { width: 22px; height: 22px; }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 18px; transform: none; } .lightbox .lb-prev { left: 18px; } .lightbox .lb-next { right: 18px; } }

/* ---------- coaching finder ---------- */
.finder-controls { display: grid; gap: 14px; padding: 22px 0 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.programmes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.programme { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 24px; background: #fff; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.programme::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent, var(--navy)); }
.programme .prog-sport { font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink, var(--navy)); }
.programme h3 { font-size: 24px; }
.programme .prog-who { font-size: 14px; color: var(--ink-3); margin-top: -6px; }
.programme p { color: var(--ink-2); font-size: 15.5px; }
.programme .prog-when { font-size: 14px; color: var(--ink-2); background: var(--paper); padding: 10px 12px; border-radius: 4px; }
.programme .prog-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: auto; padding-top: 8px; }
.programme .prog-actions .textlink { font-size: 14.5px; }
.programme.is-hidden { display: none; }
.finder-empty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--ink-3); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.finder-count { font-size: 14px; color: var(--ink-3); }
@media (max-width: 960px) { .programmes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .programmes { grid-template-columns: minmax(0, 1fr); } }

.coaches { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.coach { display: grid; gap: 12px; }
.coach .coach-photo { aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); display: grid; place-items: center; color: var(--ink-3); }
.coach .coach-photo img { width: 100%; height: 100%; object-fit: cover; }
.coach h3 { font-size: 22px; }
.coach .coach-role { font-size: 14.5px; color: var(--ink-2); margin-top: -8px; }
.coach p { font-size: 15px; color: var(--ink-2); }

/* accordion (FAQ) */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--font-display); font-size: 21px; font-weight: 500; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .25s var(--ease); flex: none; margin-right: 6px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > div { padding: 0 0 22px; color: var(--ink-2); max-width: 70ch; }

/* ---------- page hero (sub pages) ---------- */
.page-hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; min-height: clamp(380px, 56vh, 620px); display: flex; align-items: flex-end; }
.page-hero .hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero .hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 1; position: static; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(1,23,63,.95) 0%, rgba(1,23,63,.5) 50%, rgba(1,23,63,.2) 100%); }
.page-hero.no-photo::before { background: radial-gradient(1200px 500px at 85% -10%, rgba(243,202,101,.22), transparent 60%), linear-gradient(to top, rgba(1,23,63,.2), rgba(1,23,63,0)); }
.page-hero .hero-inner { padding: calc(var(--header-h) + 56px) 0 clamp(40px, 5vw, 64px); }
.page-hero h1 { color: #fff; font-size: clamp(40px, 5.6vw, 72px); max-width: 14ch; }
.page-hero .hero-sub { color: rgba(255,255,255,.86); font-size: clamp(16.5px, 1.4vw, 19px); max-width: 58ch; margin: 18px 0 0; }
.page-hero .cta-row { margin-top: 28px; }
.crumbs { font-size: 14px; color: rgba(255,255,255,.72); margin-bottom: 18px; }
.crumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { margin: 0 8px; opacity: .5; }
.accent-bar { width: 44px; height: 4px; background: var(--accent, var(--brass)); border-radius: 2px; margin-bottom: 20px; }

/* ---------- facts band ---------- */
.facts-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-band ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.facts-band li { padding: 22px 26px 22px 0; border-right: 1px solid var(--line); margin-right: 26px; }
.facts-band li:last-child { border-right: 0; margin-right: 0; }
.facts-band strong { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.facts-band span { font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 700px) { .facts-band ul { grid-template-columns: 1fr 1fr; } .facts-band li { border: 0; margin: 0; padding: 16px 0; } }

/* ---------- steps (a real sequence) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 18px; border-top: 2px solid var(--navy); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-size: 30px; color: var(--brass-2); display: block; margin-bottom: 8px; font-weight: 500; }
.steps h3 { font-size: 22px; margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 15.5px; }
.bg-navy .steps li { border-top-color: rgba(255,255,255,.4); }
.bg-navy .steps li::before { color: var(--brass); }
.bg-navy .steps p { color: rgba(255,255,255,.8); }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- membership helper ---------- */
.helper { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.helper fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.helper legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.helper .chips .chip { background: #fff; }
.helper-result { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; min-height: 100%; }
.helper-result h3 { font-size: 26px; margin-bottom: 8px; }
.helper-result p { color: var(--ink-2); }
.helper-result .cta-row { margin-top: 18px; }
@media (max-width: 800px) { .helper { grid-template-columns: minmax(0, 1fr); } }

.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tier { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; }
.tier h3 { font-size: 26px; margin-bottom: 6px; }
.tier .tier-for { color: var(--ink-3); font-size: 14.5px; margin-bottom: 14px; }
.tier ul { margin: 0 0 20px; padding-left: 18px; color: var(--ink-2); font-size: 15.5px; }
.tier li { margin-bottom: 6px; }
@media (max-width: 860px) { .tiers { grid-template-columns: minmax(0, 1fr); } }

/* ---------- events ---------- */
.events { display: grid; gap: 14px; }
.event { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 20px; padding: 22px 24px 22px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); align-items: start; }
.event.has-photo { grid-template-columns: 84px minmax(0, 1fr) minmax(240px, 320px); }
.event-date { text-align: center; border-right: 1px solid var(--line); padding-right: 16px; }
.event-day { display: block; font-family: var(--font-display); font-size: 40px; line-height: 1; font-weight: 500; color: var(--accent, var(--navy)); letter-spacing: -.02em; }
.event-month { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-top: 4px; }
.event-body h3 { font-size: 24px; }
.event-meta { font-size: 14.5px; color: var(--ink-2); margin: 6px 0 10px; }
.event-body p { color: var(--ink-2); max-width: 62ch; }
.event-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 14px; }
.event-actions .textlink { font-size: 14.5px; }
.event-photo { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.event-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* with a photo, the picture fills the full height of the card, beside the text */
.event.has-photo { align-items: stretch; }
.event.has-photo .event-photo { aspect-ratio: auto; min-height: 210px; }
.event.is-past { background: transparent; }
.event.is-past .event-day { color: var(--ink-3); }
.event.is-past h3 { font-size: 21px; }
.events-teaser { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.events-teaser .event { grid-template-columns: 72px minmax(0, 1fr); }
.events-teaser .event.has-photo { grid-column: 1 / -1; grid-template-columns: 72px minmax(0, 1fr) minmax(240px, 340px); }
.events-teaser .event-day { font-size: 34px; }
.events-teaser .event-body h3 { font-size: 21px; }
.events-teaser .event-body p { font-size: 15px; }
@media (max-width: 760px) {
  .event, .event.has-photo, .events-teaser .event, .events-teaser .event.has-photo { grid-template-columns: 64px minmax(0, 1fr); padding: 18px; gap: 14px; }
  .event-day { font-size: 32px; }
  .event-photo, .event.has-photo .event-photo { grid-column: 1 / -1; aspect-ratio: 3 / 2; min-height: 0; }
  .events-teaser { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- visit / contact ---------- */
.visit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.visit-list { list-style: none; margin: 0; padding: 0; display: grid; }
.visit-list li { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.visit-list li:first-child { border-top: 1px solid var(--line); }
.visit-list svg { width: 22px; height: 22px; color: var(--brass-2); margin-top: 3px; }
.visit-list h4 { font-family: var(--font-body); font-size: 13.5px; font-weight: 600; color: var(--ink-3); margin-bottom: 4px; }
.visit-list p, .visit-list a { overflow-wrap: anywhere; }
.visit-list p { margin: 0; color: var(--ink); }
.visit-list a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.visit-list a:hover { border-color: var(--ink); }
.open-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.map-shell { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); aspect-ratio: 4 / 3; min-height: 320px; box-shadow: var(--shadow); }
.map-shell iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-facade { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff; padding: 24px; background:
  radial-gradient(600px 300px at 20% 20%, rgba(243,202,101,.18), transparent 60%),
  repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 42px),
  repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 42px),
  var(--navy); }
.map-facade .map-pin { width: 44px; height: 44px; color: var(--brass); margin: 0 auto 14px; }
.map-facade h3 { color: #fff; font-size: 22px; }
.map-facade p { color: rgba(255,255,255,.8); max-width: 34ch; margin: 6px auto 16px; font-size: 14.5px; }
.map-facade .cta-row { justify-content: center; }
@media (max-width: 860px) { .visit { grid-template-columns: minmax(0, 1fr); } .map-shell { min-height: 0; aspect-ratio: 4 / 3; } }

/* ---------- closing CTA ---------- */
.closing { text-align: center; }
.closing .wrap-narrow { display: grid; gap: 16px; justify-items: center; }
.closing h2 { font-size: clamp(34px, 5vw, 60px); max-width: 22ch; }
.closing .cta-row { justify-content: center; margin-top: 10px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); padding: clamp(48px, 6vw, 80px) 0 28px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; min-width: 0; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.14); }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { max-width: 38ch; color: rgba(255,255,255,.72); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 22px; font-size: 13px; color: rgba(255,255,255,.55); }
.footer-bottom a { color: rgba(255,255,255,.7); }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; transition: background .18s; }
.socials a:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.socials svg { width: 17px; height: 17px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- back to top ---------- */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .25s, transform .25s; box-shadow: 0 8px 24px -10px rgba(1,23,63,.35); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 18px; height: 18px; }

/* ---------- utilities ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.stack { display: grid; gap: 14px; }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.tag { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 4px 9px; border-radius: 3px; background: var(--brass-soft); color: var(--brass-2); }
.sport-tennis { --accent: var(--tennis); --accent-ink: var(--tennis-ink); }
.sport-badminton { --accent: var(--badminton); --accent-ink: var(--badminton-ink); }
.sport-table-tennis { --accent: var(--table-tennis); --accent-ink: var(--table-tennis-ink); }
.sport-club { --accent: var(--club); --accent-ink: var(--club-ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal > * { opacity: 1; transform: none; }
  .hero-media img { transition: none; }
}

@media print {
  .site-header, .drawer, .to-top, .hero-dots, .notices, .lightbox { display: none !important; }
  body { color: #000; }
  a { color: #000; }
}

.prog-note { display:inline-block; margin-top:6px; font-size:.85em; color:var(--ink-3); }

/* ---------- membership prices ---------- */
.hours-key { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-bottom: 22px; font-size: 15px; color: var(--ink-2); }
.hours-key > div { display: flex; align-items: center; gap: 10px; }
.hours-tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 3px; white-space: nowrap; }
.hours-tag.is-peak { background: var(--navy); color: #fff; }
.hours-tag.is-off { background: var(--brass-soft); color: #5A4511; }
.price-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.price-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.price-card { border: 1px solid var(--line); border-top: 4px solid var(--accent, var(--navy)); border-radius: var(--radius); background: #fff; padding: 22px; display: grid; gap: 14px; align-content: start; }
.price-card.is-all { --accent: var(--brass); background: var(--paper); }
.price-card.is-special { --accent: var(--royal); }
.price-card h3 { font-size: 24px; }
.price-covers { margin: -8px 0 0; font-size: 14px; color: var(--ink-3); }
.price-opt { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); justify-items: start; }
.price-figs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.price-full { font-family: var(--font-display); font-size: 32px; font-weight: 600; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.price-per { font-size: 14px; color: var(--ink-2); }
.price-monthly { flex-basis: 100%; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.price-detail { font-size: 14px; color: var(--ink-2); }
.price-sub { margin: 40px 0 16px; font-size: 26px; }
.helper-price { font-family: var(--font-display); font-size: 22px; color: var(--ink); margin-bottom: 8px; }
.perks .perk { border-top: 2px solid var(--navy); padding-top: 18px; }
.perk h3 { font-size: 22px; }
.perk .perk-what { font-size: 14px; color: var(--ink-3); margin: 4px 0 10px; }
.perk p { color: var(--ink-2); }
@media (max-width: 1080px) { .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .price-grid, .price-grid-2 { grid-template-columns: minmax(0, 1fr); } }
.helper .chips .chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- contact list (home, Visit us) ---------- */
.contact-list { margin: 4px 0 0; display: grid; gap: 12px; }
.contact-list div { display: grid; gap: 1px; }
.contact-list dt { font-size: 13.5px; color: var(--ink-2); }
.contact-list dd { margin: 0; }

/* ---------- one button width across the site ----------
   Buttons share one minimum width with the words centred, so buttons that
   sit together or stack in a column line up. The header button keeps its
   own size. */
.btn { min-width: 190px; text-align: center; }
.nav .btn { min-width: 0; }
.ruled .ruled-action .btn { width: 190px; max-width: 100%; }
@media (max-width: 420px) { .cta-row .btn { flex: 1 1 100%; } }

/* ---------- notices: one larger line, centred ---------- */
.notices-inner { justify-content: center; }
.notice { font-family: var(--font-display); font-size: clamp(21px, 2.4vw, 28px); font-weight: 500; padding-top: 22px; padding-bottom: 22px; letter-spacing: -.01em; }
.notice .pip { display: none; }
.notice:only-child { margin-right: 0; padding-right: 0; border-right: 0; }
@media (max-width: 700px) { .notices-inner { align-items: center; text-align: center; } .notice { justify-content: center; } }

/* Holiday camps */
.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps-4 { grid-template-columns: minmax(0, 1fr); } }
.camp-next { border-left: 3px solid var(--brass); padding: 6px 0 6px 24px; }
.camp-next p { font-size: 18px; color: var(--ink-2); margin-bottom: 18px; }
.camp-teaser { color: rgba(255,255,255,.85); font-size: 18px; margin-bottom: 18px; }
.nav a { white-space: nowrap; }
@media (max-width: 1360px) { .nav a { padding: 9px 9px; font-size: 14.5px; } .nav { gap: 2px; } }
.ruled-text a, .ruled-text { overflow-wrap: anywhere; }
.camp-teaser.is-light { color: var(--ink-2); }
.steps-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1080px) { .steps-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .steps-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .steps-5 { grid-template-columns: minmax(0, 1fr); } }

/* Club play */
.cp-list .cp-time { display: block; color: var(--brass); font-weight: 600; margin-bottom: 4px; }
.cp-note { margin-top: 14px; font-size: 14.5px; color: rgba(255,255,255,.72); }
.cp-list li { grid-template-columns: minmax(0,1fr) minmax(0,2fr) !important; }
.cp-list a { color: #fff; }

.steps-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 560px) { .steps-2 { grid-template-columns: minmax(0, 1fr); } }
