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

header {
  position: relative;
  z-index: 10;
  background:  #0076C0;
  background-repeat: ;
  background-size: ;
  background-position: ;
  box-shadow: none;
  height: auto;
}

header .grid.main {
  display: flex;
  position: relative;
  margin: 0 auto;
  max-width: 1105px;
  padding: 1rem;
}

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

header .navigation-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: auto;
}

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

nav {
  background: #0076C0;
}

nav ul {
  display: flex;
  flex-direction: row;
  justify-content: right;
  align-items: center;
  gap: 1rem;
  margin: 0;
}

nav a {
  font: normal bold 16px/1em Raleway;
  color: #E0E0E0;
  text-transform: none;
  letter-spacing: 1px;
}

nav a:hover {
  color: #ffffff;
}

nav .button {
  padding: .75rem 1rem;
}

nav .button:hover,
nav .button:focus {
  background-color: #ffffff;
  color: #83C442;
}

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

.subnavigation nav {
  background-color: #83C442;
}

.subnavigation ul {
  justify-content: center;
  gap: 0;
}

.subnavigation a {
  display: inline-block;
  margin: 0;
  padding: 1rem;
  text-transform: uppercase;
  color: #ffffff;
  transition: all .5s ease;
}

.subnavigation a:focus,
.subnavigation a:hover {
  background-color: rgba(255, 255, 255, .2);
}

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

@media (max-width: 1007px) {

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

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

  header .grid.main {
    flex-direction: column;
    grid-gap: 0;
  }

  header .grid.main,
  header .grid.main > * {
    padding: 0 1rem;
  }

  header .navigation-side {
    display: block;
    width: 100%;
  }

  header .navigation-side nav > div:first-of-type {
    margin-top: 2rem;
  }

  header {
    position: fixed;
    padding: 0.5rem 0;
    min-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 .logo-side {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0;
  }

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

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

  nav {
    background: #0076C0;
    max-height: 0;
    overflow: hidden;
  }

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

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

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

  nav ul > li > a:hover,
  nav ul > li > a.button:hover {
    color: ;
  }

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

  #nav-toggle {
    position: absolute;
    padding: 1rem;
    top: 14px;
    right: 2rem;
    border-radius: 3px;
    color: #ffffff;
    background: #83C442;
    font: normal normal 16px/1em 'Raleway';
    text-transform: none;
    letter-spacing: ;
    cursor: pointer;
    width: 49px;
    text-align: center;
  }

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

  nav ul {
    display: block;
  }

  nav li {
    margin-bottom: 0.5rem;
    text-align: center;
  }
}

/****************************************
* Large Phone
****************************************/

@media(min-width: 567px) and (max-width: 1007px) {
  header nav {
    position: absolute;
    top: 82px;
    right: 0;
    background: #0076C0;
    box-shadow: 0px 3px 5px -5px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 350px;
  }

  nav .navigation {
    padding: 0 1rem 1rem 1rem;
  }

  header .navigation-side nav > div:first-of-type {
    margin-top: 0;
  }
}

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

@media (max-width: 475px) {
  header a#logo img {
    height: calc(42px + (75 - 42) * (100vw - 320px) / (475 - 320)) !important;
    margin-top: calc(15px + (0 - 15) * (100vw - 320px) / (475 - 320));
  }
}

/****************************************
* Widescreen
****************************************/

@media(min-width: 1300px) {
  nav ul {
    gap: 2rem;
  }

  nav a {
    font-size: 18px;
  }
}