.header-wrapper {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.headerMenu-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    background-color: var(--color-primary);
    padding: 10px;
}

.headerMenu-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 48px;
}

.headerMenu-desktop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
}

.headerMenu-logo {
    display: block;
    line-height: 0;
}

.headerMenu-logo-image {
    display: block;
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.headerMenu-link {
    color: var(--color-primary-light);
    transition: color 500ms ease;
}

.headerMenu-link:hover {
    color: var(--color-accent);
}

.headerMenu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary-light);
    color: var(--color-accent);
    padding: 12px 28px;
    border-radius: 100px;
    transition: background-color 500ms ease, color 500ms ease;
}

.headerMenu-button:hover {
    background-color: var(--color-accent);
    color: var(--color-primary-light);
}

.headersubMenu-wrapper {
    position: absolute;
    z-index: 1;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-primary-light);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 400ms ease, opacity 300ms ease, visibility 400ms ease;
}

.header-wrapper:hover .headersubMenu-wrapper {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.headersubMenu-container {
    width: 100%;
}

.headersubMenu-sectionHolder {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.headersubMenu-section {
    background-color: var(--color-primary-light);
    padding: 0.5rem 0.75rem;
    width: 100%;
}

.headersubMenu-sectionTitle a {
    color: var(--color-primary);
    font-weight: 600;
    transition: color 500ms ease;
}

.headersubMenu-sectionTitle a:hover {
    color: var(--color-accent);
}

.headersubMenu-link {
    color: var(--color-text-primary);
    transition: color 500ms ease;
}

.headersubMenu-link:hover {
    color: var(--color-accent);
}

.sub-menuCorner {
    border-right: 1px solid var(--color-primary);
}


/* =========================================================
   HAMBURGER
   ========================================================= */

.headerMenu-toggle {
    display: none;
}


/* =========================================================
   MOBILE MENU
   ========================================================= */

.headerMobileMenu {
    display: none;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 768px) and (max-width: 1199px) {

    .headerMenu-container {
        justify-content: space-between;
    }

    .headerMenu-desktop {
        display: none;
    }

    .headerMenu-toggle {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 8px;
        border: none;
        background: transparent;
        cursor: pointer;
    }

    .headerMenu-toggle span {
        position: absolute;
        left: 50%;
        display: block;
        width: 24px;
        height: 2px;
        background-color: var(--color-primary-light);
        transition:
            transform 250ms ease,
            opacity 250ms ease;
    }

    .headerMenu-toggle span:nth-child(1) {
        transform: translate(-50%, -8px);
    }

    .headerMenu-toggle span:nth-child(2) {
        transform: translate(-50%, 0);
    }

    .headerMenu-toggle span:nth-child(3) {
        transform: translate(-50%, 8px);
    }

    /* Hamburger → X */

    .headerMenu-toggle.is-open span:nth-child(1) {
        transform: translate(-50%, 0) rotate(45deg);
    }

    .headerMenu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .headerMenu-toggle.is-open span:nth-child(3) {
        transform: translate(-50%, 0) rotate(-45deg);
    }

    .headerMenu-logo-image {
        width: 70px;
        height: 70px;
    }

    .headersubMenu-wrapper {
        display: none;
    }

    .headerMobileMenu {
        display: none;
        background-color: var(--color-primary-light);
        padding: 20px;
    }

    .headerMobileMenu.is-open {
        display: block;
    }

    .headerMobileMenu-item {
        padding: 14px 0;
        border-bottom: 1px solid var(--color-primary);
    }

    .headerMobileMenu-item a {
        
        color: var(--color-primary);
        font-weight: 600;
    }

    .headerMobileMenu-support {
        margin-top: 10px;
        padding: 12px 20px;
        background-color: var(--color-accent);
        border-radius: 100px;
        border-bottom: none;
        text-align: center;
    }

    .headerMobileMenu-support a {
        color: var(--color-primary-light);
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .headerMenu-container {
        justify-content: space-between;
    }

    .headerMenu-desktop {
        display: none;
    }

    .headerMenu-toggle {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 8px;
        border: none;
        background: transparent;
        cursor: pointer;
    }

    .headerMenu-toggle span {
        position: absolute;
        left: 50%;
        display: block;
        width: 28px;
        height: 2px;
        background-color: var(--color-primary-light);
        transition:
            transform 250ms ease,
            opacity 250ms ease;
    }

    .headerMenu-toggle span:nth-child(1) {
        transform: translate(-50%, -8px);
    }

    .headerMenu-toggle span:nth-child(2) {
        transform: translate(-50%, 0);
    }

    .headerMenu-toggle span:nth-child(3) {
        transform: translate(-50%, 8px);
    }

    /* Hamburger → X */

    .headerMenu-toggle.is-open span:nth-child(1) {
        transform: translate(-50%, 0) rotate(45deg);
    }

    .headerMenu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .headerMenu-toggle.is-open span:nth-child(3) {
        transform: translate(-50%, 0) rotate(-45deg);
    }

    .headerMenu-logo-image {
        width: 60px;
        height: 60px;
    }

    .headersubMenu-wrapper {
        display: none;
    }

    .headerMobileMenu {
        display: none;
        background-color: var(--color-primary-light);
        padding: 16px;
    }

    .headerMobileMenu.is-open {
        display: block;
    }

    .headerMobileMenu-item {
        padding: 14px 0;
    }

    .headerMobileMenu-item a {
        color: var(--color-primary);
        font-weight: 600;
    }

    .headerMobileMenu-support {
        margin-top: 12px;
        padding: 12px 20px;
        background-color: var(--color-accent);
        border-radius: 100px;
        border-bottom: none;
        text-align: center;
    }

    .headerMobileMenu-support a {
        color: var(--color-primary-light);
    }
}