/* صفحة الكفالات — مكمّلات خاصة بالصفحة فقط */

/* رأس الصفحة: px-hero */
.or-hero .px-hero__h { max-width: 12em; }

/* كَنَف: الرقم الضخم وجدار الانتظار (لغة الرئيسية) */
.or-kanaf { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: center; margin: clamp(14px, 1.4vw, 20px) 12px 0; padding: clamp(28px, 4vw, 64px) max(clamp(22px, 4vw, 64px), calc((100% - 1260px) / 2)); background: var(--olive); color: var(--cream); border-radius: var(--field-r, 40px); scroll-margin-top: 140px; }
.or-kanaf::before { content: ""; position: absolute; inset-block-start: -40px; inset-inline-end: -40px; width: 300px; height: 300px; background: var(--px-star-olive) center/contain no-repeat; opacity: .16; pointer-events: none; }
.or-kanaf > * { position: relative; }
.or-kanaf__h { margin: 0; font: 800 var(--fs-h2-xl, 44px)/1.3 var(--display); letter-spacing: -.01em; text-wrap: balance; color: #fff; }
.or-kanaf__p { margin: 14px 0 0; max-width: 34em; font-size: var(--fs-body, 17px); line-height: 1.8; color: rgba(246, 239, 226, .88); }
.or-kanaf__wall { display: grid; gap: 12px; margin-top: clamp(24px, 3vw, 36px); max-width: 560px; }
.or-kanaf .px-bricks-legend { color: rgba(246, 239, 226, .88); }
.or-kanaf .px-bricks-legend i { background: rgba(246, 239, 226, .16); }
.or-kanaf .px-bricks-legend i.on, .or-kanaf .px-bricks b.on { background: var(--cream); }
.or-kanaf .px-bricks b.half { background: linear-gradient(to left, var(--cream) 0 var(--f, 66%), rgba(246, 239, 226, .16) var(--f, 66%)); }
.or-kanaf__cap { margin: 0; font-size: var(--fs-small, 14px); color: rgba(246, 239, 226, .85); }
.or-kanaf__cap b { font-family: var(--display); color: #fff; }
.or-kanaf__cap span { color: #ffd2a8; font-weight: 600; }
.or-kanaf .px-giant__n { color: #fff; }
.or-kanaf .px-giant__pick { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.or-kanaf__dar { display: flex; align-items: center; gap: 10px; min-height: 48px; font-size: var(--fs-small, 14px); color: var(--cream); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(246, 239, 226, .4); }
.or-kanaf__dar b { font: 800 15px var(--display); padding: 3px 9px; border-radius: 6px; background: rgba(246, 239, 226, .16); }
/* الجدار عند الصفر: دعوة لا فراغ. الطوبة الأولى تنبض بحدّ متقطع، وسطر «كن أول كافل» يختفي وحده متى امتلأت طوبة */
.or-kanaf .px-bricks:not(:has(b.on, b.half)) b:first-child { background: rgba(255, 210, 168, .22); box-shadow: inset 0 0 0 1.5px #ffd2a8; animation: orFirst 2.4s ease-in-out infinite; }
@keyframes orFirst { 50% { background: rgba(255, 210, 168, .6); } }
.or-kanaf__first { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 2px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(246, 239, 226, .09); border: 1px solid rgba(246, 239, 226, .16); font-size: var(--fs-small, 14px); color: rgba(246, 239, 226, .92); }
.or-kanaf__first > i { flex: none; width: 18px; height: 9px; border-radius: 1px; background: rgba(255, 210, 168, .35); box-shadow: inset 0 0 0 1.5px #ffd2a8; }
.or-kanaf__first a { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--cream); color: var(--ink); font-weight: 700; font-size: 14.5px; text-decoration: none; transition: transform var(--dur-1, .15s) ease; }
.or-kanaf__first a:hover { transform: translateY(-1px); }
.or-kanaf__first a:focus-visible { outline: 2px solid #ffd2a8; outline-offset: 2px; }
.or-kanaf__wall:has(.px-bricks b.on, .px-bricks b.half) .or-kanaf__first { display: none; }
@media (prefers-reduced-motion: reduce) { .or-kanaf .px-bricks b:first-child { animation: none !important; } }
@media (max-width: 480px) { .or-kanaf__first a { margin-inline-start: 0; } }
@media (max-width: 900px) { .or-kanaf { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .or-kanaf { margin-inline: 8px; padding: 28px 18px; } }

/* الخطط */
.or-plans { display: grid; gap: 16px; }
@media (min-width: 860px) { .or-plans { grid-template-columns: repeat(3, 1fr); } }
.plan__sub { color: hsl(var(--fg-2)); font-size: 15px; line-height: 1.7; }
.plan__real { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: hsl(var(--tint)); font-size: 14px; color: hsl(var(--fg-2)); }
.plan__real b { color: hsl(var(--fg)); font-variant-numeric: tabular-nums; }

/* الالتزام الشهري: صف أرقام */
.or-ledger { margin-top: clamp(40px, 5vw, 64px); }
.or-ledger__h { margin: 0 0 18px; font: 800 var(--fs-h3-lg, 26px)/1.4 var(--display); }
.or-ledger__note { margin: 16px 0 0; font-size: var(--fs-small, 14px); color: hsl(var(--fg-2)); }

/* كيف تعمل: ست خطوات */
.or-how { padding-block: var(--gap); }
.or-how .steps { counter-reset: none; }
@media (min-width: 700px) { .or-how .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .or-how .steps { grid-template-columns: repeat(3, 1fr); } }
.or-how .steps small { display: block; font-size: 13px; font-weight: 700; color: hsl(42 80% 72%); }
.or-crit__h { font-family: var(--display); font-size: var(--fs-h3-lg, 26px); line-height: 1.4; color: #fff; margin-top: 56px; }
.or-crit { display: grid; gap: 16px; margin-top: 20px; }
@media (min-width: 900px) { .or-crit { grid-template-columns: repeat(3, 1fr); } }

/* ما يصلك */
.or-receive { display: grid; gap: 32px; }
@media (min-width: 1000px) { .or-receive { grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; } }
.or-sample { padding: 24px; border-radius: var(--r-md); background: hsl(var(--card)); box-shadow: var(--shadow-lift); display: grid; gap: 14px; }
.or-sample__top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: hsl(var(--fg-2)); padding-bottom: 12px; border-bottom: 1px solid hsl(var(--border)); }
.or-sample h3 { font-family: var(--display); font-size: 22px; }
.or-sample dl { display: grid; gap: 0; }
.or-sample dl div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed hsl(var(--border)); font-size: 15px; }
.or-sample dt { color: hsl(var(--fg-2)); }
.or-sample dd { font-weight: 500; }
.or-sample__ph { display: grid; place-items: center; aspect-ratio: 16 / 7; border-radius: 12px; background: hsl(var(--tint)); color: hsl(var(--fg-2)); font-size: 14px; text-align: center; padding: 12px; }
.or-privacy { display: grid; gap: 10px; margin-top: 20px; }
.or-privacy li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 15.5px; line-height: 1.75; }
.or-privacy li::before { content: ""; width: 10px; height: 10px; margin-top: 9px; border-radius: 2px; background: var(--red); }

/* للأيتام أيضًا */
.or-extras { display: grid; gap: 20px; }
@media (min-width: 1000px) { .or-extras { grid-template-columns: 1.1fr .9fr; align-items: stretch; } }
.or-extras__photo { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; min-height: 320px; background: hsl(var(--tint)); }
.or-extras__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% 50%; }
.or-extras__photo figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 60px 22px 20px; color: #fff; background: linear-gradient(to top, rgba(23, 17, 15, .85), transparent); display: grid; gap: 2px; }
.or-extras__photo figcaption b { font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.4; }
.or-extras__photo figcaption span { font-size: 14.5px; opacity: .88; }
.or-extras .orph__more { height: 100%; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); color: hsl(var(--fg)); padding: 28px; box-shadow: var(--shadow-card); }
@media (min-width: 1000px) { .or-extras { grid-template-columns: .9fr 1.1fr; } .or-extras .orph__more { order: -1; } }
.or-extras .extras li { background: hsl(var(--bg)); align-items: center; }
.or-extras .extras b { font-weight: 700; font-size: 16.5px; }
.or-extras .extras span { font-size: 14.5px; opacity: 1; color: hsl(var(--fg-2)); }
.or-extras .extras a { justify-content: center; color: var(--red); border: 1.5px solid var(--red); border-radius: 999px; padding: 0 18px; min-height: 40px; font-size: 15px; transition: background-color var(--dur-1) linear, color var(--dur-1) linear; }
.or-extras .extras a:hover { background: var(--red); color: #fff; }
.or-extras .orph__how { color: hsl(var(--fg-2)); line-height: 1.75; }

/* من الميدان */
.or-field { display: grid; gap: 28px; }
@media (min-width: 1000px) { .or-field { grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: start; } .or-field__photo { position: sticky; top: 166px; } }
.or-field__photo { margin: 0; display: grid; gap: 10px; }
.or-field__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); background: hsl(var(--tint)); }
@media (max-width: 999px) { .or-field__photo img { aspect-ratio: 16 / 10; } }
.or-notes { display: grid; border-top: 1px solid var(--ink); }
.or-notes li { display: grid; gap: 8px; padding: 26px 0; border-bottom: 1px solid hsl(var(--border)); }
.or-notes__m { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.or-notes__m small { font-size: 13px; font-weight: 700; color: var(--red-ink); letter-spacing: .02em; }
.or-notes h3 { font-family: var(--display); font-size: clamp(21px, 2.2vw, 26px); line-height: 1.4; }
.or-notes p { color: hsl(var(--fg-2)); line-height: 1.85; max-width: 38rem; }

@media (max-width: 640px) { .or-sample dl div { grid-template-columns: 5.5rem 1fr; } .or-sample { padding: 18px; } }
.or-receive .shead--num { grid-template-columns: 1fr; }
.or-receive .shead--num .shead__n { padding-top: 0; }
.or-field__photo img { object-position: 50% 82%; }

/* ===== جولة الخبراء: ترتيب ومقاسات ===== */
/* الأسعار أكبر رقم في القرار */
.or-plans .plan__price b { font-size: clamp(48px, 4.4vw, 60px); }
/* الخطط على الجوال: شريط أفقي يُظهر الخطة التالية للمقارنة */
@media (max-width: 859px) {
  .or-plans { grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .or-plans::-webkit-scrollbar { display: none; }
  .or-plans .plan { scroll-snap-align: center; }
  .or-plans .plan:hover { transform: none; }
}
/* كيف تعمل: خطوات مدمجة على الجوال */
@media (max-width: 699px) {
  .or-how .steps { gap: 10px; }
  .or-how .steps li { grid-template-columns: 36px 1fr; column-gap: 14px; row-gap: 4px; padding: 18px; }
  .or-how .steps li > * { grid-column: 2; }
  .or-how .steps li > span { grid-column: 1; grid-row: 1 / span 3; margin: 0; }
  .or-crit__h { margin-top: 40px; }
}
/* ما يصلك: عمود «متى» لا ينكسر */
.or-receive .table td:first-child, .or-receive .table th:first-child { width: 9rem; white-space: nowrap; }
@media (max-width: 640px) {
  .or-receive .table td:first-child, .or-receive .table th:first-child { width: 7.25rem; white-space: normal; }
  .or-receive .table td:first-child { font-size: 14.5px; }
  .or-receive .table td { padding: 12px 10px; }
}
@media (min-width: 1000px) { .or-sample { position: sticky; top: 166px; } }


/* الحركات فوق السطر الأول من العنوان تحتاج نفَسًا تحت الوسم */
.or-hero .px-hero__eyebrow { margin-bottom: 22px; }

/* ===== LTR ===== */
html[dir="ltr"] .or-kanaf .px-bricks b.half { background: linear-gradient(to right, var(--cream) 0 var(--f, 66%), rgba(246, 239, 226, .16) var(--f, 66%)); }
