/* ===========================================================================
   תפריט הנגישות של VirtoSite — CSS
   נכתב מאפס, בלי תוסף צד-שלישי: הפאנל הוא HTML רגיל שנבנה ע"י /a11y.js,
   וכל ההתאמות הן תכונות data-* על <html>. אין כאן שום תלות רשת חיצונית,
   בהתאם להחלטה שהאתר לא תלוי בשרת של אף אחד אחר.

   חשוב: ההתאמות משתמשות ב-!important בכוונה. הן צריכות לנצח CSS מוטבע
   (style="") שמוזרק ע"י render.js ואת ה-<style> של הדף עצמו — בלי זה
   "ניגודיות גבוהה" פשוט לא עובדת על חלק מהאלמנטים.
   =========================================================================== */

:root{
  --vs-a11y-ink:#0b0d12;
  --vs-a11y-paper:#fff;
  --vs-a11y-accent:#d6f549;
  --vs-a11y-line:2px solid #0b0d12;
}

/* ---------- הכפתור הצף ---------- */
/* ימין בשתי השפות: כפתור הוואטסאפ יושב ב-left:22px גם בעברית וגם באנגלית,
   כך שהצד הזה פנוי ואין התנגשות. */
.vs-a11y-btn{
  position:fixed; bottom:22px; right:22px; z-index:9998;
  width:58px; height:58px; border-radius:50%;
  display:grid; place-items:center; cursor:pointer;
  background:var(--vs-a11y-accent); color:var(--vs-a11y-ink);
  border:var(--vs-a11y-line); box-shadow:6px 6px 0 var(--vs-a11y-ink);
  padding:0; font:inherit; line-height:0;
  transition:transform .18s, box-shadow .18s;
}
.vs-a11y-btn:hover{ transform:translate(3px,-3px); box-shadow:3px 9px 0 var(--vs-a11y-ink); }
.vs-a11y-btn svg{ width:32px; height:32px; display:block; }

/* ---------- הפאנל ---------- */
.vs-a11y-panel{
  position:fixed; bottom:92px; right:22px; z-index:9999;
  width:min(320px, calc(100vw - 32px));
  max-height:min(76vh, 620px); overflow-y:auto;
  background:var(--vs-a11y-paper); color:var(--vs-a11y-ink);
  border:var(--vs-a11y-line); border-radius:20px;
  box-shadow:8px 8px 0 var(--vs-a11y-ink);
  padding:18px; font-family:system-ui,'Segoe UI',Arial,sans-serif; font-size:15px; line-height:1.5;
  text-align:start;
}
.vs-a11y-panel[hidden]{ display:none; }
.vs-a11y-panel h2{
  font:700 17px/1.3 system-ui,'Segoe UI',Arial,sans-serif; margin:0 0 2px;
  color:var(--vs-a11y-ink); letter-spacing:0;
}
.vs-a11y-panel .vs-a11y-sub{ font-size:13px; color:#4a5160; margin:0 0 14px; }
.vs-a11y-row{ display:flex; gap:8px; margin-bottom:8px; }
.vs-a11y-row .vs-a11y-item{ flex:1; }

.vs-a11y-item{
  display:flex; align-items:center; gap:9px; width:100%;
  background:#fffdf6; color:var(--vs-a11y-ink);
  border:var(--vs-a11y-line); border-radius:12px;
  padding:11px 13px; cursor:pointer; text-align:start;
  font:500 14px/1.35 system-ui,'Segoe UI',Arial,sans-serif;
  transition:background .15s, box-shadow .15s;
}
.vs-a11y-item:hover{ background:#fff; box-shadow:3px 3px 0 var(--vs-a11y-ink); }
.vs-a11y-item[aria-pressed="true"]{ background:var(--vs-a11y-accent); box-shadow:3px 3px 0 var(--vs-a11y-ink); }
.vs-a11y-item .vs-a11y-ic{ font-size:17px; line-height:1; flex:none; }
.vs-a11y-item .vs-a11y-tick{ margin-inline-start:auto; font-weight:700; opacity:0; }
.vs-a11y-item[aria-pressed="true"] .vs-a11y-tick{ opacity:1; }

.vs-a11y-size{ display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.vs-a11y-size .vs-a11y-step{
  width:42px; height:42px; flex:none; display:grid; place-items:center;
  background:#fffdf6; border:var(--vs-a11y-line); border-radius:12px; cursor:pointer;
  font:700 18px/1 system-ui,Arial,sans-serif; color:var(--vs-a11y-ink);
}
.vs-a11y-size .vs-a11y-step:hover{ background:var(--vs-a11y-accent); }
.vs-a11y-size .vs-a11y-step[disabled]{ opacity:.45; cursor:default; }
.vs-a11y-size .vs-a11y-val{ flex:1; text-align:center; font:700 14px/1.3 system-ui,Arial,sans-serif; }

.vs-a11y-foot{ margin-top:12px; padding-top:12px; border-top:1px dashed #0b0d12; display:flex; flex-direction:column; gap:8px; }
.vs-a11y-reset{
  background:var(--vs-a11y-ink); color:#fff; border:var(--vs-a11y-line); border-radius:12px;
  padding:11px; cursor:pointer; font:700 14px/1.2 system-ui,Arial,sans-serif; width:100%;
}
.vs-a11y-foot a{ color:#0b3f66; font-weight:700; font-size:14px; text-decoration:underline; }

/* פוקוס גלוי לכל פקד בפאנל — גם כשההתאמות עצמן כבויות */
.vs-a11y-btn:focus-visible,
.vs-a11y-panel :focus-visible{
  outline:3px solid #1f8fd6 !important; outline-offset:2px !important;
}

@media (max-width:420px){
  .vs-a11y-panel{ right:12px; left:12px; width:auto; bottom:86px; }
  .vs-a11y-btn{ right:12px; bottom:14px; }
}

/* ===========================================================================
   ההתאמות עצמן
   =========================================================================== */

/* ---------- גודל טקסט ---------- */
/* הדף בנוי על clamp() עם יחידות rem, ולכן הגדלת font-size על <html> מגדילה
   את רוב הטיפוגרפיה. 175% הוא הגבול שבו הפריסה עוד מחזיקה. */
html[data-a11y-font="1"]{ font-size:112.5%; }
html[data-a11y-font="2"]{ font-size:125%; }
html[data-a11y-font="3"]{ font-size:150%; }
html[data-a11y-font="4"]{ font-size:175%; }

/* ---------- ריווח שורות ותווים ---------- */
html[data-a11y-spacing="on"] body,
html[data-a11y-spacing="on"] p,
html[data-a11y-spacing="on"] li,
html[data-a11y-spacing="on"] span,
html[data-a11y-spacing="on"] label,
html[data-a11y-spacing="on"] a{
  line-height:1.9 !important; letter-spacing:.02em !important; word-spacing:.08em !important;
}
/* קו הטוש מתחת לכותרת מתנתק מהטקסט כשגובה השורה גדל — והוא קישוט בלבד,
   לכן במצב ריווח מוגדל הוא פשוט יורד מהמסך במקום להיראות כפס אפור תועה. */
html[data-a11y-spacing="on"] .hero h1 span::after{display:none !important}
html[data-a11y-spacing="on"] .vs-a11y-panel,
html[data-a11y-spacing="on"] .vs-a11y-panel *{
  line-height:1.5 !important; letter-spacing:0 !important; word-spacing:normal !important;
}

/* ---------- גופן קריא ---------- */
/* Secular One הוא גופן תצוגה בלי משקלים — מחליפים אותו בגופן מערכת. */
html[data-a11y-typeface="readable"] body,
html[data-a11y-typeface="readable"] body *:not(.vs-a11y-panel):not(.vs-a11y-panel *){
  font-family:Arial,'Helvetica Neue',Helvetica,system-ui,sans-serif !important;
  letter-spacing:normal !important; text-wrap:initial !important;
}

/* ---------- הדגשת קישורים ---------- */
html[data-a11y-links="on"] a:not(.vs-a11y-item):not(.vs-a11y-btn){
  text-decoration:underline !important; text-underline-offset:3px !important;
  text-decoration-thickness:2px !important; font-weight:700 !important;
}
html[data-a11y-links="on"] a:not(.vs-a11y-item):not(.vs-a11y-btn):hover{
  outline:2px dashed currentColor; outline-offset:3px;
}

/* ---------- עצירת אנימציות ---------- */
html[data-a11y-motion="off"] *,
html[data-a11y-motion="off"] *::before,
html[data-a11y-motion="off"] *::after{
  animation-duration:0s !important; animation-iteration-count:1 !important;
  transition-duration:0s !important; scroll-behavior:auto !important;
}
html[data-a11y-motion="off"] .reveal{ opacity:1 !important; transform:none !important; }
html[data-a11y-motion="off"]{ scroll-behavior:auto !important; }

/* ---------- סמן גדול ---------- */
html[data-a11y-cursor="big"],
html[data-a11y-cursor="big"] *{
  cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M5 2l14 9-6 1 3.5 7-2.5 1.2-3.6-7.2L5 17z' fill='%23fff' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") 4 2, auto !important;
}
html[data-a11y-cursor="big"] a,
html[data-a11y-cursor="big"] button,
html[data-a11y-cursor="big"] label,
html[data-a11y-cursor="big"] [role="button"]{
  cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M9 2.5a1.6 1.6 0 013.2 0V9h.8a1.5 1.5 0 011.5-1.5A1.5 1.5 0 0116 9v.6a1.5 1.5 0 011.5-1.4A1.5 1.5 0 0119 9.7V15a6 6 0 01-6 6h-1.4A6.6 6.6 0 015 14.4V11a1.6 1.6 0 013.2 0z' fill='%23fff' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E") 8 2, pointer !important;
}

/* ---------- ניגודיות גבוהה (לבן על שחור) ---------- */
html[data-a11y-contrast="high"] body,
html[data-a11y-contrast="high"] body *:not(.vs-a11y-panel):not(.vs-a11y-panel *):not(.vs-a11y-btn):not(.vs-a11y-btn *){
  background-color:#000 !important; background-image:none !important;
  color:#fff !important; border-color:#fff !important; box-shadow:none !important;
  text-shadow:none !important;
}
/* פסאודו-אלמנטים דקורטיביים: קו הטוש מאחורי כותרת ההירו הוא ::after עם רקע
   ליים. בלי האיפוס הזה הטקסט הלבן יושב עליו ביחס 1.6:1 — כלומר דווקא במצב
   "ניגודיות גבוהה" הכותרת הייתה הופכת לבלתי קריאה. */
html[data-a11y-contrast="high"] body *:not(.vs-a11y-panel):not(.vs-a11y-panel *):not(.vs-a11y-btn)::before,
html[data-a11y-contrast="high"] body *:not(.vs-a11y-panel):not(.vs-a11y-panel *):not(.vs-a11y-btn)::after{
  background:#000 !important; background-image:none !important; color:#fff !important;
  box-shadow:none !important;
}
/* שרשרת ה-:not() כאן ארוכה בדיוק כמו של כלל הצבע הכללי — אחרת הכלל הכללי
   (אותה דרגת !important, סלקטיביות גבוהה יותר) היה צובע גם את הקישורים לבן. */
html[data-a11y-contrast="high"] body a:not(.vs-a11y-panel):not(.vs-a11y-panel *):not(.vs-a11y-btn):not(.vs-a11y-item),
html[data-a11y-contrast="high"] body a:not(.vs-a11y-panel):not(.vs-a11y-panel *):not(.vs-a11y-btn):not(.vs-a11y-item) *{
  color:#ffea00 !important; text-decoration:underline !important;
}
html[data-a11y-contrast="high"] button:not(.vs-a11y-item):not(.vs-a11y-btn):not(.vs-a11y-reset):not(.vs-a11y-step),
html[data-a11y-contrast="high"] input,
html[data-a11y-contrast="high"] textarea{
  background:#000 !important; color:#fff !important; border:2px solid #fff !important;
}
html[data-a11y-contrast="high"] input::placeholder,
html[data-a11y-contrast="high"] textarea::placeholder{ color:#d8d8d8 !important; }
/* קו מפריד במקום הגבול הצבעוני שנעלם */
html[data-a11y-contrast="high"] nav{ border-bottom:2px solid #fff !important; }
html[data-a11y-contrast="high"] footer{ border-top:2px solid #fff !important; }
/* תמונות ולוגואים: שומרים אותם נראים, רק מוסיפים מסגרת כדי שלא ייבלעו ברקע */
html[data-a11y-contrast="high"] img{ background:#fff !important; padding:2px; }

/* ---------- מונוכרום ---------- */
/* ה-filter יושב על <html> ולא על <body>: filter על body היה הופך אותו
   ל-containing block, ואז position:fixed של כפתור הוואטסאפ ושל כפתור
   הנגישות נמדד מגובה המסמך במקום מהחלון — והם היו נעלמים מתחת לקיפול. */
html[data-a11y-mono="on"]{ filter:grayscale(1); }

/* ---------- עזרי קריאה כלליים ---------- */
.vs-sr-only{
  position:absolute !important; width:1px !important; height:1px !important;
  padding:0 !important; margin:-1px !important; overflow:hidden !important;
  clip:rect(0 0 0 0) !important; white-space:nowrap !important; border:0 !important;
}
