/* ============================================================
   الشركة الليبية الحديثة لتقنية المعلومات — الهوية الفاتحة
   أزرق مؤسسي #1570EF + تطعيم أحمر #E31E24 على خلفية #F5FAFF
   ============================================================ */

:root {
  --bg: #F5FAFF;
  --surface: #FFFFFF;
  --ink: #262722;
  --navy: #0A2A5E;
  --navy-deep: #071E44;
  --muted: #5C6670;
  --blue: #1570EF;
  --blue-dark: #0E4FB0;
  --blue-soft: #E7F0FD;
  --red: #E31E24;
  --red-dark: #B8151A;
  --red-soft: #FDECEC;
  --border: #E3ECF5;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(10, 42, 94, .05), 0 4px 14px rgba(10, 42, 94, .06);
  --shadow-md: 0 6px 24px rgba(10, 42, 94, .10), 0 2px 6px rgba(10, 42, 94, .06);
  --shadow-lg: 0 18px 50px rgba(10, 42, 94, .16);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font-ar: 'Tajawal', 'Hanken Grotesk', sans-serif;
  --font-num: 'Hanken Grotesk', 'Tajawal', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ar);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.8;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--blue); color: #fff; }

img { max-width: 100%; height: auto; display: block; }

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

.wrap {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* ---------- الترويسة ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand img { width: 46px; height: 46px; object-fit: contain; }

.brand-name {
  font-weight: 800;
  font-size: 1.06rem;
  color: var(--navy);
  line-height: 1.35;
}

.brand-name small {
  display: block;
  font-weight: 500;
  font-size: .74rem;
  color: var(--muted);
}

.main-nav {
  display: flex;
  gap: 6px;
  margin-inline-start: auto;
}

.main-nav a {
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  color: var(--navy);
  transition: color .3s var(--ease), background .3s var(--ease);
}

.main-nav a:hover { color: var(--blue); background: var(--blue-soft); }

.main-nav a.active { color: var(--red); }
.main-nav a.active::after {
  content: '';
  display: block;
  height: 2.5px;
  width: 60%;
  margin-inline: auto;
  margin-top: 2px;
  border-radius: 2px;
  background: var(--red);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--navy);
}

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1rem;
  font-family: var(--font-ar);
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}

.btn:hover { transform: translateY(-3px); }

.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 20px rgba(227, 30, 36, .28);
}
.btn-red:hover { background: var(--red-dark); box-shadow: 0 12px 28px rgba(227, 30, 36, .34); }

.btn-blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(21, 112, 239, .26);
}
.btn-blue:hover { background: var(--blue-dark); box-shadow: 0 12px 28px rgba(21, 112, 239, .32); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: #C9D8EA;
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

.btn-sm { padding: 10px 22px; font-size: .92rem; border-radius: 12px; }

/* ---------- قسم البداية ---------- */
.hero {
  position: relative;
  padding: 84px 0 40px;
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(21, 112, 239, .10), transparent 60%),
    radial-gradient(700px 420px at 4% 30%, rgba(227, 30, 36, .05), transparent 55%),
    linear-gradient(180deg, #EDF4FD 0%, var(--bg) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  font-weight: 800;
  font-size: .82rem;
}

.eyebrow::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(227, 30, 36, .45); }
  50% { box-shadow: 0 0 0 7px rgba(227, 30, 36, 0); }
}

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.28;
  margin: 22px 0 18px;
}

.hero h1 .hl { color: var(--red); }

.hero-sub {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.hero p.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 54ch;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-visual {
  position: relative;
}

.hero-visual .frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.2deg);
  transition: transform .5s var(--ease);
}
.hero-visual .frame:hover { transform: rotate(0deg) scale(1.01); }

.hero-visual .frame img {
  border-radius: 14px;
  width: 100%;
}

.hero-badge {
  position: absolute;
  top: -20px;
  inset-inline-start: -14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: .85rem;
  color: var(--navy);
  animation: floaty 5s ease-in-out infinite;
}

.hero-badge .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--red);
  animation: pulse 1.6s infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- الإحصاءات ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 56px;
  padding-bottom: 64px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.stat-card:hover { transform: translateY(-5px) scale(1.02); box-shadow: var(--shadow-md); }

.stat-card .ic {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.stat-card .num {
  font-family: var(--font-num);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  direction: ltr;
  font-variant-numeric: tabular-nums;
  min-width: 3.2ch;
  text-align: center;
}

.stat-card .lbl { font-size: .88rem; color: var(--muted); font-weight: 700; }

/* ---------- الأقسام العامة ---------- */
.section { padding: 96px 0; }

.section.alt { background: var(--surface); }

.section-head { max-width: 640px; margin-bottom: 54px; }
.section-head.center { margin-inline: auto; text-align: center; }

.kicker {
  display: inline-block;
  color: var(--red);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .02em;
  margin-bottom: 12px;
}

.kicker::before { content: '—— '; color: var(--red); opacity: .5; }
.section-head.center .kicker::after { content: ' ——'; color: var(--red); opacity: .5; }

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.35;
}

.section-head p { color: var(--muted); margin-top: 12px; }

/* ---------- بطاقات الخدمات ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.svc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  position: relative;
  overflow: hidden;
}

.svc-card::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--blue));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}

.svc-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow-md); border-color: transparent; }
.svc-card:hover::after { transform: scaleX(1); }

.svc-card .ic {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
  transition: background .35s var(--ease), color .35s var(--ease);
}

.svc-card:hover .ic { background: var(--red); color: #fff; }

.svc-card h3 { font-size: 1.14rem; font-weight: 800; color: var(--navy); line-height: 1.5; }

.svc-card p { font-size: .94rem; color: var(--muted); flex: 1; }

.svc-card .more {
  font-weight: 800;
  font-size: .9rem;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .3s var(--ease);
}

.svc-card:hover .more { gap: 12px; }

/* ---------- قسم التخصص (المراقبة الذكية) ---------- */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-split .img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--surface);
}

.feature-split .img-frame img { width: 100%; height: 100%; object-fit: cover; }

.check-list { display: grid; gap: 18px; margin-top: 28px; }

.check-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.check-item:hover { transform: translateX(-6px); box-shadow: var(--shadow-md); }

.check-item .ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.check-item h3 { font-size: 1rem; font-weight: 800; color: var(--navy); }
.check-item p { font-size: .9rem; color: var(--muted); }

/* ---------- لماذا نحن ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.why-grid.c2 { grid-template-columns: repeat(2, 1fr); }
.contact-grid.c3 { grid-template-columns: repeat(3, 1fr); }

.why-card {
  padding: 28px 26px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}

.why-card:hover { transform: translateY(-5px); background: var(--surface); box-shadow: var(--shadow-md); }

.why-card .n {
  font-family: var(--font-num);
  font-size: .85rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: .08em;
}

.why-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--navy); margin: 8px 0 8px; }
.why-card p { font-size: .93rem; color: var(--muted); }

/* ---------- شريط الدعوة ---------- */
.cta-band {
  position: relative;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy) 55%, #123C7E);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  overflow: hidden;
  text-align: center;
  color: #fff;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 260px at 90% 0%, rgba(227, 30, 36, .25), transparent 60%),
    radial-gradient(420px 240px at 8% 100%, rgba(21, 112, 239, .35), transparent 60%);
}

.cta-band > * { position: relative; }

.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 900; margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, .75); max-width: 52ch; margin: 0 auto 30px; }

.cta-band .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .4); }
.cta-band .btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }

/* ---------- التذييل ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .78);
  margin-top: 96px;
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.site-footer .brand-name { color: #fff; }
.site-footer .brand-name small { color: rgba(255,255,255,.55); }

.site-footer p { font-size: .92rem; margin-top: 14px; max-width: 40ch; }

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.site-footer ul { list-style: none; display: grid; gap: 10px; }

.site-footer ul a, .site-footer ul span {
  font-size: .92rem;
  transition: color .3s var(--ease);
}

.site-footer ul a:hover { color: var(--red); }

.footer-contact { display: grid; gap: 10px; font-size: .92rem; }
.footer-contact a { direction: ltr; display: inline-block; }
.footer-contact a:hover { color: var(--red); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: rgba(255, 255, 255, .55);
}

/* ---------- ترويسة الصفحات الداخلية ---------- */
.page-hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(700px 360px at 90% -20%, rgba(21, 112, 239, .12), transparent 60%),
    linear-gradient(180deg, #EDF4FD, var(--bg));
}

.crumbs { font-size: .85rem; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
.crumbs a { color: var(--blue); }
.crumbs a:hover { color: var(--red); }

.page-hero h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 900;
  color: var(--navy);
}

.page-hero p { color: var(--muted); max-width: 64ch; margin-top: 14px; font-size: 1.05rem; }

/* ---------- صفحة من نحن ---------- */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}

.fact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.fact .t { font-size: .82rem; font-weight: 800; color: var(--red); margin-bottom: 6px; }
.fact .v { font-weight: 800; color: var(--navy); font-size: .98rem; line-height: 1.6; }

.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.vm-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.vm-card::before {
  content: '';
  position: absolute;
  top: 0; inset-inline-start: 0;
  width: 5px; height: 100%;
  background: var(--blue);
}
.vm-card.red::before { background: var(--red); }

.vm-card h3 { color: var(--navy); font-weight: 900; font-size: 1.25rem; margin-bottom: 6px; }
.vm-card .sub { color: var(--red); font-weight: 800; font-size: .9rem; margin-bottom: 12px; }
.vm-card p { color: var(--muted); }

.values-list { display: grid; gap: 14px; counter-reset: val; }

.value-item {
  display: flex;
  gap: 18px;
  align-items: baseline;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}

.value-item .no {
  font-family: var(--font-num);
  font-weight: 800;
  color: var(--red);
  font-size: 1.1rem;
}

.value-item strong { color: var(--navy); }
.value-item span { color: var(--muted); font-size: .95rem; }

/* ---------- صفحة العملاء ---------- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.client-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  font-weight: 800;
  font-size: .92rem;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.client-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.client-chip .no {
  font-family: var(--font-num);
  font-size: .8rem;
  font-weight: 800;
  color: var(--red);
  background: var(--red-soft);
  border-radius: 8px;
  padding: 4px 8px;
  flex-shrink: 0;
}

.sector-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.sector-tags span {
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-weight: 700;
  font-size: .85rem;
  border-radius: 999px;
  padding: 8px 18px;
}

.ach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.ach-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.ach-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.ach-card .tag {
  display: inline-block;
  background: var(--red-soft);
  color: var(--red);
  font-weight: 800;
  font-size: .78rem;
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 14px;
}

.ach-card h3 { color: var(--navy); font-weight: 800; font-size: 1.12rem; margin-bottom: 10px; }
.ach-card p { color: var(--muted); font-size: .95rem; }

/* ---------- صفحة التواصل ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.contact-card .ic {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-card h3 { color: var(--navy); font-weight: 800; font-size: 1.08rem; }
.contact-card p, .contact-card a.val { color: var(--muted); font-size: .95rem; }
.contact-card a.val { direction: ltr; display: inline-block; font-weight: 800; color: var(--blue); }
.contact-card a.val:hover { color: var(--red); }

.note-strip {
  margin-top: 22px;
  background: var(--blue-soft);
  border: 1px solid #CBDEF8;
  color: var(--blue-dark);
  font-weight: 700;
  font-size: .92rem;
  border-radius: 14px;
  padding: 16px 22px;
}

/* ---------- الحركات ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.in { opacity: 1; transform: translateY(0); }

.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
.reveal[data-delay="5"] { transition-delay: .5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ---------- التجاوب ---------- */
@media (max-width: 1020px) {
  .hero-grid, .feature-split { grid-template-columns: 1fr; gap: 40px; }
  .services-grid, .why-grid, .clients-grid, .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .vm-grid, .ach-grid, .contact-grid, .contact-grid.c3 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: #fff;
    flex-direction: column;
    padding: 14px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; margin-inline-start: auto; }
  .header-cta { display: none; }
  .services-grid, .why-grid, .why-grid.c2, .clients-grid, .facts-grid, .stats { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 26px; }
  .section { padding: 64px 0; }
  .hero { padding-top: 56px; }
  .hero-badge { inset-inline-start: 4px; }
}

/* ---------- النسخة الإنجليزية (LTR) ---------- */
html[lang="en"] body { font-family: 'Hanken Grotesk', 'Tajawal', sans-serif; }
html[lang="en"] .check-item:hover { transform: translateX(6px); }
html[lang="en"] .crumbs a { color: var(--blue); }
