/* Accessibility Styles */

/* Skip Link Styles */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.skip-link {
    background-color: #000 !important;
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    position: absolute;
    top: -40px;
    left: 6px;
    z-index: 999999;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.skip-link:focus {
    clip: auto !important;
    height: auto;
    width: auto;
    display: block;
    top: 7px;
    color: #fff;
    text-decoration: underline;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Focus Management */
*:focus {
    outline: 2px solid #e64e1b;
    outline-offset: 2px;
}

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

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .skip-link {
        background-color: #000;
        color: #fff;
        border: 2px solid #fff;
    }
    
    *:focus {
        outline: 3px solid #000;
        outline-offset: 2px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .skip-link,
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Navigation Focus States */
.navbar-nav li a:focus,
.navbar-nav li a:hover {
    outline: 2px solid #e64e1b;
    outline-offset: 2px;
}

/* Button Focus States */
.btn:focus,
button:focus {
    outline: 2px solid #e64e1b;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(230, 78, 27, 0.3);
}

/* Mobile Menu Button Accessibility */
.navbar-toggle:focus {
    outline: 2px solid #e64e1b;
    outline-offset: 2px;
    background-color: #f0f0f0;
}

/* Link Focus States */
a:focus {
    outline: 2px solid #e64e1b;
    outline-offset: 2px;
    text-decoration: underline;
}

/* Form Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #e64e1b;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(230, 78, 27, 0.3);
}

/* Ensure minimum touch target size */
@media (max-width: 768px) {
    .navbar-nav li a,
    .btn,
    button,
    input[type="button"],
    input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
        padding: 12px;
    }
}
