@import url("common.css");

header {
    width: var(--container-full-width);
    height: auto;
    position: relative;
    z-index: 1;
}

.desktop {
    display: flex;
}

.mobile-header {
    display: none;
}

.header-container {
    width: var(--container-calc-l);
    margin: 0 auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20px;
}

.first-header-row {
    width: var(--container-full-width);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    flex: 0 auto;
}

.button-header {
    flex: 0 90%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.button-header .button-section {
    flex: 0 48%;
}

.button-section {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.button-section a.primary-button {
    font-size: 16px;
}

.button-section a.primary-button:first-of-type {
    width: 180px;
}

.logo-section img {
    height: 100px;
    object-fit: contain;
}

.second-header-row {
    width: var(--container-full-width);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 2px;
    margin-top: 15px;
}

.box-menu {
    flex: 1;
    padding: 20px 4px 14px;
    background-color: var(--light-blue);
    display: inherit;
    align-items: center;
    justify-self: center;
    text-align: center;
    cursor: pointer;
}

.box-menu a {
    display: block;
    height: var(--container-full-width);
    text-decoration: none;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    flex: 0 var(--container-full-width);
}

.box-menu:first-of-type {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.box-menu:last-of-type {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.box-menu.active,
.box-menu:hover {
    border-bottom: 6px solid var(--alternative-yellow);
    padding-bottom: 8px;
}

@media screen and (max-width: 1440px) {
    
    .button-header {
        flex-direction: column;
        align-items: flex-end;
    }

    .button-header .button-section:first-of-type {
        margin-bottom: 20px;
    }

}

@media screen and (max-width: 1024px) {

    header {
        z-index: 999999;
    }

    .desktop {
        display: none;
    }

    .mobile-header {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 999999;
    }

    .overlay-menu {
        position: fixed;
        background-color: var(--light-blue);
        top: 0;
        left: -100%;
        transition: 0.8s;
        height: 100vh;
        width: 70%;
        z-index: 999;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .overlay-menu.open {
        left: 0;
    }

    .overlay-menu ul {
        padding: 0 0 0 10px;
        margin: 0;
    }

    .overlay-menu ul li {
        list-style-type: none;
        margin-bottom: 10px;
    }

    .overlay-menu ul li a {
        text-decoration: none;
        text-transform: uppercase;
        color: var(--black);
    }

    .overlay-menu ul li a.active,
    .overlay-menu ul li a:hover {
        border-bottom: 3px solid var(--yellow);
    }

    .button-overlay-section {
        width: var(--contain\er-full-width);
        margin-top: 15px;
        position: relative;
        left: 10px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .button-overlay-section .primary-button {
        max-width: 350px;
    }

    .burger-menu-container {
        width: 40px;
        height: 40px;
        border-radius: 50px;
        position: fixed;
        left: 10px;
        top: 10px;
        border: 2px solid var(--yellow);
        outline: 2px solid var(--white);
        background-color: var(--yellow);
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.5s;
        z-index: 9999;
    }

    .burger-menu-container:hover {
        border: 2px solid var(--alternative-yellow);
        background-color: var(--alternative-yellow);
    }

    .burger-menu-container span {
        display: block;
        width: 30px;
        height: 3px;
        border-radius: 10px;
        background-color: var(--white);
        position: relative;
        left: 0;
        opacity: 1;
        transition: 0.8s;
    }

    .burger-menu-container span:nth-of-type(2) {
        margin: 5px auto;
    }

    .burger-menu-container.open span:first-of-type {
        transform: translate(0px, 6px) rotate(55deg);
    }

    .burger-menu-container.open span:nth-of-type(2) {
        left: -20px;
        opacity: 0;
    }

    .burger-menu-container.open span:last-of-type {
        transform: translate(0px, -10px) rotate(-55deg);
    }

    .header-container {
        width: var(--container-calc-m);
    }
}

@media screen and (max-width: 768px) {
    .header-container {
        width: var(--container-calc-s);
    }
    
    .button-overlay-section .primary-button span {
        font-size: 10px;
    }
}

@media screen and (max-width: 600px) {
    .overlay-menu {
        width: var(--container-full-width);
    }
}