/* CALL TO ACTION SECTION
   Child selectors are qualified with .cta so this component keeps its own type
   and colour inside pages that apply element resets (the landing page's
   .landing p / .landing h2 / .landing a rules would otherwise win). */
.cta {
  max-width: 120rem;
  margin: auto;
  padding: 0 2.5rem;
  text-align: center;
}

.cta > div {
  padding: 10rem 0 10rem;
  border-top: 0.2rem solid var(--light-gray);
}

.cta .cta--title {
  max-width: 52rem;
  margin: 0 auto 1.6rem;
  font-size: clamp(1.8rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.5;
}

.cta .cta--sub {
  max-width: 48rem;
  margin: 0 auto 3.5rem;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--dark-gray);
}

.cta .btn--cta {
  display: block;
  max-width: max-content;
  margin: auto;
  border-radius: 0.8rem;
  padding: 1rem 1.5rem;
  background-color: #69539b;
  font-size: clamp(1.2rem, 4vw, 1.4rem);

  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  text-decoration: none;
  color: #fff;
}

.cta a:hover {
  text-decoration: underline;
}

/******************************************
/* MEDIA QUERIES FOR RESPONSIVENESS
/*******************************************/
@media screen and (min-width: 768px) {
  .cta .btn--cta {
    border-radius: 3rem;
  }
}

@media screen and (min-width: 1024px) {
  .cta {
    padding: 0rem 2.5rem;
    padding-top: 0;
  }

  .cta .cta--title {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
  }
}
