/* OsteoCare - shared styles for index.html (he, rtl) and index-en.html (en, ltr)
   Visual language: Airbnb-style system (white surfaces, soft radii, one shadow tier)
   tuned to the OsteoCare logo palette. Light theme only, by design. */

:root {
  /* Brand */
  --green: #4B9A58;        /* logo green: accents, large text, icons */
  --green-ink: #3A7F46;    /* button fill + small green text (AA on white/mint) */
  --green-deep: #326E3D;   /* pressed / hover */
  --navy: #113B61;         /* headings, ink */
  --mint: #F5FBFB;         /* page canvas */
  --mint-2: #EAF4F0;       /* tinted bands */
  --surface: #FFFFFF;

  /* Text */
  --ink: #113B61;
  --body: #33485C;
  --muted: #5E6B78;

  /* Lines */
  --hairline: #DCE6E6;
  --hairline-soft: #E8EFEF;

  /* Shape: buttons + chips are pills, cards 20px, media 20px, small tiles 14px */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* The single elevation tier (Airbnb), tinted to navy */
  --shadow: 0 0 0 1px rgba(17, 59, 97, .04), 0 2px 6px rgba(17, 59, 97, .05), 0 6px 16px rgba(17, 59, 97, .08);
  --shadow-photo: 0 40px 80px -32px rgba(17, 59, 97, .35);

  /* Motion */
  --ease-out: cubic-bezier(.23, 1, .32, 1);      /* UI feedback */
  --ease-zen: cubic-bezier(.16, 1, .3, 1);       /* long, soft entrances */
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);   /* menu sheet */
  --ease-breathe: cubic-bezier(.45, 0, .55, 1);  /* symmetric loops */

  /* Layout */
  --gutter: 20px;
  --max: 1200px;
  --header-h: 72px;
  --dir: 1;

  --font: "Plus Jakarta Sans", "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  color-scheme: light;
  interpolate-size: allow-keywords;
}
[dir="rtl"] { --dir: -1; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: var(--mint);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, iframe { display: block; max-width: 100%; }
main, .site-footer { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 650; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--green-ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(75, 154, 88, .22); }

.container { width: min(var(--max), 100% - max(var(--gutter), env(safe-area-inset-left), env(safe-area-inset-right)) * 2); margin-inline: auto; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: rgba(75, 154, 88, .14); }
.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-pill);
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border-radius: var(--r-pill); border: 1px solid transparent;
  font-weight: 650; font-size: 16px; line-height: 1.2; white-space: nowrap;
  cursor: pointer; touch-action: manipulation;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out), transform .16s var(--ease-out), box-shadow .2s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn i { font-size: 1.2em; }
.btn-primary { background: var(--green-ink); color: #fff; box-shadow: 0 8px 22px -10px rgba(58, 127, 70, .7); }
.btn-ghost { background: var(--surface); color: var(--navy); border-color: var(--hairline); }
.btn-lg { min-height: 60px; padding: 16px 34px; font-size: 18px; }
.btn-on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
@media (hover: hover) {
  .btn-primary:hover { background: var(--green-deep); }
  .btn-ghost:hover { border-color: var(--navy); }
  .btn-on-dark:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
}
.btn-arrow { transition: transform .3s var(--ease-out); }
[dir="rtl"] .btn-arrow { transform: scaleX(-1); }
@media (hover: hover) {
  .btn:hover .btn-arrow { transform: translateX(calc(3px * var(--dir))); }
  [dir="rtl"] .btn:hover .btn-arrow { transform: scaleX(-1) translateX(3px); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease-out), background-color .4s var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--hairline); background: rgba(255, 255, 255, .92); }
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 46px; height: auto; }
.brand-text { display: grid; line-height: 1.1; }
.brand-name { font-size: 21px; font-weight: 700; letter-spacing: -.01em; color: var(--navy); direction: ltr; }
.brand-name span { color: var(--green); }
.brand-sub { font-size: 12px; color: var(--muted); unicode-bidi: plaintext; }
.nav-links { display: none; gap: 4px; align-items: center; }
.nav-links a {
  font-size: 15px; font-weight: 550; color: var(--navy); padding: 8px 11px; border-radius: var(--r-pill); white-space: nowrap;
  transition: background-color .2s var(--ease-out);
}
@media (hover: hover) { .nav-links a:hover { background: var(--mint-2); } }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; padding: 3px; border: 1px solid var(--hairline); border-radius: var(--r-pill); background: var(--surface); }
.lang-switch a { font-size: 13px; font-weight: 650; padding: 6px 11px; border-radius: var(--r-pill); color: var(--muted); line-height: 1.2; transition: background-color .2s var(--ease-out), color .2s var(--ease-out); }
.lang-switch a[aria-current="page"] { background: var(--navy); color: #fff; }
@media (hover: hover) { .lang-switch a:not([aria-current]):hover { color: var(--navy); } }
.header-book { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.menu-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--hairline); background: var(--surface); border-radius: var(--r-pill);
  color: var(--navy); font-size: 22px; cursor: pointer; touch-action: manipulation;
  transition: transform .16s var(--ease-out);
}
.menu-btn:active { transform: scale(.94); }

@media (min-width: 1280px) {
  .nav-links { display: flex; }
  .menu-btn { display: none; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .brand img { width: 38px; }
  .brand-name { font-size: 18px; }
  .brand-sub { display: none; }
  .header-book { display: none; }
}

/* Menu sheet (native <dialog>) */
.menu-sheet {
  position: fixed; inset: 0 0 0 auto; inset-inline-end: 0; inset-inline-start: auto;
  margin: 0; height: 100dvh; max-height: none; width: min(400px, 88vw);
  border: 0; padding: 24px; background: var(--surface); color: var(--ink);
  box-shadow: 0 0 60px rgba(17, 59, 97, .18);
  overscroll-behavior: contain; overflow-y: auto;
  transform: translateX(calc(105% * var(--dir)));
  transition: transform .42s var(--ease-drawer), overlay .42s allow-discrete, display .42s allow-discrete;
}
.menu-sheet[open] { transform: translateX(0); }
@starting-style { .menu-sheet[open] { transform: translateX(calc(105% * var(--dir))); } }
.menu-sheet.is-closing { transform: translateX(calc(105% * var(--dir))); }
.menu-sheet::backdrop { background: rgba(10, 31, 50, 0); transition: background-color .42s var(--ease-out), overlay .42s allow-discrete, display .42s allow-discrete; }
.menu-sheet[open]::backdrop { background: rgba(10, 31, 50, .32); }
@starting-style { .menu-sheet[open]::backdrop { background: rgba(10, 31, 50, 0); } }
.menu-sheet.is-closing::backdrop { background: rgba(10, 31, 50, 0); }
.menu-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--hairline); }
.menu-head strong { font-size: 20px; color: var(--navy); }
.menu-list { display: grid; padding: 8px 0 20px; }
.menu-list a { padding: 13px 4px; font-size: 18px; font-weight: 550; color: var(--navy); border-bottom: 1px solid var(--hairline-soft); }
@media (hover: hover) { .menu-list a:hover { color: var(--green-ink); } }
.menu-sheet .lang-switch { width: fit-content; margin-bottom: 16px; }
.menu-sheet .btn { width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 6vw, 88px); }
.mist { position: absolute; inset: -20%; z-index: -1; pointer-events: none; }
.mist span {
  position: absolute; border-radius: 50%;
  filter: blur(48px);
  will-change: transform;
}
.mist .m1 { width: 62vmax; height: 46vmax; top: 2%;  inset-inline-start: -6%; background: radial-gradient(closest-side, rgba(75, 154, 88, .20), transparent); animation: drift-a 48s var(--ease-breathe) infinite alternate; }
.mist .m2 { width: 54vmax; height: 40vmax; top: 30%; inset-inline-end: -10%; background: radial-gradient(closest-side, rgba(17, 59, 97, .12), transparent); animation: drift-b 60s var(--ease-breathe) infinite alternate; }
.mist .m3 { width: 46vmax; height: 34vmax; top: 48%; inset-inline-start: 26%; background: radial-gradient(closest-side, rgba(255, 255, 255, .95), transparent); animation: drift-c 40s var(--ease-breathe) infinite alternate; }
.mist .m4 { width: 40vmax; height: 30vmax; top: -6%; inset-inline-end: 18%; background: radial-gradient(closest-side, rgba(120, 190, 170, .16), transparent); animation: drift-a 54s var(--ease-breathe) -20s infinite alternate-reverse; }
@keyframes drift-a { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(8vw, 4vh, 0) scale(1.12); } }
@keyframes drift-b { from { transform: translate3d(0, 0, 0) scale(1.05); } to { transform: translate3d(-9vw, -5vh, 0) scale(.95); } }
@keyframes drift-c { from { transform: translate3d(-4vw, 2vh, 0); } to { transform: translate3d(6vw, -6vh, 0); } }

.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-kicker { font-size: 15px; font-weight: 650; color: var(--green-ink); margin-bottom: 14px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 80px); line-height: 1.04; letter-spacing: -.02em; font-weight: 650; }
.hero h1 .line { display: block; }
.hero h1 .accent { color: var(--green); font-weight: 600; font-size: .62em; letter-spacing: -.01em; line-height: 1.2; margin-top: .2em; direction: ltr; }
[dir="rtl"] .hero h1 .accent { text-align: right; }
.hero-lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.65; max-width: 34em; margin-top: 22px; color: var(--body); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 16px; font-size: 15px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-note i { color: var(--green); font-size: 18px; }

.hero-media { position: relative; justify-self: center; width: min(100%, 520px); }
.hero-photo {
  aspect-ratio: 9 / 10; border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-photo); background: var(--mint-2);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; transform: scale(1.03); transform-origin: 50% 35%; }
.hero-badge {
  position: absolute; bottom: 28px; inset-inline-start: -28px;
  background: var(--surface); border-radius: var(--r-lg); padding: 16px 20px 16px 18px;
  box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; max-width: 290px;
}
.hero-badge img { width: 44px; height: auto; flex-shrink: 0; }
.hero-badge strong { display: block; color: var(--navy); font-size: 16px; line-height: 1.3; }
.hero-badge small { display: block; color: var(--green-ink); font-size: 13px; font-weight: 600; unicode-bidi: plaintext; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 56px; min-height: min(calc(100dvh - var(--header-h) - 120px), 700px); }
  .hero-media { justify-self: end; }
}
@media (max-width: 899px) {
  .hero-badge { inset-inline-start: 12px; bottom: 16px; }
  .hero-media { width: min(100%, 460px); }
}
@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; }
}

/* ---------- Trust strip ---------- */
.trust { padding: 0 0 clamp(56px, 7vw, 96px); }
.trust-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow);
  overflow: hidden;
}
.trust-item { padding: 24px 16px; text-align: center; display: grid; gap: 4px; align-content: center; }
.trust-item + .trust-item { border-inline-start: 1px solid var(--hairline-soft); }
.trust-item:nth-child(3) { border-inline-start: 0; }
.trust-item:nth-child(n+3) { border-top: 1px solid var(--hairline-soft); }
.trust-num { font-size: clamp(30px, 3.4vw, 42px); font-weight: 700; color: var(--navy); line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.trust-num em { font-style: normal; color: var(--green); }
.trust-label { font-size: 15px; color: var(--muted); font-weight: 500; }
@media (min-width: 760px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-item:nth-child(3) { border-inline-start: 1px solid var(--hairline-soft); }
  .trust-item:nth-child(n+3) { border-top: 0; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tint { background: var(--mint-2); }
.section-white { background: var(--surface); }
.eyebrow { display: block; font-size: 15px; font-weight: 650; color: var(--green-ink); margin-bottom: 12px; }
.h2 { font-size: clamp(32px, 3.8vw, 48px); line-height: 1.15; letter-spacing: -.015em; }
.lead { font-size: 18px; color: var(--muted); margin-top: 14px; max-width: 40em; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

/* About */
.about-grid { display: grid; gap: 40px; align-items: start; }
.about-copy p + p { margin-top: 16px; }
.about-copy .h2 { margin-bottom: 22px; }
.quote {
  margin: 32px 0 0; padding: 4px 0; padding-inline-start: 22px;
  border-inline-start: 3px solid var(--green);
  font-size: clamp(19px, 1.8vw, 23px); line-height: 1.55; font-weight: 550; color: var(--navy);
}
.about-card { background: var(--surface); border-radius: var(--r-lg); padding: clamp(28px, 3.4vw, 44px); box-shadow: var(--shadow); }
.about-card h3 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 14px; }
.about-card > p { color: var(--body); }
.check-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--navy); font-weight: 550; }
.check-list i { flex-shrink: 0; width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--r-pill); background: var(--mint-2); color: var(--green-ink); font-size: 15px; margin-top: 1px; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1.1fr .9fr; gap: 72px; } .about-card { margin-top: 48px; } }

/* Osteopathy */
.osteo-grid { display: grid; gap: 44px; align-items: center; }
.osteo-copy p { font-size: 18px; }
.osteo-copy p + p { margin-top: 14px; }
.osteo-copy .h2 { margin-bottom: 20px; }
.principles { display: grid; gap: 0; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 8px clamp(20px, 3vw, 32px); }
.principle { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 22px 0; align-items: start; }
.principle + .principle { border-top: 1px solid var(--hairline-soft); }
.principle i { width: 48px; height: 48px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--mint-2); color: var(--green-ink); font-size: 24px; }
.principle strong { display: block; font-size: 19px; color: var(--navy); margin-bottom: 2px; }
.principle span { color: var(--muted); }
@media (min-width: 960px) { .osteo-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }

/* Audience cards */
.audience-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.aud-card {
  background: var(--surface); border-radius: var(--r-lg); padding: 12px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.aud-img { aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: #EEF5F1; }
.aud-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transition: transform 1.4s var(--ease-zen); }
.aud-card h3 { font-size: 19px; margin-bottom: 4px; }
.aud-card p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
@media (min-width: 640px) {
  .audience-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .aud-card { grid-template-columns: 112px 1fr; gap: 20px; padding: 14px; }
}
@media (min-width: 1000px) { .audience-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
@media (hover: hover) {
  .aud-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(17,59,97,.05), 0 18px 40px -18px rgba(17,59,97,.28); }
  .aud-card:hover .aud-img img { transform: scale(1.2); }
}

/* How it works: timeline */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding-bottom: 36px; position: relative; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; inset-inline-start: 27px; top: 56px; bottom: 0; width: 1px; background: linear-gradient(var(--green), var(--hairline)); }
.step:last-child::before { display: none; }
.step-num {
  width: 56px; height: 56px; border-radius: var(--r-pill); display: grid; place-items: center;
  background: var(--surface); color: var(--green-ink); font-weight: 700; font-size: 18px;
  box-shadow: var(--shadow); font-variant-numeric: tabular-nums; position: relative; z-index: 1;
}
.step h3 { font-size: 21px; line-height: 1.35; margin: 12px 0 8px; }
.step p { color: var(--muted); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .step { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .step::before { inset-inline-start: 72px; inset-inline-end: -40px; top: 28px; bottom: auto; width: auto; height: 1px; background: linear-gradient(to right, var(--green), var(--hairline)); }
  [dir="rtl"] .step::before { background: linear-gradient(to left, var(--green), var(--hairline)); }
  .step h3 { margin-top: 24px; }
}

/* Booking band */
.booking-wrap { padding: clamp(24px, 4vw, 40px) 0 clamp(64px, 9vw, 120px); }
.booking-card {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy); color: #fff; border-radius: var(--r-xl);
  padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 72px); text-align: center;
}
.booking-card .mist span { filter: blur(56px); }
.booking-card .mist .m1 { background: radial-gradient(closest-side, rgba(75, 154, 88, .45), transparent); }
.booking-card .mist .m2 { background: radial-gradient(closest-side, rgba(36, 120, 150, .35), transparent); }
.booking-card .mist .m3 { background: radial-gradient(closest-side, rgba(255, 255, 255, .06), transparent); }
.booking-card h2 { color: #fff; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.1; letter-spacing: -.02em; }
.booking-card p { color: rgba(255, 255, 255, .82); font-size: clamp(17px, 1.6vw, 20px); max-width: 34em; margin: 16px auto 32px; }
.booking-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.booking-card :focus-visible { outline-color: #fff; }

/* Instagram */
.insta-grid { display: grid; gap: 28px; align-items: center; }
.insta-copy { background: var(--surface); border-radius: var(--r-lg); padding: clamp(28px, 3.4vw, 44px); box-shadow: var(--shadow); }
.insta-handle { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 700; color: var(--navy); margin: 22px 0 10px; direction: ltr; justify-content: flex-start; }
[dir="rtl"] .insta-handle { justify-content: flex-end; }
.insta-handle i { font-size: 30px; color: var(--green); }
.insta-copy p { color: var(--muted); margin-bottom: 24px; }
.insta-embed { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 12px; min-height: 300px; display: flex; justify-content: center; overflow: hidden; }
.insta-embed .instagram-media { margin: 0 auto !important; max-width: 540px !important; min-width: 0 !important; width: 100% !important; }
@media (min-width: 900px) { .insta-grid { grid-template-columns: .9fr 1.1fr; gap: 48px; } }

/* Patient stories */
.videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2.4vw, 28px); max-width: 680px; margin-inline: auto; }
.video-card { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #0E2A44; box-shadow: var(--shadow-photo); aspect-ratio: 9 / 16; }
.video-card video { width: 100%; height: 100%; object-fit: cover; background: #0E2A44; }
.video-card:nth-child(2) { transform: translateY(clamp(16px, 4vw, 48px)); }
.video-play {
  position: absolute; inset: 0; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer;
  background: linear-gradient(180deg, rgba(17, 59, 97, 0) 45%, rgba(17, 59, 97, .55));
  transition: opacity .35s var(--ease-out), visibility .35s;
}
.video-play-icon {
  width: clamp(60px, 8vw, 78px); height: clamp(60px, 8vw, 78px); border-radius: var(--r-pill);
  display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--navy);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: clamp(24px, 3vw, 30px); box-shadow: 0 10px 30px rgba(10, 31, 50, .25);
  transition: transform .3s var(--ease-out);
}
.video-play-icon i { transform: translateX(2px); }
.video-play-label { position: absolute; bottom: 16px; inset-inline: 16px; color: #fff; font-weight: 600; font-size: 15px; text-align: center; }
@media (hover: hover) { .video-play:hover .video-play-icon { transform: scale(1.06); } }
.video-play:active .video-play-icon { transform: scale(.96); }
.video-card.is-playing .video-play { opacity: 0; visibility: hidden; }

.reviews { margin-top: clamp(72px, 9vw, 120px); }
.reviews-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.reviews-head h3 { font-size: 22px; }
.marquee-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--hairline); background: var(--surface); border-radius: var(--r-pill);
  color: var(--navy); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: border-color .2s var(--ease-out), transform .16s var(--ease-out);
}
.marquee-toggle:active { transform: scale(.97); }
@media (hover: hover) { .marquee-toggle:hover { border-color: var(--navy); } }
.marquee {
  overflow: hidden; padding: 12px 0 20px; margin-inline: calc(50% - 50vw);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track { display: flex; width: max-content; }
.marquee-track.is-looping { animation: marquee var(--marquee-dur, 220s) linear infinite; }
.marquee-group { display: flex; gap: 18px; padding-inline-end: 18px; list-style: none; margin: 0; padding-inline-start: 0; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track, .marquee.is-paused .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% * var(--dir))); } }
.review {
  width: 320px; flex-shrink: 0; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
}
.review-stars { display: flex; gap: 2px; color: var(--navy); font-size: 15px; }
.review p { color: var(--navy); font-size: 16.5px; line-height: 1.6; flex: 1; }
.review footer { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; border-top: 1px solid var(--hairline-soft); padding-top: 12px; }
.review cite { font-style: normal; font-weight: 650; color: var(--navy); }
.review time { color: var(--muted); font-variant-numeric: tabular-nums; }

/* FAQ */
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px; font-size: 18px; font-weight: 650; color: var(--navy); border-radius: var(--r-lg);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary { transition: background-color .2s var(--ease-out); }
@media (hover: hover) { .faq-item summary:hover { background: rgba(234, 244, 240, .6); } }
.faq-icon { flex-shrink: 0; width: 32px; height: 32px; border-radius: var(--r-pill); display: grid; place-items: center; background: var(--mint-2); color: var(--green-ink); font-size: 16px; transition: transform .35s var(--ease-out); }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-body { padding: 0 24px 24px; color: var(--body); }
.faq-body strong { color: var(--navy); }
.faq-body .btn { margin-top: 16px; }
.faq-item::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--ease-zen), content-visibility .45s allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }

/* Contact */
.contact-grid { display: grid; gap: 20px; }
.contact-card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(24px, 3vw, 36px); display: grid; gap: 4px; align-content: start; }
.contact-card h3 { font-size: 24px; margin-bottom: 10px; }
.contact-row { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 12px 0; }
.contact-row + .contact-row { border-top: 1px solid var(--hairline-soft); }
.contact-row > i { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--mint-2); color: var(--green-ink); display: grid; place-items: center; font-size: 21px; }
.contact-row strong { display: block; color: var(--navy); font-size: 15px; }
.contact-row span, .contact-row a { color: var(--muted); }
.contact-row a { text-decoration: underline; text-decoration-color: var(--hairline); text-underline-offset: 3px; transition: color .2s var(--ease-out), text-decoration-color .2s var(--ease-out); }
@media (hover: hover) { .contact-row a:hover { color: var(--green-ink); text-decoration-color: currentColor; } }
.price-box { margin-top: 16px; background: var(--mint-2); border-radius: var(--r-md); padding: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.price-box h4 { margin: 0; font-size: 16px; color: var(--navy); font-weight: 650; }
.price-amount { font-size: 38px; font-weight: 700; color: var(--navy); line-height: 1.1; letter-spacing: -.02em; }
.price-box p { color: var(--muted); font-size: 15px; }
.map-card { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); display: flex; flex-direction: column; min-height: 420px; }
.map-card iframe { flex: 1; width: 100%; min-height: 340px; border: 0; filter: saturate(.85); }
.map-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; flex-wrap: wrap; }
.map-foot strong { color: var(--navy); display: block; }
.map-foot span { color: var(--muted); font-size: 15px; }
.map-foot a { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--green-ink); min-height: 44px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 28px; } }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--hairline); padding: 56px 0 28px; }
.footer-grid { display: grid; gap: 36px; }
.footer-brand img { width: 150px; height: auto; }
.footer-brand p { margin-top: 10px; color: var(--muted); unicode-bidi: plaintext; }
.site-footer h3 { font-size: 16px; margin-bottom: 14px; }
.footer-links { display: grid; gap: 4px; }
.footer-links a, .footer-links span { color: var(--body); font-size: 15px; padding: 4px 0; width: fit-content; }
@media (hover: hover) { .footer-links a:hover { color: var(--green-ink); } }
.footer-nav { grid-template-columns: repeat(2, minmax(0, auto)); column-gap: 28px; }
.copyright { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--hairline-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.1fr 1.2fr 1fr; gap: 48px; } }

/* Mobile booking bar */
.book-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 40; display: none;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--hairline);
  transform: translateY(110%); transition: transform .45s var(--ease-drawer);
}
.book-bar.is-visible { transform: translateY(0); }
.book-bar .btn { width: 100%; min-height: 52px; font-size: 17px; }
@media (max-width: 720px) { .book-bar { display: block; } body { padding-bottom: 76px; } html { scroll-padding-bottom: 96px; } }

/* =========================================================
   Motion. Everything below is gated on no-preference.
   ========================================================= */

/* Hero: fog veil lifts, text comes into focus line by line */
@media (prefers-reduced-motion: no-preference) {
  .hero::after {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: radial-gradient(120% 90% at 50% 40%, rgba(245, 251, 251, .92), rgba(245, 251, 251, .75));
    animation: fog-lift 2.6s var(--ease-zen) .1s both;
  }
  .focus-in { animation: focus-in 1.6s var(--ease-zen) both; animation-delay: calc(var(--i, 0) * 120ms + 200ms); }
  .hero-photo img { animation: breathe 14s var(--ease-breathe) infinite alternate, photo-in 2.4s var(--ease-zen) .2s both; }
  .hero-badge { animation: rise-in 1.4s var(--ease-zen) 1.1s both; }
}
@keyframes fog-lift { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
@keyframes focus-in { from { opacity: 0; filter: blur(14px); transform: translateY(14px); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes breathe { from { transform: scale(1.03); } to { transform: scale(1.075); } }
@keyframes photo-in { from { opacity: 0; filter: blur(10px); } to { opacity: 1; filter: blur(0); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Scroll reveals: sections glide in from different directions. Hidden only when JS is running. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0; filter: blur(6px);
    transition: opacity 1.2s var(--ease-zen), transform 1.4s var(--ease-zen), filter 1.2s var(--ease-zen);
    transition-delay: var(--d, 0ms);
  }
  .js [data-reveal="up"]    { transform: translateY(40px); }
  .js [data-reveal="start"] { transform: translateX(calc(-56px * var(--dir))); }
  .js [data-reveal="end"]   { transform: translateX(calc(56px * var(--dir))); }
  .js [data-reveal="scale"] { transform: scale(.96); }
  .js [data-reveal="fade"]  { transform: none; }
  .js [data-reveal].is-in   { opacity: 1; transform: none; filter: blur(0); }
  .js .video-card[data-reveal]:nth-child(2).is-in { transform: translateY(clamp(16px, 4vw, 48px)); }
}

/* Reduced motion: calm, still page. No drift, no breathing, no marquee. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .mist span { animation: none !important; }
  .marquee { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none !important; width: auto; }
  .marquee-group[aria-hidden="true"] { display: none; }
  .review { scroll-snap-align: start; }
  .marquee-toggle { display: none; }
}


/* Hero video overlay */
.hero-photo {
  position: relative;
  overflow: hidden;
}

.hero-photo > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: rgba(255,255,255,0.08);
}

.hero-photo img {
  position: relative;
  z-index: 0;
}

.hero-badge {
  z-index: 3;
}


/* Hero click-to-play video */
.hero-video-container {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.hero-video-container .hero-poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  cursor: pointer;
  transition: opacity 0.35s ease;
}

.hero-video-container .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.hero-video-container .hero-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #222;
  z-index: 4;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-video-container .hero-play span {
  font-size: 27px;
  margin-left: 4px;
}

.hero-video-container .hero-play:hover {
  transform: translate(-50%, -50%) scale(1.07);
  background: #fff;
}

.hero-video-container.is-playing .hero-poster {
  opacity: 0;
  pointer-events: none;
}

.hero-video-container.is-playing .hero-video {
  opacity: 1;
  z-index: 3;
}

.hero-video-container.is-playing .hero-play {
  opacity: 0;
  pointer-events: none;
}

/* Play button: reveal on hover */
@media (hover: hover) and (pointer: fine) {
  .hero-video-container:not(.is-playing) .hero-play {
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.2s ease;
  }

  .hero-video-container:not(.is-playing):hover .hero-play,
  .hero-video-container:not(.is-playing):focus-within .hero-play {
    opacity: 1;
  }
}

/* Touchscreens: keep play button visible */
@media (hover: none) {
  .hero-video-container:not(.is-playing) .hero-play {
    opacity: 0.85;
  }
}


/* Refined patient testimonial layout */
.videos {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
  max-width: 900px;
  align-items: start;
}
.video-card {
  aspect-ratio: auto;
  transform: none !important;
  border-radius: 16px;
  background: #f2f4f6;
}
.video-card video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
}
.video-card:nth-child(2) {
  transform: none;
}
@media (max-width: 700px) {
  .videos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 520px;
    gap: 14px;
  }
}
@media (max-width: 420px) {
  .videos {
    gap: 10px;
  }
  .video-card {
    border-radius: 12px;
  }
}

/* Osteopath recognition video */
.recognition-video {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 520px;
  justify-self: center;
  margin-top: 12px;
  text-align: center;
}
.recognition-video h3 {
  margin: 0 0 18px;
  font-size: clamp(22px, 2.4vw, 30px);
}
.recognition-video video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #000;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
@media (max-width: 600px) {
  .recognition-video {
    max-width: 100%;
  }
  .recognition-video video {
    border-radius: 10px;
  }
}

/* Clinic photo gallery */
.clinic-gallery {
  overflow: hidden;
}
.clinic-gallery .section-head {
  margin-inline: auto;
}
.gallery-shell {
  width: min(100%, 900px);
  margin-inline: auto;
}
.gallery-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: clamp(12px, 2.5vw, 24px);
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.gallery-image-button {
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.gallery-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(68vh, 680px);
  object-fit: contain;
  border-radius: var(--r-md);
  transition: opacity .25s var(--ease-out);
}
.gallery-image.is-changing {
  opacity: .35;
}
.gallery-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: var(--green-ink);
  box-shadow: var(--shadow);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.gallery-arrow:hover {
  background: var(--green-ink);
  color: #fff;
}
.gallery-arrow:focus-visible,
.gallery-dot:focus-visible,
.gallery-image-button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}
.gallery-prev { inset-inline-start: 12px; }
.gallery-next { inset-inline-end: 12px; }
.gallery-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
}
.gallery-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.gallery-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #C8D8D1;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.gallery-dot[aria-current="true"] {
  background: var(--green-ink);
  transform: scale(1.35);
}
.gallery-count {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.gallery-lightbox {
  width: min(94vw, 1100px);
  max-width: none;
  max-height: 94vh;
  padding: 12px;
  border: 0;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
}
.gallery-lightbox::backdrop {
  background: rgba(8,25,38,.88);
}
.gallery-lightbox img {
  display: block;
  width: 100%;
  max-height: calc(94vh - 24px);
  object-fit: contain;
  border-radius: var(--r-md);
}
.gallery-lightbox-close {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: var(--navy);
  font-size: 24px;
  cursor: pointer;
}
@media (max-width: 600px) {
  .gallery-stage {
    min-height: 240px;
    padding: 10px;
    border-radius: var(--r-md);
  }
  .gallery-image {
    max-height: 62vh;
  }
  .gallery-arrow {
    width: 36px;
    height: 36px;
    font-size: 21px;
  }
  .gallery-prev { inset-inline-start: 7px; }
  .gallery-next { inset-inline-end: 7px; }
  .gallery-footer {
    margin-top: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-image,
  .gallery-arrow,
  .gallery-dot {
    transition: none;
  }
}

/* Invisible side navigation zones */
.gallery-arrow {
  top: 0;
  bottom: 0;
  height: 100%;
  width: 20%;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: transparent !important;
  box-shadow: none;
  font-size: 0;
  transform: none;
  opacity: 0;
  cursor: pointer;
}

.gallery-arrow:hover,
.gallery-arrow:focus {
  background: transparent !important;
  color: transparent !important;
  box-shadow: none;
}

.gallery-prev {
  inset-inline-start: 0;
}

.gallery-next {
  inset-inline-end: 0;
}

@media (max-width: 600px) {
  .gallery-arrow {
    width: 24%;
  }
}

/* Floating clinic gallery — soft mint presentation */
.clinic-gallery {
  background:
    radial-gradient(ellipse at 50% 45%, rgba(255,255,255,.9) 0%, rgba(245,251,251,.45) 48%, transparent 78%),
    var(--mint-2);
}

.gallery-stage {
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.gallery-image-button {
  width: auto;
  max-width: 100%;
  border-radius: 24px;
  overflow: visible;
}

.gallery-image {
  max-width: min(100%, 760px);
  max-height: min(68vh, 680px);
  border-radius: 24px;
  box-shadow: 0 24px 55px rgba(17,59,97,.18);
}

.gallery-footer {
  margin-top: 30px;
}

@media (max-width: 600px) {
  .gallery-image-button,
  .gallery-image {
    border-radius: 18px;
  }

  .gallery-image {
    max-height: 62vh;
    box-shadow: 0 16px 35px rgba(17,59,97,.16);
  }
}
