/* ---------------------------------------------------------------------------
 * theme-cta — Home "Ready" CTA variant (Figma 560:643). Moved out of home.css
 * so the block carries its own stylesheet (see inc/block-assets.php).
 *
 * Only the `.home-cta` variant lives here. The same block also renders
 * `.cta-band` on the interior pages; that variant is still styled in
 * interior.css.
 * ------------------------------------------------------------------------- */

.home-cta {
  display: flex;
  align-items: center;
  background-size: 108.63% 184.52%;
  background-position: 23.05% 93.93%;
  min-height: 755px;
  padding-block: var(--section-pad, 87px);
  border-radius: var(--radius-lg, 11px);
  /* Own fill stack instead of `.overlay-photo-dark`'s (CCD-42). That shared stack
     is shaped for the service cards, whose copy sits ON the bottom edge, so it
     ramps to pure black there — over a 755px band with centred copy it read as a
     heavy vignette. Same three layers, softened: the ramp stops at 0.72 and the
     flat wash drops 0.51 → 0.32, which puts the heading's mid-height at ~59%
     darkened instead of ~77%, and the bottom edge at ~86% instead of 100%. The
     wash matches Figma at 0.51; the client asked for lighter than the mockup. */
  --overlay-layers:
    linear-gradient(180deg, rgba(102, 102, 102, 0) 0%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(180deg, rgba(33, 37, 41, 0) 38%, rgba(33, 37, 41, 0.24) 98%),
    rgba(var(--black-rgb, 0, 0, 0), var(--overlay-wash, 0.2));
  --overlay-wash: 0.32;
}

.home-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 31px;
  text-align: center;
}

.home-cta .mark {
  width: 144px;
  height: auto;
}

.home-cta h2 {
  max-width: 838px;
  margin: 0;
  font-size: clamp(34px, 4.17vw, 80px);
  line-height: 1.1125;
  color: var(--white, #ffffff);
}

.home-cta .text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
}

.home-cta p {
  max-width: 764px;
  margin: 0;
  font-size: 18px;
  line-height: 1.4444;
  color: var(--white, #ffffff);
}

.home-cta .buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 31px;
}
/* --- CTA band on brand (About 690:1312) ---------------------------------- */
.cta-band {
  padding-block: 176px;
  background: var(--brand, #008AF7);
  color: var(--white, #ffffff);
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 88px;
  max-width: calc(1324px + var(--gutter) * 2);
}

.cta-band .mark {
  flex: none;
  width: 266px;
  height: auto;
}

.cta-band .text {
  display: flex;
  flex-direction: column;
  gap: 31px;
  max-width: 970px;
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(32px, 3.33vw, 64px);
  line-height: 1.234;
  color: var(--white, #ffffff);
}

.cta-band .text > p {
  max-width: 819px;
  margin: -14px 0 0;
  font-family: var(--display, system-ui, sans-serif);
  font-size: clamp(18px, 1.25vw, 24px);
  font-weight: 600;
  line-height: 1;
}

.cta-band .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 31px;
}

/* On the brand background the button arrow is white, not blue. */
.cta-band .btn-layout .cnm-icon {
  color: var(--white, #ffffff);
}

/* --- Responsive ---------------------------------------------------------- */

/* The `.buttons` rule was authored in home.css as
   `.home-hero .buttons, .home-cta .buttons` — one rule for two blocks. Split
   per block so each stylesheet stands alone; declarations are unchanged. */
@media (max-width: 767px) {
  .home-cta .buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 16px;
  }

  .home-cta {
    min-height: 0;
  }
}

/* --- Editor mirrors ------------------------------------------------------ *
 * See blocks/theme/hero/theme-hero.css for why these exist. Inert on the front
 * end; the `crush-block` container is declared only in assets/css/editor.css.
 * ------------------------------------------------------------------------- */

@container crush-block (max-width: 767px) {
  .home-cta .buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 16px;
  }

  .home-cta {
    min-height: 0;
  }
}
