/* Yves Zlatanov — physiotherapy. One stylesheet, no framework.
   Colours are sampled from the hero film: its shadowed green wall (forest), its oak (oak),
   its floor in shade (charcoal) and its daylight (paper). Volt is the one athletic accent. */

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: fallback;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Bulgarian pages: Cyrillic from "Source Serif 4 BG"; Latin, digits and punctuation (the PhysioSport mark) fall
   through to the Latin "Source Serif 4" face above. */
@font-face {
  font-family: "Source Serif 4 BG";
  src: url("../fonts/source-serif-4-cyrillic.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: fallback;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Sofia Sans";
  src: url("../fonts/sofia-sans-cyrillic.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: fallback;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Sofia Sans";
  src: url("../fonts/sofia-sans-latin.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: fallback;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f3efe7;
  --paper-2: #e8e1d3;
  --ink: #1b1c19;
  --ink-2: #4a4b45;
  --charcoal: #10120f; /* the card's black */
  --charcoal-2: #1d201b;
  --forest: #1f3429;
  --forest-2: #2b4537;
  --oak: #d9c4a1;
  --oak-2: #cdb48c;
  --accent: #77b191;   /* lit edge of the business-card arcs (photo, exposure-corrected) */
  --accent-2: #68a283;
  --brand: #4e725a;    /* PhysioSport emerald: mid-tone of the card arcs */
  --on-dark: #f1ede4;
  --on-dark-2: #c9c5bb;
  --error-dark: #ffb4a6;
  --error-light: #9b2a1c;
  --ph: #f2e18e;

  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Sofia Sans", "Segoe UI", system-ui, sans-serif;

  /* Five sizes do all the work. */
  --fs-xl: clamp(2.375rem, 1.05rem + 4.9vw, 6.25rem);
  --fs-l: clamp(1.75rem, 1.2rem + 3vw, 4.25rem);
  --fs-m: clamp(1.25rem, 1rem + 0.95vw, 1.875rem);
  --fs-b: clamp(1.0625rem, 1rem + 0.22vw, 1.1875rem);
  --fs-s: 0.9375rem;

  --m: clamp(1rem, 0.35rem + 3.1vw, 3.5rem);
  --gap: clamp(1.25rem, 0.7rem + 2.2vw, 3.25rem);
  --sec: clamp(5.5rem, 3rem + 8vw, 12.5rem);
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --focus: var(--forest);
}
html[lang="bg"] { --serif: "Source Serif 4 BG", "Source Serif 4", "Iowan Old Style", Georgia, serif; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--fs-b)/1.55 var(--sans);
  font-feature-settings: "kern", "liga";
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, address, fieldset, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
a { color: inherit; text-decoration-thickness: 0.07em; text-underline-offset: 0.18em; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sr-only { font-family: system-ui, sans-serif; position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip {
  position: fixed; left: var(--m); top: 0.75rem; z-index: 100;
  background: var(--accent); color: var(--ink); padding: 0.75rem 1rem; font-weight: 600;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* Placeholders for facts Yves has not supplied yet: impossible to miss, removed by filling config/site.json. */
.ph { background: var(--ph); color: #2a2611; padding: 0.05em 0.35em; -webkit-box-decoration-break: clone; box-decoration-break: clone; font-weight: 500; }

/* ---------- Type ---------- */
.h2 {
  font: 600 var(--fs-l)/1.02 var(--serif);
  font-variation-settings: "opsz" 60;
  letter-spacing: -0.022em;
  text-wrap: balance;
  max-width: 24ch;
}
.lead { font-size: var(--fs-m); line-height: 1.38; max-width: 34ch; margin-top: clamp(1.75rem, 1.2rem + 1.2vw, 2.5rem); text-wrap: pretty; }
.statement {
  font: 500 var(--fs-m)/1.38 var(--serif); font-variation-settings: "opsz" 32;
  max-width: 34ch; margin-top: clamp(1.75rem, 1.2rem + 1.2vw, 2.5rem); text-wrap: pretty;
}
.prose { margin-top: clamp(1.75rem, 1.2rem + 1.2vw, 2.5rem); max-width: 38rem; }
.prose p + p { margin-top: 1em; }
.note { font-size: var(--fs-s); line-height: 1.5; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  min-height: 3rem; padding: 0.85rem 1.3rem;
  font: 600 1rem/1.15 var(--sans); letter-spacing: 0.005em;
  text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn .arrow, .link-arrow .arrow { width: 1.1em; height: 1.1em; flex: none; transition: transform 0.3s var(--ease); }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(4px); }
.btn--volt { background: var(--accent); color: var(--ink); }
.btn--volt:hover { background: var(--accent-2); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #33342f; }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: #fffaf0; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--on-dark); --focus: var(--accent); transition: color 0.3s ease; }
.site-header::before { content: ""; position: absolute; inset: 0; background: var(--paper); opacity: 0; transition: opacity 0.3s ease; }
.site-header.is-solid { color: var(--ink); --focus: var(--forest); }
.site-header.is-solid .wordmark__name { color: var(--brand); }
.site-header.is-solid::before { opacity: 1; }
.site-header__bar {
  position: relative; display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.5rem);
  height: var(--header-h); padding-inline: var(--m);
}
.wordmark { display: flex; align-items: baseline; gap: 0.6rem; padding-block: 0.35rem; text-decoration: none; margin-right: auto; white-space: nowrap; }
.wordmark__name { font: 600 1.3125rem/1 var(--serif); font-variation-settings: "opsz" 24; letter-spacing: -0.01em; }
.wordmark__role { font-size: 0.9375rem; opacity: 0.86; }
.site-nav ul { display: flex; gap: clamp(1rem, 1.8vw, 2rem); }
.site-nav a, .lang a { font-size: 0.9375rem; font-weight: 500; text-decoration: none; padding-block: 0.5rem; white-space: nowrap; }
.site-nav a:hover, .lang a:hover { text-decoration: underline; }
.lang { display: flex; gap: 0.15rem; }
.lang a { padding-inline: 0.35rem; opacity: 0.86; }
.lang a[aria-current] { opacity: 1; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; }
.site-header__cta { min-height: 2.6rem; padding: 0.6rem 1.05rem; font-size: 0.9375rem; }
.menu-btn {
  display: none; min-height: 2.75rem; padding: 0.5rem 0.9rem; background: transparent;
  border: 0; font-weight: 600; cursor: pointer; box-shadow: inset 0 0 0 2px currentColor;
}

@media (max-width: 1150px) {
  .site-nav, .site-header .lang { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
}
@media (max-width: 640px) {
  .site-header__cta, .wordmark__role { display: none; }
}

/* Mobile menu */
.menu {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0 var(--m) 2rem;
  border: 0; background: var(--forest); color: var(--on-dark); --focus: var(--accent);
  display: none; flex-direction: column;
}
.menu[open] { display: flex; }
.menu::backdrop { background: rgb(16 18 15 / 0.6); }
.menu__top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.menu__title { font: 600 1.3125rem/1 var(--serif); }
.menu__close { min-height: 2.75rem; padding: 0.5rem 0.9rem; background: transparent; border: 0; font-weight: 600; cursor: pointer; box-shadow: inset 0 0 0 2px currentColor; }
.menu__list { margin-top: clamp(1.5rem, 6vh, 4rem); display: grid; gap: 0.25rem; }
.menu__list a { display: block; padding-block: 0.4rem; font: 600 clamp(2rem, 1.4rem + 3vw, 3rem)/1.1 var(--serif); text-decoration: none; letter-spacing: -0.015em; }
.menu__list a:hover { color: var(--accent); }
.menu__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; padding-top: 2rem; }
.lang--menu a { font-size: 1.0625rem; padding: 0.6rem 0.5rem; }
html.motion .menu[open] { animation: menu-in 0.42s var(--ease); }
html.motion .menu[open] .menu__list li { animation: rise 0.6s var(--ease) both; }
html.motion .menu[open] .menu__list li:nth-child(2) { animation-delay: 0.04s; }
html.motion .menu[open] .menu__list li:nth-child(3) { animation-delay: 0.08s; }
html.motion .menu[open] .menu__list li:nth-child(4) { animation-delay: 0.12s; }
html.motion .menu[open] .menu__list li:nth-child(5) { animation-delay: 0.16s; }
@keyframes menu-in { from { transform: translateY(-2.5%); opacity: 0; } }
@keyframes rise { from { transform: translateY(18px); opacity: 0; } }

/* ---------- Layout ---------- */
.grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: var(--gap); padding-inline: var(--m);
}
.side { grid-column: 1; }
.main { grid-column: 2; min-width: 0; }
.sec { padding-block: var(--sec); }
.sec--paper { background: var(--paper); color: var(--ink); }
.sec--paper2 { background: var(--paper-2); color: var(--ink); }
.sec--ink { background: var(--charcoal); color: var(--on-dark); --focus: var(--accent); }
.sec--forest { background: var(--forest); color: var(--on-dark); --focus: var(--accent); }
.sec--oak { background: var(--oak); color: var(--ink); --focus: var(--ink); }

@media (max-width: 860px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .side, .main { grid-column: 1; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-items: end;
  background: var(--charcoal); color: var(--on-dark); --focus: var(--accent);
}
.hero__media { position: absolute; inset: 0; z-index: -1; background: #0b0b0a; }
.hero__video, .hero__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero__still { display: none; }
.hero.is-still .hero__still { display: block; }
.hero.is-still .hero__video { visibility: hidden; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgb(14 15 13 / 0.82) 0%, rgb(14 15 13 / 0.4) 34%, rgb(14 15 13 / 0) 58%),
    linear-gradient(to right, rgb(14 15 13 / 0.5) 0%, rgb(14 15 13 / 0) 52%),
    linear-gradient(to bottom, rgb(14 15 13 / 0.45) 0, rgb(14 15 13 / 0) 7.5rem);
}
.hero__content { position: relative; padding: calc(var(--header-h) + 2rem) var(--m) clamp(1.75rem, 1rem + 3vh, 3.25rem); max-width: min(64rem, 64vw); }
.hero__title {
  font: 600 var(--fs-xl)/0.98 var(--serif); font-variation-settings: "opsz" 60;
  letter-spacing: -0.028em;
}
.line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.line__in { display: inline-block; white-space: nowrap; }
.hero__lead { margin-top: clamp(1.5rem, 1rem + 1.2vw, 2.25rem); max-width: 42ch; font-size: var(--fs-b); color: var(--on-dark); text-wrap: pretty; }
.hero__toggle {
  position: absolute; right: var(--m); bottom: clamp(1.75rem, 1rem + 3vh, 3.25rem);
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
  background: rgb(16 18 15 / 0.55); color: var(--on-dark); border: 0; cursor: pointer;
  box-shadow: inset 0 0 0 2px rgb(241 237 228 / 0.55); transition: background-color 0.2s ease;
}
.hero__toggle:hover { background: rgb(16 18 15 / 0.85); }
.hero__toggle svg { width: 1rem; height: 1rem; display: none; }
.hero__toggle[data-state="playing"] .i-pause, .hero__toggle[data-state="paused"] .i-play, .hero__toggle[data-state="ended"] .i-replay { display: block; }

/* Hero entrance: the headline rises out of its line masks, then the lead and the two paths.
   If the script never runs, a delayed animation shows everything anyway. */
html.motion .hero:not(.is-in) .line__in { transform: translateY(104%); animation: failsafe 0.01s 2.5s forwards; }
html.motion .hero:not(.is-in) [data-hero-step] { opacity: 0; transform: translateY(18px); animation: failsafe 0.01s 2.5s forwards; }
@keyframes failsafe { to { opacity: 1; transform: none; } }
html.motion .hero.is-in .line__in { transform: none; transition: transform 1.05s var(--ease) calc(0.12s + var(--i) * 0.09s); }
html.motion .hero.is-in [data-hero-step] { opacity: 1; transform: none; transition: opacity 0.8s ease, transform 0.9s var(--ease); }
html.motion .hero.is-in .hero__lead { transition-delay: 0.42s; }

/* Portrait screens: the film becomes a band at the top, cropped to keep the two people in frame,
   and the headline sits below it on the dark floor of the shot instead of over the people. */
@media (max-aspect-ratio: 1/1), (max-width: 700px) {
  .hero { display: block; min-height: 0; }
  .hero__media { position: relative; inset: auto; height: clamp(18rem, 112vw, 64svh); }
  .hero__video, .hero__still { object-position: 80% 50%; }
  .hero__scrim {
    background:
      linear-gradient(to top, var(--charcoal) 0%, rgb(16 18 15 / 0.6) 22%, rgb(16 18 15 / 0) 46%),
      linear-gradient(to bottom, rgb(14 15 13 / 0.5) 0, rgb(14 15 13 / 0) 6rem);
  }
  .hero__content { max-width: none; margin-top: -3.4rem; padding-top: 0; padding-bottom: 2.75rem; }
  /* The longest headline line ("за вашето движение") is 8.5 em wide: keep it inside the margins down to 320 px. */
  .hero__title { font-size: clamp(1.875rem, 9.6vw, 5rem); }
  .hero__toggle { top: calc(var(--header-h) + 0.5rem); bottom: auto; }
}
@media (max-aspect-ratio: 1/1) and (min-width: 701px) {
  .hero__content { max-width: 46rem; }
}
/* Short landscape screens (phones turned sideways): let the hero grow with its content. */
@media (min-aspect-ratio: 1/1) and (max-height: 620px) {
  .hero { min-height: 0; }
  .hero__content { max-width: min(46rem, 72vw); padding-top: calc(var(--header-h) + 3rem); }
}

/* ---------- About ---------- */
.about .prose p:first-child { font: 500 var(--fs-m)/1.38 var(--serif); font-variation-settings: "opsz" 32; max-width: 30ch; margin-bottom: 1.6em; }
.about__facts { display: grid; align-content: start; gap: clamp(2rem, 1rem + 3vw, 4rem); }
.fact { display: grid; gap: 0.6rem; }
.fact__big { font: 600 var(--fs-xl)/0.86 var(--serif); font-variation-settings: "opsz" 60; letter-spacing: -0.035em; color: var(--forest); }
.fact__text { max-width: 22ch; font-size: var(--fs-b); }
@media (max-width: 860px) {
  .about__facts { grid-row: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 3rem; gap: var(--gap); }
}

/* ---------- Approach: the movement as a strip of frames ---------- */
.strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(3.5rem, 2rem + 5vw, 6.5rem) var(--m) 0;
}
.strip img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: var(--charcoal-2); }
html.reveal .strip img { clip-path: inset(0 0 100% 0); }
html.reveal .strip.is-in img { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease) calc(var(--f) * 0.14s); }
@media (max-width: 860px) {
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Home visits ---------- */
.home__figure { align-self: start; justify-self: start; width: min(100%, 24.25rem); }
.home__figure img { width: 100%; height: auto; }
.home__steps { margin-top: clamp(2rem, 1.5rem + 1.5vw, 3rem); display: grid; gap: 1.1rem; max-width: 38rem; }
.home__steps strong { font-weight: 700; }
.home__area { margin-top: clamp(2rem, 1.5rem + 1.5vw, 3rem); max-width: 38rem; padding: 1.1rem 1.25rem; background: var(--oak-2); }
.home .main > p:last-child { margin-top: clamp(2rem, 1.5rem + 1.5vw, 3rem); }
@media (max-width: 860px) {
  .home__figure { grid-row: 2; margin-top: 3rem; }
}

/* ---------- FAQ ---------- */
.faq__aside { align-self: end; display: grid; gap: 0.75rem; max-width: 22ch; }
.faq__aside .link-arrow { color: var(--forest); }
.faq__list { margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); display: grid; gap: 0.375rem; }
.qa { background: var(--paper); }
.qa summary {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.25rem;
  padding: 1.15rem clamp(1rem, 0.6rem + 1.2vw, 1.75rem); cursor: pointer; list-style: none;
  font: 600 var(--fs-b)/1.35 var(--sans);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover .qa__q { text-decoration: underline; }
.qa__icon { position: relative; width: 1rem; height: 1rem; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 0; top: calc(50% - 1px); width: 100%; height: 2px; background: currentColor; transition: transform 0.3s var(--ease); }
.qa__icon::after { transform: rotate(90deg); }
.qa[open] .qa__icon::after { transform: rotate(0deg); }
.qa__a { padding: 0 clamp(1rem, 0.6rem + 1.2vw, 1.75rem) 1.4rem; max-width: 62ch; }
html.motion .qa[open] .qa__a { animation: rise 0.45s var(--ease); }
@media (max-width: 860px) {
  .faq__aside { grid-row: 2; margin-top: 2.5rem; align-self: start; max-width: none; }
}

/* ---------- Contact ---------- */
.contact__side { display: grid; grid-template-rows: auto 1fr; gap: clamp(2rem, 1rem + 2vw, 3rem); align-content: start; }
.contact__door { width: min(100%, 17rem); height: auto; }
.contact__direct-title { font: 600 var(--fs-b)/1.3 var(--sans); color: var(--accent); }
.contact__direct dl { margin-top: 1rem; display: grid; gap: 1rem; }
.contact__direct dt { font-size: var(--fs-s); color: var(--on-dark-2); }
.contact__direct dd { margin-top: 0.15rem; }
.contact__direct a { font-weight: 600; }
@media (max-width: 860px) {
  .contact__side { grid-row: 2; margin-top: 3.5rem; grid-template-rows: none; }
  .contact__door { display: none; }
}

.form { margin-top: clamp(2.25rem, 1.5rem + 2vw, 3.5rem); display: grid; gap: 1.6rem; max-width: 46rem; }

.field { display: grid; gap: 0.45rem; min-width: 0; align-content: start; }
.field label { font-weight: 600; }
.field__req { font-weight: 400; color: var(--on-dark-2); font-size: var(--fs-s); }
.field input, .field textarea, .form__preview textarea {
  width: 100%; padding: 0.85rem 1rem; background: var(--paper); color: var(--ink);
  border: 0; border-radius: 0; font-size: var(--fs-b); line-height: 1.45;
}
.field textarea { resize: vertical; min-height: 8.5rem; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.field [aria-invalid="true"] { box-shadow: inset 0 0 0 3px var(--error-dark); }
.field__hint { font-size: var(--fs-s); color: var(--on-dark-2); }
.field__error { font-size: var(--fs-s); font-weight: 600; color: var(--error-dark); }
.field__error::before { content: "! "; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem var(--gap); }
.form__submit { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1rem 1.5rem; }
.form__note { font-size: var(--fs-s); color: var(--on-dark-2); max-width: 40ch; }
.form__status:empty { display: none; }
.form__status { padding: 1rem 1.15rem; background: var(--charcoal-2); }
.form__status.is-error { box-shadow: inset 4px 0 0 var(--error-dark); }
.form__status.is-ok { box-shadow: inset 4px 0 0 var(--accent); }
.form__preview { display: grid; gap: 0.6rem; justify-items: start; }
.form__preview label { font-weight: 600; }
.form__preview textarea { font-size: 0.9375rem; }
.form__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 640px) {
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .form__submit { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: var(--on-dark); --focus: var(--accent); padding: clamp(4rem, 2rem + 6vw, 8rem) var(--m) 2rem; overflow: hidden; }
.site-footer__name {
  font: 600 13.6vw/0.84 var(--serif); font-variation-settings: "opsz" 60;
  letter-spacing: -0.045em; white-space: nowrap; margin-left: -0.04em; width: max-content;
}
html[lang="en"] .site-footer__name { font-size: 11.8vw; }
.site-footer__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3.5fr) minmax(0, 3.5fr); gap: 2rem var(--gap);
  margin-top: clamp(3rem, 2rem + 3vw, 5rem); font-size: var(--fs-s);
}
.site-footer__nav { display: grid; gap: 0.35rem; }
.site-footer__nav a, .site-footer__meta a { text-decoration: none; }
.site-footer__nav a:hover, .site-footer__meta a:hover { text-decoration: underline; }
.site-footer__meta { display: grid; gap: 0.6rem; align-content: start; justify-items: start; }
.site-footer__meta .lang a { font-size: var(--fs-s); padding-block: 0.25rem; }
@media (max-width: 760px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer__about { grid-column: 1 / -1; }
}

/* ---------- Section entrances (html.reveal is set by the script, so nothing stays hidden without it) ---------- */
html.reveal [data-section] [data-reveal] { opacity: 0; transform: translateY(26px); }
html.reveal [data-section].is-in [data-reveal] {
  opacity: 1; transform: none;
  transition: opacity 0.75s ease, transform 0.95s var(--ease);
  transition-delay: calc(var(--d, 0) * 75ms);
}

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

/* ==========================================================================
   Home-visit edition (2026-10-27): calls first, services and prices, tighter rhythm.
   ========================================================================== */
:root { --sec: clamp(4.5rem, 2.5rem + 5.5vw, 9rem); }
.sec--band { padding-block: clamp(3.5rem, 2rem + 4vw, 6rem); }

/* Calls to action */
.btn .i-phone { width: 1.05em; height: 1.05em; flex: none; }
.btn--lg { min-height: 3.4rem; padding: 1rem 1.5rem; font-size: 1.0625rem; }
.btn--line { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn--line:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.site-header__cta { gap: 0.5rem; white-space: nowrap; }
.site-header__num { font-variant-numeric: lining-nums tabular-nums; opacity: 0.9; }
@media (max-width: 1359px) { .site-header__num { display: none; } }

/* Hero: who, what, where, and the call */
.hero__kicker { margin-bottom: clamp(1rem, 0.6rem + 1vw, 1.5rem); font-size: var(--fs-s); font-weight: 600; letter-spacing: 0.02em; color: var(--accent); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-top: clamp(1.75rem, 1rem + 1.6vw, 2.5rem); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 0.35rem 1.75rem; margin-top: 1.5rem; font-size: var(--fs-s); color: var(--on-dark-2); }
.hero__meta li:first-child { color: var(--on-dark); font-weight: 600; }
html.motion .hero.is-in .hero__ctas { transition-delay: 0.52s; }
html.motion .hero.is-in .hero__meta { transition-delay: 0.62s; }

/* Services: physiotherapy first, then the massage price list */
.services__intro { align-self: start; position: sticky; top: calc(var(--header-h) + 2rem); }
.svc { display: grid; gap: clamp(2.25rem, 1.5rem + 2vw, 3.25rem); }
.svc-physio { display: grid; gap: 1rem; padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); background: var(--forest); color: var(--on-dark); --focus: var(--accent); }
.svc-physio__name { font: 600 var(--fs-m)/1.15 var(--serif); font-variation-settings: "opsz" 32; }
.svc-physio p { max-width: 54ch; }
.svc-physio__note { font-size: var(--fs-s); color: var(--on-dark-2); }
.svc-physio__meta { display: flex; flex-wrap: wrap; gap: 0.75rem 3rem; margin-block: 0.5rem; }
.svc-physio__meta dt { font-size: var(--fs-s); color: var(--on-dark-2); }
.svc-physio__meta dd { font: 600 var(--fs-m)/1.1 var(--serif); font-variant-numeric: lining-nums; }
.svc-massage__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.4rem 1.5rem; }
.svc-massage__title { font: 600 var(--fs-m)/1.15 var(--serif); font-variation-settings: "opsz" 32; }
.svc-massage__head p { font-size: var(--fs-s); font-weight: 600; color: var(--ink-2); }
.price-list { display: grid; gap: 4px; margin-top: 1.1rem; }
.price-list__item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.5rem; row-gap: 0.2rem;
  padding: 1rem 1.2rem; background: var(--paper-2); transition: background-color 0.25s ease;
}
.price-list__item:hover { background: #e2d9c8; }
.price-list__name { grid-column: 1; font: 600 var(--fs-b)/1.3 var(--serif); font-variation-settings: "opsz" 24; }
.price-list__desc { grid-column: 1; font-size: var(--fs-s); color: var(--ink-2); }
.price-list__meta { grid-column: 2; grid-row: 1 / 3; align-self: center; display: grid; justify-items: end; font-size: var(--fs-s); color: var(--ink-2); }
.price-list__price { font: 600 1.375rem/1.15 var(--serif); color: var(--ink); font-variant-numeric: lining-nums; }
.svc-after { display: grid; gap: 1rem; }
.svc-after > p:first-child { max-width: 46ch; }
.svc-after .link-arrow { color: var(--forest); }
@media (max-width: 860px) {
  .services__intro { position: static; margin-bottom: 2.5rem; }
}
@media (max-width: 420px) {
  .price-list__item { grid-template-columns: minmax(0, 1fr); }
  .price-list__meta { grid-column: 1; grid-row: auto; display: flex; gap: 1rem; margin-top: 0.4rem; }
}

/* Packages: a compact band between services and the reasons */
.packages__body { display: grid; gap: 1.5rem; align-content: start; }
.packages .lead { margin-top: 0; max-width: 40ch; }
@media (max-width: 860px) { .packages__body { margin-top: 1.25rem; } }

/* Why PhysioSport */
.why__statement { margin-top: 0; }
.why__items {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem var(--gap);
  margin-top: clamp(2.75rem, 1.5rem + 3vw, 4.25rem); padding-inline: var(--m);
}
.why__items li { padding-top: 1.25rem; box-shadow: inset 0 4px 0 var(--accent); }
.why__items h3 { font: 600 var(--fs-m)/1.15 var(--serif); font-variation-settings: "opsz" 32; }
.why__items p { margin-top: 0.6rem; max-width: 32ch; }
.why .strip { margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); }
.why__note { margin-top: 1.25rem; padding-inline: var(--m); color: var(--on-dark-2); }
@media (max-width: 1100px) { .why__items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .why__statement { margin-top: clamp(1.5rem, 1rem + 1.2vw, 2.25rem); } }
@media (max-width: 560px) { .why__items { grid-template-columns: minmax(0, 1fr); } }

/* Fact lists (home visits, contact) */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem var(--gap); margin-top: clamp(1.75rem, 1.2rem + 1.2vw, 2.5rem); max-width: 40rem; }
.facts dt { font-size: var(--fs-s); font-weight: 600; opacity: 0.86; }
.facts dd { margin-top: 0.2rem; font: 500 var(--fs-m)/1.25 var(--serif); font-variation-settings: "opsz" 32; font-variant-numeric: lining-nums; overflow-wrap: anywhere; }
.facts a { text-decoration: underline; }
.home .lead { max-width: 36ch; }
@media (max-width: 420px) { .facts { grid-template-columns: minmax(0, 1fr); } }

/* Contact: the number, the two buttons, then the email form folded away */
.contact__phone { margin-top: clamp(1.5rem, 1rem + 1vw, 2rem); font: 600 var(--fs-l)/1 var(--serif); font-variant-numeric: lining-nums; letter-spacing: -0.01em; }
.contact__phone a { text-decoration: none; }
.contact__phone a:hover { color: var(--accent); }
.contact .cta-row { margin-top: 1.5rem; }
.contact .facts { margin-top: 2.5rem; }
.write { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); max-width: 46rem; background: var(--charcoal-2); }
.write > summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; cursor: pointer; list-style: none; font-weight: 600; }
.write > summary::-webkit-details-marker { display: none; }
.write > summary::after { content: "+"; font-size: 1.35rem; line-height: 1; font-weight: 400; }
.write[open] > summary::after { content: "\2013"; }
.write .form { margin-top: 0; padding: 0.25rem 1.25rem 1.5rem; }
html.motion .write[open] .form { animation: rise 0.45s var(--ease); }

/* Footer: the closing call, then the name */
.site-footer__cta { display: grid; gap: 1.25rem; max-width: 48rem; margin-bottom: clamp(3.5rem, 2rem + 4vw, 6rem); }
.site-footer__cta .lead { margin-top: 0; }
.site-footer__contact { margin-top: 1rem; }
.site-footer__contact a { text-decoration: none; }
.site-footer__contact a:hover { text-decoration: underline; }

/* Phone bar: phones only, slides in once the hero's call button has scrolled away */
.callbar { display: none; }
@media (max-width: 640px) {
  .callbar {
    position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem;
    padding: 0.6rem var(--m) calc(0.6rem + env(safe-area-inset-bottom)); background: var(--charcoal); color: var(--on-dark); --focus: var(--accent);
    transform: translateY(110%); visibility: hidden; transition: transform 0.35s var(--ease), visibility 0s 0.35s;
  }
  .callbar.is-visible { transform: none; visibility: visible; transition: transform 0.35s var(--ease), visibility 0s; }
  .callbar .btn { min-height: 3rem; justify-content: center; }
  .site-footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
}

/* ==========================================================================
   2026-11-02: cookie consent, privacy page, mobile fixes. No photographs of the therapist (client choice).
   ========================================================================== */

/* A grid holding only its text column lets that column take the whole width. */
.grid > .main:only-child { grid-column: 1 / -1; }

/* Links that open a setting rather than a page */
.link-btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }

/* Consent banner: discreet, three equal choices */
.consent {
  position: fixed; right: var(--m); bottom: var(--m); z-index: 60; width: min(30rem, calc(100% - 2 * var(--m)));
  display: grid; gap: 0.75rem; padding: 1.25rem 1.35rem 1.35rem;
  background: var(--charcoal); color: var(--on-dark); --focus: var(--accent);
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.35);
}
.consent__title { font: 600 var(--fs-m)/1.15 var(--serif); }
.consent__text { font-size: var(--fs-s); line-height: 1.5; }
.consent__text a { font-weight: 600; }
.consent__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.consent__actions .btn { justify-content: center; min-height: 2.9rem; padding: 0.7rem 0.8rem; font-size: 0.9375rem; text-align: center; }
html.consent-open .callbar { visibility: hidden; }
html.motion .consent:not([hidden]) { animation: rise 0.45s var(--ease); }
@media (max-width: 640px) {
  .consent { left: 0; right: 0; bottom: 0; width: auto; padding-bottom: calc(1.25rem + env(safe-area-inset-bottom)); }
  .consent__actions { grid-template-columns: minmax(0, 1fr); }
}

/* Consent settings dialog */
.consent-dialog {
  width: min(40rem, calc(100% - 2rem)); max-height: min(90vh, 46rem); padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  border: 0; background: var(--paper); color: var(--ink); --focus: var(--forest); overflow: auto;
}
.consent-dialog::backdrop { background: rgb(16 18 15 / 0.6); }
.consent-dialog[open] { display: grid; gap: 1rem; }
.consent-dialog__title { font: 600 var(--fs-m)/1.15 var(--serif); }
.consent-dialog p { font-size: var(--fs-s); line-height: 1.55; }
.consent-dialog a { font-weight: 600; }
.consent-cats { display: grid; gap: 4px; }
.consent-cat { padding: 1rem 1.1rem; background: var(--paper-2); }
.consent-cat__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; }
.consent-cat__name { font-weight: 700; }
.consent-cat__state { font-size: var(--fs-s); font-weight: 600; color: var(--forest); }
.consent-cat p { margin-top: 0.35rem; color: var(--ink-2); }
.consent-svcs { margin-top: 0.4rem; font-size: var(--fs-s); color: var(--ink-2); }
.consent-none { padding: 1rem 1.1rem; background: var(--paper-2); }
.consent-dialog .consent__actions .btn--paper { background: var(--ink); color: var(--paper); }
.consent-dialog .consent__actions .btn--paper:hover { background: #33342f; }
.consent-dialog .consent__actions:has(> :only-child) { grid-template-columns: minmax(0, 14rem); }
@media (max-width: 640px) { .consent-dialog .consent__actions { grid-template-columns: minmax(0, 1fr); } }
.switch {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 2.75rem; height: 1.5rem; margin: 0;
  border-radius: 999px; background: #b9b3a6; cursor: pointer; transition: background-color 0.2s ease;
}
.switch::after {
  content: ""; position: absolute; top: 0.2rem; left: 0.2rem; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--paper); transition: transform 0.2s var(--ease);
}
.switch:checked { background: var(--forest); }
.switch:checked::after { transform: translateX(1.25rem); }

/* Phone bar: label above the number, so neither wraps */
.callbar__call { gap: 0.6rem; }
.callbar__text { display: grid; line-height: 1.15; text-align: left; }
.callbar__label { font-size: 0.8125rem; font-weight: 600; opacity: 0.85; }
.callbar__num { font-size: 1rem; font-weight: 700; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }

/* The four movement frames: a swipeable row on phones instead of a tall 2 x 2 block */
@media (max-width: 860px) {
  .strip {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(62vw, 18rem);
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
    margin-inline: 0; padding-inline: var(--m); gap: 4px;
  }
  .strip::-webkit-scrollbar { display: none; }
  .strip img { scroll-snap-align: start; }
}

/* Privacy page */
.legal { padding-block: calc(var(--header-h) + clamp(2.5rem, 2rem + 3vw, 5rem)) var(--sec); background: var(--paper); }
.legal__side { display: grid; gap: 1rem; align-content: start; position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
.legal__updated { font-size: var(--fs-s); color: var(--ink-2); }
.legal__side .link-arrow { color: var(--forest); }
.legal__title { margin-bottom: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.legal__intro { max-width: 40rem; margin-bottom: clamp(2rem, 1.5rem + 1.5vw, 3rem); font-size: var(--fs-b); line-height: 1.55; }
.legal__section { max-width: 40rem; }
.legal__section + .legal__section { margin-top: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem); }
.legal__section h2 { font: 600 var(--fs-m)/1.2 var(--serif); font-variation-settings: "opsz" 32; }
.legal__section p { margin-top: 0.75rem; }
.legal__section a { font-weight: 600; }
.cookie-list { margin-top: 0.75rem; display: grid; gap: 0.4rem; list-style: disc; padding-left: 1.25rem; }
@media (max-width: 860px) {
  .legal__side { position: static; grid-row: 2; margin-top: 2.5rem; }
}

/* Home visits: the practical facts stand in the side column as a column of figures */
.facts--side { margin-top: 0; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; align-content: start; max-width: 22rem; }
.facts--side > div { padding-top: 0.9rem; box-shadow: inset 0 3px 0 var(--accent); }
@media (min-width: 861px) { .home .facts--side { grid-column: 1; grid-row: 1; } }
@media (max-width: 860px) { .facts--side { margin-top: 2.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; } }
