/*----------- menu-icon ----------------*/


.nav-all ul{
	list-style: none;
	margin:0;
	padding:0;
}

/*nav-all*/


.nav-all .nav-menu{
	padding: 0 15px;
}
.nav-all .menu > .menu-item{
	display: inline-block;
	margin-left: 30px;
	position: relative;
}

.nav-all .menu > .menu-item > a{
	display: block;
	padding: 12px 0;
	font-size: 1rem;
	color: var(--beige);
	transition: all 0.3s ease;
  letter-spacing: 1;
}

.nav-all .menu > .menu-item > a .plus{
	display: inline-block;
	height: 12px;
	width: 12px;
	position: absolute;
	pointer-events: none;
  right: 30px;
  top: 30px;
}
.nav-all .menu > .menu-item > a .plus:before,
.nav-all .menu > .menu-item > a .plus:after{
	content:'';
	position: absolute;
	box-sizing: border-box;
	left: 50%;
	top:50%;
	background-color: var(--beige);
	height: 2px;
	width: 100%;
	transform: translate(-50%,-50%);
	transition: all 0.3s ease;
}
.nav-all .menu > .menu-item:hover > a .plus:before,
.nav-all .menu > .menu-item:hover > a .plus:after{
   background-color: var(--white);
}
.nav-all .menu > .menu-item > a .plus:after{
   transform: translate(-50%,-50%) rotate(-90deg);
}
.nav-all .menu > .menu-item > .sub-menu > .menu-item > a:hover,
.nav-all .menu > .menu-item:hover > a{
	color: var(--white);
}
.nav-all .menu > .menu-item > .sub-menu > .menu-item.activ > a {
		color:var(--white);
}
.nav-all .menu > .menu-item > .sub-menu{
	width: 220px;
	position: absolute;
	left:0;
	top:100%;
	background-color: var(--beige);
	padding: 10px 0;
	transform: translateY(10px);
	transition: all 0.3s ease;
  transition-timing-function: cubic-bezier(0.62, 0.04, 0.82, 0.13);
	opacity:0;
	visibility: hidden;
  z-index: 1;
}


@media(min-width: 992px){
  .nav-all .menu > .menu-item > .sub-menu{
    transition-timing-function:initial;
  }
.nav-all .menu > .menu-item-has-children:hover > .sub-menu{
	transform: translateY(0);
	opacity: 1;
	visibility: visible;
  z-index: 999999;
 }
 .nav-all .menu > .menu-item-has-children:hover > a .plus:after{
    transform: translate(-50%,-50%) rotate(0deg);
 }
}
.nav-all .menu > .menu-item > .sub-menu > .menu-item{
	display: block;
}
.nav-all .menu > .menu-item > .sub-menu > .menu-item > a{
	display: block;
	padding: 10px 20px;
	font-size: 16px;
	font-weight: 600;
	color: var(--main-text-color);
	transition: all 0.3s ease;
	text-transform: capitalize;
}
.nav-all .menu > .menu-item > .sub-menu > .menu-item.activ > a {
		color: var(--brown);
}

/*######## BURGER MENU ###########*/

.open-nav-menu{ display: block;overflow: hidden; margin: 0; padding: 0; width: 55px;
    height: 35px; font-size: 0; text-indent: -99999px; appearance:none; box-shadow: none; border-radius: none;
    border:none; cursor: pointer; transition: background 0.3s; background-color: transparent;z-index: 9999999;}

  .open-nav-menu:focus{ outline: none;}
  .open-nav-menu span{ display: block; position: absolute; top: 15px; left: 0; right: 0; height: 4px; background: #fff;}
  .open-nav-menu span::before,
  .open-nav-menu span::after{ position: absolute; display: block; left: 0; width: 100%; height: 4px;
  background-color: #fff; content: "";}
  .open-nav-menu span::before{top: -14px}
  .open-nav-menu span::after{bottom: -14px}

  .open-nav-menu-x span{ transition: background 0s 0.3s;}
  .open-nav-menu-x span::before,
  .open-nav-menu-x span::after{ transition-duration: 0.3s, 0.3s; transition-delay: 0.3s, 0s;}
  .open-nav-menu-x span::before{ transition-property: top, transform;}
  .open-nav-menu-x span::after{ transition-property: bottom, transform;}

  .open-nav-menu-x.is-active span{ background: none; transform: rotate(180deg);}
  .open-nav-menu-x.is-active span::before{top: 0; transform: rotate(220deg);}
  .open-nav-menu-x.is-active span::after{bottom: 0; transform: rotate(-220deg);}
  .open-nav-menu-x.is-active span::before,
  .open-nav-menu-x.is-active span::after{transition-delay: 0s, 0.3s;}

  button.open-nav-menu.open-nav-menu-x.close-nav-menu{
    transform: translate(0, 0);
    transition: all 0.4s;
    transition-timing-function: cubic-bezier(0.62, 0.04, 0.82, 0.13);
  }
  button.open-nav-menu.open-nav-menu-x.close-nav-menu.is-active {
    top: 30px;
    right: 3%;
    position: fixed;
  }
  .nav-all .close-nav-menu{
  	cursor: pointer;
  	display: none;
  }




.nav-all .menu-overlay{
	position: fixed;
	z-index: 999;
	background-color: rgba(0,0,0,0.5);
	left:0;
	top:0;
	height: 100%;
	width: 100%;
	visibility: hidden;
	opacity:0;
	transition: all 0.3s ease;
}
i.plus {
  display: none !important;
}

/* responsive */
@media screen and (min-width: 991px){

  li.menu-item.activ a{
    border-bottom: 1px solid var(--beige);
  }
}


@media(max-width: 991px){

  .nav-all .menu > .menu-item > a {
    padding: 20px 30px;
    font-size: 1.5rem;
  }
  i.plus {
    display: block !important;
  }
	.nav-all .menu-overlay.active{
	visibility: visible;
	opacity: 1;
}
	.nav-all .nav-menu{
		position: fixed;
		right: -380px;
		visibility: hidden;
		width: 380px;
		height: 100%;
		top:0;
    text-align: center;
		overflow-y: auto;
		background-color:var(--brown);;
		z-index: 1000;
		padding: 90px 0 15px;

    transform: translate(0, 0);
    transition: all 0.4s;
    transition-timing-function: cubic-bezier(0.62, 0.04, 0.82, 0.13);
	}
	.nav-all .nav-menu.open{
		visibility: visible;
		right: 0px;
	}
	.nav-all .menu > .menu-item{
		display: block;
		margin:0;
	}
	.nav-all .menu > .menu-item-has-children > a{
		justify-content: space-between;
		align-items: center;
	}
	.nav-all .menu > .menu-item > a{
		color: #ffffff;
		padding: 20px 30px;
	}
	.nav-all .menu > .menu-item:first-child > a{
	    border-top: 1px solid rgba(255,255,255,.1);
	}
	.nav-all .menu > .menu-item > a .plus:before,
	.nav-all .menu > .menu-item > a .plus:after{
		background-color: #ffffff;
	}
	.nav-all .menu > .menu-item-has-children.active > a .plus:after{
        transform: translate(-50%,-50%) rotate(0deg);
	}
	.nav-all .menu > .menu-item > .sub-menu{
		width: 100%;
		position: relative;
		opacity: 1;
		visibility: visible;
		border:none;
		background-color: transparent;
		box-shadow: none;
		transform: translateY(0px);
		padding: 0px;
		left: auto;
		top:auto;
		max-height: 0;
		overflow: hidden;
	}
	.nav-all .menu > .menu-item > .sub-menu > .menu-item > a{
		padding: 12px 45px;
		color: #ffffff;
	}

	.nav-all .menu > .menu-item > .sub-menu > .menu-item.activ > a {
			color: var(--white);
	}

	.nav-all .open-nav-menu{
		display: flex;
	}
}

@media screen and (max-width: 500px){
  .nav-all .nav-menu{
    right: -100%;
    width: 100%;
  }

}
