/**
 * cta block — the unified call-to-action band (global chrome above the footer).
 *
 * Light-background CTA — contrasts with the dark footer below.
 * Left–right layout: headline + description on the left, button + trust
 * indicators on the right. Stacks vertically on mobile.
 */

@layer mm-block {
  .mm-x-quote.mm-x-quote-cta {
    color: #1a1d23;
    background: #f7f8fa;
    border-top: 1px solid #e2e5ea;
    border-bottom: 1px solid #e2e5ea;
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .mm-x-quote-cta .mm-x-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    max-width: 1060px;
  }

  /* ── Left column: text content ────────────────────────────────────── */
  .mm-x-quote-cta .mm-x-cta-content {
    flex: 1;
    min-width: 0;
  }

  .mm-x-quote.mm-x-quote-cta .mm-x-eyebrow {
    display: inline-block;
    margin-bottom: 22px;
    color: var(--mmx-red);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .mm-x-quote.mm-x-quote-cta .mm-x-section-title {
    margin: 0;
    max-width: 540px;
    color: #111318;
    font-size: clamp(28px, 3.8vw, 44px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.01em;
  }

  .mm-x-quote.mm-x-quote-cta .mm-x-section-lead {
    max-width: 520px;
    margin: 18px auto 0;
    margin-left: 0;
    color: #5c6370;
    font-size: 16px;
    line-height: 1.6;
  }

  /* ── Right column: button + trust badges ──────────────────────────── */
  .mm-x-quote-cta .mm-x-cta-right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .mm-x-quote.mm-x-quote-cta .mm-x-cta-right .mm-x-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    padding: 0 40px;
    border: 0;
    border-radius: 8px;
    background: var(--mmx-red);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .02em;
    box-shadow: 0 6px 18px rgba(215, 25, 32, .24);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  }

  .mm-x-quote.mm-x-quote-cta .mm-x-cta-right .mm-x-btn:hover {
    background: var(--mmx-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(215, 25, 32, .36);
  }

  /* Arrow icon inside the button */
  .mm-x-quote.mm-x-quote-cta .mm-x-cta-right .mm-x-btn::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat;
    mask-size: contain;
    transition: transform .2s ease;
  }

  .mm-x-quote.mm-x-quote-cta .mm-x-cta-right .mm-x-btn:hover::after {
    transform: translateX(3px);
  }

  /* Trust badges */
  .mm-x-cta-trust {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .mm-x-cta-trust-item {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #7d8492;
    font-size: 13px;
    white-space: nowrap;
  }

  .mm-x-cta-trust-item svg {
    flex-shrink: 0;
    color: var(--mmx-red);
  }
}

@layer mm-responsive {
  /* ── Responsive ───────────────────────────────────────────────────── */
  @media (max-width: 860px) {
    .mm-x-quote-cta .mm-x-cta-inner {
      flex-direction: column;
      text-align: center;
      gap: 32px;
    }
    .mm-x-quote-cta .mm-x-cta-content {
      text-align: center;
    }
    .mm-x-quote.mm-x-quote-cta .mm-x-section-title {
      margin: 0 auto;
    }
    .mm-x-quote.mm-x-quote-cta .mm-x-section-lead {
      margin: 16px auto 0;
    }
  }
}

@layer mm-responsive {
  @media (max-width: 640px) {
    .mm-x-quote.mm-x-quote-cta {
      padding-top: 56px;
      padding-bottom: 56px;
    }
    .mm-x-quote-cta .mm-x-cta-inner {
      gap: 28px;
    }
    .mm-x-quote.mm-x-quote-cta .mm-x-eyebrow {
      margin-bottom: 18px;
      font-size: 12px;
    }
    .mm-x-quote.mm-x-quote-cta .mm-x-section-title {
      font-size: clamp(24px, 6.5vw, 32px);
    }
    .mm-x-quote.mm-x-quote-cta .mm-x-section-lead {
      font-size: 15px;
      margin-top: 14px;
    }
    .mm-x-quote.mm-x-quote-cta .mm-x-cta-right .mm-x-btn {
      width: 100%;
      justify-content: center;
      min-height: 50px;
    }
    .mm-x-cta-trust {
      gap: 16px;
    }
    .mm-x-cta-trust-item {
      font-size: 12px;
    }
  }
}

@layer mm-responsive {
  @media (max-width: 400px) {
    .mm-x-quote.mm-x-quote-cta .mm-x-cta-right .mm-x-btn {
      width: 100%;
    }
    .mm-x-cta-trust {
      flex-direction: column;
      align-items: center;
      gap: 10px;
    }
  }
}
