/*
 * Partner With Us band above the footer.
 *
 * Full-bleed photograph with a left-to-right wash so the copy, which sits on
 * the left, always lands on the dark end. The lime bar on the left edge is the
 * same mark as the page-header wedge, just standing rather than sitting.
 */

.footer-cta {
  position: relative;
  overflow: hidden;
  min-height: clamp(15rem, 24vw, 18.5rem);
  color: var(--sk-white);
  background-color: var(--sk-black);

  &::before {
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 3;
    width: 4px;
    background: var(--sk-green);
    content: "";
  }

  .eyebrow {
    color: var(--sk-support);
  }

  .button--solid {
    background: var(--sk-support);
    color: var(--sk-black);

    &::after {
      content: "\2192";
    }

    &:hover {
      background: color-mix(in srgb, var(--sk-support) 82%, #000);
      color: var(--sk-black);
    }
  }
}

.footer-cta__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  isolation: isolate;
}

.footer-cta__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 50%;
}

.footer-cta__media::after {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      90deg in oklab,
      #06121c 0%,
      var(--sk-navy) 55%,
      transparent 100%
    );
  content: "";

  @media (min-width: 48rem) {
    background-image: linear-gradient(
        90deg in oklab,
        #06121c 0%,
        var(--sk-navy) 32%,
        transparent 70%
      );
  }
}

.footer-cta__inner {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  min-height: inherit;
  padding-block: clamp(2rem, 8vw, 7.25rem);
}

.footer-cta__copy {
  max-width: 42rem;
}

.footer-cta__heading {
  margin: 0 0 1rem;
  color: var(--sk-white);
  font-size: clamp(2rem, 1.2rem + 2.4vw, 3rem);
}

.footer-cta__body {
  margin: 0 0 1.5rem;
  max-width: 40em;
  color: color-mix(in srgb, var(--sk-white) 92%, transparent);
  font-size: 0.9375rem;
  line-height: 1.55;
}
