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

/* Base Header Styles */
.header {
    max-width: 100%;
    overflow-wrap: break-word;
}

.header--max-width {
    max-width: 1440px;
    margin: 0 auto;
}

/* ============================
   Header Layout Structure
   ============================ */

.header__bottom {
    flex-direction: column;
    position: fixed;
    top: 0;
    width: 100%;
    left: 0;
}

.header__content {
    display: none;
    position: fixed;
    top: 85px;
    left: 0;
    width: 100%;
    z-index: 1000;
    overflow-y: auto;
    height: 100vh;
    max-height: calc(100vh - 124px);
    padding-bottom: 20px;
}

.header__content--open {
    display: block;
    padding-left: 23px;
    padding-top: 31px;
    background-color: var(--header-background);
}

/* ============================
   Panel Section
   ============================ */
.header__panel {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 23px;
    padding: 10px 21px 21px;
    background-color: white;
    position: relative;
    z-index: 1001;
}

.header__panel--open {
    background-color: var(--header-background) !important;
}

/* ============================
   Button Styles
   ============================ */
.header__top-buttons {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 23px;
}

.header__buttons {
    padding: 40px 0 0 10px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 33px;
}

.header-buttons__btn {
    background: none;
    border: none;
    outline: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

/* ============================
   Navigation Styles
   ============================ */
.header__nav {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    max-width: 100%;
    margin-right: 49px;
}

.header__nav-top-item {
    font-size: 24px;
    max-width: 100%;
    word-break: normal;
    text-decoration: none;
    font-weight: 500;
    color: black;
}

.header__nav-low-item {
    font-size: 18px;
    max-width: 100%;
    word-break: break-word;
    text-decoration: none;
    color: black;
}

.header__nav-low-item:hover {
    text-decoration: underline;
}

.header__nav-top-item:hover {
    text-decoration: underline;
}

.header__bottom-nav {
    padding-left: 1px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ============================
   Social Links
   ============================ */
.header__socials {
    padding-top: 31px;
    display: flex;
    flex-direction: column;
    gap: 23px;
    justify-content: flex-start;
}

/* ============================
   Hamburger Menu
   ============================ */
.close-icon {
    display: none;
}

.menu-toggle--open .hamburger-icon {
    display: none;
}

.menu-toggle--open .close-icon {
    display: block;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.menu-open .hamburger-icon {
    display: flex;
}

.menu-inactive {
    display: none !important;
}

.header__content.mobile--only {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--background);
    z-index: 1000;
    overflow-y: auto;
    padding-top: 80px;
}

/* ============================
   Miscellaneous
   ============================ */
.banner-image {
    padding-top: 10px;
}

.header__logo {
    img {
        width: 300px;
        height: 74px;
    }
}

/* ============================
   MEDIA QUERIES
   ============================ */
@media (min-width: 1122px) {
    /* Base header adjustments */
    .header {
        margin-top: 0;
        flex-direction: column;
    }

    /* Content positioning */
    .header__content {
        height: auto;
        position: static;
        display: block;
        padding: 0;
    }

    .header__bottom {
        position: static;
        padding: 0 20px;
        width: unset;
        display: flex;
        flex-direction: column;
        margin-bottom: 20px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Panel adjustments */
    .header__panel {
        padding-right: 49px;
        padding-bottom: 26px;
        padding-left: 0;
    }

    /* Top bar styling */
    .header__top {
        background-color: var(--navy-color);
    }

    .header__top-content {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 44px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .header__text {
        color: white;
        font-size: 18px;
        font-weight: bold;
        font-family: ff-meta-web-pro;
    }

    .header__link {
        font-weight: normal;
        text-decoration: none;
    }

    .header__img {
        margin-left: 27px;
    }

    /* Bottom section */
    .header__bottom-section {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 126px;
    }

    /* Buttons and navigation */
    .header__buttons {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 31px;
    }

    .header__nav {
        flex-direction: row;
        gap: 20px;
        padding: 0;
        flex-wrap: nowrap;
    }

    .header__nav-top-item {
        display: flex;
        font-size: 18px;
        font-family: ff-meta-web-pro;
        overflow-wrap: break-word;
        word-break: normal;
        hyphens: auto;
        padding-left: 20px;
        margin-bottom: 20px;
        border-left: 2px solid var(--navy-color);
        align-items: center;
        line-height: 118%;
    }
}

@media (min-width: 1500px) {
    .header__nav {
        margin-right: 99px;
        gap: 60px;
    }

    .header__nav-top-item {
        font-size: 22px;
    }
}
