:root{
  color-scheme:light;   /* بعد إرجاع التبديل: light dark */
  --bg:#f5f8fa; --surface:#fff; --surface-2:#eef3f7;
  --ink:#0f2231; --muted:#5b7183;
  --brand:#1a4b69; --brand-2:#14405f; --brand-soft:#e8f0f5;
  --accent:#c0551a;   /* غامق شوية عن الأصلي عشان يعدي تباين AA على الخلفية الفاتحة */
  --line:rgba(15,34,49,.13); --shadow:0 1px 2px rgba(15,34,49,.06),0 8px 24px rgba(15,34,49,.07);
}
:root[data-theme="dark"]{
  --bg:#0a1720; --surface:#0f222e; --surface-2:#142c3a;
  --ink:#e7eef4; --muted:#92a8b7;
  --brand:#5aa3cc; --brand-2:#7cbde0; --brand-soft:#122c3d;
  --accent:#f0834e;
  --line:rgba(231,238,244,.13); --shadow:0 1px 2px rgba(0,0,0,.3),0 8px 24px rgba(0,0,0,.35);
}
*{box-sizing:border-box;margin:0;padding:0}

body{
  background:var(--bg); color:var(--ink);
  font-family:"SF Arabic","Geeza Pro","Segoe UI",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;
  line-height:1.75; -webkit-font-smoothing:antialiased;
}
.wrap{max-width:1160px;margin-inline:auto;padding-inline:20px}
section{padding:84px 0}
h1,h2,h3{line-height:1.3;font-weight:800;letter-spacing:-.01em}
h2{font-size:clamp(1.6rem,3.4vw,2.3rem)}
a{color:inherit;text-decoration:none}

/* ── الهيدر ── */
header{position:sticky;top:0;z-index:50;background:color-mix(in srgb,var(--surface) 88%,transparent);
  backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;gap:clamp(16px,2.4vw,38px);height:84px}
/* ثلاث مناطق متوازنة: اللوجو في البداية · القائمة في النص · الأدوات في النهاية */
.logo{display:flex;align-items:center;gap:12px;font-weight:800;flex:none}
.logo img{flex:none;width:46px;height:auto;display:block}
.logo-text{display:flex;flex-direction:column;align-items:start;line-height:1.24;min-width:0}
.logo-text b{font-size:clamp(.82rem,1.02vw,.99rem);font-weight:800;letter-spacing:-.01em;white-space:nowrap}
.logo-text small{font-size:.68rem;font-weight:700;color:var(--brand);letter-spacing:.15em;
  margin-top:2px;white-space:nowrap}
.nav > ul{flex:1;display:flex;justify-content:center;gap:clamp(13px,1.9vw,27px);
  list-style:none;font-size:.94rem;font-weight:600}
.nav > ul a{color:var(--muted);transition:color .18s;white-space:nowrap}
.nav > ul a:hover{color:var(--brand)}
.tools{display:flex;gap:10px;align-items:center;flex:none}
.icon-btn{width:38px;height:38px;display:grid;place-items:center;border:1px solid var(--line);
  border-radius:10px;background:var(--surface);cursor:pointer;color:var(--ink);transition:.18s}
.icon-btn:hover{border-color:var(--brand);color:var(--brand)}
.btn{display:inline-flex;align-items:center;gap:8px;padding:12px 22px;border-radius:11px;
  font-weight:700;font-size:.95rem;border:1px solid transparent;cursor:pointer;transition:.2s;font-family:inherit}
.btn-primary{background:var(--brand);color:#fff}
.btn-primary:hover{background:var(--brand-2);transform:translateY(-1px)}
:root[data-theme="dark"] .btn-primary{color:#08161f}
.btn-ghost{border-color:var(--line);color:var(--ink);background:transparent}
.btn-ghost:hover{border-color:var(--brand);color:var(--brand)}
.menu-btn{display:none}
/* زرار تبديل الثيم مخفي مؤقتا بطلب العميل — الكود والستايلات كلها شغالة.
   للرجوع: احذف السطر ده بس، والزرار هيرجع يشتغل من غير أي تعديل تاني. */
#themeBtn{display:none}

/* ── الهيرو ── */
.hero{position:relative;overflow:hidden;padding:96px 0 72px;
  background:linear-gradient(160deg,#1a4b69 0%,#14405f 55%,#0d2e46 100%)}
.hero::after{content:"";position:absolute;inset:0;opacity:.14;
  background:repeating-linear-gradient(115deg,transparent 0 22px,rgba(255,255,255,.5) 22px 23px)}
.hero .wrap{position:relative;z-index:1;display:grid;grid-template-columns:1.15fr .85fr;gap:52px;align-items:center}
.hero h1{font-size:clamp(2rem,4.6vw,3.3rem);color:#fff;margin-bottom:18px}
.hero h1 span{color:#ffb787;display:block}
.hero p{color:#cfe0ec;font-size:1.1rem;max-width:52ch;margin-bottom:30px}
.pill{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.13);color:#e6f1f8;
  border:1px solid rgba(255,255,255,.22);padding:7px 15px;border-radius:99px;font-size:.85rem;
  font-weight:600;margin-bottom:22px}
.hero-cta{display:flex;gap:13px;flex-wrap:wrap}
.hero .btn-ghost{color:#fff;border-color:rgba(255,255,255,.35)}
.hero .btn-ghost:hover{background:rgba(255,255,255,.1);color:#fff}
.hero-art{display:grid;place-items:center}
.hero-art svg{width:100%;max-width:330px;height:auto;filter:drop-shadow(0 18px 40px rgba(0,0,0,.35))}

/* ── شريط الثقة ── */
.trust{background:var(--surface);border-bottom:1px solid var(--line);padding:0}
.trust-grid{display:grid;grid-template-columns:repeat(5,1fr)}
.trust-item{padding:30px 18px;text-align:center;border-inline-start:1px solid var(--line)}
.trust-item:first-child{border:0}
.trust-item b{display:block;font-size:1.85rem;font-weight:800;color:var(--brand);line-height:1.2}
.trust-item span{font-size:.85rem;color:var(--muted);font-weight:600}

/* ── عام ── */
.head{text-align:center;max-width:660px;margin:0 auto 52px}
.eyebrow{color:var(--accent);font-weight:800;font-size:.82rem;letter-spacing:.12em;
  text-transform:uppercase;margin-bottom:12px;display:block}
.head p{color:var(--muted);margin-top:14px;font-size:1.04rem}
.grid{display:grid;gap:22px}
.g3{grid-template-columns:repeat(3,1fr)}
.g4{grid-template-columns:repeat(4,1fr)}
.card{background:var(--surface);border:1px solid var(--line);border-radius:15px;padding:28px;
  transition:.22s;box-shadow:var(--shadow)}
.card:hover{transform:translateY(-3px);border-color:var(--brand)}
.card h3{font-size:1.1rem;margin-bottom:9px}
.card p{color:var(--muted);font-size:.94rem}
.ico{width:46px;height:46px;border-radius:12px;background:var(--brand-soft);color:var(--brand);
  display:grid;place-items:center;margin-bottom:17px}

/* ── الأنظمة ── */
.sys{background:var(--surface-2)}
.sys-list{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}
.sys-item{background:var(--surface);border:1px solid var(--line);border-radius:12px;
  padding:17px 19px;display:flex;align-items:center;gap:13px;font-weight:600;font-size:.96rem}
.sys-item i{width:9px;height:9px;border-radius:99px;background:var(--accent);flex:none}
.sys-item small{color:var(--muted);font-weight:500;display:block;font-size:.82rem;margin-top:1px}

/* ── القطاعات ── */
.sectors{display:grid;grid-template-columns:repeat(5,1fr);gap:13px;
  max-width:1000px;margin-inline:auto}
.sector{background:var(--surface);border:1px solid var(--line);border-radius:99px;
  padding:13px 12px;font-weight:600;font-size:.95rem;text-align:center;min-height:54px;
  display:flex;align-items:center;justify-content:center;transition:.2s}
.sector:hover{border-color:var(--brand);color:var(--brand)}

/* ── المشاريع ── */
.proj-hero{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:26px}
.proj-star{background:var(--brand);color:#fff;border-radius:14px;padding:22px;text-align:center;
  font-weight:800;font-size:1.02rem;display:grid;place-items:center;min-height:104px}
:root[data-theme="dark"] .proj-star{color:#08161f}
.proj-star small{display:block;font-weight:600;font-size:.78rem;opacity:.82;margin-top:5px}
.proj-list{columns:3;column-gap:26px;background:var(--surface);border:1px solid var(--line);
  border-radius:15px;padding:26px 30px}
.proj-list div{break-inside:avoid;padding:7px 0;color:var(--muted);font-size:.9rem;
  border-bottom:1px dashed var(--line)}
.proj-list div::before{content:"◂";color:var(--accent);margin-inline-end:8px}

/* ── الخطوات ── */
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.step{position:relative;padding-top:34px}
.step b{position:absolute;top:0;inset-inline-start:0;width:30px;height:30px;border-radius:9px;
  background:var(--brand);color:#fff;display:grid;place-items:center;font-size:.84rem}
:root[data-theme="dark"] .step b{color:#08161f}
.step h4{font-size:1rem;margin-bottom:5px}
.step p{color:var(--muted);font-size:.9rem}

/* ── التواصل ── */
.contact{background:var(--surface-2)}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:44px}
.info-row{display:flex;gap:14px;padding:17px 0;border-bottom:1px solid var(--line)}
.info-row:last-child{border:0}
.info-row .ico{width:40px;height:40px;margin:0;flex:none}
.info-row b{display:block;font-size:.82rem;color:var(--muted);font-weight:700;margin-bottom:2px}
.info-row span{font-weight:600}
form{background:var(--surface);border:1px solid var(--line);border-radius:15px;padding:28px;box-shadow:var(--shadow)}
label{display:block;font-size:.87rem;font-weight:700;margin-bottom:6px}
input,textarea,select{width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:10px;
  background:var(--bg);color:var(--ink);font-family:inherit;font-size:.95rem;margin-bottom:16px}
input:focus,textarea:focus,select:focus{outline:2px solid var(--brand);outline-offset:1px;border-color:transparent}
textarea{resize:vertical;min-height:96px}
form .btn{width:100%;justify-content:center}
.note{font-size:.82rem;color:var(--muted);text-align:center;margin-top:12px}

/* ── الفوتر ── */
footer{background:#0d2e46;color:#b9cfdf;padding:46px 0 30px}
:root[data-theme="dark"] footer{background:#071219}
.foot{display:flex;justify-content:space-between;gap:26px;flex-wrap:wrap;
  padding-bottom:26px;border-bottom:1px solid rgba(255,255,255,.12)}
.foot .logo{color:#fff}
.foot-links{display:flex;gap:24px;font-size:.92rem;flex-wrap:wrap}
.foot-links a:hover{color:#fff}
.copy{padding-top:22px;font-size:.85rem;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}
.demo-tag{background:rgba(217,95,43,.2);color:#ffb787;border:1px solid rgba(217,95,43,.4);
  padding:3px 11px;border-radius:99px;font-size:.78rem;font-weight:700}

/* لابتوبات ضيقة: نضغط بلطف بدل ما نكسر */
/* حارس إلزامي: احترام تفضيل تقليل الحركة في النظام */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation:none!important; transition:none!important; scroll-behavior:auto!important;
  }
}

@media (max-width:1180px){
  .logo img{width:42px}
  .logo-text b{font-size:.83rem}
  .nav > ul{font-size:.88rem}
  .tools .btn{padding:11px 16px;font-size:.9rem}
}
@media (max-width:1023px){
  .sectors{gap:10px}
  .sector{font-size:.84rem;padding:11px 8px;min-height:48px}
}

@media (max-width:960px){
  .hero .wrap{grid-template-columns:1fr;text-align:center}
  .hero p{margin-inline:auto}
  .hero-cta{justify-content:center}
  .hero-art{display:none}
  .trust-grid{grid-template-columns:repeat(2,1fr)}
  .trust-item:nth-child(odd){border-inline-start:0}
  .g3,.g4,.sys-list,.steps,.proj-hero,.contact-grid{grid-template-columns:repeat(2,1fr)}
  .proj-list{columns:2}
  .contact-grid{grid-template-columns:1fr}

  /* القائمة تنسدل من تحت الهيدر بدل ما تختفي خالص */
  .menu-btn{display:grid}
  .nav > ul{position:absolute;top:100%;inset-inline:0;flex-direction:column;
    align-items:stretch;background:var(--surface);border-bottom:1px solid var(--line);
    box-shadow:var(--shadow);padding:6px 20px 14px;gap:0;display:none}
  .nav > ul.open{display:flex}
  .nav > ul li{border-bottom:1px solid var(--line)}
  .nav > ul li:last-child{border-bottom:0}
  .nav > ul a{display:block;padding:14px 2px;font-size:1rem}
}
@media (max-width:600px){
  section{padding:60px 0}
  .g3,.g4,.sys-list,.steps,.proj-hero{grid-template-columns:1fr}
  .proj-list{columns:1;padding:20px}
  .trust-grid{grid-template-columns:1fr 1fr}
  /* 10 قطاعات = عمودين × 5 صفوف، مفيش كارت وحيد في صف */
  .sectors{grid-template-columns:repeat(2,1fr);gap:9px}
  .sector{font-size:.84rem;padding:12px 6px;min-height:50px}
  /* الهيدر على الموبايل: اللوجو يضيق والاسم يلف بدل ما الشريط يطفح */
  .nav{height:auto;min-height:70px;gap:10px;padding-block:9px}
  .logo{flex:1 1 auto;min-width:0}
  .logo img{width:34px}
  .logo-text b{font-size:.72rem;white-space:normal;line-height:1.22}
  .logo-text small{font-size:.57rem;letter-spacing:.1em}
  .tools{gap:6px}
  .tools .btn{padding:9px 12px;font-size:.8rem;white-space:nowrap}
}
