/* ==========================================================================
   Homepage sections
   ========================================================================== */

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  margin-top: calc(var(--header-h) * -1);   /* slide under the floating header */
  padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 3.5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__glow { position: absolute; border-radius: 50%; }
.hero__glow--a {
  width: 70vw; height: 70vw; max-width: 980px; max-height: 980px;
  inset-inline-end: -18vw; top: -24vw;
  background: radial-gradient(closest-side, rgba(219, 182, 214, 0.5), rgba(219, 182, 214, 0) 70%);
}
.hero__glow--b {
  width: 46vw; height: 46vw; max-width: 640px; max-height: 640px;
  inset-inline-start: -10vw; bottom: -14vw;
  background: radial-gradient(closest-side, rgba(219, 230, 184, 0.55), rgba(219, 230, 184, 0) 70%);
}

.hero__grid { display: grid; gap: var(--space-7); align-items: center; }
.hero__text { position: relative; z-index: 2; }

.hero__title {
  font-family: var(--font-display);
  color: var(--ink-900);
  letter-spacing: -0.025em;
  line-height: 1;
  font-weight: 300;
}
.hero__name { display: block; font-size: var(--text-display); font-weight: 300; }
.hero__field {
  display: block;
  margin-top: 0.12em;
  font-size: var(--text-2xl);
  color: var(--plum-700);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.hero__motto {
  margin-top: var(--space-5);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--orchid-500);
  letter-spacing: 0.01em;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5em;
}
.hero__motto span { display: inline-block; }

/* All three actions sit on one row; the phone button is the compact one */
.hero__actions { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; margin-top: var(--space-7); }
.hero__actions .btn--lg { padding: 0 1.6em; }
.hero__actions .hero__phone { padding: 0 1.15em; gap: 0.45em; font-size: var(--text-sm); }
.hero__actions .btn--whatsapp { padding: 0 1.15em; gap: 0.45em; }
.btn--whatsapp .icon { color: var(--green-700); }

/* Visual: Sivan rising out of the capsule "ס" ring (the letter from the logo), two line dandelions */
.hero__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 500px);
}
.hero__figure { margin: 0; position: relative; z-index: 1; }
.hero__art { display: block; width: 100%; height: auto; overflow: visible; }
.hero__arch-line {
  fill: none;
  stroke: var(--orchid-400);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  opacity: 0.8;
}
.hero__portrait { filter: drop-shadow(0 18px 30px rgba(61, 7, 57, 0.12)); }
/* soft hand-off to the next section: the hero's glows fade out as you scroll (ui.js sets --hero-fade),
   and the bottom of the hero dissolves into white */
.hero__bg { opacity: var(--hero-fade, 1); }
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: clamp(120px, 18vh, 220px);
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--white));
  pointer-events: none;
}


/* Dandelions: same line language as the icons (thin even stroke, round caps).
   Stems are drawn past the SVG's bottom edge; .hero clips them at the bottom of the frame. */
.dandelion {
  fill: none;
  stroke: #c3bec7;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.dandelion path { vector-effect: non-scaling-stroke; }
.dandelion circle { fill: #c3bec7; stroke: none; }
.dandelion__sway { transform-box: view-box; }
.dandelion--arch .dandelion__sway { transform-origin: -200px 1000px; }
.dandelion--wind .dandelion__sway { transform-origin: -40px 1000px; }
.dandelion--twin .dandelion__sway { transform-origin: 50px 1100px; }
.dandelion__head { transform-box: fill-box; transform-origin: center; }
.seed { transform: translate(var(--x), var(--y)); }
.seed__wobble { transform-box: fill-box; transform-origin: 50% 0%; }

@media (max-width: 759px) {
  .hero__actions { gap: 8px; }
  .hero__actions .btn--lg { --btn-h: 52px; padding: 0 1em; font-size: var(--text-sm); }
  .hero__actions .hero__cta { flex: 1 1 auto; }
  .hero__actions .hero__phone { flex: 0 1 auto; padding: 0 0.9em; }
  /* WhatsApp collapses to a round icon button on phones so the row never wraps */
  .hero__actions .btn--whatsapp { flex: none; width: 52px; padding: 0; }
  .hero__actions .btn--whatsapp span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero__visual { width: min(88%, 400px); margin-top: 10%; }
}
@media (min-width: 760px) {
  .hero { min-height: min(100svh, 900px); display: flex; flex-direction: column; justify-content: center; }
  .hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-6); align-items: end; }
  /* the ring's bottom edge (= the SVG's bottom) lines up with the "בריאות. שגרה. שלווה." line */
  .hero__visual { justify-self: end; align-self: end; margin-bottom: calc(var(--space-7) + 56px); }
}
@media (min-width: 1200px) {
  .hero__field { font-size: var(--text-3xl); }
}

/* ---------- 2. Intro: editorial spread ----------
   Hierarchy: greeting (display) > role sentence (xl) > credentials (small, spaced Latin)
   > PFFM method (underlined link with the full English name as a quieter second line)
   > video + pull quote > two short reading columns with subheads. */
.intro { position: relative; background: var(--white); overflow: clip; isolation: isolate; }
.intro__ring {
  /* the capsule "ס" from the hero, as a hairline watermark behind the video */
  position: absolute;
  z-index: -1;
  inset-inline-end: -6vw;
  top: 18%;
  width: clamp(280px, 38vw, 620px);
  aspect-ratio: 0.62;
  border-radius: 999px;
  border: 1px solid var(--lavender-200);
  transform: rotate(-16deg);
  pointer-events: none;
}
.intro__grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--orchid-500);
}
.eyebrow__mark { width: 52px; height: 22px; border-radius: 99px; border: 2.5px solid currentColor; }

.intro__lead { margin-top: var(--space-5); font-family: var(--font-display); color: var(--ink-900); }
.intro__hello {
  display: block;
  font-size: var(--text-3xl);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.intro__latin { font-weight: 300; color: var(--ink-500); font-size: 0.62em; letter-spacing: 0; vertical-align: 0.12em; }
.intro__role {
  display: block;
  margin-top: var(--space-5);
  max-width: 34ch;
  font-size: var(--text-xl);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-700);
}
.intro__cred {
  font-family: var(--font-body);
  font-size: 0.62em;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--orchid-500);
  vertical-align: 0.15em;
  white-space: nowrap;
}
.intro__method {
  color: var(--plum-700);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: var(--orchid-300);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.24em;
  transition: text-decoration-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}
.intro__method-full { display: inline-block; white-space: nowrap; font-size: 0.86em; color: var(--orchid-500); }
@media (hover: hover) { .intro__method:hover { text-decoration-color: var(--plum-700); } }

/* Stage: big video + pull quote, deliberately off-axis */
.intro__stage { display: grid; gap: var(--space-7); align-items: end; }
.intro__media { position: relative; width: 85%; margin-inline: auto 0; }   /* round 13: 15% smaller */
.intro__media::before {
  /* a lavender capsule floating behind the player (replaces the offset grey block) */
  content: "";
  position: absolute;
  inset: 20% -13% -13% 34%;
  z-index: -1;
  border-radius: 999px;
  background: var(--lavender-200);
}
.intro__quote { margin: 0; position: relative; padding-top: var(--space-6); }
.intro__quote::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 56px;
  height: 1.5px;
  background: var(--orchid-500);
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 1.2s var(--ease-out) 0.3s;
}
.intro__quote.is-revealed::before, html:not(.js) .intro__quote::before { transform: none; }
.intro__quote p {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  max-width: 18ch;
}
.intro__quote em { font-style: normal; color: var(--plum-700); font-weight: 400; }

/* Reading columns */
.intro__detail { display: grid; gap: var(--space-7); }
.intro__col p { color: var(--ink-700); line-height: 1.8; }
.intro__sub {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--plum-700);
}
.intro__sub-num { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em; color: var(--orchid-400); }

/* highlighter: a soft lavender stroke that draws in under the key sentence once revealed */
.hl {
  color: var(--ink-900);
  background: linear-gradient(transparent 58%, rgba(219, 182, 214, 0.55) 58%, rgba(219, 182, 214, 0.55) 92%, transparent 92%) no-repeat right / 0% 100%;
  transition: background-size 1.4s var(--ease-out) 0.5s;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.is-revealed .hl, html:not(.js) .hl { background-size: 100% 100%; }

/* Video player shell */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: clamp(20px, 2.4vw, 32px);
  overflow: hidden;
  background: var(--plum-900);
  box-shadow: 0 30px 60px -30px rgba(42, 4, 39, 0.45), 0 8px 20px -10px rgba(42, 4, 39, 0.2);
  transform: translateZ(0);         /* Safari: keep the rounded clip during scale */
}
.video__poster, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video__poster { transition: transform 1.2s var(--ease-out), filter var(--dur-3); filter: saturate(0.92); }
.video__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 90% at 50% 50%, rgba(42, 4, 39, 0) 40%, rgba(42, 4, 39, 0.28)),
    linear-gradient(180deg, rgba(42, 4, 39, 0) 55%, rgba(42, 4, 39, 0.4));
  transition: opacity var(--dur-3) var(--ease-out);
  pointer-events: none;
}
.video__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  color: var(--white);
}
.video__play-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(72px, 7vw, 96px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--white);
  color: var(--plum-700);
  box-shadow: 0 14px 34px -10px rgba(42, 4, 39, 0.45);
  transition: transform var(--dur-3) var(--ease-out), background-color var(--dur-2);
}
.video__play-ring::after {
  /* breathing halo */
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  animation: halo 3.2s var(--ease-in-out) infinite;
}
.video__play-ring .icon { width: 34%; height: 34%; fill: currentColor; transform: scaleX(-1) translateX(-6%); }
.video__play-label {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 12px rgba(42, 4, 39, 0.5);
  opacity: 0.92;
  transform: translateY(0);
  transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-3);
}
@keyframes halo { 0%, 100% { transform: scale(0.94); opacity: 0.2; } 50% { transform: scale(1.06); opacity: 0.8; } }
@media (hover: hover) {
  .video:hover .video__poster { transform: scale(1.04); filter: saturate(1.05); }
  .video:hover .video__veil { opacity: 0.75; }
  .video:hover .video__play-ring { transform: scale(1.08); }
  .video:hover .video__play-label { transform: translateY(2px); opacity: 1; }
}
.video__play:focus-visible { outline: none; }
.video__play:focus-visible .video__play-ring { outline: 3px solid var(--white); outline-offset: 6px; }

@media (min-width: 760px) {
  .intro__detail { grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 5rem); }
  /* "המשך קריאה" sits on the left, flush with the end of paragraph 02 */
  .intro__more { grid-column: 1 / -1; justify-self: end; }
}
@media (min-width: 1024px) {
  .intro__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-5); }
  .intro__head { grid-column: 1 / span 9; }
  .intro__stage { grid-column: 1 / -1; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-5); }
  .intro__quote { grid-column: 1 / span 4; grid-row: 1; align-self: end; padding-bottom: var(--space-4); }
  .intro__media { grid-column: 5 / -1; grid-row: 1; }
  /* reading columns hang directly under the quote; column 01 starts on the quote's line */
  .intro__detail { grid-column: 1 / -1; margin-top: var(--space-6); }
}

/* ---------- 3. Pathway tiles ---------- */
.paths { background: var(--white); padding-block: 0 clamp(2rem, 1.5rem + 2vw, 3rem); }
.paths__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 22px);
}
@media (min-width: 960px) { .paths__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* round 13: four tall capsules, one even light lavender, line icons from Aviv's set */
.path-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  aspect-ratio: 5 / 7;
  padding: 0 12px clamp(22px, 3vw, 40px);
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  background: var(--lavender-100);
  /* soft, unhurried hover: turns green, floats and grows a touch */
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.3, 1), background-color 0.7s var(--ease-out);
}
.path-tile__art {
  position: absolute;
  inset: 13% 16% 30%;
  z-index: -1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ln {
  width: 100%; height: 100%;
  overflow: visible;
  fill: none;
  stroke: var(--plum-700);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.7s var(--ease-out);
}
.ln path { vector-effect: non-scaling-stroke; }
.ln-fig { transition: transform 0.8s cubic-bezier(0.25, 1, 0.3, 1); transform-box: fill-box; transform-origin: center; }

.path-tile__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  background: var(--plum-700);
  color: var(--white);
  transition: background-color 0.7s var(--ease-out);
}
.path-tile__label .icon { width: 18px; height: 18px; transition: transform 0.6s cubic-bezier(0.25, 1, 0.3, 1); }

@media (hover: hover) {
  .path-tile:hover { transform: translateY(-8px) scale(1.03); background: var(--sage-100); }
  .path-tile:hover .ln { stroke: var(--green-700); }
  .path-tile:hover .ln-fig { transform: translateY(-4px); }
  .path-tile:hover .path-tile__label { background: var(--green-700); }
  .path-tile:hover .path-tile__label .icon { transform: translateX(-4px); }
}
.path-tile:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; }
@media (max-width: 599px) {
  .path-tile { aspect-ratio: 3 / 5; padding-bottom: 30px; }
  .path-tile__label { font-size: var(--text-xs); padding: 6px 12px; min-height: 40px; }
}

/* ---------- 4. Treatments ---------- */
.treatments { background: var(--white); overflow-x: clip; }  /* no band: continues the intro */
/* round 15: dandelion entering from the screen's right edge, arching up under the title (desktop columns only) */
.treatments__dandelion { display: none; }
@media (min-width: 960px) {
  .treatments__dandelion {
    --edge: max(var(--gutter), (100vw - var(--container)) / 2);   /* from the column's right edge to the screen's */
    display: block;
    position: relative;
    margin-top: var(--space-9);              /* round 18: further below the title */
    margin-right: calc(-1 * var(--edge));
    width: calc((70% + var(--edge)) / 0.81);  /* the head (at 19% of the drawing) lands ~70% across the column */
    margin-left: auto;
  }
  .treatments__dandelion svg { display: block; width: 100%; height: auto; overflow: hidden; }
}
.dandelion--side .dandelion__sway { transform-origin: 830px 560px; }
.treatments__grid { display: grid; gap: var(--space-7); }
.treatments__head { position: relative; }
.treatments__capsule {
  display: block;
  margin-top: var(--space-5);
  width: 92px; height: 38px;
  border-radius: var(--radius-pill);
  border: 6px solid var(--plum-700);   /* the "kapsula" bullet from the old site, as a brand motif */
}
/* Accordion rows: hairline separated, title + thin "+" at the far end (after the Zurich reference) */
.acc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__heading { margin: 0; }
.acc__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: clamp(1.25rem, 1rem + 1vw, 1.9rem) 0;
  text-align: start;
  color: var(--ink-900);
  cursor: pointer;
}
.acc__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  letter-spacing: 0.01em;
  transition: color var(--dur-2) var(--ease-out), transform var(--dur-3) var(--ease-out);
}
.acc__plus { position: relative; flex: none; width: 22px; height: 22px; color: var(--plum-700); }
.acc__plus::before, .acc__plus::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1.5px;
  margin-top: -0.75px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-2);
}
.acc__plus::after { transform: rotate(90deg); }
.acc__item.is-open .acc__plus::after { transform: rotate(0deg); opacity: 0; }
.acc__item.is-open .acc__plus::before { transform: rotate(180deg); }
.acc__item.is-open .acc__title { color: var(--plum-700); }
@media (hover: hover) {
  .acc__trigger:hover .acc__title { color: var(--plum-700); transform: translateX(-6px); }
}
/* smooth height: grid row 0fr → 1fr */
.acc__panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.6s var(--ease-out); }
.js .acc__panel { grid-template-rows: 0fr; }
.js .acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; min-height: 0; }
.js .acc__inner { visibility: hidden; transition: visibility 0s linear 0.6s; }
.js .acc__item.is-open .acc__inner { visibility: visible; transition-delay: 0s; }
.acc__text {
  max-width: 56ch;
  color: var(--ink-700);
  line-height: 1.8;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.5s var(--ease-out) 0.1s, transform 0.5s var(--ease-out) 0.1s;
}
html:not(.js) .acc__text, .acc__item.is-open .acc__text { opacity: 1; transform: none; }
.acc__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: var(--space-4) 0 var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--plum-700);
}
.acc__more .icon { width: 18px; height: 18px; transition: transform var(--dur-2) var(--ease-out); }
@media (hover: hover) { .acc__more:hover .icon { transform: translateX(-5px); } }

@media (min-width: 960px) {
  .treatments__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-9); }
  .treatments__head { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
}

/* ---------- 5. Testimonials (round 15: no frame; each review is a capsule; same columns as "טיפולים נוספים") ---------- */
.testimonials {
  background: var(--white);
  padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem) clamp(4rem, 3rem + 4vw, 7rem);
}
.testimonials .section-title { color: var(--plum-700); }
.testimonials .round-btn { border-color: rgba(90, 9, 84, 0.25); color: var(--plum-700); }
@media (hover: hover) { .testimonials .round-btn:hover { background: var(--lavender-100); border-color: var(--plum-700); } }
.testimonials__layout { display: grid; gap: var(--space-7); align-items: start; }
.testimonials__layout > * { min-width: 0; }
/* the same 4 : 7 columns and gap as the treatments section, so the two titles stack in one column */
@media (min-width: 960px) {
  .testimonials__layout { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-9); align-items: center; }
}
.testimonials__head { display: flex; flex-direction: column; gap: var(--space-5); }
/* round 16: previous / next on both ends of the capsule, half over its rounded edge */
.testimonials__stage { position: relative; padding-inline: 20px; }
.testimonials__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px; height: 44px;
  margin-top: -22px;
  background: var(--white);
  border-color: rgba(90, 9, 84, 0.2);
}
.testimonials__arrow .icon { width: 20px; height: 20px; }
.testimonials__arrow--prev { inset-inline-start: 0; }
.testimonials__arrow--next { inset-inline-end: 0; }
@media (min-width: 960px) { .testimonials__stage { padding-inline: 26px; } .testimonials__arrow { width: 52px; height: 52px; margin-top: -26px; } }
@media (max-width: 959px) { .testimonials__head { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); } }

.slider-controls { display: flex; gap: 10px; }
.testimonials__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  border-radius: 999px;
}
.testimonials__track::-webkit-scrollbar { display: none; }
/* round 15: one whole capsule at a time (a cut-off capsule peeking in reads as a broken shape) */

.quote {
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(220px, 18vw, 280px);
  padding: clamp(2rem, 1.5rem + 2vw, 3rem) clamp(3rem, 2rem + 4vw, 6rem);
  padding-inline-start: clamp(4.5rem, 3rem + 5vw, 8rem);
  border-radius: 999px;                     /* round 15: every review is a light-lavender capsule */
  background: var(--lavender-100);
  transition: opacity var(--dur-3) var(--ease-out);
}
.quote:not(.is-active) { opacity: 0.5; }
.quote__mark {
  position: absolute;
  inset-inline-start: clamp(2.25rem, 1.5rem + 2.5vw, 4rem);
  top: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem);
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--orchid-400);
}
.quote blockquote p {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.55;
  font-weight: 300;
  color: var(--ink-900);
  max-width: 40ch;
}
.quote__by {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: var(--space-4);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--plum-700);
}
.quote__by::before { content: ""; width: 24px; height: 1.5px; background: var(--orchid-400); align-self: center; }
.quote__date { font-weight: 400; color: var(--ink-500); font-size: var(--text-xs); }

.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: var(--space-4); }
.slider-dots span { width: 8px; height: 8px; border-radius: 8px; background: rgba(90, 9, 84, 0.2); transition: width var(--dur-3) var(--ease-out), background-color var(--dur-3); }
.slider-dots span.is-active { width: 28px; background: var(--plum-700); }

/* ---------- 6. Quick links ---------- */

/* ---------- 7. Contact (compact: fits one screen) ---------- */
.contact {
  /* round 17: no hard edge — white fades into soft lavender glows (like the hero) and ends in the footer's lavender */
  background:
    radial-gradient(ellipse 55% 60% at 88% 62%, rgba(219, 182, 214, 0.42), rgba(219, 182, 214, 0) 70%),
    radial-gradient(ellipse 50% 45% at 8% 70%, rgba(219, 182, 214, 0.3), rgba(219, 182, 214, 0) 70%),
    linear-gradient(180deg, var(--white) 0%, var(--white) 12%, var(--lavender-50) 55%, var(--lavender-100) 100%); padding-block: clamp(4.5rem, 3rem + 5vw, 7.5rem); }
.contact__grid { display: grid; gap: clamp(3rem, 2rem + 4vw, 6rem); }
@media (min-width: 960px) {
  .contact__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(4rem, 2rem + 5vw, 8rem); align-items: center; }
}
.contact-list { display: grid; gap: var(--space-4); }
.contact-list__item { display: grid; grid-template-columns: 44px 1fr; gap: var(--space-3); align-items: center; }
.contact-list__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--green-700);
  box-shadow: var(--shadow-1);
}
.contact-list__icon .icon { width: 20px; height: 20px; }
.contact-list__text { display: grid; gap: 0; color: var(--ink-900); font-size: var(--text-sm); line-height: 1.5; justify-self: start; }
.contact-list__phone {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--plum-700);
  transition: color var(--dur-2);
}
.contact-list__phone:hover { color: var(--plum-600); }

.fb-card {
  display: flex; align-items: center; gap: var(--space-3);
  margin-top: var(--space-5);
  padding: 10px 14px 10px 10px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2);
}
.fb-card__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.fb-card__text { display: grid; line-height: 1.35; font-size: var(--text-sm); }
.fb-card__name { font-weight: 600; color: var(--ink-900); }
.fb-card__meta { font-size: var(--text-xs); color: var(--ink-500); justify-self: start; }
.fb-card__icon { margin-inline-start: auto; width: 22px; height: 22px; color: var(--plum-700); }
@media (hover: hover) { .fb-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); } }

/* Frameless form (round 2): sits directly on the section background */
.form-card { padding: 0; }
.form-card .field__input { background: rgba(255, 255, 255, 0.8); border-color: rgba(90, 9, 84, 0.12); }
.form-card .field__input:focus { background: var(--white); }
.form-card__title { font-size: var(--text-xl); font-weight: 400; color: var(--plum-700); margin-bottom: var(--space-4); }
.form-card .form { gap: var(--space-4); }
.form-card .form__row { gap: var(--space-4); }
@media (min-width: 760px) { .form-card .form__row--3 { grid-template-columns: repeat(3, 1fr); } }
.form-card .field__input { min-height: 48px; padding: 10px 14px; }
.form-card .field__input--area { min-height: 88px; }
.form-card .btn--lg { --btn-h: 50px; }

/* ---------- Hero, round 9: text right; a slim capsule enters from the left and Sivan comes out of its end ----------
   The hero is one screen tall and the photo sits at its bottom, so the whole capsule is in the first frame.
   ui.js sets the figure's width (= capsule length) and --px (Sivan's left edge) so her face is under "האגן"
   and her shoulder line meets the capsule's rounded end. */
.hero--split {
  --img-h: clamp(210px, min(27.5vw, 37.3svh), 380px);   /* Sivan's height (round 13: another -10%); the whole capsule fits in the first screen */
  --cap-h: calc(var(--img-h) * 0.58);        /* round 14: a little taller; round 11: slim and long like the logo's "ס" (2.4 : 1); its top edge meets her chin */
  min-height: min(100svh, 980px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;               /* text at the top; the capsule floats below it */
  padding-top: calc(var(--header-h) + clamp(2.5rem, 8vh, 6rem));
  padding-bottom: clamp(1.5rem, 4vh, 3rem);
}
.hero--split .hero__text { position: relative; z-index: 2; width: 100%; }
.hero--split .hero__name  { font-size: calc(var(--text-display) * 0.95); }
.hero--split .hero__field { font-size: calc(var(--text-2xl) * 0.95); margin-top: 0.2em; }
.hero--split .hero__actions { margin-top: var(--space-6); gap: 14px; }
.hero--split .hero__actions .btn--lg { --btn-h: 46px; padding: 0 1.5em; font-size: calc(var(--text-xs) * 1.1); }
.hero--split .hero__actions .hero__phone,
.hero--split .hero__actions .btn--whatsapp { padding: 0 1.1em; font-size: calc(var(--text-xs) * 1.1); }
/* round 18: a line with both clinic locations under the buttons */
.hero__where {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--ink-500);
}
.hero__where .icon { width: 20px; height: 20px; flex: none; color: var(--plum-700); }
.hero__where-sep { margin-inline: 0.45em; color: var(--orchid-400); }
/* round 25 (laptop and up): the paragraph sits lower, with air above it inside the capsule */
@media (min-width: 1024px) {
  .hero__caption { padding-top: 18px; }
  .hero__caption .hero__caption-where { margin-top: calc(1.7em - 8px); }
}
/* round 19: on desktop the location line moves into the capsule, under the caption */
.hero__caption-where { display: none; }
@media (min-width: 760px) {
  .hero__where { display: none; }
  .hero__caption-where { display: flex; align-items: center; gap: 8px; margin-top: 1.7em; font-size: 1.06em; color: var(--ink-700); }   /* round 20/22: set apart from the paragraph, a touch larger */
  .hero__caption-where .icon { width: 1.15em; height: 1.15em; flex: none; color: var(--plum-700); }
}
/* round 17, desktop: title, motto and buttons 15% larger */
@media (min-width: 760px) {
  .hero--split .hero__name  { font-size: calc(var(--text-display) * 0.95 * 1.15); }
  .hero--split .hero__field { font-size: calc(var(--text-2xl) * 0.95 * 1.15); }
  .hero--split .hero__motto { font-size: calc(var(--text-xl) * 1.3); }   /* round 19: a little larger again */
  .hero--split .hero__actions { margin-top: calc(var(--space-6) * 1.15); gap: 16px; }
  .hero--split .hero__actions .btn--lg { --btn-h: 53px; font-size: calc(var(--text-xs) * 1.1 * 1.15); }
  .hero--split .hero__actions .hero__phone,
  .hero--split .hero__actions .btn--whatsapp { font-size: calc(var(--text-xs) * 1.1 * 1.15); }
  .hero--split .hero__actions .btn .icon { width: 21px; height: 21px; }
}

/* round 10: a free-floating pill (half the old length), raised a little; ui.js sets left */
.hero__photo {
  position: absolute;
  z-index: 1;
  left: 34vw;                              /* fallback */
  bottom: clamp(6.5rem, 19vh, 12rem);       /* round 23: raised */
  margin: 0;
  height: var(--img-h);
  --text-w: calc(var(--img-h) * 0.9);      /* round 12: extended to the left to hold the text; round 13: ui.js sizes it to the text */
  width: calc(var(--img-h) * 1.2 + var(--text-w));
}
.hero__caption {
  position: absolute;
  z-index: 2;
  bottom: 0;
  height: var(--cap-h);
  left: calc(var(--cap-h) * 0.3);           /* clear of the rounded left end (round 14: tighter) */
  right: calc(var(--img-h) * 0.75 + 34px);  /* stops before Sivan (round 15: a little more air) */
  display: flex;
  align-items: center;
  margin: 0;
  text-align: right;                        /* aligned right, next to Sivan */
  font-size: clamp(0.9375rem, 0.7rem + 0.42vw, 1.1875rem);   /* round 22: larger */
  line-height: 1.55;
  color: var(--ink-500);
}
.hero__caption-text { white-space: nowrap; }   /* three lines, broken where Aviv asked */
.hero__capsule {
  position: absolute;
  inset: auto 0 0 0;
  height: var(--cap-h);
  background: var(--lavender-200);
  border-radius: 999px;
  overflow: hidden;                        /* clips her shoulders to the capsule's rounded right end */
}
.hero__photo-img {                         /* right-aligned: her shoulder line meets the rounded end */
  position: absolute;
  bottom: 0;
  right: 0;
  height: var(--img-h);
  width: auto;
  max-width: none;
}
/* the second copy shows only what rises above the capsule (1px overlap hides any seam) */
.hero__photo-img--top { clip-path: inset(0 0 calc(var(--cap-h) - 1px) 0); }

.hero__deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__dandelions {
  position: absolute;
  -webkit-mask-image: linear-gradient(#000 60%, transparent 92%); mask-image: linear-gradient(#000 60%, transparent 92%);
  transform: translate3d(
    calc(var(--mx, 0) * var(--depth, 1) * 16px),
    calc(var(--my, 0) * var(--depth, 1) * 12px - var(--hp-scroll, 0) * var(--depth, 1) * 0.12px),
    0);
  transition: transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* big one: whole head inside the frame and below the menu; with no capsule in the way its stem runs down
   and fades out just above the bottom of the hero */
.hero__dandelions--big {
  left: -2vw; top: calc(var(--header-h) + 14px); width: clamp(260px, 35vw, 500px);
  --fade-end: calc(min(100svh, 980px) - var(--header-h) - 40px);
  -webkit-mask-image: linear-gradient(#000 calc(var(--fade-end) - 300px), transparent var(--fade-end));
  mask-image: linear-gradient(#000 calc(var(--fade-end) - 300px), transparent var(--fade-end));
}
/* small one: bigger and closer; ui.js puts its head under "צור קשר"; this is the fallback */
.hero__dandelions--small {
  right: 2vw; top: 56%; width: clamp(230px, 29vw, 420px);
  /* seeds fade out on their way up and never pass the buttons (ui.js sets --fade-top = the buttons' bottom) */
  -webkit-mask-image: linear-gradient(transparent var(--fade-top, 0px), #000 calc(var(--fade-top, 0px) + 90px), #000 60%, transparent 92%);
  mask-image: linear-gradient(transparent var(--fade-top, 0px), #000 calc(var(--fade-top, 0px) + 90px), #000 60%, transparent 92%);
}
.hero__dandelions-svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero__dandelions--side { display: none; }
.hero__dandelions--side .hero__dandelions-svg { overflow: hidden; }

@media (max-width: 759px) {
  .hero--split { --img-h: 66vw; min-height: 100svh; padding-top: calc(var(--header-h) + 0.75rem); }   /* round 22: everything a little closer to the menu */
  .hero--split .hero__motto { margin-top: var(--space-3); }
  .hero--split .hero__actions { margin-top: var(--space-5); }
  .hero__dandelions--big { left: -8vw; top: auto; bottom: 0; width: 50vw; -webkit-mask-image: linear-gradient(#000 55%, transparent 92%); mask-image: linear-gradient(#000 55%, transparent 92%); }
  /* round 19: ui.js sets --cut so the stem has faded out before the capsule begins */
  .hero__dandelions--big[style*="--cut"] {
    -webkit-mask-image: linear-gradient(#000 calc(var(--cut) - 70px), transparent var(--cut));
    mask-image: linear-gradient(#000 calc(var(--cut) - 70px), transparent var(--cut));
  }
  .hero__dandelions--small { width: 44vw; }
  /* round 16, phones: the capsule spans the width and holds the caption beside a smaller Sivan */
  .hero--split { --img-h: 50vw; --cap-h: calc(var(--img-h) * 0.7); }
  /* round 20, phones: Sivan in her own capsule entering from the right edge; ui.js sets its top */
  .hero__photo { left: auto !important; right: 0; width: calc(var(--img-h) * 1.25); bottom: auto; top: 60%; --text-w: 0px; }
  .hero__capsule { border-radius: 999px 0 0 999px; }
  .hero__photo-img { right: calc(var(--gutter) + 4px); }
  /* round 18: bigger name and field on phones (the field stays on one line) */
  .hero--split .hero__name  { font-size: calc(var(--text-display) * 0.95 * 1.2); }
  .hero--split .hero__field { font-size: min(33px, (100vw - 2 * var(--gutter)) / 10.7); }
  .hero__where { margin-top: var(--space-3); }
  /* ...and the paragraph in a second capsule underneath, entering from the left edge */
  .hero__caption {
    top: calc(100% + 18px); bottom: auto; height: auto;
    right: auto; left: calc(var(--img-h) * 1.25 - 100vw); width: 70vw;
    padding: 20px 36px 20px var(--gutter);
    border-radius: 0 999px 999px 0;
    background: var(--lavender-200);
    font-size: clamp(0.75rem, 3.25vw, 0.875rem); line-height: 1.45;
  }
  .hero--split .hero__motto { font-size: calc(var(--text-xl) * 1.2); }   /* round 20 */
  .hero__caption-text { white-space: normal; }
  .hero__caption br { display: none; }
  /* left dandelion higher; the seeded one peeks out from under the capsule; the small twin is hidden */
  .hero__dandelions--small { display: none; }
  /* round 17: a big dandelion enters from the right edge and arches up, its head just under the capsule
     (head at 18.7% / 25.8% of the drawing; the drawing is 0.681 × its width tall) */
  /* round 20: enters from the right edge into the space beside the paragraph capsule (head ~82vw; ui.js sets top) */
  .hero__dandelions--side { display: block; left: auto; width: 56vw; right: calc(28vw - 0.813 * 56vw); bottom: auto; top: 75%; }
  .dandelion--twin { display: none; }
  .hero--split .hero__actions .btn--lg { --btn-h: 48px; }
  .hero--split .hero__actions .btn--whatsapp { width: 48px; padding: 0; }
}
@media (min-width: 1200px) {
  .hero--split .hero__field { font-size: calc(var(--text-3xl) * 0.95 * 1.15); }
}

/* Phone + WhatsApp in the hero: no outline, light sage fill (a tint of the floating WhatsApp button's green) */
.hero__actions .hero__phone,
.hero__actions .btn--whatsapp { background: var(--sage-100); border-color: transparent; }
@media (hover: hover) {
  .hero__actions .hero__phone:hover,
  .hero__actions .btn--whatsapp:hover { background: var(--sage-200); border-color: transparent; }
}
/* round 18: keep "(B.P.T., M.Sc.PT)" in one piece */
.hero__caption-text > span[dir="ltr"]:first-child { white-space: nowrap; }

/* round 26, phones: seeds drifting up from the right dandelion. ui.js sets the box (top/left/height) to the
   empty space right of the paragraph capsule and under Sivan's capsule; seeds start at the head (--hx from the box's
   left, at its bottom) and fade out before the box's top edge. */
.hero__side-seeds { display: none; }
@media (max-width: 759px) {
  .hero__side-seeds {
    display: block; position: absolute; right: 0; overflow: hidden; pointer-events: none;
    -webkit-mask-image: linear-gradient(transparent 0, #000 45%); mask-image: linear-gradient(transparent 0, #000 45%);
  }
  .side-seed { position: absolute; bottom: 0; left: var(--hx, 20px); width: 15px; opacity: 0; }
  .side-seed svg { display: block; width: 100%; height: auto; overflow: visible; fill: none; stroke: #bdb7c3; stroke-width: 1.6; stroke-linecap: round; }
}
/* homepage "טיפולים נוספים" raised by 50px (Aviv, 2026-11-21); everything below follows */
.treatments:not(.t-related) { padding-top: calc(var(--section-y) - 50px); }

/* round 24 (Aviv): the capsule 15px taller at the top and the bottom and 20px higher overall (net: its bottom edge 5px up);
   Sivan smaller and wholly inside it, with a little air above her head (no more head rising out of the capsule) */
.hero--split { --cap-h: calc(var(--img-h) * 0.58 + 30px); }
.hero__photo { translate: 0 -5px; }
.hero__photo-img { height: calc(var(--cap-h) - 18px); right: calc(var(--cap-h) * 0.3); }
.hero__photo-img--top { display: none; }
@media (max-width: 759px) {
  .hero--split { --cap-h: calc(var(--img-h) * 0.7 + 30px); }
  .hero__photo-img { right: calc(var(--gutter) + 10px); }
}
/* round 25 (Aviv): Sivan 15% larger; the same air above her head, the extra height runs out below the capsule's bottom edge (clipped) */
.hero__photo-img { height: calc((var(--cap-h) - 18px) * 1.15); bottom: calc((var(--cap-h) - 18px) * -0.15); }
/* round 27 (Aviv): Sivan a little larger again, still a small air above her head; desktop homepage: less space above and below the four category tiles */
.hero__photo-img { height: calc((var(--cap-h) - 18px) * 1.25); bottom: calc((var(--cap-h) - 18px) * -0.25); }
@media (min-width: 960px) {
  .intro { padding-bottom: calc(var(--section-y) - 60px); }
  .paths { padding-bottom: 0.5rem; }
  .treatments:not(.t-related) { padding-top: calc(var(--section-y) - 64px); }
}
