/* Accessibility improvements */

/* Screen reader only class */
.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;
}

/* Improve button touch targets - minimum 48x48px */
.nav-links a,
.nav-links button {
    min-height: 48px;
    min-width: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
}

.services_nav {
    background: transparent;
    border: none;
    color: #efefef;
    cursor: pointer;
    font-size: 18px;
    padding: 13px 10px;
    transition: all ease-in .3s;
    font-family: 'Cairo', sans-serif;
}

.services_nav:hover {
    color: var(--btnColor);
}

/* Improve contrast for better readability */
.S3_home .box h4,
.S3_home .box h5,
.S3_home .box h6 {
    color: #1a5fb4 !important; /* Darker blue for better contrast */
}

/* Service link styling */
.service-link {
    display: block;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.service-link:hover,
.service-link:focus {
    transform: scale(1.02);
    outline: 2px solid #2b82f1;
    outline-offset: 4px;
}

/* Footer links better spacing for touch */
.footer .links li {
    margin: 16px 0; /* Increased from 20px to ensure spacing */
}

.footer .links a {
    min-height: 44px;
    display: inline-block;
    padding: 8px 0;
}

/* Improve button focus indicators */
button:focus,
a:focus {
    outline: 2px solid #2b82f1;
    outline-offset: 2px;
}

/* Better contrast for paragraph text */
.S3_home .box p {
    color: #333 !important; /* Darker text */
}

/* Carousel navigation buttons - larger touch targets */
.owl-nav .owl-prev,
.owl-nav .owl-next {
    min-width: 48px;
    min-height: 48px;
    padding: 12px 16px !important;
    margin: 8px !important;
}

/* Social media icons - better touch targets */
.footer .sochial li {
    margin: 0 8px;
}

.footer .sochial a {
    min-width: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

/* Mobile menu improvements */
@media (max-width: 800px) {
    .nav-links a,
    .nav-links button {
        min-height: 56px; /* Larger on mobile */
        width: 100%;
        padding: 16px;
    }
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #2b82f1;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
}

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