/* Menu Basics */

#navigation {
	position: static;
	top: 0;
	right: 0;
	left: 0;

	z-index: 10;
	
	background: rgba(0,9,21,.8);
	font-family: 'Jost', sans-serif;
	background: rgba(0,29,41,1);
    background: rgb(0, 20, 29);
	color: #fff;
}

#navigation.scrolled {
	background: rgba(1,12,24,1);
	background: rgba(0,29,41,1);
	
}
	
.logo {
    flex: 5;
	-webkit-flex: 5;
}
	
#navigation .logo-nav {
	width: 100%;
	max-width: 280px;
	transition: .3s;
}

#navigation nav.scrolled .logo-nav {
	opacity: 1;
}

#navigation li.logo img {
	/*background-image: url('/images/legend-napa-valley-logo-color.png');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: 50% 50%;*/
	/*display: flex;*/
	max-width: 280px;
	transition: .5s;
	display: flex;			   
}



nav ul li {
	display: inline-block;
	padding: 0px;
	text-transform: uppercase;
	letter-spacing: .15em;
	font-size: .8em;
}



.menu,
.submenu {   
    list-style-type: none;
}

.item, .item a {
	color: #fff;
	transition: .1s;
}

#navigation.item.button {
    padding: 9px 5px;
}
.item:not(.button) a:hover,
.item a:hover::after {
    color: #c07d00;
}







/* Mobile menu */
.menu {
    display: flex;
	display: -webkit-flex;
    flex-wrap: wrap;
	-webkit-flex-wrap: wrap;
    justify-content: space-between;
	-webkit-justify-content: space-between;
    align-items: center;
	-webkit-align-items: center;
}
.menu li:not(.logo) a,
.menu li:not(.toggle) img {
    display: block;
    padding: 15px 20px;
}
.menu li:not(.logo) a i {
	padding-left: 5px;
}
.menu li.subitem a {
    padding: 15px;
}
.toggle {
    order: 1;
	-webkit-order: 1;
    font-size: 20px;
	
}
.toggle a, .toggle a:hover {
	color: #fff;
	cursor: pointer;
	
}

	
#navigation .item.button {
    order: 2;
	-webkit-order: 2;
}
#navigation .button a {
        /*background: #50bcd2;
		background:#002159;*/
		background: #ddd;
        /*border: 1px solid #002159;*/
		color: #333;
		
		border-radius: 30px;
		display: inline-block;
}
#navigation .button:not(.secondary) a:hover {
    background: #c07d00;
	color: #fff;
}

#navigation .menu li.button a {
    padding: 5px 10px;
}
		
#navigation .logo-nav {
	opacity: 1;
}
	
.item {
    order: 3;
	-webkit-order:3;
    width: 100%;
    text-align: center;
    display: none;
}
.active .item {
    display: block;
}
.button.secondary { /* divider between buttons and menu links */
    border-bottom: 1px #444 solid;
}


/* Submenu up from mobile screens */
.submenu {
    display: none;
}
.submenu-active .submenu {
   display: block;
}
.has-submenu i {
    font-size: 12px;
}
.has-submenu > a::after {
    font-family: "Font Awesome 5 Free";
    font-size: 12px;
    line-height: 16px;
    font-weight: 900; 
    content: "\f078";
    /*color: white;*/
    padding-left: 5px;
}
.subitem a {
    padding: 10px 15px;
}
.submenu-active {
    background-color: #fff;
    border-radius: 3px;
}



/* Tablet menu */
@media all and (min-width: 700px) {
    .menu {
        justify-content: center;
		-webkit-justify-content: center;
    }
    .logo {
        flex: 5;
		-webkit-flex: 5;
    }
    #navigation .item.button {
        width: auto;
        order: 1;
        display: block;
    }
    .toggle {
        flex: 1;
		-webkit-flex: 1;
        text-align: right;
        order: 2;
		-webkit-order: 2;
    }
    /* Button up from tablet screen */
    #navigation .menu li.button a {
        padding: 8px 13px;
        margin: 10px 15px;
    }
    #navigation .button a {
        /*background: #c07d00;*/
		background-color: rgba(200,200,200,.3);
        /*border: 1px solid #002159;*/
		color: #fff;
    }
	#navigation nav.scrolled .button a {
        /*background: #c07d00;*/
		background-color: rgba(255,255,255,.9);
        /*border: 1px solid #002159;*/
		color: #000;
    }
	#navigation .logo-nav {
		opacity: 1;
	}
    .button.secondary {
        border: 0;
    }
    .button.secondary a {
        background: transparent;
        border: 1px #0080ff solid;  
    }
    #navigation .button a:hover {
        text-decoration: none;
		background: #c07d00;
    }
    #navigation .button:not(.secondary) a:hover {
        background: #c07d00;
		color: #fff;
    }
}




/* Desktop menu */
@media all and (min-width: 960px) {
    .menu {
        align-items: center;     
        flex-wrap: nowrap;
        background: none;
		
    }
    .logo {
        order: 0;
    }
    .item {
        order: 1;
        position: relative;
        display: block; 
        width: auto;
		font-size: .67em;
    }
	
	#navigation {
		padding: 10px 20px;
	}
	

    #navigation .button {
        order: 2;
    }
    .submenu-active .submenu {
        display: block;
        position: absolute;
        left: 0;
        top: 68px;
        background: #fff;
    }
    .toggle {
        display: none;
    }
    .submenu-active {
        border-radius: 0;
    }
}