/****************************************
* Header
****************************************/

header {
  position: relative;
  z-index: 10;
  height: auto;
  background: #FFFFFF;
  box-shadow: 2px 2px 3px rgba(0,0,0,.3);
}

header .grid {
  padding-top: 1rem;
  padding-bottom: 0;
}

header a#logo img {
  margin: 0;
}

header .col-66 {
  display: flex;
  padding-bottom: 1rem;
}

/****************************************
* Top Bar
****************************************/

header .top-bar {
  background-color: #009355;
}

header .top-bar > .row {
  padding-top: 0;
  padding-bottom: 0;
}

header .top-bar .button {
  padding: .5rem;
  border-radius: inherit;
  border: inherit;
  background: #e1e1e1;
  font-family: Krub;
  color: #009355;
  font-size: inherit;
  line-height: inherit;
  font: normal bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: inherit;
}

header .top-bar .button:hover {
  background: #7a7a7a;
  color: #FFFFFF;
  border: inherit;
}

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

nav {
  background: transparent ;
}

nav ul {
  display: flex;
  flex-direction: row;
  justify-content: right;
  margin: 0;
}

nav ul > li:first-child {
  margin-left: auto;
}

nav ul > li a {
  font-family: Montserrat;
  color: #009355;
  font-size: 18px;
  font-weight: bold;
  line-height: 1em;
  text-transform: uppercase;
}

nav ul > li > a:hover {
  color: #00663b;
}

nav ul > li > a.button {
  border: none;
  border-radius: 0px;
  padding: 1rem;
  background: #009355;
}

nav ul > li > a.button:hover {
  background-color: #00663b;
}

nav ul > li > a[href^=tel] {
  color: #000000;
}

/****************************************
* Subnavigation
****************************************/

header .subnavigation {
  display: flex;
  justify-content: right;
}

header .subnavigation .button {
  padding: 0.7rem;
  color: #009355;
}

header .subnavigation > li > a {
  color: #FFFFFF;
  font-size: 16px;
  line-height: 1.5em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0px;
}

header .subnavigation > li > a:hover {
  color: #000000;
}

header .subnavigation > li:first-child {
  margin-right: auto;
}

header .subnavigation > li {
  display: flex;
  margin-bottom: 0;
  margin-right: 3rem;
}

header .subnavigation > li:last-child {
  margin-right: 0;
}

header .subnavigation > li > * {
  margin: auto;
  width: 100%;
}

header .subnavigation li::after {
  content: none;
}

nav {
  width: 100%;
  margin: auto;
}

nav ul > li {
  display: flex;
  margin-left: 2rem;
  margin-bottom: 0;
}

nav ul > li:first-child {
  margin-left: auto;
}

nav ul > li > a {
  width: auto;
  margin: auto;
  white-space: nowrap;
}

/****************************************
*
* Mobile - max-width:1007px;
*
****************************************/

@media (max-width: 1007px) {

  /****************************************
  * Header
  ****************************************/

  body {
    padding-top: 90px; /* Height of header */
  }

  header > .row {
    display: block;
    padding: 0;
  }

  header .grid,
  header .grid > div {
    padding-top: 0;
    padding-bottom: 0;
  }

  header .col-66 {
    display: block;
    max-width: 100%;
  }

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

  header a#logo img {
    height: 70px !important;
    min-width: 0 !important;
    width: auto !important;
    margin-left: 1.5rem;
  }

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

  nav {
    background: #E8E8E8 ;
    position: relative;
    top: 7px;
    max-height: 0;
    overflow: hidden;
    box-shadow: 1px 2px 6px #000;
  }

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

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

  nav ul > li:first-child > a {
    border-top: 1px solid #D6D5DD;
  }

  nav ul > li > a {
    max-width: 200px;
    border-bottom: 1px solid #D6D5DD;
  }

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

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

  nav ul > li > a.button {
    margin: 1.75rem auto 0;
  }

  #nav-toggle {
    position: fixed;
    padding: 1rem;
    top: 20px;
    right: 2rem;
    border-radius: 3px;
    color: #ffffff;
    background: #009355 ;
    font: normal bold 16px/1em 'Montserrat';
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
  }

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

  nav div.navigation ul {
    display: block;
  }

  nav div.navigation ul > li {
    margin: 0 auto;
  }

  /****************************************
  * Subnavigation
  ****************************************/

  nav div.mobile > .subnavigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav div.mobile > .subnavigation > li {
    margin: 0 1rem 0 1rem;
  }

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

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

  nav div.mobile > .subnavigation > li > a {
    color: #FFFFFF;
  }

  nav div.mobile > .subnavigation > li a.button {
    color: #009355;
    background: #FFFFFF;
    padding: .5rem 1rem;
    font-weight: bold;
    text-transform: uppercase;
  }
}


/****************************************
*
* Extra media queries
*
****************************************/

@media(max-width: 550px) {
  header .grid,
  header .grid > div {
    padding: 0;
  }
}