/* 
  * Accessibility Fixes for OverDream 
*/

/* 1. Focus styles for interactive elements */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
    outline: 3px solid #932835;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(147, 40, 53, 0.4);
}

/* Skip link styles */
.skip-link {
    position: absolute;
    top: -9999px;
    left: 50%;
    transform: translateX(-50%);
    background: #932835;
    color: #fff;
    padding: 1rem;
    z-index: 9999;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* 2. Contrast fixes */
.tf-color {
    color: #333333 !important; /* Improved contrast from light gray */
}

.swiper-pagination-bullet {
    background: rgba(0, 0, 0, 0.7) !important; /* Darker background for bullets */
    color: #fff !important;
}

.swiper-pagination-bullet-active {
    background: #932835 !important; /* Active bullet color */
    color: #fff !important;
}

/* 3. Button and interactive element improvements */
[role="button"],
.canvas-button,
.mobile-button {
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 4. Text sizing */
* {
    font-size: max(11px, 1rem);
}

/* 5. Heading styles */
h1, h2, h3, h4, h5, h6 {
    margin-top: 1em;
    margin-bottom: 0.5em;
    color: #ffffff;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

/* 6. Link styles */
a {
    text-decoration: underline;
    color: #932835;
}

a:hover,
a:focus {
    text-decoration: none;
    color: #333333;
}

/* 7. Form field improvements */
input,
textarea,
select {
    font-size: 1rem;
    padding: 0.5rem;
    border: 2px solid #333333;
}

/* 8. ARIA improvements */


/* 9. Screen reader only text */
.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;
}

/* 10. High contrast mode support */
@media screen and (-ms-high-contrast: active) {
    * {
        border-color: currentColor;
    }
}

/* 1. Contrast fix for banners and sliders */


.page-title .content,
.banner-page .content {
    position: relative;
    z-index: 2;
}


/* 2. Contrast fix for buttons */
.button-two-line {
    background-color: #A13D48; /* Darker red */
    color: #fff !important; /* Ensure text is white */
}


/* 3. Contrast fix for footer elements */
.footer .footer-title {
    color: #222;
}

.footer p {
    color: #333;
}

.widget-social-text ul li a {
    color: #111;
}


/* 4. Contrast fix for other links and text */
.testimonial-item .author a,
.box-event .title a {
    color: #111;
}

.testimonial-item .author a:hover,
.box-event .title a:hover {
    color: #A13D48;
}

a[style*="color: black"] {
    color: #000 !important;
} 