/* ============================================
   Health & Wellness demo, physiotherapy clinic
   Calm and clinical. The price ledger is the signature.
   ============================================ */

/* --- Reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, ol, ul, dl, dd, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
a { color: inherit; }

/* --- Tokens ----------------------------------------------- */
:root {
  --white: #FBFAF8;
  --sage: #7D9B8A;
  --teal: #1F3F3A;
  --blush: #E8D5CC;

  --paper: #F4F2ED;
  --mist: #EDF1EE;
  --ink: var(--teal);
  --muted: rgba(31, 63, 58, .64);
  --faint: rgba(31, 63, 58, .42);
  --line: rgba(31, 63, 58, .13);
  --rule: rgba(125, 155, 138, .42);

  --display: "DM Serif Display", Georgia, serif;
  --body: "DM Sans", system-ui, -apple-system, sans-serif;

  --header-h: 74px;
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 30px;
  --shell: 1200px;
}

/* --- Base ------------------------------------------------- */
body {
  background: var(--white);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  letter-spacing: -.005em;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -.015em; line-height: 1.1; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 4px; }

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

section { scroll-margin-top: calc(var(--demo-ribbon-h) + var(--header-h) + 12px); }

/* Small-caps utility label, used for every eyebrow on the page */
.label {
  font: 500 11px/1 var(--body);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage);
}

/* --- Fixed header: booking never scrolls away -------------- */
.site-header {
  position: fixed;
  top: var(--demo-ribbon-h); left: 0; right: 0;
  z-index: 900;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(251, 250, 248, .96);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .shell { display: flex; align-items: center; gap: 28px; }
.wordmark {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -.02em;
  white-space: nowrap;
  text-decoration: none;
  margin-right: auto;
}
.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-size: 14.5px;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--sage); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 500 15px/1 var(--body);
  letter-spacing: -.01em;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .22s, color .22s, border-color .22s, transform .22s;
}
.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: #16302C; transform: translateY(-1px); }
.btn--ghost { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--mist); border-color: var(--sage); }
.btn--book { padding: 12px 20px; font-size: 14.5px; white-space: nowrap; }

/* --- Hero -------------------------------------------------- */
.hero {
  padding: calc(var(--demo-ribbon-h) + var(--header-h) + 84px) 0 96px;
  position: relative;
  overflow: hidden;
}
.hero .shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 72px;
  align-items: center;
}
.hero__eyebrow {
  font: 500 14.5px/1.5 var(--body);
  color: var(--sage);
  max-width: 42ch;
  padding-left: 18px;
  position: relative;
  margin-bottom: 28px;
}
.hero__eyebrow::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 1px; background: var(--sage);
}
.hero h1 {
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.06;
  max-width: 17ch;
  margin-bottom: 26px;
}
.hero__sub {
  font-size: 18.5px;
  line-height: 1.62;
  color: var(--muted);
  max-width: 54ch;
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero__note {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--faint);
  max-width: 46ch;
  padding-left: 18px;
  border-left: 2px solid var(--blush);
}

/* Photography slot, hero: layered pastel field, no imagery */
.field {
  position: relative;
  aspect-ratio: 4 / 4.4;
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 15% 8%, #FFFFFF 0%, rgba(255,255,255,0) 58%),
    linear-gradient(160deg, var(--mist) 0%, var(--paper) 46%, #F7EDE7 100%);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 24px 60px -34px rgba(31, 63, 58, .38);
}
.field__blob { position: absolute; border-radius: 50%; filter: blur(46px); }
.field__blob--a {
  width: 62%; aspect-ratio: 1; left: -8%; top: 12%;
  background: rgba(125, 155, 138, .52);
  animation: drift-a 26s ease-in-out infinite;
}
.field__blob--b {
  width: 54%; aspect-ratio: 1; right: -6%; top: 34%;
  background: rgba(232, 213, 204, .82);
  animation: drift-b 32s ease-in-out infinite;
}
.field__blob--c {
  width: 40%; aspect-ratio: 1; left: 30%; bottom: -8%;
  background: rgba(31, 63, 58, .16);
  animation: drift-a 38s ease-in-out infinite reverse;
}
/* One hairline ring: the only hard edge in the field */
.field__ring {
  position: absolute; inset: 13%;
  border: 1px solid rgba(31, 63, 58, .16);
  border-radius: 50%;
}
.field__ring::after {
  content: ""; position: absolute; inset: 16%;
  border: 1px solid rgba(31, 63, 58, .1);
  border-radius: 50%;
}
@keyframes drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6%, -7%, 0) scale(1.08); }
}
@keyframes drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-7%, 6%, 0) scale(1.06); }
}

/* --- Section furniture ------------------------------------- */
.band { padding: 96px 0; }
.band--tint { background: var(--paper); }
.band__head { max-width: 62ch; margin-bottom: 56px; }
.band__head .label { display: block; margin-bottom: 20px; }
.band h2 { font-size: clamp(30px, 3.5vw, 44px); margin-bottom: 18px; }
.band__intro { color: var(--muted); font-size: 17.5px; max-width: 60ch; }

/* --- Treatment ledger: the signature ----------------------- */
.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 52px 56px; }
.ledger__group { min-width: 0; }
.ledger__group h3 {
  font-size: 23px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--teal);
  margin-bottom: 4px;
}
.ledger table { table-layout: fixed; }
.ledger caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ledger th {
  font: 500 10.5px/1 var(--body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sage);
  text-align: left;
  padding: 14px 0 10px;
  border-bottom: 1px solid var(--line);
}
.ledger th.c-len { width: 34%; }
.ledger th.c-price { width: 24%; text-align: right; }
.ledger td {
  padding: 15px 0;
  border-bottom: 1px dotted var(--rule);
  vertical-align: baseline;
}
.ledger tr:last-child td { border-bottom: none; }
.t-name { font-weight: 500; letter-spacing: -.01em; padding-right: 12px; }
.t-len { font-size: 14.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.t-price {
  font-family: var(--display);
  font-size: 25px;
  text-align: right;
  white-space: nowrap;
  letter-spacing: -.01em;
}
.t-price .per { font-family: var(--body); font-size: 13px; color: var(--muted); letter-spacing: 0; }

.terms {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 56px;
}
.terms li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
}
.terms li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--blush);
}

/* --- Clinicians -------------------------------------------- */
.clinicians { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.clinician {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* Photography slot, clinician cards: CSS field plus visible caption */
.photo-slot {
  aspect-ratio: 4 / 3.6;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  text-align: center;
  background:
    radial-gradient(90% 70% at 30% 20%, rgba(255,255,255,.9) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(150deg, var(--mist) 0%, #F5EDE9 100%);
  border-bottom: 1px solid var(--line);
}
.photo-slot::before {
  content: ""; position: absolute; left: 50%; top: 46%;
  width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(125,155,138,.34), rgba(232,213,204,.5));
  filter: blur(14px);
}
.photo-slot span {
  position: relative;
  font: 500 10.5px/1.5 var(--body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(31, 63, 58, .55);
}
.clinician__body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.clinician h3 { font-size: 22px; }
.clinician__role { font-size: 13.5px; color: var(--sage); font-weight: 500; letter-spacing: -.005em; margin-top: -4px; }
.clinician__creds { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.clinician__treats {
  font-size: 14.5px;
  line-height: 1.55;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dotted var(--rule);
}
.clinician__treats b { font-weight: 500; color: var(--sage); }

/* --- What to expect: a real four-step sequence -------------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 34px; counter-reset: step; }
.step { counter-increment: step; }
.step::before {
  content: counter(step);
  display: block;
  font-family: var(--display);
  font-size: 46px;
  line-height: 1;
  color: var(--sage);
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { font-size: 15.5px; line-height: 1.62; color: var(--muted); }
.steps-note {
  margin-top: 52px;
  font-size: 16px;
  color: var(--ink);
  background: rgba(232, 213, 204, .38);
  border-radius: var(--r-sm);
  padding: 18px 22px;
  display: inline-block;
}

/* --- Patient stories --------------------------------------- */
.stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; }
.story {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
}
.story blockquote p {
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -.012em;
}
.story figcaption {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dotted var(--rule);
  font-size: 14px;
  font-weight: 500;
  color: var(--sage);
}

/* --- Booking ------------------------------------------------ */
.book { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; align-items: start; }
.form { display: grid; gap: 20px; }
.field-row { display: grid; gap: 8px; }
.field-row label { font: 500 13.5px/1.4 var(--body); letter-spacing: -.005em; }
.field-row input, .field-row textarea {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  font-size: 16px;
  color: var(--ink);
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field-row textarea { resize: vertical; min-height: 104px; }
.field-row input:focus, .field-row textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(125, 155, 138, .18);
}
.form__foot { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.form__note { font-size: 14.5px; line-height: 1.6; color: var(--muted); max-width: 52ch; }

.contact {
  background: var(--mist);
  border-radius: var(--r-md);
  padding: 34px 32px;
}
.contact dl { display: grid; gap: 18px; }
.contact dt {
  font: 500 10.5px/1 var(--body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 6px;
}
.contact dd { font-size: 16px; line-height: 1.55; }
.contact dd a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.contact dd a:hover { border-bottom-color: var(--teal); }

/* --- Footer ------------------------------------------------- */
.site-footer { background: var(--teal); color: rgba(251, 250, 248, .74); padding: 76px 0 40px; }
.site-footer h2, .site-footer h3 { color: var(--white); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 44px; }
.footer__mark { font-family: var(--display); font-size: 26px; color: var(--white); margin-bottom: 12px; }
.footer__line { font-size: 15px; max-width: 26ch; }
.footer__grid h3 {
  font-family: var(--body);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(251, 250, 248, .5);
  margin-bottom: 18px;
}
.footer__grid li { font-size: 15px; line-height: 1.5; margin-bottom: 10px; }
.footer__grid a { text-decoration: none; transition: color .2s; }
.footer__grid a:hover { color: var(--white); }
.footer__foot {
  margin-top: 64px;
  padding-top: 26px;
  border-top: 1px solid rgba(251, 250, 248, .16);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  justify-content: space-between;
  font-size: 13.5px;
  color: rgba(251, 250, 248, .56);
}

/* --- Responsive --------------------------------------------- */
@media (max-width: 1080px) {
  .clinicians { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stories { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .hero .shell { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { max-width: 16ch; }
  .field { aspect-ratio: 5 / 3.4; }
  .ledger { grid-template-columns: 1fr; gap: 44px; }
  .book { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 620px) {
  :root { --header-h: 66px; }
  body { font-size: 16px; }
  .shell { padding: 0 20px; }
  .hero { padding: calc(var(--demo-ribbon-h) + var(--header-h) + 52px) 0 68px; }
  .band { padding: 68px 0; }
  .band__head { margin-bottom: 40px; }
  .wordmark { font-size: 17px; }
  .site-header .shell { gap: 12px; }
  .btn--book { padding: 11px 16px; font-size: 13.5px; }
  .hero__sub { font-size: 17px; }
  .hero__actions .btn { width: 100%; }
  .terms { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .step::before { font-size: 38px; padding-bottom: 12px; margin-bottom: 14px; }
  .clinicians { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 34px; }

  /* Ledger stacks rather than scrolls: the prices are the point */
  .ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ledger table, .ledger tbody { display: block; width: 100%; }
  .ledger tr {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    padding: 16px 0;
    border-bottom: 1px dotted var(--rule);
  }
  .ledger tr:last-child { border-bottom: none; }
  .ledger td { display: block; padding: 0; border: none; }
  .t-name { flex: 1 0 100%; padding-right: 0; }
  .t-len { flex: 1 1 auto; }
  .t-price { flex: 0 0 auto; margin-left: auto; text-align: right; font-size: 23px; }
  .t-len::before, .t-price::before {
    content: attr(data-label);
    display: block;
    font: 500 10px/1 var(--body);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 5px;
  }
}

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