/* ==========================================================
   adeems DESIGN — الأنماط الرئيسية
   الوضع النهاري: خلفية بيضاء نقية — الوضع الليلي: خلفية سوداء
   ========================================================== */

:root {
  --blue: #0086c6;          /* لون الأزرار (أزرق الهوية) */
  --blue-hover: #006fa6;
  --blue-brand: #00a0e4;    /* أزرق الشعار الأصلي */
  --blue-text: #0078ae;
  --red: #c42026;

  --bg: #ffffff;
  --card: #ffffff;
  --ink: #15202b;
  --body: #3d4b5a;
  --muted: #5d6c7b;
  --line: #e3ebf1;
  --name: #000000;          /* اسم الموقع */
  --foot: #6b7280;          /* رمادي متوسط — نص الفوتر */
  --tint: #eaf6fc;          /* خلفية بطاقات الخدمات */
  --tint-2: #fdf0f0;
  --tint-3: #eef2f8;
  --ring: #d9eef9;
  --blob-bg: #ffffff;
  --shadow: rgba(21, 32, 43, .08);
  --link-on-tint: #0078ae;

  --font: "Manrope", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, -apple-system, sans-serif;

  --fs-sm: 0.9rem;
  --fs-base: 1.0625rem;
  --fs-lead: 1.1875rem;
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.8rem, 1.35rem + 1.8vw, 2.5rem);
  --fs-h1: clamp(2rem, 1.4rem + 2.8vw, 3.4rem);

  --container: 1120px;
  --radius: 18px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #000000;
  --card: #0e151c;
  --ink: #f1f5f9;
  --body: #c6d0da;
  --muted: #9db0c0;
  --line: #1c2733;
  --name: #ffffff;
  --foot: #c3cbd4;          /* رمادي فاتح — نص الفوتر */
  --tint: #0a1a25;
  --tint-2: #1b1011;
  --tint-3: #0f1620;
  --ring: #12384c;
  --blob-bg: #000000;
  --shadow: rgba(0, 0, 0, .5);
  --blue-text: #4cc3f5;
  --link-on-tint: #4cc3f5;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0; background: var(--bg); color: var(--body); font-family: var(--font);
  font-size: var(--fs-base); line-height: 1.95; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); }

:focus-visible { outline: 3px solid var(--blue-brand); outline-offset: 3px; border-radius: 8px; }

.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.ico { width: 22px; height: 22px; fill: currentColor; flex: none; }

/* اسم الموقع: لون واحد بخط Manrope العريض */
.name {
  font-family: "Manrope", sans-serif; font-weight: 800; color: var(--name); letter-spacing: -.01em;
  direction: ltr; unicode-bidi: isolate; white-space: nowrap;
}

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 32px; border-radius: 999px; font-weight: 700; font-size: var(--fs-base); line-height: 1;
  border: 2px solid var(--blue); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn-outline { background: transparent; color: var(--blue-text); border-color: var(--blue); }
.btn-outline:hover { background: var(--tint); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- الهيدر العائم ---------- */
.header { position: fixed; top: 16px; inset-inline: 0; z-index: 50; }
.header .container {
  height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--card); border-radius: 14px; border: 1px solid var(--line);
  box-shadow: 0 8px 30px var(--shadow); padding-inline: 28px;
}
.brand { font-size: 1.45rem; line-height: 1; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a.link { padding: 8px 16px; border-radius: 999px; font-weight: 600; color: var(--ink); transition: color .2s, background-color .2s; }
.nav a.link:hover, .nav a.link[aria-current="page"] { color: var(--blue-text); background: var(--tint); }
.nav-social { display: none; }

.tools { display: flex; align-items: center; gap: 4px; }

/* أيقونات التواصل بأسلوب Julie: رموز بسيطة بدون خلفية */
.glyph { width: 40px; height: 40px; display: inline-grid; place-items: center; color: var(--ink); transition: color .2s, transform .2s; }
.glyph .ico { width: 20px; height: 20px; }
.glyph:hover { color: var(--blue-text); transform: translateY(-2px); }

.chip {
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--card); cursor: pointer; font-weight: 700; font-size: var(--fs-sm); display: inline-grid; place-items: center;
  transition: border-color .2s, color .2s; margin-inline-start: 6px;
}
.chip:hover { border-color: var(--blue-brand); color: var(--blue-text); }
.theme-toggle { padding: 0; width: 42px; }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: block; }
html[data-theme="dark"] .theme-toggle .moon { display: none; }

.menu-btn { display: none; padding: 0; width: 42px; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; content: "";
  position: relative; transition: transform .25s, top .25s, background-color .25s;
}
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- الواجهة الرئيسية (#home) ---------- */
.hero { background: var(--bg); padding: 150px 0 96px; text-align: center; }

.hero-visual { position: relative; width: min(380px, 80vw); aspect-ratio: 1; margin: 0 auto 56px; }
.hero-visual::before {
  content: ""; position: absolute; inset: 16px -22px -16px 22px; background: var(--tint);
  border-radius: 46% 54% 50% 50% / 56% 44% 56% 44%;
}
html[dir="ltr"] .hero-visual::before { inset: 16px 22px -16px -22px; }
.blob {
  position: relative; z-index: 1; width: 100%; height: 100%; background: var(--blob-bg);
  border-radius: 54% 46% 52% 48% / 48% 54% 46% 52%; border: 2px solid var(--ring);
  box-shadow: 0 28px 60px rgba(0, 134, 198, .14); overflow: hidden;
}
/* الشعار الأصلي كاملاً بـ object-fit: contain (الهوامش البيضاء/السوداء في الملف فقط تُخفى بإطار الشكل) */
.logo-img { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 150%; max-width: none; height: auto; aspect-ratio: 1; object-fit: contain; background: var(--blob-bg); }
.logo-dark { display: none; }
html[data-theme="dark"] .logo-light { display: none; }
html[data-theme="dark"] .logo-dark { display: block; }

.badge-card {
  position: absolute; z-index: 2; bottom: -22px; inset-inline-end: -150px; display: flex; align-items: center; gap: 12px;
  padding: 14px 20px 14px 22px; background: var(--card); border-radius: 12px; box-shadow: 0 16px 40px var(--shadow); text-align: start;
}
.badge-card .ring { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--blue-text); flex: none; }
.badge-card b { display: block; color: var(--ink); font-size: 1.05rem; line-height: 1.35; font-weight: 800; }
.badge-card small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; }

.hero h1 { font-size: var(--fs-h1); font-weight: 800; line-height: 1.4; max-width: 18em; margin-inline: auto; }
.hero-lead { margin: 22px auto 0; font-size: var(--fs-lead); max-width: 36em; line-height: 2; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- الأقسام ---------- */
.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 40em; }
.section-title { font-size: var(--fs-h2); font-weight: 800; line-height: 1.5; }
.section-sub { margin-top: 10px; color: var(--muted); }

/* من نحن */
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 72px; align-items: center; }
.about-copy .section-title { margin-bottom: 18px; }
.about-copy p + p { margin-top: 14px; }
.about-tile { justify-self: center; }
.icon-tile {
  width: min(240px, 60vw); aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 34px;
  box-shadow: 0 24px 50px rgba(0, 134, 198, .22);
}

/* الخدمات: الصورة أعلى العنوان والوصف */
.service-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.service-card { display: flex; flex-direction: column; background: var(--tint); border-radius: var(--radius); padding: 20px 20px 28px; }
.service-card:nth-child(3n+2) { background: var(--tint-2); }
.service-card:nth-child(3n) { background: var(--tint-3); }
.service-media {
  display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #ffffff;
  aspect-ratio: 3 / 4; cursor: zoom-in; box-shadow: 0 14px 30px var(--shadow);
}
.service-media img { width: 100%; height: 100%; object-fit: contain; background: #ffffff; transition: transform .5s ease; }
.service-media:hover img { transform: scale(1.025); }
.service-card h3 { margin-top: 22px; padding-inline: 6px; font-size: var(--fs-h3); font-weight: 800; line-height: 1.6; }
.service-card p { margin-top: 8px; padding-inline: 6px; font-size: var(--fs-base); line-height: 1.9; }

/* نافذة تكبير الصورة */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; overflow: hidden; }
.lightbox::backdrop { background: rgba(10, 22, 34, .88); }
.lightbox-inner { width: 100%; height: 100%; display: grid; place-items: center; padding: 24px; }
.lightbox img { max-height: calc(100vh - 48px); max-width: min(100%, 900px); width: auto; height: auto; border-radius: 12px; background: #fff; }
.lightbox-close {
  position: absolute; top: 18px; inset-inline-start: 18px; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: #fff; color: #15202b; font-size: 28px; line-height: 1; cursor: pointer;
}
html[dir="ltr"] .lightbox-close { inset-inline-start: auto; inset-inline-end: 18px; }

/* بطاقة التواصل */
.cta-card, .contact-card { background: var(--tint); border-radius: var(--radius); padding: 64px; }
.cta-card { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; }
.mail-ico { width: 52px; height: 52px; margin-bottom: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mail-ico .accent { fill: var(--blue-brand); stroke: none; opacity: .9; }
.cta-card h2, .contact-card h1 { font-size: var(--fs-h2); font-weight: 800; line-height: 1.5; }
.cta-card p, .contact-card .intro { margin-top: 12px; max-width: 30em; }
.cta-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.glyph-row { display: flex; gap: 6px; margin-inline-start: -8px; }

/* صفحة التواصل */
.page-top { padding-top: 130px; }
.contact-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.channels { margin-top: 28px; display: grid; gap: 12px; }
.channel {
  display: flex; align-items: center; gap: 14px; padding: 12px 18px; background: var(--card); border-radius: 14px;
  box-shadow: 0 6px 18px var(--shadow); transition: transform .2s, box-shadow .2s, color .2s;
}
.channel:hover { transform: translateY(-2px); color: var(--blue-text); }
.channel .badge { width: 28px; display: grid; place-items: center; color: var(--ink); flex: none; }
.channel:hover .badge { color: var(--blue-text); }
.channel b { display: block; color: var(--ink); font-weight: 700; line-height: 1.5; }
.channel small { display: block; color: var(--muted); font-size: var(--fs-sm); line-height: 1.5; direction: ltr; unicode-bidi: isolate; text-align: right; }
html[dir="ltr"] .channel small { text-align: left; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-weight: 700; font-size: var(--fs-sm); margin-bottom: 8px; color: var(--ink); }
.field input, .field textarea {
  width: 100%; border: 1.5px solid transparent; border-radius: 12px; background: var(--card); color: var(--ink);
  padding: 14px 18px; font-size: var(--fs-base); line-height: 1.6; outline: 0; box-shadow: 0 2px 10px var(--shadow);
  transition: border-color .2s;
}
.field input { min-height: 54px; }
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field textarea:focus { border-color: var(--blue-brand); }
.field input[type="email"] { direction: ltr; text-align: start; }
.honey { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.form-status { margin-top: 14px; min-height: 26px; font-size: var(--fs-sm); font-weight: 600; }
.form-status.ok { color: #14934d; }
.form-status.err { color: #e2474d; }

/* ---------- التذييل: أيقونات ثم سطران في المنتصف تماماً ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 96px; padding: 36px 0 40px; background: var(--bg); }
.footer .container { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.social { display: flex; justify-content: center; gap: 10px; }
.social .glyph { width: 44px; height: 44px; }
.social .glyph .ico { width: 22px; height: 22px; }
.copy { margin: 0; font-size: var(--fs-sm); line-height: 1.8; color: var(--foot); text-align: center; }
.copy span { display: block; color: var(--foot); }
.copy .name { color: var(--foot); font-size: inherit; font-weight: 700; }
.page-home .footer { margin-top: 0; }

/* ---------- صفحات "قريباً" وتسجيل الدخول ---------- */
.page-min { min-height: 100vh; display: flex; flex-direction: column; }
.page-min main { flex: 1; display: grid; place-items: center; padding: 150px 20px 40px; }
.soon-card { text-align: center; max-width: 460px; width: 100%; }
.logo-frame { position: relative; width: 240px; aspect-ratio: 1; margin: 0 auto 20px; overflow: hidden; border-radius: 50%; background: var(--blob-bg); }
.soon-card h1 { font-size: var(--fs-h2); font-weight: 800; line-height: 1.5; }
.soon-card p { margin-top: 10px; color: var(--muted); }
.soon-card .btn { margin-top: 28px; }
.login-card { padding: 36px 28px; border-radius: var(--radius); background: var(--tint); }
.login-icon { width: 96px; height: 96px; margin: 0 auto 18px; object-fit: contain; background: #fff; border-radius: 24px; box-shadow: 0 14px 30px rgba(0, 134, 198, .22); }
.login-card .google-btn { margin-top: 24px; }
.google-btn {
  width: 100%; min-height: 54px; border-radius: 12px; border: 0; background: var(--card); color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 12px; cursor: not-allowed; font-weight: 700;
}
.google-btn em { font-style: normal; font-size: var(--fs-sm); color: #e2474d; }

/* ---------- الاستجابة ---------- */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { gap: 48px; }
  .cta-card, .contact-card { padding: 48px; }
}

@media (max-width: 960px) {
  .header .container { padding-inline: 18px; height: 66px; }
  .brand { font-size: 1.3rem; }
  .menu-btn { display: inline-grid; }
  .tools .glyph { display: none; }
  .nav {
    position: absolute; top: 76px; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--card); border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 16px 40px var(--shadow);
    padding: 10px 14px 14px; display: none;
  }
  .nav.open { display: flex; }
  .nav a.link { padding: 14px 12px; border-radius: 10px; font-size: var(--fs-lead); }
  .nav-social { display: flex; gap: 4px; padding: 12px 4px 0; margin-top: 8px; border-top: 1px solid var(--line); }
  .nav-social .glyph { display: inline-grid; }
}

@media (max-width: 860px) {
  .hero { padding: 120px 0 72px; }
  .badge-card { display: none; }
  .section { padding: 72px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-tile { order: -1; }
  .icon-tile { width: 130px; border-radius: 26px; }
  .cta-card, .contact-card { grid-template-columns: 1fr; padding: 36px 24px; gap: 32px; }
  .page-top { padding-top: 108px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer { margin-top: 72px; }
}

@media (max-width: 620px) {
  .service-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 36px; }
  .service-card { max-width: 440px; margin-inline: auto; width: 100%; }
}

@media (max-width: 520px) {
  .hero-actions .btn, .cta-actions .btn, .contact-card .btn { width: 100%; }
  .cta-actions { align-items: stretch; }
  .glyph-row { justify-content: center; margin-inline-start: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}


/* ==========================================================
   adeems DESIGN — تحديث الواجهة والاستجابة
   ========================================================== */
:root {
  --blue: #0066CC;
  --blue-hover: #0055ad;
  --blue-brand: #0066CC;
  --blue-text: #0066CC;
  --red: #D32F2F;
  --tint: #F3F7FC;
  --tint-2: #F3F7FC;
  --tint-3: #F3F7FC;
  --blob-bg: #FFFFFF;
}
html[data-theme="dark"] {
  --bg: #000000;
  --card: #101720;
  --ink: #F5F8FC;
  --body: #CBD5E1;
  --muted: #A8B4C2;
  --line: #263241;
  --blue: #0096FF;
  --blue-hover: #007bd1;
  --blue-brand: #0096FF;
  --blue-text: #0096FF;
  --red: #E60000;
  --tint: #111827;
  --tint-2: #111827;
  --tint-3: #111827;
  --blob-bg: #FFFFFF;
}

/* شريط علوي ثابت بعرض الشاشة دون هوامش */
.header { top: 0; inset-inline: 0; width: 100%; }
.header .container {
  width: 100%; max-width: none; height: 72px; border-radius: 0;
  border: 0; border-bottom: 1px solid var(--line); box-shadow: none;
  padding-inline: clamp(12px, 2.4vw, 34px); gap: clamp(8px, 1.6vw, 22px);
}
.header .brand { order: 3; font-size: clamp(1.05rem, 1.4vw, 1.42rem); }
.header .nav { order: 2; flex: 1; justify-content: center; gap: clamp(3px, .7vw, 10px); }
.header .tools { order: 1; gap: 6px; }
.header .nav a.link {
  width: 42px; height: 42px; padding: 0; display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: var(--card);
  color: var(--blue-text); transition: color .2s, background .2s, border-color .2s, transform .2s;
}
.header .nav a.link .ico { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header .nav a.link:hover, .header .nav a.link[aria-current="page"] {
  background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-1px);
}
.nav-label { display: none; }
.header .chip {
  width: 42px; min-width: 42px; height: 42px; margin: 0; padding: 0;
  border-color: var(--blue); color: var(--blue-text); background: var(--card);
}
.header .menu-btn { display: inline-grid; order: -1; }
.header .menu-btn span, .header .menu-btn span::before, .header .menu-btn span::after { background: var(--blue-text); }
.header .menu-btn[aria-expanded="true"] span { background: transparent; }
.header .menu-btn[aria-expanded="true"] span::before,
.header .menu-btn[aria-expanded="true"] span::after { background: var(--red); }

/* القائمة المنسدلة: تسميات مع الأيقونات */
@media (max-width: 960px) {
  .header .container { height: 64px; padding-inline: 10px; gap: 7px; }
  .header .brand { font-size: 1.05rem; }
  .header .nav {
    position: absolute; top: 64px; inset-inline: 0; width: 100%; flex: none;
    display: none; flex-direction: column; align-items: stretch; gap: 5px;
    padding: 12px 14px 16px; border: 1px solid var(--line); border-top: 0;
    border-radius: 0 0 14px 14px; background: var(--card); box-shadow: 0 18px 32px var(--shadow);
  }
  .header .nav.open { display: flex; }
  .header .nav a.link {
    width: 100%; height: 48px; display: flex; justify-content: flex-start;
    border-radius: 10px; padding: 0 14px; gap: 12px; font-size: 1rem;
  }
  .nav-label { display: inline; font-weight: 600; }
  .header .tools { gap: 4px; }
  .header .chip { width: 36px; min-width: 36px; height: 36px; }
  .header .menu-btn { width: 36px; min-width: 36px; height: 36px; }
}
@media (max-width: 390px) {
  .header .container { padding-inline: 7px; gap: 4px; }
  .header .brand { font-size: .93rem; }
  .header .chip { width: 32px; min-width: 32px; height: 32px; font-size: .75rem; }
  .header .menu-btn { width: 32px; min-width: 32px; height: 32px; }
}

/* ألوان الروابط والتفاعل */
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
button:active, a:active { color: #fff !important; background-color: var(--red) !important; border-color: var(--red) !important; }
.section-title, .hero h1, .cta-card h2, .contact-card h1 { color: var(--blue-text); }
.hero { padding-top: 118px; }
@media (max-width: 860px) { .hero { padding-top: 96px; } }

/* الشعار: مستطيل/مربع نظيف بلا دائرة أو ظل، مع إظهار الملف كاملاً */
.hero-visual { width: min(340px, 76vw); aspect-ratio: 1; margin-bottom: 34px; }
.hero-visual::before { display: none; }
.blob {
  width: 100%; height: 100%; border: 0; border-radius: 0; overflow: visible;
  background: transparent; box-shadow: none;
}
.logo-img {
  position: static; transform: none; width: 100%; max-width: 100%; height: 100%;
  aspect-ratio: 1; object-fit: contain; background: transparent;
}
html[data-theme="dark"] .logo-dark { display: block; }
html[data-theme="dark"] .logo-light { display: none; }
html:not([data-theme="dark"]) .logo-light { display: block; }
html:not([data-theme="dark"]) .logo-dark { display: none; }

/* توحيد خلفية جميع صور الأعمال في الوضعين */
.service-card, .service-card:nth-child(3n+2), .service-card:nth-child(3n) { background: var(--tint); }
.service-media, .service-media img { background: #fff; }
.service-media { border: 1px solid #E7EDF4; }
.service-media img { object-fit: contain; }
.service-card { transition: transform .28s ease, box-shadow .28s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px var(--shadow); }

/* عناوين أقوى ومسافات أكثر اتزاناً */
.section-title { font-size: clamp(2rem, 1.5rem + 1.8vw, 2.8rem); margin-bottom: 12px; }
.hero h1 { font-size: clamp(2.15rem, 1.5rem + 2.8vw, 3.6rem); }
.cta-card h2, .contact-card h1 { color: var(--blue-text); }
.cta-card p { line-height: 1.9; }

/* أيقونات التواصل: موقعان فقط، بألوان العلامات الأصلية */
.footer .social .glyph:nth-child(1) { color: #25D366; }
.footer .social .glyph:nth-child(2) { color: #1877F2; }
.footer .social .glyph:nth-child(3) { color: var(--red); }
.footer .social .glyph:hover { transform: translateY(-3px); }
.footer .copy { color: var(--blue-text); font-family: "Manrope", "IBM Plex Sans Arabic", sans-serif; font-weight: 700; }
.footer .copy .name { color: var(--blue-text); }

/* صفحة التواصل: أيقونات فقط في ثلاثة أسطر/صفوف وسط الصفحة */
.channels { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; margin: 28px auto 0; }
.channel {
  width: 54px; height: 54px; padding: 0; display: grid; place-items: center;
  border-radius: 50%; box-shadow: none; background: var(--card); color: var(--blue-text);
  border: 1px solid var(--line);
}
.channel .ico { width: 24px; height: 24px; fill: currentColor; }
.channel[href*="wa.me"] { color: #25D366; }
.channel[href*="facebook"] { color: #1877F2; }
.channel[href^="mailto"] { color: var(--red); }
.channel:hover { color: var(--blue-text); background: var(--tint); }

/* شاشة الترحيب */
.splash-screen {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: var(--bg); opacity: 1; visibility: visible;
  transition: opacity .28s ease, visibility .28s ease;
}
.splash-screen.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-logo-stage { position: relative; width: min(230px, 58vw); aspect-ratio: 1; overflow: hidden; animation: splashIn .42s cubic-bezier(.2,.8,.2,1) both; }
.splash-logo-stage img { display: block; width: 100%; height: 100%; object-fit: contain; }
.splash-sheen {
  position: absolute; inset-block: 0; left: -65%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.85), transparent);
  transform: skewX(-22deg); animation: sheen .65s ease .08s both; pointer-events: none;
}
@keyframes splashIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@keyframes sheen { to { left: 135%; } }

/* ظهور تدريجي خفيف دون إخفاء المحتوى عند تعطّل جافاسكربت */
.js-reveal { opacity: 0; transform: translateY(16px); transition: opacity .48s ease, transform .48s ease; }
.js-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .splash-screen, .splash-logo-stage, .splash-sheen, .js-reveal, .service-card { animation: none !important; transition: none !important; }
  .js-reveal { opacity: 1; transform: none; }
}
