/* ============================================
   ACCESSIBILITY STYLES
   ADA/WCAG 2.1 AA Compliance
   Golden Dragon Restaurant Demo
   ============================================ */

/* ---------- Skip Navigation Link ---------- */
.skip-link {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #c8102e;
    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 #ffd700;
    outline-offset: 2px;
    color: #ffffff;
}

/* ---------- 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 ---------- */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

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

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

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

    .single-menu-item,
    .single-team-item,
    .single-testimonial-one,
    .single-testimonial-three,
    .gallery-item-two,
    .fancy-features-item {
        border: 2px solid #000;
    }
}

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

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

/* ---------- Link Distinguishability ---------- */
.about-content-box a,
.contact-info-box a,
footer a:not(.footer-logo):not(.social-link a) {
    text-decoration: underline;
}

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