:root {
  /* palette */
  --color-leaf: #7fba42;
  --color-dusk: #17333d;
  --color-dusk-rgb: 23, 51, 61;
  --color-dusk-rgb-dark: 17, 43, 51;
  --color-smoke: #a1acb0;
  --color-smoke-rgb: 161, 172, 176;
  --color-mist: #d0d5d7;
  --color-snow: #f6f7f7;
  --color-snow-rgb: 246, 247, 247;
  /* typography */
  --font-sans-body: "myriad-pro-condensed", Arial, Helvetica, sans-serif;
  --font-sans-header: "alternate-gothic-condensed-a", Arial, Helvetica,
    sans-serif;
  --font-sans-subheader: "Montserrat", Arial, Helvetica, sans-serif;
  --font-letter-space-a: 0.09em;
  --font-letter-space-b: 0.13em;
  /* layout */
  --space-1: 80px;
  --space-2: 40px;
  --space-3: 26px;
}

html {
  font-family: var(--font-sans-body);
  background: var(--color-snow);
  scroll-behavior: smooth;
}

.container {
  max-width: 1366px;
  margin: 0 auto;
}

.container-top {
  position: relative;
  margin: 0 auto;
}

.container-top.content {
  position: absolute;
  z-index: 99;
  left: 0%;
  top: 0%;
  width: 100%;
  height: 100%;
  color: var(--color-snow);
  mix-blend-mode: normal;
}

.container-top.mountains {
  position: absolute;
  z-index: 30;
  bottom: -0.5%;
  right: 0%;
  mix-blend-mode: normal;
}

.container-top.gradient {
  position: absolute;
  z-index: 19;
  left: 0%;
  top: 0%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    130deg,
    rgba(23, 51, 61, 1) 0%,
    rgba(255, 255, 255, 1) 100%
  );
  mix-blend-mode: multiply;
}

.wrapper {
  display: grid;
  max-width: 952px;
  margin: 0 auto;
  padding-top: var(--space-1);
  padding-bottom: var(--space-1);
  padding-left: var(--space-3);
  padding-right: var(--space-3);
}

.wrapper.target {
  padding-top: 0;
  padding-bottom: 0;
}

h1,
h2 {
  font-family: var(--font-sans-header);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.9;
}

h1 {
  font-size: clamp(2.75rem, 2.0405rem + 3.0272vw, 4.625rem);
  margin-bottom: var(--space-3);
}

h2 {
  font-size: clamp(2.375rem, 1.8074rem + 2.4218vw, 3.875rem);
  margin-top: 0;
  margin-bottom: var(--space-3);
}

h3,
span.subheader {
  display: block;
  font-family: var(--font-sans-subheader);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--font-letter-space-a);
  line-height: 1.1;
  margin-bottom: 10px !important;
}

span.subheader.dusk {
  color: var(--color-dusk);
}

span.subheader.leaf {
  color: var(--color-leaf);
}

p {
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 1.0777rem + 0.2018vw, 1.25rem);
}

.cta-btn {
  display: block;
  background: var(--color-leaf);
  color: var(--color-dusk) !important;
  text-align: center;
  padding: 16px 28px;
  text-transform: uppercase;
  font-family: var(--font-sans-subheader);
  font-weight: 700;
  letter-spacing: 1.5px !important;
  text-decoration: none;
  cursor: pointer;
  font-size: 15px;
}

.cta-btn:hover {
  background: rgb(var(--color-dusk-rgb-dark));
  color: var(--color-leaf) !important;
}

#where-to-buy {
  max-width: 220px;
}

/* header */
header {
  background-color: var(--color-dusk);
  color: var(--color-snow);
}

#logo {
  padding-top: var(--space-2);
}

@media (max-width: 1366px) {
  #logo {
    padding-left: var(--space-3);
  }
}

header h1 {
  margin-bottom: calc(var(--space-3) / 2);
}

header a.cta-btn {
  max-width: 182px;
}

.words {
  width: 100%;
  max-width: 576px;
}

.words h1 {
  margin-top: 0;
}

/* footer */
footer {
  background-color: rgb(var(--color-dusk-rgb-dark));
}

footer ul {
  display: flex;
  justify-content: end;
  gap: 1rem;
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

footer li {
  padding: 0;
  margin: 0;
}

@media (max-width: 768px) {
  footer ul {
    justify-content: center;
  }
}

.copyright {
  text-align: right;
}

@media (max-width: 768px) {
  .copyright {
    text-align: center;
  }
}

footer {
  background: rgb(var(--color-dusk-rgb-dark));
  color: var(--color-smoke);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: var(--space-1);
}
@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

.footer-bottom {
  margin-bottom: var(--space-1);
}

footer .logo {
  display: block;
  width: 100%;
  max-width: 200px;
}

@media (max-width: 768px) {
  footer .logo {
    margin: 0 auto;
  }
}

/*** SECTIONS ***/
/* #rated-1 */
#rated-1 {
  background-image: url("../images/texture-wood-grain.svg");
  background-size: cover;
  background-position: center center;
  background-color: var(--color-snow);
  color: var(--color-dusk);
}

#rated-1 h2 {
  margin-bottom: 0;
  text-align: center;
}

#rated-1 p {
  text-align: center;
  margin: var(--space-3) auto;
}

#rated-1 .cta-btn {
  max-width: 220px;
  width: 100%;
  margin: 0 auto;
}

/* trailer */
#trailer {
  background-image: url("../images/trailer.jpg");
  background-size: cover;
  background-position: left bottom;
  height: 380px;
  box-shadow: 0px 0px 12px 8px rgba(0, 0, 0, 0.13) inset;
}

@media (max-width: 768px) {
  #trailer {
    height: 280px;
  }
}

@media (max-width: 520px) {
  #trailer {
    height: 220px;
  }
}

/* #dealer-tool */

#dealer-tool span.subheader.dusk {
  text-align: center !important;
  display: block;
  line-height: 1.65;
}
#dealer-tool img {
  /* vertical-align: middle; */
  /* padding-right: calc(var(--space-3) / 2); */
  justify-self: right;
}

#dealer-tool form {
  display: grid;
  /* grid-template-columns: 1fr 1fr 1fr; */
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

@media (max-width: 768px) {
  #dealer-tool form {
    grid-template-columns: 1fr;
    gap: calc(var(--space-3) / 4);
  }
}

#dealer-tool input,
#dealer-tool select {
  padding: 20px 36px;
  min-height: 72px;
  cursor: pointer;
}

.find-a-dealer {
  display: grid;
  grid-template-columns: max-content max-content;
  align-items: center;
  gap: calc(var(--space-3) / 2);
  margin-bottom: var(--space-3);
  justify-content: center;
}

.find-a-dealer h2 {
  margin-bottom: 0;
}

#dealer-tool button.cta-btn {
  border: none;
  width: 100%;
  min-height: 72px;
}

/* #higher-grade */
#higher-grade {
  background-color: var(--color-dusk);
  color: var(--color-snow);
  position: relative;
}

#higher-grade .cta-btn {
  max-width: 260px;
}

.graph-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .graph-grid {
    grid-template-columns: 1fr;
  }

  #breaker19 {
    display: none;
  }
}

.graph-grid img {
  width: 100%;
}

/* #get-building */
#get-building {
  background-color: var(--color-dusk);
}

/* #get-building .wrapper {
  border-bottom: 1px solid rgba(var(--color-smoke-rgb), 0.25);
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  width: 100%;
} */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.link-card img.icon {
  width: auto;
  height: 64px;
  display: block;
  margin: 0 auto 30px;
}

.link-card:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(var(--color-dusk-rgb), 0.8);
  transition: background-color ease-in-out 1s;
  border-radius: 0;
  z-index: 2;
}

.link-card {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  background-color: var(--color-dusk);
  border-radius: 0;
  border: 2px solid var(--color-smoke);

  z-index: 1;
  cursor: pointer;
  height: 348px;
  padding: 20px;
  overflow: hidden;
  /* for transition */
}
.link-card * {
  z-index: 3;
}
.link-card .back {
  background-position: center center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
  background-size: cover;
  position: absolute;
  left: 0;
  top: 0;
  transition: transform ease-in-out .5s;
  z-index: 2;
}

.link-card:hover .back {
  transform: scale(1.1);
}

.link-card:hover:after {
  background-color: rgba(var(--color-dusk-rgb), 0.55);
}

.link-card a {
  text-decoration: none;
  color: var(--color-snow);
}

#get-building h3,
#get-building p {
  text-align: center;
}

#get-building h3 {
  letter-spacing: var(--font-letter-space-b);
}

#get-building h2 {
  color: var(--color-snow);
}

/* #line */
#line {
  background-color: var(--color-dusk);
}

/* #targets */
#targets {
  background-color: var(--color-dusk);
  position: relative;
  padding-top: var(--space-1);
}

@media (max-width: 768px) {
  #targets {
    padding-top: var(--space-2);
  }
}

.tab {
  position: relative;
  min-width: calc(952px / 3);
  outline: 2px solid var(--color-dusk);
}

.active-tab {
  background-color: var(--color-snow);
  color: var(--color-snow);
  position: relative;
}

.active-tab:after {
  content: url("../images/accent-triangle.svg");
  display: block;
  background-color: transparent !important;
  width: 44px;
  position: absolute;
  left: 50%;
  transform: translate(-50%, -20%);
}

@media (max-width: 768px) {
  .active-tab:after {
    display: none;
  }
}

#targets li span {
  color: var(--color-dusk);
  font-family: var(--font-sans-subheader);
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 700;
  display: block;
  letter-spacing: var(--font-letter-space-a);
  padding: 20px 36px;
  /* width: 100%; */
  /* max-width: 300px; */
  text-align: center;
  background: rgba(256, 256, 256, 0.3);
  transition: background-color ease-in-out 0.25s;
  cursor: pointer;
}

#targets li span:hover {
  background: rgba(256, 256, 256, 0.5);
}

/* animate to make active tab "slide" over */
/* #targets li.tab.active-tab {
} */

nav#tab-nav {
  background: rgb(var(--color-dusk-rgb-dark));
}

.tab-list {
  display: flex;
  justify-content: center;
  list-style-type: none;
  padding: 0;
}

@media (max-width: 768px) {
  .tab-list {
    flex-direction: column;
  }
  #targets li span {
    max-width: 100%;
  }
}

.slide {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-1);
  color: var(--color-snow);
  padding-top: var(--space-1);
  padding-bottom: var(--space-1);
}
.slide-right img {
  width: 100%;
}

@media (max-width: 768px) {
  .slide {
    grid-template-columns: 1fr;
  }
}

#targets h2 {
  margin-bottom: var(--space-3);
}

#targets .cta-btn {
  width: 100%;
  max-width: 142px;
  font-size: 15px;
  border: none;
  outline: none;
}

#targets input,
#targets textarea {
  width: 100%;
  padding: 20px 20px;
  color: var(--color-dusk);
  background-color: var(--color-snow);
}

#targets input::placeholder,
#targets textarea::placeholder {
  color: var(--color-dusk);
  background-color: var(--color-snow);
}

.telly {
  color: var(--color-leaf) !important;
  text-align: left;
  text-transform: uppercase;
  font-family: var(--font-sans-subheader);
  font-weight: 600;
  letter-spacing: var(--font-letter-space-b);
  text-decoration: none;
  display: inline-flex;
  vertical-align: middle;
  cursor: pointer;
}

.telly:before {
  content: url("../images/icon-mobile.svg");
  padding-right: 12px;
}

textarea,
input,
select,
input[type="text"]::placeholder {
  box-sizing: border-box;
  width: 100%;
  color: var(--color-dusk);
  background-color: var(--color-mist);
  font-family: var(--font-sans-subheader);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 500;
  border: none;
  outline: none;
  font-size: 15px;
}

#heada {
  position: relative;
  top: 0;
  left: 0;
  /* width: 100vw; */
  width: 100vw;
  height: 70vh;
  /* aspect-ratio: 1366 / 587; */
  overflow: hidden;
  padding: 0;
  margin: 0;
}
@media (max-width: 768px) {
  #heada {
    height: 65vh;
  }
}

/* header animation */
/* added another animation: trans-in, and set an animation-delay */


#heada div.ani0 {
  animation-name: transout;
  animation-duration: 6s;
  animation-delay: 0s;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}


#heada div.ani {
  animation-name: transout;
  animation-duration: 6s;
  animation-delay: 3s;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

@keyframes transout {
  0% {
    transform: scale3d(1,1,1) translate3d(0, 0, 0);
    transform-origin: 50% 16%;
    opacity: 1;
  }

  80% {
    opacity: 1;
    transform: scale3d(1.2625,1.2625,1.2625) translate3d(0, -12px, 0);
    transform-origin: top;
  }
  100% {
    opacity: .1;
    transform: scale3d(1.35,1.35,1.35) translate3d(0, -15px, 0);
    transform-origin: top;
  }
}






#heada div {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-size: cover;
  will-change: opacity;
}

#heada div:first-child {
  z-index: 10;
}
#heada div:last-child {
  z-index: 1;
}

/* social icons hover */

footer svg:hover circle,
footer svg:hover path,
footer svg:hover g circle {
  transition: fill ease-in 0.25s;
}

footer svg:hover circle {
  fill: var(--color-leaf);
}

footer svg:hover path {
  fill: rgb(var(--color-dusk-rgb-dark));
}

/* insta bug group */
footer svg:hover g circle {
  fill: rgb(var(--color-dusk-rgb-dark));
}

.slide-right {
  position: relative;
}

/* accent img targets animation rotation */

img.accent {
  width: 100%;
  max-width: 140px;
  max-height: 140px;
  position: absolute;
  z-index: 20;
  right: -70px;
  top: -70px;
  opacity: 0.5;
  transform: rotate(60deg); /* default */
}

img.accent.merry-go-round,
.merry-go-round {
  animation-name: mgr;
  animation-duration: 3s;
  animation-fill-mode: forwards;
}

@keyframes mgr {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(60deg);
  } /* prevents jump back to 0deg */
}

.mountain-solid {
  width: 100%;
  max-width: 900px;
  z-index: 2;
}

/*z-indexes */
.wrapper.target {
  position: relative;
  z-index: 3;
}

.container .wrapper {
  position: relative;
  z-index: 3;
}

/* fix header -- full width */
@media (max-height: 720px) {
  .breaker19 {
    display: none;
  }
  .words {
    max-width: 952px;
    /* position: relative; */
  }

  .words h1 {
    margin-top: 0;
  }

  #heada {
    height: 90vh;
  }
}
