/* 4PX Performance — site styles
   Layout idea: the logo's navy as the floor, condensed uppercase headlines,
   logo blue for brand and clinical, logo green as the highlight.
   Green = main actions and performance. Blue = clinical (physio, rehab).
   Change the brand by editing the tokens in :root only. */
:root {
  color-scheme: dark;
  --bg: #042536;            /* brand navy */
  --surface: #06304a;
  --surface-2: #0c3d5b;
  --line: #1b4f6d;
  --text: #f2f6f9;
  --muted: #a9bdcb;
  --silver: #c2c3c5;        /* logo silver */
  --brand: #0090cf;         /* logo blue */
  --brand-deep: #006fa6;
  --perform: #62ff00;       /* logo green: highlights and main actions */
  --perform-ink: #06230a;
  --rehab: #37a9e6;         /* lighter logo blue: clinical actions */
  --rehab-ink: #001824;
  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: 65ch; }
ul { margin: 0; padding-left: 1.1em; }
li { margin-bottom: .35em; }
:focus-visible { outline: 3px solid var(--perform); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: .01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.8rem, 8vw, 5.4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: .02em; }
.lede { font-size: 1.2rem; color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 600;
  font-size: 1rem;
  color: var(--perform);
  margin: 0 0 .75rem;
}
.eyebrow.rehab { color: var(--rehab); }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
section.tight { padding: 2rem 0; }
section.band { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 2rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: .06em;
  font-weight: 700; font-size: 1.1rem; line-height: 1.1;
  padding: .85em 1.3em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-perform { background: var(--perform); color: var(--perform-ink); }
.btn-rehab { background: var(--rehab); color: var(--rehab-ink); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.textlink { color: var(--rehab); font-weight: 600; text-underline-offset: 3px; }
.textlink.rehab { color: var(--rehab); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(4, 37, 54, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 68px; }
.brand {
  font-family: var(--font-display); font-weight: 800; font-size: 1.9rem;
  letter-spacing: .02em; text-decoration: none; line-height: 1; white-space: nowrap;
}
.brand img { height: 46px; width: auto; }
.site-footer .brand img { height: auto; width: min(260px, 100%); }
.nav { display: flex; gap: 1.25rem; margin-left: auto; }
.nav a {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em;
  font-weight: 600; font-size: 1.02rem; text-decoration: none; color: var(--muted);
  padding: .4rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--perform); }
.section-head h2::after, .page-hero h1::after { content: ""; display: block; width: 72px; height: 5px; background: var(--perform); margin-top: .9rem; }
.header-cta { padding: .6em 1em; font-size: 1rem; }
.nav-toggle {
  display: none; margin-left: auto; background: none; color: var(--text);
  border: 2px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em;
  font-weight: 700; font-size: 1rem; padding: .45em .8em; cursor: pointer;
}
@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: var(--bg);
    border-bottom: 1px solid var(--line); padding: .5rem 20px 1rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: 1.2rem; }
}

/* Mobile action bar: call + book, always reachable */
.action-bar { display: none; }
@media (max-width: 940px) {
  .action-bar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(4, 37, 54, .97); border-top: 1px solid var(--line);
  }
  .action-bar .btn { font-size: 1rem; padding: .8em .6em; }
  body { padding-bottom: 76px; }
}

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero h1 em { font-style: normal; color: var(--brand); display: block; }
.hero .note { border-left: 3px solid var(--rehab); padding-left: .9rem; margin-top: 1.5rem; color: var(--muted); font-size: .95rem; }
.page-hero { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.2rem); }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } }

/* Photo frame: striped panel shows if the image has not been added yet */
.photo {
  margin: 0; border-radius: var(--radius); overflow: hidden; position: relative;
  aspect-ratio: 4 / 5; border: 1px solid var(--line);
  background:
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(0, 144, 207, .16) 22px 24px),
    linear-gradient(160deg, var(--surface-2), var(--surface));
}
.photo.wide { aspect-ratio: 3 / 2; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption {
  position: absolute; left: 0; bottom: 0; padding: .5rem .8rem;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em;
  font-size: .85rem; background: rgba(4, 37, 54, .85);
}

/* Fact strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { background: var(--surface); padding: 1.3rem 1.2rem; }
.facts b { color: var(--silver); display: block; font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.facts span { color: var(--muted); font-size: .95rem; }
@media (max-width: 720px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* Grids and cards */
.grid { display: grid; gap: 1.25rem; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem;
}
.band .card { background: var(--bg); }
.card p { margin: 0; color: var(--muted); }
.card h3 { margin: 0; }
.team { align-items: start; }
.card .team-photo { display: block; width: calc(100% + 3rem); max-width: none; margin: -1.5rem -1.5rem .4rem; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.card .btn, .card .textlink { margin-top: auto; align-self: flex-start; }
.card.perform { border-top: 4px solid var(--perform); }
.card.rehab { border-top: 4px solid var(--rehab); }
.card ul { color: var(--muted); }

/* Two doors */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.door { padding: 2rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: .75rem; }
.door.perform { border-left: 6px solid var(--perform); }
.door.rehab { border-left: 6px solid var(--rehab); }
.door p { color: var(--muted); margin: 0; }
.door .btn { align-self: flex-start; margin-top: .5rem; }
@media (max-width: 720px) { .doors { grid-template-columns: 1fr; } }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; list-style: none; padding: 0; }
.steps li { counter-increment: step; margin: 0; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.band .steps li { background: var(--bg); }
.steps li::before {
  /* step numbers in logo blue */
  content: "0" counter(step); display: block;
  font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: 1;
  color: var(--brand); margin-bottom: .5rem; font-variant-numeric: tabular-nums;
}
.steps h3 { margin-bottom: .4rem; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

/* Price */
.price { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.tag { display: inline-block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; font-weight: 600; padding: .2em .6em; border-radius: 3px; background: var(--surface-2); color: var(--muted); align-self: flex-start; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: 1rem; background: var(--surface-2); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 600; }
td.num { font-weight: 600; white-space: nowrap; }

/* Lists of chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.chips li { margin: 0; padding: .4em .8em; border: 1px solid var(--line); border-radius: 999px; font-size: .95rem; color: var(--muted); background: var(--surface); }

/* FAQ */
details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 0 1.2rem; }
details + details { margin-top: .6rem; }
summary { cursor: pointer; padding: 1rem 0; font-weight: 600; }
details p { color: var(--muted); }

/* Hours */
.hours { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1.5rem; margin: 0; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }

/* Form */
form { display: grid; gap: 1rem; }
label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .8rem; width: 100%;
}
textarea { min-height: 8rem; resize: vertical; }
.form-note { color: var(--muted); font-size: .9rem; margin: 0; }
.map { border: 1px solid var(--line); border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 10; background: var(--surface); }

/* CTA band */
.cta { background: linear-gradient(100deg, var(--brand-deep), var(--brand)); color: #fff; border-top: 5px solid var(--perform); }
.cta .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.cta h2 { margin: 0; }
.cta p { margin: .4rem 0 0; }
.cta .btn { background: var(--perform); color: var(--perform-ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 2rem; font-size: .95rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h3 { font-size: 1.1rem; color: var(--text); letter-spacing: .08em; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .85rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Partners: logos sit on a white tile so any logo colour reads on the navy page */
.partner-groups { display: grid; grid-template-columns: 2fr 3fr 1fr; gap: 2rem; }
.partner-groups h3 { font-size: 1.05rem; letter-spacing: .12em; color: var(--muted); margin-bottom: .9rem; min-height: 2.1em; display: flex; align-items: flex-end; }
.partners { display: flex; flex-wrap: wrap; gap: .75rem; }
.partner {
  flex: 1 1 150px; min-height: 104px; padding: .9rem 1rem;
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em;
  font-weight: 600; font-size: 1.05rem; line-height: 1.15; text-decoration: none; color: var(--text);
}
.partner.has-logo { background: #fff; border-color: #fff; padding: .6rem .9rem; }
.partner img { max-height: 84px; width: auto; max-width: 100%; object-fit: contain; }
a.partner:hover { border-color: var(--perform); }
@media (max-width: 940px) { .partner-groups { grid-template-columns: 1fr; } }

/* Photo strip: sideways scroll, snaps one photo at a time, no carousel controls */
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 24vw, 300px); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(20px, calc((100vw - var(--wrap)) / 2));
  padding: 0 max(20px, calc((100vw - var(--wrap)) / 2)) 14px;
  scrollbar-color: var(--line) transparent;
}
.strip figure { margin: 0; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--line); background: var(--surface); }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.strip:focus-visible { outline-offset: -3px; }

/* Photo band: full-width photo behind text, darkened on the text side so it stays readable */
.photo-band { position: relative; isolation: isolate; padding: clamp(4rem, 10vw, 7rem) 0; overflow: hidden; }
.photo-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.photo-band > video, .page-hero > video, .hero > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; background: var(--bg); }
.photo-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(4, 37, 54, .94) 0%, rgba(4, 37, 54, .82) 45%, rgba(4, 37, 54, .35) 100%);
}
.photo-band-text { max-width: 36rem; }
.photo-band-text p:not(.eyebrow) { color: var(--text); font-size: 1.1rem; }
@media (max-width: 720px) { .photo-band::before { background: rgba(4, 37, 54, .84); } }

/* Home hero with a background video */
.hero.has-video { position: relative; isolation: isolate; overflow: hidden; padding: clamp(4.5rem, 10vw, 7.5rem) 0 clamp(4rem, 9vw, 6.5rem); }
.hero.has-video::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(4, 37, 54, .95) 0%, rgba(4, 37, 54, .85) 45%, rgba(4, 37, 54, .4) 100%);
}
.hero-text { max-width: 38rem; }
@media (max-width: 720px) { .hero.has-video::before { background: rgba(4, 37, 54, .84); } }

/* Page hero with a background video (Screening): same navy fade as the photo bands */
.page-hero.has-video { position: relative; isolation: isolate; overflow: hidden; padding: clamp(4rem, 9vw, 6.5rem) 0 clamp(3.5rem, 8vw, 5.5rem); }
.page-hero.has-video::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(4, 37, 54, .95) 0%, rgba(4, 37, 54, .85) 45%, rgba(4, 37, 54, .4) 100%);
}
.page-hero-text { max-width: 36rem; }
@media (max-width: 720px) { .page-hero.has-video::before { background: rgba(4, 37, 54, .84); } }

/* Visit walkthrough: photo and words per step, numbered */
.visit { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; counter-reset: visit; }
.visit li { counter-increment: visit; margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.visit .photo { border: 0; border-radius: 0; aspect-ratio: 4 / 3; }
.visit li > div { padding: 1.25rem 1.4rem 1.5rem; }
.visit h3::before { content: "0" counter(visit) "  "; color: var(--perform); white-space: pre; }
.visit p { color: var(--muted); margin: 0; }
@media (max-width: 720px) { .visit { grid-template-columns: 1fr; } }
