.header {
    background: var(--color-white);
    position: relative;
    z-index: 100;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 1.2rem;
}

.header__brand {
    display: flex;
    flex-direction: row;
    line-height: 1;
    align-items: center;
    gap: 1rem;
}

.header__brand-title {
    font-family: var(--ff-accent);
    font-size: 2.5rem;
    color: #5B6DA0;
}

.header__brand-tag {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--color-blue);
    padding-top: .5rem;
    letter-spacing: -1px;
}

.header__nav-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
    transition: all 0.3s ease;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.header__link {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-blue);
    letter-spacing: -1px;
    border: none;
    background: none;
    cursor: pointer;
}

.header__link:not(.header__dropdown-toggle):hover {
    color: var(--color-dark-purple);
}

.header__dropdown-toggle:hover {
    color: var(--color-blue);
}

.header__social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__social-link {
    display: flex;
    align-items: center;
    color: var(--color-blue);
}

.header__social-link i {
    font-size: 1.8rem;
}

.header__social-link:hover {
    color: var(--color-dark-purple);
}

.header__dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.header__dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 225px;
    color: var(--color-blue);
    background: var(--color-off-white);
    padding: 0.5rem 0;
    border-radius: 4px;
    z-index: 10;
}

.header__dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--color-blue);
    font-size: 1.1rem;
    line-height: 2rem;
}

.header__dropdown-item:not(:last-child) {
    border-bottom: 1px solid var(--color-light-purple);
}

.header__dropdown-item:hover {
    color: var(--color-dark-purple);
}

.header__menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-blue);
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
}

.header__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.header__overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.header__dropdown-toggle i {
    margin-left: 2px;
    font-size: 1rem;
    vertical-align: middle;
    transition: transform 0.2s ease;
}


@media (min-width: 1000px) and (max-width: 1350px) {
    .header__brand {
        gap: .75rem;
    }

    .header__brand-title {
        font-size: 1.8rem;
    }

    .header__brand-tag {
        font-size: 1rem;
    }

}

@media (min-width: 1166px) {
    .header__dropdown:hover .header__dropdown-menu {
        display: block;
    }
}

@media (max-width: 1185px) {
    .header__inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .header__brand {
        flex-wrap: wrap;
        gap: 0 .75rem;
    }

    .header__brand-title {
        font-size: 1.8rem;
    }

    .header__brand-tag {
        font-size: .8rem;
        padding-left: 3px;
    }

    .header__menu-toggle {
        display: block;
    }

    .header__nav-wrapper {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-off-white);
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 1.5rem 1.5rem;
        border-top: 1px solid var(--color-light-purple);
        display: none;
    }

    .header__nav-wrapper.is-open {
        display: flex;
    }

    .header__nav {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .header__link {
        flex-direction: column;
        width: 100%;
        text-align: center;
        font-size: 1.2rem;
        padding: 0.3rem 0;
        font-weight: 500;
    }

    .header__dropdown-menu {
        position: static;
        display: none;
        background: none;
        border: none;
        padding-left: 1rem;
        padding-top: 0.25rem;
    }

    .header__dropdown.is-open .header__dropdown-menu {
        display: block;
    }

    .header__dropdown-item {
        font-size: 1.2rem;
        line-height: 1.8rem;
        border: none;
    }

    .header__social {
        margin-top: 0;
        width: 100%;
        justify-content: center;
        gap: 16px;
    }
}

@media (max-width: 426px) {
    .header__brand-tag {
        padding-top: 0;
    }
}
