﻿/* ==========================================================================
   Evergreen Hospice Care - WCAG 2.1 / 2.2 Level AA Accessibility Enhancements
   ========================================================================== */

/* 1. Skip-to-content link */
.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2000;
    padding: 0.65rem 1.1rem;
    border-radius: 0.375rem;
    background-color: #013301;
    color: #ffffff !important;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-250%);
    transition: transform 0.15s ease-in-out;
}
.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);
    outline: 3px solid #026e2e !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px #ffffff;
}

/* 2. High-visibility keyboard focus indicators */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
.btn:focus-visible {
    outline: 3px solid #026e2e !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.9) !important;
}

main:focus {
    outline: none;
}

/* 3. Contrast improvements (>= 4.5:1 WCAG AA) */
body,
.footer,
.footer p,
.footer li,
.footer-copyright,
.copyright-text {
    color: #1f2933 !important;
}

.text-muted,
.pre-title {
    color: #4a5568 !important;
}

.navbar-top {
    background-color: #f2fbf2 !important;
}

.navbar-top a,
.navbar-light .navbar-nav .nav-link,
.primary-hover a {
    color: #162b16 !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .active > .nav-link,
.navbar-light .navbar-nav .nav-link.active {
    color: #026e2e !important;
}

.dropdown-item {
    color: #026e2e !important;
    font-weight: 600;
}
.dropdown-item:hover,
.dropdown-item:focus {
    color: #014d20 !important;
    background-color: #eef8ee !important;
}

.text-primary {
    color: #026e2e !important;
}

/* Gradient buttons & banners white text contrast >= 4.5:1 (WCAG AA) */
.btn-grad {
    background: linear-gradient(150deg, #014d20 0%, #026e2e 50%, #014d20 100%) !important;
    background-color: #026e2e !important;
    color: #ffffff !important;
    border-color: #014d20 !important;
}
.btn-grad:hover,
.btn-grad:focus {
    background: linear-gradient(150deg, #013301 0%, #014d20 50%, #013301 100%) !important;
    background-color: #014d20 !important;
    color: #ffffff !important;
}

/* Ensure links inside main content cards are clearly distinguishable */
.feature-box a:not(.btn) {
    color: #026e2e !important;
    text-decoration: underline !important;
    font-weight: 600;
}
.feature-box a:not(.btn):hover,
.feature-box a:not(.btn):focus {
    color: #014d20 !important;
}

.bg-green-grad {
    background: linear-gradient(150deg, #1b4d06 0%, #2e730b 100%) !important;
}

.back-top {
    background: #026e2e !important;
    color: #ffffff !important;
}

/* Footer links: high contrast + visible underline so links don't rely on color alone */
.footer a:not(.btn) {
    color: #026e2e !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}
.footer a:not(.btn):hover,
.footer a:not(.btn):focus {
    color: #014d20 !important;
    text-decoration: underline !important;
}

.copyright-links .list-inline-item a {
    display: inline-block;
    padding: 0.35rem 0.5rem;
}

/* 4. Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
