/* =========================================================
   GWM PUBLIC MARKETING HEADER
   File: style_public_header_260506.css
   Scope: public/home/anonymous pages only
   Uses original GWM blue: #00007A
========================================================= */

:root {
    --gwm-public-primary: #00007A;
    --gwm-public-primary-hover: #1A1A96;
    --gwm-public-accent: #3B5BDB;
    --gwm-public-text: #FFFFFF;
    --gwm-public-muted: rgba(255,255,255,.82);
    --gwm-public-border: rgba(255,255,255,.14);
    --gwm-public-shadow: 0 10px 30px rgba(0,0,0,.16);
}

/* Prevent tiny horizontal layout jumps from focused/hovered header elements */
html,
body {
    overflow-x: hidden;
}

/* Main public header shell */
.gwm-public-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 999 !important;
    width: 100% !important;
    background: #00007A !important;
    border-bottom: 0 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.14) !important;
    overflow: visible !important;
}

    .gwm-public-header,
    .gwm-public-header * {
        box-sizing: border-box !important;
    }

        .gwm-public-header .auto-container {
            width: 100% !important;
            max-width: 1320px !important;
            margin: 0 auto !important;
            padding: 0 24px !important;
        }

        .gwm-public-header .header-upper {
            padding: 12px 0 !important;
            background: #00007A !important;
        }

        .gwm-public-header .inner-container {
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
            gap: 24px !important;
            width: 100% !important;
        }

        /* Logo */
        .gwm-public-header .logo-box {
            display: flex !important;
            align-items: center !important;
            flex: 0 0 auto !important;
            min-width: 0 !important;
        }

        .gwm-public-header .gwm-site-logo {
            display: inline-flex !important;
            align-items: center !important;
            gap: 12px !important;
            min-width: 300px !important;
            color: #ffffff !important;
            text-decoration: none !important;
            white-space: nowrap !important;
        }

        .gwm-public-header .gwm-site-logo__mark {
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            width: 46px !important;
            height: 46px !important;
            border-radius: 12px !important;
            overflow: hidden !important;
            flex: 0 0 46px !important;
            background: rgba(255,255,255,.08) !important;
        }

        .gwm-public-header .gwm-site-logo__image {
            display: block !important;
            max-width: 42px !important;
            max-height: 42px !important;
            width: auto !important;
            height: auto !important;
        }

        .gwm-public-header .gwm-site-logo__text {
            display: flex !important;
            flex-direction: column !important;
            justify-content: center !important;
            min-width: 0 !important;
        }

        .gwm-public-header .gwm-site-logo__name {
            display: block !important;
            font-family: "Lato","Helvetica","Arial",sans-serif !important;
            font-size: 17px !important;
            font-weight: 600 !important;
            line-height: 1.05 !important;
            color: #ffffff !important;
            letter-spacing: .01em !important;
        }

        .gwm-public-header .gwm-site-logo__tagline {
            display: block !important;
            margin-top: 3px !important;
            font-family: "Lato","Helvetica","Arial",sans-serif !important;
            font-size: 11px !important;
            font-weight: 700 !important;
            line-height: 1.05 !important;
            letter-spacing: .08em !important;
            text-transform: uppercase !important;
            color: rgba(255,255,255,.82) !important;
            white-space: nowrap !important;
        }

        /* Main nav */
        .gwm-public-header #mainMenu {
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            flex: 1 1 auto !important;
            min-width: 0 !important;
            width: auto !important;
            height: auto !important;
            overflow: visible !important;
            background: transparent !important;
        }

            .gwm-public-header #mainMenu nav {
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                float: none !important;
                width: auto !important;
                height: auto !important;
                background: transparent !important;
            }

        .gwm-public-header .navigation {
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 28px !important;
            margin: 0 !important;
            padding: 0 !important;
            list-style: none !important;
            background: transparent !important;
            white-space: nowrap !important;
        }

            .gwm-public-header .navigation > li {
                display: block !important;
                position: relative !important;
                float: none !important;
                margin: 0 !important;
                padding: 0 !important;
                width: auto !important;
                min-width: 0 !important;
                height: auto !important;
                background: transparent !important;
                list-style: none !important;
            }

                .gwm-public-header .navigation > li > a {
                    display: inline-flex !important;
                    align-items: center !important;
                    justify-content: center !important;
                    width: auto !important;
                    min-width: 0 !important;
                    height: auto !important;
                    min-height: 0 !important;
                    padding: 10px 0 !important;
                    margin: 0 !important;
                    border: 0 !important;
                    border-radius: 0 !important;
                    background: transparent !important;
                    box-shadow: none !important;
                    color: #ffffff !important;
                    font-family: "Lato","Helvetica","Arial",sans-serif !important;
                    font-size: 14px !important;
                    font-weight: 800 !important;
                    line-height: 1.2 !important;
                    letter-spacing: .05em !important;
                    text-decoration: none !important;
                    text-indent: 0 !important;
                    text-transform: uppercase !important;
                    opacity: 1 !important;
                    visibility: visible !important;
                    overflow: visible !important;
                    pointer-events: auto !important;
                    transition: color .18s ease !important;
                    transform: none !important;
                }

                    .gwm-public-header .navigation > li > a span,
                    .gwm-public-header .navigation > li > a strong,
                    .gwm-public-header .navigation > li > a em {
                        display: inline !important;
                        color: inherit !important;
                        font: inherit !important;
                        line-height: inherit !important;
                        text-indent: 0 !important;
                        opacity: 1 !important;
                        visibility: visible !important;
                    }

                    .gwm-public-header .navigation > li > a::before,
                    .gwm-public-header .navigation > li > a::after {
                        display: none !important;
                        content: none !important;
                    }

                    .gwm-public-header .navigation > li > a:hover,
                    .gwm-public-header .navigation > li.current > a,
                    .gwm-public-header .navigation > li > a:focus {
                        color: #D6E4FF !important;
                        background: transparent !important;
                        text-decoration: none !important;
                        transform: none !important;
                    }

                    /* Avoid focus-induced page jitter while preserving keyboard visibility */
                    .gwm-public-header .navigation > li > a:focus-visible {
                        outline: 2px solid rgba(255,255,255,.6) !important;
                        outline-offset: 4px !important;
                    }

        /* Right controls */
        .gwm-public-header .header-right {
            display: flex !important;
            align-items: center !important;
            justify-content: flex-end !important;
            gap: 16px !important;
            flex: 0 0 auto !important;
            position: relative !important;
            z-index: 2 !important;
        }

        .gwm-public-header .header-language {
            display: flex !important;
            align-items: center !important;
        }

            .gwm-public-header .header-language .btn,
            .gwm-public-header .header-language a,
            .gwm-public-header .header-language button,
            .gwm-public-header .language-button,
            .gwm-public-header .btn-language {
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                min-height: 40px !important;
                padding: 8px 16px !important;
                border-radius: 8px !important;
                background: #3B5BDB !important;
                border: 1px solid #3B5BDB !important;
                color: #ffffff !important;
                font-family: "Lato","Helvetica","Arial",sans-serif !important;
                font-size: 14px !important;
                font-weight: 600 !important;
                letter-spacing: .04em !important;
                text-decoration: none !important;
                white-space: nowrap !important;
                box-shadow: none !important;
                transform: none !important;
            }

        .gwm-public-header .header-cta {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            border: 1px solid rgba(255,255,255,.22) !important;
            border-radius: 10px !important;
            padding: 10px 20px !important;
            min-height: 42px !important;
            font-family: "Lato","Helvetica","Arial",sans-serif !important;
            font-size: 14px !important;
            font-weight: 600 !important;
            background: #ffffff !important;
            color: #00007A !important;
            box-shadow: var(--gwm-public-shadow) !important;
            text-decoration: none !important;
            white-space: nowrap !important;
            transform: none !important;
        }

            .gwm-public-header .header-cta:hover,
            .gwm-public-header .header-cta:focus {
                background: #F8FAFC !important;
                color: #00007A !important;
                transform: none !important;
            }

        /* Hide mobile trigger on desktop */
        .gwm-public-header #mainMenu-trigger,
        .gwm-public-header .mobile-nav-trigger {
            display: none !important;
        }

/* Tablet */
@media only screen and (max-width:991px) and (min-width:768px) {
    .gwm-public-header .gwm-site-logo {
        min-width: 250px !important;
    }

    .gwm-public-header .gwm-site-logo__name {
        font-size: 16px !important;
    }

    .gwm-public-header .gwm-site-logo__tagline {
        font-size: 10px !important;
    }

    .gwm-public-header .navigation {
        gap: 18px !important;
    }

        .gwm-public-header .navigation > li > a {
            font-size: 13px !important;
        }
}

/* Phone menu */
@media only screen and (max-width:767px) {
    .gwm-public-header .auto-container {
        padding: 0 16px !important;
    }

    .gwm-public-header .inner-container {
        gap: 12px !important;
    }

    .gwm-public-header .gwm-site-logo {
        min-width: 0 !important;
        max-width: calc(100vw - 96px) !important;
        gap: 10px !important;
    }

    .gwm-public-header .gwm-site-logo__mark {
        width: 42px !important;
        height: 42px !important;
        flex-basis: 42px !important;
    }

    .gwm-public-header .gwm-site-logo__name {
        font-size: 15px !important;
        line-height: 1.1 !important;
        white-space: normal !important;
    }

    .gwm-public-header .gwm-site-logo__tagline {
        display: block !important;
        font-size: 9px !important;
        line-height: 1.1 !important;
        white-space: normal !important;
        letter-spacing: .06em !important;
    }

    .gwm-public-header .header-right {
        display: none !important;
    }

    .gwm-public-header #mainMenu-trigger,
    .gwm-public-header .mobile-nav-trigger {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 44px !important;
        flex: 0 0 44px !important;
        border: 1px solid rgba(255,255,255,.3) !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        color: #00007A !important;
        margin-left: auto !important;
    }

    .gwm-public-header #mainMenu {
        display: none !important;
    }

    body.mainMenu-open .gwm-public-header #mainMenu {
        display: block !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: #00007A !important;
        padding: 20px 24px !important;
        border-top: 1px solid rgba(255,255,255,.16) !important;
        border-bottom: 1px solid rgba(255,255,255,.16) !important;
        box-shadow: 0 20px 40px rgba(15,23,42,.24) !important;
        z-index: 1000 !important;
    }

        body.mainMenu-open .gwm-public-header #mainMenu nav,
        body.mainMenu-open .gwm-public-header .navigation {
            display: flex !important;
            flex-direction: column !important;
            align-items: flex-start !important;
            gap: 16px !important;
            width: 100% !important;
            float: none !important;
            margin: 0 !important;
            padding: 0 !important;
        }

            body.mainMenu-open .gwm-public-header .navigation > li {
                width: 100% !important;
                float: none !important;
            }

                body.mainMenu-open .gwm-public-header .navigation > li > a {
                    width: 100% !important;
                    justify-content: flex-start !important;
                    padding: 10px 0 !important;
                    font-size: 16px !important;
                    color: #ffffff !important;
                }
}


/* =========================================================
   GWM PUBLIC HEADER PATCH 04
   Menu layout correction
   - Removes white menu blocks
   - Restores original-style text navigation
   - Keeps no-shake behavior
========================================================= */

/* Keep the public header stable */
.gwm-public-header {
    overflow: visible !important;
}

    /* Menu wrapper should not create button boxes */
    .gwm-public-header #mainMenu,
    .gwm-public-header .main-menu,
    .gwm-public-header #mainMenu nav,
    .gwm-public-header .main-menu nav {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible !important;
        float: none !important;
    }

        /* UL reset */
        .gwm-public-header #mainMenu ul,
        .gwm-public-header .main-menu ul,
        .gwm-public-header ul.navigation {
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            flex-direction: row !important;
            gap: 32px !important;
            width: auto !important;
            max-width: none !important;
            height: auto !important;
            min-height: 0 !important;
            padding: 0 !important;
            margin: 0 !important;
            border: 0 !important;
            background: transparent !important;
            box-shadow: none !important;
            list-style: none !important;
            overflow: visible !important;
        }

            /* LI reset */
            .gwm-public-header #mainMenu li,
            .gwm-public-header .main-menu li,
            .gwm-public-header ul.navigation > li {
                display: list-item !important;
                position: relative !important;
                float: none !important;
                width: auto !important;
                min-width: 0 !important;
                max-width: none !important;
                height: auto !important;
                min-height: 0 !important;
                padding: 0 !important;
                margin: 0 !important;
                border: 0 !important;
                border-radius: 0 !important;
                background: transparent !important;
                box-shadow: none !important;
                overflow: visible !important;
                list-style: none !important;
            }

                /* Anchor reset: this is the key fix for the white blocks */
                .gwm-public-header #mainMenu li > a:not(.header-cta),
                .gwm-public-header .main-menu li > a:not(.header-cta),
                .gwm-public-header ul.navigation > li > a:not(.header-cta) {
                    display: inline-flex !important;
                    align-items: center !important;
                    justify-content: center !important;
                    position: relative !important;
                    width: auto !important;
                    min-width: 0 !important;
                    max-width: none !important;
                    height: auto !important;
                    min-height: 0 !important;
                    padding: 8px 0 !important;
                    margin: 0 !important;
                    border: 0 !important;
                    border-radius: 0 !important;
                    background: transparent !important;
                    background-color: transparent !important;
                    background-image: none !important;
                    box-shadow: none !important;
                    outline-offset: 4px !important;
                    color: #ffffff !important;
                    font-family: "Lato","Helvetica","Arial",sans-serif !important;
                    font-size: 13px !important;
                    font-weight: 600 !important;
                    line-height: 1.2 !important;
                    letter-spacing: .055em !important;
                    text-transform: uppercase !important;
                    text-decoration: none !important;
                    text-indent: 0 !important;
                    opacity: 1 !important;
                    visibility: visible !important;
                    overflow: visible !important;
                    white-space: nowrap !important;
                    pointer-events: auto !important;
                    transform: none !important;
                }

                    /* Remove any theme-generated square overlays */
                    .gwm-public-header #mainMenu li > a:not(.header-cta)::before,
                    .gwm-public-header #mainMenu li > a:not(.header-cta)::after,
                    .gwm-public-header .main-menu li > a:not(.header-cta)::before,
                    .gwm-public-header .main-menu li > a:not(.header-cta)::after,
                    .gwm-public-header ul.navigation > li > a:not(.header-cta)::before,
                    .gwm-public-header ul.navigation > li > a:not(.header-cta)::after {
                        display: none !important;
                        content: none !important;
                        width: 0 !important;
                        height: 0 !important;
                        background: transparent !important;
                        border: 0 !important;
                        box-shadow: none !important;
                    }

                    /* Text wrappers inside menu links */
                    .gwm-public-header #mainMenu li > a:not(.header-cta) *,
                    .gwm-public-header .main-menu li > a:not(.header-cta) *,
                    .gwm-public-header ul.navigation > li > a:not(.header-cta) * {
                        color: inherit !important;
                        font: inherit !important;
                        line-height: inherit !important;
                        text-transform: inherit !important;
                        letter-spacing: inherit !important;
                        text-indent: 0 !important;
                        opacity: 1 !important;
                        visibility: visible !important;
                        background: transparent !important;
                    }

                    /* Hover/focus */
                    .gwm-public-header #mainMenu li > a:not(.header-cta):hover,
                    .gwm-public-header #mainMenu li.current > a:not(.header-cta),
                    .gwm-public-header .main-menu li > a:not(.header-cta):hover,
                    .gwm-public-header .main-menu li.current > a:not(.header-cta),
                    .gwm-public-header ul.navigation > li > a:not(.header-cta):hover,
                    .gwm-public-header ul.navigation > li.current > a:not(.header-cta) {
                        color: #D6E4FF !important;
                        background: transparent !important;
                        text-decoration: none !important;
                        transform: none !important;
                    }

    /* Keep CTA and language buttons as buttons */
    .gwm-public-header .header-language a,
    .gwm-public-header .header-language button,
    .gwm-public-header .header-language .btn {
        background: #3B5BDB !important;
        color: #ffffff !important;
        border-radius: 8px !important;
    }

    .gwm-public-header .header-cta {
        background: #ffffff !important;
        color: #00007A !important;
        border-radius: 10px !important;
    }

/* Desktop spacing balance */
@media only screen and (min-width: 992px) {
    .gwm-public-header .logo-box {
        flex: 0 0 330px !important;
    }

    .gwm-public-header .header-right {
        flex: 0 0 auto !important;
        min-width: 300px !important;
    }
}

/* Tablet compression */
@media only screen and (max-width:991px) and (min-width:768px) {
    .gwm-public-header #mainMenu ul,
    .gwm-public-header .main-menu ul,
    .gwm-public-header ul.navigation {
        gap: 20px !important;
    }

        .gwm-public-header #mainMenu li > a:not(.header-cta),
        .gwm-public-header .main-menu li > a:not(.header-cta),
        .gwm-public-header ul.navigation > li > a:not(.header-cta) {
            font-size: 12px !important;
            letter-spacing: .045em !important;
        }
}

/* =========================================================
   GWM MOBILE HEADER FIX
   Fixes:
   - centered hamburger
   - desktop nav visible on phones
   - overlapping nav items
   - incorrect flex distribution
========================================================= */

@media only screen and (max-width:767px) {

    /* Main header row */
    .gwm-public-header .inner-container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
    }

    /* Logo area */
    .gwm-public-header .logo-box {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .gwm-public-header .gwm-site-logo {
        min-width: 0 !important;
        width: auto !important;
        max-width: 100% !important;
    }

    /* Mobile menu button */
    .gwm-public-header #mainMenu-trigger,
    .gwm-public-header .mobile-nav-trigger {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        z-index: 2001 !important;
        flex: 0 0 44px !important;
        width: 44px !important;
        height: 44px !important;
        margin-left: auto !important;
    }

    /* Fully remove desktop nav from the header row on phones */
    .gwm-public-header #mainMenu {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: #00007A !important;
        z-index: 2000 !important;
    }

        /* Prevent inline desktop menu rendering */
        .gwm-public-header #mainMenu nav,
        .gwm-public-header #mainMenu ul,
        .gwm-public-header #mainMenu li {
            display: block !important;
            width: 100% !important;
        }

    /* Open state */
    body.mainMenu-open .gwm-public-header #mainMenu {
        display: block !important;
        padding: 20px 24px !important;
    }

        body.mainMenu-open .gwm-public-header #mainMenu ul.navigation {
            display: flex !important;
            flex-direction: column !important;
            align-items: flex-start !important;
            gap: 14px !important;
        }

        body.mainMenu-open .gwm-public-header #mainMenu li > a {
            display: flex !important;
            width: 100% !important;
            justify-content: flex-start !important;
            font-size: 16px !important;
            padding: 10px 0 !important;
        }
}
