/* ===== Nexfon: service overview section =====
   A reusable long-form text section: one section heading plus a grid of
   sub-headings and prose. It is deliberately self-contained — its own colour,
   type and spacing tokens, no dependency on campaign.css or main.css — so it can
   be dropped onto any page, including the static-HTML ones that never enqueue
   main.css. */
.nexfon-overview {
  --overview-accent: var(--primary, #6c4099);
  --overview-text: var(--campaign-text, #101828);
  --overview-body: rgba(26, 18, 46, 0.72);

  position: relative;
  padding: 72px 0 92px;
  color: var(--overview-text);
  direction: rtl;
  text-align: right;
}

.nexfon-overview[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

/* Background variants, so the section can sit against whatever comes before it. */
.nexfon-overview.is-soft {
  background: linear-gradient(180deg, #fbf9ff 0%, #ffffff 100%);
}

.nexfon-overview.is-white {
  background: #ffffff;
}

.nexfon-overview.is-tint {
  background: #f6f4fb;
}

.nexfon-overview.is-plain {
  background: transparent;
}

/* Follows the logo strip, which ends tight, so the section opens the gap itself. */
.campaign-main .nexfon-overview {
  padding-top: 58px;
}

.nexfon-overview-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.nexfon-overview-head {
  max-width: 820px;
  margin: 0 auto 54px;
  text-align: center;
}

.nexfon-overview-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--overview-accent);
}

.nexfon-overview-kicker::before,
.nexfon-overview-kicker::after {
  content: "";
  width: 30px;
  height: 3px;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.45;
}

.nexfon-overview-title {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 900;
  line-height: 1.45;
  color: var(--overview-text);
}

.nexfon-overview-lead {
  margin: 22px 0 0;
  font-size: 1.05rem;
  line-height: 2.1;
  color: rgba(26, 18, 46, 0.76);
}

.nexfon-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px 56px;
}

/* One long column reads better than a lopsided two-column grid. */
.nexfon-overview.is-single-column .nexfon-overview-grid {
  grid-template-columns: minmax(0, 1fr);
  max-width: 820px;
  margin: 0 auto;
}

.nexfon-overview-item h3 {
  margin: 0 0 14px;
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1.6;
  color: var(--overview-text);
}

/* The rule sits on the inline-start edge, so it follows the section's direction
   without needing a separate RTL override. */
.nexfon-overview-item h3::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 3px;
  margin-inline-end: 12px;
  vertical-align: middle;
  border-radius: 99px;
  background: var(--overview-accent);
}

.nexfon-overview-item p {
  margin: 0;
  font-size: 0.99rem;
  line-height: 2.15;
  color: var(--overview-body);
  text-align: justify;
}

@media (max-width: 860px) {
  .nexfon-overview {
    padding: 56px 0 68px;
  }

  .campaign-main .nexfon-overview {
    padding-top: 42px;
  }

  .nexfon-overview-head {
    margin-bottom: 40px;
  }

  .nexfon-overview-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .nexfon-overview-lead {
    font-size: 1rem;
    line-height: 2;
  }

  /* Justified text opens ugly word gaps once the column is this narrow. */
  .nexfon-overview-item p {
    text-align: start;
  }
}
