/* Optional display preferences. Load after the normal site styles.
   These controls supplement semantic/accessibility fixes; they do not replace them. */

#hz-a11y,
#hz-a11y-panel {
  --a11y-blue: #0075be;
  --a11y-blue-dark: #00539c;
  --a11y-ink: #202830;
  --a11y-line: #b8c8d3;
  color: var(--a11y-ink);
  font-family: Lato, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
  text-shadow: none;
  color-scheme: light;
}

:is(#hz-a11y, #hz-a11y-panel) *,
:is(#hz-a11y, #hz-a11y-panel) *::before,
:is(#hz-a11y, #hz-a11y-panel) *::after {
  box-sizing: border-box;
}

:is(#hz-a11y, #hz-a11y-panel) [hidden],
#hz-a11y[hidden],
#hz-a11y-panel[hidden],
#hz-a11y-panel:not([open]) {
  display: none !important;
}

:is(#hz-a11y, #hz-a11y-panel) button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--a11y-line);
  border-radius: 3px;
  background: #fff;
  color: var(--a11y-ink);
  font-family: Lato, system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 16px !important;
  font-weight: 700;
  line-height: 1.4 !important;
  letter-spacing: normal !important;
  text-align: center;
  text-transform: none;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

:is(#hz-a11y, #hz-a11y-panel) button:disabled {
  border-style: dashed;
  color: #576774;
  background: #f1f5f7;
  opacity: 1;
  cursor: not-allowed;
}

:is(#hz-a11y, #hz-a11y-panel) :is(button, a):focus-visible {
  outline: 3px solid var(--a11y-blue-dark);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #fff;
}

#hz-a11y .hz-a11y-toggle {
  position: fixed;
  z-index: 9998;
  left: max(20px, env(safe-area-inset-left));
  bottom: max(20px, env(safe-area-inset-bottom));
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  padding: 11px;
  border: 2px solid #fff;
  border-radius: 50% !important;
  color: #fff;
  background: var(--a11y-blue);
  box-shadow: 0 3px 14px rgb(0 0 0 / 22%);
}

#hz-a11y .hz-a11y-toggle svg {
  display: block;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  pointer-events: none;
}

#hz-a11y-panel {
  position: fixed;
  z-index: 9999;
  inset: auto auto max(88px, calc(env(safe-area-inset-bottom) + 68px)) max(20px, env(safe-area-inset-left));
  width: 380px;
  max-width: calc(100vw - 24px);
  height: auto;
  max-height: calc(100vh - 110px);
  max-height: calc(100dvh - 110px);
  margin: 0;
  padding: 22px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border: 1px solid var(--a11y-line);
  border-top: 4px solid var(--a11y-blue);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 36px rgb(16 35 49 / 25%);
}

#hz-a11y-panel[open] {
  display: block;
}

#hz-a11y-panel::backdrop {
  background: rgb(18 34 46 / 10%);
}

#hz-a11y-panel .hz-a11y-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--a11y-line);
}

#hz-a11y-panel .hz-a11y-head h2 {
  min-width: 0;
  margin: 5px 0 0;
  color: var(--a11y-ink);
  font-family: inherit !important;
  font-size: 22px !important;
  font-weight: 700;
  line-height: 1.3 !important;
  letter-spacing: normal !important;
  overflow-wrap: anywhere;
}

#hz-a11y-panel .hz-a11y-head button {
  flex: 0 0 auto;
  padding: 8px;
}

#hz-a11y-panel .hz-a11y-head button svg {
  display: block;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

#hz-a11y-panel .hz-a11y-row {
  margin: 0 0 16px;
  padding: 0;
}

#hz-a11y-panel .hz-a11y-row > :is(p, span, label, legend) {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  color: var(--a11y-ink);
  font-size: 16px !important;
  font-weight: 700;
  line-height: 1.5 !important;
}

#hz-a11y-panel .hz-a11y-size-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

#hz-a11y-panel .hz-a11y-size-controls button {
  flex: 1 1 0;
}

#hz-a11y-panel .hz-a11y-percent {
  display: block;
  flex: 0 0 auto;
  min-width: 62px;
  margin: 0;
  color: var(--a11y-ink);
  font-size: 16px !important;
  font-weight: 700;
  line-height: 1.5 !important;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

#hz-a11y-panel .hz-a11y-setting {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 0 0 10px;
  text-align: left;
}

#hz-a11y-panel .hz-a11y-setting::after {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 2px solid #6b7d89;
  border-radius: 3px;
  background: #fff;
}

#hz-a11y-panel .hz-a11y-setting[aria-pressed="true"] {
  border-color: var(--a11y-blue-dark);
  background: #e9f4fb;
  color: #004d82;
}

#hz-a11y-panel .hz-a11y-setting[aria-pressed="true"]::after {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: var(--a11y-blue-dark);
  background: var(--a11y-blue-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

#hz-a11y-panel .hz-a11y-speech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

#hz-a11y-panel .hz-a11y-speech button {
  flex: 1 1 125px;
}

#hz-a11y-panel .hz-a11y-speech button:first-child:not(:disabled) {
  border-color: var(--a11y-blue);
  background: var(--a11y-blue);
  color: #fff;
}

#hz-a11y-panel .hz-a11y-note {
  margin: 16px 0 0;
  color: #465764;
  font-size: 16px !important;
  line-height: 1.5 !important;
  letter-spacing: normal !important;
}

#hz-a11y-panel .hz-a11y-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--a11y-line);
}

#hz-a11y-panel .hz-a11y-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #00539c;
  font-size: 16px !important;
  line-height: 1.5 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

:is(#hz-a11y, #hz-a11y-panel) .hz-a11y-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

/* Keep the controls themselves at stable px sizes when page text is enlarged.
   Browser zoom still enlarges the complete UI, including these controls. */
:is(#hz-a11y, #hz-a11y-panel) :is(p, span, label, legend, output, a) {
  font-size: 16px !important;
}

/* Strong contrast without page-wide filters: photographic pixels are untouched.
   Explicit text backgrounds keep text legible even over existing background images.
   Excluding the widget IDs also gives these user-preference rules sufficient
   specificity to override the existing Elementor !important color declarations. */
html.hz-a11y-contrast,
html.hz-a11y-contrast body {
  color: #fff !important;
  background-color: #000 !important;
  color-scheme: dark;
}

html.hz-a11y-contrast body *:not(
  #hz-a11y, #hz-a11y *, #hz-a11y-panel, #hz-a11y-panel *,
  img, picture, video, canvas, iframe, svg, svg *, source
) {
  color: #fff !important;
  background-color: #000 !important;
  border-color: #fff !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

html.hz-a11y-contrast body :is(a, a *):not(
  #hz-a11y, #hz-a11y *, #hz-a11y-panel, #hz-a11y-panel *,
  img, picture, video, canvas, iframe, svg, svg *, source
) {
  color: #ffeb3b !important;
}

html.hz-a11y-contrast body :is(
  button, [role="button"], input[type="submit"], input[type="button"],
  .button, .elementor-button, .hz-btn, .hb-btn, .et-btn, .hp-btn, .hc-btn, .hk-btn,
  .hz-r-btn, .hz-job-actions > a, .hz-job-apply, .footer-action, .site-footer .action
):not(#hz-a11y *, #hz-a11y-panel *) {
  border: 2px solid #fff !important;
  color: #ffeb3b !important;
  background: #000 !important;
}

html.hz-a11y-contrast body :is(input, textarea, select):not(#hz-a11y *, #hz-a11y-panel *) {
  border: 2px solid #fff !important;
  accent-color: #ffeb3b;
}

html.hz-a11y-contrast body :is(input, textarea)::placeholder {
  color: #ddd !important;
  opacity: 1;
}

html.hz-a11y-contrast body .menu-toggle span:not(#hz-a11y *, #hz-a11y-panel *) {
  background-color: #ffeb3b !important;
}

html.hz-a11y-contrast body :is(a, button, input, textarea, select, summary, [tabindex]):not(
  #hz-a11y *, #hz-a11y-panel *
):focus-visible {
  outline: 3px solid #ffeb3b !important;
  outline-offset: 4px !important;
}

html.hz-a11y-contrast body :is(
  .hz-hero, .hb-hero-media, .et-hero-media, .hp-hero-media, .hc-hero-media,
  .hk-hero-media, .hz-r-hero-image, .site-footer, .elementor-background-overlay,
  .elementor-101 [data-id="3f906cc"]
)::before,
html.hz-a11y-contrast body :is(
  .hz-hero, .hb-hero-media, .et-hero-media, .hp-hero-media, .hc-hero-media,
  .hk-hero-media, .hz-r-hero-image, .site-footer, .elementor-background-overlay,
  .elementor-101 [data-id="3f906cc"]
)::after {
  background: transparent !important;
  box-shadow: none !important;
}

html.hz-a11y-contrast body :is(
  .brand, .brand img, .hz-partners__card, .hz-partners__card img,
  .hz-partners__logo, .hz-partners__logo img
):not(#hz-a11y *, #hz-a11y-panel *) {
  background-color: #fff !important;
}

html.hz-a11y-contrast body :is(
  .brand img, .hz-partners__card img, .hz-partners__logo img
):not(#hz-a11y *, #hz-a11y-panel *) {
  filter: none !important;
  opacity: 1 !important;
}

html.hz-a11y-contrast body :is(.footer-logo, .footer-logo img):not(#hz-a11y *, #hz-a11y-panel *) {
  background-color: #000 !important;
  filter: none !important;
  opacity: 1 !important;
}

html.hz-a11y-links body a:not(#hz-a11y *, #hz-a11y-panel *) {
  text-decoration-line: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 4px !important;
  text-decoration-skip-ink: auto;
}

html.hz-a11y-readable body *:not(
  #hz-a11y, #hz-a11y *, #hz-a11y-panel, #hz-a11y-panel *,
  svg, svg *, img, picture, video, canvas, iframe
) {
  font-family: Verdana, Arial, system-ui, sans-serif !important;
  line-height: 1.65 !important;
  letter-spacing: .02em !important;
  word-spacing: .04em;
}

/* Only text wrapping is relaxed here. JS applies font multipliers from measured
   baseline sizes, without multiplying ancestors and descendants cumulatively. */
html[data-hz-a11y-scale]:not([data-hz-a11y-scale="1"]) body :is(
  h1, h2, h3, h4, h5, h6, p, li, dt, dd, figcaption,
  a, button, label, summary, input, textarea, select
):not(#hz-a11y *, #hz-a11y-panel *) {
  min-width: 0;
  white-space: normal !important;
  overflow-wrap: anywhere;
  text-overflow: clip;
}

/* RAF/carousel scripts must additionally honour this class in their own loops. */
html.hz-a11y-motion,
html.hz-a11y-motion *,
html.hz-a11y-motion *::before,
html.hz-a11y-motion *::after {
  scroll-behavior: auto !important;
  animation-duration: .01ms !important;
  animation-delay: 0ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0s !important;
  transition-delay: 0s !important;
}

@media (hover: hover) {
  :is(#hz-a11y, #hz-a11y-panel) button:hover:not(:disabled) {
    border-color: var(--a11y-blue-dark);
    background: #e9f4fb;
    color: #004d82;
  }

  #hz-a11y .hz-a11y-toggle:hover,
  #hz-a11y-panel .hz-a11y-speech button:first-child:hover:not(:disabled) {
    border-color: #fff;
    background: var(--a11y-blue-dark);
    color: #fff;
  }
}

@media (max-width: 480px) {
  #hz-a11y .hz-a11y-toggle {
    left: max(12px, env(safe-area-inset-left));
    bottom: max(12px, env(safe-area-inset-bottom));
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    padding: 8px;
  }

  #hz-a11y-panel {
    left: max(12px, env(safe-area-inset-left));
    bottom: max(74px, calc(env(safe-area-inset-bottom) + 62px));
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 98px);
    max-height: calc(100dvh - 98px);
    padding: 18px;
  }
}

@media (forced-colors: active) {
  :is(#hz-a11y, #hz-a11y-panel) :is(button, a):focus-visible {
    outline-color: Highlight;
  }

  #hz-a11y-panel .hz-a11y-setting[aria-pressed="true"] {
    outline: 2px solid Highlight;
    outline-offset: -3px;
  }
}

@media print {
  #hz-a11y,
  #hz-a11y-panel {
    display: none !important;
  }
}

/* Dedicated information page; no hero photography or service-page layout. */
body .hz-accessibility-page {
  width: calc(100% - 56px);
  max-width: 880px;
  margin: 0 auto;
  padding: 72px 0 100px;
  color: #202830;
}

body .hz-accessibility-page h1 {
  max-width: 100%;
  margin: 0 0 26px;
  color: #202830;
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

body .hz-accessibility-page :is(.hz-eyebrow, .hz-a11y-eyebrow, .eyebrow) {
  margin: 0 0 16px;
  color: #0075be;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .09em;
  text-transform: uppercase;
}

body .hz-accessibility-page :is(p, li) {
  color: #5e6c77;
  font-size: 17px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

body .hz-accessibility-page p {
  margin: 0 0 18px;
}

body .hz-accessibility-page :is(ul, ol) {
  margin: 0 0 22px;
  padding-left: 24px;
}

body .hz-accessibility-page li + li {
  margin-top: 8px;
}

body .hz-accessibility-page section {
  margin-top: 40px;
}

body .hz-accessibility-page h2 {
  margin: 40px 0 16px;
  color: #202830;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}

body .hz-accessibility-page section > h2:first-child {
  margin-top: 0;
}

body .hz-accessibility-page h3 {
  margin: 28px 0 12px;
  color: #202830;
  font-size: 22px;
  line-height: 1.4;
}

body .hz-accessibility-page a {
  color: #00539c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body .hz-accessibility-page a:focus-visible {
  outline: 3px solid #0075be;
  outline-offset: 4px;
}

@media (max-width: 620px) {
  body .hz-accessibility-page {
    width: calc(100% - 40px);
    padding: 48px 0 80px;
  }
}

/* Enlarged/readable desktop navigation gets its own complete row. Keep the
   existing <=820px mobile menu, and the unmodified default header, untouched. */
@media (min-width: 821px) {
  html:is(.hz-a11y-readable, [data-hz-a11y-scale]:not([data-hz-a11y-scale="1"])) body .header-inner {
    height: auto;
    min-height: 100px;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding-block: 18px;
  }

  html:is(.hz-a11y-readable, [data-hz-a11y-scale]:not([data-hz-a11y-scale="1"])) body .header-inner > .header-cta {
    max-width: 100%;
    margin-left: auto;
  }

  html:is(.hz-a11y-readable, [data-hz-a11y-scale]:not([data-hz-a11y-scale="1"])) body .header-inner > .main-nav {
    order: 2;
    flex: 1 0 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
  }

  html:is(.hz-a11y-readable, [data-hz-a11y-scale]:not([data-hz-a11y-scale="1"])) body .main-nav > ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 8px 24px;
  }

  html:is(.hz-a11y-readable, [data-hz-a11y-scale]:not([data-hz-a11y-scale="1"])) body .main-nav > ul > li {
    flex: 0 0 auto;
    max-width: 100%;
  }

  html:is(.hz-a11y-readable, [data-hz-a11y-scale]:not([data-hz-a11y-scale="1"])) body .main-nav a:not(#hz-a11y *, #hz-a11y-panel *) {
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none;
  }

  html:is(.hz-a11y-readable, [data-hz-a11y-scale]:not([data-hz-a11y-scale="1"])) body .main-nav .sub-menu {
    width: min(420px, calc(100vw - 56px));
    max-width: calc(100vw - 56px);
  }

  html:is(.hz-a11y-readable, [data-hz-a11y-scale]:not([data-hz-a11y-scale="1"])) body .topbar-inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
    padding-block: 10px;
  }

  html:is(.hz-a11y-readable, [data-hz-a11y-scale]:not([data-hz-a11y-scale="1"])) body .topbar-inner > span:first-child {
    flex: 1 1 22rem;
    min-width: 0;
  }

  html:is(.hz-a11y-readable, [data-hz-a11y-scale]:not([data-hz-a11y-scale="1"])) body .topbar-contact {
    flex-wrap: wrap;
    justify-content: flex-start;
    max-width: 100%;
    gap: 8px 20px;
  }

  html:is(.hz-a11y-readable, [data-hz-a11y-scale]:not([data-hz-a11y-scale="1"])) body .topbar-contact a:not(#hz-a11y *, #hz-a11y-panel *) {
    min-height: 44px;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    line-height: 1.5;
  }

  html:is(.hz-a11y-readable, [data-hz-a11y-scale]:not([data-hz-a11y-scale="1"])) body .topbar-contact > i {
    display: none;
  }
}
