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

Modules - reusable parts of our design

-------------------------------- */
.cd-img-replace {
  /* replace text with a background-image */
  display: inline-block;
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
}

.overflow-hidden {
  overflow: hidden;
}

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

Main components 

-------------------------------- */
.site-wrapper {
  /* set a min-height and a z-index to be sure that the main element completely covers the lateral menu */
  min-height: 100%;
  position: relative;
  z-index: 2;
  /* Force Hardware Acceleration in WebKit */
  -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  -webkit-transition-property: -webkit-transform;
  -moz-transition-property: -moz-transform;
  transition-property: transform;
  -webkit-transition-duration: 0.4s;
  -moz-transition-duration: 0.4s;
  transition-duration: 0.4s;
}
.site-wrapper.lateral-menu-is-open {
  /* translate to show the lateral menu - all content needs to be put in the .site-wrapper to translate*/
  -webkit-transform: translateX(-260px);
  -moz-transform: translateX(-260px);
  -ms-transform: translateX(-260px);
  -o-transform: translateX(-260px);
  transform: translateX(-260px);
}
header {
  height: 88px;
  width: 100%;
  background: url('../images/bg.gif') repeat-x;
  z-index: 200;
  font-family: 'Oswald', Helvetica, sans-serif;
  /* Force Hardware Acceleration in WebKit */
  -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  -webkit-transition-property: -webkit-transform;
  -moz-transition-property: -moz-transform;
  transition-property: transform;
  -webkit-transition-duration: 0.4s;
  -moz-transition-duration: 0.4s;
  transition-duration: 0.4s;
}
header.lateral-menu-is-open {
  /* translate to show the lateral menu */
  -webkit-transform: translateX(-260px);
  -moz-transform: translateX(-260px);
  -ms-transform: translateX(-260px);
  -o-transform: translateX(-260px);
  transform: translateX(-260px);
}
header.is-fixed {
  position: fixed;
  top: 26px;
}
@media only screen and (max-width: 1000px) {
  header.is-fixed {
    top: 0;
  }
}
header .container {
  padding: 0;
}

#logo {
  display: block;
  float: left;
  margin: 12px 0 0 20px;
}
#logo img {
  width: 230px;
  display: block;
}
@media only screen and (max-width: 1000px) {
  #logo img {
    width: 140px;
  }
}
@media only screen and (min-width: 1000px) {
  #logo {
    margin: 4px 0px 0px -10px;
  }
}

#top-nav {
  display: none;
}
@media only screen and (min-width: 1000px) {
  #top-nav {
    display: block;
    float: right;
  }
}
#top-nav ul li {
  display: inline-block;
}
#menu-trigger {
  float: right;
}
@media only screen and (max-width: 1000px) {
  #menu-trigger {
    position: absolute;
    top: 0;
    right: 0;
  }
}

#top-nav a, #menu-trigger {
  display: block;
  color: #878787;
  font-size: 18px;
  text-transform: uppercase;
  height: 88px;
  line-height: 80px;
  border-top: 4px solid #DADADA;
  background: url('../images/menu-icon.svg') 20px 50% no-repeat;
  background-size: 20px 20px;
  padding: 0px 25px 0px 45px;
}
#top-nav a:hover, #menu-trigger:hover {
  background-color: rgba(0, 0, 0, 0.04);
  color: #333;
  text-decoration: none;
}
#top-nav a.is-active {
  border-top: 4px solid #000;
  color: #ffffff;
  background: #cb1818 url('../images/menu-icon-active.svg') 20px 50% no-repeat;
  background-size: 20px 20px;
  padding: 0px 25px 0px 45px;
}

#cd-lateral-nav {
  font-weight: 600;
  font-size: 16px;
  position: fixed;
  height: 100%;
  right: 0;
  top: 0;
  visibility: hidden;
  /* the secondary navigation is covered by the main element */
  z-index: 1;
  width: 260px;
  background-color: #242e30;
  overflow-y: auto;
  /* Force Hardware Acceleration in WebKit */
  -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  -webkit-transition: -webkit-transform .4s 0s, visibility 0s .4s;
  -moz-transition: -moz-transform .4s 0s, visibility 0s .4s;
  transition: transform .4s 0s, visibility 0s .4s;
  /* this creates the subtle slide in animation of the navigation */
  -webkit-transform: translateX(280px);
  -moz-transform: translateX(280px);
  -ms-transform: translateX(280px);
  -o-transform: translateX(280px);
  transform: translateX(280px);
  z-index: 900;
}
#cd-lateral-nav .cd-navigation {
  margin: 10px 0 16px;
}
#cd-lateral-nav .cd-navigation > li > a {
  text-transform: uppercase;
}
#cd-lateral-nav .sub-menu {
  padding: 0 10px 20px 15px;
  display: none;
}
#cd-lateral-nav .sub-menu a {
  font-size: 12px;
}
#cd-lateral-nav .sub-menu a::before {
  content: '- ';
}
#cd-lateral-nav a {
  display: block;
  line-height: 2em;
  padding: 0 16px 0 32px;
  color: #aab5b7;
  text-transform: none;
}
#cd-lateral-nav a.current {
  background-color: #3a4a4d;
  color: #FFF;
}
.no-touch #cd-lateral-nav a:hover {
  color: #FFF;
}
@media only screen and (min-width: 1000px) {
  #cd-lateral-nav .cd-navigation {
    margin: 20px 0;
  }
}
#cd-lateral-nav.lateral-menu-is-open {
  -webkit-transform: translateX(0);
  -moz-transform: translateX(0);
  -ms-transform: translateX(0);
  -o-transform: translateX(0);
  transform: translateX(0);
  visibility: visible;
  -webkit-transition: -webkit-transform .4s 0s, visibility 0s 0s;
  -moz-transition: -moz-transform .4s 0s, visibility 0s 0s;
  transition: transform .4s 0s, visibility 0s 0s;
  /* smooth the scrolling on touch devices - webkit browsers */
  -webkit-overflow-scrolling: touch;
}

/* style menu items which have a submenu  */
#cd-lateral-nav .item-has-children > a {
  position: relative;
  font-weight: 600;
  /* this is the right arrow to show that the item has a submenu  */
}
#cd-lateral-nav .item-has-children > a::after {
  content: '';
  display: block;
  height: 11px;
  width: 8px;
  position: absolute;
  top: 50%;
  bottom: auto;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
  right: 1em;
  background: url("../images/cd-arrow.svg") no-repeat center center;
  background-size: 8px 11px;
  -webkit-transition-property: -webkit-transform;
  -moz-transition-property: -moz-transform;
  transition-property: transform;
  -webkit-transition-duration: 0.2s;
  -moz-transition-duration: 0.2s;
  transition-duration: 0.2s;
}
#cd-lateral-nav .item-has-children > a.submenu-open::after {
  -webkit-transform: translateY(-50%) rotate(90deg);
  -moz-transform: translateY(-50%) rotate(90deg);
  -ms-transform: translateY(-50%) rotate(90deg);
  -o-transform: translateY(-50%) rotate(90deg);
  transform: translateY(-50%) rotate(90deg);
}
