/* ==========================================================
   דרכי אבות אשקלון - גיליון סגנונות
   תומך ב-RTL (עברית) וב-LTR (אנגלית / צרפתית / רוסית)
   הכתיבה משתמשת ב-logical properties, כך שהכיוון מתהפך אוטומטית
   ========================================================== */

:root {
  --primary: #1e3a5f;
  --primary-light: #2b5284;
  --secondary: #0f766e;        /* היה #0d9488 - ניגודיות 3.7 → 5.5 */
  --secondary-light: #0d9488;
  --accent: #b45309;           /* היה #d97706 - ניגודיות 3.2 → 5.0 */
  --accent-light: #d97706;
  --bg-light: #f8fafc;
  --bg-warm: #fefce8;
  --text-dark: #1e293b;
  --text-muted: #566579;       /* היה #64748b - ניגודיות 4.6 → 5.7 */
  --white: #ffffff;
  --border: #e2e8f0;
  --focus: #1d4ed8;
  --wa: #0e7a3f;               /* ירוק וואטסאפ כהה מעט, לניגודיות מול טקסט לבן */
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 10px 30px rgba(30, 58, 95, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 100%; scroll-padding-top: 7rem; }

body {
  font-family: 'Rubik', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.65;
}

/* מניעת הבהוב בזמן טעינת שפה שאינה עברית */
html.lang-pending body { opacity: 0; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ---------- פוקוס נראה לעין (נגישות מקלדת) ---------- */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #fff;
}
.hero :focus-visible,
footer :focus-visible { outline-color: #fde68a; box-shadow: 0 0 0 2px #0f172a; }

/* ---------- קישור "דלג לתוכן" ---------- */
.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  background: var(--primary);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  z-index: 3000;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }

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

/* ---------- Header & Navigation ---------- */
header {
  background-color: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1.5rem;
  align-items: center;
}
.logo-link { grid-row: 1 / 3; grid-column: 1; }
.nav-wrap { display: contents; }
.nav-tools { grid-row: 1; grid-column: 2; justify-self: end; display: flex; align-items: center; gap: 1rem; }
.nav-wrap nav { grid-row: 2; grid-column: 2; justify-self: end; }

.logo-link { display: flex; align-items: center; flex-shrink: 0; border-radius: 10px; }

.site-logo { height: 96px; width: auto; max-width: none; object-fit: contain; display: block; }


.nav-links {
  display: flex;
  list-style: none;
  gap: 0.2rem;
  align-items: center;
}

.nav-links a {
  white-space: nowrap;
  font-weight: 500;
  color: var(--text-dark);
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
  display: inline-block;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background-color: #eff6ff;
}
.nav-links a.active { font-weight: 700; box-shadow: inset 0 -3px 0 var(--primary); }

.btn-nav-cta {
  background-color: var(--secondary);
  color: var(--white);
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  transition: background 0.2s ease;
  white-space: nowrap;
}
.btn-nav-cta:hover { background-color: #115e59; }

/* בורר שפות */
.lang-switch { display: flex; align-items: center; gap: 0.35rem; }
.lang-switch svg { width: 20px; height: 20px; fill: var(--primary); flex-shrink: 0; }
.lang-switch select {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  background: #fff;
  border: 1.5px solid #94a3b8;
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
}

/* כפתור המבורגר */
.menu-toggle {
  display: none;
  background: #fff;
  border: 1.5px solid #94a3b8;
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  color: var(--primary);
  align-items: center;
  gap: 0.45rem;
}
.menu-toggle svg { width: 22px; height: 22px; stroke: var(--primary); fill: none; stroke-width: 2.4; stroke-linecap: round; }

@media (max-width: 1160px) {
  .nav-container { display: flex; justify-content: space-between; }
  .site-logo { height: 68px; }
  .menu-toggle { display: inline-flex; }
  .nav-tools { flex-direction: column; align-items: stretch; gap: 0.8rem; }
  .nav-wrap nav { justify-self: auto; }
  .nav-wrap {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.4rem;
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    border-top: 1px solid var(--border);
    gap: 0.8rem;
  }
  .nav-wrap.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0.2rem; }
  .nav-links a, .btn-nav-cta { display: block; width: 100%; padding: 0.75rem 0.9rem; text-align: start; }
  .btn-nav-cta { text-align: center; }
  .lang-switch select { flex: 1; padding: 0.65rem 0.7rem; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #152c4a 100%);
  color: var(--white);
  padding: 4.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero.hero-teal { background: linear-gradient(135deg, #0f766e 0%, #115e59 100%); }
.hero.hero-blue-teal { background: linear-gradient(135deg, #1e3a5f 0%, #0f766e 100%); }

.hero-content { max-width: 850px; margin: 0 auto; position: relative; z-index: 2; }

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  color: #fde68a;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero h1 { font-size: 2.6rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.25; }

.hero p {
  font-size: 1.15rem;
  color: #e2e8f0;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-inline: auto;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: background 0.25s ease, transform 0.25s ease;
  text-align: center;
}
.btn-primary { background-color: var(--accent); color: var(--white); }
.btn-primary:hover { background-color: #92400e; transform: translateY(-2px); }
.btn-secondary { background-color: var(--secondary); color: var(--white); }
.btn-secondary:hover { background-color: #115e59; transform: translateY(-2px); }
.btn-outline-light { background: rgba(255,255,255,0.1); color: var(--white); border: 1.5px solid rgba(255,255,255,0.6); }
.btn-outline-light:hover { background: rgba(255,255,255,0.22); }
.btn-wide { width: 100%; }
.btn-lg { font-size: 1.1rem; padding: 1rem 2.2rem; }

/* ---------- Main ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 4rem 1.5rem; }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.section-header h2 { font-size: 2rem; color: var(--primary); margin-bottom: 0.65rem; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Cards ---------- */
.activities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.5rem; }

.card {
  background: var(--white);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.card-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  background-color: #eff6ff;
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.15rem;
}
.card.highlight-teal .card-icon { background-color: #f0fdfa; color: var(--secondary); }
.card.highlight-gold .card-icon { background-color: #fffbeb; color: var(--accent); }

.card h3 { font-size: 1.2rem; color: var(--primary); margin-bottom: 0.6rem; }
.card p { color: var(--text-muted); font-size: 0.96rem; margin-bottom: 1.25rem; }

.card-link {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  text-align: start;
}
.card-link:hover { text-decoration: underline; }
/* החץ מתהפך לפי כיוון השפה */
.card-link::after { content: "←"; }
[dir="ltr"] .card-link::after { content: "→"; }

/* ---------- באנר אחדות ישראל ---------- */
.unity-banner {
  background: linear-gradient(120deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-radius: 18px;
  padding: 2.5rem;
  margin-top: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.unity-info { flex: 1; min-width: 280px; }
.unity-kicker { color: var(--accent); font-weight: 700; font-size: 0.95rem; }
.unity-info h3 { font-size: 1.65rem; color: var(--primary); margin-bottom: 0.75rem; }
.unity-info p { color: #475569; font-size: 1.05rem; margin-bottom: 1.25rem; }
.unity-logo-box {
  background: var(--white);
  padding: 1.5rem 2rem;
  border-radius: 14px;
  border: 2px solid #b45309;
  text-align: center;
  min-width: 250px;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.12);
}
.unity-domain { font-size: 0.9rem; color: var(--accent); font-weight: 700; margin-top: 0.4rem; }

.achdut-logo-img { width: 210px; max-width: 100%; height: auto; display: block; margin: 0 auto; transition: transform 0.25s ease; }
.achdut-logo-img:hover { transform: scale(1.03); }

/* ---------- Panels & Forms ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }

@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}

.info-panel {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.info-panel h2 { color: var(--primary); margin-bottom: 1rem; }
.info-panel h3.sub { font-size: 1.15rem; color: var(--primary); margin-bottom: 1rem; }
.lead-muted { color: var(--text-muted); margin-bottom: 1.25rem; }
.small-muted { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

.bullet-list { padding-inline-start: 1.25rem; color: var(--text-dark); line-height: 2; margin-bottom: 1.5rem; }
.bullet-list.tight { line-height: 1.9; margin-bottom: 0; }
.link-strong { color: var(--secondary); font-weight: 700; text-decoration: underline; }

.notice-box { background: #eff6ff; border-radius: 12px; padding: 1.25rem; border: 1px solid #bfdbfe; }
.notice-box strong { color: var(--primary); }
.notice-box p { font-size: 0.94rem; color: #334155; margin: 0.35rem 0 0; }

.donate-box { background: #f0fdfa; border: 1.5px solid #5eead4; border-radius: 12px; padding: 1.5rem; text-align: center; }
.donate-box h3 { color: #0f766e; margin-bottom: 0.5rem; }
.donate-box p { font-size: 0.95rem; color: #334155; margin-bottom: 1rem; }

.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.35rem; }
.contact-badge {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-item .val { color: var(--text-muted); }
.contact-item .val a { text-decoration: underline; color: var(--primary); }
.contact-item .val a.wa-inline { color: var(--wa); font-weight: 700; }

.form-group { margin-bottom: 1.15rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.4rem; color: var(--text-dark); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #8393a7;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-dark);
  background: #fff;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--focus); }

/* שדה מלכודת לספאם - מוסתר מהמשתמשים */
.hp-field { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { display: none; margin-top: 1rem; padding: 0.9rem 1rem; border-radius: 8px; font-weight: 500; }
.form-status.show { display: block; }
.form-status.ok { background-color: #dcfce7; color: #14532d; border: 1px solid #86efac; }
.form-status.err { background-color: #fee2e2; color: #7f1d1d; border: 1px solid #fca5a5; }
.form-status a { text-decoration: underline; font-weight: 700; }
.btn[disabled] { opacity: 0.65; cursor: wait; }

/* ---------- Modal ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--white);
  width: 100%;
  max-width: 500px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  animation: popIn 0.25s ease;
}
.modal-box h2 { color: var(--primary); font-size: 1.45rem; margin-bottom: 0.4rem; padding-inline-end: 2.5rem; }
.modal-box .modal-sub { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1.25rem; }

@keyframes popIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

.modal-close {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  background: #f1f5f9;
  border: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  color: #334155;
}
.modal-close:hover { background: #e2e8f0; color: var(--text-dark); }

/* ---------- Footer ---------- */
footer { background-color: #0f172a; color: #cbd5e1; padding: 3rem 1.5rem 7rem; margin-top: 4rem; }

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #334155;
}
.footer-col h2 { color: var(--white); margin-bottom: 1rem; font-size: 1.1rem; }
.footer-col p { font-size: 0.9rem; line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.55rem; font-size: 0.92rem; }
.footer-col ul li a { text-decoration: underline; text-underline-offset: 3px; }
.footer-col ul li a:hover { color: #5eead4; }

.footer-bottom { max-width: 1200px; margin: 1.5rem auto 0; text-align: center; font-size: 0.85rem; color: #aab6c6; line-height: 1.8; }

/* ---------- כפתור וואטסאפ צף ---------- */
.wa-fab {
  position: fixed;
  right: 1rem;              /* פיזי (לא logical): כפתור הנגישות תמיד בצד הנגדי */
  bottom: 1rem;
  z-index: 1500;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--wa);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.1rem 0.7rem 0.8rem;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.28);
  transition: transform 0.2s ease, background 0.2s ease;
}
.wa-fab:hover { background: #0a5f31; transform: translateY(-2px); }
.wa-fab svg { width: 34px; height: 34px; fill: #fff; flex-shrink: 0; }
@media (max-width: 600px) {
  .wa-fab { padding: 0.65rem; }
  .wa-fab .wa-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
}

/* ---------- תפריט נגישות ---------- */
.a11y-fab {
  position: fixed;
  left: 1rem;               /* פיזי: מול כפתור הוואטסאפ */
  bottom: 1rem;
  z-index: 1500;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: #1d4ed8;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.a11y-fab:hover { background: #1e40af; }
.a11y-fab svg { width: 32px; height: 32px; fill: #fff; }

.a11y-panel {
  position: fixed;
  left: 1rem;
  bottom: 5rem;
  z-index: 1600;
  width: min(340px, calc(100vw - 2rem));
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
  background: #fff;
  color: #1e293b;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
  border: 1px solid #cbd5e1;
  display: none;
}
.a11y-panel.open { display: block; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1.1rem; background: #1e3a5f; color: #fff; border-radius: 15px 15px 0 0; position: sticky; top: 0; }
.a11y-head h2 { font-size: 1.1rem; }
.a11y-head button { background: rgba(255,255,255,0.18); color: #fff; border: none; border-radius: 50%; width: 34px; height: 34px; font-size: 1.1rem; cursor: pointer; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; padding: 1rem; }
.a11y-opt {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem;
  text-align: center;
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  padding: 0.7rem 0.4rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  min-height: 78px;
}
.a11y-opt .ico { font-size: 1.35rem; line-height: 1; font-weight: 700; }
.a11y-opt:hover { background: #e2e8f0; }
.a11y-opt[aria-pressed="true"] { background: #dbeafe; border-color: #1d4ed8; color: #1e3a8a; }
.a11y-foot { padding: 0 1rem 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.a11y-foot button, .a11y-foot a {
  display: block; text-align: center; padding: 0.65rem; border-radius: 10px; font-family: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer;
}
.a11y-reset { background: #fff; border: 2px solid #1e3a5f; color: #1e3a5f; }
.a11y-statement-link { background: #1e3a5f; color: #fff; border: 2px solid #1e3a5f; }

/* ---------- מצבי נגישות ---------- */
html.a11y-underline a { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-font body, html.a11y-font body * { font-family: Arial, Helvetica, sans-serif !important; }
html.a11y-noanim *, html.a11y-noanim *::before, html.a11y-noanim *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-gray header, html.a11y-gray main, html.a11y-gray footer { filter: grayscale(1); }
html.a11y-cursor, html.a11y-cursor * {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24'><path d='M3 2l16 9-7 2 4 8-3 1.5-4-8-5 5z' fill='black' stroke='white' stroke-width='1.5'/></svg>") 4 2, auto !important;
}
html.a11y-cursor a, html.a11y-cursor button, html.a11y-cursor select, html.a11y-cursor a *, html.a11y-cursor button * {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24'><path d='M3 2l16 9-7 2 4 8-3 1.5-4-8-5 5z' fill='yellow' stroke='black' stroke-width='1.5'/></svg>") 4 2, pointer !important;
}

/* ניגודיות גבוהה */
html.a11y-contrast body,
html.a11y-contrast body *:not(svg):not(svg *):not(img) {
  background-color: #000 !important;
  background-image: none !important;
  color: #fff !important;
  border-color: #fff !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
html.a11y-contrast a, html.a11y-contrast a * { color: #ffff00 !important; text-decoration: underline !important; }
html.a11y-contrast .btn, html.a11y-contrast .btn-nav-cta, html.a11y-contrast .a11y-opt, html.a11y-contrast button { border: 2px solid #fff !important; }
html.a11y-contrast .a11y-opt[aria-pressed="true"] { background-color: #fff !important; color: #000 !important; }
html.a11y-contrast .a11y-opt[aria-pressed="true"] * { color: #000 !important; background-color: transparent !important; }
html.a11y-contrast .card, html.a11y-contrast .info-panel, html.a11y-contrast .unity-banner, html.a11y-contrast .unity-logo-box,
html.a11y-contrast .notice-box, html.a11y-contrast .donate-box, html.a11y-contrast .modal-box,
html.a11y-contrast input, html.a11y-contrast select, html.a11y-contrast textarea { border: 2px solid #fff !important; }
html.a11y-contrast .wa-fab { background-color: #25D366 !important; color: #000 !important; border: 3px solid #fff !important; }
html.a11y-contrast .wa-fab * { color: #000 !important; background-color: transparent !important; }
html.a11y-contrast .wa-fab svg { fill: #000; }
html.a11y-contrast .a11y-fab { background-color: #000 !important; border: 3px solid #ffff00 !important; }
html.a11y-contrast .a11y-fab svg { fill: #ffff00; }
html.a11y-contrast .lang-switch svg, html.a11y-contrast .menu-toggle svg { fill: #fff; stroke: #fff; }
html.a11y-contrast .lang-switch svg { stroke: none; }
html.a11y-contrast .form-status.ok, html.a11y-contrast .form-status.err { border: 2px solid #fff !important; }
html.a11y-contrast :focus-visible { outline: 4px solid #ffff00 !important; outline-offset: 2px; }

/* כיבוד העדפת מערכת להפחתת תנועה */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- עמוד הצהרת נגישות ---------- */
.statement { max-width: 860px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 2.5rem; box-shadow: var(--shadow); }
.statement h2 { color: var(--primary); font-size: 1.4rem; margin: 2rem 0 0.7rem; }
.statement h2:first-child { margin-top: 0; }
.statement p { margin-bottom: 0.9rem; color: #334155; }
.statement ul { padding-inline-start: 1.4rem; margin-bottom: 1rem; line-height: 1.9; color: #334155; }
.statement .coord { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 1.25rem 1.5rem; }
.statement .coord p { margin-bottom: 0.4rem; }
.statement a { color: var(--primary); text-decoration: underline; font-weight: 600; }
.statement .updated { margin-top: 2rem; font-size: 0.92rem; color: var(--text-muted); }

@media (max-width: 600px) {
  .container { padding: 2.5rem 1rem; }
  .statement { padding: 1.5rem; }
  .info-panel { padding: 1.4rem; }
  .unity-banner { padding: 1.5rem; }
  .hero { padding: 3rem 1rem; }
}

@media print {
  header, .wa-fab, .a11y-fab, .a11y-panel, .modal-overlay, .skip-link { display: none !important; }
}

/* לוגו קופת החסד */
.kupat-logo-box { display: block; width: fit-content; margin-inline: auto; background: #fff; border-radius: 18px; padding: 0.9rem 1.6rem; margin-bottom: 1.4rem; box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.kupat-logo-box img { display: block; width: 230px; max-width: 100%; height: auto; }

/* ---------- כפתור "אחדות ישראל בתורה" בתפריט ---------- */
.nav-links a.nav-unity { color: #7c3d0a; background: #fffbeb; box-shadow: inset 0 0 0 1.5px #d97706; font-weight: 600; }
.nav-links a.nav-unity:hover { background: #fef3c7; color: #5c2d07; }

/* ---------- גלריה ---------- */
.gallery-msg { text-align: center; color: var(--text-muted); font-size: 1.1rem; padding: 3rem 1rem; }
.gallery-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.g-item figure { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); height: 100%; display: flex; flex-direction: column; }
.g-item figcaption { padding: 0.85rem 1rem 1rem; color: var(--text-dark); font-size: 0.97rem; line-height: 1.5; }
.g-thumb, .g-yt { display: block; width: 100%; padding: 0; border: 0; background: #e2e8f0; cursor: pointer; position: relative; }
.g-thumb img { display: block; width: 100%; height: 220px; object-fit: cover; transition: transform 0.3s ease; }
.g-thumb:hover img { transform: scale(1.04); }
.g-thumb { overflow: hidden; }
.g-video { position: relative; aspect-ratio: 16 / 9; background: #0f172a; }
.g-video video, .g-video iframe, .g-yt-frame { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.g-yt { height: 100%; }
.g-yt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(15,23,42,0.78); color: #fff; font-size: 1.6rem; display: flex; align-items: center; justify-content: center; padding-inline-start: 4px; }
.g-yt:hover .g-play { background: #b45309; }

.lb { position: fixed; inset: 0; z-index: 2500; background: rgba(2,6,23,0.93); display: flex; align-items: center; justify-content: center; padding: 3.5rem 4rem; }
.lb[hidden] { display: none; }
.lb figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.lb img { max-width: 100%; max-height: calc(100vh - 11rem); object-fit: contain; border-radius: 6px; background: #fff; }
.lb figcaption { color: #f1f5f9; text-align: center; font-size: 1.05rem; max-width: 60ch; }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,0.16); color: #fff; border: 2px solid rgba(255,255,255,0.6); border-radius: 50%; width: 48px; height: 48px; cursor: pointer; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,0.3); }
.lb-close { top: 1rem; inset-inline-end: 1rem; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 2rem; line-height: 1; padding-bottom: 4px; }
.lb-prev { inset-inline-start: 0.8rem; }
.lb-next { inset-inline-end: 0.8rem; }
.lb-prev span::before { content: "\203A"; }
.lb-next span::before { content: "\2039"; }
[dir="ltr"] .lb-prev span::before { content: "\2039"; }
[dir="ltr"] .lb-next span::before { content: "\203A"; }
@media (max-width: 600px) { .lb { padding: 3.5rem 0.5rem; } .lb-nav { top: auto; bottom: 1rem; transform: none; } }
html.a11y-contrast .lb, html.a11y-contrast .lb * { background-color: #000 !important; }
html.a11y-contrast .g-item figure { border: 2px solid #fff !important; }
html.a11y-contrast .g-play { border: 2px solid #fff !important; }
