/* Hero Section: theme intro on the left, over the background image */
/* --theme-hero-color: set inline from the color option, Poseidon when no
   colour is picked; the gradient fades it out over the image. */
.theme-hero {
  --theme-hero-color: var(--brand-poseidon);
  position: relative;
  overflow: hidden;
  background: var(--theme-hero-color);
  display: flex;
  flex-direction: column;
  min-height: 720px;
}

.theme-hero .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Solid on top for the text on mobile, fades left to right on desktop */
.theme-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    to top,
    var(--theme-hero-color) 30%,
    color-mix(in srgb, var(--theme-hero-color) 60%, transparent) 65%,
    color-mix(in srgb, var(--theme-hero-color) 20%, transparent) 100%
  );
  z-index: 1;
}

.theme-hero .max-width {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.theme-hero .max-width .inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 48px;
}

.theme-hero .hero-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  gap: 32px;
  max-width: 800px;
}

.theme-hero .section-title {
  margin-bottom: 0;
}

.theme-hero .section-title__heading {
  margin-bottom: 0;
  max-width: 800px;
  text-wrap: balance;
}

.theme-hero .hero-description {
  color: var(--brand-off-white);
  font: 400 16px/150% var(--font-ideal-sans-regular), sans-serif;
  margin-top: auto;
}

.theme-hero .hero-description p {
  font-size: inherit;
}

.theme-hero .hero-description p:last-child {
  margin-bottom: 0;
}

.theme-hero .hero-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
}

.theme-hero .hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--brand-off-white);
  font: 400 16px/150% var(--font-ideal-sans-regular), sans-serif;
  hyphens: none;
}

.theme-hero .hero-points .check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 3px;
  color: var(--brand-blue-ivy);
  background: var(--brand-off-white);
  font-size: 12px;
}

@media (min-width: 768px) {
  .theme-hero {
    min-height: 560px;
  }

  .theme-hero::before {
    background-image: linear-gradient(
      to right,
      var(--theme-hero-color) 7.73%,
      transparent 100%
    );
  }

  .theme-hero .hero-content {
    flex: 1;
    max-width: 500px;
  }

  .theme-hero .hero-points li {
    font-size: 18px;
  }

  .theme-hero .hero-description {
    margin-top: 0;
    font-size: 20px;
  }
}

@media (min-width: 1080px) {
    .theme-hero::before {
    background-image: linear-gradient(
      to right,
      var(--theme-hero-color) 7.73%,
      transparent 69.61%
    );
  }

  .theme-hero .hero-content {
    flex: 1;
    max-width: 930px;
  }
}
/* Hero Section End */
