/* ==========================================================
   Header
   ========================================================== */

   .site-header {
    position: sticky;
    top: 0;
    height: 80px;
    width: 100%;
    background: var(--color-dark);
    color: var(--color-light);
    z-index: 1000;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 20px 40px;
}

.site-logo {
    display: block;
    width: 224px;
    height: 56px;
    transform: translateY(3px);
}

.site-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-navigation {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-navigation a {
    color: var(--color-light);
    text-decoration: none;
    text-transform: uppercase;
    font-size: var(--font-size-menu);
    font-weight: var(--font-bold);
    letter-spacing: 0.05em;
    transition: transform 0.2s ease;
}

.site-navigation a:hover {
    color: var(--color-lnkhvr);
    transform: scale(1.05);
}

.site-navigation a.is-active {
    text-decoration: underline;
    text-underline-offset: 4px;
    color: var(--color-links);
}

/* ==========================================================
   Mobile menu - hidden by default
   ========================================================== */

.mobile-navigation {
    display: none;
}

.menu-toggle {
    display: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-light);
    cursor: pointer;
}


/* ==========================================================
   Mobile
   ========================================================== */

   @media screen and (max-width: 700px) {

    .site-header {
        height: 60px;
    }

    .site-header-inner {
        position: relative;
        padding: 15px 20px;
        z-index: 1002;
    }

    .site-logo {
        width: 160px;
        height: 40px;
    }

    .site-navigation {
        display: none;
    }
   /* ------------------------------------------------------
       Hamburger / close button
       ------------------------------------------------------ */

       .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;

        width: 25px;
        height: 25px;

        position: relative;
        z-index: 1003;
    }

    .menu-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background: currentColor;

        transform-origin: left center;

        transition:
            transform 0.3s ease,
            opacity 0.2s ease;
    }

    /*
     * Open state:
     *
     * middle line disappears
     * top and bottom lines rotate into an X
     */

    .menu-toggle.is-open span:nth-child(1) {
        transform: translateY(-2px) rotate(46deg);
    }

    .menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .menu-toggle.is-open span:nth-child(3) {
        transform: translateY(2px) rotate(-46deg);
    }


    /* ------------------------------------------------------
       Mobile menu
       ------------------------------------------------------ */

    .mobile-navigation {
        display: flex;
        flex-direction: column;
        align-items: flex-start;

        position: fixed;

        top: 60px;
        right: 0;

        width: 80vw;

        /*
         * Height is determined by the menu contents.
         * It therefore does not extend to the bottom of
         * the screen unnecessarily.
         */
        height: auto;

        padding: 25px 20px 28px;

        gap: 22px;

        background: var(--color-dark);

        /*
         * Start as a small box around the top-right
         * origin and grow into the menu.
         */
        transform: scale(0.08);
        transform-origin: top right;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transition:
            transform 0.3s ease-in-out,
            opacity 0.2s ease-in-out,
            visibility 0s linear 0.3s;

        z-index: 1001;
    }

    .mobile-navigation.is-open {
        transform: scale(1);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transition:
            transform 0.3s ease-in-out,
            opacity 0.2s ease-in-out,
            visibility 0s linear 0s;
    }

    .mobile-navigation a {
        color: var(--color-light);
        text-decoration: none;
        text-transform: uppercase;

        font-size: 18px;
        font-weight: var(--font-bold);
        letter-spacing: 0.05em;

        transition: color 0.2s ease;
    }

    .mobile-navigation a:hover {
        color: var(--color-lnkhvr);
    }

    .mobile-navigation a.is-active {
        color: var(--color-links);
        text-decoration: underline;
        text-underline-offset: 5px;
    }

}