/* ============ حاتم قاسم اوغلو — البراند الشخصي ============ */
:root {
  --ink: #0A1A3F;          /* كحلي للنصوص */
  --ink-2: rgba(255,255,255,.08);
  --ink-3: rgba(255,255,255,.12);
  --paper: #FFFFFF;
  --paper-2: #F1F5FF;      /* ازرق فاتح جدا */
  --line-dark: rgba(255,255,255,.18);
  --line-light: #DCE5FA;
  --text-on-dark: #FFFFFF;
  --muted-on-dark: #C9D7FF;
  --text-on-light: #0A1A3F;
  --muted-on-light: #55627F;
  --lime: #FFFFFF;          /* الابراز على الازرق = ابيض */
  --blue: #1D4ED8;          /* ازرق مقروء على الابيض */
  --blue-2: #2563EB;
  --blue-3: #60A5FA;
  --blue-soft: #BFD3FF;
  --purple: #7C3AED;
  --purple-soft: #C4B5FD;
  --grad: linear-gradient(135deg, #1E1B6E 0%, #1D4ED8 45%, #6D28D9 80%, #8B5CF6 100%);
  --grad-btn: linear-gradient(135deg, #2563EB 0%, #4F46E5 55%, #7C3AED 100%);
  --radius: 18px;
  --display: "Readex Pro", "IBM Plex Sans Arabic", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans Arabic", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text-on-light);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.display { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }

/* ============ الاقسام الداكنة / الفاتحة ============ */
.dark { background: var(--grad); color: var(--text-on-dark); }
.dark .muted { color: var(--muted-on-dark); }
.light .muted, .muted { color: var(--muted-on-light); }
.dark .muted { color: var(--muted-on-dark); }
.soft { background: var(--paper-2); }

/* ============ الشريط العلوي ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-light);
  color: var(--text-on-light);
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad-btn); color: #fff;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 20px;
  transform: rotate(-6deg);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text b { font-family: var(--display); font-weight: 700; font-size: 16px; }
.logo-text small { color: var(--muted-on-light); font-size: 12.5px; }
.site-footer .logo-text small { color: var(--muted-on-dark); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  text-decoration: none; padding: 8px 14px; border-radius: 999px;
  color: var(--muted-on-light); font-weight: 500; font-size: 15px; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text-on-light); }
.nav a[aria-current="page"] { color: var(--blue); background: var(--paper-2); }
.nav .nav-cta { background: var(--grad-btn); color: #fff; font-weight: 600; margin-inline-start: 8px; }
.nav .nav-cta:hover, .nav .nav-cta[aria-current="page"] { color: #fff; background: var(--grad-btn); filter: brightness(1.06); }
.menu-btn {
  display: none; background: none; border: 1px solid var(--line-light); color: var(--text-on-light);
  width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 860px) {
  .menu-btn { display: grid; place-items: center; }
  .nav {
    position: absolute; top: 70px; inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line-light);
    padding: 12px 16px 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 16px; }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ============ الازرار ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 16px; border: 1.5px solid currentColor;
  transition: transform .18s ease, background .18s ease, color .18s ease; cursor: pointer;
  font-family: var(--body);
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-lime { background: var(--grad-btn); color: #fff; border-color: transparent; }
.dark .btn-lime, .final .btn-lime { background: #fff; color: var(--blue); }
.btn-ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ghost { background: transparent; }
.dark .btn-ghost { color: var(--text-on-dark); border-color: var(--line-dark); }
.dark .btn-ghost:hover { border-color: var(--text-on-dark); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============ عناصر مشتركة ============ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: .04em;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line-light); color: var(--muted-on-light);
}
.dark .eyebrow { border-color: var(--line-dark); color: var(--muted-on-dark); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .22); }
.light .eyebrow .dot, .soft .eyebrow .dot { background: var(--blue-2); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.hl { background: var(--grad-btn); color: #fff; padding: 0 .18em; border-radius: 10px; }
.dark .hl { background: #fff; color: var(--blue); }
.hl-blue { background: var(--grad-btn); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dark .hl-blue { color: var(--blue-soft); }

section { padding: 104px 0; }
@media (max-width: 640px) { section { padding: 72px 0; } }
.sec-title { font-size: clamp(32px, 4.6vw, 54px); margin: 18px 0 18px; }
.sec-lead { font-size: clamp(17px, 2vw, 20px); max-width: 56ch; margin: 0; }
.sec-head { margin-bottom: 52px; }
.sec-head.split { display: flex; justify-content: space-between; align-items: end; gap: 28px; flex-wrap: wrap; }

/* ============ الافتتاح ============ */
.hero { position: relative; overflow: hidden; padding: 96px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: end; }
.hero h1 { font-size: clamp(42px, 6.2vw, 84px); margin: 22px 0 26px; }
.hero h1 .hl { white-space: nowrap; }
.hero h1 .hl { display: inline-block; transform: rotate(-1.5deg); }
.hero p.lead { font-size: clamp(18px, 2.2vw, 22px); max-width: 34ch; margin: 0 0 36px; }
.hero-card {
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 24px;
  padding: 28px; position: relative;
}
.hero-card .label { font-size: 13px; color: var(--muted-on-dark); font-weight: 600; letter-spacing: .05em; }
.hero-card .big { font-family: var(--display); font-weight: 800; font-size: clamp(64px, 8vw, 96px); line-height: 1; color: #fff; margin: 14px 0 10px; }
.hero-card p { margin: 0; color: var(--muted-on-dark); }
.hero-card .mini { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.hero-card .mini div { background: var(--ink-3); border-radius: 14px; padding: 14px 16px; }
.hero-card .mini b { font-family: var(--display); font-size: 26px; display: block; line-height: 1.1; }
.hero-card .mini span { font-size: 13px; color: var(--muted-on-dark); }
.hero-glow {
  position: absolute; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 181, 253, .40), transparent 62%);
  top: -220px; inset-inline-start: -200px; pointer-events: none; filter: blur(10px);
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* الشريط المتحرك */
.ticker { margin-top: 84px; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); overflow: hidden; }
.ticker-track { display: flex; gap: 48px; width: max-content; padding: 22px 0; animation: tick 32s linear infinite; }
.ticker span { font-family: var(--display); font-weight: 600; font-size: 22px; white-space: nowrap; color: var(--muted-on-dark); display: inline-flex; align-items: center; gap: 48px; }
.ticker span::after { content: "✦"; color: #fff; font-size: 16px; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ============ الارقام ============ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius); padding: 28px 24px; }
.stat .n { font-family: var(--display); font-weight: 800; font-size: clamp(42px, 4.6vw, 60px); line-height: 1; display: block; margin-bottom: 14px; }
.stat .n { background: var(--grad-btn); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat p { margin: 0; font-size: 15px; color: var(--muted-on-light); line-height: 1.6; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ============ بطاقات ============ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  border-radius: 22px; padding: 32px 28px; position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line-light);
  transition: transform .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); border-color: var(--ink); }
.dark .card { background: var(--ink-2); border-color: var(--line-dark); }
.dark .card:hover { border-color: #fff; }
.card .num { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--blue); }
.dark .card .num { color: var(--purple-soft); }
.card h3 { font-family: var(--display); font-weight: 700; font-size: 23px; line-height: 1.3; margin: 20px 0 12px; }
.card p { margin: 0; color: var(--muted-on-light); }
.dark .card p { color: var(--muted-on-dark); }
.card .more { margin-top: auto; padding-top: 22px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.card .more svg, a svg { width: 18px; height: 18px; flex: none; }
.channel .ic svg { width: 24px; height: 24px; }
.card.feature { background: #fff; border-color: #fff; color: var(--ink); }
.card.feature p { color: var(--muted-on-light); }
.card.feature .num { color: var(--purple); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* ============ المقدمة القصيرة ============ */
.intro { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.portrait {
  aspect-ratio: 4 / 5; border-radius: 28px; background: var(--grad);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.portrait .initial { font-family: var(--display); font-weight: 800; font-size: clamp(140px, 18vw, 220px); color: #fff; line-height: 1; transform: rotate(-6deg); }
.portrait .badge {
  position: absolute; bottom: 20px; inset-inline-start: 20px; inset-inline-end: 20px;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--line-dark); color: var(--text-on-dark);
  border-radius: 16px; padding: 14px 18px; font-size: 14px; backdrop-filter: blur(6px);
}
.portrait .badge b { display: block; font-family: var(--display); font-size: 16px; }
.intro h2 { font-size: clamp(30px, 4vw, 46px); margin: 18px 0 20px; }
.intro p { margin: 0 0 18px; }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; gap: 36px; } .portrait { max-width: 420px; } }

/* ============ الخط الزمني ============ */
.timeline { position: relative; display: grid; gap: 18px; }
.t-item {
  display: grid; grid-template-columns: 140px 1fr; gap: 32px; align-items: start;
  padding: 30px; border-radius: 22px; background: var(--ink-2); border: 1px solid var(--line-dark);
}
.t-year { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; color: #fff; }
.t-item h3 { font-family: var(--display); font-weight: 700; font-size: 22px; margin: 0 0 10px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.t-item p { margin: 0; color: var(--muted-on-dark); max-width: 64ch; }
.pill { font-family: var(--body); font-size: 13px; font-weight: 600; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--line-dark); color: var(--muted-on-dark); }
.pill.now { background: #fff; border-color: #fff; color: var(--blue); }
@media (max-width: 640px) { .t-item { grid-template-columns: 1fr; gap: 10px; padding: 24px; } }

.callout {
  margin-top: 28px; display: flex; gap: 18px; align-items: center;
  padding: 22px 26px; border-radius: 18px; background: #fff; color: var(--ink); font-weight: 500;
}
.callout b { font-family: var(--display); color: var(--purple); }

/* ============ طريقة العمل ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; padding: 0; margin: 0; }
.steps li {
  list-style: none; counter-increment: s; background: #fff; border: 1px solid var(--line-light);
  border-radius: 16px; padding: 20px 22px; display: flex; gap: 14px; align-items: center; font-weight: 600;
}
.steps li::before {
  content: counter(s, decimal-leading-zero); font-family: var(--display); font-weight: 700;
  min-width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: #F3EEFF; color: var(--purple); font-size: 15px;
}
.steps li:last-child::before { background: var(--grad-btn); color: #fff; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.rule-box { margin-top: 26px; border-radius: 18px; padding: 22px 26px; background: var(--grad); color: #fff; }
.rule-box b { color: #fff; }

/* ============ الركن الاسبوعي ============ */
.corner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.corner h2 { font-size: clamp(36px, 5.4vw, 66px); margin: 18px 0 16px; }
.formula { display: grid; gap: 12px; margin: 0; padding: 0; }
.formula li {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 20px 24px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line-dark);
}
.formula b { font-family: var(--display); font-size: 20px; }
.formula span { color: var(--muted-on-dark); font-size: 15px; }
.formula li:nth-child(2) { border-color: #fff; background: rgba(255,255,255,.16); }
@media (max-width: 860px) { .corner { grid-template-columns: 1fr; } }

/* ============ الخدمات بالتفصيل ============ */
.service {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; padding: 44px; border-radius: 26px;
  background: #fff; border: 1px solid var(--line-light); margin-bottom: 20px;
}
.service .num { font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--purple); }
.service h2 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.25; margin: 16px 0 12px; }
.service .for { display: inline-block; font-size: 14px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--paper-2); margin-top: 6px; }
.service h4 { font-family: var(--display); font-size: 16px; margin: 0 0 12px; color: var(--muted-on-light); font-weight: 600; }
.checks { margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.checks li { list-style: none; display: flex; gap: 12px; align-items: baseline; }
.checks li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--grad-btn); transform: translateY(-1px); }
.service.dark-s .checks li::before { background: #fff; }
.service.dark-s { background: var(--grad); color: var(--text-on-dark); border-color: transparent; }
.service.dark-s h4, .service.dark-s .muted { color: var(--muted-on-dark); }
.service.dark-s .for { background: var(--ink-3); }
.service.dark-s .num { color: transparent; -webkit-text-stroke-color: #fff; }
@media (max-width: 860px) { .service { grid-template-columns: 1fr; gap: 20px; padding: 30px 24px; } }

/* ============ التواصل ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: start; }
.channels { display: grid; gap: 14px; }
.channel {
  display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 20px;
  background: var(--ink-2); border: 1px solid var(--line-dark); text-decoration: none; transition: border-color .2s, transform .2s;
}
.channel:hover { border-color: #fff; transform: translateY(-2px); }
.channel .ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--ink-3); color: #fff; flex: none; }
.channel .ic svg { width: 24px; height: 24px; }
.channel b { display: block; font-family: var(--display); font-size: 18px; }
.channel span { color: var(--muted-on-dark); font-size: 15px; }
.channel.primary { background: #fff; border-color: #fff; color: var(--ink); }
.channel.primary .ic { background: var(--grad-btn); color: #fff; }
.channel.primary span { color: var(--muted-on-light); }
.form { background: #fff; color: var(--text-on-light); border-radius: 24px; padding: 32px; }
.form h3 { font-family: var(--display); font-size: 24px; margin: 0 0 6px; }
.form p { margin: 0 0 22px; color: var(--muted-on-light); }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; padding: 14px 16px; border-radius: 14px;
  border: 1.5px solid var(--line-light); background: var(--paper); color: var(--text-on-light);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-2); }
.field textarea { min-height: 120px; resize: vertical; }
.form .btn { width: 100%; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .form { padding: 24px; } }

/* ============ الدعوة الختامية ============ */
.final {
  border-radius: 32px; background: var(--grad); color: var(--text-on-dark);
  padding: 72px 56px; text-align: center; position: relative; overflow: hidden;
}
.final h2 { font-size: clamp(34px, 5.4vw, 64px); margin: 0 0 16px; position: relative; }
.final p { color: var(--muted-on-dark); margin: 0 auto 32px; max-width: 44ch; position: relative; }
.final .btns { justify-content: center; position: relative; }
.final::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 60%);
  bottom: -260px; inset-inline-end: -120px;
}
@media (max-width: 640px) { .final { padding: 52px 22px; border-radius: 24px; } }

/* ============ رأس الصفحات الداخلية ============ */
.page-hero { padding: 88px 0 72px; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(42px, 6.4vw, 84px); margin: 20px 0 20px; }
.page-hero p { font-size: clamp(18px, 2.2vw, 22px); max-width: 48ch; margin: 0; }

/* ============ التذييل ============ */
.site-footer { background: #0A1A3F; color: var(--muted-on-dark); padding: 56px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--line-dark); }
.site-footer h4 { font-family: var(--display); color: var(--text-on-dark); font-size: 16px; margin: 0 0 14px; }
.site-footer a { text-decoration: none; display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--text-on-dark); }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; font-size: 14px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* ظهور تدريجي */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* تباين الازرار داخل الاسطح المختلفة */
.dark .form .btn-lime, .form .btn-lime { background: var(--grad-btn); color: #fff; }
.service.dark-s .btn-lime { background: #fff; color: var(--blue); border-color: #fff; }

/* ============ الافتتاح الفاتح (بأسلوب السؤال) ============ */
.hero-l { background: linear-gradient(180deg, #F3F0FF 0%, #FFFFFF 78%); padding: 104px 0 72px; text-align: center; position: relative; overflow: hidden; }
.hero-l .eyebrow { background: #fff; }
.hero-l h1 { font-size: clamp(40px, 6.2vw, 82px); color: var(--ink); max-width: 17ch; margin: 22px auto 22px; }
.hero-l h1 .grad { background: var(--grad-btn); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-l p.lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted-on-light); max-width: 46ch; margin: 0 auto 36px; }
.hero-l .btns { justify-content: center; }
.btn-xl { padding: 19px 44px; font-size: 18px; box-shadow: 0 14px 34px -12px rgba(79, 70, 229, .55); }
.hero-l .orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; pointer-events: none; }
.hero-l .orb.a { width: 380px; height: 380px; background: #A78BFA; top: -120px; inset-inline-start: -120px; }
.hero-l .orb.b { width: 320px; height: 320px; background: #60A5FA; bottom: -140px; inset-inline-end: -80px; }
.hero-l .wrap { position: relative; }

/* شريط الارقام */
.statbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 72px; text-align: start; }
.statbar > div { position: relative; padding: 4px 22px; }
.statbar > div::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; border-radius: 4px; background: var(--grad-btn); }
.statbar b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4vw, 50px); line-height: 1.05; color: var(--ink); }
.statbar span { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--muted-on-light); letter-spacing: .02em; }
@media (max-width: 820px) { .statbar { grid-template-columns: repeat(2, 1fr); row-gap: 28px; } }

/* الاستشارة الخاصة */
.consult { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.consult h2 { font-size: clamp(32px, 4.4vw, 52px); margin: 18px 0 18px; }
.consult h2 .grad { background: var(--grad-btn); -webkit-background-clip: text; background-clip: text; color: transparent; }
.consult .box { background: #fff; border: 1px solid var(--line-light); border-radius: 26px; padding: 34px; box-shadow: 0 30px 60px -30px rgba(30, 27, 110, .25); }
.consult .box h4 { font-family: var(--display); font-size: 17px; margin: 0 0 16px; }
.flow { display: grid; gap: 14px; margin: 26px 0 0; padding: 0; counter-reset: f; }
.flow li { list-style: none; counter-increment: f; display: flex; gap: 16px; align-items: flex-start; }
.flow li::before { content: counter(f); flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-btn); color: #fff; font-family: var(--display); font-weight: 700; font-size: 15px; }
.flow b { display: block; font-family: var(--display); }
.flow span { color: var(--muted-on-light); font-size: 15px; }
@media (max-width: 860px) { .consult { grid-template-columns: 1fr; gap: 32px; } .consult .box { padding: 26px; } }

/* ما الذي تتوقعه مني */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value { border-radius: 22px; padding: 30px 28px; background: var(--ink-2); border: 1px solid var(--line-dark); }
.value .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #fff; color: var(--purple); font-family: var(--display); font-weight: 800; font-size: 20px; margin-bottom: 20px; }
.value h3 { font-family: var(--display); font-size: 22px; margin: 0 0 8px; }
.value p { margin: 0; color: var(--muted-on-dark); }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }

/* تعريف بصيغة المتكلم */
.hello { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.35; margin: 18px 0 18px; }
.hello .grad { background: var(--grad-btn); -webkit-background-clip: text; background-clip: text; color: transparent; }
.roles { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; padding: 0; }
.roles li { list-style: none; padding: 8px 16px; border-radius: 999px; background: var(--paper-2); font-weight: 600; font-size: 15px; }
.hero-l .eyebrow .dot { background: var(--purple); box-shadow: 0 0 0 4px rgba(124, 58, 237, .16); }
.statbar b .ltr { display: inline-block; margin: 0; font-size: inherit; font-weight: inherit; color: inherit; letter-spacing: inherit; }

/* ============ مسافة الاسطر للعناوين العربية (منع التداخل) ============ */
.display, h1, h2, h3 { line-height: 1.35; }
.hero h1, .hero-l h1, .page-hero h1 { line-height: 1.3; }
.final h2, .corner h2, .consult h2, .sec-title, .intro h2 { line-height: 1.35; }
.hl { display: inline-block; line-height: 1.25; padding: .04em .22em .1em; margin: .08em 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hello { line-height: 1.55; }
.card h3, .service h2, .t-item h3, .value h3 { line-height: 1.4; }
.flow li > span { display: block; }
.flow b { margin-bottom: 2px; }

/* تواصل عائم كعلامة مائية */
.float-contact { position: fixed; left: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: 6px; opacity: .55; transition: opacity .25s; }
.float-contact:hover, .float-contact:focus-within { opacity: 1; }
.float-contact a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(79,70,229,.25); color: var(--ink); font-size: 13px; font-weight: 500; text-decoration: none; box-shadow: 0 4px 14px rgba(10,26,63,.08); }
.float-contact svg { width: 16px; height: 16px; flex: none; color: var(--blue); }
.float-contact a:first-child svg { color: #16A34A; }
.float-contact .ltr { direction: ltr; unicode-bidi: isolate; }
@media (max-width: 640px) {
  .float-contact { left: 12px; bottom: 12px; }
  .float-contact a { padding: 8px; }
  .float-contact .ltr { display: none; }
}

/* ===== تحسين الجوال ===== */
@media (max-width: 640px) {
  section { padding: 52px 0; }
  .hero-l { padding: 64px 0 44px; }
  .page-hero { padding: 56px 0 44px; }
  .hero-l h1, .page-hero h1 { font-size: clamp(30px, 8.6vw, 38px); }
  .sec-title, .consult h2, .intro h2, .hello { font-size: clamp(24px, 7vw, 30px); }
  .lead, .hero-l .lead { font-size: 16px; }
  /* الصورة المؤقتة أصغر حتى تصل الصورة الحقيقية */
  .portrait { aspect-ratio: auto; height: 220px; max-width: none; }
  .portrait .initial { font-size: 120px; }
  .intro { gap: 24px; }
  .card, .service, .value { padding: 22px 20px; }
  .t-item { padding: 20px; }
  .value { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; }
  .value > :first-child { grid-row: span 2; }
  .steps li { padding-top: 14px; padding-bottom: 14px; }
  .final { padding: 40px 20px; }
  .site-footer .logo { display: inline-flex; align-items: center; gap: 10px; }
  /* التواصل: شريط سفلي ثابت بدل الأيقونات العائمة فوق النص */
  .float-contact { left: 0; right: 0; bottom: 0; flex-direction: row; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid rgba(79,70,229,.15); opacity: 1; }
  .float-contact a { flex: 1; justify-content: center; padding: 10px; box-shadow: none; font-size: 14px; }
  .float-contact a:first-child { background: var(--grad-btn); color: #fff; border-color: transparent; }
  .float-contact a:first-child svg { color: #fff; }
  .float-contact .ltr { display: none; }
  .float-contact a::after { font-weight: 600; }
  .float-contact a:first-child::after { content: "واتساب"; }
  .float-contact a:last-child::after { content: "البريد"; }
  body { padding-bottom: 68px; }
}
@media (max-width: 640px) {
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: 96px; }
  .portrait { height: 180px; }
  .portrait .badge { display: none; }
}

/* ===== الشريط العلوي والتواصل العائم على الجوال (نسخة 2) ===== */
.head-actions { display: flex; align-items: center; gap: 8px; }
.head-wa { display: none; }
@media (max-width: 860px) {
  .bar { height: 60px; }
  .nav { top: 60px; box-shadow: 0 18px 30px rgba(10,26,63,.08); }
  .logo { gap: 10px; }
  .logo-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 17px; transform: none; }
  .logo-text small { display: none; }
  .logo-text b { font-size: 15.5px; }
  .menu-btn { width: 40px; height: 40px; border: 0; background: var(--paper-2); border-radius: 12px; }
  .menu-btn svg { width: 20px; height: 20px; }
  .head-wa { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad-btn); color: #fff; }
  .head-wa svg { width: 19px; height: 19px; }
}
@media (max-width: 640px) {
  /* علامة مائية صغيرة بدل الشريط السفلي */
  .float-contact { left: 14px; right: auto; bottom: calc(14px + env(safe-area-inset-bottom)); flex-direction: row; gap: 0; padding: 4px; background: rgba(255,255,255,.96); border: 1px solid rgba(79,70,229,.18); border-radius: 999px; box-shadow: 0 8px 24px rgba(10,26,63,.16); opacity: 1; }
  .float-contact a, .float-contact a:first-child { flex: none; width: 42px; height: 42px; padding: 0; justify-content: center; border: 0; border-radius: 50%; background: transparent; box-shadow: none; }
  .float-contact a:first-child { background: var(--grad-btn); }
  .float-contact a::after, .float-contact a:first-child::after, .float-contact a:last-child::after { content: none; }
  .float-contact svg { width: 19px; height: 19px; }
  .site-footer { padding-bottom: 80px; }
}
@media (max-width: 860px) { .site-header { background: #fff; } }
@media (max-width: 640px) { .portrait .initial { font-size: 92px; } }
