/* ==========================================================================
   CTA section: a single rounded panel bridging Industries and Contact —
   heading, supporting line, and the same pill CTA button used in the
   header (reused verbatim, see .cta-button in header.css). Soft brand-blue
   tint fill, no new color introduced (reuses --color-blue-soft).
   ========================================================================== */

.cta {
  padding-block: var(--space-8);
}

.cta__panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-7);
  background: var(--color-blue-soft);
  border-radius: var(--radius-panel);
}

.cta__heading {
  flex: 1 1 320px;
  font-family: var(--font-body);
  font-weight: var(--fw-extrabold);
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: var(--ls-tight);
  color: var(--color-ink);
}

.cta__accent {
  color: var(--color-blue);
}

.cta__desc {
  flex: 1 1 260px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-ink-soft);
  max-width: 32ch;
}

/* .cta-button is display:none by default in header.css (mobile there uses
   cta-button--mobile instead) and only turns on at the 1024px breakpoint.
   This is a standalone reuse of the same button, so it needs to stay
   visible at every width. */
.cta .cta-button {
  display: inline-flex;
  flex-shrink: 0;
}

/* ---- Reveal-on-scroll (see scripts/main.js) ---- */
.cta [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--duration-slow) var(--ease-signature), transform var(--duration-slow) var(--ease-signature);
}

.cta [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cta__panel [data-reveal]:nth-child(1) { transition-delay: 0ms; }
.cta__panel [data-reveal]:nth-child(2) { transition-delay: 80ms; }
.cta__panel [data-reveal]:nth-child(3) { transition-delay: 160ms; }

@media (prefers-reduced-motion: reduce) {
  .cta [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
