/* Endurance Physiotherapy & Osteopathy
   ---------------------------------------------------------------------------
   A replica of the current Wix site's visual language,
rebuilt responsively.

   Values were read out of the live page's own markup,
not guessed:
     fonts    Poppins (self-hosted below),
a Futura revival under the SIL Open Font Licence. Her pages set the
   body copy in Futura LT W01 Book,
which is a Monotype licence held by Wix
   and not ours to serve. This is the closest face we can legally ship.
   One variable file covers 300 to 500. */
@font-face {
  font-family: Jost; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url(/assets/fonts/jost.woff2) format('woff2');
}

@font-face { font-family: Poppins; font-style: normal; font-weight: 300; font-display: swap;
  src: url(/assets/fonts/poppins-300.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/poppins-400.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/poppins-500.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/poppins-600.woff2) format('woff2'); }

:root {
  --ink:        #2F2E2E;
  --body:       #605E5E;
  --muted:      #727272;
  --faint:      #B0B0B0;
  --rule:       #E8E8E8;
  --rule-soft:  #EDEDED;
  --tint:       #F7F7F7;
  --orange:     #F56231;
  --orange-dk:  #C1441B;
  --navy:       #0C1858;
  --navy-bar:   #0C1C6F;
  --white:      #FFFFFF;

  --wrap: 980px;
  /* Body copy follows her Futura; the wordmark and headings stay Poppins,
     which is what her masthead and section headings use. */
  --body-size: 17px;
  --font:      Jost, 'Futura', 'Century Gothic', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-head: Poppins, 'Futura', 'Century Gothic', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
*::before,
*::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }}

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head); color: var(--ink); font-weight: 400; margin: 0 0 .6em; line-height: 1.25; letter-spacing: .01em; }
h1 { font-size: clamp(27px, 4.6vw, 37px); }
h2 { font-size: clamp(22px, 3.4vw, 27px); }
h3 { font-size: 19px; }
h4 { font-size: 17px; }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

a { color: var(--body); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
ul,
ol { padding-left: 1.2em; }
li { margin-bottom: .5em; }
strong { color: var(--ink); font-weight: 500; }
em { font-style: italic; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 28px 0; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--white); padding: 12px 20px; font-size: 14px;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* --- masthead: title left,
contact top right ---------------------------- */

.site-header { background: var(--white); padding-top: 28px; }
.header-inner {
  display: flex; flex-direction: column; gap: 14px;
  align-items: flex-start; justify-content: space-between;
}
.brand { text-decoration: none; display: block; line-height: 1.16; }

/* The contact block — top right on every page. */
.header-contact {
  display: flex; flex-direction: column; gap: 2px;
  font-size: 17px; line-height: 1.7; text-align: left;
}
.header-contact a { color: var(--body); text-decoration: none; }
.header-contact a:hover { color: var(--ink); text-decoration: underline; }

@media (min-width: 760px) {
  .header-inner { flex-direction: row; align-items: flex-start; gap: 24px; }
  .header-contact { text-align: right; padding-top: 6px; }}

/* --- navigation --------------------------------------------------------- */

.header-inner { padding-top: 22px; --wordmark: clamp(21px, 6.4vw, 34px); }
@media (min-width: 530px) {
  /* Wide enough to hold "ENDURANCE PHYSIOTHERAPY" on one line. */
  .header-inner { --wordmark: clamp(24px, 2.25vw, 34px); }
  .brand-line1,
.brand-line2 {
  font-family: var(--font-head); white-space: nowrap; }}

.brand { display: block; text-decoration: none; line-height: 1.12; }
.brand-line1,
.brand-line2 {
  display: block; font-weight: 600; letter-spacing: .005em; color: var(--navy);
  font-size: var(--wordmark);
}
.brand-line2 em { font-style: normal; color: var(--orange); }

.header-contact { display: flex; flex-direction: column; padding-top: 4px; }
.header-contact a {
  display: inline-flex; align-items: center; align-self: flex-start;
  min-height: 44px; color: var(--orange); text-decoration: none; font-weight: 500;
}
.header-contact a:hover { text-decoration: underline; }
.header-phone { font-size: clamp(17px, 1.45vw, 22px); }
.header-email { font-size: clamp(15px, 1.2vw, 18px); }

.header-badges { display: flex; align-items: center; gap: 14px; }
.header-badges img { display: block; height: auto; }
.badge-rc { width: clamp(64px, 7vw, 100px); }
.badge-t3 { width: clamp(64px, 7vw, 100px); }
.badge-obc { width: clamp(118px, 13vw, 186px); }

@media (min-width: 860px) {
  .header-inner {
    display: grid; grid-template-columns: max-content auto;
    align-items: start; column-gap: 24px;
  }
  /* The wordmark's first line sets the block's width; the phone and email
     tuck into the space beside the short second line,
as they do live. */
  .brand-block { position: relative; }
  .header-contact {
    position: absolute; right: 0; top: calc(var(--wordmark) * 1.12);
    padding-top: .12em; text-align: right;
  }
  /* Pointer devices do not need the 44px target,
and it would push the
     email below the wordmark. */
  .header-contact a { min-height: 0; align-self: flex-end; }
  .brand-line2 { padding-right: 190px; }
  .header-badges { justify-content: flex-end; }}

.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px; margin-top: 12px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy-bar); }

/* The menu is a solid navy bar with white type. */
.site-nav { display: none; margin-top: 16px; background: var(--navy-bar); }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.site-nav li { margin: 0; }
.site-nav a,
.sub-toggle {
  font-family: var(--font-head);
  display: block; width: 100%; text-align: left; box-sizing: border-box;
  padding: 13px 16px; font: inherit; font-size: 15px; letter-spacing: .02em;
  color: #FFFFFF; text-decoration: none; background: none; border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .18); cursor: pointer;
}
.site-nav a:hover,
.sub-toggle:hover,
.site-nav a[aria-current="page"] { background: rgba(255, 255, 255, .13); }
/* A cell with a submenu: the label stays a link,
the chevron is its own
   button,
and on a phone the children simply list beneath it. */
.has-sub { display: flex; flex-wrap: wrap; align-items: stretch; }
.has-sub > a { flex-grow: 1; }
.sub-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 48px; min-height: 44px; padding: 0; flex-shrink: 0;
  background: none; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .18);
  color: #FFFFFF; cursor: pointer;
}
.sub-toggle:hover { background: rgba(255, 255, 255, .13); }
.sub-toggle svg { transition: transform .15s ease; }
.has-sub.is-open > .sub-toggle svg { transform: rotate(180deg); }

.site-nav .sub { display: none; width: 100%; background: rgba(0, 0, 0, .2); }
.has-sub.is-open > .sub { display: block; }
.site-nav .sub a { padding-left: 32px; font-size: 14px; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: block !important; margin-top: 22px; }
  .site-nav ul { flex-direction: row; align-items: stretch; }
  .site-nav > ul > li { flex-grow: 1; display: flex; }
  .site-nav > ul > li + li { border-left: 1px solid rgba(255, 255, 255, .22); }
  .site-nav a {
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 9px 12px; font-size: 15px; border-bottom: 0;
  }
  .sub-toggle { width: 26px; min-height: 0; padding-right: 8px; border-bottom: 0; }
  .has-sub { flex-wrap: nowrap; position: relative; }
  .has-sub > a { padding-right: 2px; }

  .has-sub.is-open > .sub,
.has-sub:hover > .sub,
.has-sub:focus-within > .sub {
    display: block; position: absolute; left: 0; top: 100%; z-index: 20;
    width: auto; min-width: 100%; white-space: nowrap;
    background: var(--navy-bar); box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
  }
  .site-nav .sub a { justify-content: flex-start; text-align: left; padding: 11px 18px; }}

/* --- page title --------------------------------------------------------- */

.page-title { padding: 40px 0 8px; background: var(--white); }
.page-title h1 { margin-bottom: .35em; }
.page-title .standfirst { font-size: 19px; color: var(--body); max-width: 62ch; }
.eyebrow {
  font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 10px;
}

/* --- sections ----------------------------------------------------------- */

section { padding: 34px 0; }

.grid { display: grid; gap: 28px; }
/* A grid item's automatic minimum is its min-content width,
so one long
   unbreakable token (the booking URL) would otherwise widen the whole page. */
.grid > * { min-width: 0; }
@media (min-width: 680px) { .cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }}
@media (min-width: 900px) {
  .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }}

/* --- cards: flat,
ruled,
no shadows (as the live site) ------------------- */

.card { background: var(--white); border: 1px solid var(--rule); padding: 24px; }
.card h3 { margin-bottom: .45em; }
.card-teal,
.card-clay,
.card-ochre { background: var(--tint); }

/* --- buttons: flat rectangles {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 13px 26px; font: inherit; font-size: 17px;
  text-decoration: none; text-align: center; cursor: pointer;
  border: 1px solid var(--ink); background: var(--white); color: var(--ink);
}

/* --- awards strip ------------------------------------------------------- */

.awards { padding: 34px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.awards-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 40px; }
.awards img { height: 96px; width: auto; }
.awards .badge-wide img { height: 44px; }
.awards p { margin: 0; font-size: 17px; color: var(--body); text-align: center; flex-basis: 100%; }

/* --- quotes ------------------------------------------------------------- */

blockquote { margin: 0; }
.site-footer {
  background: var(--white); border-top: 1px solid var(--rule-soft);
  margin-top: 60px; padding: 26px 0 34px; text-align: center;
}
.footer-bottom { margin: 0; font-size: 14px; color: var(--muted); }
.letter .signoff .name { font-size: 19px; color: var(--ink); }

/* --- replica layouts ----------------------------------------------------
   The live pages are a centred column of plain prose under a heading,
and a
   home page that is one picture,
two lines of text and a row of badges.
   ------------------------------------------------------------------------ */

.home-hero { padding: 26px 0 0; }
.home-badges .badge-wide img { height: 52px; }
@media (min-width: 760px) {
  .home-badges .badge-wide img { height: 52px; }}

.home-award {
  margin: 0; padding: 46px 0 8px; text-align: center;
  font-size: 19px; line-height: 1.6; color: var(--body);
}

/* prose column — the shape of every inner page on the live site */
.prose { max-width: 720px; }
.prose p { font-size: 17px; line-height: 1.8; }
.prose h2 { font-size: 27px; margin: 1.5em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose .name { font-size: 27px; margin: 1.4em 0 .15em; letter-spacing: .04em; }
.prose .creds { font-size: 17px; color: var(--muted); margin-bottom: 1.4em; }

.testimonials blockquote {
  margin: 0 0 34px; padding: 0 0 30px; border-bottom: 1px solid var(--rule);
}
.testimonials blockquote:last-child { border-bottom: 0; }
.testimonials blockquote p { font-size: 17px; line-height: 1.8; margin: 0 0 1em; }
.testimonials footer { font-size: 14px; color: var(--muted); }

/* --- home hero: the copy and the portrait sit on the picture ------------ */
.hero-frame { position: relative; }
.hero-frame img { display: block; width: 100%; height: auto; }

.hero-overlay { position: absolute; inset: 0; padding: 3% 4%; }
.hero-located {
  margin: 0; color: var(--ink); font-weight: 400;
  font-size: clamp(19px, 3.1vw, 38px);
}
.hero-book {
  margin: clamp(10px, 2.4vw, 30px) 0 0; color: #FFFFFF;
  font-size: clamp(13px, 1.75vw, 21px);
}
.hero-clinic { margin: .3em 0 0; font-size: clamp(15px, 2.2vw, 27px); line-height: 1.3; }
.hero-clinic a { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.hero-clinic a:hover { color: #FFFFFF; text-decoration-thickness: 2px; }

.hero-portrait { margin-top: clamp(10px, 2.6vw, 34px); width: clamp(84px, 17%, 200px); }
.hero-portrait img { width: 100%; height: auto; }

/* Below ~620px the picture is too short to hold the words legibly,
so they
   drop underneath it and the ink colours flip back to the page. */
@media (max-width: 620px) {
  .hero-overlay { position: static; padding: 18px 0 0; }
  .hero-book { color: var(--body); }
  .hero-clinic a { color: var(--orange); }
  .hero-portrait { width: 150px; }
}

.home-award { text-align: center; font-size: 19px; line-height: 1.6; color: var(--body); padding-top: 34px; }

/* Document links are a primary action on the credentials and research
   pages,
so they carry a full touch target on small screens. */
@media (max-width: 899px) {
  .doc-link { display: inline-flex; align-items: center; min-height: 44px; }
}

/* The 404's card headings are the whole point of the page,
so their links
   carry a full touch target where there is no pointer. */
@media (max-width: 899px) {
  .card h3 a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* The booking address is printed in full,
as the live page prints it,
and a
   URL is one unbreakable token — let it wrap rather than push the page wide. */
.prose a,
.visit-grid a { overflow-wrap: break-word; }

/* --- contact page -------------------------------------------------------
   Measured off the live page: a 26px grey heading over a full-width rule,
then a two-column form about 540px wide — three stacked inputs on the
   left,
the message box on the right,
and Send under its right edge. */
.contact-heading {
  font-family: var(--font-head);
  margin: 0 0 16px; padding: 30px 0 14px;
  font-size: 26px; font-weight: 400; letter-spacing: .02em; color: var(--body);
  border-bottom: 1px solid var(--rule);
}

.contact-form { max-width: 540px; }
.contact-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.contact-col { display: grid; gap: 7px; align-content: start; }

/* :not() keeps this off the honeypot — a bare `.contact-form input` outranks
   `.visually-hidden` on specificity and would give it width:100%. */
.contact-form input:not(.visually-hidden),
.contact-form textarea {
  width: 100%; box-sizing: border-box; display: block;
  padding: 8px 10px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--white); border: 1px solid #9F9F9E; border-radius: 0;
}
.contact-form input:not(.visually-hidden) { height: 36px; }
.contact-form textarea { height: 120px; resize: vertical; }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.contact-form ::placeholder { color: var(--muted); opacity: 1; }

.contact-send { display: flex; justify-content: flex-end; max-width: 540px; margin-top: 5px; }
.contact-send button {
  padding: 9px 15px; font: inherit; font-size: 14px;
  color: var(--ink); background: #9F9F9E; border: 0; cursor: pointer;
}
.contact-send button:hover { background: #8C8C8B; }

/* One column on a phone,
and a full touch target on the button. */
@media (max-width: 599px) {
  .contact-cols { grid-template-columns: 1fr; gap: 7px; }
  .contact-send button { min-height: 44px; }
}

/* --- page photographs ---------------------------------------------------
   Her pages set these at roughly half the column width,
so they sit beside
   the copy on a desktop and go full width on a phone. */
.page-figure { margin: 26px 0; }
.page-figure img { display: block; width: 100%; height: auto; }
@media (min-width: 700px) {
  .page-figure { max-width: 460px; }}

/* --- testimonials -------------------------------------------------------
   Her page runs a narrow rail of photographs down the left with the quotes
   beside them. Measured: rail about a quarter of the column,
a gap of six
   per cent,
the quotes taking the rest. Text is her navy,
attributions the
   orange. */
.testimonials { color: #2B3054; }
.testi-row { display: grid; gap: 18px; margin-bottom: 46px; }
.testi-row figure { margin: 0; }
.testi-row figure img { display: block; width: 100%; height: auto; }
.testi-text p { margin: 0 0 1.1em; font-size: 17px; line-height: 1.75; }
.testi-text p:last-child { margin-bottom: 0; }
.testi-by { color: var(--orange); }
p.testi-by { margin-top: -.5em; }

@media (min-width: 760px) {
  .testi-row { grid-template-columns: 25% 1fr; column-gap: 6%; align-items: start; }
  .testi-row { margin-bottom: 58px; }}

/* The two ultrasound scans print at one height,
widths following their own
   proportions,
which is how her page shows them. */
.scan-pair { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; margin-top: 30px; }
.scan-pair figure { margin: 0; min-width: 260px; }
.scan-pair img { display: block; width: 100%; height: auto; }

/* --- services: three columns,
as her page has ---------------------------- */
.page-title-hot {
  margin: 30px 0 0; padding-bottom: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: clamp(30px, 3.6vw, 46px);
  color: var(--orange); border-bottom: 2px solid var(--ink);
}
.services-intro, .about-intro { margin: 26px 0 40px; }

.services-cols { display: grid; gap: 40px; }
@media (min-width: 820px) {
  .services-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; }}
.service h2 {
  margin: 0 0 18px; text-align: center; font-weight: 600;
  font-size: clamp(21px, 2.1vw, 27px);
}
.service h2 .ink { color: var(--navy); }
.service h2 .hot { color: var(--orange); }
.service figure { margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.service figure img { display: block; width: 100%; height: auto; }
.service p { text-align: center; }

/* --- one face,
one size,
one weight for every piece of body copy --------- */
body,
p,
li,
dd,
dt,
td,
th,
figcaption,
blockquote,
.prose p,
.prose li,
.testi-text p,
.services-intro,
.service p,
.home-award {
  font-family: var(--font);
  font-size: var(--body-size);
  font-weight: 400;
}
/* --- about: photograph left, name and bio right ------------------------- */
.about-cols { display: grid; gap: 28px; }
@media (min-width: 820px) {
  .about-cols { grid-template-columns: 36% 1fr; column-gap: 46px; align-items: start; }
}
.about-cols figure { margin: 0; }
.about-text { min-width: 0; }
.about-cols figure img { display: block; width: 100%; height: auto; }
.about-name {
  margin: 0; font-family: var(--font-head); font-weight: 600; color: var(--orange);
  font-size: clamp(26px, 2.6vw, 34px); letter-spacing: .01em;
}
.about-creds {
  margin: 2px 0 14px; padding-bottom: 16px; border-bottom: 1px solid var(--rule);
  font-family: var(--font-head); font-weight: 600; color: var(--navy);
  font-size: clamp(16px, 1.5vw, 19px);
}

/* --- map and hours: large grey type in two columns, as her page has ------ */
.visit { color: var(--body); }
.visit-grid { display: grid; gap: 30px; }
@media (min-width: 860px) {
  .visit-grid { grid-template-columns: 1fr 1fr; column-gap: 48px; align-items: start; }
}
.visit-left, .visit-right { min-width: 0; }
.visit-h { margin: 18px 0 0; font-size: clamp(24px, 3vw, 38px); font-weight: 300; line-height: 1.25; }
.visit-hours-h { margin-top: 34px; }
.visit-hours { list-style: none; margin: 18px 0 0; padding: 0; }
.visit-hours li { font-size: clamp(21px, 2.5vw, 32px); font-weight: 300; line-height: 1.55; }
.visit-hours span { font-size: .62em; }
.visit-clinic { margin: 18px 0 0; text-align: center; font-size: clamp(18px, 2.2vw, 29px); font-weight: 300; line-height: 1.35; }
.visit-clinic a { color: inherit; text-decoration: none; }
.visit-book { margin: 26px 0 0; text-align: center; font-size: clamp(16px, 1.9vw, 26px); font-weight: 300; }
.visit-book a { color: inherit; }
.visit-map { margin-top: 26px; }
.visit-map iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; }

/* --- si belt: the photograph beside the instructions --------------------- */
.sibelt { color: var(--body); }
.sibelt-grid { display: grid; gap: 30px; padding-top: 34px; }
@media (min-width: 820px) {
  .sibelt-grid { grid-template-columns: 46% 1fr; column-gap: 56px; align-items: start; }
}
.sibelt-grid figure { margin: 0; }
.sibelt-grid figure img { display: block; width: 100%; height: auto; border: 6px solid #EDEDED; box-sizing: border-box; }
.sibelt-text { min-width: 0; }
.sibelt-text h1 {
  margin: 0 0 30px; font-family: var(--font); font-weight: 400;
  font-size: clamp(20px, 2.1vw, 27px); text-transform: uppercase;
  letter-spacing: .02em; color: var(--body);
}
.sibelt-text p { line-height: 2.1; }

.contact-fallback { margin-top: 26px; }
