header {
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: var(--spacing-s) 0;
    position: absolute;
}

header > .container {
    width: 100%;
    max-width: var(--site-max-width);
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    padding: 0 var(--spacing-m);
}

header img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#menu-mobile ul,
header .menu ul {
    list-style: none;
    display: flex;
    gap: 80px;
}

header .menu-toggle-button {
    color: var(--c-text-dark)
}

@media screen and (max-width: 1250px) {
    header > .container {
        grid-template-columns: 200px 1fr 200px;
    }

    header .menu ul {
        gap: 40px;
    }
}

@media screen and (max-width: 999px) {
    html.menu-open body {
        overflow: hidden;
    }

    header > .container {
        grid-template-columns: auto 1fr;
        justify-content: center;
        justify-items: center;
    }

    header .logo,
    header .menu {
        display: none;
    }

    #menu-mobile {
        display: flex;
        justify-content: flex-start;
        padding-left: var(--spacing-l);
    }

    #menu-mobile {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: var( --impact-orange);
        z-index: 99;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s var(--cubic-bezier), visibility 0.3s var(--cubic-bezier);
    }

    html.menu-open #menu-mobile {
        opacity: 1;
        visibility: visible;
    }

    #menu-mobile ul {
        flex-direction: column;
        gap: 0;
        justify-content: center;
    }

    #menu-mobile ul li a {
        font-family: var(--font-primary);
        font-size: var(--fs-hero-m);
        line-height: 0.9;
    }

    header .secondary-logo {
        z-index: 100;
        order: -1;
        width: 100%;
        display: flex;
        justify-content: flex-start;
    }
    
    header .secondary-logo img {
        height: 30px;
        max-width: 250px;
        object-position: center left;
    }

    header .menu-toggle {
        z-index: 100;
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }

    header .menu-toggle button {
        background: none;
        padding: 0;
        border: none;
        font-family: var(--font-secondary);
        font-weight: 300;
        font-size: var(--fs-l);
        text-decoration: underline;
        text-decoration-thickness: 2px;
        text-underline-offset: 4px;
        margin-top: -1px;
    }
}

@media screen and (max-width: 749px) {
    header > .container {
        padding: 0 var(--spacing-s);
    }
}

@media screen and (max-width: 500px) {
    header .secondary-logo img {
        height: auto;
        max-width: 210px;
    }

    header .menu-toggle button {
        font-size: var(--fs-xs);
    }
}

@media screen and (min-width: 1000px) {
    header .menu {
        display: flex;
        justify-content: center;
    }

    header .logo img {
        max-width: 150px;
        max-height: 20px;
        object-position: center left;
        margin-right: auto;
    }

    header .secondary-logo a {
        pointer-events: none;
    }
    
    header .secondary-logo a img {
        max-width: 250px;
        max-height: 20px;
        object-position: center right;
        margin-left: auto;
    }

    header .menu-toggle {
        display: none;
    }

    #menu-mobile {
        display: none;
    }
}