/* נגישות — ת"י 5568 / WCAG 2.0 AA
   קובץ משותף לעמוד הבית ולהצהרת הנגישות. */

/* ===== דילוג לתוכן: הקישור הראשון בטאב, נחשף רק בפוקוס ===== */
.skip-link{
  position:absolute;inset-inline-start:-9999px;top:0;z-index:999;
  background:#2fd3e8;color:#04202a;padding:14px 26px;font-weight:800;
  border-radius:0 0 12px 0;text-decoration:none;
}
.skip-link:focus{inset-inline-start:0}

/* ===== חיווי פוקוס ברור לניווט במקלדת ===== */
a:focus-visible,button:focus-visible,summary:focus-visible,
[tabindex]:focus-visible,input:focus-visible{
  outline:3px solid #2fd3e8;outline-offset:3px;border-radius:4px;
}
body.a11y-kb a:focus,body.a11y-kb button:focus,body.a11y-kb summary:focus{
  outline:3px solid #2fd3e8;outline-offset:3px;
}

/* ===== כפתור פתיחת התפריט ===== */
.a11y-btn{
  position:fixed;inset-inline-start:18px;bottom:18px;z-index:200;
  width:52px;height:52px;border-radius:50%;border:2px solid rgba(255,255,255,.3);
  background:#2fd3e8;color:#04202a;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 8px 24px rgba(0,0,0,.55);
  font-family:inherit;transition:transform .2s;
}
.a11y-btn svg{width:28px;height:28px;display:block}
.a11y-btn:hover{transform:scale(1.06)}

/* ===== לוח ההגדרות ===== */
.a11y-panel{
  position:fixed;inset-inline-start:18px;bottom:82px;z-index:201;
  width:290px;max-width:calc(100vw - 36px);
  background:#0e1526;border:1px solid rgba(255,255,255,.18);border-radius:20px;
  padding:18px;color:#eaf0fb;box-shadow:0 24px 60px rgba(0,0,0,.65);
  font-family:'Heebo',system-ui,sans-serif;
}
.a11y-panel[hidden]{display:none}
.a11y-panel h2{font-size:1.05rem;font-weight:800;margin:0 0 4px}
.a11y-panel .sub{font-size:.82rem;color:#93a1bd;margin-bottom:14px}
.a11y-opt{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  width:100%;padding:11px 14px;margin-bottom:8px;
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);
  border-radius:12px;color:#eaf0fb;font:inherit;font-size:.94rem;
  cursor:pointer;text-align:start;
}
.a11y-opt:hover{background:rgba(255,255,255,.09)}
.a11y-opt[aria-pressed="true"]{background:rgba(47,211,232,.16);border-color:#2fd3e8}
.a11y-opt .state{font-size:.78rem;color:#93a1bd;flex:none}
.a11y-opt[aria-pressed="true"] .state{color:#2fd3e8;font-weight:700}
.a11y-reset{
  width:100%;margin-top:6px;padding:10px;border-radius:999px;border:0;
  background:#2fd3e8;color:#04202a;font:inherit;font-weight:800;cursor:pointer;
}
.a11y-panel .stmt{display:block;margin-top:12px;text-align:center;font-size:.85rem;color:#93a1bd}
.a11y-panel .stmt:hover{color:#2fd3e8}

/* ===== התאמות שהמשתמש מפעיל ===== */
html.a11y-font-1{font-size:112.5%}
html.a11y-font-2{font-size:125%}
html.a11y-font-3{font-size:140%}

/* ניגודיות גבוהה: מבטלים את שכבות האווירה ומרימים כל טקסט משני ללבן מלא */
html.a11y-contrast body{background:#000}
html.a11y-contrast .glow,
html.a11y-contrast .grid-bg{display:none}
html.a11y-contrast body,
html.a11y-contrast p,
html.a11y-contrast li,
html.a11y-contrast .lede,
html.a11y-contrast .hero-note,
html.a11y-contrast .head p,
html.a11y-contrast .pillar p,
html.a11y-contrast .pillar li,
html.a11y-contrast .step p,
html.a11y-contrast .card p,
html.a11y-contrast .final-box p,
html.a11y-contrast .contact-lines,
html.a11y-contrast footer,
html.a11y-contrast .nav-links a,
html.a11y-contrast .article p,
html.a11y-contrast .article li{color:#fff}
html.a11y-contrast .pillar,
html.a11y-contrast .step,
html.a11y-contrast .card,
html.a11y-contrast .final-box,
html.a11y-contrast .nav,
html.a11y-contrast .a11y-panel{background:#000;border-color:#fff}
html.a11y-contrast h1 .g{-webkit-text-fill-color:#2fd3e8;color:#2fd3e8}

html.a11y-links a{text-decoration:underline !important;text-underline-offset:3px}

html.a11y-readable body,
html.a11y-readable .a11y-panel{font-family:Arial,'Segoe UI',sans-serif !important;letter-spacing:.4px}
html.a11y-readable h1,html.a11y-readable h2,
html.a11y-readable h3,html.a11y-readable h4{letter-spacing:0 !important}

html.a11y-nomotion *,
html.a11y-nomotion *::before,
html.a11y-nomotion *::after{
  animation:none !important;transition:none !important;scroll-behavior:auto !important;
}
/* בלי אנימציות, גם החשיפה בגלילה חייבת להיות גלויה מיד */
html.a11y-nomotion .rv{opacity:1 !important;transform:none !important}

@media (prefers-reduced-motion:reduce){
  .a11y-btn{transition:none}
}
@media (max-width:520px){
  .a11y-btn{width:46px;height:46px;inset-inline-start:12px;bottom:12px}
  .a11y-panel{inset-inline-start:12px;bottom:68px}
}
