/* צבע המותג הכחול מוכהה במעט כדי לעמוד ביחס ניגודיות 4.5 גם בטקסט קטן */
html:root{--ast-global-color-1:#206cde;--e-global-color-astglobalcolor1:#206cde}

/* ==========================================================================
   Webtico Accessibility  wt-a11y.css
   נגישות לפי ת"י 5568 (WCAG 2.1 AA)
   ללא תלות בשירות חיצוני, ללא עלות, ללא קריאות רשת
   ========================================================================== */

:root{
  --wt-a11y-brand:#1f6fe5;      /* כחול מותג מתוקן, יחס ניגודיות 4.7 מול לבן */
  --wt-a11y-brand-dark:#12439a;
  --wt-a11y-accent:#c9430f;     /* כתום מותג מתוקן, יחס ניגודיות 4.9 מול לבן */
  --wt-a11y-ink:#14181f;
  --wt-a11y-panel:#ffffff;
  --wt-a11y-line:#d7dce4;
  --wt-a11y-focus:#0b3d91;
}

/* ---------- 1. מיקוד מקלדת גלוי בכל מקום ---------- */
body.wt-a11y-kb a:focus,
body.wt-a11y-kb button:focus,
body.wt-a11y-kb input:focus,
body.wt-a11y-kb select:focus,
body.wt-a11y-kb textarea:focus,
body.wt-a11y-kb summary:focus,
body.wt-a11y-kb [tabindex]:focus,
body.wt-a11y-kb [role="button"]:focus,
body.wt-a11y-kb [role="tab"]:focus,
body.wt-a11y-kb [role="link"]:focus{
  outline:3px solid var(--wt-a11y-focus) !important;
  outline-offset:2px !important;
  box-shadow:0 0 0 6px rgba(255,255,255,.95) !important;
  border-radius:3px;
}
/* גם ללא המחלקה, שלא יישאר אלמנט בלי סימון מיקוד */
a:focus-visible,button:focus-visible,input:focus-visible,
select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{
  outline:3px solid var(--wt-a11y-focus) !important;
  outline-offset:2px !important;
}

/* ---------- 2. קישור דילוג לתוכן ---------- */
.wt-a11y-skip{
  position:absolute;right:-9999px;top:0;z-index:2147483647;
  background:#fff;color:#12439a;padding:12px 20px;font-weight:700;
  border:3px solid var(--wt-a11y-focus);border-radius:0 0 8px 8px;text-decoration:underline;
}
.wt-a11y-skip:focus{right:16px;top:0;}

/* ---------- 3. תיקוני ניגודיות על צבעי המותג ---------- */
/* לבן על הכחול המקורי נותן 3.88 בלבד, מתחת לסף AA. מחליפים לגוון כהה יותר */
body.wt-a11y-contrastfix .elementor-button[class*="elementor-size-"],
body.wt-a11y-contrastfix .elementor-button-link,
body.wt-a11y-contrastfix .wp-block-button__link{
  --wt-btn-bg:var(--wt-a11y-brand);
}
body.wt-a11y-contrastfix [style*="background-color:#257CFF"],
body.wt-a11y-contrastfix [style*="background-color:#257cff"],
body.wt-a11y-contrastfix [style*="background-color: #257cff"]{
  background-color:var(--wt-a11y-brand) !important;
}
body.wt-a11y-contrastfix [style*="color:#257CFF"],
body.wt-a11y-contrastfix [style*="color:#257cff"]{ color:var(--wt-a11y-brand-dark) !important; }
body.wt-a11y-contrastfix [style*="color:#F45A2A"],
body.wt-a11y-contrastfix [style*="color:#f45a2a"]{ color:var(--wt-a11y-accent) !important; }
body.wt-a11y-contrastfix [style*="background-color:#F45A2A"],
body.wt-a11y-contrastfix [style*="background-color:#f45a2a"]{
  background-color:var(--wt-a11y-accent) !important;
}
/* אלמנטים שסומנו בזמן ריצה כנכשלי ניגודיות */
body.wt-a11y-contrastfix .wt-a11y-lowcontrast{ color:var(--wt-a11y-ink) !important; }
body.wt-a11y-contrastfix .wt-a11y-lowcontrast-onbrand{ background-color:var(--wt-a11y-brand) !important; }

/* ---------- 4. קישור בתוך פסקה חייב להיות מובחן גם ללא צבע ---------- */
p a:not(.elementor-button):not([class*="button"]),
li a:not(.elementor-button):not([class*="button"]),
.elementor-widget-text-editor a:not(.elementor-button){
  text-decoration:underline;
  text-underline-offset:.18em;
}

/* ---------- 5. טקסט מוסתר לקוראי מסך בלבד ---------- */
.wt-a11y-sr{
  position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

/* ==========================================================================
   6. תפריט הנגישות
   ========================================================================== */
#wt-a11y-toggle{
  position:fixed;bottom:20px;inset-inline-start:20px;z-index:2147483000;
  width:56px;height:56px;border-radius:50%;border:2px solid #fff;
  background:var(--wt-a11y-brand);color:#fff;cursor:pointer;padding:0;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 22px rgba(0,0,0,.28);
  transition:transform .15s ease, background-color .15s ease;
}
#wt-a11y-toggle:hover,#wt-a11y-toggle:focus{ background:var(--wt-a11y-brand-dark);transform:scale(1.06); }
#wt-a11y-toggle svg{ width:32px;height:32px;fill:#fff;pointer-events:none; }

#wt-a11y-panel{
  position:fixed;bottom:88px;inset-inline-start:20px;z-index:2147483001;
  width:min(340px,calc(100vw - 32px));max-height:min(78vh,640px);overflow-y:auto;
  background:var(--wt-a11y-panel);color:var(--wt-a11y-ink);
  border:2px solid var(--wt-a11y-brand-dark);border-radius:14px;
  box-shadow:0 18px 50px rgba(0,0,0,.32);
  font-family:inherit;font-size:15px;line-height:1.5;direction:rtl;text-align:right;
  padding:0;
}
#wt-a11y-panel[hidden]{ display:none; }

.wt-a11y-head{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  background:var(--wt-a11y-brand-dark);color:#fff;padding:12px 16px;
  border-radius:11px 11px 0 0;position:sticky;top:0;z-index:2;
}
.wt-a11y-head h2{ margin:0;font-size:17px;font-weight:800;color:#fff;line-height:1.3; }
.wt-a11y-close{
  background:transparent;border:2px solid rgba(255,255,255,.65);color:#fff;
  width:32px;height:32px;border-radius:8px;font-size:19px;line-height:1;cursor:pointer;
}
.wt-a11y-close:hover{ background:rgba(255,255,255,.18); }

.wt-a11y-body{ padding:12px 14px 16px; }
.wt-a11y-group{ margin-bottom:14px; }
.wt-a11y-group > h3{
  margin:0 0 8px;font-size:13px;font-weight:800;color:#3b4453;
  text-transform:none;letter-spacing:0;
}
.wt-a11y-grid{ display:grid;grid-template-columns:1fr 1fr;gap:8px; }

.wt-a11y-btn{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;
  min-height:74px;padding:10px 6px;text-align:center;
  background:#f4f6fa;border:2px solid var(--wt-a11y-line);border-radius:10px;
  color:var(--wt-a11y-ink);font-size:13px;font-weight:700;line-height:1.25;
  cursor:pointer;font-family:inherit;
}
.wt-a11y-btn:hover{ background:#e7edf9;border-color:var(--wt-a11y-brand); }
.wt-a11y-btn[aria-pressed="true"]{
  background:var(--wt-a11y-brand);border-color:var(--wt-a11y-brand-dark);color:#fff;
}
.wt-a11y-btn .wt-ico{ font-size:22px;line-height:1; }
.wt-a11y-btn .wt-lvl{ font-size:11px;font-weight:800;opacity:.85; }

.wt-a11y-reset{
  width:100%;margin-top:4px;padding:11px;border-radius:10px;cursor:pointer;
  background:#fff;border:2px solid var(--wt-a11y-accent);color:var(--wt-a11y-accent);
  font-weight:800;font-size:14px;font-family:inherit;
}
.wt-a11y-reset:hover{ background:var(--wt-a11y-accent);color:#fff; }

.wt-a11y-foot{
  margin-top:12px;padding-top:10px;border-top:1px solid var(--wt-a11y-line);
  font-size:12.5px;color:#42495a;
}
.wt-a11y-foot a{ color:var(--wt-a11y-brand-dark);font-weight:700;text-decoration:underline; }
.wt-a11y-foot p{ margin:0 0 6px; }

/* ==========================================================================
   7. מצבי התצוגה שהמשתמש מפעיל
   ========================================================================== */

/* גווני אפור */
html.wt-grayscale{ filter:grayscale(100%); }
/* ניגודיות הפוכה */
html.wt-invert{ filter:invert(100%) hue-rotate(180deg); }
html.wt-invert img,html.wt-invert video,html.wt-invert iframe,
html.wt-invert [style*="background-image"]{ filter:invert(100%) hue-rotate(180deg); }
html.wt-grayscale.wt-invert{ filter:grayscale(100%) invert(100%) hue-rotate(180deg); }
/* התפריט עצמו לא מתהפך, כדי שיישאר קריא */
html.wt-invert #wt-a11y-panel,html.wt-invert #wt-a11y-toggle{ filter:invert(100%) hue-rotate(180deg); }
html.wt-grayscale #wt-a11y-panel,html.wt-grayscale #wt-a11y-toggle{ filter:grayscale(0); }

/* ניגודיות גבוהה כהה */
html.wt-hc body,html.wt-hc body *:not(#wt-a11y-panel):not(#wt-a11y-panel *):not(#wt-a11y-toggle):not(#wt-a11y-toggle *){
  background-color:#000 !important;background-image:none !important;
  color:#fff !important;border-color:#fff !important;text-shadow:none !important;
}
html.wt-hc a,html.wt-hc a *{ color:#ffe14d !important;text-decoration:underline !important; }
html.wt-hc button,html.wt-hc .elementor-button,html.wt-hc input[type="submit"]{
  background-color:#000 !important;color:#fff !important;border:2px solid #fff !important;
}
html.wt-hc img,html.wt-hc svg{ background:transparent !important; }

/* ניגודיות גבוהה בהירה */
html.wt-hcl body,html.wt-hcl body *:not(#wt-a11y-panel):not(#wt-a11y-panel *):not(#wt-a11y-toggle):not(#wt-a11y-toggle *){
  background-color:#fff !important;background-image:none !important;
  color:#000 !important;border-color:#000 !important;text-shadow:none !important;
}
html.wt-hcl a,html.wt-hcl a *{ color:#00309e !important;text-decoration:underline !important; }

/* הדגשת קישורים */
html.wt-links a:not(#wt-a11y-toggle){
  text-decoration:underline !important;text-underline-offset:.2em !important;
  outline:2px dashed #12439a !important;outline-offset:2px;
}
html.wt-links.wt-hc a{ outline-color:#ffe14d !important; }

/* פונט קריא */
html.wt-readable body,
html.wt-readable body *:not(#wt-a11y-panel):not(#wt-a11y-panel *):not(i):not(.fa):not([class^="eicon"]):not([class*=" eicon"]):not([class^="fa-"]):not([class*=" fa-"]){
  font-family:Arial,"Segoe UI","Noto Sans Hebrew",Tahoma,sans-serif !important;
  letter-spacing:.01em;
}

/* מרווח שורות */
html.wt-lineheight body p,html.wt-lineheight body li,
html.wt-lineheight body span,html.wt-lineheight body div:not(#wt-a11y-panel):not(#wt-a11y-panel *){
  line-height:2 !important;
}
/* ריווח אותיות ומילים */
html.wt-spacing body p,html.wt-spacing body li,html.wt-spacing body h1,
html.wt-spacing body h2,html.wt-spacing body h3,html.wt-spacing body h4{
  letter-spacing:.12em !important;word-spacing:.18em !important;
}

/* סמן גדול */
html.wt-bigcursor,html.wt-bigcursor *{
  cursor:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'><path d='M8 4 L8 38 L16 30 L21 42 L27 39 L22 28 L34 28 Z' fill='%23000' stroke='%23fff' stroke-width='2.5'/></svg>") 6 4, auto !important;
}
html.wt-bigcursor a,html.wt-bigcursor button,html.wt-bigcursor [role="button"],
html.wt-bigcursor input,html.wt-bigcursor select,html.wt-bigcursor textarea{
  cursor:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'><path d='M18 4 C15 4 14 6 14 9 L14 24 L11 21 C9 19 6 20 5 22 C4 24 5 26 6 27 L16 40 C18 43 20 44 24 44 L33 44 C38 44 41 41 41 36 L41 21 C41 18 39 17 37 17 C35 17 34 18 34 20 C34 18 33 16 30 16 C28 16 27 17 27 19 C27 17 26 15 23 15 C21 15 20 16 20 18 L20 9 C20 6 19 4 18 4 Z' fill='%23000' stroke='%23fff' stroke-width='2.5'/></svg>") 16 4, pointer !important;
}

/* עצירת הנפשות */
html.wt-noanim *,html.wt-noanim *::before,html.wt-noanim *::after{
  animation:none !important;transition:none !important;
  scroll-behavior:auto !important;
}
html.wt-noanim video{ display:none; }
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation-duration:.01ms !important;transition-duration:.01ms !important; }
}

/* מדריך קריאה */
#wt-a11y-guide{
  position:fixed;inset-inline:0;height:0;border-top:4px solid #12439a;
  border-bottom:4px solid #12439a;background:rgba(18,67,154,.14);
  pointer-events:none;z-index:2147482000;display:none;
}
html.wt-guide #wt-a11y-guide{ display:block;height:36px; }

/* מסך מלא ומובייל */
@media (max-width:600px){
  #wt-a11y-panel{
    inset-inline:12px;width:auto;bottom:84px;max-height:70vh;
  }
  #wt-a11y-toggle{ width:50px;height:50px;bottom:16px;inset-inline-start:16px; }
  #wt-a11y-toggle svg{ width:28px;height:28px; }
}

/* הדפסה, בלי הווידג'ט */
@media print{ #wt-a11y-toggle,#wt-a11y-panel,#wt-a11y-guide{ display:none !important; } }
