/* Section CTA
--------------------------------------------- */

.section-cta {
  position: relative;
  width: 100%;
  height: 50vh;

  img {
    position: absolute;
    inset: 0;
    z-index: -1;
    display: block;
    object-fit: cover;
    width: 100%;
    height: 100%;
    z-index: -1;
  }

  .content {
    width: 100%;
    height: 100%;
    background-image: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.75) 0,
      rgba(0, 0, 0, 0.25) 100%
    );
    color: #fff;

    > .wrapper {
      height: 100%;
      max-width: var(--max-w-xl);
      margin: 0 auto;
      padding: 4.5rem 24px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .title {
      margin-bottom: 1.5rem;
      font-size: var(--font-2xl);
      line-height: 1.2;
      font-weight: bold;
    }

    .subtitle {
      margin-bottom: 1.5rem;
    }

    .cta a {
      color: #fff;
      text-decoration: underline;
      text-underline-offset: 0.5rem;
    }
  }
}

/* Dialog
--------------------------------------------- */

.dialog {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background-color: rgba(0, 0, 0, 0.25);

  align-items: center;
  justify-content: center;

  .dialog-content {
    margin: 24px;
    background-color: var(--primary-950);
    color: #fff;

    > .wrapper {
      max-width: var(--max-w-md);
      margin: 0 auto;
      padding: 24px;
    }

    .title {
      font-size: var(--font-xl);
      font-weight: 500;
      line-height: 1.2;
      margin-bottom: 1.5rem;
    }

    .actions {
      margin-top: 1.5rem;
    }
  }
}

.dialog.active {
  display: flex;
}

body.dialog-active {
  overflow: hidden;
}
