/* ==========================================================================
   EUKINESIS bxl
   Specialised Clinical Physiotherapy, Brussels
   System documented in DESIGN.md
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */

:root {
  /* Surfaces, taken from the practice logo */
  --bg:        #ffffff;
  --paper:     #fdf8f3;
  --paper-2:   #f5efe7;
  --line:      #e4dcd1;
  --line-soft: #efe9e1;

  /* Ink */
  --ink:    #2b2a28;
  --ink-2:  #514e4a;
  --muted:  #6e6a62;

  /* Logo green and gold */
  --deep:       #2d3a33;
  --deep-2:     #222c27;
  --green:      #2d3a33;
  --green-dark: #1f2823;
  --green-soft: #e9eeea;
  --gold:       #c8aa84;
  --gold-ink:   #8a6b42;
  --sage:       #c8aa84;
  --sage-line:  #9c8460;

  /* Ink on deep surfaces */
  --on-deep:      #f7f3ee;
  --on-deep-2:    #ddd8d0;
  --on-deep-mute: #c9c3b8;

  /* Type */
  --font-display: "Marcellus", ui-serif, Georgia, "Times New Roman", serif;
  --font-body:    "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Space */
  --gutter:  clamp(1.25rem, 5vw, 4.5rem);
  --shell:   1200px;
  --section: clamp(4.5rem, 9vw, 9rem);

  /* Shape */
  --r-sm: 4px;
  --r:    8px;

  /* Motion */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);

  /* Depth */
  --z-sticky: 100;
  --z-backdrop: 200;
  --z-menu: 210;
  --z-skip: 300;

  --header-h: 74px;
}

@media (max-width: 860px) { :root { --header-h: 64px; } }

/* --- Reset -------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.68;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 { margin: 0; font-weight: 400; color: var(--ink); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }

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

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
.band-deep :focus-visible, .site-footer :focus-visible { outline-color: var(--sage); }

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

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

.skip {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -110%);
  z-index: var(--z-skip);
  background: var(--green); color: #fff;
  padding: 0.7rem 1.25rem;
  border-radius: 0 0 var(--r) var(--r);
  font-weight: 600; font-size: 0.9375rem; text-decoration: none;
  transition: transform 0.2s var(--ease-soft);
}
.skip:focus-visible { transform: translate(-50%, 0); color: #fff; }

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

/* --- Bands -------------------------------------------------------------- */

.section { padding-block: var(--section); scroll-margin-top: calc(var(--header-h) - 1px); }

.band-paper { background: var(--paper); border-block: 1px solid var(--line-soft); }

.band-deep {
  position: relative;
  background: var(--deep);
  color: var(--on-deep-2);
  overflow: hidden;
}
.band-deep h1, .band-deep h2, .band-deep h3 { color: var(--on-deep); }
.band-deep .pair-lg { color: var(--on-deep); }
.band-deep .pair-sm { color: var(--on-deep-mute); }
/* Buttons carry their own colour; the band link colour must not win on
   specificity and repaint them. */
.band-deep a:not(.btn) { color: var(--sage); }
.band-deep a:not(.btn):hover { color: var(--on-deep); }
.band-deep .shell { position: relative; z-index: 1; }

/* --- Paired headings ----------------------------------------------------
   The signature system: a small word and a large word read as one phrase,
   offset from each other. Used once per section, never as a category chip.
   ------------------------------------------------------------------------ */

.pair { display: block; }

.pair-sm {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.35rem);
  line-height: 1;
  color: var(--muted);
  letter-spacing: 0.01em;
  margin-left: 0.18em;
}

.pair-lg {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.9rem);
  line-height: 0.98;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  margin-top: 0.08em;
}

.section-head { margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }

.statement {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.2rem);
  line-height: 1.22;
  color: var(--ink);
  letter-spacing: 0.002em;
}
.statement-light { color: var(--on-deep); }

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.24s var(--ease-soft), border-color 0.24s var(--ease-soft),
              color 0.24s var(--ease-soft), transform 0.24s var(--ease-soft);
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: 0.5rem 1.05rem; font-size: 0.875rem; }
.btn-block { width: 100%; }

.btn-icon { width: 16px; height: 16px; flex: none; transition: transform 0.28s var(--ease-out); }
.btn:hover .btn-icon { transform: translateX(3px); }

.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: var(--paper-2); border-color: var(--green); color: var(--green); }

.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--green-soft); color: var(--green-dark); }

.btn-invert { background: var(--on-deep); color: var(--deep); }
.btn-invert:hover { background: #fff; color: var(--deep); }

.btn-outline-light {
  background: transparent;
  color: var(--on-deep);
  border-color: color-mix(in oklch, var(--on-deep) 40%, transparent);
}
.btn-outline-light:hover {
  background: color-mix(in oklch, var(--on-deep) 12%, transparent);
  color: var(--on-deep);
  border-color: var(--on-deep);
}

/* --- Header ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  transition: border-color 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgb(45 58 51 / 0.5);
}

.header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}
.brand-mark { width: 24px; height: 24px; color: var(--green); flex: none; }
.brand-text { display: flex; align-items: baseline; gap: 0.4rem; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.17em;
  line-height: 1;
}
.brand-sub {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; align-items: center; gap: 1.6rem; margin-inline: auto; }
.nav a {
  position: relative;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.9063rem;
  font-weight: 500;
  padding-block: 0.4rem;
  transition: color 0.2s var(--ease-soft);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.34s var(--ease-out);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.nav + .header-actions { margin-left: 0; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s var(--ease-soft);
}
.menu-toggle:hover { border-color: var(--green); }
.menu-bars { display: block; width: 18px; }
.menu-bars span {
  display: block; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform 0.3s var(--ease-out);
}
.menu-bars span:first-child { margin-bottom: 5px; }
.menu-toggle[aria-expanded="true"] .menu-bars span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

@media (max-width: 1040px) {
  .nav { display: none; }
  .nav + .header-actions { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 540px) {
  .header-actions .btn-primary { display: none; }
}

/* --- Mobile menu -------------------------------------------------------- */

.menu-backdrop {
  position: fixed; inset: 0; z-index: var(--z-backdrop);
  background: rgb(49 48 47 / 0.45);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s var(--ease-soft);
}
.menu-backdrop.open { opacity: 1; }

.mobile-menu {
  position: fixed; top: 0; right: 0; z-index: var(--z-menu);
  width: min(360px, 88vw);
  height: 100dvh;
  padding: 1rem 1.75rem 2rem;
  background: var(--bg);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 2rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.42s var(--ease-out);
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu-top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: calc(var(--header-h) - 1rem);
  margin-bottom: 0.5rem;
}

.menu-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-right: -0.6rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s var(--ease-soft), color 0.2s var(--ease-soft), background-color 0.2s var(--ease-soft);
}
.menu-close svg { width: 20px; height: 20px; }
.menu-close:hover { border-color: var(--green); color: var(--green); background: var(--paper); }

.mobile-nav { display: flex; flex-direction: column; }
.mobile-nav a {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.2rem;
  transition: color 0.2s var(--ease-soft), transform 0.28s var(--ease-out);
}
.mobile-nav a:hover { color: var(--green); transform: translateX(5px); }

.mobile-menu-foot { margin-top: auto; display: grid; gap: 0.6rem; }

body.menu-open { overflow: hidden; }

/* --- Hero --------------------------------------------------------------- */

.hero {
  padding-top: clamp(4rem, 9vw, 7.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  scroll-margin-top: var(--header-h);
}

.hero-arc {
  position: absolute;
  right: -14%;
  top: -22%;
  width: min(74%, 780px);
  height: auto;
  pointer-events: none;
  opacity: 0.42;
}
.hero-arc path {
  fill: none;
  stroke: var(--sage-line);
  stroke-width: 1.1;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: draw 2.4s var(--ease-out) 0.35s both;
}
.hero-arc path:nth-of-type(2) { animation-delay: 0.5s; }
.hero-arc path:nth-of-type(3) { animation-delay: 0.65s; }
.hero-arc circle { fill: var(--sage); opacity: 0; animation: fadeIn 0.6s linear 0.4s both; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

.hero-inner { max-width: 62rem; }

.wordmark {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-family: var(--font-display);
  line-height: 0.92;
}
.wordmark-main {
  display: block;
  font-size: clamp(2.9rem, 1.1rem + 8.4vw, 5.4rem);
  letter-spacing: 0.085em;
  color: var(--on-deep);
  animation: rise 1.1s var(--ease-out) 0.05s both;
}
.wordmark-tag {
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 0.65rem + 0.3vw, 0.9375rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sage);
  padding-top: 0.55em;
  animation: fadeUp 0.8s var(--ease-out) 0.35s both;
}

.hero-role {
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-size: clamp(0.8125rem, 0.75rem + 0.25vw, 0.9375rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-deep-mute);
  animation: fadeUp 0.9s var(--ease-out) 0.28s both;
}

.hero-promise {
  margin-top: 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.1rem + 2.1vw, 2.75rem);
  line-height: 1.18;
  color: var(--on-deep);
  letter-spacing: 0.004em;
  animation: fadeUp 0.9s var(--ease-out) 0.42s both;
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin-top: 2.5rem;
  animation: fadeUp 0.9s var(--ease-out) 0.55s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0;
  margin-top: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid color-mix(in oklch, var(--on-deep) 22%, transparent);
  animation: fadeUp 1s var(--ease-out) 0.7s both;
}
.pillars li { border-bottom: 1px solid color-mix(in oklch, var(--on-deep) 22%, transparent); }
.pillars a {
  display: block;
  padding: 1.15rem 1.25rem 1.15rem 0;
  color: var(--on-deep-2);
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.45;
  transition: color 0.24s var(--ease-soft), transform 0.32s var(--ease-out);
}
.pillars a:hover { color: var(--on-deep); transform: translateX(5px); }

@media (min-width: 720px) {
  .pillars li + li a { padding-left: 1.5rem; }
  .pillars li + li { border-left: 1px solid color-mix(in oklch, var(--on-deep) 22%, transparent); }
}

/* --- About -------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.about-copy { display: grid; gap: 1.35rem; max-width: 62ch; }
.about-copy .statement { margin-bottom: 0.35rem; }

.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0;
  margin-top: 1.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.keywords li {
  font-size: 0.875rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.keywords li + li::before {
  content: "";
  display: inline-block;
  width: 3px; height: 3px;
  margin: 0 0.75rem 0.22em;
  border-radius: 50%;
  background: var(--green);
  vertical-align: middle;
}

/* --- What we treat ------------------------------------------------------ */

.treatments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
@media (max-width: 720px) {
  .treatments { grid-template-columns: 1fr; }
}
.treatment {
  padding: 1.85rem 0;
  border-bottom: 1px solid var(--line);
}
.treatment h3 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem);
  line-height: 1.25;
  letter-spacing: 0.006em;
}
.treatment p {
  margin-top: 0.65rem;
  font-size: 0.9688rem;
  line-height: 1.62;
  max-width: 46ch;
}
.treatment-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.treatment-link svg { width: 14px; height: 14px; transition: transform 0.28s var(--ease-out); }
.treatment-link:hover svg { transform: translateX(3px); }

/* --- How we work -------------------------------------------------------- */

.band-arc {
  position: absolute;
  left: -10%;
  bottom: -26%;
  width: min(56%, 600px);
  height: auto;
  pointer-events: none;
  opacity: 0.4;
}
.band-arc path {
  fill: none;
  stroke: var(--sage-line);
  stroke-width: 1.1;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
html.js .band-deep.in .band-arc path { animation: draw 2.4s var(--ease-out) both; }
html.js .band-deep.in .band-arc path:nth-of-type(2) { animation-delay: 0.2s; }
html:not(.js) .band-arc path { stroke-dashoffset: 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
}
.step { padding-top: 1.35rem; border-top: 1px solid color-mix(in oklch, var(--sage) 38%, transparent); }
.step-num {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--sage);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.8rem;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  line-height: 1.28;
  letter-spacing: 0.008em;
}
.step p { margin-top: 0.6rem; font-size: 0.9375rem; line-height: 1.62; color: var(--on-deep-2); }

/* --- Lymphoedema -------------------------------------------------------- */

.lymph-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.lymph-copy { display: grid; gap: 1.35rem; justify-items: start; max-width: 62ch; }

.lymph-list { border-top: 1px solid var(--line); }
.lymph-list li {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  color: var(--ink);
  letter-spacing: 0.008em;
}

/* --- Team --------------------------------------------------------------- */

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(2rem, 4vw, 3.25rem);
}
.member { display: grid; justify-items: start; }

.member-photo {
  width: min(280px, 72%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper-2);
  margin-bottom: 1.5rem;
}
.member-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}
.member-photo-pending {
  display: grid;
  place-items: center;
  background: var(--green-soft);
  border: 1px solid var(--line);
}
.monogram {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  letter-spacing: 0.1em;
  color: var(--green);
}

.member h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.012em;
  line-height: 1.2;
}
.member-title {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  line-height: 1.5;
}
.member-role { margin-top: 0.55rem; font-size: 0.9375rem; line-height: 1.55; }
.member-interests {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
  width: 100%;
}
.member-interests span {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 0.4rem;
}

/* --- Contact ------------------------------------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact-head .statement-light { margin-top: 1.5rem; }

.contact-list { display: grid; gap: 0; border-top: 1px solid color-mix(in oklch, var(--on-deep) 22%, transparent); }
.contact-list > div {
  display: grid;
  grid-template-columns: minmax(110px, 0.4fr) minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid color-mix(in oklch, var(--on-deep) 22%, transparent);
}
.contact-list dt {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--on-deep-mute);
  padding-top: 0.25em;
}
.contact-list dd { font-size: 1rem; line-height: 1.55; color: var(--on-deep); }
.contact-list dd a { text-decoration: none; }
.contact-list dd a:hover { text-decoration: underline; }
.quiet-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  background: var(--deep-2);
  color: var(--on-deep-mute);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: 2rem;
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
}
.footer-brand .brand { color: var(--on-deep); }
.footer-brand .brand-mark { color: var(--sage); }
.footer-brand .brand-sub { color: var(--on-deep-mute); }
.footer-brand p { margin-top: 1.1rem; max-width: 42ch; line-height: 1.62; }

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--on-deep);
  margin-bottom: 0.9rem;
}
.footer-col li + li { margin-top: 0.5rem; }
.footer-col a { color: var(--on-deep-mute); text-decoration: none; transition: color 0.2s var(--ease-soft); }
.footer-col a:hover { color: var(--on-deep); text-decoration: underline; }

.footer-base {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in oklch, var(--on-deep) 16%, transparent);
  font-size: 0.8125rem;
}
.disclaimer { max-width: 62ch; }

/* --- Reveal system ------------------------------------------------------
   Content is visible by default. The hidden state applies only once JS has
   confirmed IntersectionObserver support; main.js reveals everything if the
   observer never delivers.
   ------------------------------------------------------------------------ */

html.js .reveal { opacity: 0; transform: translateY(20px); }
html.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
html.js .treatment.in, html.js .step.in, html.js .member.in { transition-delay: var(--stagger, 0s); }

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 980px) {
  .about-grid, .lymph-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-head { margin-bottom: 0.5rem; }
  .footer-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
}

@media (max-width: 620px) {
  body { font-size: 1rem; }
  .member-photo { width: min(220px, 62%); }
  .contact-list > div { grid-template-columns: 1fr; gap: 0.35rem; }
  .contact-list dt { padding-top: 0; }
  .hero-actions .btn, .contact-actions .btn { flex: 1 1 100%; }
  .wordmark { flex-wrap: wrap; }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.12s !important;
    transition-delay: 0ms !important;
  }

  .wordmark-main, .wordmark-tag, .hero-role, .hero-promise, .hero-actions, .pillars {
    animation: none; opacity: 1; transform: none;
  }
  .hero-arc path, .band-arc path { stroke-dashoffset: 0; animation: none !important; }
  .hero-arc circle { opacity: 1; animation: none; }

  html.js .reveal { opacity: 0; transform: none; }
  html.js .reveal.in { opacity: 1; transition: opacity 0.12s linear; }
  .btn:active { transform: none; }
  .pillars a:hover, .mobile-nav a:hover { transform: none; }
}

/* --- Print -------------------------------------------------------------- */

@media print {
  .site-header, .mobile-menu, .menu-backdrop, .hero-actions, .contact-actions,
  .hero-arc, .band-arc { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .band-deep, .site-footer { background: #fff !important; color: #000 !important; }
  .band-deep h1, .band-deep h2, .band-deep h3, .statement-light { color: #000 !important; }
}

/* --- Lymphoedema page extras -------------------------------------------- */

.page-lead {
  margin-top: 1rem;
  max-width: 54ch;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.2rem);
  line-height: 1.6;
  color: var(--on-deep-2);
  animation: fadeUp 0.9s var(--ease-out) 0.5s both;
}

.lymph-aside { display: grid; justify-items: start; }
.lymph-aside .member-photo { width: min(280px, 80%); margin-bottom: 1.25rem; }

.lymph-list-wide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  column-gap: clamp(2rem, 5vw, 4rem);
}
.lymph-list-wide li {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-2);
  padding: 1.1rem 0;
}

.note {
  margin-top: 2.25rem;
  padding: 1.35rem 1.5rem;
  background: var(--green-soft);
  border-radius: var(--r);
  max-width: 68ch;
  font-size: 0.9375rem;
  line-height: 1.62;
  color: var(--ink);
}

@media (max-width: 980px) {
  .lymph-aside { justify-items: start; }
}

/* --- Page heroes and light variants ------------------------------------- */

.hero-page { padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero-page .pair-lg { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.4rem); }
.hero-page .hero-promise { margin-top: 1.5rem; font-size: clamp(1.4rem, 1.05rem + 1.5vw, 2.2rem); }
.hero-page .hero-actions { margin-top: 2.25rem; }

.section-more { margin-top: clamp(2rem, 4vw, 3rem); }

/* Steps sit on a deep band by default; this is the version for white. */
.steps-light .step { border-top-color: var(--line); }
.steps-light .step-num { color: var(--green); }
.steps-light .step h3 { color: var(--ink); }
.steps-light .step p { color: var(--ink-2); }

.contact-grid-light .statement { margin-top: 1.25rem; }
.contact-grid-light .contact-head p:last-child { margin-top: 1rem; color: var(--muted); font-size: 0.9375rem; }

.contact-list-light { border-top-color: var(--line); }
.contact-list-light > div { border-bottom-color: var(--line); }
.contact-list-light dt { color: var(--muted); }
.contact-list-light dd { color: var(--ink); }
.contact-list-light .quiet-link { color: var(--green); }

/* Plain list variant: headings only, used where the client supplied no body copy. */
.treatments-plain .treatment { padding: 1.35rem 0; }

/* --- Logo in the wordmark ------------------------------------------------ */

.brand-logo {
  width: 36px;
  height: auto;
  flex: none;
  margin-right: 0.2rem;
}
.mobile-menu-top .brand-logo { width: 30px; }
.footer-brand .brand-logo { width: 42px; }

@media (max-width: 540px) { .brand-logo { width: 30px; } }

/* --- Featured treatment -------------------------------------------------- */

.treatment-featured {
  position: relative;
  padding-left: 1.5rem;
}
.treatment-featured::before {
  content: "";
  position: absolute;
  left: 0; top: 1.85rem; bottom: 1.85rem;
  width: 3px;
  border-radius: 2px;
  background: var(--gold);
}
.treatment-featured h3 { color: var(--green); }
.treatment-featured .treatment-link { color: var(--gold-ink); }

/* --- Team ---------------------------------------------------------------- */

.team-photo {
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--paper-2);
}
.team-photo img { width: 100%; height: auto; }

/* Colour, on the client's request of 8 October. */
.member-photo img { filter: saturate(1.02); }

.member-blocks {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1.1rem;
  width: 100%;
}
.member-block h4 {
  margin: 0 0 0.5rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.member-block li {
  position: relative;
  padding-left: 0.95rem;
  font-size: 0.9063rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.member-block li + li { margin-top: 0.3rem; }
.member-block li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

/* --- Appointment form ---------------------------------------------------- */

.form-wrap {
  background: var(--on-deep);
  border-radius: var(--r);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.appt-form { display: grid; gap: 1.1rem; }

.field { display: grid; gap: 0.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color 0.2s var(--ease-soft), box-shadow 0.2s var(--ease-soft);
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.field select { appearance: none; background-image: none; cursor: pointer; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgb(45 58 51 / 0.14);
}
.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid { border-color: #9c3b2e; }

.field-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.65rem;
}
.field-check input { width: 18px; height: 18px; margin-top: 0.22rem; accent-color: var(--green); }
.field-check label { font-weight: 400; font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); }

/* Honeypot, kept out of sight and out of the tab order. */
.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: 0.8125rem; color: var(--muted); text-align: center; }

.form-status {
  padding: 0.9rem 1rem;
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  line-height: 1.55;
  background: var(--green-soft);
  color: var(--ink);
  border: 1px solid var(--line);
}
.form-status[data-state="error"] { background: #fbeae7; border-color: #e6c3bc; }

.appt-form.is-sending button[type="submit"] { opacity: 0.6; pointer-events: none; }

.contact-grid .contact-list { margin-top: 2rem; }

@media (max-width: 620px) {
  .field-row { grid-template-columns: 1fr; }
}

/* --- Team cards on one shared row grid -----------------------------------
   Each card carries the same eight rows, so photo, name, title, role and both
   lists line up across the three columns instead of stepping down. Browsers
   without subgrid keep the normal stacked flow above. */

.member-role:empty { margin-top: 0; }

@media (min-width: 900px) {
  @supports (grid-template-rows: subgrid) {
    .team {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      grid-template-rows: repeat(8, auto);
      row-gap: 0;
    }
    .member {
      grid-row: 1 / span 8;
      grid-template-rows: subgrid;
      row-gap: 0;
    }
    .member-blocks,
    .member-block {
      display: contents;
    }
    .member-blocks > .member-block:first-child > h4 {
      margin-top: 1.25rem;
      padding-top: 1.25rem;
      border-top: 1px solid var(--line);
      align-self: end;
      width: 100%;
    }
    .member-block > h4 { align-self: end; }
    .member-block > ul { margin-bottom: 1.1rem; }
    .member-block > ul:last-of-type { margin-bottom: 0; }
  }
}

/* Below the aligned three-column layout, go straight to one column: a 2+1
   arrangement of three people reads as a mistake. */
@media (max-width: 899px) {
  .team { grid-template-columns: minmax(0, 1fr); max-width: 34rem; }
}

/* --- Group photo at the very top ----------------------------------------
   Sits directly under the header, above the green hero band. No text is laid
   over it, so nobody gets cropped or covered at any width. */

.hero-photo {
  margin: 0;
  background: var(--paper-2);
  line-height: 0;
}
.hero-photo img {
  width: 100%;
  height: clamp(16rem, 42vw, 34rem);
  object-fit: cover;
  object-position: center 32%;
}

@media (max-width: 620px) {
  .hero-photo img { height: clamp(14rem, 58vw, 20rem); }
}

/* --- Language switch ----------------------------------------------------- */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 42px;
  padding: 0 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--muted);
  transition: border-color 0.2s var(--ease-soft), color 0.2s var(--ease-soft);
}
.lang-switch:hover { border-color: var(--green); color: var(--green); }
.lang-on { color: var(--ink); }
.lang-off { color: inherit; }
.lang-on::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.8em;
  margin-left: 0.3rem;
  background: var(--line);
  vertical-align: -0.05em;
}

.lang-switch-block {
  justify-content: center;
  width: 100%;
  height: 48px;
}

@media (max-width: 540px) {
  .header-actions .lang-switch { padding: 0 0.55rem; }
}

/* Agency credit in the footer base, deliberately quiet. */
.credit { color: color-mix(in oklch, var(--on-deep-mute) 80%, transparent); }
.credit a { color: var(--on-deep-mute); text-decoration: none; }
.credit a:hover { color: var(--on-deep); text-decoration: underline; }
