/*
DRT Smart Header 0.4.4 — WordPress toolbar fix
*/

:root{
    --drt-smart-header-height:96px;
    --drt-smart-header-bg:#fff;
    --drt-smart-header-text:#101820;
    --drt-smart-header-top-text:#fff;
    --drt-smart-header-shadow:0 10px 30px rgba(15,28,38,.10);
}

/* Eliminate inherited Elementor wrapper height and spacing. */
.drt-smart-header-runtime,
.drt-smart-header-runtime > *,
.drt-smart-header-runtime .elementor,
.drt-smart-header-runtime .elementor-element,
.drt-smart-header-runtime .e-con,
.drt-smart-header-runtime .e-con-inner,
.drt-smart-header-panel{
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
}

.drt-smart-header-runtime{
    width:100%!important;
    margin:0!important;
    padding:0!important;
    z-index:99999!important;
}

.drt-smart-header-panel{
    width:100%!important;
    margin:0!important;
    padding-top:10px!important;
    padding-bottom:10px!important;
    transition:background-color .25s ease,box-shadow .25s ease,color .25s ease!important;
}

/* Homepage top state. Use DRT and native WordPress body classes as fallback. */
body.drt-smart-header-home:not(.drt-header-scrolled) .drt-smart-header-runtime,
body.home:not(.drt-header-scrolled) .drt-smart-header-runtime,
body.front-page:not(.drt-header-scrolled) .drt-smart-header-runtime{
    position:absolute!important;
    inset:0 0 auto 0!important;
    background:transparent!important;
}

body.drt-smart-header-home:not(.drt-header-scrolled) .drt-smart-header-panel,
body.home:not(.drt-header-scrolled) .drt-smart-header-panel,
body.front-page:not(.drt-header-scrolled) .drt-smart-header-panel{
    background:transparent!important;
    box-shadow:none!important;
    color:var(--drt-smart-header-top-text)!important;
}

/* White navigation at top of homepage. */
body.drt-smart-header-home:not(.drt-header-scrolled) .drt-smart-header-panel a:not(.elementor-button),
body.home:not(.drt-header-scrolled) .drt-smart-header-panel a:not(.elementor-button),
body.front-page:not(.drt-header-scrolled) .drt-smart-header-panel a:not(.elementor-button),
body.drt-smart-header-home:not(.drt-header-scrolled) .drt-smart-header-panel .elementor-item,
body.home:not(.drt-header-scrolled) .drt-smart-header-panel .elementor-item,
body.front-page:not(.drt-header-scrolled) .drt-smart-header-panel .elementor-item,
body.drt-smart-header-home:not(.drt-header-scrolled) .drt-smart-header-panel [role="menuitem"],
body.home:not(.drt-header-scrolled) .drt-smart-header-panel [role="menuitem"],
body.front-page:not(.drt-header-scrolled) .drt-smart-header-panel [role="menuitem"]{
    color:#fff!important;
    fill:#fff!important;
}

/* Keep CTA button styling intact. */
.drt-smart-header-panel .elementor-button{
    color:#fff!important;
    background:#000!important;
    border-color:#fff!important;
}

/* Scrolled homepage state. */
body.drt-header-scrolled .drt-smart-header-runtime{
    position:fixed!important;
    inset:0 0 auto 0!important;
}

body.drt-header-scrolled .drt-smart-header-panel{
    background:#fff!important;
    box-shadow:var(--drt-smart-header-shadow)!important;
    color:var(--drt-smart-header-text)!important;
}

body.drt-header-scrolled .drt-smart-header-panel a:not(.elementor-button),
body.drt-header-scrolled .drt-smart-header-panel .elementor-item,
body.drt-header-scrolled .drt-smart-header-panel [role="menuitem"]{
    color:var(--drt-smart-header-text)!important;
    fill:var(--drt-smart-header-text)!important;
}

/* Interior pages remain in flow and sticky. */
body.drt-smart-header-interior .drt-smart-header-runtime{
    position:sticky!important;
    top:0!important;
    right:auto!important;
    left:auto!important;
}

body.drt-smart-header-interior .drt-smart-header-panel{
    background:#fff!important;
    box-shadow:var(--drt-smart-header-shadow)!important;
}

body.drt-smart-header-interior .drt-smart-header-panel a:not(.elementor-button),
body.drt-smart-header-interior .drt-smart-header-panel .elementor-item,
body.drt-smart-header-interior .drt-smart-header-panel [role="menuitem"]{
    color:var(--drt-smart-header-text)!important;
    fill:var(--drt-smart-header-text)!important;
}

/* Keep hero content beneath the overlaid header. */
body.drt-smart-header-home .drt-smart-hero-runtime .swiper-slide-inner,
body.home .drt-smart-hero-runtime .swiper-slide-inner,
body.front-page .drt-smart-hero-runtime .swiper-slide-inner,
body.drt-smart-header-home .drt-smart-hero-runtime .elementor-slide-content,
body.home .drt-smart-hero-runtime .elementor-slide-content,
body.front-page .drt-smart-hero-runtime .elementor-slide-content{
    padding-top:calc(var(--drt-smart-header-height) + 24px)!important;
    box-sizing:border-box!important;
}

/* Admin bar offsets. */
body.admin-bar.drt-header-scrolled .drt-smart-header-runtime,
body.admin-bar.drt-smart-header-interior .drt-smart-header-runtime{
    top:32px!important;
}
@media(max-width:782px){
    body.admin-bar.drt-header-scrolled .drt-smart-header-runtime,
    body.admin-bar.drt-smart-header-interior .drt-smart-header-runtime{
        top:46px!important;
    }
}


/* DRT Core 0.4.4 — keep the WordPress toolbar above the Smart Header. */
#wpadminbar{
    z-index:1000000!important;
}

body.admin-bar.drt-smart-header-home:not(.drt-header-scrolled) .drt-smart-header-runtime,
body.admin-bar.home:not(.drt-header-scrolled) .drt-smart-header-runtime,
body.admin-bar.front-page:not(.drt-header-scrolled) .drt-smart-header-runtime{
    top:32px!important;
}

@media(max-width:782px){
    body.admin-bar.drt-smart-header-home:not(.drt-header-scrolled) .drt-smart-header-runtime,
    body.admin-bar.home:not(.drt-header-scrolled) .drt-smart-header-runtime,
    body.admin-bar.front-page:not(.drt-header-scrolled) .drt-smart-header-runtime{
        top:46px!important;
    }
}
