/* Site-wide accessibility controls */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  transform: translateY(-160%);
  background: #ffffff;
  color: #071b2e;
  border: 2px solid #1d6fc4;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(7, 27, 46, .18);
}
.skip-link:focus { transform: translateY(0); outline: 3px solid #f59e0b; outline-offset: 2px; }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

.a11y-toggle {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  background: #071b2e;
  color: #ffffff;
  font: 700 14px/1.1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 10px 28px rgba(7, 27, 46, .28);
  cursor: pointer;
}
.a11y-toggle:hover { background: #0b2a4a; }
.a11y-toggle[aria-expanded="true"] { background: #1d6fc4; }
.a11y-toggle svg { flex: 0 0 auto; }

.a11y-panel {
  position: fixed;
  right: 20px;
  bottom: 82px;
  z-index: 9998;
  width: min(320px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid rgba(11, 42, 74, .14);
  border-radius: 12px;
  background: #ffffff;
  color: #071b2e;
  box-shadow: 0 18px 50px rgba(7, 27, 46, .24);
}
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 {
  margin: 0 0 6px;
  color: #071b2e;
  font: 800 18px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
.a11y-panel p {
  margin: 0 0 14px;
  color: #2c4a63;
  font: 500 13px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.a11y-options { display: grid; gap: 10px; }
.a11y-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(11, 42, 74, .16);
  border-radius: 8px;
  background: #f7f9fb;
  color: #071b2e;
  font: 700 14px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
  cursor: pointer;
}
.a11y-option:hover { border-color: #1d6fc4; background: #edf6fc; }
.a11y-option[aria-pressed="true"] { background: #daf0fb; border-color: #1d6fc4; color: #071b2e; }
.a11y-option span:last-child {
  flex: 0 0 auto;
  min-width: 42px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(11, 42, 74, .1);
  text-align: center;
  font-size: 11px;
  text-transform: uppercase;
}
.a11y-reset {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  border: 1px solid rgba(11, 42, 74, .2);
  border-radius: 8px;
  background: #ffffff;
  color: #0b2a4a;
  font: 800 13px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}

body.a11y-text-large { zoom: 1.15; }
body.a11y-readable-font, body.a11y-readable-font *:not(svg):not(path) {
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0 !important;
}
body.a11y-underline-links a { text-decoration: underline !important; text-underline-offset: .18em; }
body.a11y-reduce-motion *, body.a11y-reduce-motion *::before, body.a11y-reduce-motion *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
  transition-duration: .001ms !important;
}
body.a11y-high-contrast { background: #ffffff !important; color: #000000 !important; }
body.a11y-high-contrast :where(section, footer, header, nav, div, article, aside) { background-image: none !important; }
body.a11y-high-contrast :where(p, li, span, small, label, input, textarea, select, summary, h1, h2, h3, h4, h5, h6) { color: #000000 !important; }
body.a11y-high-contrast :where(a, button) { color: #003c8f !important; }
body.a11y-high-contrast :where(.btn-primary, .a11y-toggle, .mob-call, .mob-book, .mc-call, .mc-book) {
  background: #003c8f !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
body.a11y-high-contrast :where(input, textarea, select, details, .sidebar-card, .panel-card, .hero-card, .service-card, .a11y-panel) {
  border: 2px solid #000000 !important;
  box-shadow: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}
@media (max-width: 768px) {
  .a11y-toggle { right: 14px; bottom: 82px; padding: 12px; }
  .a11y-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .a11y-panel { right: 14px; bottom: 138px; }
}