/* ===== משתני עיצוב ===== */
:root {
  --cream: #FBF6EF;
  --cream-deep: #F4ECE0;
  --surface: #FFFFFF;
  --forest: #2F4A3C;
  --forest-deep: #223629;
  --sage: #7A9B82;
  --sage-soft: #E4EDE3;
  --terracotta: #9C4A2D; /* ניגודיות 4.5:1 ומעלה על כל רקעי האתר הבהירים */
  --peach: #F6DFD2;
  --ink: #26302B;
  --muted: #56635C;
  --line: #E6DED1;
  --wa: #0F7F45;
  --wa-hover: #0B6837;

  --font-body: "Assistant", "Segoe UI", Arial, sans-serif;
  --font-display: "Frank Ruhl Libre", "David", "Times New Roman", serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(47, 74, 60, 0.08);
  --shadow-lg: 0 24px 60px rgba(47, 74, 60, 0.14);
  --header-h: 72px;
}

/* ===== בסיס ===== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--forest-deep);
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5.4vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img, svg { max-width: 100%; }

.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 20px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  inset-inline-start: 12px;
  z-index: 200;
  background: var(--forest);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 6px;
}

/* על רקע כהה מסגרת המיקוד צריכה להיות בהירה כדי להיראות */
.about :focus-visible,
.cta-box :focus-visible { outline-color: #fff; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--terracotta);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* ===== כפתורים ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-wa {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 8px 22px rgba(15, 127, 69, 0.28);
}
.btn-wa:hover { background: var(--wa-hover); }

.btn-ghost {
  border-color: var(--forest);
  color: var(--forest);
}
.btn-ghost:hover { background: var(--forest); color: #fff; }

.btn-sm { padding: 9px 18px; font-size: 1rem; }
.btn-lg { padding: 15px 30px; font-size: 1.15rem; }

.btn-on-dark {
  background: #fff;
  color: var(--wa-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.btn-on-dark:hover { background: var(--cream); }

/* ===== כותרת עליונה ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(47, 74, 60, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--forest-deep);
}
.brand-role { font-size: 0.9rem; color: var(--muted); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a:not(.btn) {
  text-decoration: none;
  font-weight: 600;
  color: var(--forest);
  padding-block: 6px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.site-nav a:not(.btn):hover { border-bottom-color: var(--terracotta); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--sage-soft);
  cursor: pointer;
  position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 13px;
  width: 20px; height: 2px;
  background: var(--forest-deep);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle-bar { top: 22px; }
.nav-toggle-bar::before { content: ""; left: 0; top: -6px; }
.nav-toggle-bar::after { content: ""; left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* ===== פתיח ===== */
.hero {
  position: relative;
  padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset-inline-end: -180px;
  top: -200px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: var(--peach);
  opacity: 0.55;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.hero h1 .accent { display: block; color: var(--terracotta); white-space: nowrap; }

.lead {
  margin-top: 22px;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  color: var(--muted);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-note {
  margin: 14px 0 0;
  font-size: 1rem;
  color: var(--muted);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--forest);
}
.trust-list .icon { color: var(--sage); }

.hero-visual {
  position: relative;
  max-width: 420px;
  width: 100%;
  margin-inline: auto;
}

.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  background: var(--sage-soft);
  box-shadow: var(--shadow-lg);
}
.portrait-art,
.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--muted);
}
.float-card strong { color: var(--forest-deep); }
.float-icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--peach);
  color: var(--terracotta);
  flex: none;
}
/* שני הכרטיסים בחלק התחתון, כדי לא להסתיר את הפנים בתמונה */
.float-card-a { bottom: 20%; inset-inline-start: -28px; }
.float-card-b { bottom: -22px; inset-inline-end: -12px; }

/* ===== מקטעים ===== */
.section { padding-block: clamp(56px, 8vw, 104px); }

.section-head {
  max-width: 640px;
  margin: 0 auto clamp(32px, 5vw, 56px);
  text-align: center;
}
.section-sub { margin: 16px 0 0; color: var(--muted); }

/* הזדהות */
.familiar { background: var(--cream-deep); }

.familiar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.familiar-grid li {
  position: relative;
  padding: 22px 24px;
  padding-inline-start: 52px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-weight: 600;
  line-height: 1.5;
  color: var(--forest-deep);
}
.familiar-grid li::before {
  content: "";
  position: absolute;
  inset-inline-start: 22px;
  top: 30px;
  width: 14px; height: 14px;
  border-radius: 50% 50% 50% 0;
  background: var(--terracotta);
}

.familiar-close {
  margin: clamp(28px, 4vw, 44px) auto 0;
  max-width: 640px;
  text-align: center;
  font-size: 1.3rem;
  color: var(--muted);
}
.familiar-close strong { color: var(--forest-deep); }

/* תחומי טיפול */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--sage-soft);
  color: var(--forest);
}
.card-icon .icon { width: 28px; height: 28px; }

.card h3 { font-size: 1.45rem; margin-bottom: 10px; }
.card p { color: var(--muted); }

.ticks { display: grid; gap: 8px; margin-bottom: 24px; }
.ticks li {
  position: relative;
  padding-inline-start: 28px;
  line-height: 1.5;
}
.ticks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.35em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--sage-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%232F4A3C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.500l4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.card-link {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 700;
  color: var(--wa-hover);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.card-link:hover { border-bottom-color: currentColor; }

/* נעים להכיר */
.about { background: var(--forest); color: #E9F0E8; }
.about h2, .about h3 { color: #fff; }
.about .eyebrow { color: #F0B79E; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.about-copy h2 { margin-bottom: 20px; }
.about-copy .btn { margin-top: 12px; }
.about .btn-wa { background: #fff; color: var(--wa-hover); box-shadow: none; }
.about .btn-wa:hover { background: var(--cream); }

.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.values li {
  padding: 24px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.values h3 { font-size: 1.2rem; margin-bottom: 8px; }
.values p { margin: 0; font-size: 1.05rem; line-height: 1.55; color: #D5E0D5; }

/* איך זה עובד */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.steps li { position: relative; text-align: center; padding-inline: 8px; }
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 30px;
  inset-inline-start: calc(50% + 44px);
  width: calc(100% - 64px);
  border-top: 2px dashed var(--sage);
  opacity: 0.6;
}
.step-num {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--peach);
  color: var(--terracotta);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
}
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.55; }

/* המלצות */
.testimonials { background: var(--sage-soft); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 56px 28px 28px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.quote::before {
  content: "”";
  position: absolute;
  top: 14px;
  inset-inline-start: 24px;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--terracotta);
}
.quote blockquote { margin: 0 0 20px; line-height: 1.65; }
.quote figcaption { margin-top: auto; font-weight: 700; color: var(--forest); }

/* כרטיס זמני – להסיר את המחלקה כשמוחלף בהמלצה אמיתית */
.quote.is-placeholder {
  background: transparent;
  border: 2px dashed var(--sage);
  box-shadow: none;
}
.quote.is-placeholder blockquote,
.quote.is-placeholder figcaption { color: var(--muted); font-weight: 400; }
.quote.is-placeholder::before { color: var(--sage); }

/* שאלות נפוצות */
.faq { background: var(--cream-deep); }
.faq-wrap { max-width: 820px; }
.faq-list { display: grid; gap: 12px; }

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-list summary {
  position: relative;
  padding: 20px 24px;
  padding-inline-end: 60px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--forest-deep);
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute;
  inset-inline-end: 24px;
  top: 50%;
  width: 11px; height: 11px;
  border-right: 2.5px solid var(--terracotta);
  border-bottom: 2.5px solid var(--terracotta);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list details p { margin: 0; padding: 0 24px 22px; color: var(--muted); }

/* קריאה לפעולה */
.cta-box {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 80px) clamp(24px, 5vw, 64px);
  border-radius: calc(var(--radius) * 1.6);
  background: var(--forest);
  color: #E9F0E8;
  text-align: center;
}
.cta-box::before,
.cta-box::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}
.cta-box::before { width: 320px; height: 320px; top: -140px; inset-inline-start: -100px; }
.cta-box::after { width: 240px; height: 240px; bottom: -120px; inset-inline-end: -60px; }
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { color: #fff; margin-bottom: 14px; }
.cta-box p { max-width: 34em; margin-inline: auto; font-size: 1.2rem; }
.cta-box .btn { margin-top: 14px; }
.cta-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 26px 0 0;
  font-size: 1.05rem !important;
  color: #D5E0D5;
}
.cta-meta a { text-underline-offset: 4px; }
.cta-meta a:hover { color: #fff; }

/* תחתית */
.site-footer {
  padding-block: 40px 110px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-inner { display: grid; gap: 16px; text-align: center; }
.footer-brand {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--forest-deep);
}
.footer-small { margin: 0; font-size: 0.98rem; }
.footer-disclaimer {
  max-width: 640px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.6;
}

.site-footer a { color: var(--forest); font-weight: 600; text-underline-offset: 3px; }

/* עמוד טקסט (הצהרת נגישות) */
.doc { max-width: 760px; padding-block: clamp(40px, 6vw, 72px); }
.doc h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: 12px; }
.doc h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.doc ul { list-style: disc; padding-inline-start: 1.3em; margin-bottom: 1em; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--wa-hover); font-weight: 600; text-underline-offset: 3px; }
.doc-updated { color: var(--muted); }
.doc-back { display: inline-block; margin-top: 32px; }
/* פרט שעדיין חסר וצריך להשלים לפני השקה */
.todo { background: #FFF1B8; color: var(--ink); padding: 2px 6px; border-radius: 4px; }

/* כפתור וואטסאפ צף */
.wa-fab {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--wa);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(15, 127, 69, 0.4);
  transition: background-color 0.2s, transform 0.2s, opacity 0.2s, visibility 0.2s;
}
.wa-fab:hover { background: var(--wa-hover); transform: translateY(-2px); }
/* מוסתר כל עוד כפתור הוואטסאפ של הפתיח נראה על המסך */
.js .wa-fab:not(.is-visible) { opacity: 0; visibility: hidden; transform: translateY(12px); }
.wa-fab .icon { width: 26px; height: 26px; }

/* ===== הופעה בגלילה ===== */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .wa-fab { transition: none; }
}

/* ===== רספונסיביות ===== */
@media (max-width: 980px) {
  .site-nav { gap: 18px; }
  .familiar-grid { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .steps li::after { display: none; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px rgba(47, 74, 60, 0.1);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) {
    padding-block: 14px;
    border-bottom: 1px solid var(--line);
    font-size: 1.15rem;
  }
  .site-nav .btn { margin-top: 16px; padding: 13px 20px; font-size: 1.1rem; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 320px; }
  .float-card-a { inset-inline-start: -12px; }
  .float-card-b { inset-inline-end: -12px; }

  .hero-actions .btn { flex: 1 1 100%; }

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

@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 1.2rem; }

  .hero-visual { max-width: 250px; }
  .float-card { display: none; }

  .familiar-grid,
  .values,
  .steps { grid-template-columns: 1fr; }

  .steps li {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 16px;
    text-align: start;
    padding: 0;
  }
  .step-num { width: 52px; height: 52px; margin: 0; grid-row: span 2; font-size: 1.4rem; }

  .wa-fab { padding: 15px; left: 16px; bottom: 16px; }
  .wa-fab-label { display: none; }
  .site-footer { padding-bottom: 96px; }
}
