/* Target common theme header selectors */
header, 
.site-header, 
#masthead, 
.elementor-location-header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease;
}

/* Handle WordPress Admin Bar offset */
body.admin-bar header,
body.admin-bar .site-header,
body.admin-bar #masthead,
body.admin-bar .elementor-location-header {
    top: var(--wp-admin--admin-bar--height, 32px) !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar header,
    body.admin-bar .site-header,
    body.admin-bar #masthead,
    body.admin-bar .elementor-location-header {
        top: 46px !important;
    }
}

/* Scrolled state styling */
header.is-scrolled,
.site-header.is-scrolled,
#masthead.is-scrolled,
.elementor-location-header.is-scrolled {
    background-color: #0A1D18 !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
