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

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

header .main .grid {
  display: flex;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

@media(min-width: 1008px) {
  header .main {
    position: absolute;
    z-index: 100;
    background-color: #ffffff;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, .5);
    width: 100%;
    max-width: 100%;
  }

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

  main {
    margin-top: 86px;
  }
}

@media(min-width: 1202px) {
  header a#logo img {
    max-height: 80px;
  }

  main {
    margin-top: 106px;
  }
}

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

header .navigation-side {
  display: flex;
  margin-left: auto;
}

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

header .top-bar {
  background: #f2f2f2 url('/clibs/textures/egg-shell.png');
}

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

header .top-bar .button {
  padding: .5rem;
  border-radius: inherit;
  border: inherit;
  background: rgba(0, 0, 0, 0.15);
  font-family: Roboto;
  color: #3a56a0;
  font-size: inherit;
  line-height: inherit;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: ;
  text-shadow: inherit;
}

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

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

nav {
  background: #ffffff;
}

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: Roboto;
  border: none;
  border-radius: 0;
  padding: 1rem;
  background: #14105a;
  color: #ffffff;
  font-size: 16px;
  font-weight: normal;
  line-height: 1em;
  text-transform: uppercase;
  letter-spacing: ;
}

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

@media(min-width: 1008px) {
  nav ul > li > a {
    display: inline-block;
    position: relative;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    -webkit-transition-property: color;
    transition-property: color;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
  }

  nav ul > li > a:before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #3a56a0;
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
    -webkit-transform-origin: 50%;
    transform-origin: 50%;
    -webkit-transition-property: transform;
    transition-property: transform;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
  }

  nav ul > li > a:hover,
  nav ul > li > a:focus,
  nav ul > li > a:active {
    color: #ffffff;
  }

  nav ul > li > a:hover:before,
  nav ul > li > a:focus:before,
  nav ul > li > a:active:before {
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
  }
}

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

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

header .subnavigation .button {
  padding: .5rem;
}

header .subnavigation > li  a {
  background: none;
  color: #3a56a0;
  font-size: 16px;
  line-height: 1.5em;
  font-weight: normal;
  text-transform: none;
  letter-spacing: 0px;
}

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

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

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

header .subnavigation > li:nth-last-child(2) {
  margin-right: 1px;
}

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;
}

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

@media (max-width: 1007px) {

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

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

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

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

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

  header {
    position: fixed;
    padding: 0.5rem 0;
    min-height: 70px;
    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: 55px !important;
  }

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

  header .top-bar .button {
    font-size: inherit;
  }

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

  nav {
    background: #ffffff;
    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: fixed;
    top: 19px;
    right: 1rem;
    color: #3a56a0;
    font: normal normal 30px/1em 'Roboto';
    text-transform: uppercase;
    cursor: pointer;
  }

  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: 0.5rem;
  }

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

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

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

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

  header div.mobile > .subnavigation > li:nth-last-child(2),
  header div.mobile > .subnavigation > li:last-child {
    display: block;
    flex: 0 0 100%;
    margin-top: 1rem;
  }

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

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

  nav div.mobile > .subnavigation > li > a.button {
    padding: .5rem;
    border-radius: inherit;
    border: inherit;
    background: rgba(0, 0, 0, 0.15);
    font-family: Roboto;
    color: #3a56a0;
    font-size: inherit;
    line-height: inherit;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: ;
    text-shadow: inherit;
  }
}

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

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

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

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

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