header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.header__container {
  display: flex;
  padding: 24px;
  justify-content: space-between;
}

.header__container.menu-open {
  border-bottom: solid 1px var(--color-offBlack);
}

.header__nav {
  display: flex;
  align-items: center;
}

.header__nav li {
  list-style: none;
}

.header__nav a,
.header__nav-mobile a {
  color: #0b0c0c;
  font-family: proxima-nova, sans-serif;
  font-weight: 600;
  font-style: normal;
  display: inline;
  margin-right: 35px;
  font-size: 13px;
  position: relative;
  -webkit-letter-spacing: 0.1em;
  -moz-letter-spacing: 0.1em;
  -ms-letter-spacing: 0.1em;
  letter-spacing: 0.1em;
  cursor: pointer;
  text-transform: uppercase;
  text-decoration: none;
}

.header__nav li:last-of-type a {
  margin-right: 0;
}

.header__nav a::after {
  content: "";
  display: inline-block;
  height: 2px;
  background: #ffc82d;
  width: 100%;
  position: absolute;
  left: 0;
  bottom: -5px;
  -webkit-transition: -webkit-transform 0.5s ease;
  -webkit-transition: transform 0.5s ease;
  transition: transform 0.5s ease;
  -webkit-transform: scaleX(0);
  -ms-transform: scaleX(0);
  transform: scaleX(0);
}

.header__nav a:hover::after {
  transform: scaleX(1);
}

.menu-item-has-children > a::before {
  content: "";
  background-image: url(../assets/images/down-caret.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  right: 0px;
  top: -2px;
  -webkit-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  transform: rotate(90deg);
  -webkit-transition: -webkit-transform 0.6s ease;
  -webkit-transition: transform 0.6s ease;
  transition: transform 0.6s ease;
  width: 17px;
  height: 16px;
}

.nav-item.menu-item-has-children > a {
  margin-right: 40px;
  padding-right: 20px;
}

.nav-item.menu-item-has-children > a:hover::before {
  -webkit-transform: rotate(-90deg);
  -ms-transform: rotate(-90deg);
  transform: rotate(-90deg);
  -webkit-transition: -webkit-transform 0.6s ease;
  -webkit-transition: transform 0.6s ease;
  transition: transform 0.6s ease;
}

ul.sub-menu {
  display: none;
  position: absolute;
  margin-top: 5px;
  padding: 15px 5px 10px 10px;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.85);
}
.sub-menu li {
  margin-bottom: 5px;
}

.sub-nav-item a {
  font-weight: 400;
}

.header__nav .menu-item-has-children:hover .sub-menu {
  display: block;
}

/* Mobile nav */

.mobile-nav {
  display: none;
}
.mobile-nav.menu-open {
  display: block;
  background: linear-gradient(
    to bottom,
    var(--color-trueWhite),
    var(--color-trueWhite) calc(100% - 50px),
    rgba(255, 255, 255, 0.1) 100%
  );
  padding: 15px 0 50px;
}

.header__nav-mobile {
}

.header__nav-mobile li {
  list-style: none;
  margin-bottom: 10px;
}

.header__nav-mobile .menu-item-has-children > a::before {
  content: "";
  background-image: none;
}

.header__nav-mobile li > a,
.header__nav-mobile li.menu-item-has-children > a {
  margin-right: 0;
  padding-right: 0;
}

.header__nav-mobile li.menu-item-has-children:hover .sub-menu {
  display: none;
}

.burger {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 1.7rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}
.burger:focus {
  outline: none;
}

.burger div {
  width: 25px;
  height: 2px;
  background: var(--color-offBlack);
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 0px;
}

.burger div:first-child {
  transform: rotate(0);
}

.burger div:nth-child(2) {
  opacity: 1;
}

.burger div:nth-child(3) {
  transform: rotate(0);
}

.burger.menu-open div:first-child {
  transform: rotate(45deg);
}

.burger.menu-open div:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.burger.menu-open div:nth-child(3) {
  transform: rotate(-45deg);
}

.cta-button a {
  font-size: 13px;
  border-radius: 4px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  line-height: 16px;
  width: fit-content;
  font-family: proxima-nova, sans-serif;
  font-weight: 600;
  font-style: normal;
  text-align: center;
  display: inline-block;
  background: var(--color-primaryYellow);
  color: var(--color-offBlack);
  transition: all 0.5s ease 0s;
  padding: 8px;
}
.cta-button:hover a {
  background-color: var(--color-offBlack);
  color: var(--color-trueWhite);
  transition: all 0.5s ease 0s;
}
.cta-button:hover a::after {
  display: none;
}

.header__nav-mobile .cta-button > a {
  padding: 8px;
  margin-top: 20px;
}
