header {
	padding: 1.5em 0;
}

#brand {
    display: flex;
    justify-content: center;
}

#nav {
	padding: 1.5em 0;
}

#nav .menu_nav {
	display: flex;
    gap: 1.3em;
    list-style: none;
}

#nav .menu_link {
	padding: 0 1em;
}

#nav .menu_link a {
    text-decoration: none;
    color: #51284F;
    font-weight: 500;
}

.nav_toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
}

.nav_toggle span {
    width: 25px;
    height: 3px;
    background: #51284F;
    margin: 0.2em 0;
    transition: 0.6s;
}

@media (max-width: 966px) {
	.nav {
		justify-content: center;
	}

    .nav_toggle {
        display: flex;
		justify-content: center;
		align-items: center;
		width: 40px;
		height: 40px;
		position: relative;
		z-index: 999;
    }

    .menu_nav {
        position: absolute;
		z-index: 99;
        top: 60px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.7s ease, opacity 0.7s ease;
		border-bottom: solid 1.5px #51284F;
		padding-bottom: 3em;
    }

    .menu_nav.active {
        max-height: 500px;
        opacity: 1;
        padding: 20px 0;
    }

	.nav_toggle span {
		position: absolute;
		width: 24px;
		height: 2px;
		background: #5a2d4f;
		transition: all 0.3s ease;
	}

	.nav_toggle span:nth-child(1) {
		transform: translateY(-6px);
	}

	.nav_toggle span:nth-child(2) {
		transform: translateY(0);
	}

	.nav_toggle span:nth-child(3) {
		transform: translateY(6px);
	}

	.nav_toggle.open span:nth-child(1) {
		transform: rotate(45deg);
	}

	.nav_toggle.open span:nth-child(2) {
		opacity: 0;
	}

	.nav_toggle.open span:nth-child(3) {
		transform: rotate(-45deg);
}
}