/* =====================================================
   ENERGIE-WECHSLER DYNAMIC HEADER
===================================================== */

:root {
    --ewh-adminbar-height: 0px;
}

#ewh-fixed,
#ewh-fixed * {
    box-sizing: border-box;
}

#ewh-fixed {
    --blue: #2B80FF;
    --blue-dark: #176FEF;
    --dark: #111C2D;
    --text: #405067;
    --muted: #748296;
    --light: #F4F8FD;
    --line: #E3EAF2;

    position: fixed !important;
    top: var(--ewh-adminbar-height, 0px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 99990 !important;
    margin: 0 !important;
    transform: translateZ(0);
    font-family: inherit;
    transition: box-shadow .35s ease !important;
}

#wpadminbar {
    z-index: 99999 !important;
}

.ewh-spacer {
    width: 100%;
    height: 172px;
}

/* TOPBAR */

#ewh-fixed .ewh-topbar {
    height: 46px !important;
    max-height: 46px !important;
    overflow: hidden !important;
    opacity: 1;
    background: var(--blue) !important;
    transition:
        height .34s cubic-bezier(.2,.7,.2,1),
        max-height .34s cubic-bezier(.2,.7,.2,1),
        opacity .20s ease !important;
}

#ewh-fixed .ewh-topbar-inner {
    width: 100%;
    max-width: 1440px;
    height: 46px;
    margin: 0 auto;
    padding: 0 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#ewh-fixed .ewh-topbar-left {
    display: flex;
    align-items: center;
    gap: 17px;
}

#ewh-fixed .ewh-top-link {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #FFFFFF !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    white-space: nowrap;
}

#ewh-fixed .ewh-top-link i {
    font-size: 14px;
}

#ewh-fixed .ewh-top-separator {
    width: 1px;
    height: 17px;
    background: rgba(255,255,255,.25);
}

/* SOCIALS */

#ewh-fixed .ewh-socials {
    display: flex;
    align-items: center;
    gap: 7px;
}

#ewh-fixed .ewh-socials a {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.14);
    color: #FFFFFF !important;
    text-decoration: none !important;
    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}

#ewh-fixed .ewh-socials a:hover {
    transform: translateY(-2px);
    background: #FFFFFF;
    color: var(--blue) !important;
}

/* MAIN */

#ewh-fixed .ewh-main {
    height: 126px !important;
    min-height: 126px !important;
    background: #FFFFFF !important;
    border-bottom: 1px solid rgba(17,28,45,.08);
    transition:
        height .38s cubic-bezier(.2,.7,.2,1),
        min-height .38s cubic-bezier(.2,.7,.2,1) !important;
}

#ewh-fixed .ewh-main-inner {
    width: 100%;
    max-width: 1440px;
    height: 100%;
    margin: 0 auto;
    padding: 0 42px;
    display: flex;
    align-items: center;
    gap: 42px;
}

/* LOGO */

#ewh-fixed .ewh-logo {
    width: 240px !important;
    flex: 0 0 240px !important;
    display: flex;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    text-decoration: none !important;
    transition:
        width .38s cubic-bezier(.2,.7,.2,1),
        flex-basis .38s cubic-bezier(.2,.7,.2,1) !important;
}

#ewh-fixed .ewh-logo img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    max-height: 112px !important;
    object-fit: contain;
    object-position: left center;
    transition: max-height .38s cubic-bezier(.2,.7,.2,1) !important;
}

/* NAV */

#ewh-fixed .ewh-nav {
    height: 64px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px;
    border-radius: 12px;
    background: #F5F8FC;
    border: 1px solid #E4EAF2;
    transition:
        height .35s ease,
        padding .35s ease;
}

#ewh-fixed .ewh-nav-link {
    position: relative;
    height: 50px;
    padding: 0 23px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    color: var(--dark) !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition:
        height .35s ease,
        padding .35s ease,
        font-size .35s ease,
        background .2s ease,
        color .2s ease,
        box-shadow .2s ease;
}

#ewh-fixed .ewh-nav-link::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 4px;
    height: 2px;
    border-radius: 10px;
    background: var(--blue);
    opacity: 0;
    transform: scaleX(.4);
    transition:
        opacity .2s ease,
        transform .2s ease;
}

#ewh-fixed .ewh-nav-link:hover,
#ewh-fixed .ewh-nav-link.ewh-current {
    background: #FFFFFF;
    color: var(--blue) !important;
    box-shadow: 0 6px 18px rgba(31,60,94,.07);
}

#ewh-fixed .ewh-nav-link:hover::after,
#ewh-fixed .ewh-nav-link.ewh-current::after {
    opacity: 1;
    transform: scaleX(1);
}

/* PARENT */

#ewh-fixed .ewh-nav-parent {
    position: relative;
    height: 50px;
    transition: height .35s ease;
}

#ewh-fixed .ewh-nav-services i {
    font-size: 11px;
    transition: transform .25s ease;
}

#ewh-fixed .ewh-nav-parent:hover .ewh-nav-services i,
#ewh-fixed .ewh-nav-parent:focus-within .ewh-nav-services i {
    transform: rotate(180deg);
}

/* SUBMENU */

#ewh-fixed .ewh-submenu-shell {
    position: absolute;
    top: 100%;
    left: -30px;
    width: 415px;
    padding-top: 17px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition:
        opacity .22s ease,
        transform .22s ease,
        visibility .22s ease;
}

#ewh-fixed .ewh-nav-parent:hover .ewh-submenu-shell,
#ewh-fixed .ewh-nav-parent:focus-within .ewh-submenu-shell {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

#ewh-fixed .ewh-submenu {
    overflow: hidden;
    border-radius: 13px;
    background: #FFFFFF;
    border: 1px solid #DFE7F0;
    box-shadow: 0 24px 60px rgba(17,40,70,.15);
}

#ewh-fixed .ewh-submenu-head {
    padding: 20px 22px;
    background: #F6F9FD;
    border-bottom: 1px solid var(--line);
}

#ewh-fixed .ewh-submenu-head span {
    display: block;
    margin-bottom: 4px;
    color: var(--blue);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

#ewh-fixed .ewh-submenu-head strong {
    display: block;
    color: var(--dark);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

#ewh-fixed .ewh-submenu-links {
    padding: 7px 10px 10px;
}

#ewh-fixed .ewh-submenu-links a {
    position: relative;
    min-height: 48px;
    padding: 10px 12px 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid #EDF1F5;
    border-radius: 6px;
    color: #253449 !important;
    font-size: 14px !important;
    line-height: 1.35;
    font-weight: 450 !important;
    text-decoration: none !important;
    transition:
        background .2s ease,
        color .2s ease,
        padding .2s ease;
}

#ewh-fixed .ewh-submenu-links a:last-child {
    border-bottom: 0;
}

#ewh-fixed .ewh-submenu-links a::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 0;
    width: 3px;
    border-radius: 20px;
    background: var(--blue);
    opacity: 0;
    transform: scaleY(.45);
    transition:
        opacity .2s ease,
        transform .2s ease;
}

#ewh-fixed .ewh-submenu-links a > i {
    color: var(--blue);
    font-size: 11px;
    opacity: 0;
    transform: translateX(-5px);
    transition:
        opacity .2s ease,
        transform .2s ease;
}

#ewh-fixed .ewh-submenu-links a:hover,
#ewh-fixed .ewh-submenu-links a.ewh-sub-current {
    padding-left: 19px;
    background: rgba(43,128,255,.07);
    color: var(--blue) !important;
}

#ewh-fixed .ewh-submenu-links a:hover::before,
#ewh-fixed .ewh-submenu-links a.ewh-sub-current::before {
    opacity: 1;
    transform: scaleY(1);
}

#ewh-fixed .ewh-submenu-links a:hover > i,
#ewh-fixed .ewh-submenu-links a.ewh-sub-current > i {
    opacity: 1;
    transform: translateX(0);
}

/* RIGHT */

#ewh-fixed .ewh-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

#ewh-fixed .ewh-phone {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-decoration: none !important;
}

#ewh-fixed .ewh-phone-icon {
    width: 47px;
    height: 47px;
    flex: 0 0 47px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(43,128,255,.08);
    color: var(--blue);
    transition:
        width .35s ease,
        height .35s ease,
        flex-basis .35s ease,
        background .2s ease,
        color .2s ease;
}

#ewh-fixed .ewh-phone:hover .ewh-phone-icon {
    background: var(--blue);
    color: #FFFFFF;
}

#ewh-fixed .ewh-phone-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    white-space: nowrap;
}

#ewh-fixed .ewh-phone-copy small {
    color: var(--muted);
    font-size: 11.5px;
}

#ewh-fixed .ewh-phone-copy strong {
    color: var(--dark);
    font-size: 15px;
    font-weight: 600;
}

#ewh-fixed .ewh-cta {
    min-height: 53px;
    padding: 0 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 8px;
    background: var(--blue);
    color: #FFFFFF !important;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 10px 25px rgba(43,128,255,.20);
    transition:
        min-height .35s ease,
        padding .35s ease,
        background .2s ease,
        transform .2s ease;
}

#ewh-fixed .ewh-cta:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
}

/* STICKY */

#ewh-fixed.ewh-scrolled {
    box-shadow: 0 9px 34px rgba(17,28,45,.12) !important;
}

#ewh-fixed.ewh-scrolled .ewh-topbar {
    height: 0 !important;
    max-height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#ewh-fixed.ewh-scrolled .ewh-main {
    height: 96px !important;
    min-height: 96px !important;
}

#ewh-fixed.ewh-scrolled .ewh-logo {
    width: 190px !important;
    flex: 0 0 190px !important;
}

#ewh-fixed.ewh-scrolled .ewh-logo img {
    max-height: 82px !important;
}

#ewh-fixed.ewh-scrolled .ewh-nav {
    height: 58px;
    padding: 5px;
}

#ewh-fixed.ewh-scrolled .ewh-nav-parent {
    height: 46px;
}

#ewh-fixed.ewh-scrolled .ewh-nav-link {
    height: 46px;
    padding: 0 21px !important;
    font-size: 16px !important;
}

#ewh-fixed.ewh-scrolled .ewh-phone {
    gap: 10px;
}

#ewh-fixed.ewh-scrolled .ewh-phone-icon {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
}

#ewh-fixed.ewh-scrolled .ewh-phone-copy small {
    font-size: 10.5px;
}

#ewh-fixed.ewh-scrolled .ewh-phone-copy strong {
    font-size: 14px;
}

#ewh-fixed.ewh-scrolled .ewh-cta {
    min-height: 48px;
    padding: 0 19px;
    font-size: 14px;
}

/* MOBILE BUTTON */

#ewh-fixed .ewh-mobile-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    background: #F3F7FC;
    color: var(--dark);
    cursor: pointer;
}

#ewh-fixed .ewh-mobile-menu {
    display: none;
}

/* MOBILE */

@media (max-width:960px) {

    .ewh-spacer {
        height: 92px;
    }

    #ewh-fixed .ewh-topbar {
        display: none !important;
    }

    #ewh-fixed .ewh-main {
        height: 92px !important;
        min-height: 92px !important;
    }

    #ewh-fixed.ewh-scrolled .ewh-main {
        height: 78px !important;
        min-height: 78px !important;
    }

    #ewh-fixed .ewh-main-inner {
        padding: 0 20px;
    }

    #ewh-fixed .ewh-logo {
        width: 175px !important;
        flex: 0 0 175px !important;
    }

    #ewh-fixed .ewh-logo img {
        max-height: 80px !important;
    }

    #ewh-fixed.ewh-scrolled .ewh-logo {
        width: 150px !important;
        flex: 0 0 150px !important;
    }

    #ewh-fixed.ewh-scrolled .ewh-logo img {
        max-height: 65px !important;
    }

    #ewh-fixed .ewh-nav,
    #ewh-fixed .ewh-phone,
    #ewh-fixed .ewh-cta {
        display: none !important;
    }

    #ewh-fixed .ewh-mobile-toggle {
        display: flex;
    }

    #ewh-fixed .ewh-mobile-menu {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        background: #FFFFFF;
        border-top: 1px solid var(--line);
        box-shadow: 0 24px 45px rgba(17,28,45,.12);
        transition:
            max-height .45s ease,
            opacity .25s ease,
            visibility .25s ease;
    }

    #ewh-fixed.ewh-mobile-open .ewh-mobile-menu {
        max-height: calc(
            100vh
            - 80px
            - var(--ewh-adminbar-height,0px)
        );
        opacity: 1;
        visibility: visible;
        overflow-y: auto;
    }

    #ewh-fixed .ewh-mobile-inner {
        padding: 10px 20px 20px;
    }

    #ewh-fixed .ewh-mobile-single {
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 3px;
        border-bottom: 1px solid var(--line);
        color: var(--dark) !important;
        font-size: 18px;
        font-weight: 500;
        text-decoration: none !important;
    }

    #ewh-fixed .ewh-mobile-single i {
        width: 34px;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(43,128,255,.07);
        color: var(--blue);
        font-size: 11px;
    }

    #ewh-fixed .ewh-mobile-single.ewh-mobile-current {
        color: var(--blue) !important;
        font-weight: 600;
    }

    #ewh-fixed .ewh-mobile-services {
        border-bottom: 1px solid var(--line);
    }

    #ewh-fixed .ewh-mobile-services-row {
        min-height: 60px;
        display: grid;
        grid-template-columns: 1fr 44px;
        align-items: center;
    }

    #ewh-fixed .ewh-mobile-services-row > a {
        color: var(--dark) !important;
        font-size: 18px;
        font-weight: 500;
        text-decoration: none !important;
    }

    #ewh-fixed .ewh-mobile-services.ewh-has-active-child
    .ewh-mobile-services-row > a,
    #ewh-fixed .ewh-mobile-services-link.ewh-mobile-current {
        color: var(--blue) !important;
        font-weight: 600;
    }

    #ewh-fixed .ewh-mobile-services-toggle {
        width: 38px;
        height: 38px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 50%;
        background: rgba(43,128,255,.07);
        color: var(--blue);
        cursor: pointer;
    }

    #ewh-fixed .ewh-mobile-services-toggle i {
        font-size: 12px;
        transition: transform .25s ease;
    }

    #ewh-fixed .ewh-mobile-services.ewh-sub-open
    .ewh-mobile-services-toggle i {
        transform: rotate(180deg);
    }

    #ewh-fixed .ewh-mobile-submenu {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition:
            max-height .4s ease,
            opacity .25s ease;
    }

    #ewh-fixed .ewh-mobile-services.ewh-sub-open
    .ewh-mobile-submenu {
        max-height: 900px;
        opacity: 1;
        padding-bottom: 8px;
    }

    #ewh-fixed .ewh-mobile-submenu a {
        position: relative;
        min-height: 48px;
        display: flex;
        align-items: center;
        padding: 8px 12px 8px 17px;
        border-top: 1px solid #EDF1F5;
        color: #536279 !important;
        font-size: 14px;
        line-height: 1.35;
        text-decoration: none !important;
    }

    #ewh-fixed .ewh-mobile-submenu a.ewh-sub-current {
        padding-left: 21px;
        background: rgba(43,128,255,.075);
        color: var(--blue) !important;
        font-weight: 600;
    }

    #ewh-fixed .ewh-mobile-submenu a.ewh-sub-current::before {
        content: "";
        position: absolute;
        top: 9px;
        bottom: 9px;
        left: 5px;
        width: 3px;
        border-radius: 20px;
        background: var(--blue);
    }

    #ewh-fixed .ewh-mobile-contact {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 9px;
        margin-top: 18px;
    }

    #ewh-fixed .ewh-mobile-contact > a {
        min-width: 0;
        padding: 14px;
        display: flex;
        align-items: center;
        gap: 10px;
        border-radius: 8px;
        background: var(--light);
        color: var(--dark) !important;
        text-decoration: none !important;
    }

    #ewh-fixed .ewh-mobile-contact > a > span {
        width: 35px;
        height: 35px;
        flex: 0 0 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 7px;
        background: rgba(43,128,255,.09);
        color: var(--blue);
    }

    #ewh-fixed .ewh-mobile-contact small {
        display: block;
        color: var(--muted);
        font-size: 10px;
    }

    #ewh-fixed .ewh-mobile-contact strong {
        display: block;
        overflow: hidden;
        color: var(--dark);
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    #ewh-fixed .ewh-mobile-cta {
        min-height: 55px;
        margin-top: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        border-radius: 8px;
        background: var(--blue);
        color: #FFFFFF !important;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none !important;
    }
}

@media (max-width:600px) {

    #ewh-fixed .ewh-main-inner {
        padding: 0 16px;
    }

    #ewh-fixed .ewh-mobile-inner {
        padding-left: 17px;
        padding-right: 17px;
    }

    #ewh-fixed .ewh-mobile-contact {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {

    #ewh-fixed,
    #ewh-fixed * {
        transition: none !important;
        animation: none !important;
    }
}
