/* ==========================================================================
   الصفحة الرئيسية — التصميم الفاتح (2.1)
   إيقاع الأقسام: الهيرو داكن ← الأرقام أبيض ← الخدمات رمادي فاتح ← المعدات كحلي
   ← شريط المميزات (صورة) ← التكلفة أبيض ← المناطق رمادي فاتح ← الخطوات أبيض
   ← الآراء رمادي فاتح ← الأسئلة أبيض ← التواصل كحلي ← الفوتر
   يُحمَّل بعد تنسيقات front-page.php فيتجاوزها.
   ========================================================================== */

:root {
  --lt-bg: #ffffff;
  --lt-bg-2: #f3f7fa;
  --lt-ink: #0d2035;
  --lt-body: #4a5d70;
  --lt-muted: #7b8ea0;
  --lt-line: #e2eaf1;
  --lt-card: #ffffff;
  --lt-shadow: 0 1px 2px rgba(13,32,53,.04), 0 8px 24px rgba(13,32,53,.06);
  --lt-shadow-h: 0 2px 4px rgba(13,32,53,.05), 0 18px 40px rgba(13,32,53,.10);
  --lt-cyan-soft: #e6f5f9;
  --lt-orange-soft: #fff1e2;
}

/* ---------- عناصر مشتركة داخل الأقسام الفاتحة ---------- */
section.nk-light { background: var(--lt-bg); color: var(--lt-body); }
section.nk-light.nk-alt { background: var(--lt-bg-2); }
.nk-light .section-title { color: var(--lt-ink); }
.nk-light .section-description { color: var(--lt-body); }
.nk-light .section-badge,
.nk-light .howto-header .section-badge {
  background: var(--lt-cyan-soft); color: #13809b; border: 1px solid #c9e9f1;
  font-size: 13px; padding: 6px 16px; letter-spacing: 0;
}
.nk-light::before, .nk-light::after { display: none !important; }

/* ---------- 1) الأرقام والاعتماد ---------- */
.credentials-section.nk-light { padding: 90px 0; }
.nk-light .stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--lt-card); border: 1px solid var(--lt-line); border-radius: 20px;
  box-shadow: var(--lt-shadow); padding: 8px; margin-bottom: 36px;
}
.nk-light .stats-row .stat-item { padding: 26px 12px; border-left: 1px solid var(--lt-line); }
.nk-light .stats-row .stat-item:last-child { border-left: none; }
.nk-light .stats-row .stat-number { color: var(--lt-ink); font-size: 2.6rem; }
.nk-light .stats-row .stat-item:nth-child(odd) .stat-number { color: #13809b; }
.nk-light .stats-row .stat-label { color: var(--lt-muted); font-size: .95rem; }
.nk-light .achievement-card {
  background: var(--lt-card); border: 1px solid var(--lt-line); box-shadow: var(--lt-shadow);
  border-radius: 18px; text-align: right; padding: 26px 22px;
}
.nk-light .achievement-card:hover { background: var(--lt-card); box-shadow: var(--lt-shadow-h); }
.nk-light .achievement-icon {
  margin: 0 0 16px; border-radius: 14px; background: var(--lt-cyan-soft); border: none; width: 52px; height: 52px;
}
.nk-light .achievement-card:nth-child(even) .achievement-icon { background: var(--lt-orange-soft); }
.nk-light .achievement-card:nth-child(even) .achievement-icon svg { stroke: #e07400; }
.nk-light .achievement-title { color: var(--lt-ink); font-size: 1.05rem; }
.nk-light .achievement-sub { color: var(--lt-body); }

/* ---------- 2) الخدمات: لوحات أفقية متمددة (Expanding panels) ---------- */
.sc-srv-section.nk-light { padding: 90px 0; }
.srv-p__header { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.srv-p__h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 900; color: var(--lt-ink); line-height: 1.3; margin: 0 0 12px; }
.srv-p__lead { color: var(--lt-body); line-height: 1.85; font-size: 1.02rem; margin: 0; }
.srv-p__lead strong { color: var(--lt-ink); }

.srv-p { display: flex; gap: 10px; height: 440px; }
.srv-p__item {
  position: relative; flex: 1 1 0; min-width: 0; border-radius: 20px; overflow: hidden; cursor: pointer;
  background: #0d2035; isolation: isolate; outline: none;
  transition: flex-grow .6s cubic-bezier(.4,0,.2,1), box-shadow .3s;
}
.srv-p__item.is-active { flex-grow: 4.6; cursor: default; box-shadow: 0 24px 50px rgba(13,32,53,.25); }
.srv-p__item:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #229ebc; }
.srv-p__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transform: scale(1.06); transition: transform .8s ease, filter .6s ease; filter: saturate(.85) brightness(.8);
}
.srv-p__item.is-active .srv-p__bg { transform: scale(1); filter: none; }
.srv-p__item::after {
  content: ''; position: absolute; inset: 0; z-index: -1; transition: background .6s ease;
  background: linear-gradient(180deg, rgba(13,32,53,.55) 0%, rgba(13,32,53,.78) 55%, rgba(13,32,53,.95) 100%);
}
.srv-p__item.is-active::after { background: linear-gradient(180deg, rgba(13,32,53,.05) 0%, rgba(13,32,53,.35) 40%, rgba(13,32,53,.92) 100%); }
.srv-p__item:not(.is-active):hover::after { background: linear-gradient(180deg, rgba(13,32,53,.4) 0%, rgba(13,32,53,.7) 55%, rgba(13,32,53,.92) 100%); }

.srv-p__num {
  position: absolute; top: 26px; right: 0; left: 0; text-align: center;
  font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 1.35rem; color: #d9ae4c; letter-spacing: .02em;
  transition: all .5s ease;
}
.srv-p__item.is-active .srv-p__num { right: 30px; left: auto; text-align: right; font-size: 2.6rem; top: 24px; }

.srv-p__vtitle {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl; white-space: nowrap; max-height: 300px; overflow: hidden; text-overflow: ellipsis;
  color: #fff; font-weight: 800; font-size: 1.15rem; transition: opacity .25s ease;
}
.srv-p__item.is-active .srv-p__vtitle { opacity: 0; }

.srv-p__content {
  position: absolute; right: 0; left: 0; bottom: 0; padding: 30px; color: #fff;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .3s ease, transform .4s ease, visibility 0s linear .3s;
}
.srv-p__item.is-active .srv-p__content {
  opacity: 1; visibility: visible; transform: none; transition: opacity .45s ease .25s, transform .5s ease .25s, visibility 0s;
}
.srv-p__tag { display: block; color: #d9ae4c; font-weight: 800; font-size: .82rem; letter-spacing: .02em; margin-bottom: 8px; }
.srv-p__title { font-size: clamp(1.5rem, 2.4vw, 2.2rem); font-weight: 900; line-height: 1.25; margin: 0 0 10px; color: #fff; }
.srv-p__desc { margin: 0 0 18px; max-width: 520px; line-height: 1.8; color: rgba(255,255,255,.88); font-size: .98rem; }
.srv-p__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.srv-p__more {
  color: #d9ae4c; font-weight: 800; text-decoration: none; letter-spacing: .02em;
  border-bottom: 2px solid rgba(217,174,76,.6); padding-bottom: 3px;
}
.srv-p__more:hover { color: #fff; border-color: #fff; }
.srv-p__wa {
  color: #fff; background: #fc8503; font-weight: 800; font-size: .9rem; text-decoration: none;
  padding: 9px 18px; border-radius: 999px; box-shadow: 0 6px 16px rgba(252,133,3,.3);
}
.srv-p__wa:hover { background: #d96e00; color: #fff; }

.srv-p__stats { display: flex; justify-content: center; gap: 48px; margin-top: 34px; flex-wrap: wrap; text-align: center; }
.srv-p__stats div { display: flex; flex-direction: column; }
.srv-p__stats b { font-size: 2rem; font-weight: 900; color: #fc8503; line-height: 1.1; }
.srv-p__stats span { font-size: .88rem; color: var(--lt-muted); font-weight: 600; }

/* الجوال: اللوحات فوق بعضها؛ المغلقة شريط أفقي بالرقم والعنوان */
@media (max-width: 768px) {
  .srv-p { flex-direction: column; height: auto; gap: 10px; }
  .srv-p__item { flex: none; height: 74px; border-radius: 16px; transition: height .5s cubic-bezier(.4,0,.2,1); }
  .srv-p__item.is-active { height: 420px; }
  .srv-p__num, .srv-p__item.is-active .srv-p__num { top: 22px; right: 20px; left: auto; text-align: right; font-size: 1.3rem; }
  .srv-p__item.is-active .srv-p__num { font-size: 2rem; top: 18px; }
  .srv-p__vtitle {
    writing-mode: horizontal-tb; transform: none; left: auto; right: 64px; bottom: auto; top: 24px; max-height: none; font-size: 1.05rem;
  }
  .srv-p__content { padding: 22px 20px; }
  .srv-p__desc { font-size: .93rem; }
  .srv-p__stats { gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .srv-p__item, .srv-p__bg, .srv-p__content, .srv-p__num { transition: none !important; }
}

/* ---------- 3) التكلفة ---------- */
.cost-section.nk-light { padding: 90px 0; }
.nk-light .cost-factor { background: var(--lt-card); border: 1px solid var(--lt-line); box-shadow: var(--lt-shadow); }
.nk-light .cost-factor:hover { background: var(--lt-card); border-color: #bfe3ec; box-shadow: var(--lt-shadow-h); }
.nk-light .factor-title { color: var(--lt-ink); }
.nk-light .factor-desc { color: var(--lt-body); }
/* بطاقة التقييم المجاني تبقى داكنة لتبرز كنقطة تحويل */
.nk-light .quote-card { background: linear-gradient(150deg, #0d2035 0%, #134a73 100%); box-shadow: 0 30px 60px rgba(13,32,53,.25); }

/* ---------- 4) المناطق: شرائح بدل البطاقات الكبيرة ---------- */
.areas-section.nk-light { padding: 80px 0; }
.nk-light .areas-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }
.nk-light .area-card {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px 12px 18px; border-radius: 999px;
  background: var(--lt-card); border: 1px solid var(--lt-line); box-shadow: 0 1px 2px rgba(13,32,53,.05);
}
.nk-light .area-card::before { display: none; }
.nk-light .area-card:hover { background: var(--lt-card); border-color: #229ebc; transform: translateY(-3px); box-shadow: var(--lt-shadow); }
.nk-light .area-card.main-area { background: #0d2035; border-color: #0d2035; }
.nk-light .area-card.main-area .area-name { color: #fff; }
.nk-light .area-icon { width: 30px; height: 30px; margin: 0; flex-shrink: 0; }
.nk-light .area-icon::after { width: 16px; height: 16px; }
.nk-light .area-card.main-area .area-icon { background: #fc8503; }
.nk-light .area-name { color: var(--lt-ink); font-size: 1rem; }

/* ---------- 5) خطوات العمل ---------- */
.howto-section.nk-light { padding: 90px 0; }
.nk-light .howto-grid { gap: 22px; }
.nk-light .howto-grid::before { background: linear-gradient(90deg, transparent, #bfe3ec 15%, #ffd2a6 50%, #bfe3ec 85%, transparent); top: 66px; height: 2px; }
.nk-light .howto-card {
  background: var(--lt-card); border: 1px solid var(--lt-line); border-radius: 20px; padding: 28px 20px 24px; box-shadow: var(--lt-shadow);
}
.nk-light .howto-card:hover { box-shadow: var(--lt-shadow-h); }
.nk-light .howto-card:nth-child(odd) .howto-icon { background: var(--lt-cyan-soft); }
.nk-light .howto-card:nth-child(even) .howto-icon { background: var(--lt-orange-soft); }
.nk-light .howto-title { color: var(--lt-ink); }
.nk-light .howto-desc { color: var(--lt-body); }
.nk-light .howto-card::after { display: none; }

/* ---------- 6) آراء العملاء ---------- */
.testimonials-section.nk-light { padding: 90px 0; }
.nk-light .testimonial-card {
  background: var(--lt-card); border: 1px solid var(--lt-line); box-shadow: var(--lt-shadow); border-radius: 20px;
  padding: 30px 26px 26px; display: flex; flex-direction: column;
}
.nk-light .testimonial-card::before {
  content: '”'; position: absolute; top: 6px; left: 22px; right: auto; height: auto; transform: none;
  background: none; font-size: 5rem; line-height: 1; color: #e6f5f9; font-family: Georgia, serif;
}
.nk-light .testimonial-card:hover { background: var(--lt-card); box-shadow: var(--lt-shadow-h); }
.nk-light .testimonial-header-inner { order: 2; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--lt-line); }
.nk-light .testimonial-text { order: 1; color: var(--lt-ink); font-style: normal; font-size: 1rem; position: relative; }
.nk-light .client-name { color: var(--lt-ink); }
.nk-light .client-location { color: var(--lt-muted); }

/* ---------- 7) الأسئلة الشائعة ---------- */
.faq-section.nk-light { padding: 90px 0; }
.nk-light .faq-item { background: var(--lt-card); border: 1px solid var(--lt-line); box-shadow: 0 1px 2px rgba(13,32,53,.04); }
.nk-light .faq-item:hover { border-color: #bfe3ec; box-shadow: var(--lt-shadow); }
.nk-light .faq-item.open { background: var(--lt-card); border-color: #229ebc; box-shadow: var(--lt-shadow); border-right: 4px solid #229ebc; }
.nk-light .faq-q-text { color: var(--lt-ink); }
.nk-light .faq-icon { background: var(--lt-cyan-soft); border-color: #c9e9f1; }
.nk-light .faq-a-inner { color: var(--lt-body); border-top-color: var(--lt-line); }

/* ---------- الأقسام الداكنة المتبقية: لمسة تحديث ---------- */
section.sc-tech-section { background: #0d2035; }
section.contact-section { background: linear-gradient(160deg, #0d2035 0%, #123352 100%); }
section .contact-image { height: 260px; border-radius: 18px; }

/* ---------- الجوال ---------- */
@media (max-width: 768px) {
  .nk-light .stats-row { grid-template-columns: 1fr 1fr; }
  .nk-light .stats-row .stat-item { border-left: none; border-bottom: 1px solid var(--lt-line); }
  .nk-light .stats-row .stat-item:nth-child(odd) { border-left: 1px solid var(--lt-line); }
  .nk-light .stats-row .stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .nk-light .stats-row .stat-number { font-size: 2rem; }
  .nk-light .area-card { padding: 10px 16px 10px 12px; }
  .credentials-section.nk-light, .sc-srv-section.nk-light, .cost-section.nk-light,
  .howto-section.nk-light, .testimonials-section.nk-light, .faq-section.nk-light { padding: 64px 0; }
}
@media (max-width: 480px) {
  .nk-light .stats-row { flex-direction: initial; }
}
