/*!
 * Intersky agency accessibility widget — drbrodsky.info build.
 * Self-contained: uses hard-coded palette matching site's primary (#004274) and accent (#ff7f50).
 * Positioned bottom-right (opposite the FAB WhatsApp+Call on the left).
 */

/* Toggle button */
#a11y-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2147483000;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #004274;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#a11y-toggle:hover,
#a11y-toggle:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}
#a11y-toggle:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}
#a11y-toggle svg { width: 28px; height: 28px; }

/* Panel — slides in from the right edge */
#a11y-panel {
  position: fixed;
  top: 0;
  right: -360px;
  width: 320px;
  max-width: 90vw;
  height: 100vh;
  background: #ffffff;
  color: #1a2332;
  z-index: 2147483001;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  padding: 24px 20px 32px;
  transition: right 0.3s ease;
  font-family: 'Assistant', 'Open Sans Hebrew', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  box-sizing: border-box;
  direction: rtl;
  text-align: right;
}
#a11y-panel.open { right: 0; }

#a11y-panel h2 {
  font-size: 1.2rem;
  color: #004274;
  margin: 0 0 16px;
  font-weight: 700;
}
#a11y-panel .a11y-close {
  position: absolute;
  top: 12px;
  left: 12px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #1a2332;
  padding: 4px 8px;
  border-radius: 6px;
}
#a11y-panel .a11y-close:hover,
#a11y-panel .a11y-close:focus-visible { background: #f0f5f9; }
#a11y-panel .a11y-close:focus-visible { outline: 2px solid #004274; outline-offset: 2px; }

/* Action buttons */
#a11y-panel .a11y-btn {
  display: block;
  width: 100%;
  text-align: right;
  background: #f5f8fb;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  color: #1a2332;
  font-family: inherit;
  transition: background 0.12s ease, border-color 0.12s ease;
}
#a11y-panel .a11y-btn:hover { background: #e0f4fc; }
#a11y-panel .a11y-btn:focus-visible {
  outline: 2px solid #004274;
  outline-offset: 1px;
  border-color: #004274;
}

/* Report block */
#a11y-panel .a11y-report {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
  font-size: 0.88rem;
  color: #5a6b7e;
  line-height: 1.65;
}
#a11y-panel .a11y-report strong { color: #1a2332; }
#a11y-panel .a11y-report a { color: #004274; font-weight: 600; text-decoration: underline; }

#a11y-panel .a11y-statement-link { margin-top: 14px; }
#a11y-panel .a11y-statement-link a {
  color: #004274;
  font-size: 0.9rem;
  text-decoration: underline;
}

/* State classes applied to <html> */
html.a11y-contrast { filter: contrast(1.3); }
html.a11y-invert   { filter: invert(1) hue-rotate(180deg); }
html.a11y-grayscale img,
html.a11y-grayscale .elementor-widget-image img,
html.a11y-grayscale [style*="background-image"] { filter: grayscale(1); }
html.a11y-underline a { text-decoration: underline !important; }
html.a11y-no-anim *,
html.a11y-no-anim *::before,
html.a11y-no-anim *::after {
  animation-duration: 0ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0ms !important;
  scroll-behavior: auto !important;
}
html.a11y-readable body,
html.a11y-readable body * {
  font-family: Arial, 'Assistant', sans-serif !important;
  letter-spacing: 0.3px;
}

/* Print — hide the widget */
@media print {
  #a11y-toggle,
  #a11y-panel { display: none !important; }
}

/* Small screens — full-width panel */
@media (max-width: 480px) {
  #a11y-panel { width: 100vw; max-width: 100vw; }
  #a11y-toggle { width: 48px; height: 48px; bottom: 16px; right: 16px; }
  #a11y-toggle svg { width: 24px; height: 24px; }
}

/* Accessibility statement page (used by /accessibility/) */
.a11y-page {
  padding: 64px 24px 96px;
  max-width: 820px;
  margin: 0 auto;
  font-family: 'Assistant', 'Open Sans Hebrew', system-ui, -apple-system, sans-serif;
  color: #1a2332;
  line-height: 1.75;
  direction: rtl;
  text-align: right;
}
.a11y-page h1 {
  color: #002d54;
  margin: 0 0 24px;
  font-size: 2rem;
  font-weight: 800;
}
.a11y-page h2 {
  color: #004274;
  margin: 32px 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
}
.a11y-page p { margin: 0 0 14px; }
.a11y-page a {
  color: #004274;
  font-weight: 600;
  text-decoration: underline;
}
.a11y-page .a11y-back-home {
  display: inline-block;
  margin-top: 32px;
  padding: 12px 24px;
  background: #004274;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.a11y-page .a11y-back-home:hover { background: #002d54; }

/* Skip-link (for /accessibility/ and any future page using it) */
.skip-link {
  position: absolute;
  right: -9999px;
  top: 0;
  background: #004274;
  color: #fff;
  padding: 10px 16px;
  z-index: 2147483002;
  font-weight: 700;
}
.skip-link:focus { right: 8px; top: 8px; }
