/* ═══════════════════════════════════════════════════════════
   نظام نهضة الافتتاحي — مستخرَج من صفحة تقييم المنشآت
   
   الأصناف هي نفسها (nh-eval-*) حتى تكون الصفحات توأماً حقيقياً
   لا متشابهة. يُحمَّل في أي صفحة تريد هذا الشكل.

   الكبح مقصود في كل مقاس: تكبير بلا حدّ يدفع الصفحة أفقياً على
   الجوال فتُبتر النصوص من الحافة.
   ═══════════════════════════════════════════════════════════ */

html, body { overflow-x: hidden; max-width: 100%; }

.nh-eval { background: #fff; color: #0a0d12; overflow-x: hidden; max-width: 100%; }
.dark .nh-eval { background: #0a0d12; color: #fff; }
.nh-eval * { min-width: 0; }
.nh-eval img, .nh-eval svg, .nh-eval table { max-width: 100%; }
.nh-eval h1, .nh-eval h2, .nh-eval h3, .nh-eval p, .nh-eval span, .nh-eval a {
    overflow-wrap: break-word; word-break: break-word;
}

/* ── Eyebrow ── */
.nh-eval-eyebrow {
    display: inline-flex; align-items: center; gap: 0.9rem;
    font-size: 0.78rem; font-weight: 800;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: #51ba74; flex-wrap: wrap;
}
[dir="rtl"] .nh-eval-eyebrow { flex-direction: row-reverse; }
.nh-eval-eyebrow-sep { width: 1.75rem; height: 1px; background: currentColor; opacity: 0.5; flex: none; }

/* ── الحاوية والأقسام ── */
.nh-eval-wrap { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .nh-eval-wrap { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .nh-eval-wrap { padding: 0 2rem; } }

.nh-eval-section { padding: clamp(3rem, 8vw, 6rem) 0; border-top: 1px solid #e5e7eb; scroll-margin-top: 80px; }
.dark .nh-eval-section { border-top-color: #1f2937; }
.nh-eval-section__head { margin-bottom: clamp(2rem, 5vw, 4rem); max-width: 50rem; }
.nh-eval-section__title {
    font-size: clamp(1.75rem, 4.6vw, 3.5rem);
    font-weight: 900; line-height: 1.08;
    letter-spacing: -0.04em; margin: 1.25rem 0;
    max-width: 100%;
}
.nh-eval-section__lead { font-size: clamp(1rem, 2.2vw, 1.125rem); line-height: 1.8; color: #475569; margin: 0; }
.dark .nh-eval-section__lead { color: #cbd5e1; }

/* ── الغلاف ── */
.nh-eval-hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem); border-bottom: 1px solid #e5e7eb; }
.dark .nh-eval-hero { border-bottom-color: #1f2937; }
.nh-eval-hero__inner { position: relative; z-index: 2; }

.nh-eval-hero__shape {
    position: absolute; top: -5rem; inset-inline-start: -5rem;
    width: 26rem; height: 26rem;
    color: rgba(81, 186, 116, 0.22);
    stroke: currentColor; fill: none;
    pointer-events: none; z-index: 0;
}
.nh-eval-hero__shape-2 {
    position: absolute; bottom: -4rem; inset-inline-end: -4rem;
    width: 18rem; height: 18rem;
    color: rgba(10, 13, 18, 0.04);
    stroke: currentColor; fill: none;
    pointer-events: none; z-index: 0;
}
.dark .nh-eval-hero__shape-2 { color: rgba(255,255,255,0.05); }

.nh-eval-hero__grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: end; }
@media (min-width: 1024px) { .nh-eval-hero__grid { grid-template-columns: 1.5fr 1fr; gap: 5rem; } }

.nh-eval-hero__title {
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 900; line-height: 1.02;
    letter-spacing: -0.045em; margin: 1.5rem 0 1.25rem;
    max-width: 100%;
}
.nh-eval-hero__lead { font-size: clamp(1rem, 2.4vw, 1.2rem); line-height: 1.75; color: #475569; margin: 0; max-width: 38rem; }
.dark .nh-eval-hero__lead { color: #cbd5e1; }
.nh-eval-hero__cta { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* لوحة الأرقام */
.nh-eval-hero__stats { position: relative; padding: 2rem; background: #0a0d12; color: #fff; display: grid; gap: 1.5rem; }
.nh-eval-hero__stats::before { content: ''; position: absolute; top: 0; inset-inline-start: 0; width: 4rem; height: 3px; background: #51ba74; }
.dark .nh-eval-hero__stats { background: #1a1f28; }
.nh-eval-stat__value { font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 900; line-height: 1; letter-spacing: -0.04em; }
.nh-eval-stat__label { font-size: 0.78rem; color: rgba(255,255,255,0.65); margin-top: 0.4rem; line-height: 1.5; }

/* ── الأزرار ── */
.nh-eval-btn {
    display: inline-flex; align-items: center; gap: 0.7rem;
    padding: 0.9rem 1.6rem; font-size: 0.95rem; font-weight: 800;
    text-decoration: none; min-height: 46px; max-width: 100%;
    transition: background .25s ease, color .25s ease;
}
.nh-eval-btn--primary { background: #0a0d12; color: #fff; }
.nh-eval-btn--primary:hover { background: #51ba74; }
.dark .nh-eval-btn--primary { background: #51ba74; color: #fff; }
.nh-eval-btn--ghost { background: transparent; color: inherit; border: 1px solid rgba(10,13,18,0.15); }
.dark .nh-eval-btn--ghost { border-color: rgba(255,255,255,0.18); }
.nh-eval-btn--ghost:hover { background: #f3f4f6; }
.dark .nh-eval-btn--ghost:hover { background: rgba(255,255,255,0.05); }
.nh-eval-btn__arrow { color: #51ba74; font-weight: 900; }
[dir="rtl"] .nh-eval-btn__arrow { transform: scaleX(-1); display: inline-block; }

/* ── البطاقات ── */
.nh-eval-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .nh-eval-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .nh-eval-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .nh-eval-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.nh-eval-card { position: relative; border: 1px solid #e5e7eb; padding: 1.75rem; display: flex; flex-direction: column; transition: border-color .2s; }
.dark .nh-eval-card { border-color: #1f2937; }
.nh-eval-card:hover { border-color: #51ba74; }
.nh-eval-card__num { font-size: 2.25rem; font-weight: 900; color: #e2e8f0; line-height: 1; letter-spacing: -0.05em; margin-bottom: 1rem; }
.dark .nh-eval-card__num { color: #1f2937; }
.nh-eval-card__title { font-size: 1.15rem; font-weight: 800; margin: 0 0 0.5rem; letter-spacing: -0.015em; }
.nh-eval-card__desc { font-size: 0.92rem; line-height: 1.75; color: #475569; margin: 0; }
.dark .nh-eval-card__desc { color: #cbd5e1; }
.nh-eval-card--green { background: #0f1a13; color: #fff; border-color: transparent; }
.nh-eval-card--green .nh-eval-card__desc { color: rgba(255,255,255,0.75); }

/* ── صفوف مرقّمة ── */
.nh-eval-row { display: grid; gap: 1.25rem; padding: 2rem 0; border-top: 1px solid #eef2f6; align-items: start; }
.dark .nh-eval-row { border-top-color: #1a2230; }
.nh-eval-row:first-child { border-top: 0; }
@media (min-width: 900px) { .nh-eval-row { grid-template-columns: 4rem 1fr 18rem; gap: 2.5rem; } }
.nh-eval-row__num { font-size: 2.25rem; font-weight: 900; color: #e2e8f0; line-height: 1; letter-spacing: -0.05em; }
.dark .nh-eval-row__num { color: #1f2937; }
.nh-eval-row__title { font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 0.5rem; }
.nh-eval-row__desc { font-size: 1rem; line-height: 1.8; color: #475569; margin: 0; }
.dark .nh-eval-row__desc { color: #cbd5e1; }
.nh-eval-row__aside { font-size: 0.9rem; color: #64748b; line-height: 1.7; }
.dark .nh-eval-row__aside { color: #94a3b8; }

/* ── القسم الختامي الداكن ── */
.nh-eval-final { position: relative; overflow: hidden; background: #0a0d12; color: #fff; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.dark .nh-eval-final { background: #12171f; }
.nh-eval-final__inner { position: relative; z-index: 2; text-align: center; }
.nh-eval-final__eyebrow { color: #7fd6a0; justify-content: center; }
.nh-eval-final__title { font-size: clamp(1.75rem, 4.6vw, 3.25rem); font-weight: 900; line-height: 1.08; letter-spacing: -0.04em; margin: 1.25rem auto; max-width: 24ch; }
.nh-eval-final__lead { font-size: clamp(1rem, 2.2vw, 1.125rem); line-height: 1.8; color: rgba(255,255,255,0.75); max-width: 44rem; margin: 0 auto; }

/* ── الجداول ── */
.nh-eval-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.nh-eval-table th { text-align: start; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #64748b; padding: 0.75rem 1rem; border-bottom: 1px solid #e5e7eb; }
.dark .nh-eval-table th { border-bottom-color: #1f2937; }
.nh-eval-table td { padding: 1rem; border-bottom: 1px solid #eef2f6; vertical-align: top; }
.dark .nh-eval-table td { border-bottom-color: #1a2230; }

/* ── التبويبات ── */
.nh-eval-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.nh-eval-tab { padding: 0.7rem 1.3rem; font-size: 0.88rem; font-weight: 800; border: 1px solid #e5e7eb; background: transparent; color: inherit; cursor: pointer; transition: all .2s; }
.dark .nh-eval-tab { border-color: #1f2937; }
.nh-eval-tab[aria-selected="true"] { background: #0a0d12; color: #fff; border-color: #0a0d12; }
.dark .nh-eval-tab[aria-selected="true"] { background: #51ba74; border-color: #51ba74; }

html { scroll-behavior: smooth; }
