/* ===========================================================
   אמית באר טוביה — מערכת עיצוב
   מקיף ממלכתי שש-שנתי · דרכנו – דרך ארץ!
   =========================================================== */

:root {
  /* צבעים */
  --green-950: #142442;
  --ink: #1b2333;
  --ink-soft: #3c475c;
  --muted: #67718a;
  --green-deep: #1c3157;
  --green: #24427c;
  --green-mid: #33569c;
  --green-soft: #e6ecf6;
  --green-line: #cdd9ea;
  --amber: #ee8722;
  --amber-deep: #c96a10;
  --amber-soft: #fdf0e0;
  --cream: #f7f5ee;
  --paper: #fffdf8;
  --white: #ffffff;

  /* טיפוגרפיה */
  --font-head: "Rubik", "Heebo", "Segoe UI", system-ui, sans-serif;
  --font-body: "Heebo", "Rubik", "Segoe UI", system-ui, sans-serif;

  /* מבנה */
  --container: 1180px;
  --radius-lg: 26px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(20, 36, 66, 0.06), 0 4px 14px rgba(20, 36, 66, 0.06);
  --shadow-md: 0 2px 6px rgba(20, 36, 66, 0.07), 0 14px 34px rgba(20, 36, 66, 0.1);
  --shadow-lg: 0 6px 18px rgba(20, 36, 66, 0.12), 0 30px 60px rgba(20, 36, 66, 0.16);
  --header-h: 76px;

  color-scheme: light;
}

/* ---------- בסיס ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  direction: rtl;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; display: block; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-mid); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  text-wrap: balance;
}

p { text-wrap: pretty; }

ul { list-style: none; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--amber); color: var(--green-deep); }

.skip-link {
  position: fixed;
  top: -80px;
  right: 16px;
  z-index: 300;
  background: var(--green-deep);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

/* פס התקדמות גלילה */
.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 210;
  background: linear-gradient(-90deg, var(--amber), var(--green-mid));
  transform-origin: right;
  transform: scaleX(0);
  pointer-events: none;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* ---------- כותרת עליונה ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 120;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}

.site-header.scrolled,
.site-header.solid {
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(14, 61, 44, 0.08), 0 10px 30px rgba(14, 61, 44, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-inline-end: auto;
}

.brand svg { width: 46px; height: 46px; flex: 0 0 auto; }

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name strong {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--green-deep);
  transition: color 0.35s ease;
}

.brand-name span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.35s ease;
}

/* על רקע כהה (עמוד הבית לפני גלילה) */
.site-header.on-dark:not(.scrolled) .brand-name strong { color: #fff; }
.site-header.on-dark:not(.scrolled) .brand-name span { color: rgba(255, 255, 255, 0.75); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.99rem;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.site-header.on-dark:not(.scrolled) .main-nav a { color: rgba(255, 255, 255, 0.88); }

.main-nav a:hover { background: rgba(36, 66, 124, 0.1); color: var(--green-deep); }
.site-header.on-dark:not(.scrolled) .main-nav a:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

.main-nav a[aria-current="page"] {
  background: var(--green-deep);
  color: #fff;
}
.site-header.on-dark:not(.scrolled) .main-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.main-nav a.cta {
  margin-inline-start: 8px;
  background: var(--amber);
  color: var(--green-deep);
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(238, 135, 34, 0.3);
}
.main-nav a.cta:hover { background: #f79a3e; color: var(--green-deep); }
.site-header.on-dark:not(.scrolled) .main-nav a.cta { background: var(--amber); color: var(--green-deep); }

/* המבורגר */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 12px;
  background: var(--green-deep);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  position: relative;
  overflow: hidden;
  background: var(--amber);
  color: var(--green-deep);
  box-shadow: 0 10px 24px rgba(238, 135, 34, 0.35);
}
.btn-primary:hover { background: #f79a3e; color: var(--green-deep); box-shadow: 0 14px 30px rgba(238, 135, 34, 0.45); }
.btn-primary::after {
  content: "";
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 36%;
  inset-inline-start: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-18deg);
  transition: inset-inline-start 0.55s ease;
  pointer-events: none;
}
.btn-primary:hover::after { inset-inline-start: 125%; }

.btn-dark {
  background: var(--green-deep);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-dark:hover { background: var(--green); color: #fff; box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

.btn-outline {
  background: transparent;
  border-color: var(--green-line);
  color: var(--green-deep);
}
.btn-outline:hover { border-color: var(--green); background: var(--green-soft); color: var(--green-deep); }

.btn-sm { padding: 9px 18px; font-size: 0.92rem; }

/* ---------- גיבור (Hero) ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 88svh, 800px);
  display: flex;
  flex-direction: column;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-media video,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1000px 560px at 84% 44%, rgba(10, 22, 44, 0.75), transparent 72%),
    linear-gradient(12deg, rgba(13, 27, 53, 0.92) 0%, rgba(13, 27, 53, 0.6) 45%, rgba(13, 27, 53, 0.32) 100%),
    linear-gradient(180deg, rgba(13, 27, 53, 0.5) 0%, rgba(13, 27, 53, 0.08) 35%);
}

.hero-inner {
  position: relative;
  margin-block: auto;
  padding-block: 140px 48px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 22, 44, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 26px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}
.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(238, 135, 34, 0.3);
}

.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.4rem);
  font-weight: 800;
  color: #fff;
  max-width: 17ch;
  margin-bottom: 18px;
  text-shadow: 0 2px 10px rgba(4, 18, 12, 0.55), 0 10px 40px rgba(4, 18, 12, 0.4);
}

.hero h1 .accent {
  color: var(--amber);
  position: relative;
  white-space: nowrap;
}

.hero-sub {
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.96);
  max-width: 52ch;
  margin-bottom: 36px;
  text-shadow: 0 1px 8px rgba(4, 18, 12, 0.55);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* פס נתונים משולב בתחתית הגיבור */
.hero-strip {
  position: relative;
  margin-top: auto;
  background: rgba(13, 27, 53, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.strip-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 12px;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.12);
}
.strip-item:first-child { border-inline-start: none; }
.strip-item b {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
}
.strip-item b .unit { color: #fff; font-size: 0.7em; }
.strip-item span {
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}

/* גיבור פנימי (עמודים משניים) */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(340px, 48svh, 470px);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
/* זום כניסה עדין וחד־פעמי — מתייצב ולא חוזר */
@media (prefers-reduced-motion: no-preference) {
  .page-hero img { animation: kenburns 14s ease-out forwards; }
}
@keyframes kenburns {
  from { transform: scale(1.07); }
  to { transform: scale(1); }
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(10deg, rgba(13, 27, 53, 0.9) 0%, rgba(13, 27, 53, 0.45) 55%, rgba(13, 27, 53, 0.2) 100%),
    linear-gradient(180deg, rgba(13, 27, 53, 0.5) 0%, rgba(13, 27, 53, 0) 38%);
}
.page-hero.plain {
  background:
    radial-gradient(800px 380px at 88% -10%, rgba(238, 135, 34, 0.2), transparent 60%),
    linear-gradient(155deg, var(--green-deep), #12264a);
  min-height: clamp(300px, 40svh, 400px);
}
.page-hero .container { padding-block: 120px 46px; }

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
}
.breadcrumbs a { color: rgba(255, 255, 255, 0.9); }
.breadcrumbs a:hover { color: var(--amber); }
.breadcrumbs .sep { opacity: 0.6; }

.page-hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(4, 18, 12, 0.5);
}
.page-hero p {
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  font-size: 1.1rem;
  text-shadow: 0 1px 8px rgba(4, 18, 12, 0.5);
}

/* ---------- מקטעים ---------- */
.section { padding-block: clamp(64px, 9vw, 110px); }
.section.tight { padding-block: clamp(48px, 6vw, 72px); }
.section.on-paper { background: var(--paper); }
.section.on-green {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(238, 135, 34, 0.16), transparent 60%),
    linear-gradient(160deg, var(--green-deep), #12264a);
  color: #e8eef8;
}
.section.on-green h2, .section.on-green h3 { color: #fff; }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head.center { margin-inline: auto; text-align: center; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--amber-deep);
  margin-bottom: 12px;
}
.kicker::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 3px;
  background: var(--amber);
  transition: width 0.7s ease 0.15s;
}
.section-head.center .kicker::after {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 3px;
  background: var(--amber);
  transition: width 0.7s ease 0.15s;
}
.reveal:not(.in) .kicker::before,
.reveal:not(.in) .kicker::after { width: 0; }
.section.on-green .kicker { color: var(--amber); }

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
}
.section.on-green .section-head p { color: rgba(230, 236, 246, 0.8); }

/* ---------- כרטיסים ---------- */
.grid {
  display: grid;
  gap: 26px;
}
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.card-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.card:hover .card-media img { transform: scale(1.06); }

.card-body { padding: 24px 26px 28px; }
.card-body h3 { font-size: 1.22rem; margin-bottom: 8px; }
.card-body p { color: var(--muted); font-size: 0.99rem; }

.card-tag {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  background: rgba(13, 27, 53, 0.72);
  backdrop-filter: blur(6px);
  color: #fff;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.82rem;
  font-weight: 500;
}

/* ---------- ערכים — טורים בסגנון מערכת עיתון ---------- */
.values-grid { grid-template-columns: repeat(4, 1fr); gap: 40px 34px; }

.value-card {
  position: relative;
  border-top: 2px solid var(--green-line);
  padding: 24px 0 0;
}
.value-card::before {
  content: "";
  position: absolute;
  top: -2px;
  inset-inline-start: 0;
  width: 46px;
  height: 2px;
  background: var(--amber);
  transition: width 0.4s ease;
}
.value-card:hover::before { width: 100%; }

.value-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--amber-deep);
  margin-bottom: 12px;
}

/* אייקון קטן לשימוש כללי (יצירת קשר, כרטיסים צפים) */
.value-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green);
}
.value-icon svg { width: 24px; height: 24px; }

.value-card h3 { font-size: 1.16rem; margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: 0.97rem; }

/* ---------- שכבת תוכן + תמונה ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.split.reverse { grid-template-columns: 1fr 1.05fr; }

.split-media { position: relative; }
.split-media > img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}
.split-media .float-card {
  position: absolute;
  bottom: -24px;
  inset-inline-end: -18px;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 280px;
}
.float-card .value-icon { width: 46px; height: 46px; margin: 0; border-radius: 14px; flex: 0 0 auto; }
.float-card b { display: block; font-family: var(--font-head); color: var(--green-deep); line-height: 1.3; }
.float-card span { font-size: 0.85rem; color: var(--muted); }

.split-content h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; margin-bottom: 16px; }
.split-content > p { color: var(--ink-soft); margin-bottom: 14px; }

.check-list { margin: 20px 0 26px; display: grid; gap: 12px; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2324427c' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- ציטוט אישי — סגנון מגזיני ---------- */
.quote-editorial {
  background: var(--paper);
  border-block: 1px solid var(--green-line);
}
.qe {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: clamp(34px, 6vw, 70px);
  align-items: center;
  margin: 0;
}
.qe-media { position: relative; }
.qe-media::before {
  content: "";
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  width: 100%;
  height: 100%;
  background: var(--amber-soft);
  border: 1px solid rgba(238, 135, 34, 0.35);
  border-radius: 4px;
}
.qe-media img {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 3.4;
  object-fit: cover;
  border-radius: 4px;
}
.qe-mark {
  display: block;
  width: 46px;
  height: 34px;
  color: var(--amber);
  margin-bottom: 16px;
}
.qe-body p {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
  max-width: 32ch;
  margin-bottom: 28px;
}
.hl {
  background: linear-gradient(transparent 64%, rgba(238, 135, 34, 0.35) 0);
  padding-inline: 2px;
}
.qe-body footer {
  max-width: 340px;
  padding-top: 16px;
  border-top: 1px solid var(--green-line);
}
.qe-body footer b {
  display: block;
  font-family: var(--font-head);
  color: var(--green-deep);
  font-size: 1.04rem;
}
.qe-body footer span { color: var(--muted); font-size: 0.9rem; }
.qe-more {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.93rem;
}

/* ---------- דבר המנהל (עמוד אודות) ---------- */
.principal-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(28px, 4vw, 52px);
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(26px, 4vw, 52px);
  align-items: start;
}
.principal-photo { position: relative; }
.principal-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  aspect-ratio: 3 / 3.6;
  object-fit: cover;
}
.principal-photo figcaption {
  position: absolute;
  bottom: -16px;
  inset-inline-start: 16px;
  inset-inline-end: 16px;
  background: var(--green-deep);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  text-align: center;
  font-size: 0.92rem;
  box-shadow: var(--shadow-md);
}
.principal-photo figcaption b { display: block; font-family: var(--font-head); font-size: 1.02rem; }
.principal-text p { margin-bottom: 14px; color: var(--ink-soft); }
.principal-text p strong { color: var(--green-deep); }
.signature {
  margin-top: 22px;
  font-family: var(--font-head);
  color: var(--green-deep);
}
.signature b { font-size: 1.1rem; }
.signature span { display: block; font-size: 0.9rem; color: var(--muted); }

/* ---------- אקורדיון ---------- */
.accordion { display: grid; gap: 14px; }
.accordion details {
  background: var(--paper);
  border: 1px solid var(--green-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}
.accordion details[open] { box-shadow: var(--shadow-md); border-color: transparent; }
.accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--green-deep);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "";
  margin-inline-start: auto;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c3157' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.3s ease;
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .acc-body { padding: 0 24px 24px; color: var(--ink-soft); }

/* ---------- מגמות ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.filter-chip {
  border: 1.5px solid var(--green-line);
  background: var(--paper);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 9px 20px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-chip:hover { border-color: var(--green); color: var(--green-deep); }
.filter-chip.active {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #fff;
}

.major-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.major-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.major-card.hidden { display: none; }

.major-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px 0;
}
.major-icon {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 1.4rem;
}
.major-icon svg { width: 25px; height: 25px; }
.major-card:nth-child(3n+2) .major-icon { background: var(--amber-soft); color: var(--amber-deep); }
.major-head h3 { font-size: 1.18rem; line-height: 1.3; }
.major-head .tagline { display: block; font-size: 0.86rem; font-weight: 400; color: var(--amber-deep); margin-top: 2px; }

.major-body { padding: 14px 24px 22px; display: flex; flex-direction: column; flex: 1; }
.major-body > p { color: var(--muted); font-size: 0.97rem; margin-bottom: 14px; }

.major-details { margin-top: auto; }
.major-details summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.major-details summary::-webkit-details-marker { display: none; }
.major-details summary::after { content: "+"; font-size: 1.1rem; transition: transform 0.25s; }
.major-details[open] summary::after { transform: rotate(45deg); }
.major-details .md-inner { padding-top: 14px; display: grid; gap: 12px; }

.md-row { font-size: 0.94rem; color: var(--ink-soft); }
.md-row b {
  display: block;
  font-family: var(--font-head);
  color: var(--green-deep);
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.major-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 24px 22px;
}
.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--green-deep);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 7px 16px;
  transition: background 0.2s;
}
.pdf-link:hover { background: var(--green-line); color: var(--green-deep); }
.pdf-link svg { width: 15px; height: 15px; }

.units-badge {
  font-size: 0.84rem;
  font-weight: 600;
  font-family: var(--font-head);
  color: var(--amber-deep);
  background: var(--amber-soft);
  border-radius: 999px;
  padding: 6px 14px;
}

/* ---------- גלריה ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-grid.trio { grid-template-columns: repeat(3, 1fr); }
.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  background: var(--green-soft);
  border: none;
  padding: 0;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.07); filter: saturate(1.12); }
.gallery-item::before {
  content: attr(data-caption);
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 1;
  padding: 34px 14px 12px;
  background: linear-gradient(0deg, rgba(13, 27, 53, 0.8), transparent);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: start;
  opacity: 0;
  translate: 0 10px;
  transition: opacity 0.35s ease, translate 0.35s ease;
  pointer-events: none;
}
.gallery-item:hover::before,
.gallery-item:focus-visible::before { opacity: 1; translate: 0 0; }
.gallery-item.hidden { display: none; }

/* לייטבוקס */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(9, 18, 36, 0.94);
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 84vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.lightbox figcaption {
  position: absolute;
  bottom: 26px;
  inset-inline: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}
.lb-btn {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.25); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 24px; inset-inline-end: 24px; }
.lb-prev { inset-inline-start: 20px; top: 50%; translate: 0 -50%; }
.lb-next { inset-inline-end: 20px; top: 50%; translate: 0 -50%; }

/* ---------- טבלאות ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: var(--paper);
}
table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  font-size: 0.99rem;
}
table.data th {
  background: var(--green-deep);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  text-align: start;
  padding: 14px 20px;
  white-space: nowrap;
}
table.data td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--green-line);
  color: var(--ink-soft);
}
table.data tr:last-child td { border-bottom: none; }
table.data tr:nth-child(even) td { background: rgba(230, 236, 246, 0.35); }
table.data td a { font-weight: 500; word-break: break-all; }

/* ---------- קבצים להורדה ---------- */
.download-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--paper);
  border: 1px solid var(--green-line);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.download-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.download-card .dl-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--amber-soft);
  color: var(--amber-deep);
}
.download-card .dl-icon svg { width: 26px; height: 26px; }
.download-card b {
  display: block;
  font-family: var(--font-head);
  color: var(--ink);
  font-size: 1.03rem;
  line-height: 1.35;
}
.download-card span { font-size: 0.88rem; color: var(--muted); }
.download-card .dl-arrow {
  margin-inline-start: auto;
  color: var(--green);
  flex: 0 0 auto;
}
.download-card .dl-arrow svg { width: 20px; height: 20px; }

/* ---------- ציר זמן / מסלול שש-שנתי ---------- */
.timeline {
  position: relative;
  display: grid;
  gap: 22px;
  padding-inline-start: 30px;
}
.timeline::before {
  content: "";
  position: absolute;
  inset-block: 8px;
  inset-inline-start: 8px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--amber), var(--green));
}
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  inset-inline-start: -30px;
  top: 6px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--paper);
  border: 4px solid var(--amber);
  box-shadow: 0 0 0 4px rgba(238, 135, 34, 0.18);
}
.timeline-item b { font-family: var(--font-head); color: var(--green-deep); font-size: 1.06rem; }
.timeline-item p { color: var(--muted); font-size: 0.97rem; }

/* ---------- הזמנה ליצירת קשר — פס רוחב מלא עם תמונה ---------- */
.cta-invite {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  text-align: center;
  padding-block: clamp(70px, 10vw, 120px);
  margin-top: clamp(64px, 9vw, 110px);
}
.ci-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.cta-invite::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(15deg, rgba(8, 33, 23, 0.95), rgba(13, 27, 53, 0.85) 55%, rgba(14, 61, 44, 0.78));
}
.cta-invite .container { max-width: 780px; }
.ci-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--amber);
  margin-bottom: 16px;
}
.ci-kicker::before,
.ci-kicker::after {
  content: "";
  width: 32px;
  height: 1px;
  background: rgba(238, 135, 34, 0.55);
}
.cta-invite h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.8vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.cta-invite p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 54ch;
  margin-inline: auto;
  margin-bottom: 32px;
}
.ci-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}
.ci-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  color: #fff;
  padding: 6px 2px;
  border-bottom: 2px solid var(--amber);
  transition: color 0.2s ease;
}
.ci-phone:hover { color: var(--amber); }
.ci-phone svg { width: 22px; height: 22px; color: var(--amber); }

/* ---------- מצטיינים ---------- */
.honor-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--green-line);
  border-radius: 6px;
  padding: 30px 28px 28px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.honor-card::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline-start: 28px;
  width: 54px;
  height: 3px;
  background: var(--amber);
}
.honor-card:hover { border-color: rgba(238, 135, 34, 0.6); box-shadow: var(--shadow-sm); }
.honor-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--amber-deep);
  border: 1px solid rgba(238, 135, 34, 0.45);
  border-radius: 999px;
  padding: 3px 13px;
  margin-bottom: 16px;
}
.honor-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.honor-card p { color: var(--muted); font-size: 0.98rem; }

/* ---------- יצירת קשר ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: start;
}

.contact-info-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  display: grid;
  gap: 8px;
}
.contact-line {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-block: 14px;
  border-bottom: 1px solid var(--green-line);
}
.contact-line:last-child { border-bottom: none; }
.contact-line .value-icon { width: 46px; height: 46px; border-radius: 14px; margin: 0; flex: 0 0 auto; }
.contact-line .value-icon svg { width: 22px; height: 22px; }
.contact-line b { display: block; font-family: var(--font-head); color: var(--ink); }
.contact-line span, .contact-line a { color: var(--muted); font-size: 0.97rem; }
.contact-line a:hover { color: var(--green); }

.map-frame {
  border: 0;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ---------- כותרת תחתונה ---------- */
.site-footer {
  background: linear-gradient(170deg, #152c55, #0d1c39);
  color: rgba(230, 236, 246, 0.85);
  padding: clamp(50px, 7vw, 80px) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 46px;
}
.footer-brand .brand-name strong { color: #fff; }
.footer-brand .brand-name span { color: rgba(230, 236, 246, 0.6); }
.footer-brand p {
  margin-top: 16px;
  font-size: 0.95rem;
  color: rgba(230, 236, 246, 0.7);
  max-width: 34ch;
}
.footer-col h4 {
  color: #fff;
  font-size: 1.02rem;
  margin-bottom: 16px;
}
.footer-col ul { display: grid; gap: 9px; }
.footer-col a {
  color: rgba(230, 236, 246, 0.75);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid rgba(230, 236, 246, 0.14);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: rgba(230, 236, 246, 0.55);
}

/* ---------- חזרה למעלה ---------- */
.to-top {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 24px;
  z-index: 110;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--green-deep);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  translate: 0 14px;
  pointer-events: none;
  transition: opacity 0.3s ease, translate 0.3s ease, background 0.2s ease;
}
.to-top.show { opacity: 1; translate: 0 0; pointer-events: auto; }
.to-top:hover { background: var(--green); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- אנימציות גילוי ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- רספונסיביות ---------- */
@media (max-width: 1080px) {
  .grid.cols-4, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  .main-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    inset-inline-end: 0;
    width: min(360px, 88vw);
    background: linear-gradient(170deg, var(--green-deep), #14264a);
    padding: calc(var(--header-h) + 22px) 22px 32px;
    transform: translateX(-110%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 118;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav:focus { outline: none; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 1.08rem;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid transparent;
  }
  .main-nav a:hover,
  .main-nav a:focus-visible { background: rgba(255, 255, 255, 0.1) !important; color: #fff !important; }
  .main-nav a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff !important;
  }
  /* קו מפריד עדין לפני כפתור "צרו קשר" */
  .main-nav li:last-child {
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  /* המבורגר / סגירה — תמיד מעל המגירה וברור על כל רקע */
  .nav-toggle {
    display: flex;
    z-index: 130;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .site-header:not(.on-dark):not(.scrolled) .nav-toggle,
  .site-header.scrolled .nav-toggle { background: var(--green-deep); border-color: transparent; }
  body.nav-open .nav-toggle { background: rgba(255, 255, 255, 0.14) !important; border-color: rgba(255, 255, 255, 0.28) !important; }

  /* הלוגו נשאר גלוי מעל המגירה ומשמש לה ככותרת */
  .site-header .brand { position: relative; z-index: 125; }
  body.nav-open .site-header { background: transparent !important; box-shadow: none !important; }
  body.nav-open .brand-name strong { color: #fff !important; }
  body.nav-open .brand-name span { color: rgba(255, 255, 255, 0.72) !important; }

  .nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 115;
    background: rgba(9, 18, 36, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .nav-overlay.show { opacity: 1; pointer-events: auto; }
  /* פס ההתקדמות לא חוצה את התפריט הפתוח */
  body.nav-open .scroll-progress { opacity: 0; }

  .split, .split.reverse { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .split-media .float-card { inset-inline-end: 10px; }
  .principal-card { grid-template-columns: 1fr; }
  .principal-photo { max-width: 340px; margin-inline: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-inner { padding-block: 130px 40px; }
  .qe { grid-template-columns: 1fr; }
  .qe-media { max-width: 250px; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-item { justify-content: flex-start; padding: 16px 14px; }
  .strip-item:nth-child(odd) { border-inline-start: none; }
  .strip-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4, .values-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-actions .btn { width: 100%; }
  .strip-item { gap: 10px; padding: 14px 12px; }
  .strip-item span { font-size: 0.8rem; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .brand-name span { display: none; }
  .lb-prev { inset-inline-start: 8px; }
  .lb-next { inset-inline-end: 8px; }
}

/* ---------- וידאו משובץ ---------- */
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--green-deep);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* תמונת תוכן שנוספה מהפאנל */
.content-img {
  margin: 28px auto;
  max-width: 780px;
}
.content-img img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* הצהרה מודגשת */
.statement {
  border-inline-start: 5px solid var(--amber);
  background: var(--amber-soft);
  border-radius: var(--radius-sm);
  padding: 18px 24px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--green-deep);
  font-size: 1.08rem;
}

/* בטלפון: מגירה ברוחב מלא — שם בית הספר לא נחתך */
@media (max-width: 640px) {
  .main-nav {
    /* inset במקום width — מונע גלישה של רוחב פס הגלילה */
    inset-inline: 0;
    width: auto;
    max-width: none;
    padding-inline: 20px;
  }
  /* תת־הכותרת של המותג חוזרת כשהמגירה פתוחה — ככותרת המגירה */
  body.nav-open .brand-name span { display: block; font-size: 0.74rem; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 920px) {
  .main-nav a.cta {
    background: var(--amber) !important;
    color: var(--green-deep) !important;
    text-align: center;
    margin-inline-start: 0;
    margin-top: 10px;
  }
}

/* ---------- הדפסה ---------- */
@media print {
  .site-header, .site-footer, .to-top, .hero-scroll, .nav-toggle { display: none !important; }
  body { background: #fff; }
}
