/* === MAIN STYLES === */
header {
    background: var(--color__white);
    box-shadow: 0px 3px 15px #00000029;
    position: sticky;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 100;
    height: 130px;
}

header .wrapper {
    background: var(--color__white);
    display: flex;
    align-items: stretch;
    height: 100%;
    padding-right: 0;
}

header .header__logo {
    aspect-ratio: 250 / 98;
    height: 98px;
    width: auto;
    margin: 16px 0;
}

header .header__logo a {
    display: block;
    height: 100%;
    width: 100%;
}

header .header__logo a img {
    display: block;
    max-height: 100%;
    max-width: 100%;
    height: auto;
    width: auto;
}

header .header__utilities {
    flex: 1;
    flex-shrink: 0;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    max-width: 554px;
    height: 100%;
}

header .header__pannel {
    box-sizing: border-box;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 50%;
    background-color: var(--color__blue-light);
}

header .header__pannel.header__pannel--alt {
    background-color: var(--color__red);
}

header .header__pannel p {
    color: var(--color__white);
    font-family: var(--font);
    font-size: 21px;
    line-height: 21px;
    font-weight: 400;
    margin-bottom: 10px;
}

header .header__pannel ul li {
    font-size: 21px;
    font-weight: 700;
    line-height: 21px;
    display: flex;
    flex-flow: row nowrap;
    gap: 15px;
    align-items: center;
}

header .header__pannel ul li:not(:last-child) {
    margin-bottom: 8px;
}

header .header__pannel ul li a {
    color: var(--color__white);
    font: inherit;
    text-decoration: none;
    position: relative;
}

header .header__pannel ul li a::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    display: block;
    height: 1px;
    width: 100%;
    margin-top: 2px;
    background-color: var(--color__white);
    transition: var(--transition);
    opacity: 0;
}

header .header__pannel ul li a:hover::before {
    opacity: 1;
}

header .header__socials {
    display: flex;
    gap: 18px;
}

header .header__socials a {
    color: var(--color__white);
    display: block;
    height: 27px;
    width: 27px;
    text-align: center;
}

header .header__socials a i {
    font-size: 28px;
}

header .header__menu {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    transition: var(--transition);
}

header .menu__items {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-left: 90px;
    margin-right: 90px;
    max-width: 650px;
}

header .menu__items.menu__main {
    flex: 1;
}

header .menu__item.menu__item--submenu {
    position: relative;
}

header .menu__item.menu__item--submenu:hover .submenu__items {
    opacity: 1;
    pointer-events: initial;
    transform: translateX(-50%);
}

header .menu__item.menu__item--active .menu__link {
    font-weight: 700;
}

header .menu__link {
    font-size: 21px;
    line-height: 21px;
    font-weight: 400;
    color: var(--color__main);
    transition: var(--transition);
    text-decoration: none;
    position: relative;
}

header .menu__link::before {
    background: var(--color__red);
    content: '';
    height: 9px;
    width: 9px;
    border-radius: 100%;
    position: absolute;
    top: 100%;
    right: 100%;
    opacity: 0;
}

header .menu__link::after {
    background: var(--color__red);
    content: '';
    height: 3px;
    border-radius: 3px;
    position: absolute;
    bottom: -6px;
    left: -3px;
    width: 0;
    padding: 0 4px;
    opacity: 0;
    transition: width 0.25s ease;
}

header .menu__link:hover {
    color: var(--color__red);
}

header .menu__link:hover::before {
    opacity: 1;
}

header .menu__link:hover::after {
    width: 100%;
    opacity: 1;
}

header .menu__logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
}

header .submenu__items {
    background: var(--color__main);
    position: absolute;
    z-index: 5;
    padding: 30px;
    left: 50%;
    min-width: 100%;
    width: fit-content;
    top: calc(100% + 30px);
    transform: translate(-50%, 30px);
    pointer-events: none;
    opacity: 0;
    transition: var(--transition);
}

header .submenu__items::before {
    content: '';
    display: block;
    width: 100%;
    height: 30px;
    top: -30px;
    left: 0;
    position: absolute;
}

header .submenu__link {
    color: var(--color__black);
    font-weight: 400;
    white-space: nowrap;
    text-decoration: none;
    transition: var(--transition);
}

header .submenu__link:hover {
    color: var(--color__white);
}

header .header__button {
    display: none;
    margin-right: 30px;
}

header .header__button button {
    height: 50px;
    width: 50px;
    overflow: hidden;
    position: relative;
}

header .header__button button span {
    background: var(--color__main);
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(100% - 10px);
    transform: translate(-50%, -50%);
    height: 4px;
    pointer-events: none;
    transition: var(--transition);
}

header .header__button button span::before,
header .header__button button span::after {
    background: var(--color__main);
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center;
    transition: var(--transition);
}

header .header__button button span::before {
    transform: translate(-50%, calc(-50% - 10px));
}

header .header__button button span::after {
    transform: translate(-50%, calc(-50% + 10px));
}

/* === RESPONSIVE QUERIES === */

@media (max-width: 1440px) {
    header .header__utilities {
        flex: 1;
        flex-shrink: unset;
        max-width: 554px;
    }

    header .menu__items {
        margin-left: 45px;
        margin-right: 45px;
    }
}

@media screen and (max-width: 1200px) {
    header .wrapper {
        display: flex;
        flex-flow: row wrap;
        justify-content: space-between;
        align-content: space-between;
        width: 100%;
        position: relative;
    }

    header .header__logo {
        order: 2;
        transition: var(--transition);
        margin-right: auto;
        position: relative;
        z-index: 5;
    }

    header .header__menu {
        background: var(--color__white);
        flex: initial;
        align-self: flex-start;
        order: 4;
        width: 100%;
        transform: translate(-50%, calc(-100% - 30px));
        position: absolute;
        width: 100vw;
        left: 50%;
        bottom: 0;
        justify-content: space-around;
        z-index: 1;
        padding: 30px;
    }

    header .header__menu .menu__main {
        width: 100%;
    }

    header .header__menu .menu__items {
        margin-left: initial;
        margin-right: initial;
    }

    header .header__button {
        align-self: center;
        display: block;
        order: 1;
        position: relative;
        z-index: 5;
    }

    header .header__utilities {
        order: 3;
    }

    /* header.block__header--scrolling .header__logo {
        height: 75px;
    } */

    body.toggle--menu {
        position: absolute;
        overflow: hidden;
    }

    body.toggle--menu main{
        z-index: -1;
    }

    body.toggle--menu footer{
        z-index: -1;
    }

    body.toggle--menu header {
        z-index: 500;
        display: flex;
    }

    body.toggle--menu header .header__menu {
        transform: translate(-50%, 100%);
        transition: var(--transition);
    }

    body.toggle--menu header .header__button button span {
        background: transparent;
    }

    body.toggle--menu header .header__button button span::before {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    body.toggle--menu header .header__button button span::after {
        transform: translate(-50%, -50%) rotate(45deg);
    }
}

@media (max-width: 960px) {
    header {
        height: initial;
    }

    header .wrapper {
        padding: 0 30px;
    }

    header .header__logo {
        margin-right: initial;
    }

    header .header__utilities {
        background: var(--color__red);
        flex: initial;
        flex-shrink: initial;
        max-width: initial;
        width: 100vw;
        position: fixed;
        bottom: 0;
        left: 50%;
        height: initial;
        transform: translate(-50%, 100%);
        align-items: stretch;
        transition: var(--transition);
    }

    header .header__utilities .header__pannel {
        height: 100%;
    }

    body.toggle--menu header .header__utilities {
        transform: translate(-50%, 0);
    }
}

@media (max-width: 768px) {
    header .header__menu {
        flex-direction: column;
    }

    header .header__utilities .header__pannel {
        padding: 15px;
    }

    header .menu__items {
        flex-direction: column;
    }

    header .submenu__items {
        background: transparent;
        position: relative;
        opacity: 1;
        padding: 15px 15px 0;
        transform: translateX(-50%);
        text-align: center;
        pointer-events: initial;
    }

    header .submenu__items::before {
        display: none;
    }

    header .submenu__link {
        color: var(--color__white);
    }
}

@media (max-width: 640px) {
    header {
        height: 90px;
    }

    header .header__logo {
        height: 60px;
    }
}

@media (max-width: 480px) {
    header .header__utilities .header__pannel {
        width: 100%;
    }
}

