/* ================================
   Maher Header
================================ */

.mh-head,
.mh-head.fixedintro {
    position: sticky;
    inset: 0 0 auto;
    z-index: 99999;
    width: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    background: var(--mah-bg);
    color: #ffffff;
    box-shadow: 0 12px 40px rgb(0 0 0 / 0%);
    backdrop-filter: none;
    transition: box-shadow .25s ease, background-color .25s ease;
}

.mh-head.fixedintro {
    position: fixed;
}

.mh-head.active {
    background: rgb(9 10 10 / 96%);
    box-shadow: 0 18px 42px rgb(0 0 0 / 28%);
}

.mh-head.header_border {
    border-bottom: 1px solid rgb(var(--uicolor-code) / 18%);
}

.mh-head :focus-visible {
    outline: 2px solid var(--uicolor);
    outline-offset: 3px;
}

.mh-head .container,
.mh-head.fixedintro .container {
    display: block;
}

.mh-top {
    border-bottom: 1px solid rgb(255 255 255 / 7%);
    background:
        radial-gradient(circle at 12% 0, rgb(var(--uicolor-code) / 9%) 0, transparent 28%),
        #0d0e0d;
}

.mh-top-in {
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 22px;
    color: rgb(255 255 255 / 64%);
    font-size: 11px;
    font-weight: 700;
}

.mh-note,
.mh-info,
.mh-links {
    display: flex;
    align-items: center;
}

.mh-note {
    gap: 8px;
    color: var(--mah-cream);
    white-space: nowrap;
}

.mh-note > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--uicolor);
    box-shadow: 0 0 0 5px rgb(var(--uicolor-code) / 10%);
}

.mh-note strong {
    font-weight: 800;
}

.mh-info {
    min-width: 0;
    flex: 1;
    gap: 20px;
}

.mh-info > span {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mh-info i {
    color: var(--uicolor);
}

.mh-links {
    gap: 14px;
    white-space: nowrap;
}

.mh-links a {
    position: relative;
    color: rgb(255 255 255 / 68%);
    font-size: 11px;
    font-weight: 800;
}

.mh-links a + a {
    padding-inline-start: 14px;
}

.mh-links a + a::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgb(255 255 255 / 35%);
    transform: translateY(-50%);
}

.mh-links a:hover {
    color: var(--uicolor);
}

.mh-main {
    position: relative;
    border-bottom: 1px solid rgb(var(--uicolor-code) / 16%);
    background:
        linear-gradient(90deg, transparent, rgb(var(--uicolor-code) / 4%), transparent),
        linear-gradient(180deg, #151615, #0c0d0d);
}

.mh-main::after {
    content: "";
    position: absolute;
    inset: auto 0 -1px;
    width: 22%;
    height: 1px;
    margin-inline: auto;
    background: linear-gradient(90deg, transparent, var(--uicolor), transparent);
    opacity: .85;
}

.mh-main-in {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.mh-head .mh-logo {
    min-width: 150px;
    max-height: none;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.mh-head .mh-logo > a {
    min-width: 0;
    max-width: var(--logo-width, 150px);
    height: auto;
    justify-content: flex-start;
    color: #ffffff;
    line-height: 1;
}

.mh-head .mh-logo img {
    width: auto;
    max-height: 52px;
    margin: 0;
    object-fit: contain;
}

.mh-head .mh-logo.--logo-Text > a {
    max-width: none;
    font-size: clamp(25px, 2.2vw, 35px);
    font-weight: 900;
    letter-spacing: -.04em;
}

.mh-head .mh-logo.--logo-Text strong {
    color: var(--uicolor);
    font-weight: 900;
}

.mh-head .mh-logo small {
    max-width: 180px;
    color: rgb(255 255 255 / 50%);
    font-size: 9px;
    line-height: 1.35;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mh-head .mh-nav {
    min-width: 0;
    padding: 0 12px;
    flex: 1;
    justify-content: center;
}

.mh-head .mh-nav > ul {
    width: auto;
    gap: 3px;
}

.mh-head .mh-nav > ul > li {
    position: relative;
    padding: 8px 0;
}

.mh-head .mh-nav > ul > li > a {
    min-height: 40px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: rgb(255 255 255 / 82%);
    font-size: 14px;
    line-height: 1.25;
    font-weight: 800;
}

.mh-head .mh-nav > ul > li.menu-item-has-children > a {
    padding-inline-end: 32px;
}

.mh-head .mh-nav > ul > li:hover > a,
.mh-head .mh-nav > ul > li:focus-within > a,
.mh-head .mh-nav > ul > li.current-menu-item > a,
.mh-head .mh-nav > ul > li.current_page_item > a,
.mh-head .mh-nav > ul > li.current_page_parent > a,
.mh-head .mh-nav > ul > li.current-menu-ancestor > a {
    border-color: rgb(var(--uicolor-code) / 13%);
    background: rgb(var(--uicolor-code) / 8%);
    color: var(--uicolor);
    box-shadow: none;
}

.mh-head .mh-sub-btn {
    position: absolute;
    inset-inline-end: 8px;
    top: 50%;
    z-index: 2;
    width: 24px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgb(255 255 255 / 58%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translateY(-50%);
}

.mh-head .mh-sub-btn i {
    font-size: 9px;
    transition: transform .2s ease;
}

.mh-head .mh-sub-btn i.trans {
    transform: rotate(180deg);
}

.mh-head .mh-nav > ul > li ul.sub-menu {
    position: absolute;
    inset-inline-start: 0;
    top: calc(100% + 1px);
    z-index: 99;
    min-width: 235px;
    width: max-content;
    max-width: 310px;
    padding: 8px;
    border: 1px solid rgb(var(--uicolor-code) / 16%);
    border-radius: 15px;
    background:
        radial-gradient(circle at 100% 0, rgb(var(--uicolor-code) / 8%), transparent 32%),
        #131414;
    color: #ffffff;
    box-shadow: 0 24px 60px rgb(0 0 0 / 38%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transform-origin: top;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.mh-head .mh-nav > ul > li:hover > ul.sub-menu,
.mh-head .mh-nav li.hover > ul.sub-menu,
.mh-head .mh-nav ul.sub-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mh-head .mh-nav ul.sub-menu ul.sub-menu {
    inset-inline-start: calc(100% + 10px);
    top: -8px;
}

.mh-head .mh-nav ul.sub-menu > li {
    position: relative;
    display: flex;
    align-items: center;
}

.mh-head .mh-nav ul.sub-menu > li > a {
    min-width: 0;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 10px;
    flex: 1;
    color: rgb(255 255 255 / 78%);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
}

.mh-head .mh-nav ul.sub-menu > li.menu-item-has-children > a {
    padding-inline-end: 42px;
}

.mh-head .mh-nav ul.sub-menu > li:hover > a,
.mh-head .mh-nav ul.sub-menu > li:focus-within > a,
.mh-head .mh-nav ul.sub-menu > li.current-menu-item > a,
.mh-head .mh-nav ul.sub-menu > li.current-menu-ancestor > a {
    padding-inline: 14px;
    background: rgb(var(--uicolor-code) / 9%);
    color: var(--uicolor);
}

.mh-head .mh-nav ul.sub-menu .mh-sub-btn {
    inset-inline-end: 8px;
    top: 21px;
}

.mh-nav-head,
.mh-mob-info {
    display: none;
}

.mh-acts {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.mh-head .mh-act,
.mh-head .mh-acct,
.mh-head .mh-call {
    min-width: 42px;
    height: 42px;
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 14px;
    background: rgb(255 255 255 / 5%);
    color: var(--mah-cream);
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mh-head .mh-act:hover,
.mh-head .mh-acct:hover,
.mh-head .mh-call:hover {
    border-color: rgb(var(--uicolor-code) / 35%);
    background: rgb(var(--uicolor-code) / 9%);
    color: var(--uicolor);
    transform: translateY(-2px);
}

.mh-head .mh-cart {
    position: relative;
}

.mh-head .mh-cart count {
    position: absolute;
    inset: -6px -6px auto auto;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border: 2px solid var(--mah-bg-2);
    border-radius: 999px;
    background: var(--uicolor);
    color: var(--on-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-number);
    font-size: 9px;
    font-weight: 900;
}

.mh-head .mh-acct,
.mh-head .mh-call {
    width: auto;
    padding: 0 13px;
    gap: 7px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.mh-head .mh-acct.login-hbtn {
    min-height: 42px;
    border-width: 1px;
    border-color: rgb(var(--uicolor-code) / 34%);
    background: var(--uicolor);
    color: var(--on-brand);
}

.mh-head .mh-acct.login-hbtn:hover {
    background: #ffe16f;
    color: var(--on-brand);
}

.mh-head .mh-call i {
    color: var(--uicolor);
}

.mh-head .mh-cta.fsurl-btn {
    min-height: 42px;
    padding: 8px 10px;
    border-width: 1px;
    border-radius: 12px;
    gap: 9px;
    font-size: 13px;
    box-shadow: 0 12px 26px rgb(var(--uicolor-code) / 13%);
}

.mh-head .mh-cta .icn-btn {
    position: static;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    background: rgb(17 16 13 / 10%);
    color: var(--on-brand);
}

.mh-head .mh-cta:hover .icn-btn {
    width: 29px;
    background: var(--uicolor);
}

.mh-head .-mobile-menu-button {
    display: none;
}

@media (max-width: 1440px) {
    .mh-main-in {
        gap: 12px;
    }

    .mh-head .mh-logo {
        min-width: 120px;
    }

    .mh-head .mh-nav {
        padding-inline: 4px;
    }

    .mh-head .mh-nav > ul > li > a {
        padding-inline: 9px;
        font-size: 13px;
    }

    .mh-head .mh-nav > ul > li.menu-item-has-children > a {
        padding-inline-end: 29px;
    }

    .mh-head .mh-acct span,
    .mh-head .mh-call span {
        display: none;
    }

    .mh-head .mh-acct,
    .mh-head .mh-call {
        width: 42px;
        padding: 0;
        border-radius: 14px;
    }

    .mh-head .mh-cta.fsurl-btn {
        padding-inline: 9px;
    }
}

@media (max-width: 1180px) {
    body.header-layout-maher.is_open_menu::before {
        z-index: 99990;
        background: rgb(3 4 4 / 70%);
        backdrop-filter: blur(4px);
    }

    body.is_open_menu .fixed-btns,
    body.is_open_menu .GoToTop,
    body.is_open_menu .yc-mob-nav,
    body.is_open_menu #maher-ai-bot-root {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .mh-head,
    .mh-head.fixedintro {
        min-height: 68px;
    }

    .mh-top {
        display: none;
    }

    .mh-main-in {
        min-height: 68px;
        gap: 10px;
    }

    .mh-head .-mobile-menu-button.background {
        order: 0;
        width: 40px;
        min-width: 40px;
        height: 40px;
        margin: 0;
        padding: 0;
        border: 1px solid rgb(var(--uicolor-code) / 30%);
        border-radius: 13px;
        background: var(--uicolor);
        color: var(--on-brand);
        box-shadow: 0 10px 26px rgb(var(--uicolor-code) / 14%);
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mh-head .menu__icon {
        width: 23px;
        height: 21px;
        padding: 4px 3px;
    }

    .mh-head .menu__icon span {
        height: 2px;
        background: var(--on-brand);
    }

    .mh-head .menu__icon.trans_menu span:first-child,
    .mh-head .menu__icon.trans_menu span:nth-child(3) {
        background: var(--on-brand);
    }

    .mh-head .mh-logo {
        min-width: 0;
        margin-inline-end: auto;
        flex: 0 1 auto;
    }

    .mh-head .mh-logo > a {
        min-width: 0;
        max-width: min(var(--logo-width, 135px), 150px);
    }

    .mh-head .mh-logo.--logo-Text > a,
    .mh-head .mh-logo.--logo-Text > a > span {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mh-head .mh-logo img {
        max-height: 47px;
    }

    .mh-head .mh-logo small {
        display: none;
    }

    .mh-head .mh-nav {
        position: fixed;
        top: 68px;
        right: auto;
        left: auto;
        bottom: 0;
        inset-inline-start: 0;
        inset-inline-end: auto;
        z-index: 99998;
        width: min(390px, 92vw);
        min-width: 0;
        max-width: min(390px, 92vw);
        height: auto;
        padding: 14px;
        border: 0;
        border-inline-end: 1px solid rgb(var(--uicolor-code) / 18%);
        background:
            radial-gradient(circle at 100% 0, rgb(var(--uicolor-code) / 10%), transparent 27%),
            #0d0e0e;
        color: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        overflow-x: hidden;
        overflow-y: auto;
        visibility: hidden;
        opacity: 0;
        box-shadow: -24px 0 60px rgb(0 0 0 / 42%);
        transform: translateX(105%);
        transition: transform .3s ease, opacity .25s ease, visibility .3s ease;
        overscroll-behavior: contain;
    }

    [dir="ltr"] .mh-head .mh-nav {
        box-shadow: 24px 0 60px rgb(0 0 0 / 42%);
        transform: translateX(-105%);
    }

    .mh-head .mh-nav.open_menu {
        right: auto;
        visibility: visible;
        opacity: 1;
        transform: translateX(0);
    }

    .mh-nav-head {
        width: 100%;
        min-height: 47px;
        margin-bottom: 12px;
        padding: 0 4px 11px;
        border-bottom: 1px solid rgb(255 255 255 / 9%);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .mh-nav-head strong {
        color: var(--mah-cream);
        font-size: 17px;
        font-weight: 900;
    }

    .mh-nav-head button {
        width: 44px;
        height: 44px;
        border: 1px solid rgb(255 255 255 / 9%);
        border-radius: 11px;
        background: rgb(255 255 255 / 5%);
        color: #ffffff;
        cursor: pointer;
    }

    .mh-head .mh-nav > ul {
        width: 100%;
        display: block;
    }

    .mh-head .mh-nav > ul > li {
        width: 100%;
        margin-bottom: 7px;
        padding: 0;
    }

    .mh-head .mh-nav > ul > li > a {
        width: 100%;
        min-height: 48px;
        margin: 0;
        padding: 12px 14px;
        border: 1px solid rgb(255 255 255 / 7%);
        border-radius: 12px;
        background: rgb(255 255 255 / 4%);
        color: rgb(255 255 255 / 84%);
        font-size: 15px;
        font-weight: 900;
        box-shadow: none;
    }

    .mh-head .mh-nav > ul > li.menu-item-has-children > a {
        padding-inline-end: 56px;
    }

    .mh-head .mh-nav > ul > li:hover > a,
    .mh-head .mh-nav > ul > li:focus-within > a,
    .mh-head .mh-nav > ul > li.current-menu-item > a,
    .mh-head .mh-nav > ul > li.current_page_item > a,
    .mh-head .mh-nav > ul > li.current_page_parent > a,
    .mh-head .mh-nav > ul > li.current-menu-ancestor > a {
        border-color: rgb(var(--uicolor-code) / 25%);
        background: rgb(var(--uicolor-code) / 9%);
        color: var(--uicolor);
    }

    .mh-head .mh-nav .mh-sub-btn {
        inset-inline-end: 8px;
        top: 2px;
        width: 44px;
        height: 44px;
        border: 1px solid rgb(var(--uicolor-code) / 16%);
        border-radius: 10px;
        background: rgb(var(--uicolor-code) / 8%);
        color: var(--uicolor);
        transform: none;
    }

    .mh-head .mh-nav > ul > li ul.sub-menu,
    .mh-head .mh-nav ul.sub-menu ul.sub-menu {
        position: relative;
        inset: auto;
        top: auto;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        margin: 7px 0 0;
        padding: 7px;
        border-color: rgb(255 255 255 / 7%);
        border-radius: 12px;
        background: rgb(255 255 255 / 3%);
        box-shadow: none;
        opacity: 1;
        visibility: visible !important;
        transform: none;
        display: none;
    }

    .mh-head .mh-nav ul.sub-menu.active,
    .mh-head .mh-nav li.hover > ul.sub-menu.active {
        display: block !important;
    }

    .mh-head .mh-nav ul.sub-menu > li {
        width: 100%;
        flex-wrap: wrap;
    }

    .mh-head .mh-nav ul.sub-menu > li > a {
        width: 100%;
        min-width: 0;
        min-height: 42px;
        padding: 10px 11px;
        background: transparent;
        color: rgb(255 255 255 / 70%);
        font-size: 14px;
    }

    .mh-head .mh-nav ul.sub-menu > li.menu-item-has-children > a {
        padding-inline-end: 52px;
    }

    .mh-mob-info {
        width: 100%;
        margin-top: auto;
        padding: 16px 4px 4px;
        border-top: 1px solid rgb(255 255 255 / 9%);
        display: block;
    }

    .mh-mob-info > strong {
        display: block;
        margin-bottom: 10px;
        color: var(--mah-cream);
        font-size: 14px;
        font-weight: 900;
    }

    .mh-mob-list {
        display: flex;
        align-items: stretch;
        gap: 7px;
    }

    .mh-mob-list > a {
        min-width: 0;
        min-height: 43px;
        padding: 8px;
        border: 1px solid rgb(255 255 255 / 7%);
        border-radius: 11px;
        background: rgb(255 255 255 / 4%);
        color: rgb(255 255 255 / 76%);
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        font-size: 11px;
        font-weight: 800;
    }

    .mh-mob-list > a i,
    .mh-mob-info > p i {
        color: var(--uicolor);
    }

    .mh-mob-list > a span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mh-mob-info > p {
        margin-top: 10px;
        color: rgb(255 255 255 / 55%);
        display: flex;
        align-items: flex-start;
        gap: 8px;
        font-size: 11px;
        line-height: 1.6;
    }

    .mh-head .mh-mob-btn {
        min-height: 44px;
        margin-top: 12px;
        padding: 9px 13px;
        border-radius: 11px;
        background: var(--uicolor);
        color: var(--on-brand);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        font-size: 13px;
        font-weight: 900;
    }

    .mh-head .mh-mob-btn .icn-btn {
        position: static;
        width: 28px;
        height: 28px;
        background: rgb(17 16 13 / 10%);
        color: var(--on-brand);
    }

    .mh-head .mh-cta,
    .mh-head .mh-call {
        display: none;
    }
}

@media (min-width: 783px) and (max-width: 1180px) {
    body.admin-bar .mh-head .mh-nav {
        top: 100px;
    }
}

@media (max-width: 782px) {
    body.admin-bar .mh-head,
    body.admin-bar .mh-head.fixedintro {
        top: 46px;
    }

    body.admin-bar .mh-head .mh-nav {
        top: 114px;
    }
}

@media (min-width: 783px) {
    body.admin-bar .mh-head,
    body.admin-bar .mh-head.fixedintro {
        top: 32px;
    }
}

@media (max-width: 680px) {
    .mh-head .container {
        padding-inline: 12px;
    }

    .mh-head .mh-acct {
        display: none;
    }

    .mh-head .mh-logo.--logo-Text > a {
        font-size: 27px;
    }
}

@media (max-width: 600px) {
    body.admin-bar .mh-head.admin-bar-away,
    body.admin-bar .mh-head.fixedintro.admin-bar-away {
        top: 0;
    }

    body.admin-bar .mh-head.admin-bar-away .mh-nav {
        top: 68px;
    }
}

@media (max-width: 430px) {
    .mh-head,
    .mh-head.fixedintro {
        min-height: 62px;
    }

    .mh-main-in {
        min-height: 62px;
        gap: 7px;
    }

    .mh-head .-mobile-menu-button.background,
    .mh-head .mh-act {
        width: 44px;
        min-width: 44px;
        height: 44px;
        border-radius: 11px;
    }

    .mh-head .mh-logo > a {
        max-width: min(var(--logo-width, 115px), 125px);
    }

    .mh-head .mh-logo.--logo-Text > a,
    .mh-head .mh-logo.--logo-Text > a > span {
        max-width: 115px;
    }

    .mh-head .mh-logo img {
        max-height: 40px;
    }

    .mh-head .mh-logo.--logo-Text > a {
        font-size: 23px;
    }

    .mh-head .mh-nav {
        top: 62px;
        width: 100%;
        max-width: 100%;
        padding: 12px;
        border-inline-end: 0;
    }

    body.admin-bar .mh-head .mh-nav {
        top: 108px;
    }

    body.admin-bar .mh-head.admin-bar-away .mh-nav {
        top: 62px;
    }

    .mh-head .mh-nav > ul > li > a {
        min-height: 45px;
        font-size: 14px;
    }

    .mh-mob-list > a {
        flex-direction: column;
        gap: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mh-head *,
    .mh-head *::before,
    .mh-head *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
