/*
 * WFOŚiGW Rzeszów
 * Poprawki techniczne i WCAG
 */

/* Sticky header — desktop */
@media (min-width: 992px) {
    body:not(.elementor-editor-active) .custom-header-builder {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
        transition: box-shadow .25s ease;
    }

    body.admin-bar .custom-header-builder {
        top: 32px !important;
    }

    .custom-header-builder.wfosigw-header-scrolled {
        box-shadow: 0 4px 15px rgba(0,0,0,.15);
    }

    .custom-header-builder #masthead {
        transition: zoom .25s ease;
    }

    .custom-header-builder.wfosigw-header-scrolled #masthead {
        zoom: .7;
    }
}

/* Dostępność — ograniczenie animacji */
@media (prefers-reduced-motion: reduce) {
    .custom-header-builder,
    .custom-header-builder #masthead {
        transition: none !important;
    }
}

/* WFOŚiGW — korekta szerokości mobilnej */
@media (max-width: 991px) {

    /* Niestandardowy kursor Solgen nie jest potrzebny na telefonie */
    #cursor-ball,
    #cursor-text,
    .cursor {
        display: none !important;
    }

    /* Przycisk powrotu na gore wewnatrz ekranu */
    .scroll-up {
        position: fixed !important;
        right: 16px !important;
        left: auto !important;
        bottom: 20px !important;
        z-index: 900 !important;
        max-width: 48px;
        max-height: 48px;
    }
}

/* WFOŚiGW — wyłączenie dekoracyjnego kursora Solgen */
#cursor-ball {
    display: none !important;
}

/* WFOŚiGW — odstęp dla linku "Przejdź do treści" */
#content {
    scroll-margin-top: 110px;
}

#content:focus {
    outline: none;
}

/* WCAG — widoczny fokus głównej treści po użyciu skip link */
#content:focus-visible {
    outline: 3px solid #005fcc !important;
    outline-offset: -3px;
}
