/* MotionWorks Physiotherapy – Camperdown, Newcastle upon Tyne
   Teal is the clinic's own: #4F8991 off their site chrome, and the same teal again on the
   treatment plinths and exercise mats in their photography. Darkened to #2A6E70 wherever it
   has to carry text. Charcoal with a green cast rather than pure black, so the two agree.
   Type is system-only: a geometric display stack that echoes their wordmark, a plain body
   stack in a different voice, and a mono stack that carries durations, prices and labels. */

:root {
  --ink:          #16211f;
  --muted:        #4e605d;
  --brand:        #2a6e70;
  --brand-deep:   #1f6260;
  --brand-raw:    #4f8991;
  --pale:         #a1c5ca;
  --wash:         #eef4f3;
  --wash-2:       #f6f9f8;
  --dark:         #12201f;
  --dark-2:       #1b2c2a;
  --on-dark:      #ffffff;
  --on-dark-dim:  #9ec9c6;
  --line:         #dce7e5;
  --line-dark:    #2e4442;

  --shell: 1160px;
  --gut: clamp(1.15rem, 4vw, 3.25rem);

  --display: "Avenir Next", "Futura", "Century Gothic", "Segoe UI", system-ui, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
  /* the sticky header must not sit on top of an anchored heading */
  scroll-padding-top: 5.5rem;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--text);
  font-size: clamp(1rem, 0.965rem + 0.18vw, 1.075rem);
  line-height: 1.62;
  overflow-x: hidden;
}

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

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

p { margin: 0; }

a { color: var(--brand); text-underline-offset: 0.16em; }
a:hover { color: var(--brand-deep); }

:focus-visible {
  outline: 3px solid var(--brand-raw);
  outline-offset: 3px;
  border-radius: 3px;
}
.on-dark :focus-visible { outline-color: var(--pale); }

.shell {
  width: min(100% - var(--gut) * 2, var(--shell));
  margin-inline: auto;
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 60;
  background: #fff;
  color: var(--ink);
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  transition: top 140ms ease;
}
.skip:focus { top: 0; }

/* ---------- shared bits ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.735rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin: 0 0 1rem;
}
.on-dark .eyebrow { color: var(--on-dark-dim); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease,
              transform 150ms ease;
}
.btn--solid { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn--solid:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.on-dark .btn--line { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.on-dark .btn--line:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--pale { background: #fff; color: var(--brand-deep); border-color: #fff; }
.btn--pale:hover { background: var(--wash); color: var(--brand-deep); border-color: var(--wash); }
@media (prefers-reduced-motion: no-preference) {
  .btn:active { transform: translateY(1px); }
}

section { padding-block: clamp(3.25rem, 7vw, 6rem); }

.band--wash { background: var(--wash); }
.band--dark { background: var(--dark); color: #fff; }
.band--dark h2, .band--dark h3 { color: #fff; }
.band--brand { background: var(--brand-deep); color: #fff; }

.head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.head h2 {
  font-size: clamp(1.85rem, 1.15rem + 2.5vw, 2.9rem);
}
.head p {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 60ch;
}
.band--dark .head p { color: #c6d9d7; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--dark);
  border-bottom: 1px solid var(--line-dark);
}

.bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.6rem;
}

.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { width: 190px; height: auto; }

.nav { display: none; }

.nav a {
  color: #d8e6e4;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.55rem 0.15rem;
  border-bottom: 2px solid transparent;
  transition: color 140ms ease, border-color 140ms ease;
}
.nav a:hover { color: #fff; border-bottom-color: var(--brand-raw); }

.bar .btn { min-height: 46px; padding: 0.6rem 1.15rem; font-size: 0.95rem; }
.bar .btn--call { display: none; }

/* the header ground is dark, so the outline button has to be the light variant here –
   the default ink-on-white version disappears into the bar */
.site-header .btn--line { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.site-header .btn--line:hover { background: #fff; color: var(--ink); border-color: #fff; }

.burger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.55rem 0.95rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 18px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.drawer {
  display: none;
  padding: 0.5rem 0 1.4rem;
  border-top: 1px solid var(--line-dark);
}
.drawer[data-open="true"] { display: block; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer a {
  display: block;
  padding: 0.85rem 0.25rem;
  color: #d8e6e4;
  text-decoration: none;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--line-dark);
}
.drawer a:hover { color: #fff; }

@media (min-width: 900px) {
  .nav { display: flex; gap: clamp(1rem, 2.2vw, 1.9rem); align-items: center; }
  .burger, .drawer { display: none !important; }
  .bar .btn--call { display: inline-flex; }
}

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

.hero { background: var(--wash); padding-block: clamp(2.5rem, 6vw, 5rem) 0; }

.hero__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.15rem, 1.1rem + 4.4vw, 4rem);
  letter-spacing: -0.028em;
}
.hero h1 .br { display: block; }

.hero__lead {
  margin-top: 1.35rem;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
  color: var(--muted);
  max-width: 34rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__figure {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 48px -28px rgba(18, 32, 31, 0.55);
}
.hero__figure img { width: 100%; }

/* four practical facts, ruled rather than boxed – the fold has to carry them */
.facts {
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
}
.facts div {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 0.3rem;
}
.facts dd { margin: 0; font-weight: 600; font-size: 0.98rem; }

@media (min-width: 760px) {
  .facts { grid-template-columns: repeat(2, 1fr); column-gap: clamp(1.5rem, 4vw, 3rem); }
}
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts div { border-bottom: none; padding-bottom: 0; }
}

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

.areas {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.areas li {
  border-bottom: 1px solid var(--line);
  padding: 1.05rem 0.25rem 1.05rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  font-weight: 500;
}
.areas li::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--brand-raw);
  transform: translateY(-1px);
}
@media (min-width: 680px) {
  .areas { grid-template-columns: repeat(2, 1fr); column-gap: clamp(1.5rem, 4vw, 3.5rem); }
}
@media (min-width: 1020px) {
  .areas { grid-template-columns: repeat(3, 1fr); }
}

.areas-note {
  margin-top: 1.75rem;
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- the chart: appointments and prices ---------- */

.chart { border-top: 2px solid var(--ink); }

.chart__row {
  display: grid;
  gap: 0.35rem 1.25rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  grid-template-areas:
    "time  price"
    "name  name"
    "note  note";
  grid-template-columns: auto 1fr;
  align-items: baseline;
}

.chart__time {
  grid-area: time;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--brand-deep);
  background: rgba(79, 137, 145, 0.14);
  border-radius: 3px;
  padding: 0.28rem 0.5rem;
  justify-self: start;
  white-space: nowrap;
}
.chart__name {
  grid-area: name;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.28rem);
  letter-spacing: -0.012em;
}
.chart__note { grid-area: note; color: var(--muted); font-size: 0.96rem; max-width: 56ch; }
.chart__price {
  grid-area: price;
  font-family: var(--mono);
  font-size: clamp(1.15rem, 1rem + 0.55vw, 1.45rem);
  font-weight: 600;
  justify-self: end;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 780px) {
  .chart__row {
    grid-template-areas:
      "time name  price"
      ".    note  .";
    grid-template-columns: 7.5rem minmax(0, 1fr) 6rem;
    padding: 1.55rem 0;
    row-gap: 0.4rem;
  }
  .chart__time { justify-self: start; align-self: center; }
  .chart__price { align-self: center; }
}

.chart-note {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 60ch;
}

/* ---------- how it goes ---------- */

.method { position: relative; overflow: hidden; }

.method__mark {
  position: absolute;
  right: -6%;
  top: 50%;
  translate: 0 -50%;
  width: min(46vw, 480px);
  opacity: 0.055;
  pointer-events: none;
  user-select: none;
}

.method__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); position: relative; }

.steps { display: grid; gap: 1.5rem; counter-reset: step; }

.step {
  border-left: 2px solid var(--line-dark);
  padding: 0.15rem 0 0.6rem 1.5rem;
  counter-increment: step;
}
.step h3 {
  font-size: 1.22rem;
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}
.step h3::before {
  content: "0" counter(step);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--on-dark-dim);
}
.step p { margin-top: 0.6rem; color: #c6d9d7; max-width: 46ch; }

.method__figure { border-radius: 14px; overflow: hidden; }

@media (min-width: 940px) {
  .method__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); align-items: center; }
}

/* ---------- packages ---------- */

.tiers { display: grid; gap: 1.15rem; }

.tier {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.6rem 1.5rem 1.75rem;
  background: var(--wash-2);
  display: flex;
  flex-direction: column;
}
.tier h3 { font-size: 1.12rem; }
.tier__price {
  font-family: var(--mono);
  font-size: 1.7rem;
  font-weight: 600;
  margin-top: 0.55rem;
  font-variant-numeric: tabular-nums;
}
.tier__price span {
  font-family: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.tier ul {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.55rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.tier li { padding-left: 1.15rem; position: relative; }
.tier li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-raw);
}

@media (min-width: 640px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .tiers { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }

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

.team { display: grid; gap: 1.6rem; }

.person { display: grid; gap: 1rem; }
.person__photo {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 4 / 5;
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: 1.1rem; }
.person__role {
  font-family: var(--mono);
  font-size: 0.71rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-top: 0.4rem;
}
.person p.person__bio { margin-top: 0.7rem; color: var(--muted); font-size: 0.94rem; }

@media (min-width: 560px) { .team { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; } }
@media (min-width: 1000px) { .team { grid-template-columns: repeat(5, 1fr); gap: 1.25rem; } }

/* ---------- reviews ---------- */

.reviews { display: grid; gap: 1.25rem; align-items: start; }

.review {
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand-raw);
  border-radius: 0 10px 10px 0;
  padding: 1.5rem 1.5rem 1.35rem;
}
.review blockquote { margin: 0; font-size: 1.02rem; }
.review figcaption {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
}
.review figcaption b { color: var(--ink); font-weight: 600; }
.review__stars {
  color: var(--brand);
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  margin-bottom: 0.85rem;
}

@media (min-width: 780px) { .reviews { grid-template-columns: repeat(3, 1fr); } }

.reviews-note { margin-top: 1.25rem; color: var(--muted); font-size: 0.9rem; }
.reviews-note a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- find us ---------- */

.find__grid { display: grid; gap: clamp(2rem, 4vw, 3.25rem); align-items: center; }

.address {
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.75;
}
.address strong { display: block; font-size: 1.15rem; font-family: var(--display); }

.find__list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}
.find__list li { padding-left: 1.35rem; position: relative; color: #c6d9d7; max-width: 48ch; }
.find__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.68em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--brand-raw);
}

.find__figure { border-radius: 14px; overflow: hidden; }

@media (min-width: 940px) {
  .find__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ---------- book ---------- */

.book { text-align: center; }
.book h2 { font-size: clamp(1.85rem, 1.15rem + 2.5vw, 2.9rem); }
.book > p {
  margin: 1rem auto 0;
  max-width: 46ch;
  color: #d3e6e4;
}

.routes {
  display: grid;
  gap: 0.85rem;
  margin-top: 2.25rem;
  text-align: left;
}
.route {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.15rem 1.35rem;
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.route:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.route span {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--pale);
}
.route b {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 700;
  /* the email address is one long unbreakable token and will push the page sideways at 390px */
  overflow-wrap: anywhere;
}

@media (min-width: 720px) { .routes { grid-template-columns: repeat(3, 1fr); } }

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

.site-footer { background: var(--dark); color: #c6d9d7; padding-block: clamp(2.75rem, 5vw, 4rem); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--pale); }

.foot__grid { display: grid; gap: 2rem; }
.foot__brand img { width: 210px; }
.foot__tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
  margin-top: 1rem;
}
.foot h3 {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
  margin-bottom: 0.8rem;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; font-size: 0.95rem; }
/* footer links are real tap targets, not prose – give them the full 44px */
.foot ul a { display: inline-flex; align-items: center; min-height: 44px; }
.foot ul li { line-height: 1.55; }

.foot__legal {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.85rem;
  color: #9bb2af;
  align-items: center;
}
.foot__legal a { display: inline-flex; align-items: center; min-height: 44px; }

@media (min-width: 720px) {
  .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
}

/* ---------- 404 ---------- */

.gone {
  min-height: 78vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 1.15rem;
  padding-block: 4rem;
}
.gone h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.1rem); }
.gone p { color: var(--muted); max-width: 40ch; margin-inline: auto; }
.gone__code {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-deep);
}
.gone__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 0.5rem; }
