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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    background-color: var(--color-black);
    color: var(--color-white);
    transform: translateY(0);
    transition: transform var(--transition-standard);
}

.site-header.header-hidden {
    transform: translateY(-100%);
}

.header-inner {
    display: flex;
    width: 100%;
    min-height: var(--header-height);
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 35px 4.6%;
}


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

.brand {
    display: flex;
    width: min(430px, 55vw);
    align-items: center;
    flex-shrink: 1;
}

.header-logo {
    display: block;
    width: 100%;
    height: auto;
}


/* ==================================================
   HEADER ACTIONS
================================================== */

.header-actions {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-shrink: 0;
}


/* ==================================================
   INSTAGRAM
================================================== */

.instagram-link {
    display: flex;
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: opacity var(--transition-fast);
}

.instagram-link:hover {
    opacity: 0.65;
}

.instagram-link svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.instagram-link .instagram-dot {
    fill: currentColor;
    stroke: none;
}


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

.menu-button {
    position: relative;
    z-index: 1100;
    display: flex;
    width: 38px;
    height: 30px;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 9px;
    padding: 0;
    border: 0;
    background-color: transparent;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.menu-button:hover {
    opacity: 0.65;
}

.menu-button span {
    display: block;
    width: 100%;
    height: 4px;
    background-color: var(--color-white);
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.menu-button.menu-open span:first-child {
    transform: translateY(6.5px) rotate(45deg);
}

.menu-button.menu-open span:last-child {
    transform: translateY(-6.5px) rotate(-45deg);
}


/* ==================================================
   FULL-SCREEN MENU
================================================== */

.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 285px 6% 80px;
    background-color: var(--color-black);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.menu-overlay.menu-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.main-menu {
    display: flex;
    width: 100%;
    max-width: 1100px;
    flex-direction: column;
    align-items: flex-end;
    gap: 44px;
}

.main-menu a {
    max-width: 100%;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: clamp(1.4rem, 2.2vw, 2.2rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-align: right;
    text-transform: uppercase;
    transition: opacity var(--transition-fast);
}

.main-menu a:first-child {
    font-weight: 700;
}

.main-menu a:hover {
    opacity: 0.55;
}


/* ==================================================
   TABLETS
================================================== */

@media (max-width: 1000px) {

    .header-inner {
        padding: 30px 6%;
    }

    .brand {
        width: min(330px, 55vw);
    }

    .header-actions {
        gap: 24px;
    }

    .instagram-link {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
    }

    .menu-button {
        width: 33px;
    }

    .menu-overlay {
        padding-top: 220px;
    }

    .main-menu {
        gap: 34px;
    }

}


/* ==================================================
   PHONES
================================================== */

@media (max-width: 560px) {

    .header-inner {
        align-items: flex-start;
        gap: 18px;
        padding: 28px 6%;
    }

    .brand {
        width: auto;
        max-width: calc(100% - 100px);
    }

    .header-logo {
        width: 235px;
    }

    .header-actions {
        gap: 18px;
        padding-top: 4px;
    }

    .instagram-link {
        width: 25px;
        height: 25px;
        flex-basis: 25px;
    }

    .menu-button {
        width: 30px;
        height: 27px;
        gap: 7px;
    }

    .menu-button span {
        height: 3px;
    }

    .menu-button.menu-open span:first-child {
        transform: translateY(5px) rotate(45deg);
    }

    .menu-button.menu-open span:last-child {
        transform: translateY(-5px) rotate(-45deg);
    }

    .menu-overlay {
        padding: 185px 7% 60px;
    }

    .main-menu {
        gap: 28px;
    }

    .main-menu a {
        font-size: 1.25rem;
    }

}


/* ==================================================
   SMALL PHONES
================================================== */

@media (max-width: 400px) {

    .header-inner {
        gap: 14px;
        padding: 26px 5%;
    }

    .brand {
        max-width: calc(100% - 88px);
    }

    .header-logo {
        width: 205px;
    }

    .header-actions {
        gap: 15px;
    }

    .instagram-link {
        width: 23px;
        height: 23px;
        flex-basis: 23px;
    }

    .menu-button {
        width: 27px;
    }

}