/* All Backs Physiotherapy, Hemel Hempstead
   Palette sampled from the clinic's own silver-fern logo: gold #d8a830 on dark olive #303000.
   Gold is never used as text on the light surface (1.96:1) - --gold-ink carries that job. */

:root {
  --ink:       #14170E;
  --ink-soft:  #232717;
  --ink-line:  #363A28;
  --bone:      #F5F2E9;
  --paper:     #FFFDF7;
  --gold:      #D8A830;
  --gold-ink:  #8A6510;
  --sage:      #B9BCA8;
  --stone:     #55583F;
  --rule:      #DCD7C6;

  --display: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --body:    'Newsreader', Georgia, 'Times New Roman', serif;
  --util:    'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* one fluid step feeds the section rhythm; individual bands then vary from it on purpose */
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --wrap:   72rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.0625rem, 0.42vw + 0.96rem, 1.1875rem);
  line-height: 1.62;
  font-synthesis-weight: none;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

::selection { background: var(--gold); color: var(--ink); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* the masthead is sticky, so an anchor jump would otherwise land under it */
section[id] { scroll-margin-top: 6.5rem; }
@media (max-width: 54rem) { section[id] { scroll-margin-top: 8.5rem; } }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 50;
  background: var(--gold); color: var(--ink);
  font-family: var(--util); font-weight: 600; font-size: 0.875rem;
  padding: 0.7rem 1.1rem; border-radius: 0 0 4px 0;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
.band-treat :focus-visible, .band-steps :focus-visible, .band-treatments :focus-visible,
.band-team :focus-visible, .band-prices :focus-visible, .band-visit :focus-visible {
  outline-color: var(--gold-ink);
}

/* ---------- shared type ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--util);
  font-weight: 600;
  font-stretch: 100%;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.1rem;
}
.eyebrow-dark { color: var(--gold-ink); }

.section-lede, .note, .group-note {
  color: var(--stone);
  max-width: 44ch;
}

.note {
  font-size: 0.9375rem;
  line-height: 1.62;
  max-width: 62ch;
  border-top: 1px solid var(--rule);
  padding-top: 1.15rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border-radius: 4px;
  font-family: var(--util);
  font-weight: 600;
  font-stretch: 100%;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn-gold  { background: var(--gold); color: var(--ink); }
.btn-gold:hover  { background: #EBBB45; }

.btn-line  { border-color: var(--ink-line); color: var(--bone); }
.btn-line:hover  { border-color: var(--sage); background: var(--ink-soft); }

.btn-ink   { background: var(--ink); color: var(--bone); }
.btn-ink:hover   { background: #2C3120; }

.btn-quiet { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn-quiet:hover { border-color: var(--gold-ink); color: var(--gold-ink); }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ---------- masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem var(--gutter);
  background: var(--ink);
  border-bottom: 1px solid var(--ink-line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex: 0 0 auto;
  min-height: 2.75rem;   /* tap target */
  padding-block: 0.35rem;
}

.fern { width: 30px; height: 30px; flex: 0 0 auto; }
.fern-stem { stroke: var(--gold); }
.fern-leaf ellipse { fill: var(--gold); }

.wordmark { display: block; line-height: 1; }
.wordmark-name {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 118%;
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bone);
}
.wordmark-sub {
  display: block;
  font-family: var(--util);
  font-weight: 500;
  font-stretch: 100%;
  font-size: 0.5625rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.28rem;
}

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  font-family: var(--util);
  font-weight: 500;
  font-stretch: 100%;
  font-size: 0.875rem;
  color: var(--sage);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1.5px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.nav a:hover { color: var(--bone); border-bottom-color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .nav a { transition: none; } }

.masthead-call {
  flex: 0 0 auto;
  display: block;
  text-decoration: none;
  text-align: right;
  padding: 0.35rem 0;
  min-height: 2.75rem;
}
.masthead-call-label {
  display: block;
  font-family: var(--util);
  font-weight: 500;
  font-stretch: 100%;
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
}
.masthead-call-number {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 105%;
  font-size: 1.0625rem;
  color: var(--gold);
  margin-top: 0.15rem;
}
.masthead-call:hover .masthead-call-number { color: #EBBB45; }

/* ---------- hero ---------- */

.hero {
  background: var(--ink);
  color: var(--bone);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: stretch;
}

.hero-text {
  padding: clamp(3rem, 6vw, 5.75rem) clamp(1.25rem, 4vw, 4rem) clamp(3rem, 6vw, 5.25rem) var(--gutter);
  max-width: 40rem;
  justify-self: end;
  width: 100%;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.1vw, 3.55rem);
  max-width: 15ch;
  margin-bottom: 1.5rem;
}

.lede {
  font-size: clamp(1.0625rem, 0.5vw + 0.95rem, 1.25rem);
  color: var(--sage);
  max-width: 46ch;
  margin: 0 0 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.facts {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--ink-line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem 2rem;
}
.facts li { display: block; }
.facts strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 112%;
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1.1;
}
.facts span {
  display: block;
  font-family: var(--util);
  font-weight: 400;
  font-stretch: 100%;
  font-size: 0.8125rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--sage);
  margin-top: 0.3rem;
}

.hero-figure { position: relative; overflow: hidden; min-height: 22rem; }
.hero-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}
.hero-figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(20, 23, 14, 0.45) 22%, rgba(20, 23, 14, 0) 55%);
}

/* ---------- what we treat ---------- */

.band-treat { background: var(--bone); padding-block: clamp(3.5rem, 7vw, 6rem); }

.band-treat h2 {
  font-size: clamp(1.7rem, 2.9vw, 2.5rem);
  max-width: 20ch;
  margin-bottom: 1rem;
}

.conditions {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}
.conditions li {
  font-family: var(--util);
  font-weight: 500;
  font-stretch: 100%;
  font-size: 0.9375rem;
  letter-spacing: 0.005em;
  padding: 0.85rem 1.25rem 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
  padding-left: 1.4rem;
}
.conditions li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.32rem;
  width: 0.5rem;
  height: 1.5px;
  background: var(--gold-ink);
}

/* ---------- first appointment ---------- */

.band-steps {
  background: var(--paper);
  padding-block: clamp(3.5rem, 7.5vw, 6.75rem);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.band-steps h2 {
  font-size: clamp(1.6rem, 2.7vw, 2.3rem);
  max-width: 22ch;
}

.steps {
  list-style: none;
  counter-reset: none;
  margin: 3rem 0 2.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(1.75rem, 3.5vw, 3.25rem);
}
.step-no {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 118%;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  color: var(--gold-ink);
  padding-bottom: 0.85rem;
  margin-bottom: 0.95rem;
  border-bottom: 2px solid var(--gold-ink);
  width: 2.4rem;
}
.steps h3 { font-size: 1.1875rem; margin-bottom: 0.5rem; }
.steps p { margin: 0; color: var(--stone); font-size: 1rem; }

/* ---------- treatments ---------- */

.band-treatments { background: var(--bone); padding-block: clamp(3.5rem, 7vw, 6rem); }
.band-treatments h2 { font-size: clamp(1.7rem, 2.9vw, 2.5rem); margin-bottom: 2.5rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.6rem 1.5rem 1.75rem;
}
.card-wide { grid-column: 1 / -1; padding: 2rem 1.9rem 2.1rem; background: var(--ink); border-color: var(--ink); }
.card-wide h3 { color: var(--gold); }
.card-wide p { color: var(--sage); max-width: 62ch; font-size: 1.0625rem; }

.card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.7rem;
  letter-spacing: -0.005em;
}
.card-wide h3 { font-size: 1.4375rem; }
.card p { margin: 0; font-size: 1rem; color: var(--stone); }

/* ---------- traction, the signature band ---------- */

.band-traction { background: var(--ink); color: var(--bone); }

.traction-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}

.traction-text {
  padding: clamp(3.25rem, 6.5vw, 6rem) clamp(1.25rem, 4vw, 4rem) clamp(3.25rem, 6.5vw, 6rem) var(--gutter);
  max-width: 40rem;
  justify-self: end;
}

.bignum {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 118%;
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 1.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.bignum span {
  font-size: clamp(3.75rem, 8vw, 6rem);
  color: var(--gold);
  letter-spacing: -0.04em;
}

.analogy {
  margin: 0 0 1.75rem;
  padding-left: 1.4rem;
  border-left: 2px solid var(--gold);
}
.analogy p {
  font-family: var(--body);
  font-style: italic;
  font-size: clamp(1.1875rem, 1.4vw, 1.4375rem);
  line-height: 1.42;
  margin: 0 0 0.85rem;
  color: var(--bone);
}
.analogy footer {
  font-family: var(--util);
  font-weight: 500;
  font-stretch: 100%;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--sage);
}

.traction-text > p { color: var(--sage); max-width: 48ch; }

.traction-quote {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink-line);
  font-style: italic;
}
.traction-quote span {
  display: block;
  font-family: var(--util);
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-top: 0.6rem;
}

/* the source frame is 3:2 – matching it means the traction equipment is shown whole
   rather than cropped down to a slab of wall */
.traction-figure {
  margin: 0;
  align-self: center;
  position: relative;
  aspect-ratio: 3 / 2;
}
.traction-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

/* ---------- team ---------- */

.band-team { background: var(--bone); padding-block: clamp(3.5rem, 7vw, 6.25rem); }
.band-team h2 { font-size: clamp(1.7rem, 2.9vw, 2.5rem); margin-bottom: 2.75rem; max-width: 20ch; }

.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
.person {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.75rem 1.6rem 1.85rem;
}
.person-lead {
  grid-column: 1 / -1;
  border-top: 3px solid var(--gold-ink);
  padding: 2.1rem 1.9rem 2rem;
}
.person h3 { font-size: 1.3125rem; margin-bottom: 0.25rem; }
.person-lead h3 { font-size: 1.625rem; }
.role {
  font-family: var(--util);
  font-weight: 600;
  font-stretch: 100%;
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 1.05rem;
}
.person p { font-size: 1rem; color: var(--stone); margin: 0 0 0.9rem; max-width: 62ch; }
.person p:last-child { margin-bottom: 0; }

.regs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
}
.regs li {
  font-family: var(--util);
  font-weight: 500;
  font-stretch: 100%;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  background: var(--bone);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.4rem 0.7rem;
}
.regs span { color: var(--gold-ink); font-weight: 600; letter-spacing: 0.08em; }

/* ---------- prices ---------- */

.band-prices {
  background: var(--paper);
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--rule);
}
.band-prices h2 { font-size: clamp(1.7rem, 2.9vw, 2.5rem); margin-bottom: 2.5rem; }

.price-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: clamp(1.75rem, 3.5vw, 3rem);
  margin-bottom: 2.5rem;
}
.price-group h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  font-stretch: 118%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 0.35rem;
}
.group-note { font-size: 0.875rem; margin: 0.75rem 0 0; }

.price-list { margin: 0; }
.price-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.35rem 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 2px;
}
.price-list dt {
  font-family: var(--util);
  font-weight: 500;
  font-stretch: 100%;
  font-size: 0.9375rem;
  line-height: 1.4;
}
.price-list dt span {
  display: block;
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--stone);
  margin-top: 0.2rem;
}
.price-list dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 112%;
  font-size: 1.25rem;
  color: var(--gold-ink);
  white-space: nowrap;
}

.price-cta, .visit-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ---------- patients ---------- */

.band-words {
  background: var(--ink-soft);
  color: var(--bone);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.band-words h2 { font-size: clamp(1.6rem, 2.7vw, 2.25rem); margin-bottom: 2.5rem; max-width: 24ch; }

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
}
.quotes blockquote { margin: 0; padding-top: 1.35rem; border-top: 2px solid var(--gold); }
.quotes p {
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.55;
  margin: 0 0 1rem;
  color: var(--bone);
}
.quotes footer {
  font-family: var(--util);
  font-weight: 600;
  font-stretch: 100%;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- visit ---------- */

.band-visit { background: var(--bone); padding-block: clamp(3.5rem, 7vw, 6rem); }

.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.band-visit h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); max-width: 16ch; margin-bottom: 1.5rem; }

address {
  font-style: normal;
  font-family: var(--util);
  font-weight: 500;
  font-stretch: 100%;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--stone);
}

.visit-detail h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  font-stretch: 118%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 1rem;
}
.visit-detail h3 + p, .visit-detail > p { font-size: 1rem; color: var(--stone); margin: 0; }
.visit-detail > p a { color: var(--ink); text-decoration-color: var(--gold-ink); text-underline-offset: 3px; }
.visit-detail > p a:hover { color: var(--gold-ink); }

.access { list-style: none; margin: 0 0 2.25rem; padding: 0; }
.access li {
  font-size: 1rem;
  color: var(--stone);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--rule);
}
.access li:first-child { border-top: 1px solid var(--rule); }
.access strong {
  font-family: var(--util);
  font-weight: 600;
  font-stretch: 100%;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-right: 0.35rem;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--sage);
  padding-block: clamp(3rem, 5.5vw, 4.5rem) 2rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--ink-line);
}
.foot-brand p { font-size: 0.9375rem; margin: 1.15rem 0 0; max-width: 40ch; }

.foot-col h2 {
  font-size: 0.6875rem;
  font-weight: 600;
  font-stretch: 100%;
  font-family: var(--util);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { font-size: 0.9375rem; padding: 0.3rem 0; }
.foot-col a { text-decoration-color: var(--ink-line); text-underline-offset: 3px; }
.foot-col a:hover { color: var(--bone); text-decoration-color: var(--gold); }

.foot-note {
  max-width: var(--wrap);
  margin: 2rem auto 0;
  padding-inline: var(--gutter);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #8E9382;
}

/* ---------- responsive ---------- */

@media (max-width: 62rem) {
  .hero, .traction-inner { grid-template-columns: 1fr; }
  .hero-text, .traction-text { max-width: none; justify-self: stretch; padding-inline: var(--gutter); }
  .hero-figure { order: -1; min-height: 15rem; height: 42vw; max-height: 24rem; }
  .hero-figure::after {
    background: linear-gradient(180deg, rgba(20, 23, 14, 0.15) 0%, rgba(20, 23, 14, 0.55) 72%, var(--ink) 100%);
  }
  .traction-figure { align-self: stretch; }
  .visit-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 54rem) {
  .masthead { flex-wrap: wrap; gap: 0.9rem 1.25rem; }
  .nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .nav ul { gap: 1.15rem; padding-bottom: 0.15rem; }
  .nav a { white-space: nowrap; font-size: 0.8125rem; }
  .masthead-call { margin-left: auto; }
  .card-wide, .person-lead { grid-column: auto; }
}

@media (max-width: 34rem) {
  .facts { grid-template-columns: 1fr; gap: 1.1rem; }
  .hero-actions .btn, .price-cta .btn, .visit-actions .btn { flex: 1 1 100%; }
  .conditions { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .wordmark-name { font-size: 0.9375rem; }
}
