/* NAV */

header {
  width: 100%;
  height: 56px;
  background-color: rgba(255, 255, 255, 1);

  display: flex;
  flex-flow: row;
  align-items: center;

  position: fixed;
  top: 0;
  z-index: 2;

  box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.5);
  -webkit-box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.5);
  -moz-box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.5);

}

header>div {
  width: 100%;
  max-width: 2400px;
  margin: auto;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
  position: relative;

}

header>div figure {
  width: 24%;
  margin-left: 8%;
}

header>div figure a img {
  height: 100%;
  display: block;
}

.ham {
  height: 32px;
  width: 32px;
  position: fixed;
  top: 12px;
  right: 20px;
  z-index: 999;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ham span,
.ham span::before,
.ham span::after {
  position: absolute;
  content: '';
  width: 24px;
  height: 3px;
  background: rgba(225, 225, 225, 1);
  border-radius: 20px;
  transition: 500ms cubic-bezier(0.77, 0, 0.175, 1);
}

.ham span::before {
  top: -8px;
  left: 0;
}

.ham span::after {
  top: 8px;
  left: 0;
}

.ham.cross>span {
  background: transparent;
}

.ham.cross>span::before,
.ham.cross>span::after {
  background: rgba(225, 225, 225, 1);
  top: 0px;
}

.ham.cross>span::before {
  -webkit-transform: rotate(-225deg);
  transform: rotate(-225deg);
}

.ham.cross>span::after {
  -webkit-transform: rotate(225deg);
  transform: rotate(225deg);
}


/* ------ MENU ------ */
nav {
  width: 100%;
  display: block;
  border-radius: 0 0 12px 12px;
  background-color: rgba(255, 255, 255, 1);

  position: absolute;
  top: -208px;
  z-index: -1;
}

.primary {
  width: 100%;
  padding-top: 80px;
  padding-bottom: 20px;
}

.primary>li {
  float: none;
}

/* clear'n floats */
nav>ul:after {
  clear: both;
}

nav>ul:before,
nav>ul:after {
  content: " ";
  display: table;
}

/* prime */
ul.primary li {
  list-style: none;
  position: relative;
}

ul.primary li:first-child {
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

ul.primary li a {
  display: block;
  text-align: right;
  color: rgba(0, 0, 0, 1);
  font-size: 1em;
  padding: 10px 20px;
  text-decoration: none;
  cursor: pointer;
}

.active {
  font-weight: 700;
  border-bottom: none;
}

.non-active {
  font-weight: 500;
  border-bottom: none;
}

/*iPad portrait*/
@media (min-width: 820px) {

  header {
    height: 69px;
  }

  header>div {
    width: 95%;
  }
  header>div figure {
  width: 112px;
  margin-left: 1em;
}

  .ham {
    display: none;
  }

  nav {
    width: inherit;
    height: inherit;
    position: initial;
    top: 0;
    right: 0;
    z-index: 5;
    background: transparent;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;

    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: flex-end;
  }

  nav ul {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-end;
    align-items: center;
  }

  ul.primary li:first-child {
    border-bottom: none;
  }

  .primary {
    padding: 0;
  }

  ul.primary li {
    border: none;
  }

  ul.primary li a:hover {
    border-bottom: rgba(0, 0, 0, 0.2) 2px solid;
  }

  .active {
    font-weight: 700;
    border-bottom: rgba(0, 0, 0, 0.2) 2px solid;
  }

  .non-active {
    font-weight: 500;
    border-bottom: none;
  }
}

/* ---- animation ---- */
.slide-In {
  -webkit-animation: slide-In 0.3s ease-in-out both;
  animation: slide-In 0.3s ease-in-out both;
  -webkit-box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.5);
  -moz-box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.5);
  box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.5);
}

@-webkit-keyframes slide-In {
  0% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }

  100% {
    -webkit-transform: translateY(190px);
    transform: translateY(190px);
  }
}

@keyframes slide-In {
  0% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }

  100% {
    -webkit-transform: translateY(190px);
    transform: translateY(190px);
  }
}

.slide-Out {
  -webkit-animation: slide-Out 0.3s ease-in-out both;
  animation: slide-Out 0.3s ease-in-out both;
}

@-webkit-keyframes slide-Out {
  0% {
    -webkit-transform: translateY(190px);
    transform: translateY(190px);
  }

  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

@keyframes slide-Out {
  0% {
    -webkit-transform: translateY(190px);
    transform: translateY(190px);
  }

  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}