/* ============================================================
   Accessibility Widget — Law Offices of Rose C. Crunkleton, LLC
   ============================================================ */

#a11y-root { all: initial; }

#a11y-root, #a11y-root * {
  box-sizing: border-box;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Floating trigger button ---------- */
.a11y-fab {
  position: fixed;
  left: 22px;
  bottom: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(160deg, #16304f, #0a1626);
  border: 2px solid rgba(201, 162, 79, 0.6);
  box-shadow: 0 10px 28px rgba(10, 22, 38, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2147483000;
  transition: transform 0.3s cubic-bezier(.22,1,.36,1), box-shadow 0.3s;
  padding: 0;
}
.a11y-fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 34px rgba(10, 22, 38, 0.5); }
.a11y-fab:focus-visible { outline: 3px solid #c9a24f; outline-offset: 3px; }
.a11y-fab svg { width: 34px; height: 34px; }
@media (max-width: 700px) {
  .a11y-fab { bottom: 96px; left: 16px; width: 54px; height: 54px; }
  .a11y-fab svg { width: 30px; height: 30px; }
}

/* Hidden-interface edge tab */
.a11y-edge-tab {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg) translateX(50%);
  transform-origin: left center;
  background: #16304f;
  color: #f2e6c9;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 0 0 8px 8px;
  cursor: pointer;
  z-index: 2147483000;
  display: none;
  border: none;
}
.a11y-edge-tab.is-visible { display: block; }

/* ---------- Panel ---------- */
.a11y-panel {
  position: fixed;
  left: 22px;
  bottom: 92px;
  width: 400px;
  max-width: calc(100vw - 32px);
  max-height: min(680px, calc(100vh - 120px));
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(10, 22, 38, 0.35);
  z-index: 2147483001;
  overflow: hidden;
  display: none;
  flex-direction: column;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.25s cubic-bezier(.22,1,.36,1), transform 0.25s cubic-bezier(.22,1,.36,1);
}
.a11y-panel.is-open { display: flex; opacity: 1; transform: translateY(0) scale(1); }
@media (max-width: 700px) {
  .a11y-panel { left: 10px; right: 10px; width: auto; bottom: 168px; max-height: min(600px, calc(100vh - 190px)); }
}

.a11y-panel-header {
  background: linear-gradient(150deg, #16304f, #0a1626);
  color: #fff;
  padding: 18px 20px 16px;
  flex-shrink: 0;
  position: relative;
}
.a11y-panel-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.a11y-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.a11y-close:hover { background: rgba(255,255,255,0.22); }
.a11y-lang { font-size: 12px; color: rgba(255,255,255,0.7); font-weight: 600; letter-spacing: 0.04em; }
.a11y-panel-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  text-align: center;
  margin: 4px 0 14px;
}
.a11y-toprow { display: flex; gap: 8px; }
.a11y-toprow button {
  flex: 1;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  border-radius: 999px;
  padding: 8px 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  white-space: nowrap;
}
.a11y-toprow button:hover { background: rgba(255,255,255,0.2); }
.a11y-toprow svg { width: 13px; height: 13px; flex-shrink: 0; }

.a11y-panel-body {
  overflow-y: auto;
  padding: 18px 20px 26px;
  background: #faf7f0;
}
.a11y-panel-body::-webkit-scrollbar { width: 8px; }
.a11y-panel-body::-webkit-scrollbar-thumb { background: #ece3d0; border-radius: 8px; }

.a11y-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #1c2029;
  margin: 22px 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.a11y-section-title:first-child { margin-top: 0; }
.a11y-lead { font-size: 13px; color: #656c7b; margin-bottom: 4px; }

/* Profile toggle rows */
.a11y-profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(28,32,41,0.08);
}
.a11y-profile-row:last-child { border-bottom: none; }
.a11y-profile-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: #f4efe2;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.a11y-profile-icon svg { width: 18px; height: 18px; color: #16304f; }
.a11y-profile-text { flex-grow: 1; min-width: 0; }
.a11y-profile-text .t { font-size: 13.5px; font-weight: 700; color: #1c2029; }
.a11y-profile-text .d { font-size: 11.5px; color: #656c7b; margin-top: 2px; }

/* Switch */
.a11y-switch {
  position: relative;
  width: 62px;
  height: 30px;
  border-radius: 999px;
  background: #e2ddd0;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  padding: 3px;
  display: flex;
  align-items: center;
}
.a11y-switch::before {
  content: "OFF";
  position: absolute;
  left: 8px;
  font-size: 8.5px;
  font-weight: 800;
  color: #8a8272;
  letter-spacing: 0.02em;
}
.a11y-switch::after {
  content: "";
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  transition: transform 0.25s cubic-bezier(.22,1,.36,1);
  position: relative;
  z-index: 1;
}
.a11y-switch.is-on { background: linear-gradient(135deg, #c9a24f, #a3792f); }
.a11y-switch.is-on::before { content: "ON"; left: auto; right: 9px; color: rgba(10,22,38,0.65); }
.a11y-switch.is-on::after { transform: translateX(32px); }
.a11y-switch:focus-visible { outline: 3px solid #16304f; outline-offset: 2px; }

/* Grid cards (content / color / orientation adjustments) */
.a11y-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.a11y-card {
  background: #fff;
  border: 1.5px solid rgba(28,32,41,0.1);
  border-radius: 12px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 76px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}
.a11y-card:hover { border-color: #c9a24f; }
.a11y-card svg { width: 20px; height: 20px; color: #16304f; }
.a11y-card span.label { font-size: 11.5px; font-weight: 600; color: #1c2029; line-height: 1.25; }
.a11y-card.is-active { background: linear-gradient(150deg, #16304f, #0a1626); border-color: #16304f; }
.a11y-card.is-active svg { color: #ddbd7a; }
.a11y-card.is-active span.label { color: #fff; }
.a11y-card:focus-visible { outline: 3px solid #16304f; outline-offset: 2px; }

/* Stepper card */
.a11y-stepper {
  background: #fff;
  border: 1.5px solid rgba(28,32,41,0.1);
  border-radius: 12px;
  padding: 10px 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 76px;
  justify-content: center;
}
.a11y-stepper .label-row { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: #1c2029; }
.a11y-stepper .label-row svg { width: 16px; height: 16px; color: #16304f; }
.a11y-stepper-controls { display: flex; align-items: center; gap: 8px; width: 100%; }
.a11y-stepper-controls button {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(150deg, #16304f, #0a1626);
  color: #ddbd7a;
  font-size: 13px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.a11y-stepper-controls button:disabled { opacity: 0.35; cursor: not-allowed; }
.a11y-stepper-controls .val {
  flex-grow: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #656c7b;
  background: #f4efe2;
  border-radius: 999px;
  padding: 4px 6px;
}

/* Color swatch expander */
.a11y-color-card {
  grid-column: span 2;
  background: #fff;
  border: 1.5px solid rgba(28,32,41,0.1);
  border-radius: 12px;
  padding: 12px;
}
.a11y-color-card .head {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  color: #1c2029;
}
.a11y-color-card .head svg.chev { width: 14px; height: 14px; transition: transform 0.25s; }
.a11y-color-card.is-open .head svg.chev { transform: rotate(180deg); }
.a11y-swatches { display: none; margin-top: 12px; }
.a11y-color-card.is-open .a11y-swatches { display: block; }
.a11y-swatch-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 10px; }
.a11y-swatch {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.08);
  cursor: pointer;
  padding: 0;
}
.a11y-swatch.is-selected { outline: 2px solid #16304f; outline-offset: 2px; }
.a11y-cancel-btn {
  display: block;
  margin: 0 auto;
  background: none;
  border: none;
  color: #a3792f;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* Useful links card */
.a11y-links-card {
  grid-column: span 2;
  background: #fff;
  border: 1.5px solid rgba(28,32,41,0.1);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.a11y-links-card svg { width: 18px; height: 18px; color: #16304f; flex-shrink: 0; }
.a11y-links-card select {
  flex-grow: 1;
  border: 1px solid rgba(28,32,41,0.15);
  border-radius: 8px;
  padding: 8px 8px;
  font-size: 12.5px;
  background: #faf7f0;
  color: #1c2029;
}

.a11y-footer-note {
  margin-top: 20px;
  text-align: center;
  font-size: 10.5px;
  color: #99a0ac;
  line-height: 1.5;
}
.a11y-footer-note a { color: #a3792f; font-weight: 600; }

/* ============================================================
   GLOBAL EFFECT CLASSES — applied to <html>/<body> by the widget
   ============================================================ */

html.a11y-stop-animations, html.a11y-stop-animations * , html.a11y-stop-animations *::before, html.a11y-stop-animations *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

html.a11y-readable-font body, html.a11y-readable-font body * {
  font-family: Arial, Helvetica, "Segoe UI", sans-serif !important;
}

body.a11y-highlight-titles h1, body.a11y-highlight-titles h2, body.a11y-highlight-titles h3, body.a11y-highlight-titles h4 {
  background: #fff6d6 !important;
  outline: 2px dashed #a3792f !important;
  outline-offset: 3px;
  color: #1c2029 !important;
}

body.a11y-highlight-links a {
  outline: 2px solid #a3792f !important;
  outline-offset: 2px;
  background: #fff6d6 !important;
  color: #0a1626 !important;
  text-decoration: underline !important;
}

body.a11y-align-left main, body.a11y-align-left main * { text-align: left !important; }
body.a11y-align-center main, body.a11y-align-center main * { text-align: center !important; }
body.a11y-align-right main, body.a11y-align-right main * { text-align: right !important; }

html.a11y-saturate-high body { filter: saturate(2); }
html.a11y-saturate-low body { filter: saturate(0.45); }
html.a11y-monochrome body { filter: grayscale(1); }

body.a11y-contrast-high, body.a11y-contrast-high * {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}
body.a11y-contrast-high a { color: #ffe14d !important; }
body.a11y-contrast-high img { filter: grayscale(1) contrast(1.2); }

body.a11y-contrast-dark { background: #0a1626 !important; }
body.a11y-contrast-dark main, body.a11y-contrast-dark .site-footer, body.a11y-contrast-dark .site-header {
  background: #0f1f36 !important;
  color: #f2e6c9 !important;
}
body.a11y-contrast-dark main *, body.a11y-contrast-dark .site-header a, body.a11y-contrast-dark .site-header span {
  color: #f2e6c9 !important;
  background-color: transparent;
}
body.a11y-contrast-dark .feature-card, body.a11y-contrast-dark .pa-card, body.a11y-contrast-dark .testi-card, body.a11y-contrast-dark .team-card, body.a11y-contrast-dark .res-card, body.a11y-contrast-dark .form-card {
  background: #16304f !important;
  border-color: rgba(255,255,255,0.15) !important;
}

body.a11y-contrast-light, body.a11y-contrast-light main, body.a11y-contrast-light section {
  background: #ffffff !important;
}
body.a11y-contrast-light main *, body.a11y-contrast-light .hero, body.a11y-contrast-light .page-hero {
  background: #ffffff !important;
  color: #111 !important;
}
body.a11y-contrast-light .hero *, body.a11y-contrast-light .page-hero * { color: #111 !important; }

body.a11y-hide-images img:not(.a11y-keep) { visibility: hidden !important; }

body.a11y-read-mode .site-header,
body.a11y-read-mode .mobile-panel,
body.a11y-read-mode .mobile-callbar,
body.a11y-read-mode .hero,
body.a11y-read-mode .page-hero,
body.a11y-read-mode .photo-band,
body.a11y-read-mode .pa-grid,
body.a11y-read-mode .hero-badges,
body.a11y-read-mode .site-footer,
body.a11y-read-mode img,
body.a11y-read-mode .feature-icon,
body.a11y-read-mode .cta-band .actions,
body.a11y-read-mode .breadcrumb {
  display: none !important;
}
body.a11y-read-mode main section {
  background: #fff !important;
  max-width: 720px !important;
  margin: 0 auto !important;
  padding: 28px 20px !important;
  float: none !important;
}
body.a11y-read-mode main p, body.a11y-read-mode main li {
  font-size: 1.15rem !important;
  line-height: 1.9 !important;
  color: #1c2029 !important;
  text-align: left !important;
}
body.a11y-read-mode .pa-detail, body.a11y-read-mode .split, body.a11y-read-mode .grid-2, body.a11y-read-mode .grid-3, body.a11y-read-mode .testi-track, body.a11y-read-mode .res-grid {
  display: block !important;
}

html.a11y-focus-strong *:focus,
html.a11y-focus-strong *:focus-visible {
  outline: 3px solid #ff5f1f !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px rgba(255, 95, 31, 0.25) !important;
}

html.a11y-keyboard-nav .skip-link { left: 8px !important; top: 8px !important; }

.a11y-hover-highlight-target {
  outline: 3px solid #ff5f1f !important;
  outline-offset: 2px !important;
  background: rgba(255, 95, 31, 0.08) !important;
}

.a11y-reading-guide-bar {
  position: fixed;
  left: 0; right: 0;
  height: 40px;
  background: rgba(255, 225, 77, 0.35);
  border-top: 2px solid #a3792f;
  border-bottom: 2px solid #a3792f;
  pointer-events: none;
  z-index: 2147482999;
  display: none;
}
.a11y-reading-guide-bar.is-active { display: block; }

.a11y-reading-mask-top, .a11y-reading-mask-bottom {
  position: fixed;
  left: 0; right: 0;
  background: rgba(10, 22, 38, 0.82);
  pointer-events: none;
  z-index: 2147482998;
  display: none;
}
.a11y-reading-mask-top.is-active, .a11y-reading-mask-bottom.is-active { display: block; }

.a11y-live-region {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

html.a11y-cursor-black, html.a11y-cursor-black * { cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 24 24"><path d="M3 2l7.07 17 2.51-7.39L20 9.07z" fill="black" stroke="white" stroke-width="1"/></svg>') 2 2, auto !important; }
html.a11y-cursor-white, html.a11y-cursor-white * { cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 24 24"><path d="M3 2l7.07 17 2.51-7.39L20 9.07z" fill="white" stroke="black" stroke-width="1"/></svg>') 2 2, auto !important; }

.a11y-magnifier-lens {
  position: fixed;
  pointer-events: none;
  z-index: 2147482997;
  border: 3px solid #a3792f;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  padding: 6px 10px;
  font-size: 22px;
  font-weight: 600;
  color: #1c2029;
  max-width: 320px;
  display: none;
}
.a11y-magnifier-lens.is-active { display: block; }
