/* ===== עיצוב: אלעד נבון – גישור =====
   כחול + צהוב = ירוק: שני צדדים, והאזור המשותף ביניהם. */

:root {
  --paper: #F3F5F4;
  --ink: #1F2A30;
  --muted: #56656B;
  --rule: #D3DBD8;
  --side-a: #3D6E8C;   /* צד אחד */
  --side-b: #C49A3C;   /* הצד השני */
  --common: #5F8A55;   /* ההסכמה */
  --white: #FFFFFF;

  --serif: "Noto Serif Hebrew", "David Libre", serif;
  --sans: "IBM Plex Sans Hebrew", "Arial Hebrew", Arial, sans-serif;

  --measure: 38rem;
  --wide: 70rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--side-a); text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--side-b);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; inset-inline-start: 1rem; top: -3rem;
  background: var(--ink); color: var(--white); padding: .5rem 1rem;
}
.skip:focus { top: 1rem; }

.wrap { max-width: var(--wide); margin-inline: auto; padding-inline: 1.5rem; }

/* ----- כותרת עליונה ----- */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding-block: 1.1rem;
}
.brand {
  display: flex; align-items: center; gap: .65rem;
  color: var(--ink); text-decoration: none;
  font-family: var(--serif); font-weight: 700; font-size: 1.25rem;
}
.brand svg { width: 2.1rem; height: auto; }
.brand small {
  display: block; font-family: var(--sans); font-weight: 400;
  font-size: .85rem; color: var(--muted); line-height: 1.2;
}
.site-nav ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 1rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] {
  text-decoration: underline; text-decoration-color: var(--side-b);
  text-decoration-thickness: 2px;
}

/* ----- פתיח ----- */
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr 1fr;
  align-items: center; gap: 3rem;
  padding-block: 5rem 4.5rem;
}
.hero h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.15; margin: 0 0 1.5rem;
  letter-spacing: -0.01em;
}
.hero p { font-size: 1.2rem; color: var(--muted); max-width: 32rem; margin: 0 0 2rem; }
.hero .credential {
  color: var(--ink); font-size: 1rem;
  border-inline-start: 3px solid var(--common);
  padding-inline-start: .9rem; margin-bottom: 2.25rem;
}

.btn {
  display: inline-block; padding: .8rem 1.6rem;
  background: var(--ink); color: var(--white);
  text-decoration: none; font-weight: 500; border-radius: 999px;
}
.btn:hover { background: var(--common); color: var(--white); }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); margin-inline-start: .5rem; }
.btn-quiet:hover { background: var(--ink); color: var(--white); }

/* שני העיגולים – האלמנט הבולט היחיד באתר */
.venn { width: 100%; max-width: 30rem; justify-self: center; overflow: visible; }
.venn .a, .venn .b { fill: none; stroke-width: 3; }
.venn .a { stroke: var(--side-a); }
.venn .b { stroke: var(--side-b); }
.venn .overlap { fill: var(--common); }
.venn text { font-family: var(--sans); font-size: 15px; fill: var(--muted); }
.venn .overlap-label { fill: var(--white); font-weight: 600; font-size: 16px; }

@media (prefers-reduced-motion: no-preference) {
  .venn .g-a { animation: from-right 1.4s cubic-bezier(.2,.7,.2,1) both; }
  .venn .g-b { animation: from-left 1.4s cubic-bezier(.2,.7,.2,1) both; }
  .venn .overlap, .venn .overlap-label { animation: appear .6s ease 1.25s both; }
  @keyframes from-right { from { transform: translateX(70px); } }
  @keyframes from-left  { from { transform: translateX(-70px); } }
  @keyframes appear { from { opacity: 0; } }
}

/* ----- אזורים ----- */
.section { padding-block: 4.5rem; border-top: 1px solid var(--rule); }
.section h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.3rem); line-height: 1.25;
  margin: 0 0 1.25rem;
}
.section .lead { max-width: var(--measure); color: var(--muted); font-size: 1.15rem; margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: start; }
.split .prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.1rem; }

/* תהליך – רצף אמיתי, ולכן ממוספר */
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.steps li { counter-increment: step; border-top: 3px solid var(--rule); padding-top: 1.1rem; }
.steps li:last-child { border-top-color: var(--common); }
.steps li::before {
  content: counter(step); display: block;
  font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--side-a);
  margin-bottom: .35rem;
}
.steps li:last-child::before { color: var(--common); }
.steps h3 { font-size: 1.1rem; margin: 0 0 .4rem; }
.steps p { margin: 0; color: var(--muted); font-size: 1rem; }

/* תחומים */
.areas { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 3rem; }
.areas li { break-inside: avoid; padding-block: .9rem; border-bottom: 1px solid var(--rule); }
.areas strong { display: block; font-weight: 600; }
.areas span { color: var(--muted); font-size: 1rem; }

/* רשימת מאמרים */
.article-list { list-style: none; margin: 2rem 0 0; padding: 0; max-width: 48rem; }
.article-list li { border-bottom: 1px solid var(--rule); }
.article-list a { display: block; padding-block: 1.4rem; color: var(--ink); text-decoration: none; }
.article-list h3 { font-family: var(--serif); font-size: 1.35rem; margin: 0 0 .35rem; line-height: 1.35; }
.article-list a:hover h3 { color: var(--side-a); text-decoration: underline; text-decoration-color: var(--side-b); }
.article-list p { margin: 0; color: var(--muted); }
.article-list time { display: block; font-size: .9rem; color: var(--muted); margin-top: .4rem; }
.more { display: inline-block; margin-top: 1.5rem; font-weight: 500; }

/* יצירת קשר */
.contact-links { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.contact-links a {
  display: inline-block; padding: .75rem 1.4rem; border-radius: 999px;
  background: var(--white); box-shadow: inset 0 0 0 1px var(--rule);
  color: var(--ink); text-decoration: none; font-weight: 500;
}
.contact-links a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.contact-links a[href^="tel"] { background: var(--ink); color: var(--white); box-shadow: none; }

/* ----- עמוד מאמר ----- */
.page-head { padding-block: 4rem 2rem; }
.page-head h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.2;
  margin: 0 0 1rem; max-width: 46rem;
}
.page-head p { color: var(--muted); font-size: 1.15rem; margin: 0; max-width: var(--measure); }
.crumbs { font-size: .95rem; margin-bottom: 1.5rem; }

.article-body {
  font-family: var(--serif); font-size: 1.2rem; line-height: 1.85;
  max-width: var(--measure); padding-bottom: 4rem;
}
.article-body h2 { font-size: 1.55rem; line-height: 1.35; margin: 2.5rem 0 .75rem; }
.article-body p, .article-body ul { margin: 0 0 1.2rem; }
.article-body li { margin-bottom: .4rem; }
.article-meta { font-family: var(--sans); font-size: .95rem; color: var(--muted); margin-top: 1rem; }
.draft-note {
  font-family: var(--sans); font-size: .95rem;
  background: #FBF4E2; border-inline-start: 3px solid var(--side-b);
  padding: .75rem 1rem; margin-bottom: 2rem;
}
.article-end {
  font-family: var(--sans); font-size: 1.05rem;
  border-top: 1px solid var(--rule); padding-top: 1.5rem; margin-top: 2.5rem;
}

/* ----- כותרת תחתונה ----- */
.site-footer { border-top: 1px solid var(--rule); padding-block: 2rem; font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer p { margin: 0; }

/* ----- מובייל ----- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 3rem; gap: 2rem; }
  .venn { max-width: 22rem; order: -1; }
  .split { grid-template-columns: 1fr; gap: 1rem; }
  .steps { grid-template-columns: 1fr 1fr; }
  .areas { columns: 1; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .site-nav ul { gap: 1rem; }
  .btn-quiet { margin-inline-start: 0; margin-top: .75rem; }
}
