/* ==========================================================================
   OsteoRise v2: the service pages look (Nov 2026)

   Loaded AFTER style.css, only by pages whose body has class="v2". Every
   rule below is scoped under .v2, so the older pages never change.

   The look follows the HeyGen-style story email Danilo picked on 18 Nov
   2026: light grey page, white rounded cards, two-tone headlines, black
   pill buttons, pastel feature cards, generous spacing. The OsteoRise
   logo, the yellow footer and the yellow #ffbf23 stay as the accent.

   Mobile first: base rules are for phones, min-width queries add the rest.
   Class reference and copy-paste markup: TEMPLATE.md in the repo root.
   ========================================================================== */

/* ---------- Tokens ---------- */
.v2 {
  --v2-page:        #f2f2f2;
  --v2-card:        #ffffff;
  --v2-ink:         #111111;
  --v2-light:       #949494;   /* headline line 1, large text only (3.0:1) */
  --v2-body:        #6b6b6b;   /* body text, 5.3:1 on white */
  --v2-pastel-text: #5f5f5f;   /* text on pastel cards, 5.6:1 */
  --v2-soft:        #f7f7f7;   /* tiles inside a white card */
  --v2-line:        #e7e7e7;

  --v2-blue:  #e3f3fc;
  --v2-lilac: #f3e8fc;
  --v2-green: #e7f5e5;
  --v2-peach: #fdeee3;

  --v2-r:    28px;   /* cards */
  --v2-r-md: 20px;   /* pastel cards, photos */
  --v2-r-sm: 14px;   /* tiles, notes */

  --v2-gap:  14px;   /* space between cards */
  --v2-head: var(--font-display);

  background: var(--v2-page);
  color: var(--v2-ink);
}

/* ---------- Page frame ---------- */
.v2-wrap {
  width: 100%;
  max-width: 1060px;
  margin-inline: auto;
  padding: 14px 12px 40px;
  display: flex;
  flex-direction: column;
  gap: var(--v2-gap);
}
@media (min-width: 720px) {
  .v2 { --v2-gap: 20px; }
  .v2-wrap { padding: 28px 20px 64px; }
}

/* ---------- Cards ---------- */
.v2-card {
  background: var(--v2-card);
  border-radius: var(--v2-r);
  padding: 32px 22px;
}
@media (min-width: 720px) { .v2-card { padding: 44px 40px; } }

.v2-card > :last-child { margin-bottom: 0; }

/* Text first, photo second on desktop; photo under the text on phones. */
.v2-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }
@media (min-width: 860px) {
  .v2-split { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 44px; }
  .v2-split--flip > :first-child { order: 2; }
}

.v2-center { text-align: center; }
.v2-center .v2-lead, .v2-center .v2-intro { margin-inline: auto; }
.v2-center .v2-actions, .v2-center .v2-chips { justify-content: center; }

/* ---------- Breadcrumbs and eyebrow ---------- */
.v2-crumbs { font-size: 14px; color: var(--v2-body); margin: 0 0 14px; }
.v2-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.v2-crumbs li + li::before { content: "/"; margin-right: 6px; color: #b5b5b5; }
.v2-crumbs a { color: var(--v2-body); text-decoration: none; }
.v2-crumbs a:hover { color: var(--v2-ink); text-decoration: underline; }
.v2-crumbs [aria-current] { color: var(--v2-ink); }

.v2-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--v2-head); font-size: 14px; font-weight: 500;
  letter-spacing: .02em; color: var(--v2-body);
  margin: 0 0 12px;
}
.v2-eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow); flex: none;
}

/* ---------- Two-tone headline ----------
   <h1 class="v2-h v2-h--xl"><span class="v2-h__light">Osteopathy</span>
   <span class="v2-h__strong">for back, neck and joint pain</span></h1>
   The spans are blocks, so the heading reads as one sentence to Google and
   to screen readers (no <br> needed). */
.v2 .v2-h {
  font-family: var(--v2-head);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.12;
  font-size: 28px;
  color: var(--v2-ink);
  margin: 0 0 16px;
  overflow-wrap: break-word;
}
.v2 .v2-h--xl { font-size: 36px; line-height: 1.08; margin-bottom: 18px; }
.v2-h__light, .v2-h__strong { display: block; }
.v2-h__light { color: var(--v2-light); }
.v2-h__strong { color: var(--v2-ink); }
@media (min-width: 720px) {
  .v2 .v2-h { font-size: 36px; }
  .v2 .v2-h--xl { font-size: 48px; }
}

.v2 .v2-h3 {
  font-family: var(--v2-head); font-weight: 700; letter-spacing: -0.2px;
  font-size: 19px; line-height: 1.3; color: var(--v2-ink); margin: 0 0 6px;
}

/* ---------- Text ---------- */
.v2-lead { font-size: 18px; line-height: 1.6; color: var(--v2-body); max-width: 36rem; margin: 0 0 22px; }
.v2-intro { font-size: 17px; line-height: 1.6; color: var(--v2-body); max-width: 44rem; margin: 0 0 24px; }
.v2-card p { color: var(--v2-body); font-size: 16px; line-height: 1.65; }
.v2-card p strong, .v2-card li strong { color: var(--v2-ink); }
.v2-card a:not([class]) { color: var(--v2-ink); text-decoration: underline; text-underline-offset: 2px; }
.v2-small { font-size: 14px !important; line-height: 1.55 !important; color: var(--v2-body); }
@media (min-width: 720px) { .v2-lead { font-size: 19px; } }

/* ---------- Buttons ---------- */
.v2-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 4px; }
.v2-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px;
  padding: 17px 38px;
  border-radius: 999px;
  background: var(--v2-ink); color: #fff;
  border: 1.5px solid var(--v2-ink);
  font-family: var(--font-body); font-size: 16px; font-weight: 600; line-height: 1.2;
  text-decoration: none; text-align: center;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.v2-btn:hover { background: #333; border-color: #333; }
.v2-btn--ghost { background: transparent; color: var(--v2-ink); }
.v2-btn--ghost:hover { background: var(--v2-ink); color: #fff; border-color: var(--v2-ink); }
.v2-btn--yellow { background: var(--yellow); border-color: var(--yellow); color: var(--v2-ink); }
.v2-btn--yellow:hover { background: #fff; border-color: #fff; color: var(--v2-ink); }
.v2-btn--sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
@media (max-width: 559px) {
  .v2-actions .v2-btn:not(.v2-btn--sm) { flex: 1 1 100%; }
}
@media (min-width: 560px) {
  .v2-btn { padding: 15px 34px; }
  .v2-btn--sm { padding: 10px 18px; }
}

/* ---------- Chips (quick facts under the hero text) ---------- */
.v2-chips { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.v2-chips li {
  display: inline-block;
  background: var(--v2-soft); border-radius: 999px;
  padding: 7px 14px; font-size: 14px; line-height: 1.3; color: var(--v2-ink);
}
.v2-chips li::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 7px; height: 7px; border-radius: 50%; margin: -2px 7px 0 0;
  background: var(--yellow);
}

/* ---------- Photos ---------- */
.v2-media { margin: 0; border-radius: var(--v2-r-md); overflow: hidden; background: var(--v2-soft); }
.v2-media img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 35%; }
@media (min-width: 860px) {
  .v2-media--tall img { aspect-ratio: 4 / 5; object-position: center; }
}
.v2-credit { font-size: 12px; color: #8a8a8a; margin: 8px 2px 0; }

/* ---------- Grids ---------- */
.v2-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) {
  .v2-grid--2, .v2-grid--3, .v2-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .v2-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v2-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Pastel feature cards ---------- */
.v2-pastel {
  border-radius: var(--v2-r-md);
  padding: 24px 26px;
  background: var(--v2-blue);
}
.v2-pastel--blue  { background: var(--v2-blue); }
.v2-pastel--lilac { background: var(--v2-lilac); }
.v2-pastel--green { background: var(--v2-green); }
.v2-pastel--peach { background: var(--v2-peach); }
.v2-card .v2-pastel p { color: var(--v2-pastel-text); font-size: 16px; line-height: 1.55; margin: 0; }
.v2-pastel a:not([class]) { color: var(--v2-ink); }

/* ---------- Tiles (a soft grey box inside a white card) ---------- */
.v2-tile {
  display: block;
  background: var(--v2-soft); border-radius: var(--v2-r-sm);
  padding: 18px 20px; color: inherit; text-decoration: none;
}
.v2-card .v2-tile p { font-size: 15px; line-height: 1.55; margin: 0; }
/* At least 44px tall, so it is easy to tap on a phone. */
.v2-more {
  display: inline-flex; align-items: center; gap: .3em; min-height: 44px; margin-top: 2px; padding-block: 0;
  font-size: 14px; font-weight: 600; color: var(--v2-ink); text-decoration: none;
}
.v2-more::after { content: "\2192"; }
.v2-more:hover { text-decoration: underline; }

/* A tile with one .v2-more link inside: the whole tile is the link target
   (the link stretches over the tile), and the link text names it for
   screen readers ("Read about back pain"). */
.v2-tile--link { position: relative; transition: background-color .18s ease; }
.v2-tile--link .v2-more::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.v2-tile--link:hover { background: #ececec; }
.v2-tile--link:hover .v2-more { text-decoration: underline; }

/* ---------- Tick list ---------- */
.v2-ticks { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.v2-ticks li {
  position: relative; padding-left: 32px;
  font-size: 16px; line-height: 1.55; color: var(--v2-body);
}
.v2-ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23111' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (min-width: 720px) { .v2-ticks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; } }

/* ---------- Numbered steps ---------- */
.v2-steps { list-style: none; margin: 0; padding: 0; counter-reset: v2step; display: grid; gap: 18px; }
.v2-steps li { counter-increment: v2step; position: relative; padding-left: 52px; min-height: 36px; }
.v2-steps li::before {
  content: counter(v2step);
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--yellow); color: var(--v2-ink);
  font-family: var(--v2-head); font-weight: 700; font-size: 16px;
}
.v2-steps .v2-h3 { margin: 6px 0 4px; }
.v2-card .v2-steps p { margin: 0; font-size: 15.5px; }

/* ---------- Prices ---------- */
.v2-prices { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--v2-line); }
.v2-price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name amount" "name book";
  gap: 6px 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--v2-line);
}
.v2-price__name { grid-area: name; font-family: var(--v2-head); font-weight: 700; font-size: 17px; line-height: 1.3; color: var(--v2-ink); }
.v2-price__meta { display: block; font-family: var(--font-body); font-weight: 400; font-size: 14px; color: var(--v2-body); margin-top: 2px; }
.v2-price__amount { grid-area: amount; font-family: var(--v2-head); font-weight: 700; font-size: 22px; color: var(--v2-ink); white-space: nowrap; text-align: right; }
.v2-price__book { grid-area: book; justify-self: end; }
@media (min-width: 640px) {
  .v2-price { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "name amount book"; }
}

/* ---------- People ---------- */
.v2-person { display: flex; gap: 16px; align-items: flex-start; }
.v2-person img {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  flex: 0 0 72px; background: var(--v2-soft);
}
.v2-person .v2-h3 { margin: 4px 0 2px; }
.v2-person__role { font-size: 14px !important; color: var(--v2-body); margin: 0 0 6px !important; }
/* One column on phones: photo beside the text. In a 2 or 3 column grid the
   photo sits above the text, so the text keeps a readable width. */
@media (min-width: 640px) {
  .v2-grid .v2-person { flex-direction: column; gap: 12px; }
  .v2-grid .v2-person .v2-h3 { margin-top: 0; }
}

/* ---------- FAQs (details/summary: works with no JavaScript) ---------- */
.v2-faq { border-top: 1px solid var(--v2-line); }
.v2-faq details { border-bottom: 1px solid var(--v2-line); }
.v2-faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 2px;
  font-family: var(--v2-head); font-weight: 700; font-size: 17px; line-height: 1.35; color: var(--v2-ink);
}
.v2-faq summary::-webkit-details-marker { display: none; }
.v2-faq summary::after {
  content: "+"; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--v2-soft); font-size: 20px; font-weight: 500; line-height: 1;
  transition: transform .2s ease;
}
.v2-faq details[open] summary::after { transform: rotate(45deg); }
.v2-faq__a { padding: 0 2px 18px; }
.v2-faq__a p { margin: 0 0 .7em; }

/* ---------- Review quote ---------- */
.v2-quote { margin: 0; }
.v2-quote blockquote { margin: 0 0 14px; }
.v2-card .v2-quote blockquote p {
  font-family: var(--v2-head); font-weight: 500; font-size: 22px; line-height: 1.35;
  letter-spacing: -0.3px; color: var(--v2-ink);
}
.v2-quote figcaption { font-size: 14px; color: var(--v2-body); }
.v2-stars { color: #b97f00; letter-spacing: 2px; margin-bottom: 10px; font-size: 18px; }
@media (min-width: 720px) { .v2-card .v2-quote blockquote p { font-size: 26px; } }

/* ---------- Notes (health and safety) ---------- */
.v2-note {
  background: var(--v2-soft); border-left: 4px solid var(--yellow);
  border-radius: var(--v2-r-sm); padding: 16px 18px; margin: 0 0 16px;
}
.v2-card .v2-note p { font-size: 15px; margin: 0; }

/* ---------- Class timetable (baked by build.mjs) ---------- */
.v2-classes { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--v2-line); }
.v2-class {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 2px 14px;
  padding: 14px 0; border-bottom: 1px solid var(--v2-line);
}
.v2-class__when { grid-row: span 2; font-family: var(--v2-head); font-weight: 700; color: var(--v2-ink); line-height: 1.3; }
.v2-class__day { display: block; font-size: 15px; }
.v2-class__time { display: block; font-size: 15px; color: var(--v2-body); font-weight: 500; }
.v2-class__name { font-weight: 600; color: var(--v2-ink); }
.v2-class__meta { font-size: 14px; color: var(--v2-body); }

/* ---------- Final booking band ---------- */
.v2-band { background: var(--v2-ink); color: #fff; text-align: center; }
.v2-band .v2-h__light { color: #a3a3a3; }
.v2-band .v2-h__strong, .v2-band .v2-h { color: #fff; }
.v2-band p { color: #cfcfcf !important; }
.v2-band a:not([class]) { color: #fff !important; }
.v2-band .v2-lead { margin-inline: auto; }
.v2-band .v2-actions { justify-content: center; }
.v2-band .v2-btn--ghost { color: #fff; border-color: #fff; }
.v2-band .v2-btn--ghost:hover { background: #fff; color: var(--v2-ink); }
.v2-band :focus-visible { outline-color: var(--yellow); }

/* ---------- Section spacing inside a card ---------- */
.v2-stack > * + * { margin-top: 28px; }
.v2-divider { height: 1px; background: var(--v2-line); border: 0; margin: 28px 0; }

/* The hidden attribute wins over any display rule above (build.mjs and
   main.js hide past classes and ended prices with it). */
.v2 [hidden] { display: none !important; }

/* ---------- Service tiles (home and the services overview) ----------
   <div class="v2-svcs"> of <article class="v2-svc">: photo, title link,
   one line, price and length, Book and More links. Phones: a compact row
   with a square thumbnail. From 640px: a card with the photo on top. */
.v2-svcs { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .v2-svcs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 960px) { .v2-svcs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.v2-svc {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: start;
  background: var(--v2-soft); border-radius: 18px; padding: 12px; scroll-margin-top: 16px;
}
.v2-svc__img { width: 92px; height: 92px; border-radius: 12px; object-fit: cover; background: #e9e9e9; }
.v2-svc__body { display: flex; flex-direction: column; min-width: 0; height: 100%; }
.v2 .v2-svc .v2-h3 { margin: 2px 0 4px; }
.v2-svc .v2-h3 a { color: inherit; text-decoration: none; display: inline-block; padding-block: 10px; margin-block: -10px; }
.v2-svc .v2-h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.v2-card .v2-svc p { font-size: 15px; line-height: 1.5; margin: 0 0 8px; }
.v2-card .v2-svc .v2-svc__meta { font-size: 14px; font-weight: 600; color: var(--v2-ink); margin-bottom: 10px; }
.v2-svc__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: auto; }
.v2-svc__actions .v2-more { margin-top: 0; }
@media (min-width: 640px) {
  .v2-svc { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; }
  .v2-svc__img { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; }
  .v2-svc__body { padding: 16px 20px 20px; }
}
/* One tile across the whole row (photo beside the text from 640px). */
@media (min-width: 640px) {
  .v2-svc--wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
  .v2-svc--wide .v2-svc__img { height: 100%; min-height: 220px; aspect-ratio: auto; }
  .v2-svc--wide .v2-svc__body { padding: 24px 28px; justify-content: center; }
}
@media (min-width: 960px) {
  .v2-svc--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}
.v2-group-title {
  font-family: var(--v2-head); font-size: 15px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--v2-body); margin: 30px 0 12px;
}
.v2-group-title:first-of-type { margin-top: 6px; }

/* ---------- Price table (/prices) ----------
   A real <table>. Phones: three columns (the length moves under the name);
   from 560px the length gets its own column. */
.v2-table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; }
.v2-table th, .v2-table td {
  padding: 12px 6px; border-bottom: 1px solid var(--v2-line);
  text-align: left; vertical-align: middle; color: var(--v2-body);
}
.v2-table thead th {
  font-family: var(--v2-head); font-size: 13px; font-weight: 500; letter-spacing: .04em;
  text-transform: uppercase; color: var(--v2-body); padding-top: 4px;
}
.v2-table tbody th { font-weight: 600; color: var(--v2-ink); }
.v2-card .v2-table th a { color: inherit; text-decoration: none; display: inline-block; padding-block: 12px; margin-block: -12px; }
.v2-card .v2-table th a:hover { text-decoration: underline; text-underline-offset: 3px; }
.v2-table__sub { display: block; font-weight: 400; font-size: 13.5px; line-height: 1.45; color: var(--v2-body); margin-top: 2px; }
.v2-table .v2-table__group th {
  background: var(--v2-soft); color: var(--v2-ink);
  font-family: var(--v2-head); font-size: 16px; font-weight: 700; padding: 10px 12px;
  border-bottom: 0;
}
.v2-table__num { text-align: right !important; white-space: nowrap; }
.v2-table__price { font-family: var(--v2-head); font-weight: 700; font-size: 17px; color: var(--v2-ink) !important; }
.v2-table__len { display: none; white-space: nowrap; }
.v2-table__book { width: 1%; text-align: right !important; padding-right: 0 !important; }
.v2-table .v2-btn--sm { min-height: 44px; padding: 6px 13px; font-size: 14px; }
@media (min-width: 560px) {
  .v2-table__len { display: table-cell; }
  .v2-table__len-inline { display: none; }
}
@media (min-width: 720px) {
  .v2-table { font-size: 16px; }
  .v2-table th, .v2-table td { padding: 14px 12px; }
  .v2-table .v2-btn--sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
}
