/* =====================================
   HEADER GLOBAL STYLES
===================================== */

.site-header {
    width: 100%;
    position: fixed;
    z-index: 1000;
    font-family: Arial, Helvetica, sans-serif;
    top: 0;
}

.site-header a {
    text-decoration: none;
}

.header-container {
    width: 85%;
    max-width: 1620px;
    margin: 0 auto;
}


/* =====================================
   TOP BAR
===================================== */

.top-bar {
    background: #002D46;
    color: #fff;
    padding: 12px 0;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 34px;
    white-space: nowrap;
}

.contact-info a {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.contact-info svg {
    width: 14px;
    position: relative;
    top: 4px;
    margin-right: 2px;
}

.top-navigation {
    display: flex;
    align-items: center;
    gap: 45px;
}

.top-links {
    display: flex;
    align-items: center;
    gap: 23px;
}

.top-links > a,
.top-links .dropdown-trigger {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.top-links > a:hover,
.top-links > a.active,
.top-links .dropdown-trigger:hover {
    color: #00B5D1;
}

.top-links > a.active {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.nav-dropdown svg {
    width: 15px;
    position: relative;
    top: 5px;
}


/* =====================================
   SOCIAL LINKS
===================================== */

.social-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-links img {
    width: 20px;
}

.social-links a {
    color: white;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.social-links a:hover {
    color: #00B5D1;
}


/* =====================================
   MAIN NAVIGATION BAR
===================================== */

.main-bar {
    background: #fff;
}

.main-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: 5px 0;
}


/* =====================================
   LOGO
===================================== */

.brand-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 9px;
}

.brand-logo img {
    width: 200px;
}


/* =====================================
   MAIN MENU
===================================== */

.main-navigation {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-navigation > a:not(.consultation-button),
.main-navigation .dropdown-trigger {
    color: #002D46;
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
}

.main-navigation .dropdown-trigger {
    font-family: inherit;
}

.main-navigation > a:hover,
.main-navigation .dropdown-trigger:hover {
    color: #00AFC9;
}


/* =====================================
   DROPDOWN MENUS
===================================== */

.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    background: transparent;
    border: none;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -12px;
    min-width: 202px;
    background: #002D46;
    border-radius: 9px;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .12);
    margin-top: 15px;
    z-index: 9999;
}

.dropdown-menu a {
    display: block;
    padding: 9px 25px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: #004663;
    color: #00B5D1;
}


/* Desktop hover */

@media (min-width: 1101px) {
    .nav-dropdown:hover > .dropdown-menu,
    .nav-dropdown:focus-within > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}


/* =====================================
   CONSULTATION BUTTON
===================================== */

.consultation-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #002D46;
    color: white !important;
    padding: 18px 25px;
    border: 1px solid #001B2D;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    transition: background .25s ease;
}

.consultation-button:hover {
    background: #00AFC9;
    border-color: #00AFC9;
}


/* =====================================
   MOBILE MENU BUTTON
===================================== */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 27px;
    height: 3px;
    background: #002D46;
    margin: 5px 0;
    border-radius: 3px;
}


/* =====================================
   RESPONSIVE HEADER
===================================== */

@media (max-width: 1400px) {
    .header-container {
        width: 92%;
    }

    .top-navigation {
        gap: 25px;
    }

    .top-links {
        gap: 15px;
    }

    .main-navigation {
        gap: 20px;
    }

    .main-navigation > a:not(.consultation-button),
    .main-navigation .dropdown-trigger {
        font-size: 17px;
    }

    .consultation-button {
        padding: 20px 22px;
        font-size: 16px;
    }
}


@media (max-width: 1100px) {
    .mega-dropdown .mega-menu {
        display: none;
    }

    .top-bar {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px 5%;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        box-shadow: 0 8px 15px rgba(0,0,0,.12);
    }

    .main-navigation .nav-dropdown {
        width: 100%;
    }

    .main-navigation .dropdown-trigger {
        width: 100%;
        text-align: left;
        padding: 14px 0;
    }

    .main-navigation > a:not(.consultation-button) {
        padding: 14px 0;
    }

    .main-navigation .dropdown-menu {
        display: none;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 5px;
        margin-bottom: 10px;
    }

    .consultation-button {
        margin-top: 12px;
    }
}


@media (max-width: 480px) {
    .header-container {
        width: 90%;
    }
}


/* =====================================
   MOBILE HEADER + SLIDE-IN NAVIGATION
===================================== */

.mobile-consultation-button,
.mobile-nav-overlay {
    display: none;
}

.mobile-menu-toggle .menu-close-icon {
    display: none;
}

@media (max-width: 1100px) {
    main {
        padding-top: 5.35em;
    }

    .site-header {
        z-index: 10000;
    }

    .site-header .top-bar {
        display: none !important;
    }

    .site-header .main-bar {
        position: relative;
        z-index: 10002;
        background: #fff;
    }

    .site-header .main-bar-inner {
        width: 94%;
        min-height: auto;
        padding: 8px 0;
        gap: 18px;
    }

    .site-header .brand-logo img {
        width: clamp(190px, 25vw, 285px);
        height: auto;
        display: block;
    }

    .site-header .mobile-menu-toggle {
        order: 3;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 70px;
        width: 70px;
        height: 70px;
        padding: 0;
        margin-left: auto;
        color: #fff;
        background: #002D46;
        border: 0;
        border-radius: 12px;
        cursor: pointer;
        position: relative;
        z-index: 10004;
    }

    .site-header .mobile-menu-toggle svg {
        stroke: #fff;
    }

    .site-header .mobile-menu-toggle[aria-expanded="true"] .menu-open-icon {
        display: none;
    }

    .site-header .mobile-menu-toggle[aria-expanded="true"] .menu-close-icon {
        display: block;
    }

    .site-header .mobile-consultation-button {
        display: inline-flex;
        order: 2;
        min-height: 70px;
        padding: 0 24px;
        margin: 0;
        font-size: 16px;
    }

    .mobile-nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 10001;
        background: rgba(0,0,0,.60);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .28s ease, visibility .28s ease;
    }

    .mobile-nav-overlay.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .mobile-nav-drawer {
        position: absolute;
        top: 0;
        right: 0;
        width: min(48vw, 650px);
        min-width: 460px;
        height: 100%;
        overflow-y: auto;
        background: #fff;
        transform: translateX(100%);
        transition: transform .3s ease;
        display: flex;
        flex-direction: column;
    }

    .mobile-nav-overlay.is-open .mobile-nav-drawer {
        transform: translateX(0);
    }

    .mobile-drawer-header {
        min-height: 115px;
        padding: 18px 34px;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        flex-shrink: 0;
    }

    .mobile-drawer-logo img {
        display: block;
        width: 260px;
        max-width: 75%;
        height: auto;
    }

    .mobile-menu-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        padding: 0;
        background: transparent;
        border: 0;
        color: #111;
        cursor: pointer;
    }

    .mobile-menu-close svg {
        width: 34px;
        height: 34px;
        stroke: currentColor;
        stroke-width: 1.4;
    }

    .mobile-drawer-navigation {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 25px 40px;
        text-align: center;
    }

    .mobile-drawer-link,
    .mobile-drawer-trigger {
        min-height: 78px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        width: 100%;
        padding: 15px 10px;
        color: #173e50;
        background: transparent;
        border: 0;
        text-decoration: none;
        font-family: "ff-din-paneuropean", Arial, sans-serif;
        font-size: 23px;
        font-weight: 400;
        cursor: pointer;
    }

    .mobile-drawer-link:hover,
    .mobile-drawer-trigger:hover,
    .mobile-drawer-link:focus,
    .mobile-drawer-trigger:focus {
        color: #00AFC9;
    }

    .mobile-drawer-trigger svg {
        width: 15px;
        height: 15px;
        transition: transform .2s ease;
    }

    .mobile-drawer-dropdown.is-open > .mobile-drawer-trigger svg {
        transform: rotate(180deg);
    }

    .mobile-drawer-submenu {
        display: none;
        flex-direction: column;
        padding: 0 0 12px;
    }

    .mobile-drawer-dropdown.is-open .mobile-drawer-submenu {
        display: flex;
    }

    .mobile-drawer-submenu a {
        display: block;
        padding: 10px 15px;
        color: #173e50;
        font-size: 17px;
        text-decoration: none;
    }

    .mobile-drawer-submenu a:hover {
        color: #00AFC9;
    }

    body.mobile-nav-open {
        overflow: hidden;
    }

    .nav-actions {
        display: flex;
        gap: 10px;
    }
}


@media (max-width: 767px) {
    .site-header {
        min-height: auto !important;
    }

    main {
        padding-top: 4.35em;
    }

    .site-header .main-bar-inner {
        width: 94%;
        min-height: auto !important;
        gap: 10px;
    }

    .site-header .brand-logo img {
        width: clamp(145px, 37vw, 220px);
    }

    .site-header .mobile-menu-toggle {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
        border-radius: 10px;
        margin: 0;
    }

    .site-header .mobile-menu-toggle svg {
        width: 29px;
        height: 29px;
    }

    .site-header .mobile-consultation-button {
        min-height: 58px;
        padding: 0 13px;
        gap: 6px;
        font-size: 13px;
        margin: 0;
    }

    .site-header .mobile-consultation-button svg {
        width: 16px;
        height: 16px;
    }

    .mobile-nav-drawer {
        width: 100%;
        min-width: 0;
    }

    .mobile-drawer-header {
        min-height: 95px;
        padding: 15px 22px;
    }

    .mobile-drawer-logo img {
        width: 220px;
    }

    .mobile-drawer-navigation {
        padding: 10px 20px 30px;
    }

    .mobile-drawer-link,
    .mobile-drawer-trigger {
        min-height: 64px;
        font-size: 20px;
    }
}


@media (max-width: 380px) {
    .site-header .main-bar-inner {
        width: 96%;
        gap: 7px;
    }

    .site-header .brand-logo img {
        width: 132px;
    }

    .site-header .mobile-menu-toggle {
        flex-basis: 50px;
        width: 50px;
        height: 54px;
    }

    .site-header .mobile-consultation-button {
        min-height: 54px;
        padding: 0 8px;
        font-size: 11px;
    }
}


/* =====================================
   FINANCIAL SERVICES MEGA MENU
===================================== */

@media (min-width: 1101px) {
    .mega-dropdown {
        position: relative;
    }

    .mega-dropdown .mega-menu {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 35px;
        position: absolute;
        top: calc(100% + 16px);
        left: auto;
        right: -280px;
        width: auto;
        min-width: auto;
        padding: 20px 20px;
        background: #f7f7f7;
        border-radius: 7px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
        box-shadow: 0 5px 20px rgba(0, 0, 0, .12);
        z-index: 1001;
    }

    .mega-dropdown:hover > .mega-menu,
    .mega-dropdown:focus-within > .mega-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .mega-menu-column {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .mega-menu-column h3 {
        color: #111;
        font-size: 16px;
        font-weight: 700;
        margin: 0 0 15px;
        white-space: nowrap;
    }

    .mega-dropdown .mega-menu-column a {
        display: block;
        width: 100%;
        padding: 10px 18px;
        color: #40586a;
        font-size: 15px;
        font-weight: 400;
        text-decoration: none;
        white-space: nowrap;
    }

    .mega-dropdown .mega-menu-column a:hover {
        background: #e9f4f6;
        color: #00AFC9;
    }

    .mega-dropdown > .dropdown-trigger {
        color: #002b49 !important;
    }
}


/* =========================================
   MOBILE NAVIGATION FUNCTIONAL FIX
   Keep this block at the VERY END of header.css
========================================= */

@media (max-width: 1100px) {
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 10000;
    }

    .site-header .nav-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex: 1 1 auto;
        min-width: 0;
        gap: 10px;
    }

    .site-header .main-navigation {
        display: none !important;
    }

    .site-header .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: relative;
        flex: 0 0 70px;
        width: 70px;
        height: 70px;
        z-index: 10004;
        pointer-events: auto;
    }

    .site-header .mobile-menu-toggle .menu-open-icon {
        display: block;
    }

    .site-header .mobile-menu-toggle .menu-close-icon {
        display: none;
    }

    .site-header .mobile-menu-toggle[aria-expanded="true"] .menu-open-icon {
        display: none;
    }

    .site-header .mobile-menu-toggle[aria-expanded="true"] .menu-close-icon {
        display: block;
    }

    .site-header .mobile-nav-overlay {
        display: block !important;
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100dvh;
        z-index: 10003;
        background: rgba(0, 0, 0, 0.60);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .28s ease, visibility .28s ease;
    }

    .site-header .mobile-nav-overlay.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .site-header .mobile-nav-drawer {
        position: absolute;
        top: 0;
        right: 0;
        width: min(48vw, 650px);
        min-width: 460px;
        max-width: 100%;
        height: 100%;
        overflow-y: auto;
        background: #fff;
        transform: translateX(100%);
        transition: transform .3s ease;
        display: flex;
        flex-direction: column;
        overscroll-behavior: contain;
    }

    .site-header .mobile-nav-overlay.is-open .mobile-nav-drawer {
        transform: translateX(0);
    }

    .site-header .mobile-menu-close {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        cursor: pointer;
        pointer-events: auto;
    }

    body.mobile-nav-open {
        overflow: hidden !important;
    }
}


@media (max-width: 767px) {
    .site-header .mobile-menu-toggle {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
    }

    .site-header .mobile-nav-drawer {
        width: 100%;
        min-width: 0;
    }
}


/* Mega menu: column headings are links (keep the heading look) */
.mega-dropdown .mega-menu-column h3 a {
    display: inline;
    width: auto;
    padding: 0;
    color: inherit;
    font: inherit;
    text-decoration: none;
    background: none;
}

.mega-dropdown .mega-menu-column h3 a:hover {
    background: none;
    color: #00AFC9;
}

.glove-box {
    background-color: #fff;
    border-radius: 10px;
    padding: 9px;
    width: 155px;
}
.img-text-block {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
}
.img-text-block a {
    margin: 0;
}