/* Header, menu, login button and the mobile drawers */

.header {
  display: block;
  width: 100%;
  min-width: 1200px;
  border: none;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
}

.header__inner {
  position: relative;
  width: 100%;
  height: 110px;
}

.header__ham {
  display: none;
}

.header__logo {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1em;
  z-index: 1;
  border: none;
}

.header__logo svg {
  vertical-align: top;
}

.header__logo svg {
  transition: all 0.2s;
}

.header__nav {
  display: block;
  position: absolute;
  left: 300px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
}

.header__nav ul {
  display: block;
}

.header__nav ul:after {
  content: "";
  clear: both;
  display: block;
}

.header__nav li {
  float: left;
  line-height: 1em;
  margin-right: 60px;
  position: relative;
}

.header__nav li:last-child {
  margin-right: 0;
}

.header__nav li > a {
  color: #000000;
  text-decoration: none;
  font-size: 17px;
  font-family: var(--font-title);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  line-height: 14px;
  padding: 4px 0;
  display: block;
  position: relative;
  z-index: 0;
  transition: all 0.2s;
}

.header__nav li > a:after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  background-color: #000000;
  position: absolute;
  left: 0;
  bottom: -3px;
  z-index: 0;
  transform-origin: 50% 50%;
  transform: scaleX(0) scaleY(0);
  pointer-events: none;
  transition: all 0.2s;
}

.header__nav li:hover > a:after {
  transform: scaleX(1) scaleY(1);
}

.header__nav__child {
  position: absolute;
  white-space: nowrap;
  left: 0;
  top: 20px;
  z-index: 0;
  padding-top: 21px;
  display: none;
}

.header__nav__child a {
  font-size: 17px;
  font-family: var(--font-light);
  font-feature-settings:
    "palt" 1,
    "kern" 1;
  text-decoration: none;
  line-height: 32px;
  height: 32px;
  color: #ffffff;
  display: block;
  padding: 0 14px;
  position: relative;
  transition: all 1s;
}

.header__nav__child a:after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  transform: scaleX(1) scaleY(0);
  transform-origin: 0 0%;
  transition: all 0.1s;
}

.header__nav__child a:hover {
  color: #000000;
}

.header__nav__child a:hover:after {
  transform: scaleX(1) scaleY(1);
}

.header__nav__child span {
  display: block;
  position: relative;
  z-index: 1;
}

.header__nav .header__nav__child {
  pointer-events: none;
}

.header__nav li:hover .header__nav__child {
  pointer-events: auto;
}

.header__nav__child__inner {
  position: relative;
  background-color: #000000;
  padding: 8px 0;
  min-width: 136px;
}

.header__account {
  display: none;
}

.header__status {
  position: absolute;
  right: 150px;
  z-index: 1;
  top: 50%;
  transform: translateY(-50%);
}

.header__status:after {
  content: "";
  clear: both;
  display: block;
}

.header__action {
  position: absolute;
  right: 40px;
  z-index: 1;
  top: 50%;
  transform: translateY(-50%);
}

.header__action:after {
  content: "";
  clear: both;
  display: block;
}

.header__action__close {
  display: none;
}

.header__action__button a {
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  line-height: 38px;
  height: 38px;
  width: 102px;
  text-align: center;
  display: block;
  border-radius: 8px;
  box-sizing: border-box;
  transition: all 0.2s;
  box-shadow:
    inset 0 1px 3px yellow,
    inset 0 -20px 20px darkorange,
    0 1px 1px black;
  background-color: orange;
  background-image: var(--button-texture);
  text-shadow: 0 1px 5px black;
  color: #ffffff;
  border: 1px solid #dd6a00;
}

.header__action__button a:hover {
  background-color: yellow;
  color: #ffffff;
}

.header.is--white {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}

.header.is--white .header__logo svg {
  fill: #ffffff;
}

.header.is--white .header__nav li > a {
  color: #ffffff;
}

.header.is--white .header__nav li > a:after {
  background-color: #ffffff;
}

.header.is--white .header__action__button a {
  color: #000000;
  background-color: #ffffff;
  border: 0px;
  box-shadow: none;
  background-image: none;
  text-shadow: none;
}

.header.is--white .header__action__button a:hover {
  background-color: #000000;
  color: #ffffff;
  border: #000000 solid 1px;
}

@media screen and (max-width: 768px) {
  .header {
    min-width: 87.5%;
  }
  .header__inner {
    width: 87.5%;
    height: 17.1875vw;
    margin: 0 auto;
  }
  .header__ham {
    display: block;
    width: 6.25vw;
    height: 6.25vw;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
  }
  .header__ham a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
  }
  .header__ham span {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    transform-origin: 50% 50%;
    transition: all 0.2s;
  }
  .header__ham span:before {
    content: "";
    display: block;
    height: 0.3125vw;
    width: 100%;
    background-color: #000000;
    position: absolute;
    left: 0;
    transform-origin: 50% 50%;
    transition: all 0.2s;
  }
  .header__ham span:nth-child(1):before {
    top: 2.03125vw;
  }
  .header__ham span:nth-child(2):before {
    bottom: 2.03125vw;
  }
  .header__ham.is--open span:nth-child(1) {
    transform: translateY(1.09375vw);
  }
  .header__ham.is--open span:nth-child(1):before {
    transform: rotate(36deg) scaleX(1.2);
  }
  .header__ham.is--open span:nth-child(2) {
    transform: translateY(-1.09375vw);
  }
  .header__ham.is--open span:nth-child(2):before {
    transform: rotate(-36deg) scaleX(1.2);
  }
  .header__logo {
    left: 12.5vw;
    transition: all 0.2s;
  }
  .header__logo svg {
    width: 26.71875vw;
    height: auto;
  }
  .header__nav {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    transform: translateY(0);
    z-index: 3;
    background-color: #ffba00;
    width: 62.5vw;
    height: 100%;
  }
  .header__nav.is--open {
    display: block;
  }
  .header__nav ul {
    margin-left: 12.5vw;
    margin-top: 29.6875vw;
  }
  .header__nav li {
    float: none;
    margin-right: 0;
    margin-bottom: 9.375vw;
  }
  .header__nav li:last-child {
    margin-bottom: 0;
  }
  .header__nav li > a {
    font-size: 6.875vw;
    font-weight: 200;
    line-height: 1em;
    padding-top: 1.5625vw;
    padding-bottom: 1.5625vw;
    display: inline-block;
  }
  .header__nav li > a:after {
    height: 2px;
    transform-origin: 0 50%;
    transform: scaleX(0) scaleY(1);
  }
  .header__account {
    display: block;
    position: absolute;
    line-height: 1em;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }
  .header__account svg {
    width: 6.25vw;
    height: auto;
    vertical-align: top;
  }
  .header__account svg {
    transition: all 0.2s;
  }
  .header__account.is--open svg {
    fill: #ffffff;
  }
  .header__status {
    right: 12.5vw;
    z-index: 2;
  }
  .header__action {
    position: fixed;
    right: 0;
    top: 0;
    transform: translateY(0);
    background-color: #000000;
    width: 62.5vw;
    height: 100vh;
    display: none;
  }
  .header__action.is--open {
    display: block;
  }
  .header__action__inner {
    position: relative;
    padding-top: 29.6875vw;
  }
  .header__action__close {
    display: block;
    width: 6.25vw;
    height: 6.25vw;
    position: absolute;
    left: 6.25vw;
    top: 5.46875vw;
    z-index: 2;
  }
  .header__action__close a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
  }
  .header__action__close span {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    transform-origin: 50% 50%;
  }
  .header__action__close span:before {
    content: "";
    display: block;
    height: 0.3125vw;
    width: 100%;
    background-color: #ffffff;
    position: absolute;
    left: 0;
    transform-origin: 50% 50%;
  }
  .header__action__close span:nth-child(1) {
    transform: translateY(1.09375vw);
  }
  .header__action__close span:nth-child(1):before {
    top: 2.03125vw;
    transform: rotate(36deg) scaleX(1.2);
  }
  .header__action__close span:nth-child(2) {
    transform: translateY(-1.09375vw);
  }
  .header__action__close span:nth-child(2):before {
    bottom: 2.03125vw;
    transform: rotate(-36deg) scaleX(1.2);
  }
  .header__action__button {
    margin-left: 12.5vw;
    margin-bottom: 14.0625vw;
  }
  .header__action__button:last-child {
    margin-bottom: 0;
  }
  .header__action__button a {
    font-family: var(--font-light);
    font-feature-settings:
      "palt" 1,
      "kern" 1;
    font-size: 5vw;
    background: none;
    line-height: 1.4em;
    height: auto;
    width: auto;
    text-align: left;
    border-radius: 0px;
    border: none;
    transition: none;
  }
  .header__action__button a:hover {
    background: yellow;
    color: #000000;
  }
  .header.is--white .header__logo {
    opacity: 0;
  }
  .header.is--white .header__logo svg {
    fill: #000000;
  }
  .header.is--white .header__nav li > a {
    color: #000000;
  }
  .header.is--white .header__nav li > a:after {
    background-color: #000000;
  }
  .header.is--white .header__action__button a {
    color: #ffffff;
    background: none;
    border: none;
  }
  .header.is--white .header__ham span:before {
    background-color: #ffffff;
  }
  .header.is--white .header__ham.is--open span:before {
    background-color: #000000;
  }
  .header.is--white .header__account svg {
    fill: #ffffff;
  }
}

/* Desktop dropdown menus */
@media screen and (min-width: 769px) {
  .header__nav__child {
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition:
      opacity 0.4s,
      transform 0.4s,
      visibility 0s 0.4s;
  }
  .header__nav li:hover .header__nav__child {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }
}

/* Mobile drawers */
@media screen and (max-width: 768px) {
  .header__nav,
  .header__action {
    display: block;
    visibility: hidden;
    transition:
      transform 0.5s cubic-bezier(0.85, 0, 0.15, 1),
      visibility 0s 0.5s;
  }
  .header__nav {
    transform: translateX(-100%);
  }
  .header__action {
    transform: translateX(100%);
  }
  .header__nav.is--open,
  .header__action.is--open {
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
}
