/* Lemon Site Manager — FALIT global header */
.lf-header,
.lf-header * {
    box-sizing: border-box;
}

.lf-header {
    width: 100%;
    background: #FFFFFF;
    color: #0B2E63;
    border-bottom: 1px solid #E3EAF2;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    z-index: 9998;
}

.lf-header--sticky {
    position: sticky;
    top: 0;
}

.admin-bar .lf-header--sticky {
    top: 32px;
}

.lf-header-wrap {
    width: min(1240px, calc(100% - 64px));
    margin: 0 auto;
}

.lf-header__inner {
    min-height: 86px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 34px;
}

.lf-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0B2E63 !important;
    text-decoration: none !important;
    min-width: 0;
}

.lf-header__logo {
    display: block;
    width: 148px;
    height: 66px;
    max-width: 100%;
    max-height: 66px;
    object-fit: contain;
    object-position: left center;
}

.lf-header__mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: #1473E6;
    color: #FFFFFF;
    font-size: 22px;
    font-weight: 900;
}

.lf-header__wordmark {
    color: #0B2E63;
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.6px;
}

.lf-header__wordmark small {
    display: block;
    margin-top: 4px;
    color: #1473E6;
    font-size: 9px;
    line-height: 1;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.lf-header__nav {
    justify-self: end;
}

.lf-header__menu,
.lf-header__menu ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.lf-header__menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.lf-header__menu > li {
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
}

.lf-header__menu > li > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    color: #0B2E63 !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
}

.lf-header__menu > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 0;
    height: 2px;
    background: #1CC7C1;
    transition: width .18s ease;
}

.lf-header__menu > li:hover > a::after,
.lf-header__menu > li:focus-within > a::after,
.lf-header__menu > li.current-menu-item > a::after,
.lf-header__menu > li.current-menu-ancestor > a::after {
    width: 100%;
}

.lf-header__menu .menu-item-has-children > a {
    padding-right: 16px;
}

.lf-header__menu .menu-item-has-children > a::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid #0B2E63;
    border-bottom: 1.5px solid #0B2E63;
    transform: translateY(-65%) rotate(45deg);
}

.lf-header__menu .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    min-width: 260px;
    padding: 12px !important;
    background: #FFFFFF;
    border: 1px solid #E3EAF2;
    box-shadow: 0 18px 48px rgba(11,46,99,.13);
    transform: translate(-50%, 10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
    z-index: 9999;
}

.lf-header__menu li:hover > .sub-menu,
.lf-header__menu li:focus-within > .sub-menu,
.lf-header__menu li.lf-submenu-open > .sub-menu {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lf-header__menu .sub-menu li {
    margin: 0 !important;
    padding: 0 !important;
}

.lf-header__menu .sub-menu a {
    display: block;
    padding: 10px 12px;
    color: #17385F !important;
    text-decoration: none !important;
    font-size: 12.5px;
    font-weight: 650;
    line-height: 1.35;
    border-radius: 4px;
}

.lf-header__menu .sub-menu a:hover,
.lf-header__menu .sub-menu a:focus {
    background: #F5F8FC;
    color: #17385F !important;
}

.lf-header__submenu-toggle {
    display: none;
}

.lf-header__cta {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 19px;
    border: 2px solid #1473E6;
    border-radius: 5px;
    background: #1473E6;
    color: #FFFFFF !important;
    text-decoration: none !important;
    font-size: 12.5px;
    font-weight: 850;
    white-space: nowrap;
    transition: background .18s ease, border-color .18s ease;
}

.lf-header__cta:hover {
    background: #0B2E63;
    border-color: #0B2E63;
    color: #FFFFFF !important;
}

.lf-header__toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid #D9E2EC;
    border-radius: 5px;
    background: #FFFFFF;
    cursor: pointer;
}

.lf-header__toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: #0B2E63;
    transition: transform .18s ease, opacity .18s ease;
}

@media (max-width: 1060px) {
    .lf-header__inner {
        gap: 22px;
    }

    .lf-header__menu {
        gap: 20px;
    }

    .lf-header__cta {
        padding: 0 15px;
    }
}

@media (max-width: 920px) {
    .lf-header-wrap {
        width: min(100% - 36px, 1240px);
    }

    .lf-header__inner {
        min-height: 76px;
        grid-template-columns: 1fr auto;
    }

    .lf-header__logo {
        width: 138px;
        height: 62px;
        max-height: 62px;
    }

    .lf-header__toggle {
        display: block;
        justify-self: end;
    }

    .lf-header__nav {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        justify-self: stretch;
        padding: 7px 0 18px;
        border-top: 1px solid #E3EAF2;
    }

    .lf-header.lf-header--open .lf-header__nav {
        display: block;
    }

    .lf-header__menu {
        display: block;
    }

    .lf-header__menu > li {
        border-bottom: 1px solid #EAF0F6;
    }

    .lf-header__menu > li > a {
        width: calc(100% - 48px);
        min-height: 50px;
        font-size: 14px;
    }

    .lf-header__menu > li > a::after,
    .lf-header__menu .menu-item-has-children > a::before {
        display: none;
    }

    .lf-header__submenu-toggle {
        position: absolute;
        top: 5px;
        right: 0;
        width: 40px;
        height: 40px;
        display: grid;
        place-items: center;
        border: 0;
        background: transparent;
        color: #0B2E63;
        font-size: 18px;
        cursor: pointer;
    }

    .lf-header__menu .sub-menu {
        position: static;
        min-width: 0;
        padding: 0 0 10px 16px !important;
        border: 0;
        box-shadow: none;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: none;
    }

    .lf-header__menu li.lf-submenu-open > .sub-menu {
        display: block;
    }

    .lf-header__menu .sub-menu a {
        padding: 9px 0;
        background: transparent !important;
    }

    .lf-header__cta {
        display: none;
    }

    .lf-header.lf-header--open .lf-header__inner::after {
        content: "";
        grid-column: 1 / -1;
    }

    .lf-header.lf-header--open .lf-header__toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .lf-header.lf-header--open .lf-header__toggle span:nth-child(2) {
        opacity: 0;
    }

    .lf-header.lf-header--open .lf-header__toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@media (max-width: 782px) {
    .admin-bar .lf-header--sticky {
        top: 46px;
    }
}

@media (max-width: 520px) {
    .lf-header-wrap {
        width: min(100% - 28px, 1240px);
    }

    .lf-header__logo {
        width: 126px;
        height: 56px;
        max-height: 56px;
    }
}
