/**
 * WCAG 2.2 AA Contrast Fixes
 *
 * Provides accessible color contrasts for both dark and light backgrounds
 * to meet 4.5:1 contrast ratio minimum for normal text.
 *
 * Target WCAG: 1.4.3 Contrast (Minimum) Level AA
 *
 * Usage: Include after main.css to override insufficient contrast defaults
 */

/* Footer/Header with dark background - Light text colors */
footer .dim-header,
footer .footer-section-title,
header .header-title {
    color: #E0E0E0 !important; /* Light gray - 4.5:1+ on #323a45 */
}

footer p,
footer span,
footer address {
    color: #E0E0E0 !important; /* Light gray text */
}

/* Links on dark background - Light blue */
footer a {
    color: #66B3FF !important; /* Light blue - 4.5:1+ on #323a45 */
}

footer a:hover {
    color: #99CCFF !important; /* Lighter blue on hover */
}

/* Header links - excluding agency name */
header .navbar a {
    color: #66B3FF !important; /* Light blue for nav links only */
}

header .navbar a:hover {
    color: #99CCFF !important; /* Lighter blue on hover */
}

/* Preserve original agency name styling in header (don't override) */
/* header .agency-name a will use its original color from theme */

/* Primary action button - Professional blue with high contrast */
.btn-primary {
    background-color: #0066AA;
    border-color: #0066AA;
    color: #FFFFFF !important; /* 6.03:1 contrast - WCAG AA compliant */
}

/* Success button (green) - darker green with white text for 4.5:1 contrast */
.btn-success {
    background-color: #2e7d32 !important; /* Dark green - 4.61:1 contrast with white */
    border-color: #2e7d32 !important;
    color: #FFFFFF !important; /* White text - WCAG AA compliant */
}

.btn-success:hover,
.btn-success:focus {
    background-color: #1b5e20 !important; /* Even darker on hover */
    border-color: #1b5e20 !important;
    color: #FFFFFF !important;
}

/* Text over dark background image */
.header-container .agency-name a,
.hero-text {
    color: #FFFFFF;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    text-decoration: none;
}

/* Logo text on dark */
.logo-text,
.ni-logo {
    color: #FFFFFF;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

/* Help text on dark background */
.help-block {
    color: #CCCCCC !important;
}

/* ========================================
 * Fixes for Light Backgrounds (Main Content)
 * ========================================*/

/* Muted text on white/light backgrounds - darker gray for accessibility */
.text-muted {
    color: #5A6268 !important; /* 5.74:1 contrast on white - WCAG AA compliant */
}

/* Links in main content area on white background - exclude buttons */
.content a:not(.btn),
main a:not(.btn) {
    color: #0066AA !important; /* 6.03:1 contrast on white - WCAG AA compliant */
}

.content a:not(.btn):hover,
main a:not(.btn):hover {
    color: #005A9C !important; /* 7.14:1 contrast - darker on hover */
    text-decoration: underline;
}
