/*
 * LOYALSON — MODERN SHARED HEADER
 *
 * Save as assets/css/header.css.
 * Loaded after global and page-specific styles.
 */

/* Foundation */

.lx-header,
.lx-header * {
    box-sizing: border-box;
}

.lx-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;

    color: #0f172a;

    font-family:
        "Open Sans",
        Arial,
        sans-serif;
}

.lx-shell {
    width: min(100% - 48px, 1200px);
    margin-inline: auto;
}

.lx-header a {
    text-decoration: none;
}

/* Slim contact strip */

.lx-meta {
    background: #f4f7fc;
    border-bottom: 1px solid #e8edf5;

    font-size: 14px;
    line-height: 1.6;
}

.lx-meta .lx-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding-block: 8px;
}

.lx-meta p {
    margin: 0;
    color: #526173;
    font-size: 14px;
}

.lx-meta-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.lx-meta a {
    color: #43536a;
    font-size: 14px;
}

.lx-meta a:hover {
    color: #155eef;
}

/* Main header row */

.lx-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;

    min-height: 88px;
    padding-block: 14px;
}

.lx-brand {
    display: inline-flex;
    align-items: center;

    flex-shrink: 0;
    min-height: 48px;
}

.lx-brand img {
    display: block;

    width: 84px;
    height: auto;
    max-width: none;

    filter: none;
}

/* Desktop navigation */

.lx-desktop {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lx-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 44px;
    padding: 10px 13px;

    border-radius: 6px;

    color: #334155;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;

    white-space: nowrap;
}

.lx-link:hover {
    background: #f3f7ff;
    color: #155eef;
}

.lx-link[aria-current="page"] {
    background: #edf4ff;
    color: #155eef;
}

/* Workspace accent */

.lx-product-dot {
    width: 6px;
    height: 6px;

    flex-shrink: 0;

    background: #0f766e;
    border-radius: 50%;
}

/* Existing CTA style and wording */

.lx-header .lx-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;

    min-height: 48px;
    margin-left: 14px;
    padding: 13px 20px;

    background: #155eef;
    border: 1px solid #155eef;
    border-radius: 2px;

    color: #ffffff;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;

    white-space: nowrap;
}

.lx-header .lx-cta:hover {
    background: #104dcc;
    color: #ffffff;
}

/* Accessibility */

.lx-header a:focus-visible,
.lx-header summary:focus-visible {
    outline: 3px solid #0f766e;
    outline-offset: 4px;
}

.lx-skip {
    position: absolute;
    top: -100px;
    left: 20px;

    z-index: 1000;

    padding: 12px 18px;

    background: #ffffff;
    border: 2px solid #155eef;

    color: #0f172a;
}

.lx-skip:focus {
    top: 12px;
}

/*
 * External CSS replaces the inline style from the
 * standard GTM noscript snippet.
 */

.lx-gtm-frame {
    display: none;
    visibility: hidden;

    width: 0;
    height: 0;

    border: 0;
}

/* Mobile navigation is hidden on desktop */

.lx-mobile {
    display: none;
}

/* Smaller desktop */

@media (max-width: 1100px) {

    .lx-row {
        gap: 20px;
    }

    .lx-link {
        padding-inline: 10px;
    }

    .lx-desktop {
        gap: 2px;
    }

    .lx-header .lx-cta {
        margin-left: 8px;
        padding-inline: 16px;
        gap: 14px;
    }
}

/* Tablet / mobile menu */

@media (max-width: 1000px) {

    .lx-desktop {
        display: none;
    }

    .lx-row {
        min-height: 76px;
        padding-block: 12px;
        flex-wrap: wrap;
    }

    .lx-brand img {
        width: 76px;
    }

    .lx-mobile {
        display: block;
        margin-left: auto;
    }

    .lx-mobile summary {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;

        min-width: 92px;
        min-height: 44px;
        padding: 10px 14px;

        background: #ffffff;

        border: 1px solid #cbd5e1;
        border-radius: 6px;

        color: #0f172a;

        font-size: 14px;
        font-weight: 600;

        list-style: none;
        cursor: pointer;
    }

    .lx-mobile summary::-webkit-details-marker {
        display: none;
    }

    .lx-menu-symbol {
        font-size: 20px;
        line-height: 1;
    }

    .lx-mobile[open] summary {
        background: #edf4ff;
        border-color: #bbd0f6;
        color: #155eef;
    }

    .lx-mobile nav {
        position: absolute;
        left: 0;
        right: 0;

        z-index: 50;

        display: grid;
        gap: 6px;

        margin-top: 16px;

        padding:
            16px
            max(
                24px,
                calc((100% - 1200px) / 2)
            );

        background: #ffffff;

        border-bottom: 1px solid #dce6f4;

        box-shadow:
            0 8px 14px
            rgba(15, 23, 42, 0.06);
    }

    .lx-mobile .lx-link {
        justify-content: flex-start;

        min-height: 48px;
        white-space: normal;
    }

    .lx-header .lx-mobile .lx-cta {
        justify-content: space-between;
        margin: 10px 0 6px;
    }

    .lx-meta-links {
        gap: 16px;
    }
}

/* Narrow screens */

@media (max-width: 600px) {

    .lx-shell {
        width: calc(100% - 40px);
    }

    .lx-meta .lx-shell {
        flex-wrap: wrap;
        gap: 8px;

        padding-block: 7px;
    }

    .lx-meta p,
    .lx-meta a {
        font-size: 14px;
    }

    .lx-meta-links {
        gap: 12px;
        margin-left: auto;
    }

    .lx-meta-links a:first-child {
        display: none;
    }

    .lx-brand img {
        width: 72px;
    }

    .lx-mobile nav {
        padding-inline: 20px;
    }
}

@media (max-width: 420px) {

    .lx-meta .lx-shell {
        align-items: flex-start;
        gap: 2px;
    }

    .lx-meta-links {
        width: 100%;
        margin-left: 0;
    }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {

    .lx-header * {
        transition: none !important;
    }
}