#nav,
#nav ul,
#nav ul li,
#nav ul li a,
#menu-button {
    margin: 0;
    padding: 0;
    border: 0;
    list-style: none;
    line-height: 1;
    display: block;
    position: relative;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    letter-spacing: 0;
	outline: none;
}

#nav:after,
#nav > ul:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}

#menu-button {
    display: none;
}

/* //desktop first */

#nav {
    line-height: 1em;
	margin-top: 0;
	position: absolute;
	left: 0%;
	right: 0%;
	/* desktop nav position */
	bottom: 3em;
	width: auto;
	z-index: 100;
	margin: 0 auto;
	text-align: center;
}

#nav .back,
#nav .feedback,
#nav .contact,
#nav .search {
	display:none;
}

#menu-line {
    position: absolute;
    left: 0;
    height: 4px;
    background: #a50c07;
    -webkit-transition: all 0.25s ease-out;
    -moz-transition: all 0.25s ease-out;
    -ms-transition: all 0.25s ease-out;
    -o-transition: all 0.25s ease-out;
    transition: all 0.25s ease-out;
}

#nav > ul > li {
	display: inline-block;
}

#nav > ul > li div.nav-description {
    font-size: 1em;
	text-transform:uppercase;
	color: #FBB03B;
	padding: 0px 0 0px 10px;
	line-height: 3em;
	display:block;
}

#nav.align-center > ul {
    font-size: 0;
    text-align: center;
}
#nav.align-center > ul > li {
    display: inline-block;
    float: none;
}
#nav.align-center ul ul {
    text-align: left;
}
#nav.align-right > ul > li {
    float: right;
}
#nav.align-right ul ul {
    text-align: right;
}

#nav > ul > li > a {
	/*Color*/
    color: #0d0d0d;
    xfont-family: "Open Sans",sans-serif;
    font-size: 2.5em;
    font-size: 0.938em;
    font-weight: normal;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s ease 0s;
    display: inline-block;
	padding-bottom: .5em;
	margin-left: 2em;
	outline: none;
}

#nav > ul > li:first-child  > a{
    margin-left:0;
}

#nav > ul > li:hover > a,
#nav > ul > li.current > a {
    color: #968457;
}
/*#nav > ul > li.has-sub > a {
    padding-right: 25px;
}
#nav > ul > li.has-sub > a::after {
    position: absolute;
    top: 21px;
    right: 10px;
    width: 4px;
    height: 4px;
    border-bottom: 1px solid #717171;
    border-right: 1px solid #717171;
    content: "";
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
    -webkit-transition: border-color 0.2s ease;
    -moz-transition: border-color 0.2s ease;
    -ms-transition: border-color 0.2s ease;
    -o-transition: border-color 0.2s ease;
    transition: border-color 0.2s ease;
}*/
#nav > ul > li.has-sub:hover > a::after {
    border-color: #a50c07;
}



/*
#nav ul ul {
    position: absolute;
	left: -9999px;
}
*/

#nav li > div {
	position: absolute;
	left: -9999px;
	xleft:auto;
	xheight: 400px;
	background: white;
	padding: 5px;
	border: 1px solid black;
	overflow:hidden;
	text-align: left;
}

#nav li > div:before {
	/*
	content:' ';
	display: block;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0 25px 22px 25px;
	border-color: transparent transparent #a50c07 transparent;
	margin-top: -28px;
	margin-left: 20%;
	margin-right: auto;
	*/
}

/*
#nav li:hover > ul {
    left: auto;
}
*/

#nav li:hover > div {
    left: auto;
	height: auto;
}

#nav.align-right li:hover > ul {
    right: 0;
}

/* 3rd level */
#nav ul ul ul {
  
}

#nav ul ul ul li {
	margin-left: 1.2em;
	margin-bottom: .2em;
}

#nav ul ul ul li a{
	background: black;
	display: inline;
	padding: .1em;
	color: white;
}

#nav ul ul ul li a:hover {
	color: #A49261;
}

/* 3rd level */

#nav ul li:hover ul > li {
    height: auto;
}

#nav ul ul li a {
    padding: 10px 20px;
    width: 160px;
    width: 260px;
    font-size: 14px;
    background: #fff;
    text-decoration: none;
	text-transform: uppercase;
    color: #a4935f;
	outline: none;
	line-height: 1.4em;
    -webkit-transition: color .2s ease;
    -moz-transition: color .2s ease;
    -ms-transition: color .2s ease;
    -o-transition: color .2s ease;
    transition: color .2s ease;
}

#nav ul ul li:last-child a {
	border-bottom: none;
}

#nav ul ul li:hover > a,
#nav ul ul li a:hover {
    color: black;
}

#nav ul ul li.has-sub > a::after {
    position: absolute;
    top: 13px;
    right: 10px;
    width: 4px;
    height: 4px;
    border-bottom: 1px solid #dddddd;
    border-right: 1px solid #dddddd;
    content: "";
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
    -webkit-transition: border-color 0.2s ease;
    -moz-transition: border-color 0.2s ease;
    -ms-transition: border-color 0.2s ease;
    -o-transition: border-color 0.2s ease;
    transition: border-color 0.2s ease;
}
#nav.align-right ul ul li.has-sub > a::after {
    right: auto;
    left: 10px;
    border-bottom: 0;
    border-right: 0;
    border-top: 1px solid #dddddd;
    border-left: 1px solid #dddddd;
}
#nav ul ul li.has-sub:hover > a::after {
    border-color: #ffffff;
}

#nav .nav-item-social  {
  display:none;
}

#meta > a:hover {
   color: #A4935F;
}


@media all and (max-width: 767px), only screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 900px), only screen and (min--moz-device-pixel-ratio: 2) and (max-width: 900px), only screen and (-o-min-device-pixel-ratio: 2/1) and (max-width: 900px), only screen and (min-device-pixel-ratio: 2) and (max-width: 900px), only screen and (min-resolution: 192dpi) and (max-width: 900px), only screen and (min-resolution: 2dppx) and (max-width: 900px) {
/* smartphome */ 

  #nav {
        width: 100%;
		top:0;
		left: 0%;
		right: 0%;
		height: 100px;
		text-align: left;
    }
	
    #nav ul {
        margin-top: 100px;
		width: 100%;
		background: white;
		display:none;
    }
	 #nav > ul {
		 border-bottom: 3px solid #dddddd;
	 }
    #nav.align-center > ul,
    #nav.align-right ul ul {
        text-align: left;
    }
    #nav ul li,
    #nav ul ul li,
    #nav ul li > ul > li,
    #nav ul li:hover > ul > li {
        width: 100%;
        height: auto;
        border-top: 1px solid rgba(120, 120, 120, 0.15);
    }
	
	#nav ul li.back {
		background: black;
	}
	#nav ul li.back a{
		color: #fafffc;
	}
	
	#nav ul li.back a::before{
		content:" ";
		display:block;
		width: 35px;
		background: transparent url(../img/aback.png) 0px 17px no-repeat;
		height: 100%;
		float:left;
	}
	
	#nav ul li.search a::before{
		content:" ";
		display:block;
		width: 35px;
		background: transparent url(../img/asearch.png) 0px 14px no-repeat;
		height: 100%;
		float:left;
	}
	
	#nav ul li.has-sub {
		background: #ececec;
	}
	
	#nav ul li.has-sub li {
		background: #ececec;
	}
	
	#nav li > div {
		position: relative;
		width: 100%;
        height: auto;
		left:0;
		border:none;
		padding:0;
	}
	
	#nav li > div:before {
		display: none;
	}
	
	#nav li div.nav-description {
		position: absolute;
		left: -999px;
	}
		
    #nav ul li a,
    #nav ul ul li a {
        xwidth: 100%;
		height:55px;
        letter-spacing:0;
		border:none;
    }
    #nav > ul > li,
    #nav.align-center > ul > li,
    #nav.align-right > ul > li {
        float: none;
        display: block;
    }
    #nav ul ul li a {
        padding: 20px 20px 20px 30px;
        font-size: 14px;
        color: #717171;
        background: none;
        letter-spacing:0;
    }
	
	#nav ul ul ul li a:hover,
    #nav ul ul li:hover > a,
    #nav ul ul li a:hover {
        color: #0d0d0d;
    }
	
	  #nav ul ul ul li {
		  padding-left:40px;
		  background: #F7F7F7;
		  margin:0;
	  }
	  
	   #nav ul li.has-sub li {
		  background: #F7F7F7;  
	  }
	  
    #nav ul ul ul li a {
		background: #F7F7F7;
		color: #A4935F;
		font-size: 14px;
		padding: 20px 0px;
		display: block;

    }
	
    #nav ul ul,
    #nav ul ul ul {
        position: relative;
        left: 0;
        right: auto;
        width: 100%;
        margin: 0;
    }
    #nav > ul > li.has-sub > a::after,
    #nav ul ul li.has-sub > a::after {
        display: none;
    }
    #menu-line {
        display: none;
        overflow:hidden;
    }
    #menu-button {
        display: block;
    }
	
	#menu-button span {
		left: 84px;
		top: 41px;
		display:block;
		position: absolute;
		color: #fafffc;
        cursor: pointer;
        font-size: 18px;
        font-family: 'Open Sans', sans-serif;
        text-transform: uppercase;
		text-decoration: none;
        font-weight: 600;
        letter-spacing:0;
		float: left;
	}
	
    #menu-button::after {
        content: '';
        position: absolute;
        top: 38px;
        left: 30px;
        display: block;
        width: 35px;
        height: 5px;
        background: #fafffc;
    }
    #menu-button::before {
        content: '';
        position: absolute;
        top: 48px;
        left: 30px;
        display: block;
        width: 35px;
        height: 5px;
        border-top: 5px solid #fafffc;
        border-bottom: 5px solid #fafffc;
    }
    #nav .submenu-button {
        position: absolute;
        z-index: 10;
        right: 0;
        top: 0;
        display: block;
        border-left: 1px solid rgba(120, 120, 120, 0.15);
        height: 55px;
        width: 70px;
        cursor: pointer;
    }
    #nav .submenu-button::after {
        content: '';
        position: absolute;
        top: 20px;
        left: 33px;
        display: block;
        width: 3px;
        height: 18px;
        background: #717171;
        z-index: 99;	
    }
    #nav .submenu-button::before {
        content: '';
        position: absolute;
        left: 26px;
        top: 27px;
        display: block;
        width: 18px;
        height: 3px;
        background: #717171;
        z-index: 99;
    }
    #nav .submenu-button.submenu-opened:after {
        display: none;
    }

    #nav > ul > li > a {
		font-weight: bold;
		font-size: 1em;
        display: inline-block;
		line-height: 55px;		
    }
	
	#nav > ul > li:first-child  > a{
        margin-left: 1em;
   }
   
   #nav .nav-item-social  {
	   font-size: 1.5em;
	   line-height: 2em;
	   text-align: right;
	   margin:0;
	   display:inline-block;
   }
   
   
   #nav > ul > li.nav-item-social:first-child > a,
   #nav .nav-item-social a {
		line-height: inherit;
		margin: 0 1.4rem 0 0;
        color: black;		
	}
	
	#nav > ul > li.nav-item-social > a:hover {
	   color: #A4935F;
   }
}