@import url("responsive.css?v=20260820-final");

/* Canonical NESPAK header layout. Loaded last on every active page. */
.nespak-modern-header {
    --nespak-header-height: 88px;
    width: 100%;
    max-width: 100vw;
}

/* Maroon finish on the end edge of every primary navigation dropdown. */
.nespak-modern-header .nespak-modern-menu .navbar-nav > li > .dropdown-menu {
    box-sizing: border-box !important;
    border-bottom: 4px solid #982824 !important;
}

.nespak-modern-header .c-navbar,
.nespak-modern-header .container-fluid {
    width: 100%;
    max-width: 100vw;
}

.nespak-modern-header .nespak-contact-icon {
    display: block;
    width: 38px;
    height: 30px;
    transition: transform .2s ease, opacity .2s ease;
}

.nespak-modern-header .nespak-contact-envelope {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nespak-modern-header .nespak-contact-phone {
    fill: currentColor;
    stroke: none;
}

.nespak-modern-header .nespak-contact-link,
.nespak-modern-header .nespak-contact-link:hover,
.nespak-modern-header .nespak-contact-link:focus {
    color: #000 !important;
}

.nespak-modern-header .nespak-language-icon {
    display: block;
    width: 36px;
    height: 36px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s ease, opacity .2s ease;
}

.nespak-modern-header .nespak-search-toggle .fa-search {
    font-size: 20px !important;
}

.nespak-modern-header .nespak-modern-menu .navbar-nav > li.nespak-nav-divisions > .dropdown-menu::after {
    content: none !important;
}

.nespak-modern-header .nespak-modern-menu .navbar-nav > li.nespak-nav-divisions > .dropdown-menu > .nespak-dropdown-heading {
    position: absolute !important;
    z-index: 4 !important;
    top: 48px !important;
    left: 170px !important;
    display: block !important;
    width: 420px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #05070b !important;
    background: transparent !important;
    font-family: var(--nespak-global-font), Arial, sans-serif !important;
    font-size: 34px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 1.15 !important;
    text-transform: none !important;
    pointer-events: none !important;
}

.nespak-modern-header .nespak-modern-menu .navbar-nav > li.nespak-nav-divisions > .dropdown-menu > .nespak-dropdown-feature span {
    width: 450px !important;
}

@media (min-width: 992px) and (max-width: 1399px) {
    .nespak-modern-header .nespak-modern-menu .navbar-nav > li.nespak-nav-divisions > .dropdown-menu > .nespak-dropdown-heading {
        left: 94px !important;
        width: 340px !important;
        font-size: 28px !important;
    }

    .nespak-modern-header .nespak-modern-menu .navbar-nav > li.nespak-nav-divisions > .dropdown-menu > .nespak-dropdown-feature span {
        width: 350px !important;
    }
}

@media (max-width: 991px) {
    .nespak-modern-header .nespak-modern-menu .navbar-nav > li.nespak-nav-divisions > .dropdown-menu > .nespak-dropdown-heading {
        display: none !important;
    }
}

.nespak-modern-header .nespak-modern-menu .navbar-nav > li.nespak-nav-overseas > .dropdown-menu::after {
    content: "Global Presence" !important;
}

/* Keep button-based utilities visually consistent with the link-based nav items. */
.nespak-modern-header .nespak-search-toggle,
.nespak-modern-header .nespak-language-toggle {
    background-color: transparent !important;
}

.nespak-modern-header .nespak-search-toggle:hover,
.nespak-modern-header .nespak-search-toggle:focus-visible,
.nespak-modern-header .nespak-language-toggle:hover,
.nespak-modern-header .nespak-language-toggle:focus-visible {
    background-color: #8d2927 !important;
}

.nespak-modern-header .nespak-search-item.is-open .nespak-search-toggle,
.nespak-modern-header .nespak-language-item.is-open .nespak-language-toggle {
    background-color: rgba(152, 40, 36, .35) !important;
}

.nespak-modern-header .nespak-contact-link,
.nespak-modern-header .nespak-language-toggle {
    border-radius: 0;
    transition: background-color .2s ease, box-shadow .2s ease;
}

.nespak-modern-header .nespak-contact-link:hover,
.nespak-modern-header .nespak-contact-link:focus-visible,
.nespak-modern-header .nespak-language-toggle:hover,
.nespak-modern-header .nespak-language-toggle:focus-visible {
    background: rgba(255, 255, 255, .08) !important;
    box-shadow: none !important;
    outline: none !important;
}

.nespak-modern-header .nespak-language-toggle:hover,
.nespak-modern-header .nespak-language-toggle:focus-visible {
    background: #8d2927 !important;
}

.nespak-modern-header .nespak-language-item.is-open .nespak-language-toggle {
    background: rgba(152, 40, 36, .35) !important;
}

.nespak-modern-header .nespak-contact-link:hover .nespak-contact-icon,
.nespak-modern-header .nespak-contact-link:focus-visible .nespak-contact-icon,
.nespak-modern-header .nespak-language-toggle:hover .nespak-language-icon,
.nespak-modern-header .nespak-language-toggle:focus-visible .nespak-language-icon {
    transform: scale(1.08);
}

@media (min-width: 992px) {
    .nespak-modern-header .container-fluid {
        display: flex !important;
        align-items: stretch !important;
        height: var(--nespak-header-height) !important;
        min-height: var(--nespak-header-height) !important;
        padding-right: clamp(18px, 2.2vw, 44px) !important;
        padding-left: clamp(18px, 2.2vw, 44px) !important;
    }

    .nespak-modern-header .c-brand {
        flex: 0 0 clamp(280px, 21vw, 390px) !important;
        width: clamp(280px, 21vw, 390px) !important;
        min-width: 0 !important;
    }

    .nespak-modern-header .c-logo,
    .c-page-on-scroll.c-layout-header-fixed .nespak-modern-header .c-logo {
        width: 100% !important;
        margin-right: 0 !important;
    }

    .nespak-modern-header .nespak-modern-menu {
        display: flex !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        margin-left: clamp(12px, 2vw, 38px) !important;
    }

    .nespak-modern-header .nespak-modern-menu .navbar-nav {
        display: flex !important;
        align-items: stretch !important;
        justify-content: space-between !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        gap: 0 !important;
    }

    .nespak-modern-header .nespak-modern-menu .navbar-nav > li {
        display: flex !important;
        flex: 0 0 auto !important;
        align-items: stretch !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .nespak-modern-header .nespak-modern-menu .navbar-nav > li > .c-link {
        min-width: 0 !important;
        padding-right: clamp(4px, .45vw, 9px) !important;
        padding-left: clamp(4px, .45vw, 9px) !important;
        font-size: clamp(10px, .68vw, 12px) !important;
        white-space: nowrap !important;
    }

    .nespak-modern-header .nespak-search-toggle,
    .nespak-modern-header .nespak-contact-link {
        width: clamp(40px, 2.8vw, 48px) !important;
        padding: 0 7px !important;
    }

    .nespak-modern-header .nespak-language-toggle {
        width: clamp(54px, 3.6vw, 62px) !important;
        padding: 0 5px !important;
    }
}

/* Use the real feature image once; do not paint a second copy behind it. */
@media (min-width: 992px) {
    .nespak-modern-header .nespak-modern-menu .navbar-nav > li.nespak-nav-about > .dropdown-menu::before,
    .nespak-modern-header .nespak-modern-menu .navbar-nav > li.nespak-nav-sectors > .dropdown-menu::before,
    .nespak-modern-header .nespak-modern-menu .navbar-nav > li.nespak-nav-divisions > .dropdown-menu::before,
    .nespak-modern-header .nespak-modern-menu .navbar-nav > li.nespak-nav-overseas > .dropdown-menu::before,
    .nespak-modern-header .nespak-modern-menu .navbar-nav > li.nespak-nav-projects > .dropdown-menu::before,
    .nespak-modern-header .nespak-modern-menu .navbar-nav > li.nespak-nav-careers > .dropdown-menu::before,
    .nespak-modern-header .nespak-modern-menu .navbar-nav > li.nespak-nav-insights > .dropdown-menu::before,
    .nespak-modern-header .nespak-modern-menu .navbar-nav > li.nespak-nav-language > .dropdown-menu::before {
        background-image: none !important;
        background-color: #f1f1f1 !important;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .nespak-modern-header .c-brand {
        flex-basis: 230px !important;
        width: 230px !important;
    }

    .nespak-modern-header .c-logo:before {
        flex-basis: 40px !important;
        width: 40px !important;
        height: 30px !important;
        margin-right: 8px !important;
    }

    .nespak-modern-header .c-logo:after {
        font-size: 14px !important;
    }

    .nespak-modern-header .nespak-modern-menu {
        margin-left: 6px !important;
    }

    .nespak-modern-header .nespak-modern-menu .navbar-nav > li > .c-link {
        padding-right: 2px !important;
        padding-left: 2px !important;
        font-size: 9.5px !important;
    }
}

@media (max-width: 991px) {
    .nespak-modern-header {
        --nespak-header-height: 74px;
    }

    .nespak-modern-header .container-fluid {
        width: 100% !important;
        padding-right: 18px !important;
        padding-left: 18px !important;
    }

    .nespak-modern-header .c-brand {
        width: 100% !important;
    }

    .nespak-modern-header .nespak-modern-menu {
        width: 100% !important;
        max-width: 100vw !important;
    }
}

@media (max-width: 575px) {
    .nespak-modern-header .container-fluid {
        padding-right: 14px !important;
        padding-left: 14px !important;
    }
}

/* Responsive Divisions mega menu shared by every page. */
@media (min-width: 992px) {
    .nespak-modern-header .nespak-nav-divisions > .c-menu-type-fullwidth {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: start !important;
        gap: clamp(24px, 3vw, 58px) !important;
        min-height: 0 !important;
        max-height: calc(100vh - var(--nespak-header-drop-start, 88px)) !important;
        padding: clamp(32px, 3.2vw, 54px) clamp(32px, 5vw, 96px) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
    }

    .nespak-modern-header .nespak-nav-divisions.c-open > .c-menu-type-fullwidth,
    .nespak-modern-header .nespak-nav-divisions.open > .c-menu-type-fullwidth {
        display: grid !important;
    }

    .nespak-modern-header .nespak-nav-divisions > .c-menu-type-fullwidth::before {
        display: block !important;
        background-color: #f1f1f1 !important;
    }

    .nespak-modern-header .nespak-nav-divisions > .c-menu-type-fullwidth::after {
        display: none !important;
    }

    .nespak-modern-header .nespak-nav-divisions > .c-menu-type-fullwidth > li {
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
    }
}

/* Keep the Insights mega menu click-controlled and aligned as columns. */
@media (min-width: 992px) {
    .nespak-modern-header .nespak-modern-menu .navbar-nav > li.nespak-nav-insights:not(.open):not(.c-open) > .c-menu-type-fullwidth {
        display: none !important;
    }

    .nespak-modern-header .nespak-modern-menu .navbar-nav > li.nespak-nav-insights.open > .c-menu-type-fullwidth,
    .nespak-modern-header .nespak-modern-menu .navbar-nav > li.nespak-nav-insights.c-open > .c-menu-type-fullwidth {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 320px)) !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 58px !important;
    }

    .nespak-modern-header .nespak-modern-menu .navbar-nav > li.nespak-nav-insights > .c-menu-type-fullwidth > li:not(.nespak-dropdown-feature) {
        display: block !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
    }

    .nespak-modern-header .nespak-modern-menu .navbar-nav > li.nespak-nav-insights .c-menu-type-inline {
        position: static !important;
        display: block !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .nespak-modern-header .nespak-nav-divisions > .c-menu-type-fullwidth {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 48px !important;
        padding: 30px 48px !important;
    }
}

/* About Us dropdown — 2-column layout on desktop, single column on mobile. */
@media (min-width: 992px) {
    .nespak-modern-header .nespak-modern-menu .navbar-nav > li.nespak-nav-about.c-open > .dropdown-menu.c-menu-type-classic,
    .nespak-modern-header .nespak-modern-menu .navbar-nav > li.nespak-nav-about.open > .dropdown-menu.c-menu-type-classic {
        column-count: 2 !important;
        column-gap: 48px !important;
    }
}

/* Remove the fixed-header spacer before overseas hero images. */
body.overseas-detail.c-layout-header-fixed .c-layout-page,
body.overseas-detail.c-layout-header-fixed.c-layout-header-mobile-fixed .c-layout-page,
body.overseas-page.c-layout-header-fixed .c-layout-page,
body.overseas-page.c-layout-header-fixed.c-layout-header-mobile-fixed .c-layout-page {
    margin-top: 0 !important;
}

#md-report,
#profile-1973-2024,
#overseas-profile,
#news-report,
#certificates-policies,
#financial-reports,
#statement-corporate-intent {
    scroll-margin-top: calc(var(--nespak-header-height, 88px) + 22px);
}
