
/****************************************
* All headers
****************************************/

header {
  width: 100%;
  box-shadow: none;
  position: absolute;
  z-index: 10;
}

/* Main and billboard box are effected by overlapping header with the billboard */
main {
  padding-top: 160px;
}

.billboard .box {
  padding-top: 51px;
}

header .wrapper {
  background:  #FFFFFF ;
  background-repeat: ;
  background-size: ;
  background-position: ;
}

header > .wrapper > .grid {
  grid-template-columns: auto auto;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

a#logo img {
  width: auto;
  max-height: 90px;
  margin: 0;
}

a#logo .no-logo {
  width: 90px;
  height: 70px;
  background-color: grey;
}

header p,
header li {
  color: #000000;
  font-size: 16px;
  font-weight: normal;
  margin-bottom: 0;
}

nav {
  background: #1b2e71 ;
}

nav .grid {
  padding-top: 0;
  padding-bottom: 0;
}

nav ul > li > a {
  border: none;
  border-radius: 0px;
  padding: 1rem;
  background: #1b2e71;
  color: #ffffff;
}

nav ul > li {
  color: #ffffff;
  font: normal bold 18px/1em 'Roboto';
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0;
}

nav ul > li > a:hover,
nav ul > li > a.active {
  color: #ffffff;
  background-color: #008dd4;
  border: ;
}

nav ul {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 0;
  flex-grow: 1;
}

nav ul > li {
  flex-grow: 1;
}

header ul.subnavigation {
  text-align: right;
}

header ul.subnavigation > li {
  font-size: 16px;
  line-height: 1.5em;
  font-weight: normal;
  text-transform: none;
  letter-spacing: 0px;
}

header ul.subnavigation > li > a {
  color: #EE4923;
}

header ul.subnavigation > li > a:hover {
  color: #008dd4;
}

header ul.subnavigation li {
  display: inline-block;
}

header ul.subnavigation li:after {
  display: inline-block;
  margin-left: 5px;
  content: ' \00b7';
  font-weight: bold;
}

header ul.subnavigation li:last-child:after {
  content: none;
}

header ul.callout {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  margin-bottom: 1.75rem;
  font-size: 0;
  text-align: right;
  white-space: nowrap;
}

header ul.callout > li {
  display: inline-block;
  align-self: center;
  margin-right: 1rem;
}

header ul.callout > li:first-of-type {
  margin-right: 2rem;
}

header ul.callout > li:last-of-type {
  margin-right: 0;
}

header .callout a {
  color: inherit;
}

header .callout .button {
  padding: 0.7rem;
  color: #FFFFFF;
}

header nav ul > li > a {
  display: inline-block;
  padding: 1rem 0;
  width: 100%;
  text-align: center;
  transition: 0.3s all;
}

/****************************************
* Mobile
****************************************/

@media(max-width: 1007px) {

  body {
    padding-top: 91px; /* Height of header */
  }
/* Main and billboard box are effected by overlapping header with the billboard */
  main {
    padding-top: 0;
  }

  .billboard .box {
    padding-top: 0;
  }

  header {
    position: relative;
  }

  header > .wrapper > .grid {
    padding: 0 0 0 1rem;
  }

  header ul.callout > li {
    display: block;
    margin-right: 0;
  }

  header ul.callout .button {
    padding: 1rem 0;
  }

  header {
    position: fixed;
    padding: 0.5rem;
    height: 91px;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.15);
    z-index: 99;
  }

  header .logo-side {
    flex: 0 0 100%;
    max-width: 100%;
  }

  header a#logo img {
    height: 75px !important;
  }

  /****************************************
  *  Navigation
  ****************************************/

  #nav-toggle {
    position: fixed;
    padding: 1rem;
    top: 1rem;
    right: 1rem;
    border-radius: 3px;
    color: #ffffff;
    background: #1b2e71 ;
    font: normal bold 16px/1em 'Roboto';
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    width: 49px;
    text-align: center;
  }

  nav {
    position: relative;
    top: 20px; /* Same as mobile header height */
    width: calc(100vw - 2rem);
    max-height: 0;
    overflow: hidden;
  }

  nav.off {
    max-height: 0 !important;
  }

  nav.animatable {
    transition: max-height 0.5s ease-out;
  }

  nav div.navigation {
    padding: 1rem;
    max-height: calc(100vh - 91px); /* 91px = mobile header height */
    overflow: auto;
  }

  nav div.navigation ul {
    display: block;
  }

  nav div.navigation ul > li {
    margin-bottom: .5rem;
  }

  nav ul > li {
    background-color: transparent;
  }

  nav ul > li > a {
    padding: 0.75rem;
    text-align: center;
  }

  nav div.mobile > ul > li {
    background-color: transparent;
  }

  nav div.navigation ul > li > a {
    background-color: #EE4923;
    color: #FFFFFF;
    border: 1px solid #EE4923;
    border-radius: 0px;
  }

  /****************************************
  * Sub Navigation
  ****************************************/

  nav div.mobile > ul.subnavigation {
    text-align: center;
  }

  nav div.mobile > ul.subnavigation > li,
  nav div.mobile > ul.subnavigation > li > a {
    background-color: transparent;
  }

  nav div.mobile > ul.subnavigation > li > a {
    padding: 0.5rem 0;
    width: auto;
    font-size: 15px;
    text-transform: capitalize;
  }

  nav {
    background: #1b2e71;
  }

  nav ul > li,
  nav ul > li > a,
  nav ul > li > a.button {
    font-size: 16px;
  }

  nav div.mobile > ul.subnavigation > li > a {
    color: #EE4923;
    border: none;
  }
}

header .icon {
  display: flex;
}

header .icon svg {
  width: 45px;
  height: 45px;
  fill: #1b2e71;
}
