/* ==========================================================================
   ד״ר סעיד סעאדה · רפואת כאב — Design System
   Colour and type follow the Dr. Saeed Saada brand guideline: Deep Medical
   Navy, Pain Red and Warm Pearl (p.09), Nexa / its geometric stand-in for
   display (p.07).
   RTL-first. Mobile-first. No page builder.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* ---- Brand guideline, p.09. The identity is four colours, no more ----
       Deep Medical Navy  #062A55   the primary: trust, expertise
       Pain Red           #AA1000   the pain point; "used sparingly and with
                                    calculation", in the book's own words
       Warm Pearl         #F5F4F0   surfaces and backgrounds
       White              #FFFFFF
     Every value below is a tint or a shade of one of those four, stepped
     along a fixed hue so each ramp stays inside its family: navy at hue 213,
     red at hue 6, the neutrals at the warm hue of the pearl. The old palette
     carried a second, cooler blue that the guideline does not contain; it is
     gone, and the --blue-* names now point at the navy ramp. */

  /* Deep Medical Navy — the brand's one blue */
  --navy-950: #041325;
  --navy-900: #051C38;
  --navy-850: #052347;
  --navy-800: #062A55;   /* the guideline value itself */
  --navy-700: #0C3A6E;
  --navy-600: #1C5087;
  --navy-500: #356EA7;
  --navy-400: #5C90C1;
  --navy-300: #92B5D3;
  --navy-200: #C1D2DF;
  --navy-100: #DEE7EF;
  --navy-050: #F1F5F8;

  /* There is one blue in the guideline, so there is one blue here. These
     names are kept only because a hundred rules call them. */
  --blue-900: var(--navy-900);
  --blue-800: var(--navy-800);
  --blue-700: var(--navy-700);
  --blue-600: var(--navy-600);
  --blue-500: var(--navy-500);
  --blue-400: var(--navy-400);
  --blue-300: var(--navy-300);
  --blue-200: var(--navy-200);
  --blue-100: var(--navy-100);
  --blue-050: var(--navy-050);

  /* Pain Red — the vertebra that marks the pain, and nothing else that can
     be left alone. Accents, never surfaces. */
  --red-800: #700B00;
  --red-700: #8A0E00;
  --red-600: #AA1000;    /* the guideline value itself */
  --red-500: #BC2A1A;
  --red-400: #DE4935;
  --red-300: #EB897A;
  --red-200: #F4C5BD;
  --red-100: #FBEDE9;

  /* Warm Pearl — the guideline's neutral. Warm, not the cool grey the site
     used to run on: it is what makes the navy read as deep rather than cold. */
  --pearl-050: #FBFBF8;
  --pearl-100: #F5F4F0;  /* the guideline value itself */
  --pearl-200: #EEECE7;
  --pearl-300: #E0DDD7;
  --pearl-400: #C8C4BC;
  --pearl-500: #A6A196;

  /* Ink — the navy carried down to text weight, so body copy belongs to the
     same family as the logo instead of being neutral black. */
  --ink:      #0F2033;
  --ink-soft: #39516A;
  /* 4.5:1 on Warm Pearl and on --canvas-2, not only on white: it is used on
     the tinted surfaces too. */
  --ink-mute: #586D84;
  --line:     #E2DFD7;
  --line-soft:#EFEDE8;
  --surface:  #FFFFFF;
  --canvas:   var(--pearl-100);
  --canvas-2: var(--pearl-200);

  /* Text and accents on the navy panels. Pearl rather than a blue-grey: on
     the dark ground the warm neutral is what keeps the pairing from going
     cold. Every step clears 7:1 on --navy-900. */
  --on-dark:      #F1EFE9;
  --on-dark-soft: #D3CFC5;
  --on-dark-mute: #B1ACA0;
  /* Pain Red falls to 2.9:1 against navy. This is the same red lifted until
     it carries, used only where the accent sits on a dark panel. */
  --accent-light: #F58F80;

  /* The two brand colours as channels, for the washes and shadows that need
     them at partial opacity. */
  --navy-rgb: 6, 42, 85;
  --red-rgb:  170, 16, 0;

  /* Semantic */
  --brand:      var(--navy-800);
  --brand-deep: var(--navy-900);
  --accent:     var(--red-600);
  --accent-hi:  var(--red-500);
  --link:       var(--navy-700);

  /* Type scale (fluid). Every step is multiplied by --a11y-scale, which the
     accessibility toolbar sets; at its default of 1 the scale is unchanged,
     and the whole scale — including the fluid clamps — grows together. */
  --a11y-scale: 1;
  --fs-xs:   calc(0.8125rem * var(--a11y-scale));
  --fs-sm:   calc(0.9063rem * var(--a11y-scale));
  --fs-base: calc(1.0313rem * var(--a11y-scale));
  --fs-md:   calc(clamp(1.0938rem, 1.02rem + 0.35vw, 1.1875rem) * var(--a11y-scale));
  --fs-lg:   calc(clamp(1.1875rem, 1.09rem + 0.5vw, 1.375rem) * var(--a11y-scale));
  --fs-xl:   calc(clamp(1.375rem, 1.22rem + 0.75vw, 1.75rem) * var(--a11y-scale));
  --fs-2xl:  calc(clamp(1.625rem, 1.36rem + 1.3vw, 2.375rem) * var(--a11y-scale));
  --fs-3xl:  calc(clamp(2rem, 1.55rem + 2.1vw, 3.25rem) * var(--a11y-scale));
  --fs-4xl:  calc(clamp(2.375rem, 1.7rem + 3vw, 4rem) * var(--a11y-scale));

  /* Space */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 2.75rem; --sp-8: 3.5rem;
  --sp-9: 4.5rem;  --sp-10: 6rem;   --sp-11: 8rem;

  --section-y: clamp(3.25rem, 2rem + 5vw, 6.5rem);

  /* Shape */
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;

  /* Elevation — indigo-tinted, never neutral grey */
  --sh-1: 0 1px 2px rgba(6,42,85,.05), 0 2px 6px rgba(6,42,85,.04);
  --sh-2: 0 2px 6px rgba(6,42,85,.06), 0 10px 24px -6px rgba(6,42,85,.09);
  --sh-3: 0 4px 12px rgba(6,42,85,.07), 0 22px 48px -12px rgba(6,42,85,.15);
  --sh-focus: 0 0 0 3px #fff, 0 0 0 6px var(--blue-500);

  --wrap: 1180px;
  --wrap-narrow: 760px;
  --header-h: 76px;

  --ease: cubic-bezier(.22,.61,.36,1);
  /* Motion scale. Entrances are slower than exits, as the eye expects. */
  --t-fast: .16s;
  --t-mid:  .28s;
  --t-slow: .55s;
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }

h1,h2,h3,h4 {
  font-family: var(--font-head);
  line-height: 1.18;
  letter-spacing: -0.015em;
  /* Deep Medical Navy itself — the colour of the wordmark, not a darker
     step invented next to it. */
  color: var(--navy-800);
  text-wrap: balance;
  font-weight: 700;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p  { text-wrap: pretty; }

:focus-visible { outline: none; box-shadow: var(--sh-focus); border-radius: var(--r-sm); }

::selection { background: var(--navy-800); color: #fff; }

.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 999;
  background: var(--navy-800); color: #fff; padding: .75rem 1.25rem;
  border-radius: 0 0 var(--r-md) var(--r-md); font-weight: 600;
}
.skip-link:focus { top: 0; color: #fff; }

.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;
}

/* ---------- 3. Layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
@media (min-width: 700px) { .wrap { width: min(100% - 4rem, var(--wrap)); } }
.wrap--narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.25rem, 1.6rem + 3vw, 4rem); }
.section--canvas { background: var(--canvas); }
.section--tint   { background: var(--pearl-200); }
.section--dark   { background: linear-gradient(165deg, var(--navy-900), var(--navy-950)); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }

.stack > * + * { margin-top: var(--sp-4); }
.grid { display: grid; gap: var(--sp-5); }

/* ---------- 4. Section headings ---------- */
/* The nearest thing on the page to the lockup's tagline — small, uppercase,
   widely tracked, set in the display face. The Latin pages take the full
   tracking of the printed line; Hebrew and Arabic take less, because their
   letterforms come apart under it. */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: var(--sp-3);
}
html[lang^="en"] .eyebrow { letter-spacing: .16em; }
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px;
}
.section--dark .eyebrow { color: var(--accent-light); }
.section--dark .eyebrow::before { background: var(--accent-light); }

.section-head { max-width: 62ch; margin-bottom: var(--sp-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: var(--fs-md); margin-top: var(--sp-4); }
.section--dark .section-head p { color: var(--on-dark-soft); }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: var(--navy-800); --btn-fg: #fff; --btn-bd: var(--navy-800);
  font-family: var(--font-head);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.6rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd); border-radius: var(--r-pill);
  font-weight: 700; font-size: var(--fs-sm); line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
  box-shadow: var(--sh-1);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-2); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }

.btn--accent  { --btn-bg: var(--accent); --btn-bd: var(--accent); }
.btn--accent:hover { --btn-bg: var(--accent-hi); }
.btn--blue    { --btn-bg: var(--blue-600); --btn-bd: var(--blue-600); }
.btn--blue:hover { --btn-bg: var(--blue-500); }
.btn--ghost   { --btn-bg: transparent; --btn-fg: var(--navy-800); --btn-bd: var(--blue-200); box-shadow: none; }
.btn--ghost:hover { --btn-bd: var(--blue-500); --btn-bg: var(--blue-050); }
.btn--light   { --btn-bg: #fff; --btn-fg: var(--navy-800); --btn-bd: #fff; }
/* WhatsApp green, darkened: the brand tint carries only 3.1:1 against the
   white label, which is below the minimum for text at this size. */
.btn--wa      { --btn-bg: #15803D; --btn-bd: #15803D; }
.btn--wa:hover{ --btn-bg: #116A32; }
.btn--lg { padding: 1.05rem 2rem; font-size: var(--fs-base); }
.btn--block { width: 100%; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-mid), box-shadow var(--t-mid), background var(--t-mid);
}
/* The logo's red rule, carried across the top of every page. */
.site-header::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--navy-800), var(--blue-600) 46%, var(--accent));
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: var(--sh-2);
  background: rgba(255,255,255,.94);
}

.header-inner {
  display: flex; align-items: center; gap: var(--sp-5);
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; flex: none; text-decoration: none; }
.brand img {
  height: 48px; width: auto;
  transition: height var(--t-mid) var(--ease);
}
/* Once the page scrolls, the bar tightens and gives the content more room. */
.site-header.is-stuck .brand img { height: 40px; }
@media (max-width: 560px) {
  .brand img, .site-header.is-stuck .brand img { height: 36px; }
}

.nav { margin-inline-start: auto; }
.nav ul { display: flex; align-items: center; gap: var(--sp-1); list-style: none; padding: 0; margin: 0; }
.nav a {
  position: relative;
  display: block; padding: .55rem .7rem; border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 600; color: var(--navy-700); text-decoration: none;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast);
}
/* Underline grows from the centre — a hint of movement, no layout shift. */
.nav > ul > li > a::after {
  content: ""; position: absolute; inset-inline: .7rem; bottom: .25rem; height: 2px;
  border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transition: transform var(--t-mid) var(--ease);
}
.nav > ul > li > a:hover::after,
.nav > ul > li.current-menu-item > a::after,
.nav > ul > li.current-page-ancestor > a::after { transform: scaleX(1); }
@media (min-width: 1025px) and (max-width: 1320px) {
  .nav a { padding: .55rem .5rem; font-size: var(--fs-xs); }
  .header-inner { gap: var(--sp-3); }
}
.nav a:hover { background: var(--blue-050); color: var(--navy-900); }
.nav .current-menu-item > a,
.nav .current-page-ancestor > a { color: var(--accent); }

/* dropdown */
.nav li { position: relative; }
.nav .sub-menu {
  position: absolute; top: calc(100% + 6px); inset-inline-end: 0;
  min-width: 260px; display: block;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-3); padding: .4rem;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav li:hover > .sub-menu,
.nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav .sub-menu li { width: 100%; }
.nav .sub-menu a { padding: .55rem .75rem; font-weight: 500; white-space: nowrap; }

.header-actions { display: flex; align-items: center; gap: var(--sp-3); flex: none; }
.header-tel {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; font-size: var(--fs-sm); color: var(--navy-800); text-decoration: none;
  direction: ltr;
}
.header-tel svg { width: 1.05em; height: 1.05em; }
@media (max-width: 1080px) { .header-tel span { display: none; } }

/* language switcher */
.lang-switch { position: relative; }
.lang-switch__btn {
  display: inline-flex; align-items: center; gap: .35rem;
  background: none; border: 1.5px solid var(--line); border-radius: var(--r-pill);
  padding: .4rem .7rem; font-size: var(--fs-xs); font-weight: 700; color: var(--navy-700);
  cursor: pointer;
}
.lang-switch__btn:hover { border-color: var(--navy-300); }
.lang-switch__list {
  position: absolute; top: calc(100% + 6px); inset-inline-end: 0; min-width: 140px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-3); padding: .3rem; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.lang-switch[data-open="true"] .lang-switch__list { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-switch__list a {
  display: block; padding: .5rem .7rem; border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 600; text-decoration: none; color: var(--navy-700);
}
.lang-switch__list a:hover { background: var(--navy-050); }
.lang-switch__list .is-current a { color: var(--accent); }

/* burger */
.burger {
  display: none; width: 44px; height: 44px; flex: none;
  background: none; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer; padding: 0; place-items: center;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--navy-800); border-radius: 2px; position: relative; transition: background .15s; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; inset-inline-start: 0; width: 20px; height: 2px;
  background: var(--navy-800); border-radius: 2px; transition: transform .2s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1024px) {
  .burger { display: grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-3);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    padding: var(--sp-4) var(--sp-5) var(--sp-6);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav[data-open="true"] { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line-soft); }
  .nav a { padding: .85rem .25rem; font-size: var(--fs-md); }
  .nav .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding: 0 0 .5rem;
    border-inline-start: 2px solid var(--navy-100); margin-inline-start: .5rem;
  }
  .nav .sub-menu a { font-size: var(--fs-sm); padding: .5rem .75rem; }
  /* The sliding underline belongs to the desktop bar only. */
  .nav > ul > li > a::after { display: none; }
}

/* On a phone the logo, language switcher, phone, booking button and burger
   together are wider than the screen, which pushed the whole page sideways.
   The booking button goes: the sticky bar at the bottom already carries it. */
@media (max-width: 620px) {
  .header-inner { gap: var(--sp-3); }
  .header-actions { gap: .5rem; }
  .header-actions > .btn { display: none; }
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, var(--pearl-100) 56%, var(--pearl-200) 100%);
  border-bottom: 1px solid var(--blue-100);
}
/* Two soft colour fields drift behind the content: clinical blue from the top
   corner, the spine red low on the other side. Decorative only. */
.hero__orb {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: -1;
  filter: blur(8px);
}
.hero__orb--blue {
  width: min(48rem, 82vw); aspect-ratio: 1;
  inset-block-start: -20rem; inset-inline-end: -13rem;
  background: radial-gradient(circle, rgba(var(--navy-rgb),.42), rgba(var(--navy-rgb),0) 66%);
  animation: saada-drift 26s var(--ease) infinite alternate;
}
.hero__orb--red {
  width: min(36rem, 70vw); aspect-ratio: 1;
  inset-block-end: -15rem; inset-inline-start: -10rem;
  background: radial-gradient(circle, rgba(var(--red-rgb),.26), rgba(var(--red-rgb),0) 64%);
  animation: saada-drift 32s var(--ease) 1.5s infinite alternate-reverse;
}
/* A faint dot field, echoing the vertebrae of the logo mark. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(var(--navy-rgb),.16) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(76% 68% at 50% 40%, #000, transparent 74%);
  -webkit-mask-image: radial-gradient(76% 68% at 50% 40%, #000, transparent 74%);
}

.hero__grid {
  display: grid; gap: var(--sp-7);
  padding-block: clamp(2.75rem, 1.5rem + 5vw, 5.75rem);
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.12fr .88fr; gap: var(--sp-8); }
}
.hero h1 { font-size: var(--fs-4xl); letter-spacing: -0.025em; }
/* The closing words of a headline carry the one accent the identity has —
   the same red as the single marked vertebra, used the same way. */
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead {
  font-size: var(--fs-md); color: var(--ink-soft);
  margin-top: var(--sp-5); max-width: 56ch;
}
.hero__lead strong { color: var(--navy-800); font-weight: 700; }
.hero .btn-row { margin-top: var(--sp-6); }

.hero__trust {
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  margin-top: var(--sp-7);
}
.trust-item {
  display: flex; align-items: center; gap: .6rem;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--blue-100); border-radius: var(--r-pill);
  padding: .5rem 1rem .5rem .75rem;
  box-shadow: var(--sh-1);
  backdrop-filter: blur(6px);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), border-color var(--t-mid);
}
.trust-item:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--blue-300); }
.trust-item svg { width: 1.25em; height: 1.25em; color: var(--blue-600); flex: none; }
.trust-item__val { font-family: var(--font-head); font-weight: 800; font-size: var(--fs-lg); color: var(--navy-800); line-height: 1; }
.trust-item__lbl { font-size: var(--fs-xs); color: var(--ink-mute); line-height: 1.35; }

.hero__media { position: relative; }
.hero__photo {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 108%, rgba(var(--navy-rgb),.20), transparent 62%),
    linear-gradient(165deg, var(--navy-050) 0%, var(--navy-100) 52%, var(--navy-200) 100%);
  box-shadow: var(--sh-3);
  aspect-ratio: 4 / 4.5;
  display: grid; place-items: end center;
}
/* A slow sheen crossing the portrait panel — the only motion in the frame. */
.hero__photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.42) 50%, transparent 62%);
  transform: translateX(-120%);
  animation: saada-sheen 9s var(--ease) 1.8s infinite;
}
/* The portrait is a transparent cut-out, so it is contained and floated on the
   gradient rather than cropped. */
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 18px 34px rgba(var(--navy-rgb),.18));
}
.hero__badge {
  position: absolute; inset-block-end: -14px; inset-inline-start: -14px;
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-3);
  padding: .85rem 1.1rem; display: flex; align-items: center; gap: .7rem;
  border: 1px solid var(--line-soft); max-width: 88%;
  animation: saada-float 7s var(--ease) infinite alternate;
}
.hero__badge svg { width: 34px; height: 34px; flex: none; color: var(--accent); }
.hero__badge b { display: block; font-size: var(--fs-sm); color: var(--navy-900); line-height: 1.3; }
.hero__badge span { font-size: var(--fs-xs); color: var(--ink-mute); }
@media (max-width: 899px) { .hero__media { max-width: 460px; margin-inline: auto; width: 100%; } }

/* ---------- 8. Recognition block ---------- */
.recognition { max-width: 68ch; margin-inline: auto; }
.recognition p { font-size: var(--fs-md); color: var(--ink-soft); }
.recognition p + p { margin-top: var(--sp-4); }
.recognition p:first-child {
  font-size: var(--fs-lg); color: var(--navy-900); font-weight: 600; line-height: 1.55;
}
.recognition__pull {
  margin-top: var(--sp-6); padding: var(--sp-5) var(--sp-6);
  background: var(--navy-050); border-radius: var(--r-lg);
  border-inline-start: 4px solid var(--accent);
  font-size: var(--fs-md); color: var(--navy-800); font-weight: 600;
}
/* The text is capped at a reading measure, which on a desktop row left the
   other half of the section empty. From 1000px the pull-quote sits beside the
   text instead of under it: the row is used, and the measure is still kept. */
@media (min-width: 1000px) {
  .recognition {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: var(--sp-7);
    align-items: center;
  }
  .recognition__text { max-width: 60ch; }
  .recognition__pull { margin-top: 0; }
}

/* ---------- 9. Condition cards ---------- */
.cards {
  display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr));
}
.card-cond {
  position: relative; display: flex; flex-direction: column; gap: .55rem;
  padding: var(--sp-5); background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  text-decoration: none; color: inherit; overflow: hidden;
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), border-color var(--t-mid);
  box-shadow: var(--sh-1);
}
/* A brand rule wipes across the top edge on hover. */
.card-cond::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--accent));
  transform: scaleX(0); transform-origin: var(--wipe-from, right);
  transition: transform var(--t-mid) var(--ease);
}
.card-cond:hover::before, .card-cond:focus-visible::before { transform: scaleX(1); }
html[dir="ltr"] .card-cond::before { --wipe-from: left; }
.card-cond:hover {
  transform: translateY(-4px); box-shadow: var(--sh-3);
  border-color: var(--blue-200); color: inherit;
}
.card-cond__icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  background: var(--blue-050); display: grid; place-items: center;
  margin-bottom: var(--sp-2); overflow: hidden; flex: none;
  transition: background var(--t-mid), transform var(--t-mid) var(--ease);
}
.card-cond:hover .card-cond__icon { background: var(--blue-100); transform: scale(1.06); }
.card-cond__icon img { width: 40px; height: 40px; object-fit: contain; }
.card-cond h3 { font-size: var(--fs-md); line-height: 1.35; }
.card-cond__quote {
  font-size: var(--fs-sm); color: var(--ink-mute); font-style: italic; line-height: 1.55;
}
.card-cond__more {
  margin-top: auto; padding-top: var(--sp-3);
  font-size: var(--fs-xs); font-weight: 700; color: var(--accent);
  display: inline-flex; align-items: center; gap: .35rem;
}
.card-cond__more svg { width: .9em; height: .9em; transition: transform .2s var(--ease); }
.card-cond:hover .card-cond__more svg { transform: translateX(4px); }
html[dir="rtl"] .card-cond__more svg { transform: scaleX(-1); }
html[dir="rtl"] .card-cond:hover .card-cond__more svg { transform: scaleX(-1) translateX(4px); }

/* ---------- 10. Differentiator band ---------- */
.diff { position: relative; overflow: hidden; }
.diff::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(720px 420px at 82% 0%, rgba(var(--red-rgb),.26), transparent 58%),
    radial-gradient(620px 400px at 10% 100%, rgba(var(--navy-rgb),.46), transparent 60%);
  pointer-events: none;
}
.diff__inner { position: relative; display: grid; gap: var(--sp-7); }
@media (min-width: 900px) { .diff__inner { grid-template-columns: 1fr 1fr; align-items: center; gap: var(--sp-9); } }
.diff p { color: var(--on-dark-soft); font-size: var(--fs-md); }
.diff p + p { margin-top: var(--sp-4); }
.diff__steps { display: grid; gap: var(--sp-3); }
.diff__step {
  display: flex; gap: var(--sp-4); align-items: flex-start;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5);
  backdrop-filter: blur(6px);
}
.diff__step b {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  font-size: var(--fs-xs); font-weight: 800; font-family: var(--font-head);
}
.diff__step strong { color: #fff; display: block; font-size: var(--fs-base); }
.diff__step span { color: var(--on-dark-soft); font-size: var(--fs-sm); line-height: 1.6; }

/* ---------- 10b. SAADA METHOD band (home) ---------- */
.method-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(640px 380px at 12% 0%, rgba(var(--navy-rgb),.10), transparent 62%),
    radial-gradient(520px 340px at 92% 100%, rgba(var(--red-rgb),.07), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--pearl-100) 100%);
}

/* Six pillars, so the row count is fixed rather than auto-fit: an auto-fit
   grid lands on four columns at desktop width and leaves two cards stranded
   on a second row. 1 / 2 / 3 columns always divides six evenly. */
.pillars {
  display: grid; gap: var(--sp-4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar {
  display: flex; flex-direction: column; gap: .45rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-5); box-shadow: var(--sh-1);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), border-color var(--t-mid);
}
.pillar:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--blue-200); }
.pillar__icon {
  width: 46px; height: 46px; border-radius: var(--r-md); flex: none;
  display: grid; place-items: center; margin-bottom: var(--sp-2);
  background: linear-gradient(145deg, var(--navy-800), var(--blue-600));
  color: #fff; box-shadow: 0 4px 12px rgba(var(--navy-rgb),.3);
}
.pillar__icon svg { width: 22px; height: 22px; }
.pillar b { font-family: var(--font-head); font-size: var(--fs-base); color: var(--navy-900); line-height: 1.35; }
.pillar span { font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.65; }

/* The payoff: what changes for the patient, beside the clinical framing. */
.outcome { display: grid; gap: var(--sp-5); margin-top: var(--sp-7); }
@media (min-width: 940px) { .outcome { grid-template-columns: 1.25fr .75fr; gap: var(--sp-6); align-items: start; } }
.outcome__text {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: var(--sp-6); box-shadow: var(--sh-1);
}
.outcome__text h3 { font-size: var(--fs-xl); }
.outcome__text > p { color: var(--ink-soft); font-size: var(--fs-base); margin-top: var(--sp-3); }
.outcome__text ul { list-style: none; padding: 0; margin-top: var(--sp-5); display: grid; gap: var(--sp-3); }
.outcome__text li { display: flex; gap: .7rem; align-items: flex-start; }
.outcome__text li svg { width: 1.15em; height: 1.15em; flex: none; color: var(--blue-600); margin-top: .3em; }
.outcome__text li span { font-size: var(--fs-base); color: var(--ink); font-weight: 500; line-height: 1.6; }
.outcome__note {
  margin-top: var(--sp-5); padding-top: var(--sp-4);
  border-top: 1px dashed var(--line);
  font-size: var(--fs-sm); color: var(--ink-mute); line-height: 1.7;
}
.outcome__ispm {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
  border-radius: var(--r-xl); padding: var(--sp-6); color: var(--on-dark);
  box-shadow: var(--sh-2);
}
.outcome__ispm .eyebrow { color: var(--accent-light); }
.outcome__ispm .eyebrow::before { background: var(--accent-light); }
.outcome__ispm b {
  display: block; font-family: var(--font-head); font-size: var(--fs-lg);
  color: #fff; line-height: 1.35;
}
.outcome__ispm p { color: var(--on-dark-soft); font-size: var(--fs-sm); line-height: 1.75; margin-top: var(--sp-3); }
.outcome__ispm .btn { margin-top: var(--sp-5); width: 100%; }

/* ---------- 11. Doctor block ---------- */
.doctor { display: grid; gap: var(--sp-7); align-items: center; }
@media (min-width: 860px) { .doctor { grid-template-columns: .8fr 1.2fr; gap: var(--sp-8); } }
.doctor__photo {
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-2);
  aspect-ratio: 1 / 1.2; max-width: 380px; width: 100%;
  background:
    radial-gradient(120% 80% at 50% 108%, rgba(var(--navy-rgb),.14), transparent 62%),
    linear-gradient(165deg, var(--pearl-100) 0%, var(--navy-100) 100%);
  display: grid; place-items: end center;
}
.doctor__photo img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 14px 26px rgba(var(--navy-rgb),.14));
}
.doctor__quote {
  margin-top: var(--sp-5); padding: var(--sp-5) var(--sp-6);
  background: var(--navy-050); border-radius: var(--r-lg);
  font-size: var(--fs-md); color: var(--navy-800); line-height: 1.7;
  position: relative;
}
.doctor__quote::before {
  content: "”"; position: absolute; top: -.15em; inset-inline-start: .5rem;
  font-family: var(--font-head); font-size: 4rem; color: var(--navy-100); line-height: 1;
}
.doctor__creds { display: grid; gap: var(--sp-3); margin-top: var(--sp-5); }
.doctor__cred { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-soft); }
.doctor__cred svg { width: 1.2em; height: 1.2em; flex: none; color: var(--accent); margin-top: .28em; }

/* ---------- 12. Reviews ---------- */
.reviews { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.review {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-5); box-shadow: var(--sh-1);
  display: flex; flex-direction: column; gap: var(--sp-3);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.review:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
/* The only colour on the page that is not from the guideline. Review stars
   are read as a borrowed convention rather than as our own colour, and in
   Pain Red they would read as a warning instead of a rating. */
.review__stars { display: flex; gap: 2px; color: #F0A020; }
.review__stars svg { width: 17px; height: 17px; }
.review p { font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.7; flex: 1; }
.review__by { font-size: var(--fs-xs); color: var(--ink-mute); font-weight: 600; }
.rating-summary {
  display: inline-flex; align-items: center; gap: var(--sp-4);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: .7rem 1.4rem; box-shadow: var(--sh-1); margin-bottom: var(--sp-5);
}
.rating-summary b { font-family: var(--font-head); font-size: var(--fs-xl); color: var(--navy-800); line-height: 1; }
.rating-summary span { font-size: var(--fs-xs); color: var(--ink-mute); }

/* ---------- 13. Process steps ---------- */
.steps { counter-reset: s; display: grid; gap: var(--sp-4); }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); } }
.step {
  position: relative; padding: var(--sp-5); background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), border-color var(--t-mid);
}
.step:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--blue-200); }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(145deg, var(--navy-800), var(--blue-600));
  color: #fff; box-shadow: 0 4px 12px rgba(var(--navy-rgb),.32);
  font-family: var(--font-head); font-weight: 800; font-size: var(--fs-sm);
  margin-bottom: var(--sp-4);
}
.step h3 { font-size: var(--fs-base); margin-bottom: .35rem; }
.step p { font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.65; }

/* ---------- 14. Clinics ---------- */
.clinics { display: grid; gap: var(--sp-4); }
/* auto-fit, not a fixed `1fr 1fr`: there is one clinic, and two columns left
   half the row empty beside it. Empty tracks collapse, so whatever exists is
   centred — and a second clinic would still lay out in two columns. */
@media (min-width: 760px) {
  .clinics {
    grid-template-columns: repeat(auto-fit, minmax(300px, 460px));
    justify-content: center;
  }
}
.clinic {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-6); box-shadow: var(--sh-1);
}
.clinic h3 { display: flex; align-items: center; gap: .6rem; font-size: var(--fs-lg); margin-bottom: var(--sp-3); }
.clinic h3 svg { width: 1.1em; height: 1.1em; color: var(--accent); flex: none; }
.clinic p { color: var(--ink-soft); font-size: var(--fs-sm); }
.clinic dl { display: grid; gap: .5rem; margin-top: var(--sp-4); font-size: var(--fs-sm); }
.clinic dl > div { display: flex; gap: .5rem; }
.clinic dt { color: var(--ink-mute); flex: none; }
.clinic dd { margin: 0; color: var(--ink); font-weight: 600; }

/* ---------- 15. Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(760px 420px at 88% -20%, rgba(var(--navy-rgb),.16), transparent 60%),
    radial-gradient(520px 320px at 4% 110%, rgba(var(--red-rgb),.07), transparent 62%),
    linear-gradient(180deg, #fff, var(--canvas));
  border-bottom: 1px solid var(--line-soft);
  padding-block: clamp(2rem, 1.4rem + 3.5vw, 4rem);
}
.page-hero__lead { font-size: var(--fs-md); color: var(--ink-soft); margin-top: var(--sp-4); max-width: 62ch; }

.breadcrumbs { font-size: var(--fs-xs); color: var(--ink-mute); margin-bottom: var(--sp-4); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.breadcrumbs li::after { content: "›"; margin-inline-start: .4rem; color: var(--navy-300); }
.breadcrumbs li:last-child::after { content: none; }
.breadcrumbs a { color: var(--ink-mute); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- 16. Article layout (condition / treatment pages) ---------- */
.layout {
  display: grid; gap: var(--sp-7);
  padding-block: var(--section-y);
}
@media (min-width: 1000px) {
  .layout { grid-template-columns: minmax(0,1fr) 336px; gap: var(--sp-8); align-items: start; }
}
.prose { max-width: 72ch; }
.prose > * + * { margin-top: var(--sp-5); }
.prose h2 {
  font-size: var(--fs-xl); margin-top: var(--sp-8); padding-top: var(--sp-2);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.prose h2:first-child { margin-top: 0; }
/* Blocks 3/4/6 are injected as HTML inside <section>, so the sibling rule on
   .prose's direct children does not reach them. */
.prose section > * + * { margin-top: var(--sp-4); }
.prose section > h2 + * { margin-top: var(--sp-4); }
.prose section > ul,
.prose section > ol { margin-top: var(--sp-4); }
.prose h3 { font-size: var(--fs-lg); margin-top: var(--sp-6); }
.prose p { color: var(--ink-soft); font-size: var(--fs-base); }
.prose p.lead { font-size: var(--fs-md); color: var(--navy-800); font-weight: 500; line-height: 1.65; }
.prose strong { color: var(--navy-800); font-weight: 700; }
.prose ul, .prose ol { padding-inline-start: 1.35rem; color: var(--ink-soft); }
.prose li + li { margin-top: .5rem; }
.prose ul { list-style: none; padding-inline-start: 0; }
.prose ul li { position: relative; padding-inline-start: 1.7rem; }
.prose ul li::before {
  content: ""; position: absolute; inset-inline-start: .25rem; top: .68em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.prose ol { list-style: decimal; }
.prose a { color: var(--navy-700); font-weight: 600; }
.prose img { border-radius: var(--r-lg); box-shadow: var(--sh-2); }
/* Article lead illustration — a contained band, never a full-width square. */
.prose > img.wp-post-image,
.article-art {
  display: block; width: 100%; height: 220px; object-fit: contain;
  padding: var(--sp-4); margin-block: var(--sp-6);
  background: linear-gradient(150deg, var(--blue-050), #fff 70%);
  border: 1px solid var(--line); box-shadow: none;
}
/* Matches the specificity of the `.prose > img.wp-post-image` rule above,
   which otherwise wins on the article page and letterboxes the photo. */
.prose > img.article-art--photo,
.article-art--photo {
  height: 320px; object-fit: cover; padding: 0;
  border: 0; background: var(--navy-050); box-shadow: var(--sh-1);
}
@media (max-width: 620px) {
  .prose > img.article-art--photo,
  .article-art--photo { height: 220px; }
}
.prose blockquote {
  margin: var(--sp-6) 0; padding: var(--sp-5) var(--sp-6);
  background: var(--navy-050); border-inline-start: 4px solid var(--accent);
  border-radius: var(--r-md); color: var(--navy-800); font-size: var(--fs-md);
}
.prose blockquote p { color: inherit; }

/* answer paragraph — the GEO citation target */
.answer-box {
  position: relative;
  background: linear-gradient(135deg, var(--blue-050), #fff);
  border: 1px solid var(--blue-100); border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
  border-inline-start: 4px solid var(--blue-600);
}
.answer-box p { color: var(--navy-800); font-size: var(--fs-md); font-weight: 500; line-height: 1.65; margin: 0; }

/* checklist — "זה מוכר לך?" */
.checklist {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-6); box-shadow: var(--sh-1);
}
.checklist ul { list-style: none; padding: 0; display: grid; gap: var(--sp-3); margin-top: var(--sp-4); }
.checklist li { position: relative; padding-inline-start: 2.1rem; color: var(--ink-soft); font-size: var(--fs-base); }
.checklist li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .3em;
  width: 20px; height: 20px; border-radius: 6px;
  background: var(--navy-050); border: 1.5px solid var(--navy-100);
}
.checklist li::after {
  content: ""; position: absolute; inset-inline-start: 6px; top: .58em;
  width: 8px; height: 5px; border-inline-start: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.checklist__foot {
  margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px dashed var(--line);
  font-weight: 600; color: var(--navy-800); font-size: var(--fs-sm);
}

/* treatment list */
.tx-list { display: grid; gap: var(--sp-3); }
.tx-item {
  display: block; padding: var(--sp-4) var(--sp-5); background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-md);
  text-decoration: none; color: inherit; transition: border-color .18s, transform .18s var(--ease), box-shadow .18s;
}
.tx-item:hover { border-color: var(--navy-300); transform: translateY(-2px); box-shadow: var(--sh-2); color: inherit; }
.tx-item strong { display: block; color: var(--navy-800); font-size: var(--fs-base); }
.tx-item span { display: block; color: var(--ink-soft); font-size: var(--fs-sm); margin-top: .2rem; line-height: 1.6; }

/* what to expect */
.expect { display: grid; gap: var(--sp-3); }
@media (min-width: 640px) { .expect { grid-template-columns: 1fr 1fr; } }
.expect__item {
  display: flex; gap: .8rem; align-items: flex-start;
  background: var(--canvas); border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5);
}
.expect__item svg { width: 1.3em; height: 1.3em; color: var(--accent); flex: none; margin-top: .18em; }
.expect__item span { font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.6; }

/* ---------- 17. FAQ ---------- */
.faq { display: grid; gap: var(--sp-3); }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; transition: border-color .18s, box-shadow .18s;
}
.faq details[open] { border-color: var(--navy-100); box-shadow: var(--sh-2); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--sp-4) var(--sp-5);
  font-weight: 700; color: var(--navy-800); font-size: var(--fs-base);
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4);
  line-height: 1.5;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 11px; height: 11px; margin-top: .45em;
  border-inline-end: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: .7em; }
.faq__a { padding: 0 var(--sp-5) var(--sp-5); color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.75; }
.faq__a > * + * { margin-top: var(--sp-3); }

/* ---------- 18. Sidebar CTA ---------- */
.side { display: grid; gap: var(--sp-4); }
@media (min-width: 1000px) {
  /* The column stretches to the article's full height and only the contact
     card sticks. Making the whole column sticky looked right until an article
     ran long: the column is taller than the viewport, so it scrolled out and
     left an empty white strip beside the rest of the text. */
  .side { align-content: start; align-self: stretch; grid-template-rows: auto auto 1fr; }
  .side__sticky { position: sticky; top: calc(var(--header-h) + 1.25rem); }
}
/* Who you are writing to, above the form. */
.side-doc { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.side-doc__face {
  width: 56px; height: 56px; flex: none; border-radius: 50%;
  object-fit: cover; object-position: 50% 18%;
  background: #fff; border: 2px solid rgba(255,255,255,.75);
  box-shadow: 0 2px 10px rgba(var(--navy-rgb),.4);
}
.side-doc strong { display: block; color: #fff; font-family: var(--font-head); font-size: var(--fs-base); }
.side-doc span { display: block; color: var(--on-dark-soft); font-size: var(--fs-xs); line-height: 1.5; margin-top: .1rem; }
.side-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-5); box-shadow: var(--sh-2);
}
.side-card--brand {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  border-color: transparent; color: var(--on-dark);
}
.side-card--brand h3 { color: #fff; font-size: var(--fs-lg); }
.side-card.side-card--brand p { color: var(--on-dark-soft); font-size: var(--fs-sm); margin-top: .5rem; }
.side-card--brand .btn-row { margin-top: var(--sp-5); flex-direction: column; }
.side-card h3 { font-size: var(--fs-md); margin-bottom: .4rem; }
.side-card p { font-size: var(--fs-sm); color: var(--ink-soft); }
.side-links { list-style: none; padding: 0; display: grid; gap: .1rem; margin-top: var(--sp-3); }
.side-links a {
  display: block; padding: .55rem .6rem; border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 600; color: var(--navy-700); text-decoration: none;
}
.side-links a:hover { background: var(--navy-050); color: var(--accent); }

.toc { font-size: var(--fs-sm); }
.toc ol { list-style: none; padding: 0; margin: var(--sp-3) 0 0; display: grid; gap: .1rem; counter-reset: t; }
.toc a {
  display: block; padding: .45rem .6rem; border-radius: var(--r-sm);
  color: var(--ink-soft); text-decoration: none; font-weight: 500;
  border-inline-start: 2px solid transparent;
}
.toc a:hover { background: var(--navy-050); color: var(--navy-800); }
.toc a.is-active { border-inline-start-color: var(--accent); color: var(--navy-800); font-weight: 700; background: var(--navy-050); }

/* ---------- 19. Forms ---------- */
.form { display: grid; gap: var(--sp-4); }
.field { display: grid; gap: .4rem; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--navy-800); }
.field .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md);
  font-size: var(--fs-base); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--navy-300); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-500); box-shadow: 0 0 0 3px var(--navy-050);
}
.field textarea { min-height: 110px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23586D84' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 12px; background-position: left 1rem center; padding-inline-end: 1rem; padding-inline-start: 2.4rem; }
html[dir="ltr"] .field select { background-position: right 1rem center; padding-inline-start: 1rem; padding-inline-end: 2.4rem; }
/* The dropdown list is drawn by the OS and inherits the select's own colours.
   On the dark panels the select text is white, which made the open list white
   on white. Pin the options to dark-on-white wherever the select appears. */
.field select option,
.field select optgroup { color: var(--ink); background-color: #fff; }
.form__note { font-size: var(--fs-xs); color: var(--ink-mute); line-height: 1.6; }
/* Spam honeypot. It used to sit at left:-9999px, which in an RTL document is
   not off-screen but off-canvas: every page carrying a form grew an ~11,000px
   horizontal scroll area. Collapse it in place instead — still invisible, still
   fillable by a bot, no geometry. */
.form__hp {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; border: 0; margin: 0;
  opacity: 0; overflow: hidden; pointer-events: none; z-index: -1;
}
.form-msg { padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md); font-size: var(--fs-sm); font-weight: 600; }
.form-msg--ok  { background: #E8F6EE; color: #14663A; border: 1px solid #B7E2C9; }
.form-msg--err { background: var(--red-100); color: var(--red-700); border: 1px solid var(--red-200); }

.side-card--brand .field label { color: var(--on-dark); }
.side-card--brand .field input, .side-card--brand .field select { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; }
.side-card--brand .field input::placeholder { color: rgba(241,239,233,.6); }
.side-card--brand .form__note { color: rgba(211,207,197,.85); }

/* ---------- 20. Big CTA ---------- */
.cta-band {
  position: relative; overflow: hidden; color: var(--on-dark);
  background: linear-gradient(165deg, var(--navy-900), var(--navy-950));
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 400px at 15% 0%, rgba(var(--red-rgb),.28), transparent 60%),
    radial-gradient(760px 460px at 88% 100%, rgba(var(--navy-rgb),.48), transparent 62%);
}
.cta-band__inner { position: relative; display: grid; gap: var(--sp-7); }
@media (min-width: 940px) { .cta-band__inner { grid-template-columns: 1fr 440px; gap: var(--sp-8); align-items: center; } }
.cta-band h2 { color: #fff; font-size: var(--fs-2xl); }
.cta-band p { color: var(--on-dark-soft); font-size: var(--fs-md); margin-top: var(--sp-4); }
.cta-band__box {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-xl); padding: var(--sp-6); backdrop-filter: blur(10px);
}
.cta-band__box .field label { color: var(--on-dark); }
.cta-band__box .field input, .cta-band__box .field select {
  background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.2); color: #fff;
}
.cta-band__box .field input::placeholder { color: rgba(241,239,233,.55); }
.cta-band__box .field select { color: #fff; }
.cta-band__box .field select option { color: var(--ink); }
.cta-band__box .form__note { color: rgba(211,207,197,.8); }
/* The accent red is tuned for light backgrounds. On the navy panels it drops
   to 2.9:1, so the dark sections' lighter tint applies here too. */
.cta-band .eyebrow { color: var(--accent-light); }
.cta-band .eyebrow::before { background: var(--accent-light); }
.cta-band__box .field .req,
.side-card--brand .field .req { color: var(--accent-light); }

/* ---------- 21. Blog ---------- */
.posts { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.post-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-1); transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  text-decoration: none; color: inherit;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--sh-3); color: inherit; }
/* The article artwork is a square flat illustration, the same one that fronts
   the matching condition page. Cropping it to 16:9 cut the drawing in half, so
   it is contained inside a tinted panel instead of filling it. */
.post-card__thumb {
  aspect-ratio: 16/9; overflow: hidden; display: grid; place-items: center;
  padding: var(--sp-4);
  background: linear-gradient(150deg, var(--blue-050), #fff 70%);
  border-bottom: 1px solid var(--line);
}
.post-card__thumb img {
  width: auto; height: 100%; max-width: 100%; object-fit: contain;
  transition: transform var(--t-mid) var(--ease);
}
.post-card:hover .post-card__thumb img { transform: scale(1.05); }
/* A photograph is the opposite case: it fills the frame edge to edge. */
.post-card__thumb--photo { padding: 0; background: var(--navy-050); }
.post-card__thumb--photo img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post-card__meta { font-size: var(--fs-xs); color: var(--ink-mute); }
.post-card h3 { font-size: var(--fs-md); line-height: 1.4; }
.post-card p { font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.65; }
.tag {
  display: inline-block; padding: .2rem .7rem; border-radius: var(--r-pill);
  background: var(--navy-050); color: var(--navy-700);
  font-size: var(--fs-xs); font-weight: 700;
}

.byline {
  display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap;
  padding: var(--sp-4) var(--sp-5); background: var(--canvas);
  border-radius: var(--r-md); font-size: var(--fs-sm); color: var(--ink-soft);
  border-inline-start: 3px solid var(--navy-800);
}
.byline a { font-weight: 700; }
.byline time { color: var(--ink-mute); font-size: var(--fs-xs); }
/* The doctor's portrait: a 56px circle, not a feature image. */
.byline__face {
  width: 56px; height: 56px; flex: none;
  border-radius: 50%; object-fit: cover; object-position: 50% 18%;
  background: #fff; border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(var(--navy-rgb),.14);
}
/* Any icon that lands in a byline is a glyph, never a panel: an SVG with no
   intrinsic size stretches to fill a flex row if it is not pinned down. */
.byline > svg { width: 28px; height: 28px; flex: none; }

.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: var(--sp-8); flex-wrap: wrap; }
.pagination .page-numbers {
  display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .7rem;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-weight: 700; font-size: var(--fs-sm); color: var(--navy-700); text-decoration: none;
  background: #fff;
}
.pagination .page-numbers:hover { border-color: var(--navy-300); }
.pagination .current { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

/* ---------- 22. Footer ---------- */
.site-footer {
  position: relative;
  background: linear-gradient(170deg, var(--navy-900), var(--navy-950));
  color: var(--on-dark-soft); padding-block: var(--sp-8) var(--sp-5);
}
.site-footer::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--blue-600) 54%, var(--navy-800));
}
.footer-grid { display: grid; gap: var(--sp-6); }
@media (min-width: 760px)  { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.site-footer h4 { color: #fff; font-size: var(--fs-sm); letter-spacing: .04em; text-transform: uppercase; margin-bottom: var(--sp-4); }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: var(--on-dark-soft); text-decoration: none; font-size: var(--fs-sm); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
/* A reversed lockup is served here, so no filter is needed and the red of the
   spine mark survives on the dark ground. */
.footer-brand img { height: 54px; width: auto; }
.footer-brand p { font-size: var(--fs-sm); color: var(--on-dark-mute); margin-top: var(--sp-4); max-width: 40ch; line-height: 1.7; }
.footer-contact { display: grid; gap: .7rem; font-size: var(--fs-sm); }
.footer-contact div { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact svg { width: 1.05em; height: 1.05em; flex: none; margin-top: .35em; color: var(--navy-300); }
.footer-bottom {
  margin-top: var(--sp-7); padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between;
  font-size: var(--fs-xs); color: var(--on-dark-mute);
}
.footer-bottom a { font-size: var(--fs-xs); }
.med-disclaimer {
  margin-top: var(--sp-5); padding: var(--sp-4) var(--sp-5);
  background: rgba(255,255,255,.05); border-radius: var(--r-md);
  font-size: var(--fs-xs); color: var(--on-dark-mute); line-height: 1.7;
}

/* ---------- 23. Sticky mobile action bar ---------- */
.action-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 90;
  display: none; gap: .5rem; padding: .55rem .75rem calc(.55rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px) saturate(1.6);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(var(--navy-rgb),.08);
}
/* `flex: 1` alone keeps each button at its content width, and three Hebrew
   labels then push the bar — and with it the whole page — wider than a phone.
   `min-width: 0` lets them shrink; the label truncates before that happens. */
.action-bar .btn {
  flex: 1 1 0; min-width: 0;
  padding: .8rem .5rem; font-size: var(--fs-sm); box-shadow: none;
  white-space: nowrap; overflow: hidden;
}
.action-bar .btn > span,
.action-bar .btn { text-overflow: ellipsis; }
@media (max-width: 860px) { .action-bar { display: flex; } body { padding-bottom: 74px; } }
@media (max-width: 380px) { .action-bar .btn { font-size: var(--fs-xs); padding: .8rem .35rem; gap: .3rem; } }

/* floating WhatsApp — desktop */
.wa-float {
  position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 89;
  width: 56px; height: 56px; border-radius: 50%;
  background: #15803D; color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 26px rgba(21,128,61,.42);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }
@media (max-width: 860px) { .wa-float { display: none; } }

/* ---------- 24. Utilities ---------- */
.center { text-align: center; }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.muted { color: var(--ink-mute); }
.divider { height: 1px; background: var(--line); border: 0; margin-block: var(--sp-7); }
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem 1rem; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--line);
  font-size: var(--fs-sm); font-weight: 600; color: var(--navy-700);
  text-decoration: none; white-space: nowrap;
}
.pill svg { width: 1em; height: 1em; flex: none; }
.pill:hover { border-color: var(--navy-300); color: var(--accent); }

/* ---------- 24b. Motion ----------
   Everything here is decoration. The page is complete and readable with all of
   it switched off, which is exactly what happens under prefers-reduced-motion.
   ------------------------------------------------------------------------- */

/* Reveal on scroll. `is-ready` is set by JS, so without JS nothing is hidden. */
[data-reveal] { transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.js-motion [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(16px); }

/* Children of a group arrive one after another; JS numbers them via --i. */
.js-motion [data-reveal-group] > *:not(.is-in) { opacity: 0; transform: translateY(18px); }
[data-reveal-group] > * {
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

/* Hero entrance. A transition rather than a keyframe animation: the finished
   state is a plain class, so re-rendering the page (a screenshot, a print, a
   restored tab) cannot replay it and catch the headline mid-fade. */
.js-motion .hero [data-rise] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms + 60ms);
}
.js-motion .hero.is-live [data-rise] { opacity: 1; transform: none; }

/* Background drift behind the hero. */
@keyframes saada-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-3%, 4%, 0) scale(1.09); }
}
/* The portrait panel's sheen: a long pause, then one quick pass. */
@keyframes saada-sheen {
  0%, 72%  { transform: translateX(-120%); }
  88%, 100% { transform: translateX(120%); }
}
html[dir="rtl"] .hero__photo::after { animation-name: saada-sheen-rtl; }
@keyframes saada-sheen-rtl {
  0%, 72%  { transform: translateX(120%); }
  88%, 100% { transform: translateX(-120%); }
}
/* The method badge breathes very slightly. */
@keyframes saada-float {
  from { transform: translateY(0); }
  to   { transform: translateY(-7px); }
}
/* Vertebra dots in the section dividers. */
@keyframes saada-pulse {
  0%, 100% { opacity: .35; transform: scale(.85); }
  50%      { opacity: 1;   transform: scale(1); }
}

/* Spine divider — three dots from the logo mark, used between sections. */
.spine-rule {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  margin-block: var(--sp-6);
}
.spine-rule i {
  width: 9px; height: 9px; border-radius: 50%; background: var(--navy-600);
  animation: saada-pulse 2.6s var(--ease) infinite;
}
.spine-rule i:nth-child(2) { background: var(--navy-500); animation-delay: .25s; }
.spine-rule i:nth-child(3) { background: var(--accent); animation-delay: .5s; }
.spine-rule::before, .spine-rule::after {
  content: ""; height: 1px; width: min(22%, 110px);
  background: linear-gradient(90deg, transparent, var(--blue-200));
}
.spine-rule::after { background: linear-gradient(90deg, var(--blue-200), transparent); }

@media (prefers-reduced-motion: reduce) {
  .js-motion [data-reveal]:not(.is-in),
  .js-motion [data-reveal-group] > *:not(.is-in),
  .js-motion .hero [data-rise] { opacity: 1; transform: none; animation: none; transition: none; }
  .hero__orb, .hero__photo::after, .hero__badge, .spine-rule i { animation: none; }
  .hero__photo::after { opacity: 0; }
}

/* ---------- 25. LTR (English) corrections ---------- */
html[dir="ltr"] .prose ul li { padding-inline-start: 1.7rem; }
html[dir="ltr"] .doctor__quote::before { content: "“"; }
html[dir="ltr"] .card-cond__more svg { transform: none; }
html[dir="ltr"] .card-cond:hover .card-cond__more svg { transform: translateX(4px); }
html[dir="ltr"] .breadcrumbs li::after { content: "›"; }

/* ---------- 26. Print ---------- */
@media print {
  .site-header, .site-footer, .action-bar, .wa-float, .side, .cta-band { display: none !important; }
  body { padding: 0; }
  .layout { grid-template-columns: 1fr; }
}

/* ---------- 27. Procedure diagrams ---------- */
.diagram {
  margin: var(--sp-6) 0;
  background: linear-gradient(165deg, #fff 0%, var(--canvas) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
}
.diagram__art { padding: var(--sp-5) var(--sp-5) 0; }
.diagram__art svg { width: 100%; height: auto; display: block; }

/* Shared drawing language for every procedure diagram. */
.dgm-body   { fill: #E6EDF4; }
.dgm-body-2 { fill: #D3E0EC; }
.dgm-bone   { fill: #FFFFFF; stroke: var(--navy-500); stroke-width: 2; }
.dgm-organ  { fill: #CBDAE8; stroke: var(--navy-500); stroke-width: 2; }
.dgm-line   { fill: none; stroke: var(--navy-700); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dgm-thin   { fill: none; stroke: var(--navy-300); stroke-width: 1.6; stroke-linecap: round; }
.dgm-dash   { fill: none; stroke: var(--navy-300); stroke-width: 1.6; stroke-dasharray: 5 5; stroke-linecap: round; }
.dgm-needle { fill: none; stroke: var(--navy-900); stroke-width: 3.4; stroke-linecap: round; }
.dgm-accent { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; }
.dgm-accent-f { fill: var(--accent); }
.dgm-halo   { fill: var(--accent); opacity: .13; }
.dgm-halo-2 { fill: var(--accent); opacity: .07; }
.dgm-glow   { fill: var(--navy-500); opacity: .12; }
.dgm-muted  { fill: var(--navy-300); opacity: .45; }
.dgm-num circle { fill: var(--accent); }
.dgm-num text {
  fill: #fff; font-family: var(--font-head); font-size: 15px; font-weight: 700;
  text-anchor: middle; dominant-baseline: central;
}

/* Numbered legend under the drawing — translated in PHP, not baked into the SVG. */
.diagram__legend {
  list-style: none; padding: var(--sp-5); margin: 0;
  display: grid; gap: var(--sp-3);
  border-top: 1px solid var(--line-soft);
  background: rgba(255,255,255,.6);
}
@media (min-width: 640px) { .diagram__legend { grid-template-columns: 1fr 1fr; column-gap: var(--sp-5); } }
.diagram__legend li {
  display: flex; align-items: flex-start; gap: .7rem;
  font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.6;
}
.diagram__legend li::before {
  counter-increment: dgm; content: counter(dgm);
  flex: none; width: 22px; height: 22px; margin-top: .1em;
  border-radius: 50%; background: var(--accent); color: #fff;
  font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 700;
  display: grid; place-items: center;
}
.diagram__legend { counter-reset: dgm; }
.diagram__caption {
  padding: 0 var(--sp-5) var(--sp-5);
  font-size: var(--fs-xs); color: var(--ink-mute); line-height: 1.6;
  background: rgba(255,255,255,.6);
}


/* ---------- 26. Accessibility toolbar ----------
   The adjustments are classes on <html>, set by assets/js/a11y.js and by the
   inline boot script in the head. Everything here is scoped to those classes,
   so with the toolbar untouched not one rule applies. */

/* Text size. The type scale multiplies every step by --a11y-scale (section 1),
   so one variable moves headings, body and small print together. */
html.a11y-text-1  { --a11y-scale: 0.92; }
html.a11y-text1   { --a11y-scale: 1.12; }
html.a11y-text2   { --a11y-scale: 1.25; }
html.a11y-text3   { --a11y-scale: 1.4; }

html.a11y-spacing body { line-height: 2.1; letter-spacing: .055em; word-spacing: .14em; }
html.a11y-spacing p { margin-block: .9em; }
html.a11y-spacing h1, html.a11y-spacing h2, html.a11y-spacing h3, html.a11y-spacing h4 { line-height: 1.45; }

html.a11y-font, html.a11y-font body, html.a11y-font .a11y-panel,
html.a11y-font h1, html.a11y-font h2, html.a11y-font h3, html.a11y-font h4,
html.a11y-font p, html.a11y-font li, html.a11y-font a, html.a11y-font span,
html.a11y-font strong, html.a11y-font button, html.a11y-font input,
html.a11y-font select, html.a11y-font textarea, html.a11y-font label, html.a11y-font dt, html.a11y-font dd {
  font-family: Arial, "Segoe UI", "Noto Sans Hebrew", sans-serif !important;
  letter-spacing: normal !important;
}

html.a11y-links a {
  text-decoration: underline !important;
  text-underline-offset: 3px;
  outline: 1px dashed currentColor;
  outline-offset: 3px;
}

html.a11y-focus :focus {
  outline: 3px solid #D7263D !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px rgba(215, 38, 61, .25) !important;
}

/* A large black-on-white arrow, inlined so there is no extra request. */
html.a11y-cursor, html.a11y-cursor * {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'><path d='M8 4 36 22 23 25 29 40 23 43 17 28 8 36Z' fill='%23000' stroke='%23fff' stroke-width='2.5' stroke-linejoin='round'/></svg>") 6 4, auto !important;
}

/* Stopping animation also has to reveal whatever the reveal-on-scroll script
   would otherwise have faded in — without its transition the element would
   simply stay invisible. */
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after {
  animation: none !important;
  transition: none !important;
}
html.a11y-motion { scroll-behavior: auto !important; }
html.a11y-motion [data-reveal],
html.a11y-motion [data-reveal-group] > *,
html.a11y-motion [data-rise] {
  opacity: 1 !important;
  transform: none !important;
}

/* The filter goes on <html>, not <body>. A filter makes the element a
   containing block for its fixed-position descendants — except on the root
   element, which is exempt. On <body> it detached the floating buttons and
   the mobile action bar, and they scrolled away with the page. */
html.a11y-gray { filter: grayscale(1); }

/* High contrast: black ground, white text, yellow links. The blanket rule is
   deliberate — gradients, tinted panels and brand colours all have to go, and
   every one of them would otherwise need its own override. */
html.a11y-contrast, html.a11y-contrast body { background: #000 !important; color: #fff !important; }
html.a11y-contrast body *:not(svg):not(path):not(circle):not(rect):not(line):not(polyline) {
  background-color: transparent !important;
  background-image: none !important;
  color: #fff !important;
  border-color: #fff !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
html.a11y-contrast a, html.a11y-contrast a * { color: #FFE24D !important; text-decoration: underline !important; }
html.a11y-contrast .btn, html.a11y-contrast .a11y-opt, html.a11y-contrast .a11y-reset,
html.a11y-contrast input, html.a11y-contrast select, html.a11y-contrast textarea {
  border: 2px solid #fff !important;
  background: #000 !important;
}
html.a11y-contrast .site-header, html.a11y-contrast .action-bar, html.a11y-contrast .a11y-panel { background: #000 !important; }
html.a11y-contrast .site-header, html.a11y-contrast .a11y-panel { border: 1px solid #fff !important; }
html.a11y-contrast img, html.a11y-contrast video { filter: grayscale(1) contrast(1.15); }
html.a11y-contrast .hero__orb, html.a11y-contrast .spine-rule::before, html.a11y-contrast .spine-rule::after { display: none !important; }

/* ---- The toolbar itself ---- */
.a11y-fab {
  position: fixed; inset-inline-start: 22px; bottom: 22px; z-index: 95;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-800); color: #fff;
  border: 2px solid #fff; cursor: pointer;
  box-shadow: 0 6px 20px rgba(var(--navy-rgb), .32);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.a11y-fab:hover { transform: scale(1.08); background: var(--navy-700); }
.a11y-fab svg { width: 30px; height: 30px; }

.a11y-panel {
  position: fixed; inset-inline-start: 22px; bottom: 86px; z-index: 96;
  width: min(330px, calc(100vw - 32px));
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 18px 48px rgba(var(--navy-rgb), .28);
  padding: var(--sp-4);
  max-height: min(78vh, 620px); overflow-y: auto;
}
.a11y-panel[hidden] { display: none; }
.a11y-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-3); }
.a11y-panel__head strong { font-family: var(--font-head); font-size: var(--fs-lg); color: var(--navy-900); }
.a11y-x {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; color: var(--ink-soft); cursor: pointer;
}
.a11y-x:hover { background: var(--navy-050); color: var(--navy-800); }
.a11y-x svg { width: 18px; height: 18px; }

.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.a11y-opt {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .4rem; min-height: 76px; padding: .6rem .4rem;
  text-align: center; font-size: var(--fs-xs); line-height: 1.3; font-weight: 600;
  color: var(--navy-900); background: var(--navy-050);
  border: 1px solid var(--navy-100); border-radius: var(--r-md);
  cursor: pointer; transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.a11y-opt svg { width: 22px; height: 22px; }
.a11y-opt:hover { background: var(--navy-100); }
.a11y-opt[aria-pressed="true"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.a11y-opt[disabled] { opacity: .45; cursor: not-allowed; }

.a11y-reset {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; margin-top: .75rem; padding: .7rem;
  font-size: var(--fs-sm); font-weight: 600;
  color: var(--accent); background: #fff;
  border: 1px solid var(--accent); border-radius: var(--r-md); cursor: pointer;
}
.a11y-reset:hover { background: var(--accent); color: #fff; }
.a11y-reset svg { width: 18px; height: 18px; }
.a11y-link { display: block; margin-top: .7rem; font-size: var(--fs-sm); text-align: center; }
.a11y-note { margin-top: .5rem; font-size: var(--fs-xs); color: var(--ink-mute); text-align: center; }

/* The sticky action bar owns the bottom of a phone screen, so the button sits
   above it rather than on top of the WhatsApp call to action. */
@media (max-width: 860px) {
  .a11y-fab { bottom: 86px; width: 48px; height: 48px; }
  .a11y-panel { bottom: 144px; }
}

@media print {
  .a11y-fab, .a11y-panel { display: none !important; }
}
