/*
 * Phase C - minimal WCAG 2.2 AA colour-contrast corrections (1.4.3).
 * Same hue as the original brand colours, darkened only as far as needed to reach 4.5:1
 * on the backgrounds where they failed. Each change is listed in docs/CHANGES.md.
 */

/* C-1: teal text links on white #66bbae (2.26:1) -> #398075 (4.65:1) */
a { color: #398075; }
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a,
.button-list .item a.active { color: #398075; }
.button-list .item a.active { border-color: #398075; }

/* keep the original light teal where links sit on dark backgrounds (already >= 4.5:1) */
.color-white a:not(.button), .meet-bar a:not(.button), .parallax-bg a:not(.button) { color: #66bbae; }

/* C-2: header contact links #008b6a on #e7e7e7 (3.46:1) -> #007458 (4.67:1) */
.header-contact-infos a { color: #007458; }

/* C-3: small sub-heading #af745b on white at 22px (3.84:1) -> #a0664e (4.66:1) */
.color-red small, .red small, .space small { color: #a0664e !important; }

/* C-4: white text on teal buttons (2.26:1) -> teal darkened behind white text */
.pagination .page-numbers:not(.current),
.pagination .prev, .pagination .next,
input.wpcf7-submit[value="Submit Now"],
input.wpcf7-submit[value="Submit"] { background-color: #398075; }

/* C-5: WPBakery download buttons, white on #0088cc (3.89:1) -> #0074ad, the colour they already used on hover (4.9:1) */
.vc_btn3[style*="#0088cc"] { background-color: #0074ad !important; }

/* Visible keyboard focus (WCAG 2.4.7 / 2.4.11) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
[role="button"]:focus-visible, .mm-menu a:focus-visible { outline: 3px solid #0a5c50; outline-offset: 2px; }
.popup-box .close:focus-visible { outline: 3px solid #fff; }

@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; }
  .wpb_animate_when_almost_visible { opacity: 1 !important; }
}
