/* Stable futuristic mobile navigation layer. */
.eh-mobile-menu-head {
    display: none;
}

@media (max-width: 1050px) {
    .eh-topbar {
        position: relative;
        z-index: 9000 !important;
    }

    .eh-header,
    .eh-header.scrolled {
        position: sticky !important;
        top: 0 !important;
        z-index: 12003 !important;
        isolation: isolate;
        overflow: visible !important;
        transform: none !important;
    }

    .eh-header-inner {
        position: relative;
        z-index: 3;
        overflow: visible;
    }

    .eh-menu-toggle {
        position: relative !important;
        z-index: 12004 !important;
        width: 54px !important;
        height: 54px !important;
        display: flex !important;
        flex: 0 0 54px;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        margin-left: auto;
        padding: 12px !important;
        border: 1px solid rgba(7,157,152,.2) !important;
        border-radius: 17px !important;
        background: linear-gradient(145deg,#f5fffc,#e3faf5) !important;
        box-shadow: 0 10px 25px rgba(7,96,90,.13), inset 0 1px 0 #fff !important;
    }

    .eh-menu-toggle span {
        width: 27px !important;
        height: 2px !important;
        flex: 0 0 2px;
        border-radius: 5px;
        background: #087c77 !important;
    }

    .eh-menu-toggle span:nth-child(2) {
        width: 20px !important;
        margin-left: 7px;
    }

    .eh-menu-toggle.open {
        border-color: rgba(255,255,255,.35) !important;
        background: linear-gradient(145deg,#079d98,#057570) !important;
        box-shadow: 0 13px 30px rgba(5,117,112,.3), 0 0 0 5px rgba(7,157,152,.1) !important;
    }

    .eh-menu-toggle.open span {
        width: 27px !important;
        margin-left: 0 !important;
        background: #fff !important;
    }

    .eh-navigation,
    .eh-header.scrolled .eh-navigation {
        position: fixed !important;
        z-index: 12002 !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        max-width: none !important;
        max-height: none !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 clamp(20px,5vw,46px) calc(40px + env(safe-area-inset-bottom)) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
        background:
            radial-gradient(circle at 90% 8%,rgba(61,200,181,.22),transparent 26%),
            radial-gradient(circle at 7% 93%,rgba(48,181,213,.17),transparent 29%),
            linear-gradient(145deg,#f8fffd 0%,#eafbf7 52%,#eefaff 100%) !important;
        box-shadow: 0 35px 80px rgba(4,55,52,.28) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translate3d(100%,0,0) !important;
        transition: transform .45s cubic-bezier(.22,1,.36,1),opacity .25s ease,visibility 0s linear .45s !important;
    }

    .eh-navigation::before {
        content: '';
        position: fixed;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        opacity: .28;
        background-image: radial-gradient(rgba(7,157,152,.45) 1px,transparent 1px);
        background-size: 22px 22px;
        mask-image: linear-gradient(to bottom,black,transparent 72%);
    }

    .eh-navigation.open,
    .eh-header.scrolled .eh-navigation.open {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translate3d(0,0,0) !important;
        transition-delay: 0s !important;
    }

    .eh-mobile-menu-head {
        position: sticky;
        top: 0;
        z-index: 5;
        min-height: 88px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        margin: 0 calc(0px - clamp(20px,5vw,46px)) 20px;
        padding: calc(10px + env(safe-area-inset-top)) clamp(20px,5vw,46px) 10px;
        border-bottom: 1px solid rgba(7,157,152,.14);
        background: rgba(250,255,254,.94);
        box-shadow: 0 10px 30px rgba(7,83,78,.10);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .eh-mobile-menu-head > a {
        display: block;
        width: min(190px,52vw);
    }

    .eh-mobile-menu-head img {
        display: block;
        width: 100%;
        max-height: 66px;
        object-fit: contain;
        object-position: left center;
    }

    .eh-mobile-menu-head button {
        width: 54px;
        height: 54px;
        display: grid;
        flex: 0 0 54px;
        place-items: center;
        padding: 0;
        border: 1px solid rgba(7,157,152,.22);
        border-radius: 17px;
        color: #fff;
        background: linear-gradient(145deg,#079d98,#066f6b);
        box-shadow: 0 12px 28px rgba(5,117,112,.24),0 0 0 5px rgba(7,157,152,.08);
        cursor: pointer;
    }

    .eh-mobile-menu-head button span {
        display: block;
        margin-top: -4px;
        font: 300 42px/1 Arial,sans-serif;
    }

    .eh-navigation > a,
    .eh-dropdown-button,
    .eh-header.scrolled .eh-navigation > a,
    .eh-header.scrolled .eh-dropdown-button {
        min-height: 58px;
        margin-bottom: 8px;
        padding: 13px 17px !important;
        border: 1px solid rgba(7,157,152,.11) !important;
        border-radius: 15px;
        background: rgba(255,255,255,.78) !important;
        color: #123b37 !important;
        box-shadow: 0 8px 22px rgba(8,82,77,.055);
        font-size: clamp(21px,4.2vw,25px) !important;
        line-height: 1.15;
    }

    .eh-navigation > a.active {
        border-color: rgba(7,157,152,.25) !important;
        background: linear-gradient(135deg,#079d98,#087f7a) !important;
        color: #fff !important;
        box-shadow: 0 12px 28px rgba(7,127,122,.2);
    }

    .eh-dropdown.open .eh-mega-menu {
        max-height: none !important;
        padding: 12px 4px 19px !important;
        overflow: visible !important;
        background: transparent;
    }

    html.eh-menu-open,
    body.eh-menu-open {
        overflow: hidden !important;
        height: 100% !important;
        overscroll-behavior: none;
    }

    body.eh-menu-open .eh-header {
        box-shadow: 0 13px 32px rgba(8,61,57,.16) !important;
    }

    /* The menu owns its close bar; hide the frozen page header underneath it. */
    body.eh-menu-open > .eh-topbar,
    body.eh-menu-open > .eh-header {
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

@media (max-width: 640px) {
    .eh-topbar {
        min-height: 0 !important;
        padding: 8px 0 10px;
    }

    .eh-topbar-inner {
        flex-wrap: wrap;
        gap: 8px !important;
    }

    .eh-contact-group {
        width: 100%;
        justify-content: center;
    }

    .eh-action-group {
        width: 100%;
        display: grid !important;
        grid-template-columns: repeat(3,minmax(0,1fr));
        gap: 7px !important;
        margin: 0 !important;
    }

    .eh-action-group .eh-emergency-button {
        display: none !important;
    }

    .eh-action-group .eh-energy-button,
    .eh-action-group .eh-energy-button:nth-child(1),
    .eh-action-group .eh-energy-button:nth-child(2),
    .eh-action-group .eh-energy-button:nth-child(3),
    .eh-action-group .eh-energy-button:nth-child(4) {
        width: 100%;
        min-width: 0 !important;
        min-height: 43px !important;
        display: flex !important;
        gap: 5px;
        padding: 7px 5px !important;
        border-width: 1.5px;
        border-radius: 11px !important;
        text-align: center;
    }

    .eh-action-group .eh-energy-button span:not(.eh-button-icon) {
        display: inline !important;
        font-size: clamp(8px,2.5vw,10px) !important;
        line-height: 1.15;
    }

    .eh-action-group .eh-button-icon {
        width: 24px;
        height: 24px;
        display: grid !important;
        flex: 0 0 24px;
        font-size: 12px;
    }

    .eh-action-group .eh-energy-button b {
        display: none !important;
    }

    .eh-menu-toggle {
        width: 49px !important;
        height: 49px !important;
        flex-basis: 49px;
        border-radius: 15px !important;
    }

    .eh-navigation,
    .eh-header.scrolled .eh-navigation {
        top: 0 !important;
        height: 100dvh !important;
        padding: 0 14px calc(30px + env(safe-area-inset-bottom)) !important;
    }

    .eh-mobile-menu-head {
        min-height: 78px;
        margin: 0 -14px 14px;
        padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
    }

    .eh-mobile-menu-head > a {
        width: min(158px,50vw);
    }

    .eh-mobile-menu-head button {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
        border-radius: 15px;
    }

    .eh-navigation > a,
    .eh-dropdown-button,
    .eh-header.scrolled .eh-navigation > a,
    .eh-header.scrolled .eh-dropdown-button {
        min-height: 53px;
        margin-bottom: 7px;
        padding: 11px 14px !important;
        border-radius: 13px;
        font-size: clamp(20px,6vw,23px) !important;
    }
}

@media (max-width: 390px) {
    .eh-action-group .eh-button-icon {
        display: none !important;
    }

    .eh-action-group .eh-energy-button span:not(.eh-button-icon) {
        font-size: 8px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eh-navigation,
    .eh-menu-toggle {
        transition: none !important;
    }
}
