/* ==========================================================================
   Alhabib Center (14-alhabib-physio) — styles.css
   Sections, in order: tokens, base, shared parts, header, hero, rating, services,
   marquee, programmes, visit (gold dotted timeline), centre (gallery), team,
   community, booking, location, footer, contact bar, reduced motion.
   Colours, fonts, radii and spacing live only in the :root tokens below.
   Gold (--gold) is decoration only: dotted lines, dots and thin rules; never text.
   ========================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  /* colour */
  --ivory: #FAF8F4;
  --white: #FFFFFF;
  --ink: #1F2A2E;
  --ink-soft: #4B5A5E;
  --teal: #2F5D62;
  --teal-dark: #234649;
  --teal-soft: #E6EFEE;
  --gold: #B8935A;
  --wood: #8A6A4F;
  --line: #E6E0D6;
  --line-teal: #C5D8D6;
  --logo-bg: #FFFFFF;
  --status-open: #2E7D5B;
  --status-closed: #7B8588;
  /* type */
  --font: "Jost", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-card-title: 19px;
  --fs-h2: 28px;
  --fs-h1: 38px;
  --fs-h1-en: 44px;
  --fs-stat: 40px;
  /* shape */
  --radius: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --tap: 48px;
  /* spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --section: 36px;
  --page: 1180px;
  --pad: 20px;
  --header-h: 64px;
  --bar-h: 72px;
  --arch-h: min(36svh, 300px);
}
@media (min-width: 1024px) {
  :root {
    --fs-body: 17px;
    --fs-small: 15px;
    --fs-card-title: 22px;
    --fs-h2: 40px;
    --fs-h1: clamp(46px, 4.6vw, 66px);
    --fs-h1-en: clamp(48px, 4.6vw, 70px);
    --fs-stat: 56px;
    --section: 48px;
    --pad: 40px;
    --header-h: 76px;
    --arch-h: min(70svh, 520px);
  }
}
@media (min-width: 1024px) and (max-width: 1279px) { :root { --section: 40px; } }
@media (min-width: 760px) and (max-width: 1023px) { :root { --section: 36px; } }
@media (max-width: 420px) { :root { --section: 28px; } }

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 84px; font-feature-settings: "lnum" 1; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 var(--fs-body)/1.75 var(--font); }
html[dir="ltr"] body { line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 700; line-height: 1.3; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-card-title); line-height: 1.4; font-weight: 600; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { max-width: calc(var(--page) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.section-pad { padding-block: var(--section); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; inset-inline-start: -200vw; top: 8px; padding: 12px 18px; background: var(--ink); color: var(--white); border-radius: var(--radius); }
.skip-link:focus { inset-inline-start: 12px; }
.progress-line { position: fixed; z-index: 100; top: 0; inset-inline: 0; height: 3px; background: transparent; pointer-events: none; }
.progress-line span { display: block; width: 100%; height: 100%; background: var(--teal); transform: scaleX(0); transform-origin: left; }
html[dir="rtl"] .progress-line span { transform-origin: right; }

/* ---------- 3. SHARED PARTS ---------- */
.muted { color: var(--ink-soft); font-size: var(--fs-small); }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--teal); font-size: var(--fs-small); font-weight: 600; line-height: 1.4; margin-bottom: var(--sp-2); }
html[lang="en"] .eyebrow, .eyebrow-latin { letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.eyebrow-mark { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 12px 0 0 -1px var(--gold); margin-inline-end: 12px; }
html[dir="rtl"] .eyebrow-mark { box-shadow: -12px 0 0 -1px var(--gold); }
.section-head { margin-bottom: var(--sp-5); }
.body-copy { color: var(--ink-soft); margin-top: var(--sp-3); max-width: 56ch; }
.button { min-height: 52px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: var(--radius-md); border: 2px solid transparent; font-size: 16px; font-weight: 700; line-height: 1.2; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.button-primary { background: var(--teal); color: var(--white); }
.button-primary:hover { background: var(--teal-dark); }
.button-ghost { background: var(--white); color: var(--ink); border-color: var(--ink); }
.button-ghost:hover { background: var(--ink); color: var(--white); }
.glyph { display: block; flex: none; width: 20px; height: 20px; }
.glyph-arrow { width: 18px; height: 18px; transition: transform .2s ease; }
html[dir="rtl"] .glyph-arrow { transform: scaleX(-1); }
.button:hover .glyph-arrow { transform: translate(3px, -2px); }
html[dir="rtl"] .button:hover .glyph-arrow { transform: scaleX(-1) translate(3px, -2px); }
.phone-number { font-weight: 700; unicode-bidi: isolate; white-space: nowrap; }
.text-link { min-height: var(--tap); display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-weight: 700; border-bottom: 2px solid transparent; }
.text-link:hover { border-bottom-color: currentColor; }
.hours-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; min-height: 40px; background: var(--teal-soft); border: 1px solid var(--line-teal); border-radius: var(--radius-md); font-size: var(--fs-small); font-weight: 600; line-height: 1.4; }
.hours-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--status-closed); }
.hours-badge[data-state="open"] .hours-dot { background: var(--status-open); }
.rating-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; min-height: 40px; border: 1px solid var(--line-teal); border-radius: var(--radius-md); font-size: var(--fs-small); font-weight: 600; background: var(--white); }
.glyph-star { flex: none; width: 18px; height: 18px; color: var(--teal); }
.logo-tile { display: block; flex: none; width: 54px; aspect-ratio: 385 / 320; border-radius: 10px; overflow: hidden; background: var(--logo-bg); }
.logo-tile img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
.service-ask { min-height: var(--tap); display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-weight: 700; font-size: 15px; border-bottom: 2px solid transparent; }
.service-ask:hover { border-bottom-color: currentColor; }

/* ---------- 4. HEADER ---------- */
.site-header { position: fixed; z-index: 90; top: 0; inset-inline: 0; height: var(--header-h); display: flex; align-items: center; gap: var(--sp-3); padding-inline: max(var(--pad), calc((100vw - var(--page)) / 2)); background: var(--white); border-bottom: 1px solid var(--line); transition: transform .2s ease; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header:focus-within { transform: none; }
.brand { display: flex; align-items: center; gap: 10px; min-height: var(--tap); }
.brand-name { font-size: 17px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
html[lang="en"] .brand-name { letter-spacing: .08em; font-size: 16px; }
.site-nav { display: none; align-items: center; gap: var(--sp-4); margin-inline-start: auto; font-size: var(--fs-small); font-weight: 600; }
.site-nav a { min-height: var(--tap); display: flex; align-items: center; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--teal); color: var(--teal); }
.language-switch { margin-inline-start: auto; min-width: var(--tap); min-height: var(--tap); padding-inline: 10px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-teal); border-radius: var(--radius-md); font-size: 15px; font-weight: 700; color: var(--ink); }
.language-switch:hover { border-color: var(--ink); }
html[lang="en"] .language-switch.lang-ar { display: none; }
html:not([lang="en"]) .language-switch.lang-en { display: none; }
.header-cta { display: none; min-height: var(--tap); padding-inline: 16px; font-size: 15px; }
@media (min-width: 1024px) {
  .site-nav { display: flex; }
  .language-switch { margin-inline-start: 0; }
}
@media (min-width: 1180px) { .header-cta { display: inline-flex; } .site-nav { gap: var(--sp-5); } }

/* ---------- 5. HERO (arched photo with the gold dotted line) ---------- */
.hero { padding-top: calc(var(--header-h) + var(--sp-4)); padding-bottom: var(--sp-5); background: var(--ivory); position: relative; }
.hero-grid { display: grid; gap: var(--sp-5); align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.logo-plaque { width: 84px; margin-bottom: var(--sp-3); }
.hero h1 { font-size: var(--fs-h1); line-height: 1.25; letter-spacing: 0; }
html[lang="en"] .hero h1 { font-size: var(--fs-h1-en); line-height: 1.05; letter-spacing: .03em; font-weight: 600; }
.h1-sub { display: block; margin-top: var(--sp-3); font-size: 15px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4; color: var(--teal); }
.hero-line { font-size: 19px; line-height: 1.55; font-weight: 600; margin-top: var(--sp-3); max-width: 34ch; }
.hero-fields { margin-top: var(--sp-2); color: var(--ink-soft); font-size: var(--fs-body); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-4); width: 100%; }
.hero-actions .button { flex: 1 1 240px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-4); }
.hero-media { display: flex; align-items: stretch; justify-content: center; gap: 14px; }
.dotline { display: flex; flex-direction: column; align-items: center; justify-content: space-between; width: 14px; padding-block: 4px; }
.dotline i { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.dotline i:nth-child(3), .dotline i:nth-child(9) { width: 9px; height: 9px; }
.dotline i:nth-child(4), .dotline i:nth-child(8) { width: 11px; height: 11px; }
.dotline i:nth-child(5), .dotline i:nth-child(6), .dotline i:nth-child(7) { width: 13px; height: 13px; }
.arch { flex: 0 1 calc(var(--arch-h) * .8); min-width: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 50% 50% var(--radius-md) var(--radius-md) / 40% 40% var(--radius-md) var(--radius-md); background: var(--teal-soft); box-shadow: 0 0 0 8px var(--teal-soft); }
.hero-image { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 43% 50%; }
@media (min-width: 1024px) {
  .hero { padding-top: calc(var(--header-h) + var(--sp-6)); padding-bottom: var(--sp-6); }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--sp-7); }
  .logo-plaque { width: 96px; }
  .hero-line { font-size: 24px; }
  .hero-actions { margin-top: var(--sp-5); }
  .hero-actions .button { flex: 0 1 auto; }
  .hero-facts { margin-top: var(--sp-5); }
  .hero-media { justify-content: flex-end; gap: 18px; }
  .dotline { width: 16px; }
  .h1-sub { font-size: 18px; }
}
@media (max-width: 1023px) { .hero-media { padding-top: 8px; } }

/* ---------- 6. RATING (Google Maps rating block) ---------- */
.rating { background: var(--teal); color: var(--white); padding-block: var(--sp-6); position: relative; }
.rating::before { content: ""; position: absolute; inset-inline: var(--pad); top: 0; height: 2px; background: radial-gradient(circle, var(--gold) 1px, transparent 1.4px) 0 0 / 8px 2px repeat-x; }
.rating-grid { display: grid; gap: var(--sp-4); align-items: center; }
.rating-copy h2 { font-size: var(--fs-h2); }
.rating .text-link { color: var(--white); margin-top: var(--sp-1); }
.facts { display: flex; gap: var(--sp-6); }
.fact { display: flex; flex-direction: column; gap: 4px; }
.fact:last-child { padding-inline-start: var(--sp-6); border-inline-start: 1px solid rgba(255, 255, 255, .35); }
.fact-value { display: flex; align-items: center; gap: 10px; font-size: var(--fs-stat); font-weight: 600; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; direction: ltr; justify-content: flex-start; }
html[dir="rtl"] .fact-value { justify-content: flex-end; }
.fact-star { width: .6em; height: .6em; color: var(--ivory); }
.fact-label { font-size: var(--fs-small); color: rgba(255, 255, 255, .88); }
@media (min-width: 760px) {
  .rating-grid { grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-8); }
  .rating { padding-block: var(--sp-7); }
}

/* ---------- 7. SERVICES (five large cards) ---------- */
.services { background: var(--ivory); }
.service-grid { display: grid; gap: var(--sp-3); }
.service-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.service-photo img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: 50% 62%; }
.service-body { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: var(--sp-3); padding: var(--sp-4); align-content: start; }
.service-icon { grid-row: 1 / span 3; width: 40px; height: 40px; padding: 8px; border-radius: var(--radius-md); background: var(--teal-soft); color: var(--teal); }
.service-body h3 { grid-column: 2; }
.service-body p { grid-column: 2; color: var(--ink-soft); margin-top: 4px; font-size: 16px; line-height: 1.6; }
.service-body .service-ask { grid-column: 2; justify-self: start; }
@media (min-width: 760px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
  .service-main { grid-column: 1 / -1; flex-direction: row; }
  .service-main .service-photo { flex: 0 0 44%; }
  .service-main .service-photo img { height: 100%; aspect-ratio: auto; max-height: 280px; }
  .service-main .service-body { flex: 1; align-content: center; padding: var(--sp-5); }
  .service-body p { font-size: var(--fs-body); }
}
@media (min-width: 1024px) {
  .service-grid { grid-template-columns: 1.25fr 1fr 1fr; gap: var(--sp-4); }
  .service-main { grid-column: 1; grid-row: 1 / span 2; flex-direction: column; }
  .service-main .service-photo { flex: none; }
  .service-main .service-photo img { height: auto; aspect-ratio: 4 / 3; max-height: 260px; }
  .service-main .service-body { padding: var(--sp-5); }
  .service-body { display: block; padding: var(--sp-5); }
  .service-icon { margin-bottom: var(--sp-3); }
  .service-body p { margin-top: var(--sp-2); }
  .service-body .service-ask { margin-top: var(--sp-2); }
}

/* ---------- 8. MARQUEE ---------- */
/* Default (no JS, JS blocked, or reduced motion): one static, wrapping copy. The loop and the pause button exist only under .marquee-ready, which main.js adds once the pause listener is installed. */
.marquee-band { direction: ltr; display: flex; align-items: stretch; min-height: 56px; background: var(--ink); color: var(--white); }
.marquee-viewport { flex: 1 1 auto; min-width: 0; overflow: hidden; display: flex; align-items: center; padding: 14px var(--pad); }
.marquee-track { --mq-gap: 22px; display: flex; flex-wrap: wrap; justify-content: center; row-gap: 8px; align-items: center; width: 100%; white-space: normal; font-size: 19px; font-weight: 500; line-height: 1.4; }
.marquee-copy { display: flex; flex: none; align-items: center; max-width: 100%; }
.marquee-copy > span { direction: ltr; unicode-bidi: isolate; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; row-gap: 6px; }
html[dir="rtl"] .marquee-copy > span { direction: rtl; }
.marquee-copy + .marquee-copy, .marquee-copy > span + span { display: none; }
.marquee-ready { height: 56px; min-height: 0; }
.marquee-ready .marquee-viewport { padding: 0; }
.marquee-ready .marquee-track { width: max-content; flex-wrap: nowrap; justify-content: flex-start; white-space: nowrap; line-height: 1; will-change: transform; animation: hb-marquee 28s linear infinite; }
.marquee-ready .marquee-copy, .marquee-ready .marquee-copy + .marquee-copy { display: flex; max-width: none; }
.marquee-ready .marquee-copy > span, .marquee-ready .marquee-copy > span + span { display: inline-flex; flex-wrap: nowrap; }
.marquee-track b { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline: var(--mq-gap); background: var(--gold); }
html[lang="en"] .marquee-track { letter-spacing: .14em; font-size: 16px; }
@keyframes hb-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-toggle { display: none; flex: none; width: var(--tap); height: 100%; align-items: center; justify-content: center; padding: 0; border: 0; border-inline-start: 1px solid rgba(255, 255, 255, .25); background: var(--ink); color: var(--white); cursor: pointer; }
.marquee-ready .marquee-toggle { display: inline-flex; }
html[dir="rtl"] .marquee-toggle { order: -1; border-inline-start: 0; border-inline-end: 1px solid rgba(255, 255, 255, .25); }
.marquee-toggle:hover { background: var(--teal-dark); }
.marquee-toggle:focus-visible { outline: 3px solid var(--white); outline-offset: -6px; }
.marquee-toggle .icon-play, .marquee-band.is-paused .marquee-toggle .icon-pause { display: none; }
.marquee-band.is-paused .marquee-toggle .icon-play { display: block; }
.marquee-band.is-paused .marquee-track { animation-play-state: paused; }

/* ---------- 9. PROGRAMMES (one unassigned list, two columns from 760px) ---------- */
.programmes-section { background: var(--white); }
.programme-list { --li-pad: 12px; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--sp-7); }
.programme-list li { position: relative; padding-block: var(--li-pad); padding-inline-start: 24px; border-bottom: 1px dotted var(--gold); font-size: 18px; font-weight: 600; line-height: 1.5; }
.programme-list li:last-child { border-bottom: 0; }
.programme-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: calc(var(--li-pad) + .75em - 4px); width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
@media (min-width: 760px) {
  .programme-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .programme-list li:nth-last-child(2) { border-bottom: 0; }
}
@media (min-width: 1024px) {
  .programme-list { --li-pad: 14px; column-gap: var(--sp-8); }
  .programme-list li { font-size: 20px; }
}

/* ---------- 10. VISIT (four nodes on the gold dotted line) ---------- */
.visit { background: var(--ivory); }
.visit-grid { display: grid; gap: var(--sp-5); }
.timeline-wrap { position: relative; }
/* Each node (except the last) carries a dotted segment running from its dot centre to the next dot centre; together they form one gold line. */
.t-seg { position: absolute; inset-inline-start: calc(var(--t-dot) / 2 - 4px); top: calc(var(--t-pad) + var(--t-dot) / 2); bottom: calc(-1 * (var(--t-pad) + var(--t-dot) / 2)); width: 8px; background: radial-gradient(circle, var(--gold) 2.3px, transparent 2.9px) center top / 8px 14px repeat-y; }
.timeline { position: relative; }
.t-node { --t-dot: 44px; --t-pad: 10px; position: relative; display: grid; grid-template-columns: var(--t-dot) minmax(0, 1fr); column-gap: var(--sp-4); align-items: start; padding-block: var(--t-pad); }
.t-dot { position: relative; z-index: 1; display: grid; place-items: center; width: var(--t-dot); height: var(--t-dot); border-radius: 50%; border: 2px solid var(--teal); background: var(--teal); color: var(--white); font-weight: 600; font-size: 17px; font-variant-numeric: lining-nums; transition: background-color .3s, color .3s, border-color .3s; }
.t-body { padding-top: 6px; }
.t-body p { color: var(--ink-soft); max-width: 50ch; font-size: 16px; line-height: 1.6; margin-top: 2px; }
.timeline.is-armed .t-dot { background: var(--ivory); color: var(--teal); border-color: var(--line-teal); }
.timeline.is-armed .t-node.is-active .t-dot { background: var(--teal); color: var(--white); border-color: var(--teal); }
.visit-note { margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px dotted var(--gold); color: var(--ink-soft); font-size: var(--fs-small); }
.visit-photos { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.visit-photos img { width: 100%; height: 130px; object-fit: cover; border-radius: var(--radius-lg); background: var(--teal-soft); }
.visit-photos figure:first-child img { object-position: 50% 60%; }
.visit-photos figure:last-child img { object-position: 50% 55%; }
@media (min-width: 760px) {
  .t-body p { font-size: var(--fs-body); }
  .visit-photos img { height: 200px; }
}
@media (min-width: 1024px) {
  .visit-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--sp-8); align-items: start; }
  .t-node { --t-pad: 14px; }
  .visit-photos { gap: var(--sp-4); margin-top: var(--sp-8); }
  .visit-photos img { height: 400px; }
  .visit-photos figure:last-child { margin-top: var(--sp-6); }
  .visit-photos figure:last-child img { height: 340px; }
}

/* ---------- 11. CENTRE (editorial gallery) ---------- */
.centre { background: var(--teal-soft); }
.gallery { display: flex; gap: var(--sp-3); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin-inline: calc(-1 * var(--pad)); padding: 0 var(--pad) var(--sp-3); scroll-padding-inline: var(--pad); }
.gallery-item { flex: 0 0 56vw; max-width: 280px; scroll-snap-align: start; }
.gallery-item img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); background: var(--white); }
.g4 img, .g5 img { aspect-ratio: 4 / 5; }
.g5 img { object-position: 50% 90%; }
@media (min-width: 1024px) {
  .gallery { display: grid; grid-template-columns: 1.15fr 1fr 1.1fr .9fr; grid-template-rows: 20px 180px 180px; gap: var(--sp-4); overflow: visible; margin-inline: 0; padding: 0; }
  .gallery-item { flex: none; max-width: none; }
  .gallery-item img { aspect-ratio: auto; }
  .g1 { grid-column: 1; grid-row: 1 / 4; }
  .g2 { grid-column: 2; grid-row: 2 / 4; }
  .g3 { grid-column: 3; grid-row: 1 / 4; }
  .g4 { grid-column: 4; grid-row: 1 / 3; }
  .g5 { grid-column: 4; grid-row: 3; }
}

/* ---------- 12. TEAM (typographic list) ---------- */
.team { background: var(--white); }
.team-groups { display: grid; gap: var(--sp-5); }
.team-group h3 { font-size: var(--fs-small); font-weight: 600; letter-spacing: 0; color: var(--teal); margin-bottom: var(--sp-1); }
html[lang="en"] .team-group h3 { letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.team-group h3 + .people + h3 { margin-top: var(--sp-5); }
.people li { display: flex; flex-direction: column; padding-block: 10px; border-bottom: 1px dotted var(--gold); }
.people b { font-size: 19px; font-weight: 700; line-height: 1.4; }
.people span { color: var(--ink-soft); font-size: 15px; line-height: 1.5; }
@media (min-width: 760px) {
  .team-group-main .people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-6); }
}
@media (min-width: 1024px) {
  .team-groups { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--sp-8); }
  .people b { font-size: 21px; }
  .people span { font-size: var(--fs-small); }
}

/* ---------- 13. COMMUNITY ---------- */
.community { background: var(--ivory); padding-block: var(--sp-5); border-block: 1px solid var(--line); }
.community-grid { display: grid; gap: var(--sp-3); }
.community-grid p { position: relative; padding-inline-start: 22px; color: var(--ink-soft); font-size: var(--fs-body); }
.community-grid p::before { content: ""; position: absolute; inset-inline-start: 0; top: .75em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
@media (min-width: 1024px) { .community-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-7); } }

/* ---------- 14. BOOKING ---------- */
.booking { background: var(--teal-soft); }
.booking-grid { display: grid; gap: var(--sp-4); align-items: center; }
.booking-phone { display: flex; flex-direction: column; margin-top: var(--sp-4); }
.booking-phone a { min-height: var(--tap); display: flex; align-items: center; width: max-content; font-size: 24px; font-weight: 700; color: var(--teal); unicode-bidi: isolate; }
.booking-panel { padding: var(--sp-4); background: var(--white); border: 1px solid var(--line-teal); border-radius: var(--radius-lg); }
.pills-label { font-weight: 600; margin-bottom: var(--sp-3); }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { min-height: var(--tap); padding: 0 18px; border: 2px solid var(--teal); border-radius: 999px; background: var(--white); color: var(--teal); font-size: 15px; font-weight: 700; cursor: pointer; transition: background-color .15s, color .15s; }
.pill:hover { background: var(--teal-soft); }
.pill[aria-checked="true"] { background: var(--teal); color: var(--white); }
.booking-preview { display: flex; flex-direction: column; gap: 4px; margin-top: var(--sp-4); padding: var(--sp-3) var(--sp-4); background: var(--teal-soft); border-radius: var(--radius-md); }
.preview-text { font-size: 15px; line-height: 1.6; }
.booking-cta { width: 100%; margin-top: var(--sp-4); }
@media (min-width: 1024px) {
  .booking-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-8); }
  .booking-panel { padding: var(--sp-6); }
}

/* ---------- 15. LOCATION ---------- */
.location { background: var(--white); }
.location-grid { display: grid; gap: var(--sp-4); }
.location-media { display: flex; flex-direction: column; gap: var(--sp-3); align-items: flex-start; }
.building { width: 100%; max-width: 560px; border-radius: var(--radius-lg); overflow: hidden; }
.building img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: 50% 52%; }
.map-wrap { position: relative; width: 100%; max-width: 560px; height: 200px; overflow: hidden; border-radius: var(--radius-lg); background: var(--teal-soft); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; pointer-events: none; }
.map-wrap iframe:not([inert]) { pointer-events: auto; }
.map-controls { position: absolute; z-index: 2; inset-inline: 12px; bottom: 12px; display: flex; gap: 8px; }
.map-toggle { min-height: var(--tap); padding: 8px 16px; background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius-md); font-size: 15px; font-weight: 700; cursor: pointer; }
.map-toggle:hover { background: var(--ink); color: var(--white); }
.location-details { display: flex; flex-direction: column; gap: var(--sp-3); }
.detail-block { padding-bottom: var(--sp-3); border-bottom: 1px dotted var(--gold); }
.detail-label { display: block; margin-bottom: var(--sp-1); font-size: var(--fs-small); font-weight: 600; color: var(--teal); }
.detail-value { font-size: 18px; font-weight: 600; }
.hours li { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: 8px 12px; margin-inline: -12px; border-radius: var(--radius); }
.hours b { font-weight: 600; font-variant-numeric: lining-nums; }
.hours li.is-today { background: var(--teal-soft); }
.hours li.is-today .day-name, .hours li.is-today b { font-weight: 700; }
.today-tag { display: inline-block; margin-inline-start: 8px; padding: 1px 10px; border-radius: 999px; background: var(--teal); color: var(--white); font-size: 14px; font-weight: 600; line-height: 1.6; }
.detail-block .hours-badge { margin-top: var(--sp-2); }
.detail-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.action { flex: 1 1 200px; min-height: var(--tap); padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 2px solid var(--ink); border-radius: var(--radius-md); font-weight: 700; font-size: 16px; }
.action:hover { background: var(--ink); color: var(--white); }
.amenities li { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; font-size: 15px; line-height: 1.55; }
.glyph-check { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--teal); }
@media (min-width: 760px) {
  .location-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-5); }
  .location-media .building, .location-media .map-wrap { max-width: none; }
}
@media (min-width: 1024px) {
  .location-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: var(--sp-7); }
  .building img { aspect-ratio: 16 / 8; max-height: 240px; }
  .map-wrap { height: 240px; }
  .detail-block { padding-bottom: var(--sp-4); }
  .location-details { gap: var(--sp-4); }
}

/* ---------- 16. FOOTER ---------- */
.site-footer { padding-block: var(--sp-6); background: var(--ink); color: var(--white); }
.footer-grid { display: grid; gap: var(--sp-3); }
.footer-brand .logo-tile { width: 60px; }
.footer-copy { color: rgba(255, 255, 255, .85); max-width: 50ch; font-size: var(--fs-small); }
.footer-social { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-4); }
.site-footer .muted { color: rgba(255, 255, 255, .8); }
.social-link { min-height: var(--tap); display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.social-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-note { padding-top: var(--sp-3); border-top: 1px solid rgba(255, 255, 255, .25); font-size: var(--fs-small); color: rgba(255, 255, 255, .85); }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: auto 1fr auto; align-items: center; gap: var(--sp-3) var(--sp-5); }
  .footer-note { grid-column: 1 / -1; }
}

/* ---------- 17. STICKY CONTACT BAR (below 1024px) ---------- */
.contact-bar { display: none; }
@media (max-width: 1023px) {
  .contact-bar { display: grid; grid-template-columns: .6fr 1.4fr; gap: 8px; position: fixed; z-index: 80; bottom: 0; inset-inline: 0; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); }
  .contact-bar a { min-height: var(--tap); display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--radius-md); font-size: 15px; font-weight: 700; }
  .bar-call { border: 2px solid var(--ink); color: var(--ink); }
  .bar-book { background: var(--teal); color: var(--white); }
  .site-footer { padding-bottom: calc(var(--bar-h) + var(--sp-4)); }
}

/* ---------- 18. SMALL SCREENS ---------- */
@media (max-width: 360px) {
  .hero-facts .rating-chip { display: none; }
  .brand-name { font-size: 15px; }
  .facts { gap: var(--sp-4); }
  .fact:last-child { padding-inline-start: var(--sp-4); }
  .detail-actions { display: none; }
}
/* Phones: compact, text-led rows so the page stays within the height limits. */
@media (max-width: 759px) {
  .section-head { margin-bottom: var(--sp-3); }
  .section-head .eyebrow, .booking-copy .eyebrow { display: none; }
  .booking-phone, .booking-preview { display: none; }
  .detail-actions { display: none; }
  .detail-block .hours-badge { display: none; }
  .logo-plaque { display: none; }
  .hero { padding-bottom: var(--sp-3); }
  .hero-line { font-size: 18px; margin-top: var(--sp-2); }
  .hero-fields { font-size: 15px; }
  .hero-actions { gap: var(--sp-2); margin-top: var(--sp-3); }
  .hero-actions .button { min-height: var(--tap); flex-basis: 200px; }
  .hero-facts { margin-top: var(--sp-3); gap: var(--sp-2); }
  .rating { padding-block: var(--sp-4); }
  .rating-grid { grid-template-columns: 1fr; gap: var(--sp-2); }
  .rating-copy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--sp-4); }
  .rating-copy h2 { font-size: 22px; }
  .rating .text-link { min-height: var(--tap); }
  .facts { gap: var(--sp-4); }
  .fact:last-child { padding-inline-start: var(--sp-4); }
  .service-photo img { aspect-ratio: 16 / 4; }
  .service-body { grid-template-columns: 40px minmax(0, 1fr) 48px; padding: var(--sp-3) var(--sp-4); align-items: center; }
  .service-body h3 { font-size: 18px; }
  .service-body p { font-size: 16px; }
  .programme-list { --li-pad: 6px; }
  .programme-list li { font-size: 16px; line-height: 1.45; }
  .service-body .service-ask { grid-column: 3; grid-row: 1 / span 3; justify-self: end; width: 48px; justify-content: center; border: 1px solid var(--line-teal); border-radius: 50%; }
  .service-ask span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .visit-photos { display: none; }
  .t-node { --t-dot: 40px; --t-pad: 6px; }
  .t-dot { font-size: 16px; }
  .gallery-item { flex-basis: 50vw; }
  .gallery-item img { aspect-ratio: 4 / 3; }
  .people li { padding-block: 6px; }
  .people b { font-size: 17px; }
  .people span { font-size: 14px; }
  .team-groups { gap: var(--sp-3); }
  .team-group h3 + .people + h3 { margin-top: var(--sp-3); }
  .community { padding-block: var(--sp-3); }
  .community-grid { gap: var(--sp-1); }
  .booking-panel { padding: var(--sp-3); }
  .pill-list { gap: 8px; }
  .booking-cta { margin-top: var(--sp-3); }
  .building img { aspect-ratio: 16 / 4; }
  .map-wrap { height: 150px; }
  .hours li { padding-block: 4px; }
  .location-details { gap: var(--sp-2); }
  .detail-block { padding-bottom: var(--sp-2); }
  .amenities li { padding-block: 2px; font-size: 14px; }
  .site-footer { padding-top: var(--sp-4); }
  .footer-copy { display: none; }
  .footer-grid { gap: var(--sp-2); }
  .footer-social .muted { display: none; }
  .social-link { width: var(--tap); justify-content: center; }
  .social-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .footer-social { gap: 0; }
  .footer-brand .logo-tile { width: 48px; }
  .footer-grid { grid-template-columns: auto 1fr; align-items: center; }
  .footer-brand .brand-name { display: none; }
  .footer-social { justify-content: flex-end; }
  .footer-note { grid-column: 1 / -1; }
  .people li { padding-block: 5px; }
}
@media (max-width: 420px) {
  :root { --section: 20px; --pad: 16px; --arch-h: min(29svh, 240px); }
}
@media (max-width: 360px) {
  :root { --section: 16px; }
  .hero-fields { display: none; }
  .service-photo { display: none; }
  .service-body { grid-template-columns: minmax(0, 1fr) 48px; }
  .service-icon { display: none; }
  .service-body h3, .service-body p { grid-column: 1; }
  .service-body .service-ask { grid-column: 2; }
  .pill { padding: 0 12px; font-size: 14px; }
  .pill-list { gap: 6px; }
  .community-grid p { font-size: 14px; }
  .people b { font-size: 16px; }
  .people li { padding-block: 3px; }
}

/* Desktop trims keep the page within the height limit. */
@media (min-width: 1024px) {
  .section-head { margin-bottom: var(--sp-5); }
  .service-main .service-photo img { max-height: 200px; }
  .service-body { padding: var(--sp-4) var(--sp-5); }
  .gallery { grid-template-rows: 16px 150px 150px; gap: var(--sp-3); }
  .visit-photos { margin-top: var(--sp-6); }
  .visit-photos img { height: 330px; }
  .visit-photos figure:last-child img { height: 290px; }
  .t-node { --t-pad: 10px; }
  .booking-panel { padding: var(--sp-5); }
  .hours li { padding-block: 5px; }
  .building img { max-height: 190px; }
  .map-wrap { height: 210px; }
  .amenities li { padding-block: 3px; }
  .team-groups { gap: var(--sp-7); }
}
/* Tablets: two-column hero and booking, denser gallery. */
@media (min-width: 760px) and (max-width: 1023px) {
  :root { --section: 28px; --arch-h: min(48svh, 420px); }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--sp-5); }
  .hero-media { justify-content: flex-end; }
  .booking-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-5); }
  .gallery-item { flex-basis: 30vw; max-width: 260px; }
  .gallery-item img { aspect-ratio: 1 / 1; }
  .visit-photos img { height: 150px; }
  .team-group-main .people li { padding-block: 6px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .gallery { grid-template-rows: 16px 130px 130px; }
  .t-node { --t-pad: 6px; }
  .service-main .service-photo img { max-height: 150px; }
  .visit-photos img { height: 280px; }
  .visit-photos figure:last-child img { height: 250px; }
}

/* ---------- 19. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .site-header, .site-header.is-hidden { transform: none !important; }
  .marquee-ready .marquee-toggle { display: none !important; }
  .marquee-ready .marquee-track { animation: none !important; transform: none !important; }
}
