/* ============================================================
   COMPONENT: Final CTA (Home)
   FILE: assets/css/final-cta.css
   Depends on: final-cta.html, surfaces.css (.surface--gradient),
   buttons.css.
   Loaded after map-location.css (Phase 1.0 §6, in build order).

   Surface: `.surface--gradient` (surfaces.css) supplies the
   entire background/text-color treatment untouched — the same
   navy/gold gradient Hero already uses. Only section-level
   spacing and layout are added here, scoped under
   .final-cta__* — nothing here redefines the gradient surface
   itself.

   Buttons: reuse the existing global .btn / .btn--primary /
   .btn--secondary.btn--on-dark / .btn--lg classes from
   buttons.css exactly as Hero's own action row does — no new
   button variant is introduced.

   No new JavaScript: this section has no motion hook of its
   own; the WhatsApp link's href hydration is handled entirely
   by the existing header.js applyGlobalConfig() mechanism
   (already extended at Stage 5.13).

   RTL readiness (Stage 5.14 scope only): logical properties
   (text-align: start, margin-inline / padding-inline) are used
   instead of physical left/right, matching the rest of the
   project's convention — no separate RTL stylesheet or
   breakpoint system is introduced.
   ============================================================ */

.final-cta {
  padding-block: var(--space-10);
  background: var(--color-white);
}

.final-cta__inner {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.final-cta__heading {
  margin: 0 0 var(--space-2);
  color: var(--color-navy);
  font-size: var(--text-h2);
}

.final-cta__subheading {
  margin: 0 0 var(--space-6);
  color: var(--color-dark-gray);
  opacity: 1;
  font-size: var(--text-body);
  line-height: var(--line-height-body);
}

/* ------------------------------------------------------------
   ACTIONS
   Stacked, full-width on mobile for easy tapping; wrap into a
   centered row from tablet up. Matches Hero's own
   .hero__actions responsive convention.
------------------------------------------------------------ */
.final-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-2);
}

.final-cta__action {
  gap: var(--space-1);
}

.final-cta__action-icon {
  display: inline-flex;
}

/* ------------------------------------------------------------
   RESPONSIVE
   Breakpoint values copied from tokens.css's documented
   reference values, same convention every other Home section
   uses.
------------------------------------------------------------ */

@media (min-width: 768px) {
  .final-cta__actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .final-cta__action {
    flex: 0 0 auto;
  }
}

@media (min-width: 1024px) {
  .final-cta {
    padding-block: var(--space-12);
  }
}

/* Small mobile: tighten spacing, no overflow */
@media (max-width: 479px) {
  .final-cta {
    padding-block: var(--space-8);
  }
}
