/* Header */
.site-header {
    position: relative;
    background: #222;
    padding: 15px 0;
    position: relative;
    z-index: 999;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo img {
    max-height: 50px;
    display: block;
}

/* Hamburger */
.menu-toggle {
    position: relative;
    cursor: pointer;
    width: 30px;
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 6px;
    z-index: 1000;
}

/* Bars - White by default */
.menu-toggle .bar {
    width: 100%;
    height: 2px;
    z-index: 9;
    background: var(--primary);
    transition: all 0.3s ease;
}
.menu-toggle .bar:nth-child(1) {
    width: 60%;
}
.menu-toggle .bar:nth-child(3) {
    width: 60%;
}

.menu-toggle.active .bar {
    background: #fff;
    width: 100%;
}


.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.header-accordion .menu li {
    width: 260px;
    list-style: none;
    border-radius: 6px;
    padding: 16px 20px;
    transition: all 0.3s ease;
}

.header-accordion .menu li:hover {
    background-color: var(--primary);
}

/* Arrow */
.header-accordion h4::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

/* Rotate arrow when open */


.header-accordion {
    padding: 20px;
    border-top: 1px solid rgba(123, 123, 123, 0.16);
}

.header-accordion h4 {
    width: 300px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.header-accordion.active h4 {
    color: var(--primary);
}

.header-accordion.active h4::after {
    transform: rotate(225deg);
    border-right: 1px solid var(--primary);
    border-bottom: 1px solid var(--primary);
}

.menu-toggle .accordion-wrapper {
    position: absolute;
    top: -30px;
    left: -40px;
    visibility: hidden;
    transform: translateX(-100%);
    transition: all 0.3s ease;
    background-color: #1f1f1f;
    padding: 20px;
    padding-top: 80px;
    border-radius: 6px;
    opacity: 0;
    height: 100vh;
}

/* Show menu */
.menu-toggle.active .accordion-wrapper {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    background-color: #2A2A2A;
}

.menu-toggle::after {
    content: 'MENU';
    position: absolute;
    left: 260px;

    opacity: 0;
    transform: translateX(-5px);

    transition:
        opacity 0.15s ease,
        transform 0.15s ease;
}

.menu-toggle.active::after {
    opacity: 1;
    transform: translateX(0);
}

.header-accordion .menu {
    position: absolute;
    top: 0;
    left: 100%;
    width: 360px;
    background-color: var(--black);
    padding: 20px;
    padding-top: 60px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    height: 100vh;
    transform: translateY(-10px);
    z-index: 1001;
}

.header-accordion .menu::after {
    content: "";
    position: absolute;
    top: 0;
    right: -200px;
    width: 200px;
    height: 100%;
    background: inherit;
    clip-path: polygon(
        0 0,
        100% 0,
        0 100%
    );
}

/* Open state */
.header-accordion.active .menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.accordion-wrapper .header-accordion:nth-last-child(2) h4::after,
.header-accordion h4:has(a)::after {
    display: none;
}

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

/* Header Socials */

.site-header .header-socials{
    display: flex;
    gap: 15px;
}

.site-header .header-socials a{
    padding: 6px;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-header .header-socials a img{
    height: 20px;
    width: 20px;
}

@media (max-width: 992px) {
    body.menu-open {
        position: static;
        width: auto;
        overflow: visible;
    }

    .header-accordion .menu::after {
        display: none;
    }

    .header-accordion {
        height: 60px;
        transition: all 0.3s ease;
    }

    .header-accordion.active {
        height: auto;
    }

    .menu-toggle .accordion-wrapper {
        width: max-content;
        height: auto;
        left: -15px;
    }

    .header-accordion .menu {
        position: unset;
        width: 100%;
        padding: 0;
        height: auto;
    }

    .header-accordion h4 {
        width: 100%;
    }

    .header-accordion .menu li{
        width: 100%;
    }

    .site-header .header-socials {
        justify-content: center;
    }
}

@media (max-width: 425px) {
    .menu-toggle .accordion-wrapper {
        left: -30px;
    }

    .menu-toggle::after {
        left: 230px;
    }

    .site-header .vh-btn-outline a{
        display: none;
    }
}