/* Accessibility overrides layered on top of the Webflow export (WCAG 2.2 AA). */

/* Skip link (2.4.1): hidden until focused */
.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 10000;
  padding: 12px 20px;
  background: #5d0303;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}
.skip-link:focus { top: 8px; }

/* Visible keyboard focus (2.4.7 / 2.4.11): Webflow sets outline:0 on several components */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
[role="tab"]:focus-visible,
[tabindex]:focus-visible,
.w-dropdown-toggle:focus-visible,
.w-nav-button:focus-visible,
.w-slider-arrow-left:focus-visible,
.w-slider-arrow-right:focus-visible,
.w-slider-dot:focus-visible {
  outline: 3px solid #5d0303 !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #fff;
}
#main:focus { outline: none; }

/* Target size (2.5.8): nav links were 18px tall */
.nav-link.w-nav-link,
.nav-link.w-dropdown-link {
  display: inline-block;
  min-height: 24px;
  padding-top: 4px;
  padding-bottom: 4px;
}

/* Headings re-levelled for a logical outline keep their original look.
   Zero-class specificity so the existing .h2/.h3/.h4 responsive rules still win. */
h1:where(.h2) { margin-top: 0; margin-bottom: 0; font-size: 56px; font-weight: 600; line-height: 70px; }
h2:where(.h3) { color: #5d0303; text-align: center; letter-spacing: 0; margin-top: 0; margin-bottom: 0; font-size: 48px; font-weight: 500; line-height: 56px; }
h2:where(.h4) { text-align: center; margin-top: 10px; margin-bottom: 10px; font-size: 32px; font-weight: 600; line-height: 40px; }

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

/* Scroll-reveal content (opacity:0 in the HTML until Webflow IX2 fades it in) must never stay hidden:
   shown when JS is off (<noscript>), when webflow.js fails to load (.no-ix), or when the visitor prefers reduced motion. */
.no-ix .a11y-reveal { opacity: 1 !important; }
@media (prefers-reduced-motion: reduce) {
  .a11y-reveal,
  .grid-2 { opacity: 1 !important; transform: none !important; }
}

/* Footer contact details: Webflow's scroll-into-view trigger never fires on the home page footer
   (the page can't scroll far enough), leaving hours/phone/address at opacity 0. Always show them. */
.footer_section .grid-2 { opacity: 1 !important; transform: none !important; }

/* Reflow / 200% zoom (1.4.4, 1.4.10): between 480–767px the menu tab content was width:100% plus a 30px
   left margin, overflowing the viewport and forcing horizontal scrolling. */
@media screen and (max-width: 767px) { .tabs-content { width: calc(100% - 30px); } }
@media screen and (max-width: 479px) { .tabs-content { width: 100%; } }

/* Focus not obscured (2.4.11): the navbar is sticky (~110px tall) but the menu tab list stuck at top:10px,
   so the tabs slid underneath the header. Stick them below it, and keep focused/anchored elements clear of it. */
html { scroll-padding-top: 120px; }
@media screen and (min-width: 768px) { .tabs-menu { top: 120px; } }

/* ===================== Accessibility preferences widget ===================== */
.a11y-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* keep the last content clear of the floating button (2.4.11) */
body { padding-bottom: 88px; }
.a11y-trigger {
  position: fixed; right: 20px; bottom: 20px; z-index: 2147483000;
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #5d0303; color: #fff; border: 2px solid #fff; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.a11y-trigger:hover { background: #7a0707; }
.a11y-trigger:focus-visible { outline: 3px solid #131417 !important; outline-offset: 3px; box-shadow: 0 0 0 6px #fff; }
.a11y-panel {
  position: fixed; inset: auto 20px 88px auto; margin: 0;
  width: min(360px, calc(100vw - 40px)); max-height: calc(100vh - 120px); overflow: auto;
  padding: 20px; border: 2px solid #131417; border-radius: 12px;
  background: #fff; color: #131417; font-family: Outfit, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.4;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}
.a11y-panel::backdrop { background: rgba(0, 0, 0, .35); }
.a11y-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.a11y-panel h2 { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 600; color: #131417; text-align: left; letter-spacing: 0; }
.a11y-close, .a11y-size-btn, .a11y-toggle, .a11y-reset {
  font: inherit; color: #131417; background: #fff; border: 2px solid #131417; border-radius: 8px; cursor: pointer;
}
.a11y-close { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.a11y-desc { margin: 8px 0 16px; color: #3a3b3e; }
.a11y-size { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.a11y-size-label { flex: 1; font-weight: 600; }
.a11y-size-btn { min-width: 48px; height: 44px; padding: 0 12px; font-weight: 700; font-size: 16px; }
.a11y-size-btn:disabled { color: #6b6c6f; border-color: #8a8b8e; cursor: not-allowed; }
.a11y-size-val { min-width: 48px; text-align: center; font-weight: 600; }
.a11y-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.a11y-toggle { width: 100%; min-height: 48px; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; font-weight: 600; }
.a11y-toggle[aria-pressed="true"] { background: #5d0303; border-color: #5d0303; color: #fff; }
.a11y-switch { flex: none; width: 40px; height: 22px; border-radius: 11px; border: 2px solid currentColor; position: relative; }
.a11y-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: currentColor; transition: transform .15s; }
.a11y-toggle[aria-pressed="true"] .a11y-switch::after { transform: translateX(18px); }
.a11y-toggle[aria-pressed="true"] .a11y-switch::before { content: "✓"; position: absolute; left: 4px; top: -1px; font-size: 13px; line-height: 20px; }
.a11y-hint { display: block; margin: 4px 2px 0; font-size: 14px; color: #3a3b3e; }
.a11y-reset { width: 100%; min-height: 44px; font-weight: 600; }
.a11y-help { margin: 14px 0 0; font-size: 15px; }
.a11y-help a { color: #5d0303; text-decoration: underline; font-weight: 600; }
.a11y-panel :focus-visible { outline: 3px solid #5d0303 !important; outline-offset: 2px; box-shadow: 0 0 0 5px #fff; }

/* ---- Preference: text size (CSS zoom on the page content reflows like browser zoom; the widget is outside it) ---- */
html.a11y-text-1 .page_wrapper, html.a11y-text-1 body > main { zoom: 1.15; }
html.a11y-text-2 .page_wrapper, html.a11y-text-2 body > main { zoom: 1.3; }
html.a11y-text-3 .page_wrapper, html.a11y-text-3 body > main { zoom: 1.5; }

/* enlarged or spaced text must still reflow on phones: let rows and long words wrap */
html[class*="a11y-text-"] body *:not(.a11y-widget *), html.a11y-spacing body *:not(.a11y-widget *) { overflow-wrap: break-word; }
@media screen and (max-width: 767px) {
  html[class*="a11y-text-"] body *:not(.a11y-widget *), html.a11y-spacing body *:not(.a11y-widget *) { overflow-wrap: anywhere; }
}
html[class*="a11y-text-"] .title-block, html[class*="a11y-text-"] .menu-list, html[class*="a11y-text-"] .menu-list-wrapper,
html.a11y-spacing .title-block, html.a11y-spacing .menu-list, html.a11y-spacing .menu-list-wrapper { flex-wrap: wrap; min-width: 0; }

/* ---- Preference: high contrast ---- */
html.a11y-contrast body,
html.a11y-contrast body *:not(.a11y-widget):not(.a11y-widget *):not(img):not(svg):not(svg *) {
  background-color: #fff !important; background-image: none !important; color: #000 !important;
  text-shadow: none !important; box-shadow: none !important; border-color: #000 !important;
}
html.a11y-contrast body a:not(.a11y-widget *) { color: #0000c8 !important; text-decoration: underline !important; }
html.a11y-contrast .button, html.a11y-contrast .w-button { border: 2px solid #000 !important; }
html.a11y-contrast .bg-images, html.a11y-contrast .graphic, html.a11y-contrast .graphic-2, html.a11y-contrast .border-star { display: none !important; }

/* ---- Preference: highlight links ---- */
html.a11y-links body a:not(.a11y-widget *):not(.skip-link) {
  text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px !important;
  outline: 2px dashed #5d0303 !important; outline-offset: 2px;
}

/* ---- Preference: readable font ---- */
html.a11y-font body *:not(.a11y-widget *) { font-family: Verdana, Tahoma, "Segoe UI", Arial, sans-serif !important; }

/* ---- Preference: text spacing (WCAG 1.4.12 values) ---- */
html.a11y-spacing body *:not(.a11y-widget *) { line-height: 1.5 !important; letter-spacing: .12em !important; word-spacing: .16em !important; }
html.a11y-spacing body p:not(.a11y-widget *) { margin-bottom: 2em !important; }

/* ---- Preference: stop animations ---- */
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-motion .a11y-reveal, html.a11y-motion .grid-2, html.a11y-motion [data-w-id] { opacity: 1 !important; transform: none !important; }

/* ---- Preference: large cursor ---- */
html.a11y-cursor, html.a11y-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M6 3l30 27H22l8 15-6 3-8-15-10 10z' fill='%23000' stroke='%23fff' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3, auto !important;
}
