/* ==========================================================================
   Accessibility fixes (loaded last)
   - Colour contrast: white on the brand red (#ED2524) is 4.29:1 and red
     small text on light backgrounds is ~4.1:1, both under WCAG AA 4.5:1.
     A slightly deeper red (#DB1F1E, 4.97:1) is used where text is involved.
   - Skip-link target and focus styles
   - Reduced motion for the scroll-in (WOW / animate.css) animations
   ========================================================================== */

/* ---- Buttons with white text on red ---------------------------------- */
.jt-hero-btn,
#mainNav .jt-nav-links > li.jt-nav-cta > a,
.jt-job-apply,
.jt-contact-submit,
.jt-sprint-step:last-child .jt-sprint-node,
.jt-sprint-step:hover .jt-sprint-node,
.jt-agile-loop-icon {
  background-color: #DB1F1E;
}
.jt-hero-btn:hover, .jt-hero-btn:focus,
#mainNav .jt-nav-links > li.jt-nav-cta > a:hover,
#mainNav .jt-nav-links > li.jt-nav-cta > a:focus,
.jt-job-apply:hover, .jt-job-apply:focus,
.jt-contact-submit:hover, .jt-contact-submit:focus {
  background-color: #b81a1a;
}

/* ---- Small red text on light backgrounds ----------------------------- */
.jt-eyebrow,
.jt-exp-num,
.jt-contact-list a:hover,
.jt-contact-tiles a:hover,
.jt-contact-tiles a:focus,
.jt-news-more:hover, .jt-news-more:focus,
.jt-job-more:hover, .jt-job-more:focus {
  color: #DB1F1E;
}
/* On the navy Product Suite a lighter red reads better (6.1:1) */
.jt-products .jt-eyebrow { color: #ff6b6a; }

/* ---- Skip link -------------------------------------------------------- */
#main:focus { outline: none; }
.skip-link.sr-only-focusable:focus {
  background: #DB1F1E;
  border-radius: 0 0 5px 0;
  text-decoration: none;
}

/* ---- Focus rings on red buttons: red outline was invisible against them */
.jt-hero-btn:focus-visible,
.jt-job-apply:focus-visible,
.jt-contact-submit:focus-visible {
  outline: 2px solid #0D0E1F !important;
  outline-offset: 3px;
}
.jt-hero-btn:focus-visible { outline-color: #fff !important; }

/* ---- Reduced motion --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .wow, .animated {
    visibility: visible !important;   /* WOW hides items until it animates them */
    animation: none !important;
  }
  *, *::before, *::after {
    scroll-behavior: auto !important;
  }
}
