/* Generated by src/build.js (rtlcss) from css/components/cta.css — LTR version, do not edit: edit css/components/cta.css and rebuild */
/* ==========================================================================
   cta.css — "شارك معنا نشر رسالة الإسلام" share band (all pages)
   Portal URL + copy button, social links, QR code, calligraphy watermark.
   Copy button state: .cta__copy.is-copied (green, check icon) — js/components/cta.js
   ========================================================================== */

/* --------------------------------------------------------------------------
   Section shell + watermark
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  background: linear-gradient(-180deg, var(--color-cream-200) 0%, var(--color-sky-50) 100%);
}

.cta__wm {
  position: absolute;
  z-index: -1;
  bottom: -110px;
  left: -110px;
  width: 420px;
  height: auto;
  opacity: 0.07;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 20%, transparent 100%);
}

/* Desktop row: [text group] | divider | [QR] */
.cta__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 44px;
  align-items: stretch;
  justify-content: center;
  max-width: var(--cw, 1180px);
  margin: 0 auto;
  padding: 112px 24px;
}

.cta__group {
  display: flex;
  flex: 1 1 520px;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  max-width: 780px;
  min-width: 0;
}

/* --------------------------------------------------------------------------
   Title
   -------------------------------------------------------------------------- */
.cta__title {
  margin: 0;
  font-family: 'Almarai', 'Cairo', sans-serif;
  font-weight: 800;
  font-size: var(--fs-section-title);
  line-height: 1.3;
  color: var(--color-navy-700);
  text-wrap: balance;
}

.cta__title-accent {
  color: var(--color-blue-500);
}

/* --------------------------------------------------------------------------
   URL box: link pill with copy button · separator · social links
   -------------------------------------------------------------------------- */
.cta__box {
  display: flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  max-width: 100%;
  padding: 0;
  border-radius: 999px;
}

.cta__url {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  min-width: 0;
  padding: 3px;
  background: var(--color-blue-50);
  border: 1px solid var(--color-line-strong);
  border-radius: 999px;
}

.cta__link {
  flex: 0 1 auto;
  min-width: 0;
  padding: 0 16px 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-blue-500);
  unicode-bidi: isolate;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cta__copy {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  height: 44px;
  box-sizing: border-box;
  padding: 0 20px;
  border: 2px solid var(--color-blue-500);
  border-radius: 999px;
  background: var(--color-blue-500);
  color: var(--color-white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.cta__copy.is-copied {
  background: var(--color-success);
  border-color: var(--color-success);
}

/* Hover: same as the copy button of the QR window (header) */
.cta__copy:hover {
  background: var(--hover-cream);
  color: var(--hover-cream-ink);
  border-color: var(--hover-cream-border);
}

.cta__copy:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(59, 117, 150, .25);
}

.cta__copy-icon {
  display: block;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* copy ↔ check icon swap */
.cta__copy-icon--check,
.cta__copy.is-copied .cta__copy-icon--copy {
  display: none;
}

.cta__copy.is-copied .cta__copy-icon--check {
  display: block;
}

.cta__sep {
  flex: none;
  width: 1px;
  height: 28px;
  margin: 0 6px;
  background: var(--color-mist-200);
}

/* Social links */
.cta__socials {
  display: flex;
  flex: none;
  gap: 8px;
}

.cta__soc {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-blue-50);
  border: 1px solid var(--color-line);
  transition: background .2s ease, border-color .2s ease;
}

.cta__soc:hover {
  background: var(--hover-fill);
  border-color: var(--hover-fill);
}

.cta__soc:hover svg {
  fill: var(--color-white);
}

.cta__soc svg {
  display: block;
  flex: none;
  width: 20px;
  height: 20px;
  fill: var(--color-blue-500);
}

/* --------------------------------------------------------------------------
   Gold divider + QR card
   -------------------------------------------------------------------------- */
.cta__divider {
  align-self: stretch;
  width: 1px;
  background: var(--color-line-gold);
}

.cta__qr {
  flex: none;
  align-self: center;
  box-sizing: border-box;
  width: 138px;
  height: 138px;
  padding: 6px;
  background: var(--color-white);
  border: 1px solid var(--color-mist-200);
  border-radius: 18px;
  box-shadow: 0 20px 40px -28px rgba(26, 43, 69, 0.4);
}

.cta__qr img {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

/* --------------------------------------------------------------------------
   Responsive — ≤900px: single centred column (title → QR → URL box)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .cta__wm,
  .cta__divider,
  .cta__sep,
  .cta__copy-label {
    display: none;
  }

  .cta__inner {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 24px;
    padding-top: 88px;
    padding-bottom: 88px;
  }

  /* the group's children join the column directly so they can be re-ordered */
  .cta__group {
    display: contents;
  }

  .cta__title {
    order: 1;
    text-align: center;
  }

  .cta__qr {
    order: 2;
    width: 124px;
    height: 124px;
  }

  .cta__box {
    order: 3;
    flex-direction: column;
    align-self: center;
    gap: 14px;
  }

  .cta__socials {
    justify-content: center;
  }

  /* copy button collapses to a round icon button */
  .cta__copy {
    justify-content: center;
    width: 44px;
    padding: 0;
  }

  .cta__copy-icon {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 640px) {
  .cta__inner {
    padding-top: 72px;
    padding-bottom: 72px;
  }
}

@media (max-width: 560px) {
  .cta__qr {
    width: 120px;
    height: 120px;
  }

  .cta__box {
    align-self: stretch;
  }

  .cta__url {
    box-sizing: border-box;
    width: 100%;
  }

  .cta__link {
    flex: 1;
  }
}
