/* Frontier Offroad: restrained header and cinematic opening. */

#header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding: 27px 4.5%;
  min-height: 104px;
  color: #F2F0E9;
  background: linear-gradient(#20252290, #20252205);
  border-bottom: 1px solid #f2f0e925;
  transition:
    background .4s,
    padding .4s,
    border-color .4s;
}

#header .navLeft {
  display: flex;
  justify-self: start;
  gap: 0;
  min-width: 0;
}

#header .navRight {
  display: flex;
  justify-self: end;
  gap: 0;
  min-width: 0;
}

#header nav > a,
#header nav > button {
  background: none;
  border: 0;
  border-radius: 0;
  color: #F2F0E9;
  padding: 10px 0;
  font-size: 12px;
  white-space: nowrap;
  line-height: 1.4;
}

#header nav > a:hover,
#header nav > button:hover {
  background: none;
}

#header .navLeft > #exploreMenuButton {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  letter-spacing: .02em;
}

#exploreMenuButton > span {
  font-size: 21px;
  font-weight: 300;
  line-height: 1;
  transition: transform .35s;
}

#exploreMenuButton:hover > span {
  transform: rotate(90deg);
}

#header > .wordmark {
  justify-self: center;
  text-align: center;
  font-size: 29px;
  font-weight: 600;
  letter-spacing: .17em;
  white-space: nowrap;
  line-height: 1;
}

#header > .wordmark > span {
  font-size: 9px;
  letter-spacing: .42em;
  font-weight: 500;
  margin-top: 9px;
  line-height: 1.25;
}

#header .navRight > a.navPlan {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #f2f0e960;
  letter-spacing: .025em;
}

#header .navRight > a.navPlan:hover {
  border-bottom-color: #F2F0E9;
}

#header .navPlan > span {
  transition: transform .3s;
}

#header .navPlan:hover > span {
  transform: translate(2px, -2px);
}

#header #menuButton {
  display: none !important;
}

.isScrolled #header {
  background: #202522f5;
  backdrop-filter: blur(12px);
  padding-top: 17px;
  padding-bottom: 17px;
  border-color: #f2f0e925;
  min-height: 88px;
}

.isScrolled #header > .wordmark {
  font-size: 27px;
}

.destinationPage #header {
  position: sticky;
  background: #202522;
}

.destinationPage.isScrolled #header {
  background: #202522f5;
}

.hero > .heroSlide {
  inset: 0;
  opacity: 0;
  object-fit: cover;
  transition: opacity 2s ease-in-out;
}

.hero > .heroSlide.is-active {
  opacity: 1;
}

.heroText h1 {
  margin-top: 0;
}

.heroText > .heroIntro {
  font-size: clamp(16px, 1.45vw, 21px);
  letter-spacing: .015em;
  line-height: 1.75;
  max-width: 650px;
  color: #F2F0E9;
}

.heroText .heroActions {
  display: flex;
  justify-content: flex-start;
  margin-top: 30px;
  gap: 0;
}

.heroActions .filmTrigger {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  gap: 15px;
  padding: 0;
  letter-spacing: .025em;
}

.heroActions .filmTrigger .playIcon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 19px;
  border: 1px solid #f2f0e985;
  border-radius: 50%;
  transition:
    border-color .3s,
    background .3s;
}

.heroActions .filmTrigger:hover .playIcon {
  background: #f2f0e912;
  border-color: #F2F0E9;
}

.heroFoot {
  left: auto;
  right: 4.5%;
  bottom: 27px;
  padding: 0;
  border: 0;
  display: block;
}

#motionButton {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  border: 0;
  background: none;
  color: #F2F0E9;
  padding: 10px 0;
  font-size: 9px;
  letter-spacing: .04em;
  opacity: .8;
}

#motionButton:hover {
  opacity: 1;
}

#motionButton > [aria-hidden] {
  font-size: 15px;
}

#motionButton:focus-visible {
  opacity: 1;
  outline-color: #F2F0E9;
}

.applicationHow {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: none;
  border: 0;
  border-bottom: 1px solid #D8D0C0;
  font-size: 11px;
  color: #59604E;
  padding: 12px 0;
  margin-top: 14px;
  text-align: left;
}

.applicationHow:hover {
  color: #202522;
  border-color: #59604E;
}

.exploreHeader .wordmark > span,
footer .wordmark > span {
  letter-spacing: .35em;
}

@media (max-width: 1000px) {
  #header {
    padding-left: 5%;
    padding-right: 5%;
    gap: 20px;
  }

  #header .navRight > a.navPlan {
    font-size: 10px;
  }

  #header > .wordmark {
    font-size: 26px;
  }

  .isScrolled #header > .wordmark {
    font-size: 25px;
  }
}

@media (max-width: 700px) {
  #header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    padding: 24px 7%;
    min-height: 90px;
    background: linear-gradient(#20252290, #20252205);
  }

  #header .navLeft {
    display: flex;
  }

  #header .navLeft > #exploreMenuButton {
    font-size: 11px;
    gap: 12px;
  }

  #exploreMenuButton > span {
    font-size: 19px;
  }

  #header > .wordmark {
    justify-self: end;
    font-size: 24px;
    letter-spacing: .14em;
  }

  #header > .wordmark > span {
    font-size: 8px;
    letter-spacing: .35em;
    margin-top: 7px;
  }

  #header .navRight {
    display: none;
  }

  .isScrolled #header {
    padding: 18px 7%;
    min-height: 78px;
  }

  .isScrolled #header > .wordmark {
    font-size: 23px;
  }

  .heroText > .heroIntro {
    font-size: 15px;
    line-height: 1.85;
    max-width: 320px;
  }

  .heroText .heroActions {
    margin-top: 25px;
  }

  .heroActions .filmTrigger {
    font-size: 11px;
    gap: 13px;
  }

  .heroActions .filmTrigger .playIcon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .heroFoot {
    left: auto;
    right: 7%;
    bottom: 20px;
  }

  #motionButton {
    font-size: 8px;
  }

  .heroFoot #motionButton .motionLabel {
    display: inline;
  }

  #exploreMenu {
    padding: 75px 7% 35px;
  }

  .exploreHeader {
    align-items: center;
  }

  .exploreHeader > .eyebrow {
    max-width: 110px;
    line-height: 1.8;
  }

  .exploreList > a[href="/private-expeditions/"] > small {
    color: #F2F0E9;
  }

  .applicationHow {
    font-size: 10px;
    line-height: 1.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  #header,
  #exploreMenuButton > span,
  #header .navPlan > span,
  .hero > .heroSlide,
  .heroActions .playIcon {
    transition: none;
  }

  #exploreMenuButton:hover > span,
  #header .navPlan:hover > span {
    transform: none;
  }
}
