/* ==========================================================================
   מפלגת יעו״ל — יורדים עולים | גיליון סגנון ראשי
   אתר סטטי, ללא תלות בשרת. RTL.
   ========================================================================== */

:root {
  /* צבעי מותג */
  --navy: #0d2b45;
  --navy-soft: #163c5e;
  --blue: #1f6fd0;
  --blue-dark: #1559ab;
  --blue-tint: #eaf2fc;
  --gold: #e0a63c;
  --gold-tint: #fdf4e3;
  --green: #2e7d5b;
  --green-tint: #e9f5ef;

  /* ניטרליים */
  --ink: #16202b;
  --ink-soft: #4a5866;
  --line: #dfe5ec;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;

  /* מערכת */
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(13, 43, 69, .06), 0 2px 8px rgba(13, 43, 69, .05);
  --shadow-md: 0 4px 12px rgba(13, 43, 69, .08), 0 12px 32px rgba(13, 43, 69, .07);
  --wrap: 1120px;
  --nav-h: 70px;

  --font: "Assistant", "Heebo", "Segoe UI", "Arial Hebrew", system-ui, -apple-system, sans-serif;
}

/* --------------------------------------------------------------- בסיס */

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  margin: 0 0 .5em;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }

img, svg { max-width: 100%; height: auto; }

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

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

.lead {
  font-size: 1.14rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top .18s;
}
.skip-link:focus { top: 0; color: #fff; }

/* --------------------------------------------------------------- כפתורים */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, background .18s, color .18s, border-color .18s, box-shadow .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--gold); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #efb64c; color: var(--navy); }

.btn-solid { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-solid:hover { background: var(--blue-dark); color: #fff; }

.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

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

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.center .btn-row { justify-content: center; }

/* --------------------------------------------------------------- ניווט */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(100% - 2rem, var(--wrap));
}

.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--navy);
  margin-inline-end: auto;
}
.brand img { width: 42px; height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.brand-tag { font-size: .76rem; color: var(--ink-soft); font-weight: 600; letter-spacing: .02em; }

.nav-links { display: flex; align-items: center; gap: .35rem; }

.nav-links a {
  padding: .5rem .85rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: .98rem;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--blue-tint); color: var(--navy); }
.nav-links a.active { color: var(--blue-dark); background: var(--blue-tint); }
.nav-links .btn { margin-inline-start: .4rem; padding: .55rem 1.2rem; font-size: .95rem; }
.nav-links .btn:hover { background: #efb64c; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--navy);
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
    padding: 1rem 1.25rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-130%);
    transition: transform .25s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: .8rem .9rem; font-size: 1.05rem; }
  .nav-links .btn { margin: .5rem 0 0; justify-content: center; }
}

/* --------------------------------------------------------------- Hero */

.hero {
  position: relative;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-soft) 45%, #1c5590 100%);
  color: #fff;
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset-block-start: -30%;
  inset-inline-start: -10%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(224, 166, 60, .22), transparent 66%);
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero p { color: rgba(255, 255, 255, .88); }
.hero .lead { font-size: 1.2rem; color: rgba(255, 255, 255, .88); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.1rem;
  padding: .4rem 1rem;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

.hero .btn-row { margin-top: 2rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-stats div { background: rgba(13, 43, 69, .35); padding: 1.4rem 1.5rem; }
.hero-stats b {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.2;
}
.hero-stats span { font-size: .95rem; color: rgba(255, 255, 255, .82); }

/* --------------------------------------------------------------- מקטעים */

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-head { margin-bottom: 2.75rem; }
.section-head .kicker {
  display: block;
  margin-bottom: .5rem;
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--blue);
}
.section-head h2 { margin-bottom: .4em; }

/* --------------------------------------------------------------- כרטיסי עמודים */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}

.pillar {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent, var(--blue));
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pillar .num {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: var(--accent-tint, var(--blue-tint));
  color: var(--accent, var(--blue));
  font-size: 1.25rem;
  font-weight: 800;
}
.pillar h3 { margin-bottom: .5rem; }
.pillar p { color: var(--ink-soft); font-size: 1rem; }
.pillar .more {
  margin-top: auto;
  padding-top: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--accent, var(--blue));
}
.pillar .more::after { content: " ←"; }
.pillar .more:hover { text-decoration: underline; }

.pillar-immigration { --accent: var(--blue);  --accent-tint: var(--blue-tint); }
.pillar-planning    { --accent: var(--green); --accent-tint: var(--green-tint); }
.pillar-seniors     { --accent: #b5822a;      --accent-tint: var(--gold-tint); }

/* --------------------------------------------------------------- ציטוט המייסד */

.quote {
  position: relative;
  padding: clamp(2rem, 5vw, 3rem);
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.quote::before {
  content: "”";
  position: absolute;
  inset-block-start: -.15em;
  inset-inline-start: .35em;
  font-size: 7rem;
  line-height: 1;
  color: var(--gold);
  opacity: .35;
}
.quote blockquote {
  position: relative;
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 600;
  line-height: 1.65;
}
.quote figcaption {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .2);
  font-size: .98rem;
  color: rgba(255, 255, 255, .8);
}
.quote figcaption b { display: block; color: var(--gold); font-size: 1.05rem; }

/* --------------------------------------------------------------- מצע: סעיפים */

.plank {
  scroll-margin-top: calc(var(--nav-h) + 20px);
  margin-bottom: 1.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.plank-head {
  display: flex;
  align-items: baseline;
  gap: .85rem;
  padding: 1.5rem 1.75rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: var(--accent-tint, var(--blue-tint));
}
.plank-head .idx {
  flex: none;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent, var(--blue));
  opacity: .5;
}
.plank-head h3 { margin: 0; }
.plank-body { padding: 1.6rem 1.75rem 1.75rem; }

.problem, .solution { margin-bottom: 1.5rem; }
.solution:last-child { margin-bottom: 0; }

.label {
  display: inline-block;
  margin-bottom: .55rem;
  padding: .18rem .7rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.label-problem { background: #fdeceb; color: #a33228; }
.label-solution { background: var(--green-tint); color: var(--green); }

.slogan {
  margin-bottom: .55rem;
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--navy);
}
/* גרשיים עבריים משני צדי הסלוגן */
.slogan::before, .slogan::after { content: "\05F4"; color: var(--gold); }

/* --------------------------------------------------------------- ניווט מצע פנימי */

.plank-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2.5rem;
  padding: 1.1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.plank-nav a {
  padding: .5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--navy);
  transition: background .15s, border-color .15s, color .15s;
}
.plank-nav a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* --------------------------------------------------------------- ציר זמן */

.timeline { position: relative; padding-inline-start: 1.85rem; }
.timeline::before {
  content: "";
  position: absolute;
  inset-block: .5rem;
  inset-inline-start: 5px;
  width: 2px;
  background: linear-gradient(var(--blue), var(--gold));
}
.timeline li { position: relative; margin-bottom: 2rem; list-style: none; }
.timeline li::before {
  content: "";
  position: absolute;
  inset-inline-start: -1.85rem;
  top: .55rem;
  width: 12px; height: 12px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: #fff;
}
.timeline ul { margin: 0; padding: 0; }
.timeline .year {
  display: block;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--blue);
}
.timeline h3 { margin: .1rem 0 .35rem; font-size: 1.2rem; }
.timeline p { color: var(--ink-soft); margin: 0; }

/* --------------------------------------------------------------- ערכים */

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.values li {
  padding: 1.4rem 1.4rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.values b { display: block; margin-bottom: .3rem; color: var(--navy); font-size: 1.08rem; }
.values span { color: var(--ink-soft); font-size: .98rem; }

/* --------------------------------------------------------------- טופס */

.form-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { margin-bottom: .35rem; font-weight: 700; font-size: .95rem; color: var(--navy); }
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: .85rem; }

.field input,
.field select,
.field textarea {
  padding: .7rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-tint);
}
.field textarea { resize: vertical; min-height: 120px; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .95rem;
  color: var(--ink-soft);
}
.checkbox input { margin-top: .35rem; width: 18px; height: 18px; flex: none; accent-color: var(--blue); }

.form-note {
  margin-top: 1.25rem;
  padding: .9rem 1.1rem;
  background: var(--blue-tint);
  border-radius: var(--radius-sm);
  font-size: .92rem;
  color: var(--navy);
}

/* --------------------------------------------------------------- פריסת שתי עמודות */

.split {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

.anchor { scroll-margin-top: calc(var(--nav-h) + 20px); }

/* --------------------------------------------------------------- פרטי קשר */

.contact-list { padding: 0; margin: 0; list-style: none; }
.contact-list li {
  display: flex;
  gap: .8rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list b { display: block; color: var(--navy); }
.contact-list span, .contact-list a { color: var(--ink-soft); }

/* --------------------------------------------------------------- קריאה לפעולה */

.cta {
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  background: linear-gradient(135deg, var(--navy), #1c5590);
  border-radius: var(--radius);
  color: #fff;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .88); max-width: 58ch; margin-inline: auto; }
.cta .btn-row { justify-content: center; margin-top: 1.75rem; }

/* --------------------------------------------------------------- כותרת תחתונה */

.site-footer {
  padding: 3rem 0 1.75rem;
  background: var(--navy);
  color: rgba(255, 255, 255, .75);
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; } }

.site-footer h4 {
  margin-bottom: .8rem;
  color: #fff;
  font-size: 1rem;
  letter-spacing: .02em;
}
.site-footer ul { padding: 0; margin: 0; list-style: none; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer .brand { color: #fff; margin: 0 0 .9rem; }
.site-footer .brand .brand-tag { color: rgba(255, 255, 255, .65); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  font-size: .88rem;
  color: rgba(255, 255, 255, .6);
}

/* --------------------------------------------------------------- כותרת עמוד פנימי */

.page-head {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3rem);
  background: linear-gradient(150deg, var(--navy), #1c5590);
  color: #fff;
}
.page-head h1 { color: #fff; }
.page-head p { color: rgba(255, 255, 255, .88); max-width: 65ch; }

/* --------------------------------------------------------------- אנימציית כניסה */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------- הדפסה */

@media print {
  .site-nav, .nav-toggle, .cta, .site-footer, .skip-link, .plank-nav { display: none !important; }
  body { font-size: 12pt; }
  .hero, .page-head { background: none !important; color: #000; }
  .hero h1, .hero p, .page-head h1, .page-head p { color: #000; }
  .plank, .pillar { break-inside: avoid; box-shadow: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}
