/* ═══ Infinity A11y · INF-GROW-103 · ת"י 5568 (WCAG 2.0 AA) ═══ */

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

/* ── קישור דילוג: מוסתר עד שמגיעים אליו במקלדת ── */
.inf-a11y-skip { position: absolute; top: -200px; right: 12px; z-index: 100002; padding: 10px 16px; background: #111; color: #fff; font: 600 16px/1.4 Arial, sans-serif; border-radius: 0 0 6px 6px; text-decoration: none; }
.inf-a11y-skip:focus { top: 0; outline: 3px solid #ffbf47; outline-offset: 0; }

/* ── פוקוס נראה לכל רכיב, רק בניווט מקלדת ── */
:focus-visible { outline: 3px solid #1a5fb4 !important; outline-offset: 2px !important; box-shadow: 0 0 0 5px #fff !important; }
#inf-main:focus { outline: none; }

/* ── כפתור הסרגל: בפינה השמאלית התחתונה, הפינה הפנויה במחשב ובטלפון ── */
.inf-a11y { position: fixed; left: 20px; bottom: 20px; z-index: 100001; font: 15px/1.4 Arial, 'Assistant', sans-serif; }
#inf-a11y .inf-a11y-toggle { width: 48px; height: 48px; border-radius: 50%; border: 2px solid #fff; background: #1a3d6d; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25); padding: 0; }
#inf-a11y .inf-a11y-toggle:hover { background: #0f2a4f; }
/* איפוס העיצוב שהכפתורים יורשים מערכת העיצוב (צבע ורוד, רוחב, ריפוד) */
#inf-a11y button { all: unset; box-sizing: border-box; font-family: Arial, 'Assistant', sans-serif; }
#inf-a11y button:focus-visible { outline: 3px solid #1a5fb4 !important; outline-offset: 2px !important; }
.inf-a11y-panel { position: absolute; left: 0; bottom: 58px; width: 320px; max-width: calc(100vw - 32px); max-height: calc(100vh - 100px); overflow: auto; background: #fff; color: #111; border: 1px solid #444; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.3); padding: 14px; text-align: right; }
.inf-a11y-panel[hidden] { display: none; }
.inf-a11y-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.inf-a11y-title { margin: 0; font: 700 18px/1.3 Arial, sans-serif; color: #111; }
#inf-a11y .inf-a11y-close { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid #555; border-radius: 6px; background: #fff; color: #111; font-size: 22px; line-height: 1; cursor: pointer; }
.inf-a11y-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
#inf-a11y .inf-a11y-grid > button, #inf-a11y .inf-a11y-font button, #inf-a11y .inf-a11y-reset { display: flex; align-items: center; justify-content: center; white-space: normal; min-width: 0; min-height: 44px; padding: 8px; border: 1px solid #555; border-radius: 6px; background: #f4f4f4; color: #111; font: 600 14px/1.3 Arial, sans-serif; cursor: pointer; text-align: center; }
#inf-a11y .inf-a11y-grid > button[aria-pressed="true"] { background: #1a3d6d; color: #fff; border-color: #1a3d6d; }
.inf-a11y-font { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.inf-a11y-font > span { flex: 1; font-weight: 600; }
#inf-a11y .inf-a11y-font button { min-width: 52px; flex: 0 0 auto; }
.inf-a11y-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; border-top: 1px solid #ccc; padding-top: 10px; }
.inf-a11y-link { color: #0b4f9c; text-decoration: underline; font-weight: 600; }
@media (max-width: 768px) {
  .inf-a11y { left: 12px; bottom: 20px; }
  #inf-a11y .inf-a11y-toggle { width: 42px; height: 42px; }
  .inf-a11y-panel { width: 300px; }
}

/* ── מצב: ניווט מקלדת (פוקוס מודגש גם בעכבר) ── */
html.a11y-keyboard :focus { outline: 4px solid #d4351c !important; outline-offset: 2px !important; }

/* ── מצב: עצירת אנימציות והבהובים ── */
html.a11y-stop *, html.a11y-stop *::before, html.a11y-stop *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* ── מצב: ניגודיות כהה ── */
html.a11y-dark body, html.a11y-dark body *:not(svg):not(svg *):not(img):not(video):not(.inf-a11y *) { background-color: #000 !important; color: #fff !important; border-color: #fff !important; text-shadow: none !important; box-shadow: none !important; }
html.a11y-dark body a:not(.inf-a11y *), html.a11y-dark body a:not(.inf-a11y *) * { color: #ffeb3b !important; }
html.a11y-dark body *:not(.inf-a11y *) { background-image: none !important; }
html.a11y-dark body input, html.a11y-dark body textarea, html.a11y-dark body select { background: #000 !important; color: #fff !important; border: 1px solid #fff !important; }

/* ── מצב: ניגודיות בהירה ── */
html.a11y-light body, html.a11y-light body *:not(svg):not(svg *):not(img):not(video):not(.inf-a11y *) { background-color: #fff !important; color: #000 !important; border-color: #000 !important; text-shadow: none !important; }
html.a11y-light body a:not(.inf-a11y *), html.a11y-light body a:not(.inf-a11y *) * { color: #0b3d91 !important; }
html.a11y-light body *:not(.inf-a11y *) { background-image: none !important; }

/* ── מצב: עיוורי צבעים (גווני אפור) ── */
html.a11y-gray { filter: grayscale(100%); }

/* ── מצב: גופן קריא ── */
html.a11y-readable body *:not(svg):not(svg *):not(i):not([class*="icon"]):not([class*="eicon"]):not([class*="fa-"]) { font-family: Arial, Helvetica, sans-serif !important; letter-spacing: .01em !important; }

/* ── מצב: סמן גדול ── */
html.a11y-cursor-black, html.a11y-cursor-black * { 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='M4 2l16 12-7 1 4 7-3 1.5-4-7-6 5z' fill='%23000' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E") 4 2, auto !important; }
html.a11y-cursor-white, html.a11y-cursor-white * { 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='M4 2l16 12-7 1 4 7-3 1.5-4-7-6 5z' fill='%23fff' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E") 4 2, auto !important; }

/* ── מצב: הגדלת תצוגה (כ-200%) ── */
html.a11y-zoom body > *:not(.inf-a11y):not(.inf-a11y-skip):not(script):not(style) { zoom: 2; }

/* ── מצב: הדגשת קישורים ── */
html.a11y-links body a:not(.inf-a11y *) { text-decoration: underline !important; outline: 2px solid #d4351c !important; outline-offset: 1px; background-color: #ffeb3b !important; color: #000 !important; }

/* ── מצב: הדגשת כותרות ── */
html.a11y-headings body :is(h1, h2, h3, h4, h5, h6, [role="heading"]):not(.inf-a11y *) { outline: 3px dashed #1a5fb4 !important; outline-offset: 3px; background-color: #e8f0fb !important; color: #000 !important; }

/* ── מצב: תיאור תמונות ── */
.inf-a11y-alt-label { display: block; margin: 4px 0; padding: 4px 8px; background: #111; color: #fff; font: 600 14px/1.4 Arial, sans-serif; border-radius: 4px; text-align: right; }

/* ═══ תיקוני ניגודיות (4.5:1 לפחות), הגוון הבהיר ביותר שעומד בדרישה ═══ */
html:not(.a11y-dark):not(.a11y-light) .inf-section-label:not(.inf-label-light), html:not(.a11y-dark):not(.a11y-light) .inf-product-code { color: #747474 !important; }
html:not(.a11y-dark):not(.a11y-light) .inf-footer-bottom-inner p, html:not(.a11y-dark):not(.a11y-light) .inf-footer-bottom p { color: #6a6a6a !important; }
html:not(.a11y-dark):not(.a11y-light) .inf-demo-fab, html:not(.a11y-dark):not(.a11y-light) .inf-demo-fab .inf-demo-fab-txt, html:not(.a11y-dark):not(.a11y-light) .inf-demo-fab svg { color: #1a1a1a !important; }
html:not(.a11y-dark):not(.a11y-light) .inf-demo-link { color: #927020 !important; }
html:not(.a11y-dark):not(.a11y-light) .inf-demo-link:hover { color: #7a5c19 !important; }
html:not(.a11y-dark):not(.a11y-light) .inf-service-hub__eyebrow { color: #927020 !important; }
html:not(.a11y-dark):not(.a11y-light) .ct-card-info p, html:not(.a11y-dark):not(.a11y-light) .ct-showcase-card-info p, html:not(.a11y-dark):not(.a11y-light) #ct-count { color: #707070 !important; }
html:not(.a11y-dark):not(.a11y-light) .ct-faq-eyebrow, html:not(.a11y-dark):not(.a11y-light) .ct-related-guide span { color: #6f6f6f !important; }
html:not(.a11y-dark):not(.a11y-light) .inf-blog-card__body time, html:not(.a11y-dark):not(.a11y-light) .inf-article time, html:not(.a11y-dark):not(.a11y-light) article time { color: #757575 !important; }
html:not(.a11y-dark):not(.a11y-light) .inf-service-card:not(.inf-service-card--primary) .inf-service-card__desc { color: #737373 !important; }
html:not(.a11y-dark):not(.a11y-light) .e-form__buttons .elementor-button[type="submit"], html:not(.a11y-dark):not(.a11y-light) .e-form__buttons .elementor-button[type="submit"] * { color: #1a1a1a !important; }
/* כרטיסי פורמט בעמודי המוצר (אפור שקוף על בז') וכפתור "לבקשת סט דוגמאות" (לבן על זהב) */
html:not(.a11y-dark):not(.a11y-light) .inf-fmt-sub { opacity: 1 !important; color: #6f6f6f !important; }
html:not(.a11y-dark):not(.a11y-light) .inf-format-grid div[style*="almoni-dl-aaa-bold"] { color: #6f6f6f !important; }
html:not(.a11y-dark):not(.a11y-light) a[style*="#c9a961"] { color: #1a1a1a !important; }
/* עמודי הצהרת הנגישות והפרטיות: צבע הטקסט של ברירת המחדל בעורך (#7a7a7a) */
html:not(.a11y-dark):not(.a11y-light) body.page-id-4245 .elementor-widget-text-editor, html:not(.a11y-dark):not(.a11y-light) body.page-id-4245 .elementor-widget-text-editor *, html:not(.a11y-dark):not(.a11y-light) body.page-id-4253 .elementor-widget-text-editor, html:not(.a11y-dark):not(.a11y-light) body.page-id-4253 .elementor-widget-text-editor * { color: #575757 !important; }

/* ═══ קישורים בתוך טקסט שמזוהים רק בצבע: קו תחתון ═══ */
.elementor-widget-text-editor p a[href^="tel:"], .elementor-widget-text-editor p a[href^="mailto:"] { text-decoration: underline !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
