/* ==========================================================================
   Top navigation styled to match https://mkt.pacifecon.co.nz/
   Loaded after bootstrap.min.css / redesign_header_footer.css / redesign.css
   so it can override the old .navigation header rules.
   ========================================================================== */

:root {
    --mkt-primary: #ff8023;
}

/* The header floats over the banner image, exactly as on the marketing site. */
.mkt-header-wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    font-family: 'Manrope', sans-serif;
}

.mkt-header {
    position: relative;
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    transition: background-color 0.15s ease;
}

    .mkt-header:hover {
        background: #ffffff;
    }

.mkt-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 16px;
}

@media (min-width: 1024px) {
    .mkt-header-inner {
        padding-left: 0;
        padding-right: 0;
    }
}

.mkt-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --------------------------------------------------------------------------
   Logo (white wordmark over the banner, black wordmark once the bar goes white)
   -------------------------------------------------------------------------- */
.mkt-brand {
    position: relative;
    display: inline-block;
    padding: 0;
    margin: 0;
    height: 40px;
    line-height: normal;
}

    .mkt-brand img {
        display: block;
        height: 40px;
        width: auto;
        transition: opacity 0.15s ease;
    }

    .mkt-brand .mkt-logo-black {
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
    }

.mkt-header:hover .mkt-brand .mkt-logo-colour {
    opacity: 0;
}

.mkt-header:hover .mkt-brand .mkt-logo-black {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Desktop menu
   -------------------------------------------------------------------------- */
.mkt-nav {
    display: none;
}

.mkt-menu {
    display: flex;
    align-items: center;
    gap: 0 48px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .mkt-menu > li {
        position: relative;
        margin: 0;
        padding: 0;
        list-style: none;
    }

.mkt-menu-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mkt-menu a,
.mkt-menu .mkt-caret {
    color: #ffffff;
    transition: color 0.15s ease;
}

.mkt-header:hover .mkt-menu a,
.mkt-header:hover .mkt-menu .mkt-caret {
    color: #000000;
}

.mkt-menu-link {
    display: inline-block;
    padding: 8px 0;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: uppercase;
    text-decoration: none;
}

/* Orange underline that wipes in on hover (.nav-underline on the mkt site) */
.mkt-underline {
    position: relative;
    overflow: visible;
}

    .mkt-underline:after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -5px;
        width: 100%;
        height: 2px;
        z-index: 10;
        background-color: var(--mkt-primary);
        transform: scaleX(0);
        transform-origin: 0;
        transition: transform 0.3s;
        pointer-events: none;
    }

    .mkt-underline:hover:after {
        transform: scaleX(1);
    }

/* Chevron */
.mkt-caret {
    display: inline-flex;
    align-items: center;
    padding: 8px 0;
    background: none;
    border: 0;
    cursor: pointer;
}

    .mkt-caret svg {
        display: block;
        width: 12px;
        height: 12px;
    }

/* Orange "Contact" pill */
.mkt-btn-contact {
    display: inline-block;
    padding: 8px 32px;
    border-radius: 4px;
    background-color: var(--mkt-primary);
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    line-height: 16px;
    text-transform: uppercase;
    text-decoration: none;
}

    .mkt-btn-contact:hover {
        background-color: rgba(255, 128, 35, 0.8);
    }

/* --------------------------------------------------------------------------
   Desktop drop-downs. The white strip is bled out to the viewport edges with
   a pseudo element so the bar appears to grow, as it does on the mkt site.
   -------------------------------------------------------------------------- */
.mkt-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 192px;
    padding: 16px 0 8px;
    z-index: 60;
}

.mkt-menu > li:hover > .mkt-submenu {
    display: block;
}

.mkt-submenu:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -100vw;
    right: -100vw;
    background: #ffffff;
    z-index: -1;
}

.mkt-submenu ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mkt-submenu li {
    margin: 0;
    padding: 4px 0;
    list-style: none;
}

.mkt-header .mkt-submenu a {
    display: inline-block;
    color: #000000;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    line-height: 24px;
    text-transform: none;
    text-decoration: none;
    white-space: nowrap;
}

.mkt-header .mkt-submenu a:hover {
    text-decoration: underline;
    text-decoration-color: var(--mkt-primary);
    text-underline-offset: 12px;
}

/* --------------------------------------------------------------------------
   Hamburger (two bars, as on the mkt site)
   -------------------------------------------------------------------------- */
.mkt-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    background: none;
    border: 0;
    cursor: pointer;
}

    .mkt-burger span {
        display: block;
        width: 32px;
        height: 2px;
        background-color: #ffffff;
        transition: background-color 0.15s ease;
    }

.mkt-header:hover .mkt-burger span {
    background-color: #000000;
}

@media (min-width: 1300px) {
    .mkt-nav {
        display: block;
    }

    .mkt-burger {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   Full screen mobile menu
   -------------------------------------------------------------------------- */
.mkt-mobile {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    background: #ffffff;
    overflow-y: auto;
    font-family: 'Manrope', sans-serif;
}

    .mkt-mobile.is-open {
        display: block;
    }

@media (min-width: 1300px) {
    .mkt-mobile.is-open {
        display: none;
    }
}

body.mkt-menu-open {
    overflow: hidden;
}

.mkt-mobile-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 16px;
}

    .mkt-mobile-head img {
        display: block;
        height: 40px;
        width: auto;
    }

.mkt-mobile-close {
    padding: 0;
    background: none;
    border: 0;
    color: #000000;
    cursor: pointer;
}

    .mkt-mobile-close svg {
        display: block;
        width: 32px;
        height: 32px;
    }

.mkt-mobile-nav {
    padding: 32px 16px;
}

    .mkt-mobile-nav > ul {
        display: flex;
        flex-direction: column;
        gap: 48px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .mkt-mobile-nav li {
        margin: 0;
        padding: 0;
        list-style: none;
    }

.mkt-mobile-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.mkt-mobile-nav .mkt-mobile-item > a {
    color: #000000;
    font-size: 20px;
    line-height: 28px;
    text-transform: uppercase;
    text-decoration: none;
}

.mkt-mobile-nav .mkt-mobile-item > a:hover {
    color: var(--mkt-primary);
}

.mkt-mobile-toggle {
    padding: 8px;
    background: none;
    border: 0;
    color: #000000;
    cursor: pointer;
}

    .mkt-mobile-toggle svg {
        display: block;
        width: 20px;
        height: 20px;
        transition: transform 0.2s ease;
    }

.mkt-mobile-nav li.is-open > .mkt-mobile-item .mkt-mobile-toggle svg {
    transform: rotate(180deg);
}

.mkt-mobile-sub {
    display: none;
    flex-direction: column;
    gap: 24px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.mkt-mobile-nav li.is-open > .mkt-mobile-sub {
    display: flex;
}

.mkt-mobile-nav .mkt-mobile-sub a {
    color: #364153;
    font-size: 16px;
    line-height: 24px;
    text-decoration: none;
}

.mkt-mobile-nav .mkt-mobile-sub a:hover {
    color: var(--mkt-primary);
}

/* --------------------------------------------------------------------------
   The old fixed navbar reserved 81px above the banner; the new header sits
   on top of the banner instead.
   -------------------------------------------------------------------------- */
.bread-container {
    margin-top: 0;
}
