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

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

header .grid {
  max-width: 1400px;
}

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

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

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: #E7E7E7 ;
}

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

header .top-bar .button {
  padding: .5rem 1rem;
  border-radius: 5px;
  border: inherit;
  background: #9A1AC1;
  font-family: Lato;
  color: #ffffff;
  font-size: inherit;
  line-height: inherit;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: inherit;
}

header .top-bar .button:hover {
  background: #6F138B;
  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: Lato;
  border: none;
  border-radius: 5px;
  padding: 1rem;
  background: transparent ;
  color: #000000;
  font-size: 16px;
  font-weight: bold;
  line-height: 1em;
  text-transform: uppercase;
  letter-spacing: 1px;
}

nav ul > li > a:hover {
  background-color: transparent;
  background-image: unset;
  color: #9A1AC1;
}

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

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

header .subnavigation .button {
  border-radius: 0;
  padding: .5rem 1rem;
}

header .subnavigation > li a {
  background: none;
  color: #5D5D5D;
  font-size: 18px;
  line-height: 1.5em;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 1px;
}

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

header .subnavigation > li:last-child {
  display: flex;
  gap: 1px;
  margin-right: 0;
}

header .subnavigation > li:last-child .button + .button {
  margin: 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: 0;
  margin-bottom: 0;
}

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

nav ul > li > a {
  width: auto;
  margin: auto;
}

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

@media (max-width: 1399.98px) {

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

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

  header {
    position: fixed;
    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 .grid.main {
    flex-direction: column;
    grid-gap: 0;
    height: 58px; /* Fits inside the header pocket */
    padding: 0;
  }

  header .logo-side {
    display: flex;
    align-items: center;
    flex: 0 0 100%;
    max-width: 100%;
    min-height: 90px;
    padding: 0 1.5rem;
  }

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

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

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

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

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

  nav {
    background: #ffffff;
    max-height: 0;
    overflow: hidden;
    box-shadow: -3px 3px 2px rgba(0, 0, 0, 0.15);
  }

  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: #9A1AC1;
  }

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

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

  #nav-toggle {
    position: fixed;
    padding: .5rem 1rem;
    top: 10px;
    right: 15px;
    border-radius: 3px;
    background: transparent;
    color: #000000;
    font-size: 36px;
    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;
    padding: 0 2rem;
  }

  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,
  nav div.mobile > .subnavigation > li > a:hover {
    padding: 0.5rem 0;
    width: auto;
    font-size: 15px;
    text-transform: capitalize;
    font-family: Lato;
    color: #373737;
  }

  nav div.mobile > .subnavigation > li:last-child {
    margin-top: 1rem;
  }

  nav div.mobile > .subnavigation > li > a.button {
    padding: .5rem 1rem;
    border: inherit;
    background: #9A1AC1;
    font-family: Lato;
    color: #ffffff;
    font-size: inherit;
    line-height: inherit;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: inherit;
  }
}

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

@media(min-width: 567px) and (max-width: 1399.98px) {
  header nav {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff ;
    max-width: 325px;
  }

  nav div.navigation {
    padding: 1rem;
    background: #ffffff ;
  }
}