/* ============================================
   ACCESSIBILITY STYLES
   ADA/WCAG Compliance
   ============================================ */

/* ---------- Skip Navigation Link ---------- */
.skip-link {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a5f7a;
    color: #ffffff;
    padding: 15px 30px;
    z-index: 999999;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 8px 8px;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid #e67e22;
    outline-offset: 2px;
}

/* ---------- Screen Reader Only Content ---------- */
.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;
}

/* ---------- Focus Indicators ---------- */
/* Enhanced focus states for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
    outline: 3px solid #e67e22;
    outline-offset: 2px;
}

/* Remove default outline only when custom is applied */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #e67e22;
    outline-offset: 2px;
}

/* ---------- Main Content Focus ---------- */
#main-content:focus {
    outline: none;
}

/* ---------- Reduced Motion ---------- */
/* Respect user's motion preferences */
@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;
    }
}

/* ---------- High Contrast Mode Support ---------- */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid #000;
    }

    .property-card,
    .service-card,
    .team-card,
    .testimonial-card {
        border: 2px solid #000;
    }
}

/* ---------- Form Label Visibility ---------- */
.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

/* Ensure labels in search form are visible */
.search-form .form-label {
    color: rgba(255, 255, 255, 0.9);
}

/* ---------- Interactive Element Minimum Size ---------- */
/* Ensure touch targets are at least 44x44px (WCAG 2.5.5) */
.favorite-btn,
.back-to-top,
.team-social a,
.social-links a,
.footer-social a {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Link Distinguishability ---------- */
/* Ensure links are distinguishable from surrounding text */
.about-content a,
.contact-text a,
footer a:not(.footer-logo):not(.footer-social a) {
    text-decoration: underline;
}

footer a:not(.footer-logo):not(.footer-social a):hover {
    text-decoration: none;
}
