/* MARK: Reusable CTA banner */

.calabash-cta-banner {
  padding: 0 0 var(--calabash-section-gap);
  background: var(--calabash-white);
}

.calabash-cta-banner__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px 40px;
  border: 2px solid transparent;
  border-radius: 16px;
  background:
    linear-gradient(var(--calabash-white), var(--calabash-white)) padding-box,
    linear-gradient(to right, var(--calabash-company-turquoise) 0%, var(--calabash-white) 50%) border-box;
  box-shadow: 0 16px 40px rgb(6 44 79 / 10%);
  padding: 36px 40px;
}

.calabash-cta-banner__inner.has-features {
  display: grid;
  grid-template-columns: 43fr 11fr 11fr 11fr 14fr 10fr;
  grid-template-areas: "copy item1 item2 item3 actions accent";
  align-items: stretch;
  gap: 0 28px;
  overflow: hidden;
  padding: 0;
}

/* MARK: Copy (eyebrow/heading/description) */

.calabash-cta-banner__copy {
  position: relative;
  z-index: 1;
  flex: 2 1 320px;
  min-width: 0;
}

.has-features .calabash-cta-banner__copy {
  grid-area: copy;
  padding: 46px 32px 46px 40px;
}

.calabash-cta-banner__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 10px;
  color: var(--calabash-company-orange-a11y);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* MARK: Heading */
.calabash-cta-banner .calabash-cta-banner__copy-content h2 {
  margin: 0;
  color: var(--calabash-navy);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

/* MARK: Desktop layout */
@media (min-width: 1101px) {
  @supports (width: 1cqw) {
    .has-features .calabash-cta-banner__copy {
      container-type: inline-size;
    }

    .calabash-cta-banner .has-features .calabash-cta-banner__copy-content h2 {
      font-size: clamp(1rem, calc(100cqw / (var(--cta-heading-chars, 36) * 0.55)), 1.5rem);
    }
  }
}

.calabash-cta-banner__description {
  margin: 8px 0 0;
  color: var(--calabash-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* MARK: Features */

.calabash-cta-banner__feature {
  display: none;
}

.has-features .calabash-cta-banner__feature {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 34px 10px;
  text-align: center;
}

.calabash-cta-banner__feature--1 {
  grid-area: item1;
}

.calabash-cta-banner__feature--2 {
  grid-area: item2;
}

.calabash-cta-banner__feature--3 {
  grid-area: item3;
}

.calabash-cta-banner__feature-icon {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1.5px solid rgba(69, 190, 225, 0.3);
  border-radius: 50%;
  background: var(--calabash-turquoise-08);
}

.calabash-cta-banner__feature-icon img {
  display: block;
  width: 26px;
  height: 26px;
}

.calabash-cta-banner__feature-title {
  display: block;
  color: var(--calabash-navy);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.25;
}

.calabash-cta-banner__feature-description {
  display: block;
  color: var(--calabash-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

/* MARK: Actions */

.calabash-cta-banner__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.has-features .calabash-cta-banner__actions {
  grid-area: actions;
  padding: 34px 4px;
}

.calabash-cta-banner__actions .calabash-ora-solid-button,
.calabash-cta-banner__actions .calabash-ora-light-button {
  white-space: nowrap;
}

/* MARK: Accent */

.calabash-cta-banner__accent {
  display: none;
}

.has-features .calabash-cta-banner__accent {
  position: relative;
  grid-area: accent;
  display: block;
}

.has-features .calabash-cta-banner__accent img {
  display: block;
  position: absolute;
  top: 50%;
  right: 0;
  width: auto;
  max-width: 100%;
  height: 180%;
  opacity: 1;
  transform: translate(30%, -50%) rotate(40deg);
}

/* MARK: Tablet layout */

@media (max-width: 1100px) {
  .calabash-cta-banner__inner {
    padding: 32px;
  }

  .calabash-cta-banner__inner.has-features {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas:
      "copy copy copy"
      "item1 item2 item3"
      "actions actions actions"
      "accent accent accent";
    gap: 0;
  }

  .has-features .calabash-cta-banner__copy {
    padding: 32px;
  }

  .has-features .calabash-cta-banner__actions {
    flex-direction: row;
    justify-content: center;
    padding: 28px 20px;
  }

  .has-features .calabash-cta-banner__actions .calabash-ora-solid-button,
  .has-features .calabash-cta-banner__actions .calabash-ora-light-button {
    min-width: 210px;
  }

  .has-features .calabash-cta-banner__accent {
    height: 90px;
  }

  .has-features .calabash-cta-banner__accent img {
    top: 0;
    right: auto;
    left: 50%;
    height: 260%;
    opacity: 0.15;
    transform: translateX(-50%) rotate(40deg);
  }
}

@media (max-width: 760px) {
  .calabash-cta-banner__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .calabash-cta-banner__actions {
    width: 100%;
  }

  .calabash-cta-banner__actions .calabash-ora-solid-button,
  .calabash-cta-banner__actions .calabash-ora-light-button {
    width: 100%;
    justify-content: center;
  }

  .calabash-cta-banner__inner.has-features {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "item1"
      "item2"
      "item3"
      "actions";
  }

  .has-features .calabash-cta-banner__actions {
    flex-direction: column;
  }

  .has-features .calabash-cta-banner__accent {
    position: absolute;
    inset: 0;
    z-index: 0;
    height: auto;
  }

  .has-features .calabash-cta-banner__accent img {
    top: 50%;
    left: 50%;
    right: auto;
    height: 45%;
    transform: translate(-50%, -50%) rotate(40deg);
  }
}
