/* ══════════════════════════════════════════════════════════════════
   sector.css — صفحات القطاعات (قاعات، مصوّرون، صالونات، مطابع)

   ورقة واحدة تخدم الصفحات الأربع: أي تعديل في الهوية البصرية يقع
   مرّة لا أربعاً.

   الرموز منقولة حرفياً من index.html: :root هو الوضع الداكن،
   و[data-theme="light"] يتجاوزه بقيم الوضع الفاتح نفسها. ولا لون
   خارج هذه القائمة — فما لم يكن له رمز يُشتقّ منها بـ color-mix أو
   يُضاف كرمز هنا وفي الرئيسية معاً.

   الافتراضي فاتح كما في بقية الموقع، والمفتاح raven_theme نفسه —
   فاختيار الزائر في الصفحة الرئيسية ينتقل معه إلى هنا والعكس.
   ══════════════════════════════════════════════════════════════════ */
:root {
  --gold: #C44A1F;
  --gold-light: #F89B72;
  --gold-dark: #7A2D10;
  --gold-dim: rgba(196,74,31,0.10);
  --gold-glow: rgba(196,74,31,0.20);
  --gold-border: rgba(196,74,31,0.25);
  --bg: #0c0c0c;
  --s1: #111111;
  --s2: #181818;
  --s3: #1e1e1e;
  --cream: #f5f0e8;
  --cream-soft: #ede5d6;
  --ink: #1a1410;
  --text: #ede9e1;
  --muted: #7a7672;
  --border: rgba(196,74,31,0.13);
  --green: #16a34a;
  --red: #dc2626;
  --amber: #f59e0b;
  /* مشتقّات هذه الورقة — تتبدّل مع الوضع */
  --nav-bg: rgba(12,12,12,.88);
}

/* ═══ LIGHT MODE OVERRIDES — القيم نفسها الواردة في index.html ═══ */
[data-theme="light"] {
  --bg: #f8f6f3;
  --s1: #f0ebe3;
  --s2: #e8e1d6;
  --s3: #ded6c8;
  --text: #1a1410;
  --muted: #6b6259;
  --border: rgba(196,74,31,0.15);
  --gold-dim: rgba(196,74,31,0.08);
  --gold-glow: rgba(196,74,31,0.20);
  --gold-border: rgba(196,74,31,0.25);
  --nav-bg: rgba(248,246,243,0.92);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Tajawal', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ── الترويسة ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-in {
  max-width: 1080px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 900; font-size: 17px; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff; padding: 9px 18px; border-radius: 10px;
  font-weight: 800; font-size: 13.5px; white-space: nowrap;
}

/* ── الواجهة ── */
.hero { padding: 62px 0 46px; text-align: center; }
.eyebrow {
  display: inline-block; background: var(--gold-dim);
  border: 1px solid var(--gold-border); color: var(--gold-light);
  padding: 6px 15px; border-radius: 999px;
  font-size: 12.5px; font-weight: 800; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(27px, 5.2vw, 44px); font-weight: 900;
  line-height: 1.35; margin-bottom: 16px; letter-spacing: -.5px;
}
.hero h1 span { color: var(--gold-light); }
[data-theme="light"] .hero h1 span { color: var(--gold); }
.hero p { font-size: clamp(15px, 2.2vw, 17.5px); color: var(--muted); max-width: 640px; margin: 0 auto 26px; }

.cta-row { display: flex; gap: 11px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 12px;
  font-weight: 800; font-size: 14.5px; transition: transform .18s, box-shadow .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff; box-shadow: 0 10px 30px rgba(196,74,31,.28);
}
.btn-ghost { border: 1px solid var(--gold-border); color: var(--text); }

/* ── الأقسام ── */
section { padding: 52px 0; }
.sec-head { text-align: center; margin-bottom: 34px; }
.sec-head h2 { font-size: clamp(21px, 3.4vw, 30px); font-weight: 900; margin-bottom: 10px; }
.sec-head p { color: var(--muted); font-size: 14.5px; max-width: 580px; margin: 0 auto; }

/* ── الألم/الحل ── */
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 15px; }
.pain {
  background: var(--s1); border: 1px solid var(--border);
  border-radius: 15px; padding: 22px;
}
.pain .p-before {
  color: var(--muted); font-size: 13.5px; font-weight: 700;
  padding-bottom: 11px; margin-bottom: 11px; border-bottom: 1px dashed var(--border);
}
.pain .p-after { font-size: 14.5px; font-weight: 800; line-height: 1.75; }
.pain .p-after b { color: var(--gold-light); }
[data-theme="light"] .pain .p-after b { color: var(--gold-dark); }
[data-theme="light"] .eyebrow { color: var(--gold-dark); }
[data-theme="light"] .faq summary::after { color: var(--gold); }

/* ── المزايا ── */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.feat {
  background: var(--s1); border: 1px solid var(--border);
  border-radius: 15px; padding: 22px; transition: border-color .2s, transform .2s;
}
.feat:hover { border-color: var(--gold-border); transform: translateY(-3px); }
.feat .ico { font-size: 25px; margin-bottom: 11px; }
.feat h3 { font-size: 15.5px; font-weight: 900; margin-bottom: 7px; }
.feat p { font-size: 13.5px; color: var(--muted); line-height: 1.8; }

/* ── الأسئلة الشائعة ── */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--s1); border: 1px solid var(--border);
  border-radius: 13px; padding: 16px 19px; margin-bottom: 11px;
}
.faq details[open] { border-color: var(--gold-border); }
.faq summary {
  font-weight: 800; font-size: 14.5px; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold-light); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin-top: 11px; font-size: 13.8px; color: var(--muted); line-height: 1.85; }

/* ── الخاتمة ── */
.final {
  background: linear-gradient(135deg, rgba(196,74,31,.1), rgba(196,74,31,.03));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  text-align: center;
}
.final h2 { font-size: clamp(21px, 3.4vw, 30px); font-weight: 900; margin-bottom: 12px; }
.final p { color: var(--muted); margin-bottom: 24px; }

/* ── التذييل ── */
.foot { padding: 34px 0; text-align: center; border-top: 1px solid var(--border); }
.foot-links { display: flex; gap: 8px 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 15px; }
.foot-links a { font-size: 13px; color: var(--muted); }
.foot-links a:hover { color: var(--gold-light); }
.foot small { color: var(--muted); font-size: 12px; }

@media (max-width: 560px) {
  .hero { padding: 42px 0 34px; }
  section { padding: 40px 0; }
  .btn { width: 100%; text-align: center; }
}

/* ── مبدّل المظهر — نفس شكله وسلوكه في الصفحة الرئيسية ── */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text); cursor: pointer; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; font-family: 'Tajawal', sans-serif;
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--s1); border-color: var(--gold-border); }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"]  .icon-sun  { display: none; }
[data-theme="light"] .icon-sun  { display: block; }
[data-theme="dark"]  .icon-moon { display: block; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ── منشئ العقود: بنود القطاع ── */
.clause-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 14px; }
.clause {
  position: relative; background: var(--s1); border: 1px solid var(--border);
  border-radius: 15px; padding: 20px 20px 18px; transition: border-color .2s, transform .2s;
}
.clause:hover { border-color: var(--gold-border); transform: translateY(-3px); }
.clause-n {
  width: 27px; height: 27px; border-radius: 8px;
  background: var(--gold-dim); border: 1px solid var(--gold-border);
  color: var(--gold); font-weight: 900; font-size: 13px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 11px;
}
[data-theme="light"] .clause-n { color: var(--gold-dark); }
.clause h3 { font-size: 15px; font-weight: 900; margin-bottom: 7px; }
.clause p { font-size: 13.2px; color: var(--muted); line-height: 1.85; }

/* ── الشارات ── */
.badges { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin: 26px 0 8px; }
.badge {
  background: var(--gold-dim); border: 1px solid var(--gold-border);
  color: var(--gold-light); border-radius: 999px;
  padding: 7px 15px; font-size: 12.5px; font-weight: 800;
}
[data-theme="light"] .badge { color: var(--gold-dark); }

/* ── سلسلة: موافقة ← قفل ← عربون ← فاتورة ── */
.chain {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 12px; margin-top: 26px;
}
.chain-step {
  position: relative; background: var(--s2); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px; display: flex; gap: 12px; align-items: flex-start;
}
.chain-ico { font-size: 22px; line-height: 1; flex-shrink: 0; }
.chain-body h4 { font-size: 14px; font-weight: 900; margin-bottom: 5px; }
.chain-body p { font-size: 12.6px; color: var(--muted); line-height: 1.8; }
.chain-arrow {
  position: absolute; left: -13px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-size: 19px; font-weight: 900;
}
@media (max-width: 900px) { .chain-arrow { display: none; } }

.legal-note {
  max-width: 720px; margin: 24px auto 0; text-align: center;
  background: var(--gold-dim); border: 1px solid var(--gold-border);
  border-radius: 12px; padding: 13px 16px;
  font-size: 12.6px; color: var(--muted); line-height: 1.85;
}
.legal-note strong { color: var(--text); }
