
/* [04] HERO */
/* =========================================================
   HERO
   ========================================================= */

.vp-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  width: 100%;
  min-height: 650px;

  background-color: #f5f7ee;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;

  color: #153a2b;
  margin: 0;
}

/*
 * Overlay for text readability.
 * Stronger on the left, transparent on the right.
 */
.vp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background: linear-gradient(
    90deg,
    rgba(248, 250, 243, 0.98) 0%,
    rgba(248, 250, 243, 0.9) 27%,
    rgba(248, 250, 243, 0.48) 46%,
    rgba(248, 250, 243, 0.08) 66%,
    rgba(248, 250, 243, 0) 100%
  );
}

.vp-hero__inner {
  position: relative;
  z-index: 1;

  min-height: 650px;
  display: flex;
  align-items: center;

  padding-top: clamp(62px, 7vw, 105px);
  padding-bottom: 142px;
}

.vp-hero__content {
  position: relative;
  z-index: 2;

  width: min(48%, 610px);
  max-width: 610px;

  padding-left: clamp(0px, 1vw, 12px);
}

.vp-hero__eyebrow {
  margin: 0 0 14px;

  color: #65846f;

  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vp-hero__title {
  max-width: 620px;
  margin: 0;

  color: #086338;

  font-size: clamp(2.7rem, 5.1vw, 5.15rem);
  font-weight: 750;
  line-height: 1.06;
  letter-spacing: -0.045em;

  text-wrap: balance;
}

.vp-hero__description {
  max-width: 500px;
  margin: 25px 0 0;

  color: #5f665f;

  font-size: clamp(1rem, 1.4vw, 1.18rem);
  font-weight: 450;
  line-height: 1.65;
}

.vp-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 27px;

  margin: 50px 0;
}

.vp-hero__primary {
  min-width: 145px;
  min-height: 54px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 28px;

  border: 1px solid #075f36;
  border-radius: 8px;

  background: #075f36;
  color: #ffffff;

  font-weight: 700;
  text-decoration: none;

  box-shadow: 0 12px 30px rgba(7, 95, 54, 0.18);

  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.vp-hero__primary:hover,
.vp-hero__primary:focus-visible {
  background: #054e2d;
  color: #ffffff;

  transform: translateY(-2px);

  box-shadow: 0 16px 34px rgba(7, 95, 54, 0.24);
}

.vp-hero__secondary {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  color: #5c645e;

  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;

  transition: color 180ms ease;
}

.vp-hero__secondary:hover,
.vp-hero__secondary:focus-visible {
  color: #075f36;
}

.vp-hero__play {
  width: 38px;
  height: 38px;

  display: inline-grid;
  place-items: center;

  flex: 0 0 38px;
  overflow: hidden;

  border: 1.5px solid rgba(7, 95, 54, 0.46);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.7);
  color: #075f36;

  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.vp-hero__secondary:hover .vp-hero__play,
.vp-hero__secondary:focus-visible .vp-hero__play {
  background: #ffffff;
  transform: scale(1.05);
}

.vp-hero__play svg {
  display: block;

  width: 16px;
  height: 16px;

  min-width: 16px;
  min-height: 16px;
  max-width: 16px;
  max-height: 16px;

  fill: currentColor;
  stroke: none;
}

/* =========================================================
   Benefits bar
   ========================================================= */

.vp-hero__benefits {
  position: absolute;
  z-index: 3;

  left: 0;
  right: 0;
  bottom: 28px;

  min-height: 88px;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;

  padding: 16px clamp(20px, 3vw, 42px);

  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 17px;

  background: rgba(255, 255, 255, 0.9);

  box-shadow: 0 17px 45px rgba(50, 68, 47, 0.1);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.vp-hero__benefit {
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;

  padding: 6px 22px;
}

.vp-hero__benefit + .vp-hero__benefit {
  border-left: 1px solid rgba(21, 92, 58, 0.09);
}

.vp-hero__benefit-icon {
  width: 36px;
  height: 36px;

  display: grid;
  place-items: center;

  flex: 0 0 36px;

  color: #168353;
}

.vp-hero__benefit-icon svg {
  display: block;

  width: 30px;
  height: 30px;

  min-width: 30px;
  min-height: 30px;
  max-width: 30px;
  max-height: 30px;

  overflow: visible;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vp-hero__benefit-copy {
  min-width: 0;

  display: flex;
  flex-direction: column;

  color: #647068;

  font-size: 0.78rem;
  line-height: 1.35;
}

.vp-hero__benefit-copy strong {
  color: #176d49;

  font-size: 0.82rem;
  font-weight: 750;
}

/* =========================================================
   Large tablet
   ========================================================= */

@media (max-width: 1050px) {
  .vp-hero {
    background-position: 62% center;
  }

  .vp-hero__content {
    width: min(52%, 610px);
  }

  .vp-hero__benefit {
    padding-inline: 12px;
  }
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 820px) {
  .vp-hero {
    min-height: 680px;
    background-position: 65% center;
  }

  .vp-hero::before {
    background: linear-gradient(
      90deg,
      rgba(248, 250, 243, 0.98) 0%,
      rgba(248, 250, 243, 0.9) 42%,
      rgba(248, 250, 243, 0.42) 72%,
      rgba(248, 250, 243, 0.1) 100%
    );
  }

  .vp-hero__inner {
    min-height: 680px;
    align-items: flex-start;

    padding-top: 70px;
    padding-bottom: 150px;
  }

  .vp-hero__content {
    width: min(72%, 610px);
    max-width: 610px;

    padding-left: 0;
    margin: 0;

    text-align: left;
  }

  .vp-hero__title,
  .vp-hero__description {
    margin-left: 0;
    margin-right: 0;
  }

  .vp-hero__actions {
    justify-content: flex-start;
  }

  .vp-hero__benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vp-hero__benefit:nth-child(3) {
    border-left: 0;
  }

  .vp-hero__benefit:nth-child(n + 3) {
    border-top: 1px solid rgba(21, 92, 58, 0.09);
  }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 520px) {
  .vp-hero {
    min-height: auto;
    background-position: 68% top;
  }

  .vp-hero::before {
    background: rgba(248, 250, 243, 0.78);
  }

  .vp-hero__inner {
    min-height: 760px;
    display: block;

    padding-top: 52px;
    padding-bottom: 310px;
  }

  .vp-hero__content {
    width: 100%;
    max-width: none;

    padding-left: 0;

    text-align: center;
  }

  .vp-hero__eyebrow {
    margin-bottom: 12px;
  }

  .vp-hero__title {
    font-size: clamp(2.35rem, 12vw, 3.4rem);
  }

  .vp-hero__description {
    margin: 19px auto 0;

    font-size: 1rem;
  }

  .vp-hero__actions {
    flex-direction: column;
    justify-content: center;
    gap: 18px;

    margin-top: 27px;
  }

  .vp-hero__primary {
    width: 100%;
    max-width: 270px;
  }

  .vp-hero__benefits {
    left: 15px;
    right: 15px;
    bottom: 20px;

    grid-template-columns: 1fr;

    padding: 10px 18px;
  }

  .vp-hero__benefit {
    justify-content: flex-start;

    padding: 13px 8px;
  }

  .vp-hero__benefit + .vp-hero__benefit {
    border-left: 0;
    border-top: 1px solid rgba(21, 92, 58, 0.09);
  }
}