
.mhe-advanced-header,
.mhe-advanced-header *{box-sizing:border-box}

.mhe-advanced-header{
    --mhe-accent:#d71920;
    --mhe-dark:#0c1724;
    --mhe-ink:#132238;
    --mhe-muted:#6b7685;
    --mhe-line:#e7eaf0;
    --mhe-soft:#f6f8fb;
    --mhe-white:#fff;
    --mhe-logo-width:170px;
    --mhe-logo-height:64px;
    --mhe-mobile-logo-width:140px;
    --mhe-mobile-logo-height:52px;
    position:relative;
    z-index:99990;
    font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color:var(--mhe-ink);
}
.mhe-advanced-header svg{display:block;width:1em;height:1em;fill:currentColor}
.mhe-container{width:min(1240px,calc(100% - 40px));margin:0 auto}

.mhe-topbar{
    background:var(--mhe-dark);
    color:#dbe3ee;
    font-size:12.5px;
    letter-spacing:.01em
}
.mhe-topbar-inner{
    min-height:38px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px
}
.mhe-topbar-message,
.mhe-topbar-right,
.mhe-top-email,
.mhe-top-chip{
    display:flex;
    align-items:center
}
.mhe-topbar-message{gap:8px;font-weight:650}
.mhe-topbar-right{gap:18px}
.mhe-top-chip{
    position:relative;
    color:#f5f7fa;
    font-weight:650;
    gap:7px
}
.mhe-top-chip:before{
    content:"";
    width:6px;height:6px;border-radius:50%;
    background:var(--mhe-accent);
    box-shadow:0 0 0 3px color-mix(in srgb,var(--mhe-accent) 18%,transparent)
}
.mhe-top-email{
    color:#dbe3ee;
    text-decoration:none;
    gap:7px;
    transition:.2s ease
}
.mhe-top-email:hover{color:#fff}
.mhe-mini-icon{color:var(--mhe-accent);font-size:15px}

.mhe-mainbar{
    position:relative;
    background:rgba(255,255,255,.98);
    border-bottom:1px solid rgba(16,28,43,.08);
    transition:box-shadow .25s ease,background .25s ease
}
.mhe-advanced-header.is-scrolled .mhe-mainbar{
    position:fixed;
    top:0;left:0;right:0;
    box-shadow:0 14px 42px rgba(12,23,36,.13);
    backdrop-filter:blur(16px);
    background:rgba(255,255,255,.96)
}
body.admin-bar .mhe-advanced-header.is-scrolled .mhe-mainbar{top:32px}

.mhe-mainbar-inner{
    min-height:max(82px,calc(var(--mhe-logo-height) + 18px));
    display:flex;
    align-items:center;
    gap:28px
}

.mhe-brand{
    display:flex;
    align-items:center;
    gap:13px;
    min-width:260px;
    text-decoration:none!important;
    color:var(--mhe-ink)!important
}
.mhe-brand-logo{display:flex;align-items:center}
.mhe-brand-logo-img{
    display:block;
    width:var(--mhe-logo-width);
    max-width:none;
    height:var(--mhe-logo-height);
    object-fit:contain;
    object-position:left center;
    flex:0 0 auto
}
.mhe-wordmark{
    width:76px;height:54px;
    display:flex;flex-direction:column;justify-content:center;
    line-height:1;
    color:var(--mhe-dark)
}
.mhe-wordmark-main{
    font-weight:950;
    font-size:30px;
    letter-spacing:-.06em
}
.mhe-wordmark-main:after{
    content:"";
    display:inline-block;
    width:8px;height:8px;
    background:var(--mhe-accent);
    margin-left:3px;
    transform:skew(-9deg)
}
.mhe-wordmark-sub{
    margin-top:5px;
    font-size:8px;
    font-weight:900;
    letter-spacing:.14em
}
.mhe-brand-copy{
    display:flex;flex-direction:column;
    border-left:1px solid #dce1e8;
    padding-left:13px;
    line-height:1.25
}
.mhe-brand-copy strong{font-size:12.5px;font-weight:800}
.mhe-brand-copy small{font-size:10.5px;color:var(--mhe-muted);margin-top:3px}

.mhe-desktop-nav{
    display:flex;
    align-items:stretch;
    align-self:stretch;
    margin-left:auto
}
.mhe-nav-item{position:static;display:flex}
.mhe-nav-link{
    display:flex;
    align-items:center;
    gap:5px;
    position:relative;
    padding:0 12px;
    color:#26364b!important;
    font-size:14px;
    font-weight:750;
    text-decoration:none!important;
    border:0;
    background:transparent;
    cursor:pointer;
    font-family:inherit
}
.mhe-nav-link:after{
    content:"";
    position:absolute;
    left:12px;right:12px;bottom:0;
    height:3px;
    background:var(--mhe-accent);
    transform:scaleX(0);
    transform-origin:center;
    transition:transform .2s ease
}
.mhe-nav-link:hover:after,
.mhe-nav-item.is-open>.mhe-nav-link:after{transform:scaleX(1)}
.mhe-nav-highlight{color:#b5121b!important}
.mhe-chev{font-size:17px;transition:transform .2s ease}
.mhe-nav-item.is-open .mhe-chev{transform:rotate(180deg)}

.mhe-header-actions{
    display:flex;
    align-items:center;
    gap:10px;
    margin-left:6px
}
.mhe-phone-cta{
    display:flex;
    align-items:center;
    gap:9px;
    color:var(--mhe-dark)!important;
    text-decoration:none!important;
    line-height:1.15;
    white-space:nowrap
}
.mhe-phone-icon{
    width:34px;height:34px;border-radius:50%;
    display:grid;place-items:center;
    background:#fff0f1;
    color:#b5121b;
    font-size:17px
}
.mhe-phone-cta span:last-child{display:flex;flex-direction:column}
.mhe-phone-cta small{font-size:9.5px;color:var(--mhe-muted);font-weight:700}
.mhe-phone-cta strong{font-size:13px;margin-top:2px}
.mhe-quote-cta{
    min-height:46px;
    padding:0 16px 0 18px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    color:#fff!important;
    background:var(--mhe-accent);
    border-radius:12px;
    font-size:13px;
    font-weight:850;
    text-decoration:none!important;
    box-shadow:0 8px 18px color-mix(in srgb,var(--mhe-accent) 28%,transparent);
    transition:transform .2s ease,box-shadow .2s ease,filter .2s ease
}
.mhe-quote-cta svg{font-size:17px}
.mhe-quote-cta:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 24px color-mix(in srgb,var(--mhe-accent) 38%,transparent);
    filter:saturate(1.05)
}
.mhe-mobile-toggle{display:none}

.mhe-progress-line{
    height:2px;
    position:absolute;left:0;right:0;bottom:-1px;
    overflow:hidden;
    pointer-events:none
}
.mhe-progress-line span{
    display:block;height:100%;width:0;
    background:var(--mhe-accent)
}

/* Mega menu */
.mhe-mega{
    position:absolute;
    left:50%;
    top:100%;
    width:min(1240px,calc(100vw - 34px));
    transform:translate(-50%,12px);
    padding:22px;
    background:#fff;
    border:1px solid rgba(20,35,54,.09);
    border-radius:0 0 20px 20px;
    box-shadow:0 28px 65px rgba(12,23,36,.17);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .18s ease,transform .18s ease,visibility .18s ease;
    display:grid;
    gap:18px;
    max-height:calc(100vh - 130px);
    max-height:calc(100dvh - 130px);
    overflow-y:auto;
    overscroll-behavior:contain
}
.mhe-nav-item.is-open>.mhe-mega{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translate(-50%,0)
}
.mhe-training-mega{
    grid-template-columns:1.08fr .92fr .92fr .92fr .82fr
}
.mhe-mega-intro{
    border-radius:15px;
    background:linear-gradient(145deg,var(--mhe-dark),#172b42);
    color:#fff;
    padding:24px
}
.mhe-eyebrow{
    display:block;
    color:var(--mhe-accent);
    font-size:10px;
    font-weight:900;
    letter-spacing:.16em;
    margin-bottom:12px
}
.mhe-mega-intro h3{
    color:#fff!important;
    margin:0 0 10px!important;
    font-size:22px!important;
    line-height:1.15!important;
    font-weight:850!important;
    letter-spacing:-.025em
}
.mhe-mega-intro p{
    color:#c8d3df!important;
    margin:0 0 18px!important;
    font-size:12.5px!important;
    line-height:1.6!important
}
.mhe-text-link{
    display:inline-flex;
    align-items:center;
    gap:7px;
    color:#fff!important;
    font-size:12px;
    font-weight:800;
    text-decoration:none!important
}
.mhe-text-link svg{font-size:15px;color:var(--mhe-accent)}
.mhe-mega-column{padding:4px 0}
.mhe-mega-column h4{
    margin:0 0 9px!important;
    color:#7a8492!important;
    text-transform:uppercase;
    letter-spacing:.12em;
    font-size:9.5px!important;
    font-weight:900!important
}
.mhe-mega-column>a{
    display:flex;
    flex-direction:column;
    gap:3px;
    padding:10px 9px;
    margin:0 -9px 2px;
    border-radius:10px;
    color:var(--mhe-ink)!important;
    text-decoration:none!important;
    transition:.15s ease
}
.mhe-mega-column>a:hover{background:#f7f8fb;transform:translateX(2px)}
.mhe-mega-column strong{font-size:12.5px;font-weight:800}
.mhe-mega-column span{font-size:10.5px;color:#7b8592}
.mhe-mega-cta{
    border:1px solid #f0c4c7;
    background:#fff7f7;
    border-radius:15px;
    padding:21px;
    display:flex;
    flex-direction:column;
    justify-content:center
}
.mhe-mega-badge{
    align-self:flex-start;
    padding:5px 8px;
    border-radius:999px;
    background:#ffe2e4;
    color:#8f1118;
    font-size:9px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.07em
}
.mhe-mega-cta h4{
    margin:12px 0 7px!important;
    font-size:16px!important;
    line-height:1.25!important;
    color:var(--mhe-dark)!important
}
.mhe-mega-cta p{
    margin:0 0 14px!important;
    font-size:11.5px!important;
    line-height:1.5!important;
    color:#6a7380!important
}
.mhe-mega-cta-button{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    min-height:40px;
    padding:0 12px;
    border-radius:9px;
    background:var(--mhe-accent);
    color:#fff!important;
    font-size:11.5px;
    font-weight:850;
    text-decoration:none!important
}

.mhe-areas-mega{
    grid-template-columns:1.05fr 1.8fr .8fr;
    align-items:stretch
}
.mhe-area-intro{padding:22px}
.mhe-area-trust{display:flex;gap:13px;flex-wrap:wrap}
.mhe-area-trust span{
    display:flex;align-items:center;gap:6px;
    font-size:10.5px;font-weight:750;color:#fff
}
.mhe-area-trust svg{color:var(--mhe-accent);font-size:14px}
.mhe-area-all-link{margin-top:16px}
.mhe-city-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:7px;
    align-content:center
}
.mhe-city-grid a{
    display:flex;
    align-items:center;
    gap:8px;
    padding:11px 10px;
    border-radius:9px;
    background:#f8f9fb;
    color:#27374b!important;
    text-decoration:none!important;
    font-size:11.5px;
    font-weight:750;
    transition:.15s ease
}
.mhe-city-grid a:hover{background:#fff0f1;transform:translateY(-1px)}
.mhe-city-dot{
    width:6px;height:6px;border-radius:50%;
    background:var(--mhe-accent);
    box-shadow:0 0 0 3px color-mix(in srgb,var(--mhe-accent) 16%,transparent)
}
.mhe-area-card{
    border-radius:15px;
    background:linear-gradient(145deg,#fff1f2,#fff);
    border:1px solid #f0c7ca;
    padding:20px;
    display:flex;
    flex-direction:column;
    justify-content:center
}
.mhe-area-card-kicker{
    color:#a5121a;
    text-transform:uppercase;
    letter-spacing:.12em;
    font-size:9px;
    font-weight:900
}
.mhe-area-card strong{font-size:15px;margin:7px 0;color:var(--mhe-dark)}
.mhe-area-card p{font-size:11px;line-height:1.5;color:#6b7580;margin:0 0 12px}
.mhe-area-card a{
    display:flex;align-items:center;gap:6px;
    color:var(--mhe-dark)!important;text-decoration:none!important;
    font-size:11.5px;font-weight:850
}
.mhe-area-card a svg{color:var(--mhe-accent)}

/* Mobile */
.mhe-mobile-overlay,
.mhe-mobile-drawer{display:none}

@media (max-width:1240px){
    .mhe-mainbar-inner{gap:18px}
    .mhe-nav-link{padding:0 9px;font-size:13px}
    .mhe-phone-cta span:last-child{display:none}
}

@media (max-width:1160px){
    .mhe-brand{min-width:180px}
    .mhe-brand-copy{display:none}
    .mhe-phone-cta span:last-child{display:none}
    .mhe-phone-icon{width:40px;height:40px}
    .mhe-nav-link{padding:0 9px;font-size:13px}
}

@media (max-width:980px){
    .mhe-topbar-right .mhe-top-email{display:none}
    .mhe-desktop-nav{display:none}
    .mhe-mainbar-inner{min-height:max(72px,calc(var(--mhe-mobile-logo-height) + 16px))}
    .mhe-brand{min-width:0;margin-right:auto}
    .mhe-brand-logo-img{width:var(--mhe-mobile-logo-width);height:var(--mhe-mobile-logo-height);max-width:none}
    .mhe-wordmark{height:48px}
    .mhe-phone-cta span:last-child{display:flex}
    .mhe-mobile-toggle{
        width:46px;height:46px;
        display:grid;place-items:center;
        border:1px solid #dde2e9;
        background:#fff;
        border-radius:12px;
        color:var(--mhe-dark);
        font-size:24px;
        cursor:pointer
    }

    .mhe-mobile-overlay{
        display:block;
        position:fixed;inset:0;
        background:rgba(5,13,23,.55);
        backdrop-filter:blur(3px);
        opacity:0;visibility:hidden;
        transition:.25s ease;
        z-index:999997
    }
    .mhe-mobile-drawer{
        display:flex;
        flex-direction:column;
        position:fixed;
        top:0;right:0;bottom:0;
        width:min(430px,92vw);
        background:#fff;
        box-shadow:-22px 0 60px rgba(0,0,0,.22);
        transform:translateX(102%);
        transition:transform .28s cubic-bezier(.22,.7,.2,1);
        z-index:999998;
        overflow-y:auto;
        overflow-x:hidden;
        overscroll-behavior:contain;
        -webkit-overflow-scrolling:touch
    }
    body.mhe-menu-open{overflow:hidden}
    body.mhe-menu-open .mhe-mobile-overlay{opacity:1;visibility:visible}
    body.mhe-menu-open .mhe-mobile-drawer{transform:translateX(0)}
    body.admin-bar .mhe-mobile-drawer{top:32px}

    .mhe-mobile-head{
        min-height:max(76px,calc(var(--mhe-mobile-logo-height) + 24px));
        display:flex;
        align-items:center;
        justify-content:space-between;
        padding:12px 20px;
        border-bottom:1px solid var(--mhe-line)
    }
    .mhe-brand-mobile{min-width:0}
    .mhe-brand-mobile .mhe-brand-logo-img{width:var(--mhe-mobile-logo-width);height:var(--mhe-mobile-logo-height);max-width:none}
    .mhe-mobile-close{
        width:42px;height:42px;
        flex:0 0 42px;
        border:1px solid #e0e4ea!important;
        background:#fff!important;
        border-radius:11px!important;
        display:grid!important;
        place-items:center!important;
        padding:0!important;
        margin:0!important;
        color:var(--mhe-dark)!important;
        cursor:pointer;
        position:relative;
        z-index:4;
        box-shadow:none!important;
        appearance:none;
        -webkit-appearance:none
    }
    .mhe-close-icon{
        position:relative;
        display:block!important;
        width:22px!important;
        height:22px!important;
        pointer-events:none
    }
    .mhe-close-icon:before,
    .mhe-close-icon:after{
        content:"";
        position:absolute;
        left:10px;
        top:1px;
        width:2px;
        height:20px;
        border-radius:2px;
        background:currentColor
    }
    .mhe-close-icon:before{transform:rotate(45deg)}
    .mhe-close-icon:after{transform:rotate(-45deg)}
    .mhe-mobile-trust{
        display:grid;
        grid-template-columns:repeat(3,1fr);
        padding:10px 14px;
        gap:7px;
        background:var(--mhe-dark)
    }
    .mhe-mobile-trust span{
        color:#fff;
        text-align:center;
        font-size:9px;
        font-weight:800;
        padding:5px 3px;
        border:1px solid rgba(255,255,255,.13);
        border-radius:7px
    }
    .mhe-mobile-nav{padding:13px 18px 20px}
    .mhe-mobile-nav>a,
    .mhe-mobile-accordion{
        width:100%;
        min-height:51px;
        display:flex;
        align-items:center;
        justify-content:space-between;
        border:0;
        border-bottom:1px solid #edf0f4;
        background:transparent;
        padding:0 4px;
        color:#17263a!important;
        font-size:14px;
        font-family:inherit;
        font-weight:800;
        text-decoration:none!important;
        text-align:left;
        cursor:pointer
    }
    .mhe-mobile-accordion span{font-size:19px;transition:transform .2s ease}
    .mhe-mobile-accordion[aria-expanded="true"] span{transform:rotate(180deg)}
    .mhe-mobile-panel{
        display:none;
        padding:7px 0 10px 14px;
        border-bottom:1px solid #edf0f4
    }
    .mhe-mobile-panel.is-open{display:grid}
    .mhe-mobile-panel a{
        display:block;
        padding:9px 7px;
        color:#5a6573!important;
        text-decoration:none!important;
        font-size:12px;
        font-weight:700
    }
    .mhe-mobile-city-panel{grid-template-columns:repeat(2,1fr)}
    .mhe-mobile-panel-wide{grid-column:1/-1;font-weight:850!important;color:var(--mhe-dark)!important}
    .mhe-mobile-bottom{
        margin-top:auto;
        background:#f7f8fa;
        border-top:1px solid #e7eaf0;
        padding:18px
    }
    .mhe-mobile-call{
        display:flex;
        align-items:center;
        gap:10px;
        color:var(--mhe-dark)!important;
        text-decoration:none!important;
        margin-bottom:10px
    }
    .mhe-mobile-call>svg{
        width:42px;height:42px;
        padding:11px;
        border-radius:12px;
        background:#fff0f1;
        color:#b5121b
    }
    .mhe-mobile-call span{display:flex;flex-direction:column}
    .mhe-mobile-call small{font-size:10px;color:#77818e}
    .mhe-mobile-call strong{font-size:15px}
    .mhe-mobile-quote{
        min-height:48px;
        display:flex;
        align-items:center;
        justify-content:center;
        gap:8px;
        border-radius:11px;
        background:var(--mhe-accent);
        color:#fff!important;
        font-size:13px;
        font-weight:900;
        text-decoration:none!important
    }
    .mhe-mobile-quote svg{font-size:17px}
    .mhe-mobile-bottom>small{
        display:block;text-align:center;
        margin-top:9px;color:#78818c;font-size:9.5px
    }
}

@media (max-width:680px){
    .mhe-container{width:min(100% - 24px,1240px)}
    .mhe-topbar-inner{min-height:34px}
    .mhe-topbar-message{font-size:10.5px}
    .mhe-topbar-right{display:none}
    .mhe-mainbar-inner{min-height:max(66px,calc(var(--mhe-mobile-logo-height) + 14px));gap:8px}
    .mhe-brand-logo-img{width:var(--mhe-mobile-logo-width);height:var(--mhe-mobile-logo-height);max-width:none}
    .mhe-wordmark{width:68px;height:44px}
    .mhe-wordmark-main{font-size:27px}
    .mhe-phone-cta span:last-child{display:none}
    .mhe-phone-icon{width:42px;height:42px}
    .mhe-quote-cta{
        min-height:42px;
        border-radius:10px;
        padding:0 11px;
        font-size:11px
    }
    .mhe-quote-cta svg{display:none}
    .mhe-mobile-toggle{width:42px;height:42px;border-radius:10px}
    body.admin-bar .mhe-advanced-header.is-scrolled .mhe-mainbar{top:46px}
    body.admin-bar .mhe-mobile-drawer{top:46px}
}

@media (max-width:390px){
    .mhe-quote-cta span{max-width:72px;text-align:center;line-height:1.05}
    .mhe-phone-icon{display:none}
}

@media (prefers-reduced-motion:reduce){
    .mhe-advanced-header *,
    .mhe-mobile-overlay,
    .mhe-mobile-drawer{transition:none!important;scroll-behavior:auto!important}
}
