/* ═══════════════════════════════════════════════════════════════════════════════
   ثيم «rent» — الرئيسية (RD1). يُحمَّل من القالب بـView::on('head').
   يعتمد tokens/base/layout/components — بلا لون خام واحد، فلون المستأجر يسري هنا كلّه.
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ═════════ البطل ═════════ */
.rt-hero {
    background: var(--rt-surface);
    border-bottom: 1px solid var(--rt-line);
}
.rt-hero-grid {
    display: grid;
    gap: var(--rt-space-6);
    padding-block: var(--rt-space-6) var(--rt-space-7);
    align-items: start;
}
@media (min-width: 980px) {
    .rt-hero-grid {
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: var(--rt-space-8);
        padding-block: var(--rt-space-8);
    }
    /* بلا حاسبة (مستأجر لم يسعّر خدماته بعد): عمود واحد بعرض قراءة مريح، لا نصف صفحة فارغ */
    .rt-hero-grid--solo { grid-template-columns: minmax(0, 1fr); }
    .rt-hero-grid--solo .rt-hero-text { max-width: 64ch; } /* بعرض قراءة، ومحاذٍ لبداية الإطار */
}

/* سطر الأرقام الحقيقية فوق العنوان */
.rt-hero-kick {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: var(--rt-space-2) var(--rt-space-4);
    margin: 0 0 var(--rt-space-4);
    color: var(--rt-muted);
    font-size: var(--rt-fs-xs); font-weight: 700;
}
.rt-hero-kick span { display: inline-flex; align-items: baseline; gap: 6px; }
.rt-hero-kick span + span { padding-inline-start: var(--rt-space-4); border-inline-start: 1px solid var(--rt-line); }
.rt-hero-kick b { color: var(--rt-text); font-size: var(--rt-fs-s); }
/* عند الالتفاف على الهاتف يبقى الفاصل الرفيع في أوّل السطر — الفجوة وحدها تكفي */
@media (max-width: 559px) {
    .rt-hero-kick span + span { padding-inline-start: 0; border-inline-start: 0; }
}

.rt-hero h1 {
    margin: 0 0 var(--rt-space-4);
    font-size: var(--rt-fs-display);
    font-weight: 800;
    line-height: 1.15;
    max-width: 22ch;
}
.rt-hero h1 em {
    font-style: normal;
    color: var(--rt-primary-text);
    /* خطّ رفيع تحت الكلمة المفتاحية بدل التظليل */
    box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--rt-primary) 28%, transparent);
}
/* ‎.rt-lead‎ نُقل إلى ‎base.css‎ (تستعمله صفحات المحتوى والمعلومات أيضاً). */
.rt-hero .rt-lead { margin-bottom: var(--rt-space-5); }
.rt-hero-act { display: flex; flex-wrap: wrap; gap: var(--rt-space-3); margin-bottom: var(--rt-space-5); }
@media (max-width: 479px) { .rt-hero-act .rt-btn { flex: 1 1 100%; } }

.rt-hero-trust {
    display: flex; flex-wrap: wrap; gap: var(--rt-space-2) var(--rt-space-5);
    margin: 0; padding: var(--rt-space-4) 0 0;
    list-style: none;
    border-top: 1px solid var(--rt-line);
    color: var(--rt-muted);
    font-size: var(--rt-fs-xs); font-weight: 700;
}
.rt-hero-trust li { display: inline-flex; align-items: center; gap: var(--rt-space-2); }
.rt-hero-trust .ico { color: var(--rt-primary-text); }

/* ═════════ نموذج الطلب / الحاسبة ═════════ */
.rt-calc { align-self: start; }
@media (min-width: 980px) { .rt-calc { position: sticky; top: calc(var(--rt-hdr-h) + var(--rt-space-4)); } }
.rt-calc-head { margin-bottom: var(--rt-space-4); padding-bottom: var(--rt-space-3); border-bottom: 1px solid var(--rt-line); }
.rt-calc-head strong { display: block; font-size: var(--rt-fs-l); font-weight: 800; }
.rt-calc-head span { display: block; margin-top: var(--rt-space-1); color: var(--rt-muted); font-size: var(--rt-fs-xs); }
.rt-calc .rt-field > .rt-label { margin-bottom: var(--rt-space-2); }
.rt-calc-out {
    display: flex; align-items: baseline; justify-content: space-between; gap: var(--rt-space-3);
    margin: var(--rt-space-4) 0;
    padding: var(--rt-space-3) var(--rt-space-4);
    background: var(--rt-primary-weak);
    border-radius: var(--rt-radius-m);
}
/* ‎--rt-muted‎ لا يكفي فوق ‎--rt-primary-weak‎: في الليلي أعطى 4.24:1 (المطلوب 4.5).
   نخلطه مع لون النصّ: يبقى ثانوياً بصرياً ويعبر العتبة في المظاهر الثلاثة. */
.rt-calc-out > span { color: color-mix(in srgb, var(--rt-muted) 55%, var(--rt-text)); font-size: var(--rt-fs-xs); font-weight: 700; }
.rt-calc-out output {
    color: var(--rt-primary-text);
    font-size: var(--rt-fs-xl); font-weight: 800;
    font-variant-numeric: tabular-nums;
    direction: ltr; unicode-bidi: isolate;
}
.rt-calc-note { display: block; margin-top: var(--rt-space-3); color: var(--rt-muted); font-size: var(--rt-fs-xs); line-height: 1.5; }

/* ════ شريط المنصّات ════ */
/* ‎.rt-plats*‎ في ‎components.css‎ — صفحات الهبوط تستعملها أيضاً. */

/* ‎.rt-sec‎ و‎.rt-sec-more‎ في ‎base.css‎ — كل صفحة تستعملهما. */

/* ═════════ جدول الأسعار ═════════ */
.rt-prices-svc { display: inline-flex; align-items: center; gap: var(--rt-space-3); font-weight: 700; min-width: 0; }
.rt-prices-svc > span { min-width: 0; overflow-wrap: anywhere; }
.rt-prices-svc:hover { color: var(--rt-primary-text); }
.rt-prices-ico { color: var(--rt-muted); flex: none; }
.rt-prices-svc:hover .rt-prices-ico { color: var(--rt-primary-text); }
.rt-prices td b { font-size: var(--rt-fs-m); }
.rt-prices td small { color: var(--rt-muted); font-size: var(--rt-fs-xs); font-weight: 400; }
.rt-prices-go { width: 1%; white-space: nowrap; }
.rt-prices-go .rt-i { width: .9em; height: .9em; }
@media (max-width: 719px) {
    /* الخصوصية: `.rt-table--cards td` (صنف+عنصر) تغلب الصنف وحده ⇒ نكتبها بنفس القوّة */
    .rt-prices td.rt-prices-cnt, .rt-prices th.rt-prices-cnt { display: none; }
    .rt-prices-go { width: auto; }
    .rt-prices-go::before { display: none; }
    .rt-prices td { padding-block: var(--rt-space-2); }
    /* ⚠️ خليّة السعر **سطر مركّب** لا رقم: «من» + الرقم + «لكل 1000» بعد إعادة «من»
       (بلاغ RD2). و`.rt-num` تحمل `white-space: nowrap` ⇒ السطر لا ينكسر فدفع الصفحة
       40px على 320 × ×1.3 (قِسته). نسمح باللفّ في الخليّة، و`<b class="rt-num">` داخلها
       يبقى غير منكسر — وهو المقصود بالصنف أصلاً: الرقم وحده. */
    .rt-prices td.rt-num { white-space: normal; }
}

/* ═════════ كيف تبدأ + طرق الشحن ═════════ */
.rt-how { display: grid; gap: var(--rt-space-5); }
@media (min-width: 880px) {
    .rt-how { grid-template-columns: minmax(0, 1fr) 300px; gap: var(--rt-space-7); }
    /* بلا بوّابات مفعّلة: الخطوات وحدها في عمودين، فلا يبقى نصف الصفحة فارغاً */
    .rt-how--solo { grid-template-columns: minmax(0, 1fr); }
    .rt-how--solo .rt-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--rt-space-7); }
    .rt-how--solo .rt-steps > li:nth-last-child(-n+2) { border-bottom: 0; }
}
.rt-pay { align-self: start; }
.rt-pay > p { margin-bottom: var(--rt-space-3); font-size: var(--rt-fs-xs); }
.rt-pay-list > li { padding-block: var(--rt-space-2); font-size: var(--rt-fs-s); font-weight: 700; }
.rt-pay-dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--rt-success); }

/* ═════════ المزايا ═════════ */
.rt-feats {
    display: grid; gap: 1px;
    background: var(--rt-line);
    border: 1px solid var(--rt-line);
    border-radius: var(--rt-radius-l);
    overflow: hidden;
}
@media (min-width: 880px) { .rt-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rt-feat { background: var(--rt-surface); padding: var(--rt-space-5); }
.rt-feat h3 { margin: 0 0 var(--rt-space-2); font-size: var(--rt-fs-m); }
.rt-feat p { margin: 0; color: var(--rt-muted); font-size: var(--rt-fs-s); }
.rt-feat--wide { display: grid; gap: var(--rt-space-4); align-items: center; }
@media (min-width: 880px) {
    .rt-feat--wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--rt-space-6); }
    /* عدد فردي ⇒ آخر خليّة تمتدّ، فلا تبقى خانة فارغة في الشبكة */
    .rt-feat:last-child { grid-column: 1 / -1; }
}
.rt-refund { padding: var(--rt-space-4); }
.rt-refund-row {
    display: flex; align-items: baseline; justify-content: space-between; gap: var(--rt-space-3);
    font-size: var(--rt-fs-xs);
    color: var(--rt-muted);
}
.rt-refund-row b { color: var(--rt-text); font-size: var(--rt-fs-s); }
.rt-refund .rt-bar { margin: var(--rt-space-2) 0; }
.rt-refund-back { margin-top: var(--rt-space-3); padding-top: var(--rt-space-3); border-top: 1px solid var(--rt-line); }
.rt-refund-back b { color: var(--rt-success); }

/* ═════════ الأسئلة ═════════ */
/* ‎.rt-faq‎ نُقل إلى ‎components.css‎: تستعمله الرئيسية وصفحة الأسئلة وصفحات الهبوط. */

/* ════ الدعوة الأخيرة ════ */
/* ‎.rt-final*‎ في ‎components.css‎ — صفحات الهبوط تستعملها أيضاً. */
