/*
Theme Name: רחלי בן יוסף - מיילדת מוסמכת
Theme URI: https://mymidwife.co.il/
Author: Zohar Ben Yosef
Description: תבנית וורדפרס מותאמת אישית לרחלי בן יוסף, מיילדת מוסמכת, יועצת הנקה ומטפלת אקוויליבריו. כל התוכן ניתן לעריכה מלוחות הבקרה של וורדפרס (Customizer + ACF).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: racheli-midwife
*/

/* ==========================================================================
   רחלי בן יוסף - מיילדת מוסמכת, מטפלת אקוויליבריו, יועצת הנקה

   Palette v4: adopted, at Racheli's request, from a second reference she
   sourced ("digital twin" design) — a rose + sage two-tone editorial
   palette, sharp minimal-radius corners, and Frank Ruhl Libre / Heebo
   typography with a small Hebrew script accent font. Both accent colors
   were darkened from the reference's originals (which landed at 3.0-3.1:1)
   to clear WCAG AA against the paper background. Content and copy are
   unchanged; only the structural/visual language shifted.
   ========================================================================== */

:root {
  --background: 46 76% 97%;
  --foreground: 28 25% 14%;

  --card: 51 64% 98%;
  --card-foreground: 28 25% 14%;

  /* Dusty rose: darkened from the reference's 61% lightness to 38%
     to clear WCAG AA (6.9:1) against the paper background. */
  --primary: 110 25% 22%;
  --primary-foreground: 51 64% 98%;

  /* Blush: soft dusty pink panel background. */
  --secondary: 358 79% 92%;
  --secondary-foreground: 8 20% 23%;

  --muted: 44 37% 92%;
  --muted-foreground: 21 10% 38%;

  /* Sage: the second brand tone, also darkened for contrast (5.9:1). */
  --accent: 91 18% 34%;
  --accent-light: 91 18% 52%;
  --accent-foreground: 51 64% 98%;

  --border: 2 30% 84%;

  --blush: 358 79% 92%;
  --blush-light: 358 60% 96%;
  --sage: 91 18% 52%;
  --sage-light: 91 18% 88%;
  --cream: 44 37% 92%;
  --earth: 28 25% 14%;
  --rose-border: 2 30% 84%;

  --radius-lg: 0.4rem;
  --radius-md: 0.25rem;
  --radius-full: 999px;

  --container-narrow: 1120px;
  --font-heading: "Frank Ruhl Libre", "Times New Roman", serif;
  --font-body: "Heebo", "Segoe UI", sans-serif;
  --font-script: "Gveret Levin", cursive;
}

* { box-sizing: border-box; }

/* Skip link: invisible until keyboard-focused, lets a keyboard/screen-reader
   user jump straight past the nav to the main content. */
.skip-link {
  position: absolute;
  top: -60px;
  right: 20px;
  z-index: 200;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  direction: rtl;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 20px;
}
/* Wider container reserved for the hero's two-sided photo collage, which
   needs more breathing room than the site's normal reading column. */
.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 72px 20px;
}
@media (min-width: 768px) {
  .section-padding { padding: 100px 40px; }
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: hsl(var(--muted-foreground));
}

/* Buttons -----------------------------------------------------------------
   Editorial rectangular outline button (sharp radius, thin border, fills
   solid on hover) instead of a rounded pill — the reference's quieter,
   architectural button language. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1.5px solid hsl(var(--foreground) / 0.4);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:active { transform: scale(0.98); }
.btn-accent {
  background: transparent;
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
}
.btn-accent:hover { background: hsl(var(--blush)); }
.btn-outline {
  background: transparent;
  border-color: hsl(var(--foreground) / 0.4);
  color: hsl(var(--foreground));
}
.btn-outline:hover { background: hsl(var(--background)); border-color: hsl(var(--foreground)); }
.btn svg { width: 15px; height: 15px; }

/* Section label: small tracked eyebrow above headings --------------------- */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: hsl(var(--muted-foreground));
  margin-bottom: 10px;
}

/* Script: small handwritten Hebrew accent for warm one-word intros ------- */
.script {
  font-family: var(--font-script);
  color: hsl(var(--primary));
  line-height: 1;
}

/* Squiggle: a tiny wavy underline used as a secondary ornamental accent -- */
.squiggle { display: block; margin: 10px auto 0; width: 80px; height: 10px; color: hsl(var(--border)); }
.squiggle svg { width: 100%; height: 100%; display: block; }

/* Frame photo: thin border + mat padding, a simple gallery-print mount --- */
.frame-photo { border: 1px solid hsl(var(--border)); padding: 0.5rem; background: hsl(var(--card)); }
.frame-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Brush stroke: organic marker-highlight behind emphasized words -------- */
.brush-stroke { position: relative; display: inline-block; font-style: italic; }
.brush-stroke::after {
  content: "";
  position: absolute;
  right: -6px; left: -6px; bottom: 0.02em;
  height: 0.34em;
  background: hsl(var(--blush) / 0.7);
  border-radius: 50% 40% 55% 45% / 70% 60% 80% 50%;
  z-index: -1;
}

/* Corner lotus ornaments: low-opacity brand accent repeated per section - */
.corner-lotus {
  position: absolute;
  width: 90px;
  height: auto;
  opacity: 0.12;
  pointer-events: none;
  will-change: transform;
}
.corner-lotus.top-start { top: 28px; right: 24px; }
.corner-lotus.bottom-end { bottom: 28px; left: 24px; transform: scaleX(-1); }
@media (max-width: 767px) { .corner-lotus { display: none; } }

/* Reveal on scroll ------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(38px) scale(0.97);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in-view { opacity: 1; transform: translateY(0) scale(1); }
.reveal-delay-1.in-view { transition-delay: 0.12s; }
.reveal-delay-2.in-view { transition-delay: 0.24s; }
.reveal-delay-3.in-view { transition-delay: 0.36s; }

/* Extra stagger for grid-like groups: each card/tile pops a beat after the
   one before it, so a row doesn't all snap in at once. */
.services-stack .reveal:nth-child(1) { transition-delay: 0s; }
.services-stack .reveal:nth-child(2) { transition-delay: 0.1s; }
.services-stack .reveal:nth-child(3) { transition-delay: 0.2s; }
.services-stack .reveal:nth-child(4) { transition-delay: 0.3s; }
.services-stack .reveal:nth-child(5) { transition-delay: 0.4s; }
.gallery-grid .reveal:nth-child(1) { transition-delay: 0s; }
.gallery-grid .reveal:nth-child(2) { transition-delay: 0.07s; }
.gallery-grid .reveal:nth-child(3) { transition-delay: 0.14s; }
.gallery-grid .reveal:nth-child(4) { transition-delay: 0.21s; }
.gallery-grid .reveal:nth-child(5) { transition-delay: 0.28s; }
.gallery-grid .reveal:nth-child(6) { transition-delay: 0.35s; }
.gallery-grid .reveal:nth-child(7) { transition-delay: 0.42s; }
.gallery-grid .reveal:nth-child(8) { transition-delay: 0.49s; }
.path-grid .reveal:nth-child(1) { transition-delay: 0s; }
.path-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.path-grid .reveal:nth-child(3) { transition-delay: 0.24s; }
.google-reviews-grid .reveal:nth-child(1) { transition-delay: 0s; }
.google-reviews-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.google-reviews-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.google-reviews-grid .reveal:nth-child(4) { transition-delay: 0.3s; }
.google-reviews-grid .reveal:nth-child(5) { transition-delay: 0.4s; }

/* Signature: breath-underline, used once per key phrase ---------------- */
.breath-underline { position: relative; display: inline-block; }
.breath-underline::after {
  content: "";
  position: absolute;
  right: 0; left: 0; bottom: -0.12em;
  height: 0.13em;
  background: hsl(var(--accent) / 0.55);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.7s ease;
}
.breath-underline.in-view::after { transform: scaleX(1); }

.accent-word { color: hsl(var(--accent)); }

/* Navbar ----------------------------------------------------------------- */
.navbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  background: hsl(var(--background) / 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid hsl(var(--border));
}
.navbar-inner {
  max-width: var(--container-narrow);
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 180px;
  padding: 0 20px;
}
/* Centered logotype + tagline + squiggle, the reference's three-column
   navbar built around a wordmark instead of a corner logo. */
.navbar-logo-center {
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}
/* Logo +50%, tagline text +50% over the previous sizes (73px / 0.84rem)
   per the client's request. The squiggle underline is scaled to match the
   new logo width so it still spans the same visual footprint underneath it. */
.navbar-logo-center img { height: 110px; width: auto; display: block; }
.navbar-tagline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-family: var(--font-body);
  font-size: 1.26rem;
  line-height: 1.2;
  letter-spacing: 0.1em;
  color: hsl(var(--muted-foreground));
}
.navbar-tagline-brand { font-weight: 600; }
.navbar-tagline-name { font-size: 0.9em; }
.navbar-logo-center .squiggle { width: 110px; height: 8px; margin-top: 2px; }
.navbar-links {
  display: none;
  align-items: center;
  gap: 32px;
}
.navbar-links a.navlink {
  font-size: 0.9rem;
  font-weight: 500;
  color: hsl(var(--foreground) / 0.72);
}
.navbar-links a.navlink:hover { color: hsl(var(--foreground)); }
.navbar-toggle {
  background: none;
  border: none;
  color: hsl(var(--primary));
  padding: 4px;
  position: relative;
  z-index: 1;
}
.navbar-mobile {
  display: none;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--background));
}
.navbar-mobile.open { display: block; }
.navbar-mobile-inner { padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.navbar-mobile a.navlink { font-size: 1rem; font-weight: 500; color: hsl(var(--foreground) / 0.75); }
.navbar-mobile .btn { justify-content: center; }

@media (min-width: 768px) {
  .navbar-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    justify-content: initial;
  }
  .navbar-links { display: flex; }
  .navbar-links-start { justify-self: start; }
  .navbar-links-end { justify-self: end; }
  .navbar-logo-center { position: static; transform: none; grid-column: 2; }
  .navbar-toggle { display: none; }
}

/* Hero ---------------------------------------------------------------
   Two photo clusters (large + overlapping frame-photo) flanking a
   centered text column with a script accent word and an oversized
   headline — mirrors the reference's wide, editorial hero exactly,
   built entirely from Racheli's real photography. */
.hero {
  position: relative;
  padding-top: 180px;
  overflow: hidden;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 180px);
  padding: 56px 0;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(200px, 260px) 1px 1fr 1px minmax(200px, 260px); gap: 32px; }
}

/* Ambient hero blobs ----------------------------------------------------
   Calm, slow-moving background shapes for the hero only. Corner-anchored
   and kept well clear of the centered text column on purpose (see the
   inline placement notes on each blob below), always behind the content
   (z-index: 0 vs. .hero-grid's z-index: 1) and never intercepting clicks
   (pointer-events: none). Hidden below 900px - the same breakpoint where
   the hero itself collapses to a single stacked column - both for
   performance on phones and because there's no safe "corner" left once
   the layout is one narrow column. */
.hero-blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: none;
}
@media (min-width: 900px) {
  .hero-blobs { display: block; }
}
.hero-blob {
  position: absolute;
  display: block;
  filter: blur(46px);
  /* Organic, uneven roundness instead of a plain circle. */
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  will-change: transform;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
  .hero-blob { animation: none; }
}

/* Blob 1: top-left corner, deliberately bleeding past the hero's own edge
   (partly clipped by .hero's overflow: hidden) so it reads as naturally
   spilling off-frame rather than centered/placed. Sage green, the site's
   primary tone at very low opacity. */
.hero-blob-1 {
  top: -70px;
  left: -90px;
  width: 380px;
  height: 380px;
  background: hsl(var(--primary) / 0.22);
  animation-name: hero-blob-float-a;
  animation-duration: 22s;
}

/* Blob 2: bottom-right corner, also edge-bleeding, blush pink. */
.hero-blob-2 {
  bottom: -110px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: hsl(var(--blush) / 0.55);
  animation-name: hero-blob-float-b;
  animation-duration: 25s;
  animation-delay: -6s;
}

/* Blob 3: upper-right, inside the frame (no edge bleed), small and quiet -
   kept high and to the side so it stays well clear of the centered
   headline. Muted olive accent. */
.hero-blob-3 {
  top: 9%;
  right: 7%;
  width: 240px;
  height: 240px;
  background: hsl(var(--accent) / 0.16);
  animation-name: hero-blob-float-a;
  animation-duration: 18s;
  animation-delay: -3s;
}

/* Blob 4: lower-left, inside the frame, smallest and faintest - a quiet
   fourth point of interest so the composition doesn't feel two-sided. */
.hero-blob-4 {
  bottom: 14%;
  left: 5%;
  width: 190px;
  height: 190px;
  background: hsl(var(--primary) / 0.18);
  animation-name: hero-blob-float-b;
  animation-duration: 20s;
  animation-delay: -11s;
}

/* Two slightly different float paths (gentle drift + very slow rotation,
   no sudden movement) so the four blobs don't all move in visible unison. */
@keyframes hero-blob-float-a {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(14px, -18px) rotate(6deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes hero-blob-float-b {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(-16px, 14px) rotate(-5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.hero-media {
  position: relative;
  order: 2;
  max-width: 340px;
  margin: 0 auto;
}
@media (min-width: 900px) { .hero-media { max-width: none; margin: 0; } }
.hero-media-a { order: 2; }
.hero-media-b { order: 5; margin-top: 28px; }
@media (min-width: 900px) {
  .hero-media-a { order: 1; }
  .hero-media-b { order: 5; margin-top: 0; }
  .hero-content { order: 3; }
}
/* Arched, doorway-like photo frames - a softer, more feminine silhouette
   than plain rectangles. Radius sits on both the wrapper (so its shadow
   follows the same curve) and the image (so the photo itself clips to it). */
.hero-photo-large {
  position: relative;
  z-index: 1;
  border-radius: 150px 150px 0 0;
  overflow: hidden;
  box-shadow: 0 22px 44px -22px hsl(var(--foreground) / 0.3);
}
/* video shares every rule with img here on purpose - the ambient hero
   video (see the comment in front-page.php) sits in this exact frame,
   at this exact size, as a straight swap for what's otherwise a static
   photo, not a separate shape of its own. */
.hero-photo-large img, .hero-photo-large video { width: 100%; height: 320px; object-fit: cover; display: block; border-radius: inherit; }
@media (min-width: 900px) {
  .hero-photo-large { border-radius: 130px 130px 0 0; }
  .hero-photo-large img, .hero-photo-large video { height: 420px; }
}
.hero-photo-small {
  position: absolute;
  z-index: 2;
  bottom: -26px;
  left: -20px;
  width: 44%;
  background: hsl(var(--background));
  box-shadow: 0 18px 36px -18px hsl(var(--foreground) / 0.35);
  border-radius: 80px 80px 0 0;
  overflow: hidden;
}
.hero-media-b .hero-photo-small { left: auto; right: -20px; }
.hero-photo-small img { width: 100%; height: 120px; object-fit: cover; display: block; border-radius: inherit; }
@media (min-width: 900px) {
  .hero-photo-small { border-radius: 95px 95px 0 0; }
  .hero-photo-small img { height: 160px; }
}
.hero-media .corner-lotus { top: -20px; right: -20px; opacity: 0.16; }

/* No separate rules needed for the ambient hero video itself: it lives
   inside .hero-photo-large and shares that class's img/video rules above
   exactly, on purpose (see the comment in front-page.php). No @media
   (prefers-reduced-motion) block either - main.js already skips calling
   .play() whenever that preference is set, so the <video> simply sits on
   its static poster frame instead, like a normal photo. */

.hero-divider { display: none; }
@media (min-width: 900px) {
  .hero-divider { display: block; width: 1px; height: 55%; background: hsl(var(--border)); justify-self: center; }
  .hero-divider-a { order: 2; }
  .hero-divider-b { order: 4; }
}

.hero-content { order: 1; }
@media (min-width: 900px) { .hero-content { order: 3; text-align: center; } }
.hero-inner { max-width: 480px; }
@media (min-width: 900px) { .hero-inner { margin: 0 auto; } }
.hero .script { font-size: 1.6rem; margin-bottom: 4px; }
/* "אני מאמינה" manifesto — the hero's main statement, in place of the old
   name-first headline. Each <span> is one belief-line; sized as an
   editorial serif quote rather than a giant display headline, since it's
   3 sentences, not 3 words. To edit the lines: change the "מניפסט" field
   under the "הירו" tab in wp-admin — no code changes needed there. */
.hero-manifesto {
  max-width: 560px;
}
/* Each belief-line sits in its own overflow-hidden "mask"; the text inside
   slides up from behind it and fades in, line by line, instead of the
   whole block fading at once - a quieter, more editorial reveal, fitting
   for a statement of belief rather than a generic card/list. */
.hero-manifesto .reveal-line { display: block; overflow: hidden; }
.hero-manifesto .reveal-line-inner {
  display: inline-block;
  transform: translateY(115%);
  opacity: 0;
  transition: transform 0.75s cubic-bezier(.2,.8,.2,1), opacity 0.6s ease;
}
.hero-manifesto .reveal-line.in-view .reveal-line-inner { transform: translateY(0); opacity: 1; }
.hero-manifesto .reveal-line:nth-child(1) .reveal-line-inner { transition-delay: 0.05s; }
.hero-manifesto .reveal-line:nth-child(2) .reveal-line-inner { transition-delay: 0.28s; }
.hero-manifesto .reveal-line:nth-child(3) .reveal-line-inner { transition-delay: 0.5s; }
.hero-manifesto .reveal-line:nth-child(4) .reveal-line-inner { transition-delay: 0.72s; }
.hero-manifesto .reveal-line + .reveal-line { margin-top: 0.5em; }
.hero-manifesto .reveal-line:first-child + .reveal-line { margin-top: 0.75em; }
@media (prefers-reduced-motion: reduce) {
  .hero-manifesto .reveal-line-inner { transition: none; transform: none; opacity: 1; }
}
/* First line = the belief statement itself: treated like the rest of the
   site's section headings (upright serif, no italic) rather than a giant
   display headline, since it's a full sentence, not a couple of words. */
.hero-manifesto .manifesto-lead {
  /* Gveret Levin: a real flowing Hebrew handwriting typeface (not a fake
     italic serif) - round, warm and feminine, only comes in one weight so
     it's never artificially bolded/italicized (that distorts handwriting
     fonts badly). Sized larger than the serif heading it replaces because
     cursive scripts read smaller at the same font-size. */
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.9rem, 4.4vw, 2.75rem);
  line-height: 1.5;
  color: hsl(var(--foreground));
}
/* Remaining lines = supporting copy under the headline, same treatment as
   an intro paragraph elsewhere on the site (body font, muted color). */
.hero-manifesto .manifesto-support {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.65;
  color: hsl(var(--muted-foreground));
  max-width: 480px;
}
@media (min-width: 900px) {
  .hero-manifesto { margin-inline: auto; }
  .hero-manifesto .manifesto-support { margin-inline: auto; }
}
.hero .credentials {
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
  letter-spacing: 0.03em;
  margin-top: 1.1em;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
@media (min-width: 900px) { .hero-ctas { justify-content: center; } }


/* Breath wave signature divider ------------------------------------------
   Racheli's own licensed lotus-and-scroll ornament, recolored to the
   site's accent token, reused as a section divider at three points:
   hero → about, services → guidance, gallery → prep tool. */
.breath-wave { display: flex; justify-content: center; padding: 40px 20px; }
/* A slow, gentle scale pulse - literally a "breath" - on the divider that
   already carries the breath-wave name. Subtle on purpose (4.5% scale,
   6s cycle): a signature touch, not a distraction. */
.breath-wave img {
  width: 220px; height: auto; display: block; opacity: 0.92;
  animation: breath-wave-pulse 6s ease-in-out infinite;
}
@media (min-width: 768px) { .breath-wave img { width: 280px; } }
@keyframes breath-wave-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

/* About ------------------------------------------------------------------
   True 50/50 split, full-bleed edge to edge: a real portrait on one side
   and a solid blush panel on the other holding the text — the reference's
   "photo half / color-panel half" pairing, exactly. */
.about { position: relative; overflow: hidden; }
.about-grid {
  display: grid;
}
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-portrait-wrap { position: relative; order: 2; overflow: hidden; }
@media (min-width: 768px) { .about-portrait-wrap { order: 1; } }
.about-portrait-wrap img {
  width: 100%;
  height: 360px;
  display: block;
  object-fit: cover;
  filter: brightness(0.95);
  transform: scale(1);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.55s ease;
}
.about-portrait-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  transition: border-color 0.55s ease;
  pointer-events: none;
}
.about-portrait-wrap:hover img,
.about-portrait-wrap:focus-within img {
  transform: scale(1.04);
  filter: brightness(1.05);
}
.about-portrait-wrap:hover::after,
.about-portrait-wrap:focus-within::after {
  border-color: hsl(var(--accent) / 0.55);
}
@media (prefers-reduced-motion: reduce) {
  .about-portrait-wrap img, .about-portrait-wrap::after { transition: none !important; }
}
@media (min-width: 768px) { .about-portrait-wrap img { height: 100%; } }
.about-text-panel {
  order: 1;
  position: relative;
  background: hsl(var(--secondary));
  display: flex;
  align-items: center;
  padding: 40px 24px;
}
@media (min-width: 768px) {
  .about-text-panel { order: 2; padding: 40px 48px; max-height: 800px; }
  .about-portrait-wrap img { max-height: 800px; }
}
.about-text { max-width: 460px; margin: 0 auto; }
@media (min-width: 768px) { .about-text { margin: 0; } }
.about-text .squiggle { margin: 0 0 12px; }
.about-text h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin: 0 0 0.6em; }
.about-text p { color: hsl(var(--foreground) / 0.8); font-size: 1.05rem; margin: 0 0 0.85em; }
.about-text p.emphasis { color: hsl(var(--foreground)); font-weight: 500; }
.about-text-panel .corner-lotus { opacity: 0.14; }
.link-btn {
  color: hsl(var(--accent));
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: hsl(var(--accent) / 0.45);
  background: none; border: none; padding: 0; font-size: inherit;
}

/* Service marquee ---------------------------------------------------------
   Continuous strip, sitting on the site's own --primary/--primary-foreground
   pair (the same combo already used on the footer and the lead-form header
   bands), so it reads as "part of the family" rather than a new color.
   Pure CSS: two identical copies of the service list sit side by side in
   one flex row (.marquee-set × 2) inside a track twice the content's width;
   animating the track from translateX(0) to translateX(-50%) slides exactly
   one copy's width off-screen, and since the second copy is identical, the
   loop point is invisible - no jump, no seam.
   In this WordPress theme this renders from the same $services data as the
   services section itself (front-page.php), so editing a service title in
   wp-admin updates the marquee automatically - nothing to edit here. */
.service-marquee {
  --marquee-speed: 34s;   /* full loop duration - raise to slow it down */
  --marquee-fade: 70px;   /* how wide the edge fade is; shrinks on mobile below */
  overflow: hidden;
  background: hsl(var(--primary));
  padding: 15px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, black var(--marquee-fade), black calc(100% - var(--marquee-fade)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, black var(--marquee-fade), black calc(100% - var(--marquee-fade)), transparent 100%);
}
.service-marquee-track {
  display: flex;
  width: max-content;
  animation: service-marquee-scroll var(--marquee-speed) linear infinite;
}
.service-marquee:hover .service-marquee-track,
.service-marquee:focus-within .service-marquee-track {
  animation-play-state: paused;
}
.marquee-set { display: flex; align-items: center; flex-shrink: 0; }
.marquee-item {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: hsl(var(--primary-foreground));
  white-space: nowrap;
  padding-inline-end: 1.4em;
}
.marquee-sep {
  display: inline-flex;
  align-items: center;
  padding-inline-end: 1.4em;
}
.marquee-sep img {
  display: block;
  height: 22px;
  width: auto;
  /* The source PNG is drawn in the site's dark green - forces it to render
     in the marquee's light text color instead, since the strip's own
     background is that same dark green and the line art would otherwise
     disappear into it. */
  filter: brightness(0) invert(1);
  opacity: 0.7;
}
@keyframes service-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 640px) {
  .service-marquee { --marquee-fade: 32px; padding: 12px 0; }
  .marquee-item { font-size: 0.85rem; padding-inline-end: 1.1em; }
  .marquee-sep { padding-inline-end: 1.1em; }
  .marquee-sep img { height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .service-marquee-track { animation: none; }
}

/* Guidance --------------------------------------------------------------- */
.guidance {
  position: relative;
  padding: 90px 20px;
  overflow: hidden;
}
.guidance-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.guidance-overlay { position: absolute; inset: 0; background: hsl(var(--background) / 0.65); }
.guidance-content { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; text-align: center; }
.guidance-content p { font-size: 1.15rem; color: hsl(var(--foreground) / 0.85); }

/* Path selection: "באיזה שלב את היום?" -----------------------------------
   Lets a visitor self-identify (first pregnancy / repeat birth / postpartum)
   and highlights the matching service cards below instead of duplicating
   content per path — one source of truth per service, same as the rest
   of the site. */
.path-selection { border-top: 1px solid hsl(var(--border)); position: relative; overflow: hidden; }
.path-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .path-grid { grid-template-columns: repeat(3, 1fr); } }

.path-card {
  background: hsl(var(--card));
  border: 2px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.path-card:hover { transform: translateY(-4px); border-color: hsl(var(--accent) / 0.4); }
.path-card[aria-pressed="true"] {
  border-color: hsl(var(--accent));
  background: linear-gradient(135deg, hsl(var(--accent) / 0.08), hsl(var(--card)) 65%);
  box-shadow: 0 14px 30px -18px hsl(var(--accent) / 0.5);
}
.path-icon {
  width: 96px; height: 96px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  color: hsl(var(--accent));
}
.path-icon svg { width: 26px; height: 26px; }
.path-icon img { width: 100%; height: 100%; object-fit: contain; }
.path-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.path-card p { color: hsl(var(--muted-foreground)); font-size: 0.92rem; margin: 0; }

.path-status {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.88rem;
  color: hsl(var(--foreground) / 0.75);
}
.path-status #path-status-text { font-weight: 600; }
.path-status button {
  background: none; border: none;
  color: hsl(var(--accent));
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0; font-size: inherit;
}

/* Services -----------------------------------------------------------
   Centered icon-card grid (3 up, wrapping to a centered 2 on the last
   row) — a circular illustration, title and one-line tagline per card,
   no photo, no chrome — matching the reference's services teaser
   exactly. Clicking a card still expands the full Q&A copy beneath it;
   the card grows to full row width while open (.card-open). */
.section-head { text-align: center; margin-bottom: 40px; }
.section-head p { color: hsl(var(--muted-foreground)); font-size: 1.1rem; max-width: 480px; margin: 0 auto; }

.services-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid hsl(var(--border));
}
.services-jump a {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.92rem;
  color: hsl(var(--foreground) / 0.75);
  position: relative;
}
.services-jump a:hover { color: hsl(var(--foreground)); }

.services-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 48px 44px;
}

.service-card {
  flex: 1 1 260px;
  max-width: 300px;
  position: relative;
  scroll-margin-top: 198px;
  transition: opacity 0.4s ease, flex-basis 0.3s ease, max-width 0.3s ease;
  /* Reserved on every card, not just the featured one, so the "מומלץ"
     badge (only shown on one card) doesn't push that single card's icon
     and title lower than its siblings - all cards start at the same
     vertical position whether or not they have a badge. */
  padding-top: 30px;
}
.service-card.card-open { flex-basis: 100%; max-width: 640px; }
.service-card.path-dim { opacity: 0.42; }
.service-card.path-match h3 { color: hsl(var(--accent)); }
.service-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
/* Transparent-background line-art icon: no circle, no fill — it sits
   directly on the page's own background instead of a colored badge. */
.service-icon {
  width: 130px;
  height: 130px;
  flex-shrink: 0;
}
/* Same warm, slow brightness+scale language as the photo gallery - no
   border here on purpose, since these are transparent line-art icons
   with no fill or circle behind them (see comment above); a hard-edged
   frame around irregular art would look out of place. */
.service-icon img {
  width: 100%; height: 100%; object-fit: contain;
  filter: brightness(0.96);
  transform: scale(1);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.55s ease;
}
.service-card:hover .service-icon img,
.service-card:focus-within .service-icon img {
  transform: scale(1.04);
  filter: brightness(1.05);
}
@media (prefers-reduced-motion: reduce) {
  .service-icon img { transition: none !important; }
}

.badge-featured {
  position: absolute;
  top: 0; right: 50%;
  transform: translateX(50%);
  z-index: 2;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.service-card h3 { font-size: 1.2rem; font-style: italic; }
.service-card .subtitle { color: hsl(var(--foreground) / 0.7); font-size: 0.95rem; }
.service-main { display: flex; flex-direction: column; align-items: center; }
.details-toggle {
  background: none; border: none;
  display: inline-flex; align-items: center; gap: 8px;
  color: hsl(var(--primary));
  font-weight: 600;
  padding: 0; margin: 4px 0 14px;
}
.details-toggle svg { width: 16px; height: 16px; transition: transform 0.25s ease; }
.details-toggle.open svg { transform: rotate(180deg); }
.service-details {
  margin: 0;
  overflow: hidden;
  max-height: 0;
  text-align: right;
  transition: max-height 0.45s ease;
}
.service-details.open { max-height: 2600px; margin-top: 8px; padding-top: 22px; border-top: 1px solid hsl(var(--border)); }
.service-details .qa-label {
  font-weight: 700;
  color: hsl(var(--primary));
  margin: 18px 0 6px;
}
.service-details .qa-label:first-child { margin-top: 4px; }
.service-details p { color: hsl(var(--foreground) / 0.82); margin: 0 0 10px; }
.service-details .cta-lead {
  color: hsl(var(--accent));
  font-weight: 600;
  margin: 14px 0 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: var(--radius-md);
  transition: color 0.2s ease;
}
.service-details .cta-lead:hover,
.service-details .cta-lead:focus-visible {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 3px;
}
.service-details .cta-lead::after {
  content: "";
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") center / contain no-repeat;
  animation: cta-lead-bounce 1.6s ease-in-out infinite;
}
@keyframes cta-lead-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .service-details .cta-lead::after { animation: none; }
}
.emoji-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.emoji-list li { color: hsl(var(--foreground) / 0.85); display: flex; align-items: flex-start; gap: 8px; }

/* Gallery ----------------------------------------------------------------
   Masonry via CSS columns: each photo keeps its own natural proportions
   (no cropping), and any number of images just flows into the columns -
   adding or removing photos in the ACF field never breaks the layout.
   CSS columns fill right-to-left on their own here since <html dir="rtl">
   is set in header.php, so no extra RTL rule is needed for the flow order. */
.gallery-grid.masonry {
  column-count: 2;
  column-gap: 12px;
}
@media (min-width: 768px) {
  .gallery-grid.masonry { column-count: 3; column-gap: 16px; }
}
.gallery-grid.masonry .gallery-item {
  display: block;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 12px;
}
@media (min-width: 768px) {
  .gallery-grid.masonry .gallery-item { margin-bottom: 16px; }
}
.gallery-item {
  border: none; padding: 0; background: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}
.gallery-item img { display: block; width: 100%; height: auto; }

/* Warm, unhurried hover for the main "מהקליניקה שלי" photo grid only -
   scoped to .gallery-grid.masonry specifically so it never touches the
   testimonial corkboard cards below, which already have their own tilt/
   lift hover treatment and intentionally don't move their photo on
   hover (see the comment on .testimonial-shots-grid.corkboard img). */
.gallery-grid.masonry .gallery-item img {
  filter: brightness(0.95);
  transform: scale(1);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.55s ease;
}
.gallery-grid.masonry .gallery-item:hover img,
.gallery-grid.masonry .gallery-item:focus-visible img {
  transform: scale(1.04);
  filter: brightness(1.05);
}
.gallery-grid.masonry .gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: inherit;
  transition: border-color 0.55s ease;
  pointer-events: none;
}
.gallery-grid.masonry .gallery-item:hover::after,
.gallery-grid.masonry .gallery-item:focus-visible::after {
  border-color: hsl(var(--accent) / 0.55);
}
.gallery-item-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px 14px 12px;
  background: linear-gradient(to top, hsl(var(--foreground) / 0.82), hsl(var(--foreground) / 0) 85%);
  color: hsl(var(--background));
  font-size: 0.82rem;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-grid.masonry .gallery-item:hover .gallery-item-caption,
.gallery-grid.masonry .gallery-item:focus-visible .gallery-item-caption {
  opacity: 1;
  transform: translateY(0);
}
/* Touch devices have no hover: skip the motion, keep the caption legible
   and always visible instead (per explicit fallback instruction). */
@media (hover: none) {
  .gallery-grid.masonry .gallery-item-caption {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-grid.masonry .gallery-item img,
  .gallery-grid.masonry .gallery-item::after,
  .gallery-item-caption {
    transition: none !important;
  }
}

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: hsl(var(--foreground) / 0.92);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 85vh; max-width: 90vw; border-radius: 12px; object-fit: contain; }
.lightbox-btn {
  position: absolute; background: none; border: none; color: hsl(var(--background) / 0.85);
  padding: 10px;
}
.lightbox-close { top: 16px; left: 16px; }
.lightbox-prev { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { left: 56px; top: 50%; transform: translateY(-50%); }
.lightbox-btn svg { width: 30px; height: 30px; }

/* CTA --------------------------------------------------------------- */
.cta { background: hsl(var(--secondary)); text-align: center; scroll-margin-top: 182px; }
.cta-intro { text-align: center; }
.cta h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.cta-intro p { color: hsl(var(--foreground) / 0.8); max-width: 480px; margin: 0 auto 34px; font-size: 1.05rem; }

.cta-form {
  max-width: 560px;
  margin: 0 auto;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  gap: 16px;
  text-align: right;
}
@media (min-width: 640px) {
  .cta-form { grid-template-columns: 1fr 1fr; padding: 36px; }
  .form-row-full { grid-column: 1 / -1; }
  .form-submit { grid-column: 1 / -1; }
}
.form-row { display: grid; gap: 6px; }
.form-row label { font-size: 0.85rem; font-weight: 600; color: hsl(var(--foreground) / 0.75); }
.cta-form input, .cta-form textarea, .cta-form select {
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-md);
  padding: 12px 16px;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  resize: vertical;
}
.cta-form select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23594e3d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: left 14px center; background-size: 16px; padding-left: 40px; }
.cta-form input:focus, .cta-form textarea:focus, .cta-form select:focus {
  outline: 2px solid hsl(var(--accent));
  outline-offset: 1px;
  border-color: hsl(var(--accent));
}

/* Testimonials: two clearly separate parts --------------------------------
   1) Google reviews - structured so real API data can drop in later
      without any markup changes (see rw_get_google_reviews() in the WP
      theme). Capped at 5 everywhere, matching Google's own API limit.
   2) A visually distinct "card" below it for screenshots Racheli uploads
      herself - different background/border so it never reads as part of
      the Google block above it. */
.testimonials { position: relative; overflow: hidden; }
.google-reviews-head { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; }
.google-reviews-head h3 { font-size: 1.15rem; margin: 0; }
.google-g-icon { width: 22px; height: 22px; flex-shrink: 0; }
.google-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.review-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: right;
}
.review-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 600;
}
.review-name { margin: 0 0 2px; font-weight: 600; font-size: 0.95rem; }
.review-stars { display: flex; gap: 2px; color: hsl(var(--accent)); }
.review-stars svg { width: 14px; height: 14px; }
.review-stars .star-empty { color: hsl(var(--border)); }
.review-text { color: hsl(var(--foreground) / 0.85); font-size: 0.95rem; margin: 0 0 10px; }
.review-time { margin: 0; font-size: 0.8rem; color: hsl(var(--foreground) / 0.5); }
.google-reviews-link { display: inline-block; margin-top: 24px; }

.manual-testimonials-block {
  margin-top: 48px;
  background: hsl(var(--cream));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  padding: 32px 24px;
}
@media (min-width: 640px) { .manual-testimonials-block { padding: 40px; } }
.manual-testimonials-head { max-width: 640px; margin: 0 0 24px; }
.manual-testimonials-head .section-label { margin-bottom: 6px; }
.manual-testimonials-head h3 { font-size: 1.15rem; margin: 0 0 8px; }
.manual-testimonials-head p { color: hsl(var(--foreground) / 0.75); font-size: 0.92rem; margin: 0; }
.testimonial-shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 28px 20px;
  padding-top: 6px;
}
/* Corkboard photos: each card is a little polaroid pinned at a random-but-
   bounded tilt (set per-card via the --tilt custom property in the markup).
   Hovering/focusing straightens the card and lifts it slightly, which reads
   as "pick this one up" without fighting the rotation with a zoom. */
.testimonial-shots-grid.corkboard .gallery-item.testimonial-shot {
  border: none;
  background: hsl(var(--background));
  border-radius: 2px;
  padding: 10px 10px 22px;
  box-shadow: 0 6px 14px hsl(var(--foreground) / 0.18);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.testimonial-shots-grid.corkboard .gallery-item.testimonial-shot img {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 1px;
  transition: none; /* the card itself moves on hover, not the photo inside it */
}
.testimonial-shots-grid.corkboard .gallery-item.testimonial-shot:hover,
.testimonial-shots-grid.corkboard .gallery-item.testimonial-shot:focus-visible {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 12px 22px hsl(var(--foreground) / 0.24);
  z-index: 1;
}
.testimonial-shots-grid.corkboard .gallery-item.testimonial-shot:focus-visible {
  outline: 2px solid hsl(var(--accent));
  outline-offset: 3px;
}
.testimonial-pin {
  position: absolute;
  top: -7px;
  right: 50%;
  transform: translateX(50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: hsl(var(--accent));
  box-shadow: 0 2px 3px hsl(var(--foreground) / 0.35);
}
.testimonial-shot-placeholder {
  border: 1.5px dashed hsl(var(--border));
  border-radius: var(--radius-md);
  aspect-ratio: 3 / 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: hsl(var(--foreground) / 0.45); font-size: 0.78rem; text-align: center; padding: 10px;
}
.testimonial-shot-placeholder svg { width: 26px; height: 26px; }

/* Prep tool: short WhatsApp-handoff questionnaire (replaces the client-side
   "AI birth plan" idea from the reference file with something that actually
   works without a backend or an exposed API key). */
.prep-tool { background: hsl(var(--cream)); position: relative; overflow: hidden; }
.gallery-section { position: relative; overflow: hidden; }
.form-submit { justify-self: center; margin-top: 6px; }
.form-note { grid-column: 1 / -1; margin: 0; font-size: 0.9rem; color: hsl(var(--accent)); min-height: 1.2em; }
.cta-alt { margin: 22px auto 0; font-size: 0.95rem; color: hsl(var(--foreground) / 0.75); }

/* Footer --------------------------------------------------------------- */
.site-footer { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); padding: 44px 20px; }
#contact { scroll-margin-top: 182px; }

/* Compact "בואי נדבר" contact form, merged into the footer's own dark-green
   background instead of a full standalone section. The form itself keeps
   the existing .cta-form white-card look (it already floats as a card
   regardless of the section behind it), only the surrounding eyebrow/
   heading/intro get their colors flipped for light-on-dark here. */
.footer-cta {
  max-width: var(--container-narrow);
  margin: 0 auto 36px;
  text-align: center;
}
.footer-cta-intro .section-label { color: hsl(var(--primary-foreground) / 0.65); }
.footer-cta-intro h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin: 0 0 8px; color: hsl(var(--primary-foreground)); }
.footer-cta-intro p { color: hsl(var(--primary-foreground) / 0.8); max-width: 440px; margin: 0 auto 20px; font-size: 0.92rem; }
.footer-cta-form { max-width: 480px; padding: 22px; }
@media (min-width: 640px) { .footer-cta-form { padding: 28px; } }

.footer-inner {
  max-width: var(--container-narrow);
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 24px;
  align-items: center; text-align: center;
}
@media (min-width: 768px) { .footer-inner { flex-direction: row; justify-content: space-between; text-align: right; } }
.footer-brand { display: flex; align-items: center; gap: 14px; flex-direction: column; }
@media (min-width: 768px) { .footer-brand { flex-direction: row; } }
.footer-logo-badge {
  background: hsl(var(--background));
  border-radius: 50%;
  width: 96px; height: 96px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
}
.footer-logo-badge img { width: 100%; height: 100%; object-fit: contain; }
.footer-inner h3 { font-size: 1.15rem; margin-bottom: 2px; }
.footer-inner .role { color: hsl(var(--primary-foreground) / 0.7); font-size: 0.9rem; }
.footer-contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; font-size: 0.9rem; color: hsl(var(--primary-foreground) / 0.85); }
.footer-contact span, .footer-contact a { display: inline-flex; align-items: center; gap: 8px; }
.footer-contact svg { width: 16px; height: 16px; }
/* Instagram/Facebook keep their own real brand colors (that's the point of
   a recognizable logo), so they're a little larger and skip the plain
   currentColor treatment the phone/location icons use. */
.footer-contact .brand-badge svg { width: 22px; height: 22px; border-radius: 6px; }
.footer-bottom { border-top: 1px solid hsl(var(--primary-foreground) / 0.12); margin-top: 32px; padding-top: 20px; text-align: center; font-size: 0.78rem; color: hsl(var(--primary-foreground) / 0.78); }
.footer-legal { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 32px; font-size: 0.78rem; }
.footer-legal a { color: hsl(var(--primary-foreground) / 0.78); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover, .footer-legal a:focus-visible { color: hsl(var(--primary-foreground)); }
.footer-legal span { color: hsl(var(--primary-foreground) / 0.4); }

/* Floating WhatsApp -------------------------------------------------- */
.floating-wa {
  position: fixed; bottom: 24px; left: 24px; z-index: 60;
  height: 56px; padding: 0 20px 0 18px; border-radius: var(--radius-full);
  background: #25D366; /* WhatsApp's own brand green, kept as-is for recognizability */
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 12px 28px -10px rgb(37 211 102 / 0.6);
  white-space: nowrap;
}
.floating-wa svg { width: 26px; height: 26px; flex-shrink: 0; }
.floating-wa-label { color: #fff; font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; }
@media (max-width: 380px) {
  .floating-wa { width: 56px; padding: 0; justify-content: center; }
  .floating-wa-label { display: none; }
}

/* Accessibility widget --------------------------------------------------
   Positioned bottom-right (WhatsApp owns bottom-left) so the two floating
   controls never overlap. */
.acc-widget { position: fixed; bottom: 24px; right: 24px; z-index: 60; }
.acc-toggle {
  width: 56px; height: 56px; border-radius: 50%;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -10px hsl(var(--primary) / 0.6);
  border: none;
}
.acc-panel {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 300px;
  max-width: calc(100vw - 40px);
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px -20px hsl(var(--foreground) / 0.35);
  overflow: hidden;
}
.acc-panel[hidden] { display: none; }
.acc-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: hsl(var(--muted));
  border-bottom: 1px solid hsl(var(--border));
  font-weight: 700;
  font-size: 0.9rem;
}
.acc-icon-btn { background: none; border: none; color: hsl(var(--foreground) / 0.55); padding: 2px; }
.acc-icon-btn svg { width: 18px; height: 18px; }
.acc-panel-body { padding: 16px 18px 18px; display: grid; gap: 14px; }
.acc-font-row {
  display: flex; align-items: center; justify-content: space-between;
  background: hsl(var(--muted));
  padding: 10px 12px;
  border-radius: var(--radius-md);
}
.acc-square-btn {
  width: 32px; height: 32px; border-radius: 8px;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  font-weight: 700; font-size: 1rem; color: hsl(var(--foreground));
}
.acc-font-label { font-size: 0.78rem; font-weight: 700; color: hsl(var(--foreground) / 0.8); }
.acc-options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acc-option {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  padding: 10px 6px;
  border-radius: var(--radius-md);
  border: 2px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--foreground) / 0.7);
}
.acc-option span { font-size: 0.7rem; font-weight: 700; }
.acc-option[aria-pressed="true"] {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.08);
  color: hsl(var(--primary));
}
.acc-panel-footer {
  border-top: 1px solid hsl(var(--border));
  padding-top: 12px;
  display: grid; gap: 8px;
}
.acc-reset-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: none; border: none;
  font-size: 0.78rem; color: hsl(var(--foreground) / 0.68);
  padding: 4px;
}
.acc-statement-link {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: hsl(var(--secondary));
  color: hsl(var(--primary));
  border-radius: var(--radius-md);
  padding: 10px;
  font-size: 0.78rem; font-weight: 700;
}

/* Accessibility state overrides, applied to <body> by the widget's JS --- */
body.acc-high-contrast { background: #000 !important; }
body.acc-high-contrast,
body.acc-high-contrast * {
  background-color: #000 !important;
  color: #ffff00 !important;
  border-color: #ffff00 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
body.acc-high-contrast img,
body.acc-high-contrast .hero-bg,
body.acc-high-contrast .guidance-bg { filter: grayscale(100%) contrast(1.2); opacity: 0.9; }
body.acc-grayscale { filter: grayscale(100%); }
body.acc-readable-font,
body.acc-readable-font * { font-family: Arial, Helvetica, sans-serif !important; letter-spacing: 0.01em; }
body.acc-highlight-links a {
  background: #ffff00 !important;
  color: #000 !important;
  text-decoration: underline !important;
  font-weight: 700 !important;
}
body.acc-stop-animations *,
body.acc-stop-animations *::before,
body.acc-stop-animations *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

/* Modal ---------------------------------------------------------------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: hsl(var(--foreground) / 0.45);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  background: hsl(var(--card));
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 32px;
  position: relative;
}
.modal-box h3 { color: hsl(var(--foreground)); text-align: center; }
.modal-box p { color: hsl(var(--foreground) / 0.82); }
.modal-logo { width: 84px; height: 84px; border-radius: 50%; display: block; margin: 0 auto 14px; }
.modal-close {
  position: absolute; top: 16px; left: 16px;
  background: none; border: none; color: hsl(var(--foreground) / 0.5);
}
.modal-close svg { width: 22px; height: 22px; }

/* Lead-capture wizard modals ---------------------------------------------
   Short 2-question qualifier + contact step before handing off to
   WhatsApp, one per service. Reuses .modal-backdrop/.modal-box/.modal-close
   for the overlay chrome and .btn/.btn-accent/.btn-outline for the nav
   buttons, so it sits inside the same visual language as the rest of the
   site instead of introducing a second button/box style. */
.lead-modal-box { max-width: 420px; padding: 0; overflow-y: auto; max-height: 90vh; }
.lead-modal-box .modal-close { color: hsl(var(--primary-foreground) / 0.85); z-index: 2; }
.lead-head {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 26px 28px 20px;
}
.lead-head h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin: 0 0 4px;
}
.lead-head p { margin: 0; font-size: 0.85rem; color: hsl(var(--primary-foreground) / 0.8); }
.lead-progress { display: flex; gap: 6px; margin-top: 16px; }
.lead-progress .lead-dot {
  flex: 1; height: 3px; border-radius: var(--radius-full);
  background: hsl(var(--primary-foreground) / 0.25); overflow: hidden; position: relative;
}
.lead-progress .lead-dot.done { background: hsl(var(--accent-light)); }
.lead-progress .lead-dot.active::after {
  content: ''; position: absolute; inset: 0; background: hsl(var(--accent-light));
  animation: lead-breathe 1.8s ease-in-out infinite; transform-origin: right;
}
@keyframes lead-breathe { 0%, 100% { transform: scaleX(0.3); } 50% { transform: scaleX(1); } }
.lead-body { padding: 26px 28px; }
.lead-step { display: none; }
.lead-step.active { display: block; animation: lead-fade 0.25s ease; }
@keyframes lead-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.lead-step h2 { font-family: var(--font-heading); font-size: 1.02rem; font-weight: 600; margin: 0 0 14px; }
.lead-tiles { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.lead-tile {
  position: relative; border: 1.5px solid hsl(var(--border)); border-radius: var(--radius-md);
  padding: 13px 16px; cursor: pointer; font-size: 0.92rem;
  transition: border-color 0.15s, background 0.15s;
}
.lead-tile:active { transform: scale(0.99); }
.lead-tile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.lead-tile.selected { border-color: hsl(var(--primary)); background: hsl(var(--secondary) / 0.4); font-weight: 500; }
.lead-tile.selected::after {
  content: '✓'; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: hsl(var(--primary)); font-weight: 700;
}
.lead-tile:focus-within { outline: 2px solid hsl(var(--accent)); outline-offset: 2px; }
.lead-body select, .lead-body input[type=text], .lead-body input[type=tel] {
  width: 100%; font-family: var(--font-body); font-size: 0.95rem;
  border: 1px solid hsl(var(--border)); border-radius: var(--radius-md);
  padding: 12px 14px; margin-bottom: 12px; background: hsl(var(--background)); color: hsl(var(--foreground));
}
.lead-body select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23594e3d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: left 14px center; background-size: 16px; padding-left: 40px;
}
.lead-body select:focus, .lead-body input:focus {
  outline: 2px solid hsl(var(--accent)); outline-offset: 1px; border-color: hsl(var(--accent));
}
.lead-field-label { font-size: 0.8rem; color: hsl(var(--foreground) / 0.65); display: block; margin-bottom: 6px; }
.lead-hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.lead-err { color: hsl(0 55% 42%); font-size: 0.8rem; margin: -6px 0 12px; display: none; }
.lead-err.show { display: block; }
.lead-nav-row { display: flex; gap: 10px; margin-top: 18px; }
.lead-nav-row .btn { flex: 1; justify-content: center; }
.lead-nav-row .lead-back-btn { flex: 0 0 auto; }
.lead-spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid hsl(var(--primary-foreground) / 0.4); border-top-color: hsl(var(--primary-foreground));
  display: inline-block; vertical-align: middle; margin-inline-start: 8px;
  animation: lead-spin 0.7s linear infinite;
}
@keyframes lead-spin { to { transform: rotate(360deg); } }
.lead-confirm { text-align: center; padding: 8px 0; }
.lead-confirm .lead-check {
  width: 48px; height: 48px; border-radius: 50%; background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin: 0 auto 14px;
}
.lead-confirm p { font-size: 0.88rem; color: hsl(var(--foreground) / 0.7); margin: 6px 0 0; }
.lead-confirm .lead-wa-fallback {
  display: inline-block; margin-top: 16px; color: hsl(var(--primary)); font-size: 0.85rem; text-decoration: underline;
}
@media (prefers-reduced-motion: reduce) {
  .lead-progress .lead-dot.active::after { animation: none; transform: scaleX(0.65); }
  .lead-spinner { animation: none; }
}

/* Focus visibility ------------------------------------------------------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid hsl(var(--accent));
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .breath-underline::after, .breath-wave path, .gallery-item img {
    transition: none !important;
  }
  .breath-wave img, .corner-lotus { animation: none !important; }
}

/* Accessibility statement page ------------------------------------------- */
.statement { max-width: 720px; margin: 0 auto; padding-top: 110px; }
.statement h1 { font-size: clamp(1.75rem, 3vw, 2.4rem); margin-bottom: 0.4em; }
.statement h2 { font-size: 1.2rem; margin-top: 1.8em; }
.statement p, .statement li { color: hsl(var(--foreground) / 0.85); line-height: 1.8; }
.statement ul { padding-right: 20px; }
.back-link { display: inline-block; margin-top: 2em; }
