/* =========================================================
   LBS SOFTWARE
   HEADER + RESPONSIVE MOBILE NAVIGATION
   ========================================================= */

:root {
    --lbs-navy: #0b2747;
    --lbs-blue: #087cff;
    --lbs-blue-dark: #0059d6;
    --lbs-text: #13233a;
    --lbs-muted: #64748b;
    --lbs-border: #e5eaf1;
    --lbs-bg: #f7faff;
    --lbs-white: #ffffff;
    --header-height: 82px;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;
    height: var(--header-height);

    background: #ffffff;

    border-bottom: 1px solid rgba(11, 39, 71, .08);

    box-shadow:
        0 2px 14px rgba(11, 39, 71, .05);
}


.header-inner {
    position: relative;

    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
}


/* =========================================================
   FINAL LBS LOGO
   ========================================================= */

.brand {
    display: flex;
    align-items: center;

    flex: 0 0 auto;

    height: 100%;

    text-decoration: none;
}


.brand img {
    display: block;

    width: 172px;
    max-width: 172px;

    height: auto;
    max-height: 68px;

    object-fit: contain;
    object-position: left center;
}


/* =========================================================
   DESKTOP NAVIGATION
   ========================================================= */

.lbs-main-nav {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 3px;

    margin-left: auto;
}


.lbs-main-nav > a,
.nav-dropdown > button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 4px;

    min-height: 42px;

    padding: 9px 10px;

    border: 0;
    border-radius: 8px;

    background: transparent;

    color: #17263a;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: -.01em;

    white-space: nowrap;

    text-decoration: none;

    cursor: pointer;

    transition:
        color .2s ease,
        background .2s ease;
}


.lbs-main-nav > a:hover,
.lbs-main-nav > a.active,
.nav-dropdown > button:hover {
    color: var(--lbs-blue);

    background: #f2f7ff;
}


/* =========================================================
   DESKTOP DROPDOWNS
   ========================================================= */

.nav-dropdown {
    position: relative;
}


.nav-dropdown > button span {
    font-size: 10px;

    transition:
        transform .2s ease;
}


.nav-dropdown:hover > button span {
    transform: rotate(180deg);
}


.nav-dropdown-menu {
    position: absolute;

    top: calc(100% + 9px);
    left: 0;

    min-width: 245px;

    padding: 9px;

    background: #ffffff;

    border: 1px solid var(--lbs-border);

    border-radius: 13px;

    box-shadow:
        0 16px 40px rgba(11, 39, 71, .14);

    opacity: 0;
    visibility: hidden;

    transform: translateY(6px);

    transition:
        opacity .18s ease,
        visibility .18s ease,
        transform .18s ease;
}


.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}


.nav-dropdown-menu a {
    display: block;

    padding: 10px 12px;

    border-radius: 8px;

    color: #30435a;

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;

    transition:
        color .15s ease,
        background .15s ease;
}


.nav-dropdown-menu a:hover {
    color: var(--lbs-blue);

    background: #f2f7ff;
}


/* =========================================================
   HEADER CTA
   ========================================================= */

.header-cta {
    display: inline-flex !important;

    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 10px 15px !important;

    margin-left: 5px;

    border-radius: 9px !important;

    background:
        linear-gradient(
            135deg,
            var(--lbs-blue),
            var(--lbs-blue-dark)
        ) !important;

    color: #ffffff !important;

    box-shadow:
        0 7px 18px rgba(8, 124, 255, .22);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.header-cta:hover {
    transform: translateY(-1px);

    box-shadow:
        0 10px 24px rgba(8, 124, 255, .28);
}


/* =========================================================
   HAMBURGER BUTTON
   ========================================================= */

.lbs-menu-toggle {
    display: none;

    position: relative;

    z-index: 1102;

    width: 44px;
    height: 44px;

    padding: 8px;

    border: 1px solid transparent;

    border-radius: 9px;

    background: #ffffff;

    cursor: pointer;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 5px;

    -webkit-tap-highlight-color: transparent;
}


.lbs-menu-toggle:hover {
    background: #f5f9ff;

    border-color: #e1e9f2;
}


.lbs-menu-toggle span {
    display: block;

    width: 24px;
    height: 2px;

    border-radius: 3px;

    background: var(--lbs-navy);

    transition:
        transform .25s ease,
        opacity .2s ease;
}


/* Hamburger ? X */

.lbs-menu-toggle.active span:nth-child(1) {
    transform:
        translateY(7px)
        rotate(45deg);
}


.lbs-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}


.lbs-menu-toggle.active span:nth-child(3) {
    transform:
        translateY(-7px)
        rotate(-45deg);
}


/* =========================================================
   MOBILE MENU PANEL
   ========================================================= */

.lbs-mobile-menu {
    position: fixed;

    top: 0;
    right: 0;

    z-index: 1100;

    width: min(390px, 88vw);
    height: 100dvh;

    background: #ffffff;

    box-shadow:
        -15px 0 50px rgba(0, 0, 0, .16);

    transform: translateX(100%);

    visibility: hidden;

    transition:
        transform .30s ease,
        visibility .30s ease;

    overflow-y: auto;

    overscroll-behavior: contain;

    -webkit-overflow-scrolling: touch;
}


.lbs-mobile-menu.open {
    transform: translateX(0);

    visibility: visible;
}


/* =========================================================
   MOBILE MENU HEADER
   ========================================================= */

.lbs-mobile-menu-header {
    position: sticky;

    top: 0;

    z-index: 10;

    height: 76px;

    padding: 0 20px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    background: #ffffff;

    border-bottom: 1px solid #e5ebf2;
}


.lbs-mobile-menu-header span {
    color: var(--lbs-blue);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .14em;
}


.lbs-mobile-close {
    width: 40px;
    height: 40px;

    display: grid;

    place-items: center;

    padding: 0;

    border: 1px solid #dbe3ec;

    border-radius: 9px;

    background: #f7faff;

    color: var(--lbs-navy);

    font-size: 26px;

    line-height: 1;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease;
}


.lbs-mobile-close:hover {
    background: var(--lbs-blue);

    color: #ffffff;

    border-color: var(--lbs-blue);
}


/* =========================================================
   MOBILE MENU BODY
   ========================================================= */

.lbs-mobile-menu-body {
    padding: 10px 20px 40px;
}


.lbs-mobile-menu-body > a,
.lbs-mobile-menu-body summary {
    display: flex;

    align-items: center;

    width: 100%;

    min-height: 49px;

    padding: 10px 4px;

    border-bottom: 1px solid #edf1f5;

    color: var(--lbs-navy);

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    transition:
        color .2s ease,
        padding-left .2s ease;
}


.lbs-mobile-menu-body > a:hover,
.lbs-mobile-menu-body summary:hover {
    color: var(--lbs-blue);

    padding-left: 8px;
}


/* =========================================================
   MOBILE DROPDOWNS
   ========================================================= */

.lbs-mobile-menu-body details {
    margin: 0;

    border-bottom: 1px solid #edf1f5;
}


.lbs-mobile-menu-body details summary {
    border-bottom: 0;

    list-style: none;

    justify-content: space-between;

    user-select: none;
}


.lbs-mobile-menu-body details summary::-webkit-details-marker {
    display: none;
}


.lbs-mobile-menu-body details summary::after {
    content: "+";

    width: 24px;
    height: 24px;

    display: grid;

    place-items: center;

    color: var(--lbs-blue);

    font-size: 19px;

    font-weight: 400;
}


.lbs-mobile-menu-body details[open] summary::after {
    content: "-";
}


/* Submenu */

.lbs-mobile-menu-body details a {
    display: block;

    padding: 10px 10px 10px 17px;

    border-left: 2px solid #e5f0ff;

    color: var(--lbs-muted);

    font-size: 12px;

    font-weight: 600;

    line-height: 1.4;

    text-decoration: none;

    transition:
        color .2s ease,
        background .2s ease,
        padding-left .2s ease;
}


.lbs-mobile-menu-body details a:hover {
    padding-left: 21px;

    color: var(--lbs-blue);

    background: #f7faff;
}


/* =========================================================
   MOBILE PARTNER BUTTON
   ========================================================= */

.lbs-mobile-partner {
    margin-top: 15px !important;

    justify-content: center !important;

    min-height: 48px !important;

    padding: 12px 15px !important;

    border: 0 !important;

    border-radius: 9px !important;

    background:
        linear-gradient(
            135deg,
            var(--lbs-blue),
            var(--lbs-blue-dark)
        ) !important;

    color: #ffffff !important;

    box-shadow:
        0 8px 20px rgba(8, 124, 255, .20);
}


.lbs-mobile-partner:hover {
    padding-left: 15px !important;

    background:
        linear-gradient(
            135deg,
            var(--lbs-blue-dark),
            #0047a8
        ) !important;

    color: #ffffff !important;
}


/* =========================================================
   MOBILE CONSULTATION
   ========================================================= */

.lbs-mobile-consultation {
    justify-content: center !important;

    margin-top: 10px;

    border: 1px solid var(--lbs-blue) !important;

    border-radius: 9px;

    color: var(--lbs-blue) !important;

    background: #ffffff;
}


.lbs-mobile-consultation:hover {
    padding-left: 4px !important;

    background: #f2f7ff !important;
}


/* =========================================================
   MOBILE OVERLAY
   ========================================================= */

.lbs-mobile-overlay {
    position: fixed;

    inset: 0;

    z-index: 1090;

    background:
        rgba(3, 16, 31, .50);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .30s ease,
        visibility .30s ease;
}


.lbs-mobile-overlay.open {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}


/* =========================================================
   BODY LOCK
   ========================================================= */

body.lbs-menu-open {
    overflow: hidden;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .brand img {
        width: 150px;
        max-width: 150px;
    }

    .lbs-main-nav > a,
    .nav-dropdown > button {
        padding-left: 7px;
        padding-right: 7px;

        font-size: 11px;
    }

    .header-cta {
        padding-left: 11px !important;
        padding-right: 11px !important;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    :root {
        --header-height: 72px;
    }


    .site-header {
        height: var(--header-height);
    }


    .header-inner {
        gap: 10px;
    }


    .brand img {
        width: 145px;
        max-width: 145px;

        max-height: 58px;
    }


    /* Hide desktop navigation */

    .lbs-main-nav {
        display: none;
    }


    /* Show hamburger */

    .lbs-menu-toggle {
        display: flex;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    :root {
        --header-height: 68px;
    }


    .brand img {
        width: 135px;
        max-width: 135px;

        max-height: 54px;
    }


    .lbs-menu-toggle {
        width: 42px;
        height: 42px;
    }


    .lbs-mobile-menu {
        width: min(360px, 92vw);
    }


    .lbs-mobile-menu-header {
        height: 68px;

        padding-left: 18px;
        padding-right: 18px;
    }


    .lbs-mobile-menu-body {
        padding-left: 18px;
        padding-right: 18px;
    }

}


/* =========================================================
   VERY SMALL DEVICES
   ========================================================= */

@media (max-width: 360px) {

    .brand img {
        width: 125px;
    }


    .lbs-mobile-menu {
        width: 94vw;
    }

}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.lbs-menu-toggle:focus-visible,
.lbs-mobile-close:focus-visible,
.lbs-main-nav a:focus-visible,
.nav-dropdown button:focus-visible,
.lbs-mobile-menu a:focus-visible,
.lbs-mobile-menu summary:focus-visible {
    outline: 3px solid rgba(8, 124, 255, .25);

    outline-offset: 2px;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .lbs-mobile-menu,
    .lbs-mobile-overlay,
    .lbs-menu-toggle span,
    .nav-dropdown-menu,
    .lbs-main-nav a,
    .nav-dropdown > button {
        transition: none !important;
    }

}
/* =========================================================
   LBS MOBILE MENU - FINAL FIX
   ========================================================= */

.lbs-menu-toggle {
    display: none;

    position: relative;
    z-index: 99999;

    width: 46px;
    height: 46px;

    padding: 0;

    margin: 0;

    border: 1px solid #dbe5f0;
    border-radius: 8px;

    background: #ffffff;

    cursor: pointer;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 5px;

    pointer-events: auto;

    touch-action: manipulation;

    -webkit-tap-highlight-color: transparent;
}


.lbs-menu-toggle span {
    display: block;

    width: 25px;
    height: 3px;

    background: #0b2747;

    border-radius: 3px;

    pointer-events: none;

    transition: all .25s ease;
}


/* OPEN ? X */

.lbs-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.lbs-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.lbs-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .lbs-menu-toggle {
        display: flex !important;
    }

    .lbs-main-nav {
        display: none !important;
    }

}


/* =========================================================
   MOBILE PANEL
   ========================================================= */

.lbs-mobile-menu {
    position: fixed !important;

    top: 0 !important;
    right: 0 !important;

    width: min(390px, 88vw) !important;

    height: 100vh !important;
    height: 100dvh !important;

    z-index: 99990 !important;

    display: block !important;

    background: #ffffff;

    overflow-y: auto;

    transform: translateX(110%);

    visibility: hidden;

    opacity: 1;

    transition:
        transform .3s ease,
        visibility .3s ease;

    box-shadow:
        -15px 0 50px rgba(0,0,0,.20);

    pointer-events: none;
}


.lbs-mobile-menu.open {
    transform: translateX(0) !important;

    visibility: visible !important;

    pointer-events: auto !important;
}


/* =========================================================
   OVERLAY
   ========================================================= */

.lbs-mobile-overlay {
    position: fixed !important;

    inset: 0 !important;

    z-index: 99980 !important;

    background: rgba(0,0,0,.50);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .3s ease,
        visibility .3s ease;
}


.lbs-mobile-overlay.open {
    opacity: 1 !important;

    visibility: visible !important;

    pointer-events: auto !important;
}


/* =========================================================
   MENU HEADER
   ========================================================= */

.lbs-mobile-menu-header {
    position: sticky;

    top: 0;

    z-index: 10;

    height: 70px;

    padding: 0 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: #ffffff;

    border-bottom: 1px solid #e5ebf2;
}


.lbs-mobile-menu-header span {
    color: #087cff;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: .15em;
}


.lbs-mobile-close {
    width: 40px;
    height: 40px;

    border: 1px solid #dbe3ec;

    border-radius: 8px;

    background: #f7faff;

    color: #0b2747;

    font-size: 27px;

    line-height: 1;

    cursor: pointer;

    pointer-events: auto;

    touch-action: manipulation;
}


/* =========================================================
   MENU LINKS
   ========================================================= */

.lbs-mobile-menu-body {
    padding: 10px 20px 40px;
}


.lbs-mobile-menu-body > a,
.lbs-mobile-menu-body summary {

    display: flex;

    align-items: center;

    justify-content: space-between;

    width: 100%;

    min-height: 50px;

    padding: 10px 4px;

    border-bottom: 1px solid #edf1f5;

    background: transparent;

    color: #0b2747;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    pointer-events: auto;

    touch-action: manipulation;
}


.lbs-mobile-menu-body > a:hover,
.lbs-mobile-menu-body summary:hover {
    color: #087cff;
}


/* =========================================================
   DROPDOWNS
   ========================================================= */

.lbs-mobile-menu-body details {
    border-bottom: 1px solid #edf1f5;
}


.lbs-mobile-menu-body summary {
    list-style: none;
}


.lbs-mobile-menu-body summary::-webkit-details-marker {
    display: none;
}


.lbs-mobile-menu-body summary::after {
    content: "+";

    color: #087cff;

    font-size: 20px;
}


.lbs-mobile-menu-body details[open] summary::after {
    content: "-";
}


.lbs-mobile-menu-body details a {

    display: block;

    padding: 10px 10px 10px 18px;

    color: #64748b;

    font-size: 12px;

    font-weight: 600;

    text-decoration: none;

    border-left: 2px solid #e5f0ff;

    pointer-events: auto;

    touch-action: manipulation;
}


.lbs-mobile-menu-body details a:hover {
    color: #087cff;

    background: #f7faff;
}


/* =========================================================
   PARTNER
   ========================================================= */

.lbs-mobile-partner {

    margin-top: 15px !important;

    justify-content: center !important;

    min-height: 48px !important;

    border: 0 !important;

    border-radius: 8px !important;

    background: #087cff !important;

    color: #ffffff !important;
}


/* =========================================================
   CONSULTATION
   ========================================================= */

.lbs-mobile-consultation {

    margin-top: 10px;

    justify-content: center !important;

    border: 1px solid #087cff !important;

    border-radius: 8px;

    color: #087cff !important;
}


/* =========================================================
   BODY
   ========================================================= */

body.lbs-menu-open {
    overflow: hidden !important;
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .lbs-menu-toggle {
        width: 43px;
        height: 43px;
    }

    .lbs-mobile-menu {
        width: 92vw !important;
    }

}