/**
 * Nabab Vision - Accessibility Enhancements
 * WCAG 2.1 AA compliant
 */

/* Reduced Motion */
@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;
    }
}

/* Focus Visible */
:focus-visible {
    outline: 3px solid var(--accent, #ff3c00);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Skip Link Styling */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent, #ff3c00);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 0;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

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

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --border: rgba(255, 255, 255, 0.2);
    }
}

/* Dark Mode Enhancement */
@media (prefers-color-scheme: dark) {
    /* Already dark, but ensure good contrast */
    body {
        background-color: #000;
    }
}

/* Touch Targets - Minimum 48x48px */
@media (pointer: coarse) {
    button,
    a,
    input,
    textarea,
    select {
        min-height: 48px;
        min-width: 48px;
    }
}

/* Print Styles */
@media print {
    .preloader,
    .mobile-menu,
    footer,
    .cookie-banner {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        word-break: break-all;
    }
}
