/* ==========================================================
   Sharon Mizrachi — landing page
   Fresh green & white theme, with a warm sunset accent.
   ========================================================== */

:root {
  --white: #fff;
  --tint: #edf6ef;
  --sage-100: #cde5d4;
  --sage-300: #93c4a2;
  --accent: #2f7d50;
  --stone: #b7bfbe;
  --deep: #1f4d36;
  --deep-hover: #163b29;
  --warm: #e8893a;
  --ink: #383838;
  --text: #4d4a47;
  --muted: #6e6a66;
  --line: #9ea5a2;
  --line-soft: rgba(56, 56, 56, .13);
  --on-dark: rgba(255, 255, 255, .8);
  --on-dark-accent: #b6e2c4;
  --line-dark: rgba(255, 255, 255, .16);

  --font: "Heebo", "Assistant", "Arial Hebrew", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  --radius: 4px;
  --header-h: 74px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 400; line-height: 1.3; margin: 0; }
p { margin: 0 0 1em; }
strong { font-weight: 500; color: var(--ink); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: var(--white); padding: .6rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.rule { border: 0; border-top: 2px solid var(--warm); margin: 1.75rem 0; }
.rule--short { width: 170px; margin: 1.1rem auto 1.6rem; }

.kicker, .eyebrow {
  display: inline-flex; align-items: center; gap: .7rem; margin-bottom: .8rem;
  font-size: .85rem; font-weight: 400; letter-spacing: .14em; color: var(--accent);
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--warm); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: inherit; font-weight: 400; font-size: 1rem; letter-spacing: .02em;
  padding: .8rem 1.7rem; border: 1px solid var(--ink); border-radius: 2px;
  text-decoration: none; cursor: pointer; background: transparent; color: var(--ink);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--dark { background: var(--deep); border-color: var(--deep); color: var(--white); }
.btn--dark:hover { background: var(--deep-hover); border-color: var(--deep-hover); }
.btn--ghost { border-color: var(--deep); color: var(--deep); }
.btn--ghost:hover { background: var(--deep); color: var(--white); }
.btn--sm { padding: .5rem 1.15rem; font-size: .95rem; }
.btn__icon { width: 1.15em; height: 1.15em; flex: none; }

.callout .btn--dark { background: var(--white); color: var(--deep); border-color: var(--white); }
.callout .btn--dark:hover { background: var(--sage-100); border-color: var(--sage-100); }

/* ---------- Header (slim sticky bar) ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px);
  transition: box-shadow .3s var(--ease);
}
.site-nav.is-stuck { box-shadow: 0 1px 0 var(--line-soft); }
.site-nav__inner {
  max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
  min-height: var(--header-h); display: flex; align-items: center; gap: 2rem;
}
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--ink); }
.brand__mark { width: 46px; height: 46px; color: var(--accent); flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; padding-inline-start: .85rem; border-inline-start: 1px solid var(--line); }
.brand__name { font-size: 1.4rem; font-weight: 400; letter-spacing: .02em; }
.brand__role { font-size: .8rem; color: var(--muted); letter-spacing: .05em; margin-top: .15rem; }

.nav { margin-inline-start: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1rem, 2.6vw, 2.4rem); }
.nav-list a { text-decoration: none; font-size: 1.02rem; letter-spacing: .03em; color: var(--ink); padding: .35rem 0; position: relative; }
.nav-list a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transition: transform .3s var(--ease);
}
.nav-list a:hover::after, .nav-list a[aria-current="true"]::after { transform: scaleX(1); }
.nav-toggle { display: none; }

/* ---------- Hero (split panel + photo) ---------- */
.hero {
  padding: 1rem 12px 0;
  background: linear-gradient(to bottom, var(--white) 0 72%, var(--sage-300) 72% 100%);
}
.hero__grid {
  display: grid; grid-template-columns: 1fr 1fr; max-width: 1740px; margin-inline: auto;
  min-height: clamp(460px, 70vh, 660px);
}
/* RTL grid: column 1 is on the right */
.hero__media { grid-column: 1; grid-row: 1; position: relative; overflow: hidden; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 56% 45%; }
.hero__panel {
  grid-column: 2; grid-row: 1; background: var(--sage-100);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 3.5rem clamp(1.5rem, 4vw, 4rem);
}
.hero__title {
  font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 300; letter-spacing: .28em; line-height: 1.35;
  margin-bottom: 2.2rem; margin-inline-end: -.28em;
}
.hero__title .nobr { white-space: nowrap; }
.hero__lead { font-size: clamp(1.25rem, 2.2vw, 1.7rem); letter-spacing: .14em; color: var(--ink); margin-bottom: 1.6rem; }
.hero__methods { font-size: 1.12rem; letter-spacing: .08em; margin-bottom: .2rem; color: var(--ink); }
.hero__where { font-size: 1.05rem; letter-spacing: .08em; color: var(--muted); margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }

/* ---------- About (white card on sage band) ---------- */
.about { background: var(--sage-300); padding: 0 12px 12px; }
.about__card { display: grid; grid-template-columns: 1fr 1fr; max-width: 1740px; margin-inline: auto; background: var(--white); }
.about__text { padding: clamp(2.5rem, 6vw, 5.5rem) clamp(1.5rem, 6vw, 7rem); align-self: center; max-width: 720px; }
.about__name { font-size: clamp(1.9rem, 3vw, 2.4rem); font-weight: 500; }
.about__role { font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: var(--muted); margin: .4rem 0 0; }
.about__media { position: relative; min-height: 420px; }
.about__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); position: relative; --surface: var(--tint); }
.section--tint { background: var(--tint); --surface: var(--white); }

.section-head { text-align: center; max-width: 780px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.25rem); }
.section-head > p:last-child { margin-bottom: 0; }

.split-head {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 1.2rem clamp(2rem, 6vw, 5rem); align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.split-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.split-head > p { margin: 0; }

.subhead { font-size: clamp(1.3rem, 2.2vw, 1.5rem); margin: clamp(3rem, 5vw, 4rem) 0 1.3rem; }
.subhead-note { color: var(--muted); margin: -.7rem 0 1.5rem; }

/* ---------- Approach cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); max-width: 960px; margin-inline: auto; gap: clamp(1rem, 3vw, 2.2rem); }
.card { background: var(--sage-100); padding: 2.6rem 2rem 2.2rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
.card__icon { width: 46px; height: 46px; color: var(--deep); margin-bottom: 1.2rem; }
.card h3 { font-size: 1.15rem; font-weight: 500; margin-bottom: 1rem; }
.card p { font-size: 1rem; line-height: 1.85; text-align: start; flex: 1; }
.card__link { margin-top: .6rem; text-decoration: none; font-weight: 400; color: var(--deep); border-bottom: 1px solid var(--warm); padding-bottom: 2px; }
.card__link::after { content: " ←"; }

/* ---------- Method sections (two columns, sticky heading) ---------- */
.method__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.method__head { position: sticky; top: calc(var(--header-h) + 2rem); }
.method__head h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin-bottom: 1.2rem; }
.method__head h2::after { content: ""; display: block; width: 90px; height: 2px; background: var(--warm); margin-top: 1.2rem; }
.method__head .kicker { direction: ltr; }
.method__body > .subhead:first-child { margin-top: 0; }
.big { font-size: clamp(1.18rem, 1.9vw, 1.35rem); line-height: 1.75; color: var(--ink); }

/* CBT principles */
.accordion { border-top: 1px solid var(--line-soft); }
.principle { border-bottom: 1px solid var(--line-soft); }
.principle summary {
  list-style: none; cursor: pointer; padding: 1.3rem 0; padding-inline-end: 3.2rem; position: relative; display: grid; gap: .2rem;
}
.principle summary::-webkit-details-marker { display: none; }
.principle summary::after {
  content: "+"; position: absolute; inset-inline-end: 0; top: 1.3rem; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.25rem; line-height: 1; color: var(--ink); border: 1px solid var(--sage-300);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.principle[open] summary::after { transform: rotate(45deg); background: var(--sage-100); }
.principle__title { font-size: 1.18rem; font-weight: 500; color: var(--ink); }
.principle__text { font-size: 1rem; }
.principle > p { margin: 0 0 1.3rem; padding: 1rem 1.2rem; background: var(--surface); border-inline-start: 2px solid var(--sage-300); font-size: .98rem; }

.tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tools li { background: var(--surface); padding: 1.3rem 1.4rem; font-size: .98rem; line-height: 1.65; }
.tools strong { display: block; font-size: 1.08rem; margin-bottom: .25rem; }
.note { margin: 1.5rem 0 0; color: var(--muted); }

/* EMR */
.fit { background: var(--sage-100); padding: clamp(1.4rem, 3vw, 2.1rem); }
.fit h3 { font-size: 1.1rem; font-weight: 500; margin-bottom: 1.1rem; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { background: var(--white); padding: .3rem .95rem; font-size: .95rem; border-radius: 999px; color: var(--ink); }

.benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; counter-reset: ben; }
.benefits li { counter-increment: ben; background: var(--surface); padding: 1.5rem 1.4rem; border-top: 2px solid var(--accent); }
.benefits li::before { content: counter(ben, decimal-leading-zero); display: block; font-size: 1.8rem; font-weight: 300; color: var(--warm); line-height: 1; margin-bottom: .8rem; }
.benefits h4, .timeline h4, .flow h4 { font-size: 1.08rem; font-weight: 500; margin-bottom: .35rem; }
.benefits p, .timeline p, .flow p { font-size: .98rem; line-height: 1.75; margin: 0; }

.timeline { list-style: none; margin: 0; padding: 0; counter-reset: step; position: relative; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 19px; top: 12px; bottom: 12px; width: 1px; background: var(--sage-300); }
.timeline li { counter-increment: step; position: relative; padding-inline-start: 4rem; padding-bottom: 1.8rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: counter(step); position: absolute; inset-inline-start: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); border: 1px solid var(--sage-300); color: var(--ink); font-size: 1rem;
}

.callout {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); background: var(--deep); color: var(--on-dark);
  padding: clamp(1.6rem, 3.5vw, 2.3rem); display: flex; align-items: center; justify-content: space-between; gap: 1.2rem 2rem;
}
.callout p { margin: 0; font-size: 1.05rem; }
.callout strong { color: var(--white); }
.callout .btn { flex: none; }

/* Biofeedback */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.flow li { display: grid; grid-template-columns: 48px 1fr; gap: 1.2rem; align-items: start; background: var(--surface); padding: 1.4rem; }
.flow__num { width: 48px; height: 48px; border-radius: 50%; background: var(--sage-100); display: grid; place-items: center; font-size: 1.1rem; color: var(--deep); font-weight: 400; }
.lists { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: .8rem 0; padding-inline-start: 1.4rem; border-bottom: 1px solid var(--line-soft); font-size: 1rem; line-height: 1.65; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 1.4rem; width: 7px; height: 7px; border-radius: 50%; background: var(--warm); }
.ticks strong { display: block; }

/* ---------- Quote (photo band) ---------- */
.quote { position: relative; overflow: hidden; min-height: clamp(360px, 55vh, 520px); display: grid; place-items: center; isolation: isolate; }
.quote__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.quote::before { content: ""; position: absolute; inset: 0; background: rgba(30, 40, 34, .45); z-index: -1; }
.quote__inner { margin: 0; padding: 3rem var(--gutter); max-width: 900px; text-align: center; color: var(--white); }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: clamp(1.5rem, 3.4vw, 2.4rem); font-weight: 300; line-height: 1.6; letter-spacing: .04em; margin: 0; }
.quote blockquote p::before, .quote blockquote p::after { content: "\""; }
.quote figcaption { margin-top: 1.6rem; letter-spacing: .2em; font-size: .95rem; opacity: .9; }
.quote figcaption::before { content: "— "; }

/* ---------- Testimonials ---------- */
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.t { margin: 0; background: var(--white); padding: 2rem 1.8rem 1.6rem; display: flex; flex-direction: column; }
.t::before { content: "\201D"; font-size: 3.4rem; line-height: .8; color: var(--warm); height: 1.8rem; }
.t blockquote { margin: 0; font-size: 1rem; line-height: 1.85; color: var(--ink); flex: 1; }
.t figcaption { margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--line-soft); font-size: .9rem; color: var(--muted); letter-spacing: .04em; }
.t--featured {
  grid-column: 1 / -1; background: var(--sage-100); padding: clamp(2rem, 5vw, 3.2rem) clamp(1.6rem, 6vw, 4.5rem);
  display: grid; grid-template-columns: auto 1fr; column-gap: clamp(1rem, 3vw, 2.5rem);
}
.t--featured::before { color: var(--white); font-size: 6rem; height: auto; grid-row: span 2; }
.t--featured blockquote { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.75; font-weight: 300; }
.t--featured figcaption { border-color: rgba(56, 56, 56, .18); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.contact__intro h2 { font-size: clamp(2rem, 3.8vw, 2.7rem); margin-bottom: 1.1rem; }
.contact__info { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact__info li { display: flex; align-items: center; gap: 1rem; }
.contact__info svg { width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: var(--sage-100); color: var(--deep); flex: none; }
.contact__info li > span { display: flex; flex-direction: column; line-height: 1.45; }
.contact__label { font-size: .88rem; color: var(--muted); }
.contact__info a, .contact__info li > span > span:last-child { color: var(--ink); font-weight: 400; text-decoration: none; font-size: 1.06rem; }
.contact__info a:hover { text-decoration: underline; }

.contact__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--on-dark); padding-block: 1.8rem; font-size: .92rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.site-footer p { margin: 0; }
.brand--footer { color: var(--white); }
.brand--footer .brand__mark { width: 34px; height: 34px; color: var(--white); }
.brand--footer .brand__name { font-size: 1.15rem; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
.site-footer__links a { text-decoration: none; border-bottom: 1px solid currentColor; }

/* ---------- Floating WhatsApp ---------- */
.fab {
  position: fixed; bottom: 18px; left: 18px; z-index: 60; width: 54px; height: 54px; border-radius: 50%;
  background: var(--deep); color: var(--white); display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22); transition: transform .25s var(--ease), opacity .3s var(--ease);
}
.fab svg { width: 27px; height: 27px; }
.fab:hover { transform: translateY(-2px); }
.fab.is-hidden { opacity: 0; pointer-events: none; }

/* ---------- Reveal on scroll (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1080px) {
  .lists { grid-template-columns: 1fr; }
  .t-grid { grid-template-columns: 1fr 1fr; }
  .callout { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .site-nav__inner { gap: .8rem; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__name { font-size: 1.2rem; }
  .nav { order: 3; margin-inline-start: 0; }
  .nav-cta { margin-inline-start: auto; }
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-soft); border-radius: 50%;
    background: var(--white); color: var(--ink); cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 18px; height: 1px; background: currentColor; position: relative; transition: transform .3s var(--ease), background-color .3s;
  }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; }
  .nav-toggle__bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

  .nav-list {
    position: absolute; inset-inline: 0; top: 100%; flex-direction: column; gap: 0;
    background: var(--white); padding: .4rem var(--gutter) 1.1rem; box-shadow: 0 16px 30px -20px rgba(0, 0, 0, .3);
  }
  .js .nav-list { display: none; }
  .js .nav-list.is-open { display: flex; }
  .nav-list a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line-soft); font-size: 1.08rem; }
  .nav-list a::after { display: none; }

  .hero { padding: 0; background: var(--sage-100); }
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { grid-column: 1; grid-row: 1; height: clamp(240px, 46vw, 380px); }
  .hero__panel { grid-column: 1; grid-row: 2; padding: 2.8rem var(--gutter) 3.2rem; }
  .hero__title { letter-spacing: .18em; margin-inline-end: -.18em; margin-bottom: 1.4rem; }
  .hero__lead { letter-spacing: .06em; margin-bottom: 1.1rem; }

  .about { padding: 0; background: var(--white); }
  .about__card { grid-template-columns: 1fr; }
  .about__media { grid-row: 1; min-height: 0; aspect-ratio: 1200 / 1019; max-height: 460px; }
  .about__text { padding: 2.6rem var(--gutter) 1rem; max-width: none; }

  .cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .split-head { grid-template-columns: 1fr; align-items: start; }
  .method__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .method__head { position: static; }

  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand__role { display: none; }
  .nav-cta { padding: .45rem .9rem; font-size: .9rem; }
  .hero__actions .btn, .contact__actions .btn { width: 100%; }
  .tools, .benefits { grid-template-columns: 1fr; }
  .t-grid { grid-template-columns: 1fr; }
  .t--featured { grid-template-columns: 1fr; }
  .t--featured::before { grid-row: auto; font-size: 4.5rem; height: 2.4rem; }
  .site-footer__inner { flex-direction: column; text-align: center; }
  .fab { bottom: 14px; left: 14px; }
}
