/* ==========================================================================
   step-card.css — بطاقة خطوة الطلب (How-to-order step card)
   شركة السرعة المطلقة | كل القيم من tokens.css — RTL.
   3 بطاقات: دائرة رقم تتوسّط الحافة العلوية (متصلة بخط منقّط) + صورة +
   صف عنوان/أيقونة + وصف.
   WC-NOTE: ثابت (static)
   ========================================================================== */

.step-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  position: relative;
}

@media (min-width: 768px) {
  .step-cards {
    flex-direction: row;
    margin-block-start: var(--space-48);
    /* مساحة لنصف دائرة الرقم البارز أعلى البطاقات */
  }

  /* شريحتان منقّطتان: كل واحدة بين دائرتين مع نقطة مصمتة في طرفيها
     (فرقم 2 بالمنتصف له نقطة يمين وشمال) — المسافات تقريبية (اضبط left/right) */
  .step-cards::before,
  .step-cards::after {
    content: "";
    position: absolute;
    top: 0;
    height: 8px;
    transform: translateY(-50%);
    background:
      radial-gradient(circle, var(--color-primary) 3.5px, transparent 4px) left center / 8px 8px no-repeat,
      radial-gradient(circle, var(--color-primary) 3.5px, transparent 4px) right center / 8px 8px no-repeat,
      repeating-linear-gradient(to right, var(--color-primary) 0 6px, transparent 6px 10px) center / 100% 1.5px no-repeat;
    z-index: 1;
  }

  /* الشريحة بين الخطوتين 1 و2 */
  .step-cards::before {
    left: 54%;
    right: 20%;
  }

  /* الشريحة بين الخطوتين 2 و3 */
  .step-cards::after {
    left: 20%;
    right: 54%;
  }
}

.step-card {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 499px;
  padding: var(--space-48) var(--space-32) var(--space-24);
  border-radius: var(--radius-lg);
  border: var(--border-width) solid var(--color-divider);
  background: var(--color-surface);
  box-shadow: var(--shadow-card-glow);
}

/* رقم الخطوة — دائرة بيضاء تتوسّط الحافة العلوية بتوهّج */
.step-card__num {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  box-shadow: var(--shadow-icon);
  color: var(--color-gradient-end);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  z-index: 2;
}

/* صورة الخطوة */
.step-card__img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* أسفل البطاقة — كتلة النص (يمين) + الأيقونة (يسار) في صف واحد */
.step-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-16);
  width: 100%;
}
.step-card__text-block {
  flex: 1;
}
.step-card__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--color-dark);
  text-align: right;
  margin-block-end: var(--space-8);
}

/* أيقونة الخطوة — مربّع مستدير بتوهّج */
.step-card__icon {
  flex-shrink: 0;
  width: 78px;
  height: 78px;
  padding: var(--space-16);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-icon);
}
.step-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.step-card__text {
  font-size: var(--fs-base);
  color: var(--color-text-muted);
  text-align: right;
  line-height: var(--lh-base);
}
