/* lawys.co.il — accessibility layer (WCAG 2.1 AA). Loaded on every page. */

/* 1) Contrast: faded gold / faded white text classes used across the site fail 4.5:1 on the dark backgrounds.
      They are lifted to solid colours that pass on every background the site uses (darkest #0b0b0f, lightest card #1e1d16). */
.text-gold\/20,.text-gold\/30,.text-gold\/40,.text-gold\/50,.text-gold\/60,.text-gold\/70,.text-gold\/80,.text-gold\/90{color:#c9a43a!important}
.text-warm-white\/20,.text-warm-white\/30,.text-warm-white\/35,.text-warm-white\/40,.text-warm-white\/45,.text-warm-white\/50,.text-warm-white\/60{color:#aaa59c!important}
.placeholder\:text-warm-white\/30::placeholder,.placeholder\:text-warm-white\/40::placeholder,.placeholder\:text-warm-white\/50::placeholder{color:#aaa59c!important;opacity:1}

.text-amber-200\/20,.text-amber-200\/30,.text-amber-200\/40,.text-amber-200\/50,.text-amber-200\/60{color:#d6c992!important}
.text-\[\#444\],.text-\[\#555\],.text-\[\#666\],.text-\[\#777\]{color:#a8a8a8!important}
.text-xs.opacity-70,.text-sm.opacity-70,.text-xs.opacity-60,.text-sm.opacity-60{opacity:.92!important}
p a[href]:not(.a11y-skip){text-decoration:underline;text-underline-offset:2px}
.bg-gold\/5.text-gold,.bg-gold\/10.text-gold,.bg-gold\/15.text-gold,.bg-gold\/20.text-gold{color:#d4ae45!important}
a[href^="tel:"]:not(.a11y-skip),a[href^="mailto:"]{text-decoration:underline;text-underline-offset:2px}
footer{padding-bottom:76px!important}
/* 2) Skip link and visible keyboard focus */
.a11y-skip{position:fixed;top:-60px;inset-inline-start:12px;z-index:2147483646;background:#c9a43a;color:#0b0b0f;padding:10px 16px;border-radius:6px;font:600 15px/1.2 system-ui,Arial,sans-serif;text-decoration:none;transition:top .15s}
.a11y-skip:focus{top:12px;outline:3px solid #fff;outline-offset:2px}
:focus-visible{outline:3px solid #ffd54a!important;outline-offset:2px!important}

/* 3) Toolbar */
.a11y-btn{position:fixed;bottom:16px;left:16px;z-index:2147483645;width:52px;height:52px;border-radius:50%;border:2px solid #c9a43a;background:#0b0b0f;color:#c9a43a;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.5)}
.a11y-btn svg{width:30px;height:30px}
.a11y-panel{position:fixed;bottom:78px;left:16px;z-index:2147483645;width:min(320px,calc(100vw - 32px));max-height:calc(100vh - 100px);overflow:auto;background:#111013;color:#f0ede5;border:1px solid #c9a43a;border-radius:10px;padding:14px;font:15px/1.45 system-ui,Arial,sans-serif;box-shadow:0 10px 30px rgba(0,0,0,.6)}
.a11y-panel[hidden]{display:none}
.a11y-panel h2{margin:0 0 10px;font-size:17px;color:#c9a43a}
.a11y-panel .a11y-row{display:flex;gap:8px;margin-bottom:8px}
.a11y-panel button.a11y-opt{flex:1;min-height:44px;background:#1c1b1f;color:#f0ede5;border:1px solid #55524a;border-radius:7px;padding:8px;font:inherit;cursor:pointer;text-align:center}
.a11y-panel button.a11y-opt[aria-pressed="true"]{background:#c9a43a;color:#0b0b0f;border-color:#c9a43a;font-weight:700}
.a11y-panel .a11y-size{font-size:14px;color:#cfcac0;margin:2px 0 6px}
.a11y-panel .a11y-links{display:flex;justify-content:space-between;gap:10px;margin-top:10px;font-size:14px}
.a11y-panel .a11y-links a{color:#e3c15a;text-decoration:underline}
.a11y-panel .a11y-close{position:absolute;top:8px;inset-inline-end:8px;width:36px;height:36px;background:none;border:0;color:#f0ede5;font-size:22px;cursor:pointer}

/* 4) Modes switched on by the toolbar */
html.a11y-fs-1{font-size:110%!important}
html.a11y-fs-2{font-size:120%!important}
html.a11y-fs-3{font-size:135%!important}
html.a11y-fs-4{font-size:150%!important}
html.a11y-contrast body,html.a11y-contrast body *:not(.a11y-panel):not(.a11y-panel *):not(.a11y-btn):not(.a11y-btn *):not(img):not(svg):not(svg *):not(video){background-color:#000!important;color:#fff!important;border-color:#fff!important;text-shadow:none!important;-webkit-text-fill-color:#fff!important;background-image:none!important}
html.a11y-contrast body a:not(.a11y-panel a),html.a11y-contrast body a *{color:#ffeb3b!important;-webkit-text-fill-color:#ffeb3b!important}
html.a11y-links a:not(.a11y-panel a){text-decoration:underline!important;text-underline-offset:3px!important;outline:2px dashed #ffd54a!important;outline-offset:2px!important}
html.a11y-font body,html.a11y-font body *:not(svg):not(svg *){font-family:Arial,"Noto Sans Hebrew","Noto Sans Arabic",system-ui,sans-serif!important;letter-spacing:.01em!important}
html.a11y-noanim *,html.a11y-noanim *::before,html.a11y-noanim *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media print{.a11y-btn,.a11y-panel,.a11y-skip{display:none!important}}
