/* قالب "شركة خدمات" */

:root {
  --primary: #0f766e;
  --primary-dark: #115e59;
  --accent: #f59e0b;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --card: #ffffff;
  --bg-soft: #f0fdfa;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  --font-body: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --font-heading: var(--font-body);
  --head-bg: #ffffff;
  --head-ink: #111827;
  --foot-bg: #111827;
  --foot-ink: #d1d5db;
  --foot-head: #ffffff;
  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}

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

/* `img{display:block}` أعلاه من أنماط المؤلّف، وقاعدة المتصفح
   `[hidden]{display:none}` من أنماط الوكيل — والمؤلّف يغلب الوكيل مهما
   كانت الأخصّية. فبلا هذا السطر يظهر شقّ الشعار المخفيّ مربّعًا فارغًا
   في الشريط. قِيس ورُئي. */
[hidden] { display: none !important; }

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

h1, h2, h3 { font-family: var(--font-heading); line-height: 1.3; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* الأزرار */
.btn {
  display: inline-block;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-small { padding: .5rem 1.1rem; font-size: .95rem; }
.btn-ghost {
  background: transparent;
  color: var(--primary);
  box-shadow: inset 0 0 0 2px var(--primary);
}
.btn-ghost:hover { background: var(--bg-soft); }

/* الترويسة */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand { font-weight: 800; font-size: 1.25rem; color: var(--primary-dark); }

.nav { display: flex; align-items: center; gap: 1.5rem; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); display: block; }

/* الواجهة */
.hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: .5rem;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.hero-art img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* الأرقام */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}
.stat { padding: 1.6rem 1rem; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat strong { display: block; font-size: 2rem; color: var(--primary-dark); line-height: 1.1; }
.stat span { color: var(--muted); }

/* الأقسام */
section { padding: 4rem 0; }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 2.5rem; }
.section-head p { color: var(--muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  padding: 2rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-icon { width: 64px; height: 64px; margin-bottom: 1rem; }
.card p { color: var(--muted); margin: 0; }

/* من نحن */
.about { background: var(--bg-soft); }
.about-inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}
.about-art img { border-radius: var(--radius); box-shadow: var(--shadow); }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.checks li { position: relative; padding-inline-start: 2rem; margin-bottom: .6rem; font-weight: 500; }
.checks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .45em;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E") center/70% no-repeat;
}

/* التواصل */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}
.contact-item {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-label { display: block; color: var(--muted); font-size: .9rem; margin-bottom: .3rem; }
.contact-item a { color: var(--primary-dark); font-weight: 700; }
.contact-item p { margin: 0; font-weight: 500; }
.contact-item [dir="ltr"] { display: inline-block; }


/* الشاشات الصغيرة */
@media (max-width: 860px) {
  .hero-inner, .about-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .cards { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr; }
  .stat + .stat { border-inline-start: 0; border-top: 1px solid var(--line); }

  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 72px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    padding: .5rem 1rem 1rem;
  }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: .8rem; text-align: center; border: 0; }
  .nav.open { display: flex; }
}

/* ── شقوق المنصة: الشعار ومبدّل اللغة وألوان الشريط والتذييل ──
   تُكتب في آخر الورقة كي تغلب قواعد الشريط والتذييل أعلاه بلا حذفها. */

.site-header { background: var(--head-bg); color: var(--head-ink); }
.site-header .brand { color: inherit; }

.brand { display: flex; align-items: center; gap: .6rem; }
/* الشقّان مخفيّان حتى يرفع العميل شعارًا، فموقعٌ بلا شعار يعرض اسمه
   نصًّا كما كان. */
.brand-logo { height: var(--logo-h, 80px); width: auto; max-width: 340px; object-fit: contain; }
.foot-logo { height: var(--logo-h, 80px); width: auto; max-width: 340px; object-fit: contain; margin-bottom: .8rem; }

.lang-switch {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
  padding: .28rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.lang-switch:hover { border-color: var(--primary, currentColor); color: var(--primary, currentColor); }

.site-footer { background: var(--foot-bg); color: var(--foot-ink); padding: 3rem 0 0; text-align: start; border-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2.2rem; }
.footer-col h3 { color: var(--foot-head); font-size: 1.05rem; margin-bottom: .7rem; }
.footer-col p { margin: 0 0 .5rem; font-size: .95rem; }
.footer-col a:hover { color: var(--foot-head); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .45rem; font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 1.1rem 0; text-align: center; font-size: .9rem; }
.footer-bottom p { margin: 0; }
.site-footer [dir="ltr"] { display: inline-block; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; }
}
