/* ============ HERO ============ */
.hero {
  color: var(--color-white);
}

.hero__container {
  display: flex;
  position: relative;
  align-items: center;
  max-width: 1440px;
  min-height: 39.75rem;
  background-image: url("../images/hero.jpg");
  background-size: cover;
  background-position: center;
  margin: 0 auto;
}

/* Opaque behind the copy on the left, clear over the photo on the right. */
.hero__container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, rgba(0, 19, 40, 0) 1.44%, #001328 100%);
}

.hero__inner {
  position: relative;
  padding: 4rem;
  width: 100%;
}

.hero__title {
  max-width: 14ch;
  font-size: var(--font-size-h1);
  line-height: var(--line-height-h1);
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  max-width: 46ch;
  font-size: var(--font-size-body);
  line-height: var(--line-height-normal);
  margin-bottom: 2rem;
}

.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero__container {
    min-height: 32rem;
    padding: 3rem 1.5rem;
  }

  /* The subject sits right of centre, so once the text stacks over the full
     width the overlay has to run top-to-bottom instead. */
  .hero__container::before {
    background: linear-gradient(
      180deg,
      rgba(2, 31, 63, 0.7) 0%,
      rgba(2, 31, 63, 0.85) 100%
    );
  }

  .hero__inner {
    padding: 0;
  }

  .hero__title,
  .hero__subtitle {
    max-width: none;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }
}
