/* Accessibility Styles - oxezga.com */

/* Focus indicators for keyboard navigation */
:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* Remove default focus for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

/* Reduced motion for users with vestibular disorders */
@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;
    }
}

/* Screen reader only utility */
.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;
}

/* Skip navigation link */
.skip-nav {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 9999;
    padding: 8px 16px;
    background-color: #10b981;
    color: #000;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-nav:focus {
    top: 16px;
}

/* ===== Cal.com Floating Button Z-Index Fix =====
   Always keep "Book a Call" behind cookie banner (z:99999)
   and chatbot (z:10001) on ALL pages */
cal-floating-button,
[data-cal-namespace],
[id^="cal-floating"],
.cal-floating-button {
    z-index: 9000 !important;
    position: fixed !important;
}


/* Hide Book a Call completely when chatbot is open OR when cookie banner is visible */
body.chat-open cal-floating-button,
body.chat-open [data-cal-namespace],
body.chat-open [id^="cal-floating"],
body.cookie-banner-visible cal-floating-button,
body.cookie-banner-visible [data-cal-namespace],
body.cookie-banner-visible [id^="cal-floating"] {
    display: none !important;
}
