/**
 * Organism: Header
 */

/* Header Container - Unified gradient shadow for both primary and secondary nav */

/* Adjust for WordPress admin bar when logged in */
body.admin-bar .header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .header {
        top: 46px;
    }
}

.header {
    position: absolute;
    top: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 100%);
    padding-top: 20px;
    padding-bottom: 20px;
    z-index: 1000;
}

.header__container {
    max-width: var(--wp--style--global--content-size);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header__menus {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex: 1 1 0;
}

.header__nav {
    display: none !important;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header__phone {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.header__phone:hover,
.header__phone:focus {
    color: #ffffff;
}

.header__phone svg {
    width: 18px;
    height: 18px;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
}

.lang-selector svg {
    width: 16px;
    height: 16px;
    stroke-width: 3;
}

.header__fav {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    color: #ffffff;
}

.header__fav:hover,
.header__fav:focus {
    color: #ffffff;
}

.header__fav svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

.header__hamburger {
    display: flex;
    outline: none;
}

.header__search {
    display: flex;
}

@media (min-width: 1024px) {
    .header__container {
        padding: 0 var(--wp--preset--spacing--80);
    }

    .header__hamburger {
        margin-right: 16px;
    }
}


@media (max-width: 1023px) {
    .header__container {
        padding: 0 var(--wp--preset--spacing--50);
    }

    .header__fav {
        display: none;
    }

    .header {
        padding-top: 10px;
        padding-bottom: 10px;
        position: fixed;
    }

    .header__phone,
    .lang-selector {
        font-size: 12px;
    }

    .header__actions {
        gap: 10px;
    }

    .header.scrolled {
        background: var(--wp--preset--color--base);
    }

    .header.scrolled .header__phone,
    .header.scrolled .lang-selector,
    .header.scrolled .btn-hamburger {
        color: var(--wp--preset--color--contrast);
    }

    .header.scrolled .logo__image {
        display: none;
    }

    .header.scrolled .logo__image.color {
        display: block;
    }
}
