/* Avtrix Site Fixes — accessibility & UX (audit Sept 2026) */

/* WCAG 2.5.8 — minimum 24px tap targets on small text links */
.hsc-cta, .career-apply, .foot-col a, .foot-legal a, .contact-card a,
footer a, .view-all, a[class*="view-all"] {
  display: inline-block;
  min-height: 24px;
  line-height: 24px;
  padding: 2px 0;
}
@media (max-width: 768px) {
  .hsc-cta, .career-apply, .foot-col a, .foot-legal a, footer a { padding: 6px 0; }
  /* Never render text below 12px on mobile */
  small, .meta, .foot-legal, .foot-copy, .blog-meta, .card-meta { font-size: max(12px, 1em); }
}

/* Footer body-text contrast (was rgb(61,82,102) on navy ≈ 3:1) */
footer p, footer li, footer .foot-copy, footer .foot-legal, .foot-col p { color: #8FA3B8; }

/* Visible focus indicator on form fields (WCAG 2.4.11) */
.form-group input:focus-visible, .form-group select:focus-visible,
.form-group textarea:focus-visible, .bkm-form input:focus-visible,
.bkm-form select:focus-visible, .bkm-form textarea:focus-visible,
.newsletter-input:focus-visible, .search-form input:focus-visible {
  outline: 3px solid #F5A623 !important;
  outline-offset: 2px;
}

/* FAQ buttons injected by fixes.js should look like the old div */
.faq-q[role="button"], button.faq-q {
  all: unset; display: flex; width: 100%; box-sizing: border-box; cursor: pointer;
}
.faq-q:focus-visible { outline: 3px solid #F5A623; outline-offset: 2px; }

/* Respect reduced-motion preference (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal * { transition: none !important; animation: none !important; opacity: 1 !important; transform: none !important; }
  * { scroll-behavior: auto !important; }
}
