/* ============================================
   ACCESSIBILITY FEATURES (WCAG 2.1 AA)
   ============================================ */

/* Skip to main content link for keyboard navigation (hidden until Tab is pressed) */
.skip-to-content {
    position: absolute;
    top: -1000px;
    left: 0;
    background: var(--color-focus);
    color: var(--text-white);
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 0 0 5px 0;
    font-weight: 600;
    font-size: 1.1rem;
    z-index: 99999;
    box-shadow: 0 4px 12px var(--shadow-focus);
    transition: top 0.2s ease;
}

.skip-to-content:focus {
    top: 0;
    left: 0;
    outline: var(--focus-width) solid var(--color-focus-outline);
    outline-offset: var(--focus-offset-large);
}

/* Enhanced focus indicators for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
[tabindex]:focus {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
    border-radius: 2px;
}

/* Remove outline for mouse users, keep for keyboard users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
select:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible) {
    outline: none;
}

/* Visible focus for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
}

/* High contrast focus for navigation items */
.nav-link:focus,
.navbar-brand:focus {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset-large);
    background: var(--color-focus-bg);
}

/* Ensure sufficient color contrast for text */
body {
    /* Text color contrast is managed by CSS variables in colors.css */
    /* Dark theme provides excellent contrast ratios */
}

/* Screen reader only content (accessible but invisible) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    body {
        background: var(--hc-bg);
        color: var(--hc-text);
    }
    
    .hero-section,
    .services-section,
    .content-section {
        background: var(--hc-bg);
        color: var(--hc-text);
        border: 2px solid var(--hc-border);
    }
}

/* Reduced motion support for users with vestibular disorders */
@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;
    }
}

/* ============================================
   END ACCESSIBILITY FEATURES
   ============================================ */
