/* ==========================================================
   ABM — app.css
   هوية: كحلي + ذهبي | RTL/LTR بنفس الملف (خصائص منطقية)
   ========================================================== */

/* ---------- 1) المتغيرات ---------- */
:root {
  --navy-950: #060b18;
  --navy-900: #0a0f1e;
  --navy-800: #101a33;
  --navy-700: #18253f;
  --gold: #c9a24b;
  --gold-2: #e8cf8c;
  --gold-ink: #7d5e12;

  --bg: #ffffff;
  --bg-soft: #f5f6fa;
  --surface: #ffffff;
  --text: #0f172a;
  --text-2: #475569;
  --line: #e3e7ef;
  --accent-text: var(--gold-ink);
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, .06);
  --shadow-md: 0 14px 36px rgba(15, 23, 42, .10);
  --header-bg: rgba(255, 255, 255, .86);

  --c-software: #3b82f6;
  --c-cctv: #14b8a6;
  --c-solar: #f59e0b;
  --c-network: #8b5cf6;
  --c-business: #f43f5e;
  --c-management: #c9a24b;

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1200px;
  --header-h: 72px;
  --font: "Cairo", "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

[data-theme="dark"] {
  --bg: #0a0f1e;
  --bg-soft: #0e1528;
  --surface: #121b33;
  --text: #eef2f9;
  --text-2: #a4b0c6;
  --line: rgba(255, 255, 255, .09);
  --accent-text: var(--gold-2);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .3);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, .4);
  --header-bg: rgba(10, 15, 30, .84);
}

/* ---------- 2) أساسيات ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4 { line-height: 1.35; font-weight: 800; letter-spacing: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--navy-900); }

.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .i-dir { transform: scaleX(-1); }
[dir="ltr"] .i-dir-flip { transform: scaleX(-1); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.container.narrow { max-width: 860px; }
.is-center { text-align: center; }
.muted { color: var(--text-2); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200; background: var(--gold); color: var(--navy-900); padding: 8px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.gold-text { background: linear-gradient(100deg, var(--gold-2), var(--gold) 60%, #b98a2e); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 3) الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: .55em 1.4em; border-radius: 12px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s, background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--navy-900); box-shadow: 0 8px 22px rgba(201, 162, 75, .32); }
.btn-gold:hover { box-shadow: 0 12px 28px rgba(201, 162, 75, .45); }
.btn-outline { border-color: var(--line); background: var(--surface); color: var(--text); }
.btn-outline:hover { border-color: var(--gold); color: var(--accent-text); }
.btn-outline-light { border-color: rgba(255, 255, 255, .28); color: #fff; background: rgba(255, 255, 255, .06); }
.btn-outline-light:hover { border-color: var(--gold-2); color: var(--gold-2); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { color: var(--accent-text); }
.btn-sm { min-height: 40px; padding: .4em 1.05em; font-size: .95rem; border-radius: 10px; }
.btn-lg { min-height: 54px; padding: .6em 1.7em; font-size: 1.08rem; }
.btn-block { display: flex; width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 42px; height: 42px; padding: 0 10px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer;
  font-weight: 700; font-size: .9rem; transition: border-color .2s, color .2s, background-color .2s;
}
.icon-btn:hover { border-color: var(--gold); color: var(--accent-text); }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--accent-text); }
.link-arrow .i { transition: transform .2s var(--ease); }
a:hover > .link-arrow .i-dir, .link-arrow:hover .i-dir, .card:hover .link-arrow .i-dir { transform: translateX(4px) scaleX(1); }
[dir="rtl"] a:hover > .link-arrow .i-dir, [dir="rtl"] .link-arrow:hover .i-dir, [dir="rtl"] .card:hover .link-arrow .i-dir { transform: translateX(-4px) scaleX(-1); }

/* ---------- 4) الهيدر ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: var(--header-bg); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 40px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.4rem; font-weight: 800; letter-spacing: .08em; color: var(--accent-text); }
.brand-text small { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); font-weight: 600; }

.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a:not(.btn) { display: block; padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 1rem; color: var(--text-2); transition: color .2s, background-color .2s; }
.main-nav a:not(.btn):hover { color: var(--text); background: var(--bg-soft); }
.main-nav a.is-active { color: var(--accent-text); background: var(--bg-soft); }
.nav-cta-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.theme-sun { display: none; }
[data-theme="dark"] .theme-moon { display: none; }
[data-theme="dark"] .theme-sun { display: block; }
.menu-btn { display: none; }
.menu-close { display: none; }
.nav-backdrop { position: fixed; inset: 0; background: rgba(6, 11, 24, .6); z-index: 90; }

@media (max-width: 1020px) {
  /* backdrop-filter يجعل الهيدر هو "الأب" للعناصر fixed فيكسر القائمة الجانبية */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
  .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .main-nav {
    position: fixed; inset-block: 0; inset-inline-end: 0; width: min(340px, 86vw); z-index: 110;
    margin: 0; padding: calc(var(--header-h) + 10px) 18px 24px; background: var(--bg);
    border-inline-start: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s;
    overflow-y: auto;
  }
  [dir="rtl"] .main-nav { transform: translateX(-100%); }
  .main-nav.is-open { transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a:not(.btn) { padding: 14px 16px; font-size: 1.1rem; }
  .nav-cta-mobile { display: block; margin-top: 14px; }
  .site-header { z-index: 120; }
  .menu-open { display: block; }
  .menu-btn[aria-expanded="true"] .menu-open { display: none; }
  .menu-btn[aria-expanded="true"] .menu-close { display: block; }
}
@media (max-width: 480px) {
  .lang-btn span { display: none; }
  .brand-text small { display: none; }
  .header-inner { gap: 10px; }
}

/* ---------- 5) الأقسام والعناوين ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-soft { background: var(--bg-soft); }
.section-dark { background: linear-gradient(180deg, var(--navy-900), var(--navy-800)); color: #fff; }
.section-dark .muted, .section-dark p { color: #b8c3d9; }
.section-more { margin-top: 40px; text-align: center; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 700; color: var(--accent-text); letter-spacing: .02em; margin-bottom: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); border-radius: 2px; }
.eyebrow-gold { color: var(--gold-2); padding: 6px 14px; border: 1px solid rgba(232, 207, 140, .3); border-radius: 999px; background: rgba(201, 162, 75, .1); }
.eyebrow-gold::before { display: none; }
.section-dark .eyebrow { color: var(--gold-2); }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head.is-center .eyebrow { justify-content: center; }
.section-head h2, .h-lg { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.section-head p { margin-top: 12px; color: var(--text-2); font-size: 1.08rem; }
.section-dark .section-head p { color: #b8c3d9; }
.section-split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- 6) Hero ---------- */
.hero { position: relative; background: var(--navy-900); color: #fff; overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(201, 162, 75, .22), transparent 60%),
    radial-gradient(700px 480px at 0% 110%, rgba(59, 130, 246, .20), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(28px, 5vw, 64px); padding-block: clamp(48px, 8vw, 96px); }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.3; margin-block: 18px; font-weight: 800; }
.hero-line { display: block; }
.hero .lead { color: #c3cde0; font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; color: #d7deec; font-size: .98rem; font-weight: 600; }
.trust-list li { display: inline-flex; align-items: center; gap: 8px; }
.trust-list .i { color: var(--gold-2); }

.hero-visual { position: relative; }
.hero-frame { border-radius: 24px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 30px 70px rgba(0, 0, 0, .5), 0 0 0 8px rgba(255, 255, 255, .03); aspect-ratio: 8 / 5; background: var(--navy-800); }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-float {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px; font-weight: 700; font-size: .95rem;
  background: rgba(10, 15, 30, .82); border: 1px solid rgba(232, 207, 140, .3); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
}
.hero-float .i { color: var(--gold-2); }
.hero-float-a { inset-block-start: -16px; inset-inline-start: -14px; }
.hero-float-b { inset-block-end: 38px; inset-inline-end: -16px; }
.hero-float-c { inset-block-end: -18px; inset-inline-start: 12%; }
@media (prefers-reduced-motion: no-preference) {
  .hero-float { animation: bob 6s ease-in-out infinite; }
  .hero-float-b { animation-delay: -2s; }
  .hero-float-c { animation-delay: -4s; }
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin-top: 8px; }
  .hero-float-a { inset-inline-start: 4px; }
  .hero-float-b { inset-inline-end: 4px; }
}
@media (max-width: 520px) { .hero-float { padding: 7px 11px; font-size: .82rem; } .hero-actions .btn { flex: 1 1 100%; } }

/* ---------- 7) الإحصائيات ---------- */
.stats-strip { background: var(--navy-900); color: #fff; border-top: 1px solid rgba(255, 255, 255, .06); }
.stats-strip.stats-light { background: var(--bg-soft); color: var(--text); border-block: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 34px; }
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.stat .i { color: var(--gold); font-size: 1.5rem; margin-bottom: 4px; }
.stat strong { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.2; }
.stat span:last-child { color: #aab6cc; font-size: .98rem; }
.stats-light .stat span:last-child { color: var(--text-2); }
@media (max-width: 640px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; } }

/* ---------- 8) الشبكات والبطاقات ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(201, 162, 75, .5); }
.card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; flex: 1; }
.card-body h3 { font-size: 1.2rem; }
.card-body > p { color: var(--text-2); font-size: .98rem; line-height: 1.75; }
.card-body .link-arrow { margin-top: auto; padding-top: 6px; }
.card-badge { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; }
a.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.media-ph { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); }
.media-ph .i { width: 44px; height: 44px; opacity: .85; }
.media-ph.cat-software { background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.media-ph.cat-cctv { background: linear-gradient(135deg, #0f4c4a, #14b8a6); }
.media-ph.cat-solar { background: linear-gradient(135deg, #92400e, #f59e0b); }
.media-ph.cat-network { background: linear-gradient(135deg, #4c1d95, #8b5cf6); }
.media-ph.cat-business { background: linear-gradient(135deg, #9f1239, #f43f5e); }

.chip { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; line-height: 1.6; background: rgba(201, 162, 75, .14); color: var(--accent-text); }
.chip .i { width: 1em; height: 1em; }
.chip.cat-software { background: rgba(59, 130, 246, .14); color: #2563eb; }
.chip.cat-cctv { background: rgba(20, 184, 166, .15); color: #0f8f82; }
.chip.cat-solar { background: rgba(245, 158, 11, .17); color: #b86e00; }
.chip.cat-network { background: rgba(139, 92, 246, .15); color: #6d3fd9; }
.chip.cat-business { background: rgba(244, 63, 94, .13); color: #d0213f; }
[data-theme="dark"] .chip.cat-software { color: #7fb0ff; }
[data-theme="dark"] .chip.cat-cctv { color: #4fe0cf; }
[data-theme="dark"] .chip.cat-solar { color: #ffc766; }
[data-theme="dark"] .chip.cat-network { color: #b9a0ff; }
[data-theme="dark"] .chip.cat-business { color: #ff8da0; }
.card-badge .chip { background: rgba(10, 15, 30, .78); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

.tick-list { display: grid; gap: 6px; font-size: .94rem; color: var(--text-2); }
.tick-list li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.55; }
.tick-list .i { color: var(--c-cctv); margin-top: 2px; width: 1.05em; height: 1.05em; }
.meta-list { display: grid; gap: 6px; color: var(--text-2); font-size: .94rem; }
.meta-list li { display: flex; gap: 8px; align-items: center; }
.meta-list .i { color: var(--gold); width: 1.05em; height: 1.05em; }

.service-card, .project-card, .team-card { border-top: 3px solid transparent; }
.cat-software.card { border-top-color: var(--c-software); }
.cat-cctv.card { border-top-color: var(--c-cctv); }
.cat-solar.card { border-top-color: var(--c-solar); }
.cat-network.card { border-top-color: var(--c-network); }
.cat-business.card { border-top-color: var(--c-business); }
.cat-management.card { border-top-color: var(--c-management); }

/* بطاقة الفريق */
.team-photo { aspect-ratio: 1 / 1; overflow: hidden; background: linear-gradient(160deg, var(--bg-soft), var(--surface)); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .6s var(--ease); }
.team-card:hover .team-photo img { transform: scale(1.05); }
.team-role { color: var(--accent-text); font-weight: 700; font-size: .95rem; }
.team-bio { color: var(--text-2); font-size: .93rem; line-height: 1.7; }

/* ---------- 9) الخطوات ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 28px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.step h3 { font-size: 1.15rem; margin-block: 14px 8px; color: #fff; }
.step p { color: #b8c3d9; font-size: .98rem; line-height: 1.75; }
.step-num { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-weight: 800; font-size: 1.2rem; color: var(--navy-900); background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- 10) لماذا نحن ---------- */
.why-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.why-head { position: sticky; top: calc(var(--header-h) + 24px); }
.why-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 14px; }
.tech-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tech-chips li { padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; font-weight: 700; color: var(--text-2); background: var(--surface); }
.why-list { display: grid; gap: 14px; }
.why-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.why-item h3 { font-size: 1.1rem; margin-bottom: 2px; }
.why-item p { color: var(--text-2); font-size: .97rem; line-height: 1.7; }
.why-icon, .info-icon, .csr-icon, .pillar-icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: rgba(201, 162, 75, .15); color: var(--accent-text); }
.why-icon .i, .info-icon .i { width: 24px; height: 24px; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } .why-head { position: static; } }

/* ---------- 11) آراء العملاء ---------- */
.carousel { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-block: 8px 20px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.carousel:focus-visible { outline-offset: -2px; }
.carousel-slide { flex: 0 0 calc((100% - 20px) / 2); scroll-snap-align: start; display: flex; }
@media (max-width: 800px) { .carousel-slide { flex-basis: 88%; } }
.carousel-controls { display: flex; gap: 8px; margin-bottom: clamp(28px, 4vw, 48px); }
.testimonial { display: flex; flex-direction: column; gap: 16px; width: 100%; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.testimonial blockquote { font-size: 1.04rem; line-height: 1.9; flex: 1; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--gold); }
.avatar-ph { display: grid; place-items: center; background: var(--gold); color: var(--navy-900); font-weight: 800; }
.who { display: flex; flex-direction: column; line-height: 1.4; }
.who small { color: var(--text-2); font-size: .85rem; }
.stars { display: inline-flex; gap: 3px; color: var(--gold); }
.stars .i { width: 18px; height: 18px; }
.stars .i.on { fill: currentColor; }

/* ---------- 12) دعوة للإجراء ---------- */
.cta-band { background: var(--navy-900); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 90% 0%, rgba(201, 162, 75, .25), transparent 70%), radial-gradient(500px 300px at 0% 100%, rgba(59, 130, 246, .18), transparent 70%); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-block: clamp(44px, 6vw, 72px); }
.cta-inner h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.cta-inner p { color: #b8c3d9; margin-top: 8px; max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 13) الصفحات الداخلية ---------- */
.page-hero { position: relative; background: linear-gradient(180deg, var(--navy-900), var(--navy-800)); color: #fff; padding-block: clamp(36px, 5vw, 64px); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(520px 260px at 90% 0%, rgba(201, 162, 75, .2), transparent 70%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin-top: 12px; }
.page-hero .lead { color: #c3cde0; margin-top: 12px; max-width: 62ch; font-size: 1.1rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .92rem; color: #aab6cc; }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 6px; opacity: .5; }
.breadcrumb a:hover { color: var(--gold-2); }
.breadcrumb [aria-current] { color: var(--gold-2); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.filter-tabs ul { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tabs { margin-bottom: 0; }
.section > .container > .filter-tabs { margin-bottom: 32px; }
.filter-tabs a { display: inline-block; padding: 8px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: .95rem; color: var(--text-2); transition: all .2s; }
.filter-tabs a:hover { border-color: var(--gold); color: var(--accent-text); }
.filter-tabs a.is-active { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
[data-theme="dark"] .filter-tabs a.is-active { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }

.search-box { display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 12px; padding-inline: 14px 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); min-width: min(100%, 360px); }
.search-box .i { color: var(--text-2); }
.search-box input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 8px 4px; outline: none; }
.search-box:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 75, .2); }

.pagination { margin-top: 44px; }
.pagination ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pagination a, .pagination .dots { display: inline-flex; align-items: center; gap: 6px; min-width: 42px; height: 42px; padding-inline: 14px; justify-content: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 700; }
.pagination .dots { border: 0; background: none; }
.pagination a:hover { border-color: var(--gold); color: var(--accent-text); }
.pagination a.is-active { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }
.empty-state { text-align: center; color: var(--text-2); padding-block: 48px; }

/* التفاصيل */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.detail-main > * + * { margin-top: 28px; }
.detail-cover { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--bg-soft); }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-h { font-size: 1.5rem; margin-top: 40px !important; }
.detail-chips { margin-bottom: 14px; }
.prose p + p { margin-top: 1em; }
.prose p { color: var(--text-2); font-size: 1.08rem; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.feature-grid li { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; line-height: 1.6; }
.feature-grid .i { color: var(--c-cctv); margin-top: 3px; }
.detail-side { position: sticky; top: calc(var(--header-h) + 20px); }
.side-card { display: grid; gap: 14px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.side-card h2 { font-size: 1.3rem; }
.side-card p { color: var(--text-2); font-size: .98rem; line-height: 1.7; }
.price strong { color: var(--accent-text); font-size: 1.2rem; }
.facts { display: grid; gap: 14px; }
.facts div { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.facts dt { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: .88rem; font-weight: 600; }
.facts dt .i { color: var(--gold); }
.facts dd { font-weight: 700; }
.csr-grid { display: grid; gap: 16px; }
.csr-card { padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--gold); }
.csr-card h3 { margin-block: 10px 6px; font-size: 1.15rem; }
.csr-card p { color: var(--text-2); }
.csr-icon { width: 40px; height: 40px; border-radius: 12px; }
.video-wrap { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery a { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery a:hover img { transform: scale(1.07); }
@media (max-width: 960px) { .detail-grid { grid-template-columns: 1fr; } .detail-side { position: static; } .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

.lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: rgba(4, 8, 18, .94); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(4, 8, 18, .94); }
.lightbox img { max-width: 92vw; max-height: 86dvh; width: auto; height: auto; border-radius: 10px; object-fit: contain; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
.lb-btn:hover { background: var(--gold); color: var(--navy-900); }
.lb-close { inset-block-start: 16px; inset-inline-end: 16px; }
.lb-prev { inset-inline-start: 16px; top: 50%; translate: 0 -50%; }
.lb-next { inset-inline-end: 16px; top: 50%; translate: 0 -50%; }

/* من نحن + فريق */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.about-logo { display: grid; place-items: center; padding: 40px; border-radius: 28px; background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); box-shadow: var(--shadow-md); }
.about-logo img { width: min(240px, 70%); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.info-card { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.info-card h3 { margin-block: 16px 8px; font-size: 1.2rem; }
.info-card p { color: var(--text-2); }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.pillar { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: transform .3s var(--ease), border-color .3s; }
.pillar:hover { transform: translateY(-5px); border-color: var(--gold-2); }
.pillar h3 { font-size: 1.3rem; color: #fff; }
.pillar .link-arrow { color: var(--gold-2); }
.pillar-icon { width: 56px; height: 56px; color: #fff; }
.pillar.cat-software .pillar-icon { background: rgba(59, 130, 246, .3); }
.pillar.cat-cctv .pillar-icon { background: rgba(20, 184, 166, .3); }
.pillar.cat-solar .pillar-icon { background: rgba(245, 158, 11, .3); }
.pillar.cat-network .pillar-icon { background: rgba(139, 92, 246, .35); }
.pillar.cat-business .pillar-icon { background: rgba(244, 63, 94, .3); }
.join-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 48px; padding: 28px 32px; border-radius: var(--radius); background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff; }
.join-card h2 { font-size: 1.4rem; }
.join-card p { color: #b8c3d9; margin-top: 4px; }
@media (max-width: 860px) { .about-grid, .two-col, .pillars { grid-template-columns: 1fr; } .about-logo { order: -1; } }

/* الأسئلة الشائعة */
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .i { transition: transform .25s; color: var(--gold); }
.faq-item[open] summary .i { transform: rotate(180deg); }
.faq-item[open] { border-color: rgba(201, 162, 75, .5); }
.faq-item p { padding: 0 22px 20px; color: var(--text-2); }

/* التواصل والنماذج */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, transform .2s; }
a.contact-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.contact-card > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.5; }
.contact-card small { color: var(--text-2); font-size: .85rem; }
.contact-card strong { overflow-wrap: anywhere; }
.contact-card.is-wa .info-icon { background: rgba(37, 211, 102, .16); color: #1aa34a; }
.form-card { padding: clamp(22px, 3vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-md); display: grid; gap: 18px; }
.form-card h2 { font-size: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .95rem; }
.field input, .field select, .field textarea, .newsletter input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); transition: border-color .2s, box-shadow .2s; min-height: 48px;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus, .newsletter input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 75, .18); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #dc2626; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.6em; font-weight: 700; font-size: .97rem; }
.form-status.is-ok { color: #15803d; }
.form-status.is-err { color: #dc2626; }
[data-theme="dark"] .form-status.is-ok { color: #4ade80; }
[data-theme="dark"] .form-status.is-err { color: #f87171; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.error-page { min-height: 60vh; display: grid; align-items: center; }
.error-code { font-size: clamp(5rem, 18vw, 9rem); font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--gold-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page h1 { font-size: 2rem; margin-block: 8px; }
.error-page p.lead { margin-bottom: 24px; }
.error-page .btn { margin: 4px; }

/* ---------- 14) الفوتر ---------- */
.site-footer { background: var(--navy-950); color: #c3cde0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1.4fr; gap: clamp(24px, 4vw, 48px); padding-block: clamp(44px, 6vw, 72px) 36px; }
.footer-brand p { margin-top: 16px; font-size: .97rem; line-height: 1.8; max-width: 36ch; }
.site-footer .brand-text strong { color: var(--gold-2); }
.site-footer .brand-text small { color: #8d9ab3; }
.footer-col h3 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.footer-col li + li { margin-top: 8px; }
.footer-col a:hover { color: var(--gold-2); }
.contact-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; line-height: 1.6; }
.contact-list .i { color: var(--gold); margin-top: 4px; width: 1.05em; height: 1.05em; }
.social-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.social-list a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); color: #fff; background: rgba(255, 255, 255, .05); transition: all .2s; }
.social-list a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-900); transform: translateY(-3px); }
.social-list.is-small { margin-top: 4px; }
.social-list.is-small a { width: 36px; height: 36px; border-radius: 10px; color: var(--text); border-color: var(--line); background: var(--bg-soft); }
.contact-cards > .social-list a { color: var(--text); border-color: var(--line); background: var(--surface); }
.newsletter { margin-top: 22px; }
.newsletter-label { display: block; color: #fff; font-weight: 700; margin-bottom: 8px; font-size: .95rem; }
.newsletter-row { display: flex; gap: 8px; }
.newsletter input { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #fff; min-height: 42px; padding: 8px 12px; min-width: 0; }
.newsletter input::placeholder { color: #8d9ab3; }
.newsletter .form-status { margin-top: 6px; font-size: .88rem; min-height: 1.4em; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 20px; font-size: .9rem; color: #8d9ab3; text-align: center; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 15) عناصر عائمة ---------- */
.float-whatsapp { position: fixed; inset-block-end: 20px; inset-inline-end: 20px; z-index: 80; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #25d366, #128c7e); color: #fff; box-shadow: 0 8px 24px rgba(37, 211, 102, .45); transition: transform .2s; }
.float-whatsapp:hover { transform: scale(1.1); }
.float-whatsapp .i { width: 28px; height: 28px; }
.back-top { position: fixed; inset-block-end: 88px; inset-inline-end: 24px; z-index: 80; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); box-shadow: var(--shadow-md); cursor: pointer; }
.back-top[hidden] { display: none; }
.back-top:hover { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }

/* ---------- 16) ظهور تدريجي (يعمل فقط عند توفر JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
[hidden] { display: none !important; }

@media print {
  .site-header, .site-footer, .float-whatsapp, .back-top, .cta-band { display: none !important; }
  body { color: #000; background: #fff; }
}
