/* Active Therapy Clinic, Cirencester
   Tokens are in _brief.md. Blue and green are sampled from the clinic's own wordmark
   (#4083A8, #6EBA1D) and darkened where they have to carry text. */

:root {
  --ink: #10303F;
  --ink-soft: #46626F;
  --brand: #2F6F92;
  --brand-deep: #123F56;
  --brand-deeper: #0C2E3F;
  --leaf: #6EBA1D;
  --leaf-ink: #3F7A0E;
  --paper: #F2F7F9;
  --line: #D7E4EA;
  --surface: #FFFFFF;

  --display: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.55em;
  text-wrap: balance;
}

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }

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

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand-deep); color: #fff; padding: 0.8rem 1.2rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; color: #fff; }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 3px solid var(--leaf);
  outline-offset: 3px;
  border-radius: 3px;
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.7rem 1.55rem;
  font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
  border-radius: 999px; text-decoration: none; border: 2px solid transparent;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.btn:active { transform: translateY(1px); }

.btn--solid { background: var(--brand-deep); color: #fff; }
.btn--solid:hover { background: var(--brand-deeper); color: #fff; }

.btn--leaf { background: var(--leaf); color: #0A2708; }
.btn--leaf:hover { background: #7FCD2C; color: #0A2708; }

.btn--ghost { border-color: currentColor; color: var(--brand-deep); background: transparent; }
.btn--ghost:hover { background: var(--brand-deep); color: #fff; border-color: var(--brand-deep); }

.btn--ghost-light { color: #EAF4F8; }
.btn--ghost-light:hover { background: #fff; color: var(--brand-deeper); border-color: #fff; }

/* ---------- utility strip + header ---------- */

.utility {
  background: var(--brand-deeper);
  color: #C9DEE8;
  font-size: 0.83rem;
  line-height: 1.4;
}
.utility__row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem;
  justify-content: center; padding-block: 0.55rem;
}
.utility__item { color: #C9DEE8; text-decoration: none; }
.utility__item:hover { color: #fff; text-decoration: underline; }
.utility__sep { color: #7FA3B4; }

.head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.head__row {
  display: flex; align-items: center; gap: 1rem;
  min-height: 74px; flex-wrap: wrap; padding-block: 0.6rem;
}
.head__brand { display: block; margin-right: auto; }
.head__logo { width: clamp(150px, 20vw, 196px); height: auto; }

.head__nav { display: none; gap: 1.5rem; }
.head__nav a {
  font-family: var(--display); font-weight: 600; font-size: 0.96rem;
  color: var(--ink); text-decoration: none; padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.head__nav a:hover { color: var(--brand-deep); border-bottom-color: var(--leaf); }

/* The book button stays in the sticky header at every width; only the nav collapses. */
.head__cta { min-height: 44px; padding-inline: 1.15rem; font-size: 0.95rem; gap: 0.32em; }
.head__cta-more { display: none; }

@media (min-width: 900px) {
  .head__nav { display: flex; }
  .head__cta { min-height: 48px; padding-inline: 1.55rem; font-size: 1rem; }
  .head__cta-more { display: inline; }
}

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

.hero {
  background: var(--brand-deep);
  color: #EAF4F8;
  padding-block: clamp(3.2rem, 7vw, 5.6rem) clamp(3.6rem, 8vw, 6rem);
}
.hero__inner { max-width: 44rem; }
.hero__eyebrow {
  font-family: var(--display); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--leaf);
  margin-bottom: 1.1rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.05rem, 1.35rem + 3.2vw, 3.65rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.hero__lede {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.22rem);
  color: #C9DEE8; max-width: 38rem; margin-bottom: 1.9rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero__cta .btn--ghost { color: #EAF4F8; }
.hero__cta .btn--ghost:hover { background: #fff; color: var(--brand-deeper); border-color: #fff; }
.hero__note { margin-top: 1.4rem; font-size: 0.94rem; color: #9FBFCE; }

/* the frontage strip, with the proof bar riding over its lower edge */
.shelf { position: relative; background: var(--brand-deep); }
.shelf__img {
  width: 100%;
  height: clamp(190px, 34vw, 400px);
  object-fit: cover;
  object-position: center 58%;
}
.shelf .wrap { position: relative; margin-top: clamp(-3rem, -5vw, -4.5rem); padding-bottom: clamp(2.6rem, 5vw, 3.6rem); }

.proof {
  display: grid; gap: 1px;
  grid-template-columns: repeat(2, 1fr);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin: 0;
  box-shadow: 0 18px 44px -28px rgba(9, 40, 55, 0.7);
}
.proof__cell { background: var(--surface); padding: 1.15rem 1.15rem 1.2rem; }
.proof__cell dt {
  font-size: 0.74rem; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 700;
}
.proof__cell dd {
  margin: 0.3rem 0 0.15rem;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.35rem);
  letter-spacing: -0.03em; color: var(--brand-deep);
  font-variant-numeric: tabular-nums;
}
.proof__cell p { margin: 0; font-size: 0.87rem; color: var(--ink-soft); line-height: 1.4; }

@media (min-width: 760px) {
  .proof { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- generic section furniture ---------- */

.section { padding-block: clamp(3.2rem, 6.5vw, 5.4rem); }
.section--paper { background: var(--paper); }

.eyebrow {
  font-family: var(--display); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--leaf-ink);
  margin-bottom: 0.7rem;
}
.eyebrow--light { color: var(--leaf); }

.section__title { font-size: clamp(1.7rem, 1.25rem + 1.9vw, 2.6rem); max-width: 22ch; }
.section__lede { max-width: 62ch; color: var(--ink-soft); font-size: 1.06rem; margin-bottom: 2.4rem; }

/* ---------- steps ---------- */

.steps__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(1.6rem, 3vw, 2.6rem);
  margin-top: 2rem;
}
@media (min-width: 820px) { .steps__list { grid-template-columns: repeat(3, 1fr); } }

.step { padding-top: 0.2rem; }
.step__disc {
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--leaf); margin-bottom: 1rem;
}
.step__disc svg { width: 58px; height: 58px; }
.step__disc text {
  font-family: var(--display); font-weight: 700; font-size: 26px;
  fill: #0A2708; letter-spacing: -0.02em;
}
.step h3 { font-size: 1.22rem; margin-bottom: 0.45rem; }
.step p { color: var(--ink-soft); margin: 0; }

/* ---------- treatment cards ---------- */

.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.5rem;
}
@media (min-width: 680px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.card:hover {
  border-color: #B4CFDB;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -26px rgba(9, 40, 55, 0.65);
}
.card img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
.card__body { padding: 1.25rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.16rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; color: var(--ink-soft); }
.card__price {
  margin-top: auto; padding-top: 0.9rem; border-top: 2px solid var(--paper);
  font-family: var(--display); font-size: 0.93rem; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.card__price b { font-weight: 700; color: var(--brand-deep); }

.cards__foot { margin-top: 2rem; max-width: 62ch; color: var(--ink-soft); }

/* ---------- the price ledger (signature) ---------- */

.ledger { background: var(--brand-deeper); color: #E3EFF4; padding-block: clamp(3.2rem, 6.5vw, 5.2rem); }
.ledger__title { color: #fff; font-size: clamp(1.8rem, 1.3rem + 2.1vw, 2.8rem); }
.ledger__lede { max-width: 58ch; color: #A9C6D3; margin-bottom: 2.2rem; }

.ledger__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.ledger__table {
  width: 100%; border-collapse: collapse;
  background: #fff; color: var(--ink);
  border-top: 5px solid var(--leaf);
  font-size: 0.97rem;
  min-width: min(100%, 34rem);
}
.ledger__table thead th {
  background: var(--brand-deep); color: #fff;
  font-family: var(--display); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-align: left; padding: 0.85rem 1.1rem;
}
.ledger__table thead th:last-child { text-align: right; }
.ledger__group th {
  background: var(--paper);
  font-family: var(--display); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.01em; color: var(--brand-deep);
  text-align: left; padding: 0.75rem 1.1rem;
  border-top: 1px solid var(--line);
}
.ledger__table tbody th[scope="row"] { font-weight: 600; text-align: left; }
.ledger__table tbody th,
.ledger__table tbody td { padding: 0.7rem 1.1rem; border-top: 1px solid var(--line); }
.ledger__table tbody td:not(.num) { color: var(--ink-soft); font-size: 0.92rem; }
.ledger__table .num {
  text-align: right; white-space: nowrap;
  font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--brand-deep);
}
.ledger__table tbody tr:not(.ledger__group):hover { background: #F7FBFC; }

.ledger__note { margin-top: 1.5rem; max-width: 62ch; color: #A9C6D3; font-size: 0.95rem; }
.ledger__note a { color: #fff; }
.ledger__note a:hover { color: var(--leaf); }

/* ---------- IDD feature ---------- */

.feature__grid { display: grid; gap: clamp(2rem, 4vw, 3.4rem); align-items: start; }
@media (min-width: 940px) { .feature__grid { grid-template-columns: 1.05fr 0.95fr; } }

.feature__text h2 { font-size: clamp(1.7rem, 1.25rem + 1.9vw, 2.45rem); max-width: 18ch; }
.feature__text > p { max-width: 58ch; color: var(--ink-soft); }

.quote {
  margin: 1.8rem 0; padding: 1.1rem 0 1.1rem 1.4rem;
  border-left: 4px solid var(--leaf);
}
.quote p { font-family: var(--display); font-size: 1.1rem; font-weight: 500; color: var(--ink); line-height: 1.45; }
.quote footer { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.6rem; }

.survey {
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  padding: 1.2rem 1.3rem; font-size: 0.92rem; color: var(--ink-soft);
  margin-bottom: 1.8rem;
}
.survey b { color: var(--ink); }

.feature__figure { margin: 0; }
.feature__figure img { border-radius: 14px; width: 100%; }
.feature__figure figcaption {
  margin-top: 0.8rem; font-size: 0.88rem; color: var(--ink-soft);
}

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

.team { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.8rem 1.5rem; }
@media (min-width: 620px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .team { grid-template-columns: repeat(3, 1fr); } }

.member img {
  width: 100%; aspect-ratio: 7 / 8; object-fit: cover; object-position: center 22%;
  border-radius: 14px; background: #fff; margin-bottom: 0.9rem;
}
.member h3 { font-size: 1.14rem; margin-bottom: 0.15rem; }
.member__role {
  font-family: var(--display); font-weight: 600; font-size: 0.85rem;
  color: var(--brand); margin-bottom: 0.6rem;
}
.member p:last-child { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- patient words ---------- */

.words__list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .words__list { grid-template-columns: repeat(3, 1fr); } }

.word {
  background: var(--paper); border-radius: 12px; padding: 1.5rem 1.4rem 1.3rem;
  border-top: 4px solid var(--leaf);
}
.word p { font-size: 1rem; color: var(--ink); }
.word footer {
  font-family: var(--display); font-weight: 600; font-size: 0.9rem;
  color: var(--brand-deep); margin-top: 0.9rem;
}
.words__note { margin-top: 1.6rem; font-size: 0.88rem; color: var(--ink-soft); max-width: 62ch; }

/* ---------- accreditations ---------- */

.accred { background: var(--surface); border-block: 1px solid var(--line); padding-block: 1.9rem; }
.accred__row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2.2rem; }
.accred__title {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0; font-weight: 700;
}
.accred__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem 2.4rem;
}
.accred__list img { height: clamp(46px, 8vw, 66px); width: auto; }

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

.visit__grid { display: grid; gap: clamp(2rem, 4vw, 3.2rem); align-items: start; }
@media (min-width: 900px) { .visit__grid { grid-template-columns: 1.15fr 0.85fr; } }

.visit__grid h2 { font-size: clamp(1.65rem, 1.25rem + 1.7vw, 2.3rem); max-width: 16ch; }
.visit__address {
  font-style: normal; font-family: var(--display); font-weight: 600;
  font-size: 1.08rem; line-height: 1.5; color: var(--ink); margin-bottom: 1.2rem;
}
.visit__grid p { color: var(--ink-soft); max-width: 52ch; }
.visit__links { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; font-weight: 600; }

.hours { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem 1.5rem 1.4rem; }
.hours__title { font-size: 1.1rem; margin-bottom: 1rem; }
.hours__list { margin: 0 0 1.1rem; }
.hours__list > div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.5rem 0; border-top: 1px solid var(--line);
}
.hours__list > div:first-child { border-top: 0; }
.hours__list dt { color: var(--ink-soft); }
.hours__list dd {
  margin: 0; font-family: var(--display); font-weight: 600;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.hours__closed dd { color: var(--ink-soft); font-weight: 500; }
.hours__note { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }

/* ---------- booking band ---------- */

.book { background: var(--brand-deep); color: #EAF4F8; padding-block: clamp(3rem, 6vw, 4.8rem); }
.book__title { color: #fff; font-size: clamp(1.7rem, 1.25rem + 1.9vw, 2.5rem); }
.book__lede { max-width: 56ch; color: #A9C6D3; margin-bottom: 2.2rem; }

.book__ways { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
@media (min-width: 800px) { .book__ways { grid-template-columns: repeat(3, 1fr); } }
.book__ways li {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px; padding: 1.5rem 1.4rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem;
}
.book__ways h3 { color: #fff; font-size: 1.1rem; margin-bottom: 0.1rem; }
.book__ways p { color: #BBD6E1; font-size: 0.94rem; margin-bottom: 1rem; }
.book__ways .btn { margin-top: auto; }

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

.foot { background: var(--brand-deeper); color: #A9C6D3; padding-block: clamp(2.6rem, 5vw, 3.8rem) 0; }
.foot__grid { display: grid; gap: 2rem; }
@media (min-width: 720px) { .foot__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .foot__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

.foot__logo { width: 180px; background: #fff; border-radius: 8px; padding: 0.5rem 0.7rem; margin-bottom: 1rem; }
.foot__blurb { font-size: 0.93rem; max-width: 40ch; }
.foot__h {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff; margin-bottom: 0.9rem;
}
.foot__address { font-style: normal; font-size: 0.93rem; line-height: 1.75; }
.foot__links { list-style: none; margin: 0; padding: 0; font-size: 0.93rem; line-height: 1.95; }
.foot a { color: #D6E7EE; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }

.foot__base {
  margin-top: 2.4rem; padding-block: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.85rem; color: #7FA3B4;
}
.foot__base p { margin: 0; }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
