/* ==========================================================================
   BAR3AM — Final CTA  (Figma 2475:2379 · panel 2475:2380)
   Owns: .cta*   — no other section may use this prefix.
   Every desktop value below is taken verbatim from get_design_context.
   ========================================================================== */

.cta {
  position: relative;
  /* 2475:2379 — pt 20 / pb 50 */
  padding-block: 20px 50px;

  /* Deep navy ink Figma paints with (#0A336B): chip label + panel shadow.
     Not a library token — derived from --c-navy-fig so no hex is hardcoded. */
  --cta-ink: color-mix(in srgb, var(--c-navy-fig) 87%, black);
  /* Dark green the whatsapp shadow uses (#0D592E). */
  --cta-green-ink: color-mix(in srgb, var(--c-green-fig) 53%, black);
}

/* ---- Panel (2475:2380) --------------------------------------------------
   1152 × 380, radius 28, shadow 0 14 30 rgba(8,51,107,.3),
   gradient linear-gradient(145.99deg, #0B3D7A 0%, #135BB0 74.627%).
   Content sits 78px below the panel top; min-height reproduces the 380px box
   without risking a clip if the copy reflows.
   -------------------------------------------------------------------------- */
.cta__panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-block-size: 380px;
  padding-block: 78px 40px;
  padding-inline: 24px;
  border-radius: 28px;
  background-image: linear-gradient(
    145.99deg,
    var(--c-navy-fig) 0%,
    var(--c-primary) 74.627%
  );
  box-shadow: 0 14px 30px color-mix(in srgb, var(--cta-ink) 30%, transparent);
}

/* ---- Decorations --------------------------------------------------------
   Both are painted at 85% in Figma, bleeding off opposite panel corners.
   -------------------------------------------------------------------------- */
.cta__deco {
  position: absolute;
  z-index: 0;
  display: block;
  border-radius: 50%;
  opacity: 0.85;
  pointer-events: none;
}

/* 2475:2381 — 190px green disc, −70 / −80 off the visual top-left corner */
.cta__deco--circle {
  inline-size: 190px;
  block-size: 190px;
  inset-block-start: -80px;
  inset-inline-end: -70px;
  background: var(--c-green-fig);
}

/* 2475:2382 — 140px yellow ring, 14px stroke, off the visual bottom-right */
.cta__deco--ring {
  inline-size: 140px;
  block-size: 140px;
  inset-block-end: -60px;
  inset-inline-start: -48px;
  background: none;
  border: 14px solid var(--c-yellow-fig);
}

/* ---- Content (2475:2383) ------------------------------------------------ */
.cta__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  inline-size: 100%;
  max-inline-size: 680px;
  text-align: center;
}

/* ---- Urgency chip (2475:2384) ------------------------------------------
   #FFC93D, radius 5, padding 7/16, 13px bold on #0A336B, 16px clock icon.
   -------------------------------------------------------------------------- */
.cta__chip {
  block-size: auto;
  padding-block: 7px;
  padding-inline: 16px;
  gap: 8px;
  border-radius: 5px;
  background: var(--c-yellow-fig);
  color: var(--cta-ink);
  font-size: 13px;
  line-height: 1;
}

.cta__chip-icon {
  inline-size: 16px;
  block-size: 16px;
  flex: none;
}

/* ---- Title (2475:2389) — 30px bold, single line at 1280 ----------------- */
.cta__title {
  font-size: 30px;
  font-weight: var(--fw-bold);
  line-height: 1.2;
  color: var(--c-text-on-dark);
}

.cta__accent { color: var(--c-yellow-fig); }

/* ---- Paragraph (2475:2390) — 16px medium, 1.65, white 88% -------------- */
.cta__text {
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: 1.65;
  color: color-mix(in srgb, var(--c-text-on-dark) 88%, transparent);
}

.cta__text strong {
  color: var(--c-yellow-fig);
  font-weight: var(--fw-bold);
}

/* ---- Buttons (2475:2391) ------------------------------------------------
   Figma uses 10px-radius rectangles, NOT pills — the pill comes from the
   shared .btn, so it is overridden here rather than in base.css.
   -------------------------------------------------------------------------- */
.cta__actions {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.cta__btn {
  block-size: 50px;
  gap: 10px;
  border-radius: 10px;
}

/* 2475:2396 — whatsapp: #21A859, px 28, 17px label, 22px glyph */
.cta__btn--wa {
  padding-inline: 28px;
  font-size: 17px;
  background: var(--c-green-fig);
  color: var(--c-text-on-dark);
  box-shadow: 0 8px 16px color-mix(in srgb, var(--cta-green-ink) 40%, transparent);
}

.cta__btn--wa svg {
  inline-size: 22px;
  block-size: 22px;
}

.cta__btn--wa:hover,
.cta__btn--wa:focus-visible {
  background: color-mix(in srgb, var(--c-green-fig) 88%, black);
}

/* 2475:2392 — phone: white 8% fill, 1.5px white 50% border, px 24, 16px label */
.cta__btn--tel {
  padding-inline: 24px;
  font-size: var(--fs-body);
  color: var(--c-text-on-dark);
  background: color-mix(in srgb, var(--c-text-on-dark) 8%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--c-text-on-dark) 50%, transparent);
}

.cta__btn--tel svg {
  inline-size: 20px;
  block-size: 20px;
}

.cta__btn--tel:hover,
.cta__btn--tel:focus-visible {
  background: color-mix(in srgb, var(--c-text-on-dark) 18%, transparent);
}

/* ==========================================================================
   Responsive — Figma has no breakpoints below 1280; these are ours.
   ========================================================================== */
@media (max-width: 900px) {
  .cta__panel {
    min-block-size: 0;
    padding-block: 60px;
  }

  .cta__title { font-size: 26px; }

  .cta__deco--circle {
    inline-size: 150px;
    block-size: 150px;
    inset-block-start: -64px;
    inset-inline-end: -54px;
  }

  .cta__deco--ring {
    inline-size: 112px;
    block-size: 112px;
    border-width: 11px;
    inset-block-end: -48px;
    inset-inline-start: -38px;
  }
}

@media (max-width: 640px) {
  .cta {
    padding-block: 16px 40px;
  }

  .cta__panel {
    padding-block: 48px;
    padding-inline: 20px;
    border-radius: var(--r-xl);
  }

  .cta__title { font-size: 22px; }
  .cta__text  { font-size: 15px; }

  .cta__actions {
    flex-direction: column;
    align-items: stretch;
    inline-size: 100%;
    gap: 12px;
  }

  .cta__btn {
    inline-size: 100%;
    padding-inline: 18px;
  }

  .cta__btn--wa { font-size: var(--fs-body); }
}
