/**
 * eFormax — Header, top bar, dropdown & mega menu
 * Brand: #00332B · #004236 · #F7D15E · #E6F4F9 · #F0F8FB
 */

:root {
    --ef-nav-primary: #00332b;
    --ef-nav-primary-mid: #004236;
    --ef-nav-accent: #f7d15e;
    --ef-nav-bg: #e6f4f9;
    --ef-nav-surface: #f0f8fb;
    --ef-nav-text: #1a3d36;
    --ef-nav-muted: #4a6b65;
    --ef-nav-border: rgba(0, 51, 43, 0.1);
    --ef-nav-shadow: 0 12px 40px rgba(0, 51, 43, 0.12);
    --ef-nav-radius: 12px;
    --ef-nav-transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Top utility bar ── */
.ef-topbar.header-top {
    height: auto;
}

.ef-topbar {
    background: linear-gradient(90deg, var(--ef-nav-primary) 0%, var(--ef-nav-primary-mid) 100%);
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    position: relative;
    z-index: 1001;
}

.ef-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 42px;
    padding: 0.35rem 0;
}

.ef-topbar__left,
.ef-topbar__right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
}

.ef-topbar__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--ef-nav-transition);
    white-space: nowrap;
}

.ef-topbar__link:hover {
    color: var(--ef-nav-accent);
}

.ef-topbar__link svg {
    flex-shrink: 0;
    opacity: 0.85;
}

.ef-topbar__divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

.ef-topbar__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--ef-nav-accent);
    color: var(--ef-nav-primary);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.ef-topbar .dropdown-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 12px;
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
}

.ef-topbar .dropdown-toggle:hover,
.ef-topbar .dropdown-toggle:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

@media (max-width: 767.98px) {
    .ef-topbar__link .ef-topbar__label,
    .ef-topbar .name {
        display: none;
    }

    .ef-topbar__inner {
        min-height: 38px;
    }
}

/* ── Main header shell ── */
header.ef-header {
    border-top: 1px solid var(--ef-nav-border);
    border-bottom: 1px solid var(--ef-nav-border);
    background: #fff;
    float: none !important;
    width: 100%;
    z-index: 1000;
    padding: 0 !important;
    isolation: isolate;
}

header.ef-header.stick {
    box-shadow: 0 4px 24px rgba(0, 51, 43, 0.08);
}

header.ef-header .ef-header__inner {
    display: grid !important;
    grid-template-columns: 180px minmax(0, 1fr) auto;
    grid-template-areas: "logo nav actions";
    align-items: center !important;
    column-gap: 2rem;
    row-gap: 0;
    min-height: 88px;
    width: 100%;
}

.ef-header__logo {
    grid-area: logo;
    width: 180px;
    max-width: 180px;
    min-width: 0;
    line-height: 0;
    align-self: center;
}

.ef-header__logo a {
    display: block;
    line-height: 0;
    width: 180px;
    max-width: 100%;
}

.ef-header__logo img {
    display: block;
    width: 180px !important;
    max-width: 180px !important;
    height: 56px !important;
    max-height: 56px !important;
    object-fit: contain;
    object-position: left center;
}

.ef-header__nav {
    grid-area: nav;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
    overflow: visible;
    float: none !important;
}

.ef-header__actions {
    grid-area: actions;
    display: flex !important;
    align-items: center;
    gap: 0.5rem 0.75rem;
    flex-shrink: 0;
    width: auto !important;
    margin: 0;
    padding: 0 !important;
    justify-self: end;
}

.ef-header__search-field {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: 168px;
    max-width: 168px;
    height: 40px;
    padding: 0 1rem;
    border: 1px solid rgba(0, 51, 43, 0.12) !important;
    background: var(--ef-nav-surface) !important;
    color: var(--ef-nav-muted);
    border-radius: 999px;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 13px;
    line-height: 1;
    box-shadow: none !important;
    transition: border-color var(--ef-nav-transition), background var(--ef-nav-transition), box-shadow var(--ef-nav-transition);
}

.ef-header__search-field:hover {
    border-color: rgba(0, 51, 43, 0.22) !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 51, 43, 0.06);
    color: var(--ef-nav-primary);
}

.ef-header__search-field svg {
    flex-shrink: 0;
    color: var(--ef-nav-primary);
}

.ef-header__search-placeholder {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--ef-nav-muted);
    font-weight: 400;
}

.ef-header__search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: auto;
    height: 40px;
    padding: 0 1rem;
    border: 1px solid rgba(0, 51, 43, 0.12) !important;
    background: var(--ef-nav-surface);
    color: var(--ef-nav-primary);
    border-radius: 999px;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 500;
}

a.ef-header__cta,
.ef-header__cta {
    display: inline-flex !important;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 1.25rem !important;
    background: var(--ef-nav-primary) !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
    border: none !important;
    box-shadow: none;
    transition: background var(--ef-nav-transition);
}

.ef-header__cta-label {
    white-space: nowrap;
    color: #fff !important;
}

a.ef-header__cta:hover,
.ef-header__cta:hover {
    background: var(--ef-nav-primary-mid) !important;
    color: #fff !important;
    transform: none;
    box-shadow: none;
}

.ef-header__cta svg {
    flex-shrink: 0;
    color: #fff !important;
}

@media (min-width: 1200px) {
    .ef-header__search-field {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        border-radius: 0;
        color: #333;
    }

    .ef-header__search-placeholder {
        display: none !important;
    }
}

/* Kill legacy floats inside header */
header.ef-header .ef-header__inner,
header.ef-header .ef-header__nav,
header.ef-header .nav-main-menu,
header.ef-header ul.ef-main-menu,
header.ef-header ul.ef-main-menu > li {
    float: none !important;
    clear: none !important;
}

.ef-header .nav-main-menu {
    width: 100%;
    float: none;
    padding: 0;
}

.ef-header .burger-icon:not(.ef-header__burger) {
    display: none;
}

/* ── Mobile menu toggle (no legacy .burger-icon class — avoids theme 24px absolute styles) ── */
.ef-header__burger {
    display: none;
    box-sizing: border-box;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    margin: 0;
    border: 1px solid rgba(0, 51, 43, 0.12);
    border-radius: 10px;
    background: #fff;
    flex-shrink: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    color: var(--ef-nav-primary);
    transition: border-color var(--ef-nav-transition), background var(--ef-nav-transition), box-shadow var(--ef-nav-transition);
    z-index: auto;
    -webkit-appearance: none;
    appearance: none;
}

.ef-header__burger:hover {
    border-color: rgba(0, 51, 43, 0.22);
    background: var(--ef-nav-surface);
    box-shadow: 0 2px 8px rgba(0, 51, 43, 0.06);
}

.ef-header__burger:focus-visible {
    outline: 2px solid var(--ef-nav-primary);
    outline-offset: 2px;
}

.ef-header__burger-line {
    display: block !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 18px;
    height: 2.5px;
    background: var(--ef-nav-primary) !important;
    border-radius: 2px;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.ef-header__burger > span::before,
.ef-header__burger > span::after,
.ef-header .ef-header__burger > span::before,
.ef-header .ef-header__burger > span::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

.ef-header__burger.burger-close {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: 44px;
}

.ef-header__burger.burger-close .ef-header__burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.ef-header__burger.burger-close .ef-header__burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.ef-header__burger.burger-close .ef-header__burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Desktop main menu ── */
.ef-header ul.ef-main-menu {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    float: none !important;
}

.ef-header ul.ef-main-menu > li {
    float: none !important;
    padding: 0 !important;
    flex-shrink: 0;
}

.ef-header ul.ef-main-menu > li:not(.has-mega-menu) {
    position: relative;
}

.ef-header ul.ef-main-menu > li.has-mega-menu {
    position: static !important;
}

.ef-header ul.ef-main-menu > li > a {
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem 1rem !important;
    font-size: 15px !important;
    font-weight: 500;
    line-height: 1.4 !important;
    color: #333 !important;
    text-decoration: none;
    border-radius: 0;
    background: transparent !important;
    transition: color var(--ef-nav-transition);
    position: relative;
    white-space: nowrap;
}

.ef-header ul.ef-main-menu > li.has-children > a,
.ef-header ul.ef-main-menu > li.has-mega-menu > a {
    padding-right: 0.85rem !important;
}

.ef-header ul.ef-main-menu > li:hover > a,
.ef-header ul.ef-main-menu > li.active > a,
.ef-header ul.ef-main-menu > li.ef-menu-open > a {
    color: var(--ef-nav-primary) !important;
    background: transparent !important;
}

.ef-header ul.ef-main-menu > li .menu-icon-image {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.ef-menu-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
    opacity: 0.55;
    transition: transform var(--ef-nav-transition), opacity var(--ef-nav-transition);
}

.ef-header ul.ef-main-menu > li.has-children:hover > a .ef-menu-chevron,
.ef-header ul.ef-main-menu > li.has-children.ef-menu-open > a .ef-menu-chevron {
    opacity: 1;
}

.ef-header ul.ef-main-menu > li.ef-menu-open > a .ef-menu-chevron {
    transform: rotate(180deg);
}

.ef-mobile-drawer ul.mobile-menu > li.has-children > a .ef-menu-chevron {
    margin-left: auto;
    opacity: 0.45;
}

.ef-mobile-drawer ul.mobile-menu > li.active > a .ef-menu-chevron {
    opacity: 1;
    transform: rotate(180deg);
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .ef-header ul.ef-main-menu > li > a {
        padding: 0.65rem 0.75rem !important;
        font-size: 14px !important;
    }

    .ef-header__cta {
        padding: 0.55rem 0.85rem;
        font-size: 12px;
    }

    .ef-header__logo img {
        max-height: 42px;
    }
}

@media (min-width: 1200px) {
    .ef-header .burger-icon {
        display: none !important;
    }

    .ef-header__search-field {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        border-radius: 0;
        color: #333;
    }

    .ef-header__search-placeholder {
        display: none !important;
    }

    a.ef-header__cta,
    .ef-header__cta {
        display: inline-flex !important;
    }
}

/* ── Standard dropdown (non-mega) ── */
@media (min-width: 1200px) {
    .ef-header ul.ef-main-menu > li.has-children:not(.has-mega-menu) > ul.ef-dropdown-panel {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        min-width: 240px !important;
        padding: 0.65rem !important;
        margin: 0 !important;
        list-style: none !important;
        background: #fff !important;
        border: 1px solid var(--ef-nav-border) !important;
        border-radius: 8px !important;
        box-shadow: 0 8px 30px rgba(0, 51, 43, 0.1) !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.18s ease, visibility 0.18s ease;
        z-index: 10100 !important;
    }

    .ef-header ul.ef-main-menu > li.has-children:not(.has-mega-menu) > ul.ef-dropdown-panel::before {
        content: '';
        position: absolute;
        bottom: 100%;
        left: 0;
        right: 0;
        height: 16px;
    }

    .ef-header ul.ef-main-menu > li.has-children:not(.has-mega-menu)::before {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: 16px;
    }

    .ef-header ul.ef-main-menu > li.has-children:not(.has-mega-menu):hover > ul.ef-dropdown-panel,
    .ef-header ul.ef-main-menu > li.has-children:not(.has-mega-menu).ef-menu-open > ul.ef-dropdown-panel {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .ef-header ul.ef-main-menu > li.has-children:not(.has-mega-menu) ul.ef-dropdown-panel li {
        float: none !important;
        width: 100%;
        padding: 0;
    }

    .ef-header ul.ef-main-menu > li.has-children:not(.has-mega-menu) ul.ef-dropdown-panel li a {
        display: flex !important;
        align-items: center;
        gap: 0.5rem;
        padding: 0.55rem 0.85rem !important;
        font-size: 14px !important;
        font-weight: 500;
        color: var(--ef-nav-muted) !important;
        border-radius: 8px;
        text-decoration: none !important;
        transition: background var(--ef-nav-transition), color var(--ef-nav-transition);
    }

    .ef-header ul.ef-main-menu > li.has-children:not(.has-mega-menu) ul.ef-dropdown-panel li a:hover {
        background: var(--ef-nav-surface) !important;
        color: var(--ef-nav-primary) !important;
    }

    /* Nested flyout */
    .ef-header ul.ef-main-menu > li.has-children:not(.has-mega-menu) ul.ef-dropdown-panel li.has-children > ul {
        top: 0;
        left: calc(100% + 4px);
    }

    .ef-header ul.ef-main-menu > li.has-children:not(.has-mega-menu) ul.ef-dropdown-panel li.has-children > a .ef-menu-chevron {
        margin-left: auto;
        transform: rotate(-90deg);
    }
}

/* ── Mega menu panel ── */
@media (min-width: 1200px) {
    header.ef-header.sticky-bar .ef-header__nav,
    header.ef-header.sticky-bar .ef-header__nav .nav-main-menu {
        overflow: visible !important;
    }

    header.ef-header.sticky-bar {
        position: relative;
    }

    header.ef-header.sticky-bar > .container {
        position: static;
    }

    header.ef-header.sticky-bar ul.ef-main-menu > li.has-mega-menu {
        position: static !important;
    }

    header.ef-header.sticky-bar ul.ef-main-menu > li.has-mega-menu > .mega-menu-dropdown {
        display: none !important;
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        top: 100% !important;
        width: 100% !important;
        max-width: none;
        padding: 0;
        margin: 0;
        background: #fff;
        border: none;
        border-top: 1px solid var(--ef-nav-border);
        border-radius: 0;
        box-shadow: var(--ef-nav-shadow);
        z-index: 10050;
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.18s ease, visibility 0.18s ease;
    }

    header.ef-header.sticky-bar ul.ef-main-menu > li.has-mega-menu > .mega-menu-dropdown::before {
        content: '';
        position: absolute;
        bottom: 100%;
        left: 0;
        right: 0;
        height: 24px;
    }

    header.ef-header.sticky-bar ul.ef-main-menu > li.has-mega-menu:hover > .mega-menu-dropdown,
    header.ef-header.sticky-bar ul.ef-main-menu > li.has-mega-menu.ef-menu-open > .mega-menu-dropdown {
        display: block !important;
        pointer-events: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .mega-menu-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
        gap: 1.75rem 2rem;
        align-items: start;
    }

    .mega-menu-col {
        position: relative !important;
        width: auto !important;
        min-width: 0;
        float: none !important;
    }

    .mega-menu-container {
        max-width: 1410px;
        margin: 0 auto;
        padding: 2rem 1.5rem 2.25rem;
    }

    .mega-menu-col-label,
    .mega-menu-aside-label {
        display: block;
        width: 100%;
        margin: 0 0 14px;
        padding: 0 0 10px;
        border-bottom: 2px solid var(--ef-nav-accent);
        font-family: inherit;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.12em;
        line-height: 1.35;
        text-transform: uppercase;
        color: var(--ef-nav-primary);
    }

    .mega-menu-card-title {
        font-size: 14px;
        font-weight: 600;
        color: var(--ef-nav-text);
        line-height: 1.4;
    }

    .mega-menu-card-desc {
        font-size: 12px;
        color: var(--ef-nav-muted);
        line-height: 1.5;
        margin-top: 0.15rem;
    }

    header.ef-header ul.ef-main-menu li.has-mega-menu .mega-menu-dropdown ul {
        position: static !important;
        left: auto !important;
        top: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        float: none !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        transform: none !important;
        transition: none !important;
    }

    header.ef-header ul.ef-main-menu li.has-mega-menu .mega-menu-dropdown li {
        float: none !important;
        width: auto !important;
        padding: 0 !important;
    }

    .mega-menu-link-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mega-menu-link-list > li {
        margin: 0;
    }

    .mega-menu-card {
        display: flex;
        gap: 0.85rem;
        align-items: flex-start;
        padding: 0.65rem 0.75rem;
        margin: 0 -0.75rem;
        border-radius: var(--ef-nav-radius);
        text-decoration: none;
        color: inherit;
        transition: background var(--ef-nav-transition);
    }

    .mega-menu-card:hover {
        background: var(--ef-nav-surface);
    }

    .mega-menu-card-icon {
        flex-shrink: 0;
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--ef-nav-primary);
        background: var(--ef-nav-bg);
        border-radius: 10px;
    }

    .mega-menu-card-icon img {
        width: 22px;
        height: 22px;
        object-fit: contain;
    }

    .mega-menu-card-title {
        display: block;
        font-weight: 600;
        font-size: 14px;
        line-height: 1.35;
        color: var(--ef-nav-text);
    }

    .mega-menu-card-desc {
        display: block;
        margin-top: 0.2rem;
        font-size: 12px;
        line-height: 1.45;
        color: var(--ef-nav-muted);
    }

    .mega-menu-aside {
        background: linear-gradient(145deg, var(--ef-nav-surface) 0%, var(--ef-nav-bg) 100%);
        border-radius: var(--ef-nav-radius);
        padding: 1.35rem 1.5rem;
        border: 1px solid var(--ef-nav-border);
    }

    .mega-menu-aside-list a {
        display: block;
        padding: 0.45rem 0;
        font-size: 14px;
        font-weight: 600;
        color: var(--ef-nav-text);
        text-decoration: none;
    }

    .mega-menu-aside-list a:hover {
        color: var(--ef-nav-primary-mid);
    }

    .mega-menu-footer {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        margin-top: 0.5rem;
        padding-top: 1.25rem;
        border-top: 1px solid var(--ef-nav-border);
    }

    .mega-menu-footer__text {
        font-size: 14px;
        color: var(--ef-nav-muted);
        margin: 0;
    }

    .mega-menu-footer__link {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        font-size: 14px;
        font-weight: 600;
        color: var(--ef-nav-primary);
        text-decoration: none;
    }

    .mega-menu-footer__link:hover {
        color: var(--ef-nav-primary-mid);
    }
}

@media (max-width: 1199.98px) {
    .mega-menu-dropdown {
        display: none !important;
    }

    header.ef-header .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    header.ef-header .ef-header__inner {
        grid-template-columns: 1fr auto;
        grid-template-areas: "logo actions";
        min-height: 68px;
        column-gap: 12px;
    }

    .ef-header__logo {
        width: auto;
        max-width: min(160px, 42vw);
    }

    .ef-header__logo a {
        width: auto;
        max-width: 100%;
    }

    .ef-header__logo img {
        width: auto !important;
        max-width: min(160px, 42vw) !important;
        height: auto !important;
        max-height: 48px !important;
    }

    .ef-header__nav {
        display: none !important;
    }

    .ef-header__actions {
        display: flex !important;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
        flex-wrap: nowrap;
    }

    .ef-header .ef-header__burger.d-xl-none {
        display: inline-flex !important;
    }

    .ef-header__search-field {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        min-width: 44px;
        max-width: 44px;
        padding: 0 !important;
        justify-content: center;
        border: 1px solid rgba(0, 51, 43, 0.12) !important;
        border-radius: 10px !important;
        background: #fff !important;
        color: var(--ef-nav-primary);
        box-sizing: border-box;
    }

    .ef-header__search-placeholder {
        display: none !important;
    }

    .ef-header__cta {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        min-width: 44px;
        padding: 0 !important;
        border-radius: 10px !important;
        box-sizing: border-box;
    }

    .ef-header__cta .ef-header__cta-label {
        display: none !important;
    }

    .ef-header__cta svg {
        margin: 0;
    }
}

/* ── Mobile drawer ── */
.ef-mobile-drawer.mobile-header-wrapper-style {
    max-width: min(400px, 92vw);
    background: #fff;
    box-shadow: -8px 0 40px rgba(0, 51, 43, 0.15);
    transform: translate3d(100%, 0, 0);
    pointer-events: none;
}

.ef-mobile-drawer.mobile-header-wrapper-style.sidebar-visible {
    visibility: visible !important;
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) !important;
    pointer-events: auto !important;
}

.ef-mobile-drawer .ef-mobile-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--ef-nav-border);
    background: var(--ef-nav-surface);
}

.ef-mobile-drawer .ef-mobile-drawer__head .mobile-logo {
    position: static;
    border: none;
    padding: 0;
}

.ef-mobile-drawer .ef-mobile-drawer__head .mobile-logo img {
    max-height: 40px;
    width: auto;
}

.ef-mobile-drawer .ef-mobile-drawer__close.ef-header__burger {
    display: inline-flex !important;
    flex-shrink: 0;
}

.ef-mobile-drawer .ef-mobile-drawer__close.ef-header__burger.burger-close .ef-header__burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.ef-mobile-drawer .ef-mobile-drawer__close.ef-header__burger.burger-close .ef-header__burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.ef-mobile-drawer .ef-mobile-drawer__close.ef-header__burger.burger-close .ef-header__burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.ef-mobile-drawer .mobile-header-content-area {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ef-mobile-drawer .ef-mobile-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0 1rem;
}

.ef-mobile-drawer .ef-mobile-drawer__footer {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid var(--ef-nav-border);
    background: var(--ef-nav-surface);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.ef-mobile-drawer .ef-mobile-drawer__footer .ef-header__cta {
    width: 100%;
    justify-content: center;
}

.ef-mobile-drawer .ef-mobile-drawer__footer .ef-header__search {
    width: 100%;
    height: auto;
    padding: 0.7rem 1rem;
    gap: 0.5rem;
    font-size: 14px;
    font-weight: 600;
}

.ef-mobile-drawer .nav-tabs-mobile {
    display: none;
}

.ef-mobile-drawer ul.mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0 1.25rem;
    --ef-mobile-link-py: 0.625rem;
}

/* Reset legacy theme .mobile-menu li { padding: 13px 0 } — spacing lives on links only */
.ef-mobile-drawer .mobile-menu-wrap nav .mobile-menu li,
.ef-mobile-drawer ul.mobile-menu li {
    border-bottom: 1px solid var(--ef-nav-border);
    padding: 0 !important;
    margin: 0 !important;
    position: relative;
}

.ef-mobile-drawer ul.mobile-menu > li:last-child {
    border-bottom: none;
}

.ef-mobile-drawer ul.mobile-menu .sub-menu {
    display: none;
    padding: 0 0 0 0.75rem !important;
    margin: 0 !important;
    list-style: none;
}

.ef-mobile-drawer ul.mobile-menu .sub-menu > li,
.ef-mobile-drawer ul.mobile-menu .sub-menu .sub-menu > li {
    border-bottom: none !important;
    padding: 0 !important;
}

.ef-mobile-drawer ul.mobile-menu .sub-menu .sub-menu {
    padding-left: 0.75rem !important;
}

/* Equal compact tap targets for every menu level */
.ef-mobile-drawer .mobile-menu-wrap nav .mobile-menu li > a,
.ef-mobile-drawer ul.mobile-menu li > a,
.ef-mobile-drawer ul.mobile-menu .sub-menu li > a {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: var(--ef-mobile-link-py) 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--ef-nav-muted);
    text-decoration: none;
    background: transparent !important;
    transition: color 0.15s ease;
}

.ef-mobile-drawer ul.mobile-menu > li > a {
    font-size: 16px;
    font-weight: 600;
    color: var(--ef-nav-text);
}

.ef-mobile-drawer ul.mobile-menu > li.active > a,
.ef-mobile-drawer ul.mobile-menu > li > a:hover,
.ef-mobile-drawer ul.mobile-menu .sub-menu li > a:hover {
    color: var(--ef-nav-primary);
    padding-left: 0 !important;
}

.ef-mobile-drawer .menu-expand {
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%);
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: var(--ef-nav-surface);
    border-radius: 8px;
    color: var(--ef-nav-primary);
}

.ef-mobile-drawer ul.mobile-menu .sub-menu,
.ef-mobile-drawer ul.mobile-menu .ef-mobile-mega {
    display: none;
}

/* Mobile mega sections */
.ef-mobile-mega {
    padding: 0.25rem 0 0.375rem;
}

.ef-mobile-mega__section {
    margin-bottom: 0.75rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid var(--ef-nav-border);
}

.ef-mobile-mega__section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ef-mobile-mega__head {
    margin-bottom: 0.375rem;
    padding-bottom: 0.375rem;
    border-bottom: 2px solid var(--ef-nav-accent);
}

.ef-mobile-mega__title {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ef-nav-primary);
}

.ef-mobile-mega__submenu {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ef-mobile-mega__subheading {
    display: block;
    margin: 0.5rem 0 0.125rem;
    font-size: 13px;
    font-weight: 600;
    color: var(--ef-nav-text);
}

.ef-mobile-mega__subheading:first-child {
    margin-top: 0;
}

.ef-mobile-mega__sublink {
    display: block;
    padding: var(--ef-mobile-link-py, 0.625rem) 0.5rem;
    margin: 0 -0.5rem;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--ef-nav-muted);
    text-decoration: none;
    border-radius: 6px;
    border-left: 2px solid transparent;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.ef-mobile-mega__sublink:hover {
    color: var(--ef-nav-primary);
    background: var(--ef-nav-surface);
    border-left-color: var(--ef-nav-accent);
}

.ef-mobile-mega__foot {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--ef-nav-border);
}

.ef-mobile-mega__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ef-nav-primary);
    text-decoration: none;
}

.ef-mobile-mega__card {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.35rem;
    background: var(--ef-nav-surface);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
}

.ef-mobile-mega__card-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ef-nav-bg);
    border-radius: 8px;
    color: var(--ef-nav-primary);
}

.ef-mobile-mega__card-icon img {
    width: 20px;
    height: 20px;
}

.ef-mobile-mega__card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ef-nav-text);
}

.ef-mobile-mega__card-desc {
    font-size: 12px;
    color: var(--ef-nav-muted);
    margin-top: 0.15rem;
}

.ef-mobile-drawer .ef-mobile-utilities {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--ef-nav-border);
}

.ef-mobile-drawer .ef-mobile-utilities a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 14px;
    color: var(--ef-nav-muted);
    text-decoration: none;
}

.body-overlay-1 {
    background: rgba(0, 51, 43, 0.45);
    backdrop-filter: blur(2px);
    pointer-events: none;
}

body.mobile-menu-active .body-overlay-1 {
    pointer-events: auto;
}

@media (max-width: 1199.98px) {
    header.ef-header .ef-header__actions {
        position: relative;
        z-index: 1004;
    }

    header.ef-header .ef-mobile-menu-trigger {
        position: relative;
        z-index: 1005;
        pointer-events: auto;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
}

.ef-mobile-drawer .mobile-logo img {
    max-width: 120px !important;
    max-height: 38px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}
