/* ==========================================================================
   Integrow Accessibility Layer - a11y.css  (v1.0)
   Maps to CIGA findings from the IAAP WCAG 2.2 AA audit (28-04-2026).
   Loaded site-wide by mu-plugins/integrow-a11y.php
   ========================================================================== */

/* --- Skip link: hidden until keyboard focus (CIGA-15, 46, 64, 159, 305, 318) */
.iga-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  background: #1B2A4A;
  color: #fff;
  padding: 12px 20px;
  font-size: 16px;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}
.iga-skip-link:focus {
  left: 0;
  outline: 3px solid #fff;
  outline-offset: -3px;
}

/* --- Screen-reader-only utility (used for hidden labels / link text) */
.sr-only,
.iga-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Visible keyboard focus, site-wide (Focus order & focus visible group:
       CIGA focus findings on all 19 pages). Never remove outlines. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #1B2A4A !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.85) !important;
  border-radius: 2px;
}
/* On dark/navy sections invert the ring so it stays >= 3:1 contrast */
.iga-dark :focus-visible,
footer :focus-visible {
  outline-color: #ffffff !important;
  box-shadow: 0 0 0 6px rgba(27, 42, 74, 0.85) !important;
}

/* --- Respect prefers-reduced-motion (Motion group: CIGA-21, 53, 129, 144,
       167, 175, 236, 267) */
@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;
  }
  .swiper-wrapper { transition: none !important; }
}

/* --- Blog card titles must never be hover-only (CIGA-157) */
.elementor-post__title,
.elementor-post__title a {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* --- Injected carousel / video pause controls (a11y.js) */
.iga-carousel-pause,
.iga-video-pause {
  position: absolute;
  bottom: 12px;
  z-index: 60;
  background: #1B2A4A;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 22px;
  padding: 7px 16px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.iga-carousel-pause { right: 12px; }
.iga-video-pause    { left: 12px; }
.iga-carousel-pause:hover,
.iga-video-pause:hover { background: #2b3f66; }

/* --- Back-to-top link injected on long pages (CIGA-313) */
.iga-top {
  position: fixed;
  bottom: 92px;
  right: 18px;
  z-index: 9999;
  background: #1B2A4A;
  color: #fff !important;
  padding: 10px 16px;
  border-radius: 22px;
  font-size: 14px;
  text-decoration: none;
  border: 2px solid #fff;
}

/* --- "Fields marked * are required" note injected before forms */
.iga-req-note {
  font-size: 13px;
  margin: 0 0 10px;
  color: inherit;
}

/* --- Ensure form error text is not colour-only (Error identification group) */
.elementor-message.elementor-message-danger,
.elementor-field-group .elementor-message-danger {
  font-weight: 600;
}
