/* ==========================================================================
   עמותת עמנואל — גיליון עיצוב
   תוכן העניינים:
   1. משתנים (Design tokens)      6. Hero               11. שאלות נפוצות
   2. בסיס וטיפוגרפיה              7. מי אנחנו           12. יצירת קשר וטופס
   3. רכיבים משותפים (כפתורים…)    8. שלבי התהליך        13. Footer
   4. הסימן הגרפי: שני קווים       9. שירותים            14. אנימציות כניסה
   5. Header וניווט               10. קהלים + חזון       15. העדפות משתמש והדפסה
   ========================================================================== */

/* 1. משתנים ---------------------------------------------------------------- */
:root {
  /* צבעים — נגזרו מהלוגו הקיים (כחול עמוק + תכלת) בתוספת מרווה ודבש */
  --navy: #17254a;
  --navy-deep: #101a36;
  --blue: #34529e;
  --sky: #4aa6d3;
  --sky-tint: #e4f1f8;
  --sage: #3d8f86;
  --sage-tint: #e2efea;
  --honey: #f2b84b;
  --honey-strong: #e7a52b;
  --paper: #fbf9f4;
  --paper-deep: #f3efe5;
  --white: #ffffff;
  --text: #1b2540;
  --text-muted: #4d5872;
  --line: #dcd9cf;
  --error: #a4262c;
  --success: #1f6b4a;

  /* טיפוגרפיה */
  --font-display: "Frank Ruhl Libre", "David Libre", "Times New Roman", serif;
  --font-body: "Assistant", "Heebo", "Arial Hebrew", Arial, sans-serif;
  --fs-hero: clamp(2.25rem, 1.2rem + 4.4vw, 4.25rem);
  --fs-h2: clamp(1.85rem, 1.25rem + 2.4vw, 3rem);
  --fs-h3: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --fs-body: 1.125rem;
  --fs-small: 0.95rem;

  /* מרווחים */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --section-y: clamp(4rem, 2.5rem + 6vw, 7.5rem);
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 2.5rem);
  --container: 76rem;

  /* צורה ותנועה */
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --shadow-s: 0 1px 2px rgba(23, 37, 74, 0.06), 0 4px 14px rgba(23, 37, 74, 0.06);
  --shadow-m: 0 2px 4px rgba(23, 37, 74, 0.05), 0 18px 44px rgba(23, 37, 74, 0.12);
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --header-h: 84px;
}

/* 2. בסיס וטיפוגרפיה ------------------------------------------------------- */
*,
*::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;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, .section-title, .vision__title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-wrap: balance;
}
h3 { font-weight: 700; line-height: 1.3; color: var(--navy); font-size: var(--fs-h3); }
p { text-wrap: pretty; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-s);
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* 3. רכיבים משותפים -------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--space-2);
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--blue);
}
/* שני הקווים הקטנים שלפני כל כותרת־על */
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 8px;
  border-block: 2px solid var(--blue);
  border-bottom-color: var(--sage);
  flex: none;
}
.eyebrow--light { color: #bfe1f2; }
.eyebrow--light::before { border-top-color: var(--sky); border-bottom-color: var(--honey); }

.section-title { font-size: var(--fs-h2); }
.section-lead {
  margin-top: var(--space-3);
  font-size: var(--fs-lead);
  color: var(--text-muted);
  max-width: 38em;
}
.section-head { max-width: 46rem; margin-bottom: var(--space-5); }
.section-foot { margin-top: var(--space-5); }

/* כפתורים */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn--lg { min-height: 56px; padding: 0.9rem 1.9rem; font-size: 1.125rem; }
.btn--primary {
  background: var(--honey);
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(231, 165, 43, 0.28);
}
.btn--primary:hover { background: var(--honey-strong); transform: translateY(-2px); }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--blue); transform: translateY(-2px); }
.btn__arrow,
.link-arrow svg {
  width: 1.2em; height: 1.2em;
  fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
  flex: none;
}
.btn:hover .btn__arrow,
.link-arrow:hover svg { transform: translateX(-5px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-block: 0.4rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  text-decoration-color: var(--honey);
}
.link-arrow:hover { color: var(--navy); }

/* כיתוב "תמונת המחשה" */
figure { position: relative; }
figcaption {
  position: absolute;
  bottom: 0.75rem;
  inset-inline-end: 0.75rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(16, 26, 54, 0.72);
  color: var(--white);
  font-size: 0.8rem;
}

/* 4. הסימן הגרפי: שני קווים שהולכים זה לצד זה ------------------------------ */
.side-lines path {
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.side-lines__a { stroke: var(--blue); }
.side-lines__b { stroke: var(--sage); }
.js .side-lines path { stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease); }
.js .side-lines__b { transition-delay: 0.25s; }
.js .side-lines.is-drawn path { stroke-dashoffset: 0; }

/* 5. Header וניווט --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(23, 37, 74, 0.07); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--header-h);
  transition: min-height 0.25s var(--ease);
}
.site-header.is-scrolled .site-header__inner { min-height: 68px; }
.site-logo { display: block; flex: none; border-radius: 6px; }
.site-logo img { width: auto; height: 56px; transition: height 0.25s var(--ease); mix-blend-mode: multiply; }
.site-header.is-scrolled .site-logo img { height: 46px; }

.site-nav { display: flex; align-items: center; gap: var(--space-4); }
.site-nav__list { display: flex; align-items: center; gap: clamp(0.25rem, 1.2vw, 1.25rem); }
.site-nav__list a {
  position: relative;
  display: block;
  padding: 0.6rem 0.5rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav__list a::after {
  content: "";
  position: absolute;
  inset-inline: 0.5rem;
  bottom: 0.3rem;
  height: 2px;
  background: var(--honey-strong);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.25s var(--ease);
}
.site-nav__list a:hover::after,
.site-nav__list a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.5rem 0.9rem;
  background: transparent;
  border: 2px solid var(--navy);
  border-radius: 999px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}
.nav-toggle__bars { display: grid; gap: 4px; width: 20px; }
.nav-toggle__bars span { height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1023px) {
  :root { --header-h: 72px; }
  .site-logo img { height: 48px; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    display: block;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: var(--space-2) var(--gutter) var(--space-4);
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(23, 37, 74, 0.14);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0s 0.25s;
  }
  .js .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .js .site-nav__list { display: block; }
  .js .site-nav__list a { padding: 1rem 0.25rem; font-size: 1.25rem; border-bottom: 1px solid var(--line); }
  .js .site-nav__list a::after { display: none; }
  .js .site-nav__cta { width: 100%; margin-top: var(--space-3); min-height: 56px; }
  /* בלי JS: התפריט נשאר גלוי ונגלל אופקית */
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: 0.5rem; }
  html:not(.js) .site-nav { flex-wrap: wrap; gap: var(--space-1); }
  html:not(.js) .site-nav__list { flex-wrap: wrap; }
}

/* 6. Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) clamp(3.5rem, 2rem + 6vw, 7rem);
  background:
    radial-gradient(60rem 30rem at 0% 0%, var(--sky-tint), transparent 60%),
    linear-gradient(var(--white), var(--paper));
}
.hero__inner {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}
.hero__title { font-size: var(--fs-hero); }
.hero__title-accent {
  display: block;
  color: var(--blue);
}
.hero__lead {
  margin-top: var(--space-3);
  max-width: 34em;
  font-size: var(--fs-lead);
  color: var(--text-muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-muted);
}
.hero__facts li { display: flex; align-items: center; gap: 0.5rem; }
.hero__facts li::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sage);
  flex: none;
}

.hero__visual {
  position: relative;
  width: min(100%, 30rem);
  margin-inline: auto;
  aspect-ratio: 5 / 6;
}
/* צורת קשת — רמז ל"בית" ולצורות המעוגלות שבלוגו */
.hero__photo,
.hero__shape {
  position: absolute;
  border-radius: 999px 999px var(--radius-l) var(--radius-l);
}
.hero__shape {
  inset: 9% 14% -3% -4%;
  background: var(--sage-tint);
}
.hero__photo {
  inset: 0 0 4% 10%;
  overflow: hidden;
  box-shadow: var(--shadow-m);
  background: var(--paper-deep);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 44% 50%; }
.hero__lines {
  position: absolute;
  inset: -6% -5% -4% -7%;
  width: 112%;
  height: 110%;
  pointer-events: none;
}
.hero__note {
  position: absolute;
  bottom: 15%;
  inset-inline-start: -5%;
  display: grid;
  gap: 0.1rem;
  max-width: 15rem;
  padding: 0.9rem 1.2rem;
  background: var(--white);
  border-radius: var(--radius-m);
  border-inline-start: 5px solid var(--honey);
  box-shadow: var(--shadow-m);
  line-height: 1.4;
}
.hero__note-kicker { font-size: 0.85rem; font-weight: 700; color: var(--sage); }
.hero__note-text { font-weight: 700; color: var(--navy); }

@media (max-width: 599px) {
  .hero__actions .btn { width: 100%; }
  .hero__visual { aspect-ratio: 1 / 1; width: min(100%, 24rem); }
  .hero__note { inset-inline-start: 0; bottom: 17%; }
}
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: var(--space-6); }
  .hero__visual { width: 100%; max-width: 33rem; margin-inline: auto 0; }
}

/* כניסה מדורגת של המסך הראשון */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.js .hero__text > * { animation: rise 0.8s var(--ease) both; }
.js .hero__text > :nth-child(2) { animation-delay: 0.08s; }
.js .hero__text > :nth-child(3) { animation-delay: 0.18s; }
.js .hero__text > :nth-child(4) { animation-delay: 0.28s; }
.js .hero__text > :nth-child(5) { animation-delay: 0.4s; }
.js .hero__photo, .js .hero__shape { animation: rise 1s var(--ease) 0.15s both; }
.js .hero__note { animation: rise 0.8s var(--ease) 0.9s both; }

/* 7. מי אנחנו -------------------------------------------------------------- */
.about { background: var(--paper); }
.about__inner { display: grid; gap: var(--space-5); align-items: center; }
.about__visual { position: relative; padding-bottom: 3.5rem; padding-inline-start: 0; }
.about__photo {
  overflow: hidden;
  border-radius: var(--radius-l) var(--radius-l) var(--radius-l) 120px;
  box-shadow: var(--shadow-s);
  aspect-ratio: 4 / 3;
  background: var(--paper-deep);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__year {
  position: absolute;
  bottom: 0;
  inset-inline-end: clamp(0.75rem, 4vw, 2rem);
  display: grid;
  gap: 0.15rem;
  max-width: 13.5rem;
  padding: 1.1rem 1.4rem 1.2rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-m);
}
.about__year-num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 2rem + 2.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1;
  color: var(--honey);
}
.about__year-label { font-size: var(--fs-small); line-height: 1.4; }
.about__text p + p { margin-top: var(--space-2); }
.about__text .section-title { margin-bottom: var(--space-3); }
.about__alut {
  padding-inline-start: var(--space-2);
  border-inline-start: 3px solid var(--sky);
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.about__text .link-arrow { margin-top: var(--space-3); }
@media (min-width: 900px) {
  .about__inner { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: var(--space-6); }
}

/* 8. שלבי התהליך ----------------------------------------------------------- */
.process { background: var(--white); border-block: 1px solid var(--line); }
.steps {
  --node: 60px;
  position: relative;
  display: grid;
  gap: var(--space-4);
  counter-reset: none;
}
/* שני הקווים שמחברים בין השלבים */
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  background: var(--blue);
  border-radius: 3px;
  transition: transform 1.8s var(--ease);
}
.steps::after { background: var(--sage); transition-delay: 0.2s; }
.step { position: relative; }
.step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--node);
  height: var(--node);
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--navy);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.step:first-child .step__num { background: var(--honey); border-color: var(--honey-strong); }
.step__title { margin-bottom: 0.4rem; }
.step p { color: var(--text-muted); }

/* מובייל וטאבלט: ציר אנכי */
@media (max-width: 899px) {
  .steps::before,
  .steps::after {
    top: 10px; bottom: 10px;
    width: 3px;
    inset-inline-start: calc(var(--node) / 2 - 6px);
    transform-origin: 50% 0;
  }
  .steps::after { inset-inline-start: calc(var(--node) / 2 + 3px); }
  .js .steps[data-reveal]:not(.is-visible)::before,
  .js .steps[data-reveal]:not(.is-visible)::after { transform: scaleY(0); }
  .step {
    display: grid;
    grid-template-columns: var(--node) 1fr;
    column-gap: var(--space-3);
    align-items: start;
  }
  .step__num { grid-row: span 2; }
  .step__title { align-self: end; padding-top: 0.5rem; }
  .step p { grid-column: 2; }
}
/* דסקטופ: ציר אופקי */
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
  .steps::before,
  .steps::after {
    inset-inline: 10px calc((100% - 3 * var(--space-4)) / 4 - var(--node) / 2);
    height: 3px;
    top: calc(var(--node) / 2 - 6px);
    transform-origin: 100% 50%;
  }
  .steps::after { top: calc(var(--node) / 2 + 3px); }
  .js .steps[data-reveal]:not(.is-visible)::before,
  .js .steps[data-reveal]:not(.is-visible)::after { transform: scaleX(0); }
  .step__num { margin-bottom: var(--space-3); }
  .step { padding-inline-end: var(--space-2); }
}
.process__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding: var(--space-3) var(--space-4);
  background: var(--paper);
  border-radius: var(--radius-m);
}
.process__note { max-width: 36em; font-size: var(--fs-small); color: var(--text-muted); }

/* 9. שירותים --------------------------------------------------------------- */
.services { background: var(--paper); }
.services__grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}
.service {
  position: relative;
  padding: var(--space-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: transparent; }
.service__icon {
  width: 56px; height: 56px;
  padding: 11px;
  margin-bottom: var(--space-3);
  border-radius: 16px;
  background: var(--sky-tint);
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service:nth-child(even) .service__icon { background: var(--sage-tint); stroke: #2c6f68; }
.service__title { margin-bottom: 0.5rem; }
.service p { color: var(--text-muted); }

/* 10. קהלים ---------------------------------------------------------------- */
.audiences { background: var(--white); border-top: 1px solid var(--line); }
.audiences__grid { display: grid; gap: var(--space-3); }
.audience {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  border-radius: var(--radius-l);
}
.audience__title { font-family: var(--font-display); font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem); }
.audience__text { font-size: var(--fs-lead); line-height: 1.6; }
.audience__points { display: grid; gap: 0.35rem; font-weight: 600; }
.audience__points li { display: flex; gap: 0.6rem; align-items: baseline; }
.audience__points li::before { content: ""; flex: none; width: 14px; height: 2px; background: currentColor; transform: translateY(-0.3em); }
.audience .btn { margin-top: auto; }
.audience__points + .btn, .audience__text + .btn { margin-top: auto; }

.audience--self { background: var(--sky-tint); border-start-start-radius: 110px; }
.audience--family { background: var(--navy); color: var(--white); }
.audience--family .audience__title { color: var(--white); }
.audience--family .audience__points { color: var(--honey); }
.audience--pro { background: var(--sage-tint); border-end-end-radius: 110px; }
@media (min-width: 900px) {
  .audiences__grid { grid-template-columns: 1fr 1.15fr 1fr; align-items: stretch; }
  .audience { min-height: 24rem; }
  .audience--family { transform: translateY(-1.25rem); box-shadow: var(--shadow-m); }
}

/* חזון --------------------------------------------------------------------- */
.vision {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-y) calc(var(--section-y) + 3rem);
  background:
    radial-gradient(50rem 30rem at 100% 0%, rgba(74, 166, 211, 0.22), transparent 65%),
    var(--navy);
  color: #e6ebf5;
}
.vision__inner { display: grid; gap: var(--space-5); align-items: center; }
.vision__title { font-size: clamp(2.4rem, 1.4rem + 4.5vw, 4.5rem); color: var(--white); margin-bottom: var(--space-4); }
.vision__lead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.7rem);
  line-height: 1.45;
  color: var(--white);
}
.vision__text p + p { margin-top: var(--space-3); max-width: 36em; font-size: var(--fs-lead); }
.vision__visual { width: min(100%, 22rem); margin-inline: auto; }
.vision__photo {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px var(--radius-l) var(--radius-l);
  outline: 2px solid rgba(255, 255, 255, 0.28);
  outline-offset: 10px;
}
.vision__photo img { width: 100%; height: 100%; object-fit: cover; }
.vision__lines { position: absolute; inset-inline: 0; bottom: 1rem; width: 100%; height: 90px; pointer-events: none; }
.vision__lines .side-lines__a { stroke: var(--sky); }
.vision__lines .side-lines__b { stroke: var(--honey); }
@media (min-width: 900px) {
  .vision__inner { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: var(--space-6); }
  .vision__visual { margin-inline: auto 0; }
}

/* 11. שאלות נפוצות --------------------------------------------------------- */
.faq { background: var(--paper); }
.faq__inner { display: grid; gap: var(--space-5); }
.faq__head .link-arrow { margin-top: var(--space-3); }
@media (min-width: 960px) {
  .faq__inner { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--space-6); align-items: start; }
  .faq__head { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.accordion { border-top: 2px solid var(--navy); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__heading { font-size: inherit; }
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  min-height: 64px;
  padding: 1.15rem 0.25rem;
  background: none;
  border: 0;
  text-align: start;
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
  cursor: pointer;
}
.accordion__trigger:hover { color: var(--blue); }
.accordion__icon {
  position: relative;
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  transition: background-color 0.25s, border-color 0.25s;
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 2px;
  margin: -1px 0 0 -7px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}
.accordion__icon::after { transform: rotate(90deg); }
.accordion__trigger[aria-expanded="true"] .accordion__icon { background: var(--honey); border-color: var(--honey); }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: rotate(0deg); }
html:not(.js) .accordion__icon { display: none; }

.accordion__body { padding: 0 0.25rem 1.5rem; max-width: 40em; color: var(--text-muted); }
/* אנימציית פתיחה באמצעות grid-rows — בלי מדידת גובה ב-JS */
.js .accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.35s var(--ease), visibility 0s 0.35s;
}
.js .accordion__panel > .accordion__body { overflow: hidden; min-height: 0; padding-bottom: 0; transition: padding-bottom 0.35s var(--ease); }
.js .accordion__panel.is-open { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.js .accordion__panel.is-open > .accordion__body { padding-bottom: 1.5rem; }

/* 12. יצירת קשר וטופס ------------------------------------------------------ */
.contact {
  background:
    radial-gradient(40rem 24rem at 100% 100%, var(--sage-tint), transparent 70%),
    var(--white);
  border-top: 1px solid var(--line);
}
.contact__inner { display: grid; gap: var(--space-5); align-items: start; }
@media (min-width: 960px) {
  .contact__inner { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--space-6); }
}
.contact__details { display: grid; gap: var(--space-3); margin-top: var(--space-5); }
.contact__details > div { padding-inline-start: var(--space-3); border-inline-start: 3px solid var(--sage); }
.contact__details dt { font-size: var(--fs-small); font-weight: 700; color: var(--text-muted); }
.contact__details dd { font-size: 1.3rem; font-weight: 700; color: var(--navy); line-height: 1.4; }
.contact__details a { text-decoration: none; display: inline-block; unicode-bidi: isolate; }
.contact__details a:hover { text-decoration: underline; text-decoration-color: var(--honey-strong); text-underline-offset: 5px; }
.contact__hint { font-size: var(--fs-small); font-weight: 400; color: var(--text-muted); }

.contact__card {
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
}
.form { display: grid; gap: var(--space-3); }
.form__title { font-family: var(--font-display); font-size: 1.6rem; }
.form__intro { margin-top: -0.75rem; font-size: var(--fs-small); color: var(--text-muted); }
.field { display: grid; gap: 0.4rem; }
.field-row { display: grid; gap: var(--space-3); }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label, .field legend { font-weight: 700; color: var(--navy); }
.field legend { margin-bottom: 0.5rem; }
.req { color: var(--error); }
.optional { font-weight: 400; color: var(--text-muted); }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 1rem;
  background: var(--paper);
  border: 1.5px solid #8a93a8;
  border-radius: var(--radius-s);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 6rem; line-height: 1.5; }
.input-ltr { text-align: right; }
.field input:hover, .field textarea:hover { border-color: var(--navy); }
.field input:focus-visible, .field textarea:focus-visible {
  outline: none;
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(52, 82, 158, 0.28);
}
.field [aria-invalid="true"] { border-color: var(--error); background: #fdf4f4; }
.field__error { font-size: var(--fs-small); font-weight: 600; color: var(--error); }
.field__error::before { content: "⚠ "; }
.field__hint { font-size: var(--fs-small); color: var(--text-muted); }

.choices { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0.5rem 1.1rem;
  border: 1.5px solid #8a93a8;
  border-radius: 999px;
  background: var(--paper);
  font-weight: 600;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.choice:hover span { border-color: var(--navy); }
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }

.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.form__submit { width: 100%; }
.spinner {
  display: none;
  width: 1.15em; height: 1.15em;
  border: 2.5px solid rgba(23, 37, 74, 0.3);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form.is-loading .spinner { display: inline-block; }
.form.is-loading .form__submit { cursor: progress; opacity: 0.85; transform: none; }
.form__privacy { font-size: var(--fs-small); color: var(--text-muted); text-align: center; }

.form__status:empty { display: none; }
.form__status {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-s);
  border-inline-start: 5px solid var(--blue);
  background: var(--sky-tint);
  font-weight: 600;
  color: var(--navy);
}
.form__status a { font-weight: 700; }
.form__status.is-error { border-color: var(--error); background: #fdf1f1; color: #7c1c21; }
.form__status.is-success { border-color: var(--success); background: #e8f5ee; color: #14513a; }
.form__status .btn { margin-top: 0.75rem; }

/* 13. Footer --------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: #cdd5e6; font-size: 1rem; }
.site-footer__inner {
  display: grid;
  gap: var(--space-5) var(--space-4);
  padding-block: var(--space-6) var(--space-5);
}
@media (min-width: 640px) { .site-footer__inner { grid-template-columns: repeat(3, 1fr); } .site-footer__brand { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .site-footer__inner { grid-template-columns: 1.7fr 1fr 1.2fr 1fr; } .site-footer__brand { grid-column: auto; } }
.site-footer__name { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--white); line-height: 1.2; }
.site-footer__sub { font-size: var(--fs-small); color: #9fc9e3; }
.site-footer__vision { margin-top: var(--space-3); max-width: 30em; line-height: 1.65; }
.site-footer__vision strong { display: block; margin-bottom: 0.25rem; color: var(--honey); font-size: 1.1rem; }
.site-footer__heading { margin-bottom: var(--space-2); font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--white); letter-spacing: 0; }
.site-footer__col ul { display: grid; gap: 0.15rem; }
.site-footer__col a { display: inline-block; padding-block: 0.35rem; text-decoration: none; unicode-bidi: isolate; }
.site-footer__col a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--honey); text-underline-offset: 5px; }
.site-footer__col li:not(:has(a)) { padding-block: 0.35rem; }
.site-footer__pending { color: #9aa5bd; }
.site-footer :focus-visible { outline-color: var(--honey); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem var(--space-3);
  padding-block: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: var(--fs-small);
  color: #aab4ca;
}

/* 14. אנימציות כניסה בגלילה ------------------------------------------------ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (min-width: 900px) {
  .js .audience--family[data-reveal].is-visible { transform: translateY(-1.25rem); }
  .services__grid > :nth-child(3n + 2), .audiences__grid > :nth-child(2) { --reveal-delay: 0.1s; }
  .services__grid > :nth-child(3n), .audiences__grid > :nth-child(3) { --reveal-delay: 0.2s; }
}

/* 15. העדפות משתמש והדפסה -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .side-lines path { stroke-dashoffset: 0; }
  .js .steps[data-reveal]::before, .js .steps[data-reveal]::after { transform: none !important; }
  .btn:hover, .service:hover { transform: none; }
}
@media (forced-colors: active) {
  .btn, .choice span, .accordion__icon { border: 2px solid ButtonText; }
  .choice input:checked + span { background: Highlight; color: HighlightText; }
}
@media print {
  .site-header, .nav-toggle, .hero__actions, .contact__card, .side-lines { display: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .js .accordion__panel { display: block; visibility: visible; }
  body { background: #fff; }
}
