
*,*:before,*:after {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;	box-sizing: border-box;}
body._lock {overflow: hidden;}

/*-------------------------*/

.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 10;
	background-color: none;
}

.header.alt{
	background-color: rgba(255, 255, 255, 0.9);
}

/*
header:not(.hero-invisible) .header .menu-light {
	background-color: #ccc;
}
*/


.header__container {
	padding: 0 80px;
	max-width: 100%;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 80px;
}


    @media only screen and (max-width: 1400px) {
    .header__container {padding: 0 40px;    }  }
    @media only screen and (max-width: 768px) {
    .header__container {padding: 0 20px;    }  }

.header__menu {}
.menu {}
.menu__icon {display: none;}
.menu__body {}
.menu__list {}

.menu__list > li {
	position: relative;
	margin-left: 20px;
    margin-top:0;
    list-style: none;
}
.menu__list > li:first-child {}
.menu__link {
	color: #2d3452;
	font-size: 16px;
    letter-spacing: 0.03em;
}
.menu__list > li a {-webkit-transition: all 200ms ease;
    -moz-transition: all 200ms ease;
    -o-transition: all 200ms ease;
    -ms-transition: all 200ms ease;
    transition: all 200ms ease;
}
.menu__list > li a:hover{
	color: #2d3452;-webkit-transition: all 200ms ease;
    -moz-transition: all 200ms ease;
    -o-transition: all 200ms ease;
    -ms-transition: all 200ms ease;
    transition: all 200ms ease;
    
}


.menu__sub-list {
	position: absolute;
	top: 100%;
	right: 0;
	background-color: #2d3452;
	padding: 15px;
	min-width: 200px;
}
.menu__sub-list li {
	margin-bottom: 10px;
}
.menu__sub-list li:last-child {
	margin-bottom: 0px;
}
.menu__sub-link {
	color: #fff;
}
.menu__sub-link:hover {
	text-decoration: underline;
}
.menu__arrow {
	display: none;
}
/*-------------------------*/
body._pc .menu__list > li:hover .menu__sub-list {
	opacity: 1;
	visibility: visible;
	transform: translate(0, 0);
	pointer-events: all;
}
body._touch .menu__list > li {
	display: flex;
	align-items: center;
}
body._touch .menu__link {
	flex: 1 1 auto;
}
body._touch .menu__arrow {
	display: block;
	width: 0;
	height: 0;
	margin-left: 5px;
	transition: transform 0.3s ease 0s;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 10px solid #fff;
}

body._touch .menu__list > li._active .menu__sub-list {
	opacity: 1;
	visibility: visible;
	transform: translate(0, 0);
	pointer-events: all;
}
body._touch .menu__list > li._active .menu__arrow {
	transform: rotate(180deg);
}
/*-------------------------*/
@media (min-width: 767px) {
	.menu__list {
		display: flex;
		align-items: center;
	}
	.menu__list > li {
		/* padding from link to sub links area to avoid breaking hover on mouse move */
		padding: 10px 0;
	}
	.menu__sub-list {
		transform: translate(0, 10px);
		opacity: 0;
		visibility: hidden;
		/* to avoid mistaken hover */
		pointer-events: none;
		transition: all 0.3s ease 0s;
	}
}

@media (max-width: 767px) {
	.menu__icon {
		z-index: 5;
		display: block;
		position: relative;
		width: 30px;
		height: 18px;
		cursor: pointer;
	}
	.menu__icon span,
	.menu__icon::before,
	.menu__icon::after {
		left: 0;
		position: absolute;
		height: 10%;
		width: 100%;
		transition: all 0.3s ease 0s;
		background-color: #000;
	}
    
    header:not(.hero-invisible) .menu-light .menu__icon span,
	header:not(.hero-invisible) .menu-light .menu__icon::before,
	header:not(.hero-invisible) .menu-light .menu__icon::after {
		background-color: #fff;
	}
    
    
	.menu__icon::before,
	.menu__icon::after {
		content: '';
	}
	.menu__icon::before {
		top: 0;
	}
	.menu__icon::after {
		bottom: 0;
	}
	.menu__icon span {
		top: 50%;
		transform: scale(1) translate(0, -50%);
	}

	.menu__icon._active span {
		transform: scale(0) translate(0, -50%);
	}
	.menu__icon._active::before {
		top: 50%;
		transform: rotate(-45deg) translate(0, -50%);
	}
	.menu__icon._active::after {
		bottom: 50%;
		transform: rotate(45deg) translate(0, 50%);
	}

	.menu__body {
		position: fixed;
		top: 0;
		left: -100%;
		width: 100%;
		height: 100%;
		background-color: rgba(255, 255, 255, 0.9);
		padding: 100px 30px 30px 30px;
		transition: left 0.3s ease 0s;
		/* for scroll on menu */
		overflow: auto;
	}
    
    header:not(.hero-invisible) .menu-light .menu__body {
		background-color: rgba(45, 52, 82, 0.9);
	}
    
	.menu__body._active {
		/* use left and not transform/translate because it scroll the .menu__body::before when u scroll menu */
		left: 0;
	}
	.menu__body::before {
		content: '';
		position: fixed;
		width: 100%;
		top: 0;
		left: 0;
		height: 75px;
		background-color: transparent;
		z-index: 2;
	}
	.menu__list > li {
		flex-wrap: wrap;
		margin-bottom: 30px;
        text-align: right;
	}
	.menu__list > li:last-child {
		margin-bottom: 0;
	}
	.menu__list > li._active .menu__sub-list {
		display: block;
	}
	.menu__link {
		font-size: 24px;
        color:#000;
	}
    header:not(.hero-invisible) .menu-light .menu__link {
        color:#fff;
	}
    
	.menu__sub-list {
		position: relative;
		background-color: #fff;
		flex: 1 1 100%;
		margin-top: 20px;
		display: none;
	}
	.menu__sub-link {
		font-size: 20px;
		color: #000;
	}
}
