/* ═══ الإتقان — عالم المستند الرسمي السعودي ═══
   ورق أبيض، حبر أخضر عميق يحمل الحقول، أحمر ختم، تذهيب رفيع.
   [dir=rtl] هو الأصل؛ اللاتيني مرآة. */

:root {
  --ink: #0284c7;          /* الأزرق الفيروزي لشركة حياة الإتقان HQCC */
  --ink-deep: #0b1426;     /* الكحلي الداكن المؤسسي */
  --ink-wash: #f0f9ff;     /* غسلة سماوية للخلفيات */
  --paper: #ffffff;
  --paper-dim: #f8fafc;    /* ورق حديث ونقي */
  --gold: #c86a2b;         /* النحاسي الدافئ لهوية HQCC */
  --gold-text: #a1531b;    /* نحاسي للنصوص */
  --red: #b3261e;          /* حبر الختم */
  --text: #0f172a;
  --text-2: #475569;
  --line: #e2e8f0;
  --wa: #1fa855;
  --radius: 3px;           /* حواف هندسية أنيقة */
  --sp: 8px;
  --font-ar-display: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif;
  --font-ar-body: "IBM Plex Sans Arabic", "Source Sans 3", sans-serif;
  --font-en-display: "Cinzel", "Source Sans 3", serif;
  --font-en-body: "Source Sans 3", "IBM Plex Sans Arabic", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ar-body);
  background: var(--paper);
  color: var(--text);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
[dir="ltr"] body { font-family: var(--font-en-body); }

h1, h2, h3 { font-family: var(--font-ar-display); font-weight: 600; line-height: 1.35; }
[dir="ltr"] h1, [dir="ltr"] h2, [dir="ltr"] h3 { font-family: var(--font-en-display); font-weight: 600; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.2rem; }

a { color: var(--ink); }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }
.section { padding-block: clamp(56px, 9vw, 110px); }
.section + .section { padding-top: 0; }
.section > .wrap > h2 { margin-bottom: calc(var(--sp) * 1); }
.section > .wrap > .lede { margin-bottom: calc(var(--sp) * 5); }
.lede { color: var(--text-2); max-width: 62ch; }
h2 + p, h3 + p { margin-top: calc(var(--sp) * 0.5); }

/* ── الشريط الرسمي العلوي (شريط الترويسة في الكتب الرسمية) ── */
.ribbon {
  background: #07131F;
  color: #94A3B8;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.4;
}
.ribbon .wrap {
  max-width: 1400px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding-block: 6px;
}
.ribbon .loc {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 11.5px;
  color: #64748B;
}
.ribbon a {
  color: #CBD5E1;
  text-decoration: none;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.ribbon a:hover {
  color: #38BDF8;
}
.ribbon .info-group {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.ribbon span {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
@media (max-width: 1260px) {
  .ribbon .loc { display: none; }
  .ribbon .wrap { justify-content: center; }
}
@media (max-width: 860px) {
  .ribbon { display: none; }
}

/* ── الترويسة ── */
header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px -2px rgba(11, 25, 44, 0.06);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 10px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand .mark {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}
.brand .names {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.25;
}
.brand .n1 {
  font-family: var(--font-ar-display);
  font-weight: 800;
  font-size: 17px;
  color: #0B192C;
  letter-spacing: -0.2px;
}
[dir="ltr"] .brand .n1 {
  font-family: var(--font-en-display);
  letter-spacing: 0.04em;
  font-size: 16px;
}
.brand .n2 {
  font-size: 11.5px;
  color: #64748B;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 2px;
}
[dir="ltr"] .brand .n2 {
  font-family: var(--font-ar-body);
}

nav.main {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 20px);
  margin-inline-start: auto;
}
nav.main a.nav-link {
  text-decoration: none;
  color: #334155;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
  position: relative;
  transition: all 0.2s ease;
}
nav.main a.nav-link:hover {
  color: #0284C7;
  background: rgba(2, 132, 199, 0.06);
}
nav.main a.nav-link[aria-current="page"] {
  color: #0284C7;
  background: rgba(2, 132, 199, 0.1);
  font-weight: 700;
}
nav.main a.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2.5px;
  background: #0284C7;
  border-radius: 2px;
}

/* أزرار البروفايلات في الهيدر */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-btn-exec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 20px;
  background: #0B192C;
  color: #38BDF8 !important;
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(11, 25, 44, 0.12);
  transition: all 0.2s ease;
}
.nav-btn-exec:hover {
  background: #0284C7;
  color: #FFFFFF !important;
  border-color: #0284C7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}
.nav-btn-mega {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  color: #FFFFFF !important;
  border: 1px solid #F59E0B;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.22);
  transition: all 0.2s ease;
}
.nav-btn-mega:hover {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
}

/* زر تبديل اللغة */
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  height: 34px;
  border-radius: 20px;
  background: #F1F5F9;
  color: #1E293B;
  border: 1.5px solid #CBD5E1;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.lang-switch:hover {
  background: #0B192C;
  color: #FFFFFF;
  border-color: #0B192C;
}

.nav-toggle {
  display: none;
  margin-inline-start: auto;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 20px;
  color: #0B192C;
  cursor: pointer;
  transition: all 0.2s ease;
}
.nav-toggle:hover {
  background: #E2E8F0;
}
.mobile-actions {
  display: none;
}

@media (max-width: 1120px) {
  nav.main a.nav-link {
    font-size: 14px;
    padding: 6px 8px;
  }
  .nav-btn-exec, .nav-btn-mega {
    font-size: 12px;
    padding: 6px 10px;
  }
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .header-actions { display: none; }
  nav.main {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: #FFFFFF;
    border-bottom: 2px solid #0B192C;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 0;
    box-shadow: 0 16px 30px -10px rgba(11, 25, 44, 0.25);
  }
  nav.main.open { display: flex; }
  nav.main a.nav-link {
    padding: 12px 24px;
    border-radius: 0;
    border-bottom: 1px solid #F1F5F9;
    font-size: 16px;
  }
  nav.main a.nav-link[aria-current="page"] {
    background: #F8FAFC;
    border-inline-start: 4px solid #0284C7;
  }
  nav.main a.nav-link[aria-current="page"]::after { display: none; }
  
  .mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 24px 8px;
    border-top: 1px solid #E2E8F0;
    margin-top: 8px;
  }
  .mobile-actions .nav-btn-exec,
  .mobile-actions .nav-btn-mega {
    justify-content: center;
    padding: 10px;
    font-size: 14px;
  }
  .mobile-actions .lang-switch {
    justify-content: center;
    height: 40px;
    font-size: 14px;
  }
}

/* ── الترويسة الرئيسية مع فيديو الخلفية ── */
.hero {
  position: relative; overflow: hidden; background: #07131F;
  color: #fff; text-align: center; padding-block: clamp(64px, 11vw, 130px);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(7, 19, 31, 0.72) 0%, rgba(11, 25, 44, 0.90) 100%);
  z-index: 1; pointer-events: none;
}
.hero-video-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.55; pointer-events: none; z-index: 0;
  filter: brightness(0.7) contrast(1.1);
}
.hero .guilloche {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0.2; z-index: 1;
}
.hero .wrap { position: relative; z-index: 2; max-width: 820px; opacity: 1 !important; transform: none !important; }
.hero .kicker {
  display: inline-block; font-size: 13.5px; font-weight: 700;
  letter-spacing: 0.12em; color: #f2e2be !important;
  border: 1px solid var(--gold); padding: 5px 18px; margin-bottom: 22px;
  background: rgba(197, 160, 89, 0.2); border-radius: 2px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.hero h1 {
  color: #ffffff !important; font-size: clamp(2.1rem, 4.5vw, 3.5rem); line-height: 1.25;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.9);
}
.hero p.sub {
  font-size: clamp(16px, 1.9vw, 19px); color: #edf5f0 !important; margin-top: 18px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}
.hero .actions { display: flex; justify-content: center; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero .btn-ghost { border-color: #c5a059; color: #ffffff; background: rgba(0, 0, 0, 0.35); }
.hero .btn-ghost:hover { background: rgba(197, 160, 89, 0.25); color: #fff; }

/* ── الأزرار: لغة المستندات الرسمية، مستطيلة بحوافّ حادة ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 700; font-size: 16px;
  padding: 13px 26px; border-radius: var(--radius);
  border: 1.5px solid transparent; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 2px 4px 0 0 rgba(10, 58, 36, 0.18); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-wa { background: #10B981; color: #fff !important; font-weight: 800; box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35); }
.btn-wa:hover { background: #059669; }
.btn-quote {
  background: linear-gradient(135deg, #C59B27 0%, #9E7917 100%);
  color: #FFFFFF !important;
  border: 1.5px solid #FACC15;
  box-shadow: 0 4px 18px rgba(197, 155, 39, 0.45);
  font-weight: 800;
}
.btn-quote:hover {
  background: linear-gradient(135deg, #FACC15 0%, #C59B27 100%);
  color: #0B192C !important;
  border-color: #FFFFFF;
  box-shadow: 0 6px 22px rgba(250, 204, 21, 0.6);
  transform: translateY(-2px);
}
.btn-mega {
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  color: #FFFFFF !important;
  border: 1px solid #F59E0B;
  box-shadow: 0 4px 18px rgba(217, 119, 6, 0.35);
  font-weight: 800;
}
.btn-mega:hover {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
}
.btn-exec {
  background: #0B192C;
  color: #38BDF8 !important;
  border: 1.5px solid #0EA5E9;
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.25);
  font-weight: 800;
}
.btn-exec:hover {
  background: #0284C7;
  color: #FFFFFF !important;
  border-color: #38BDF8;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(14, 165, 233, 0.45);
}
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-deep); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink-wash); box-shadow: none; }

/* ── شريط السجل الرسمي أسفل اللوحة ── */
.cr-strip { border-block: 1px solid var(--line); background: var(--paper-dim); }
.cr-strip .wrap {
  max-width: 1400px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  padding-block: 11px;
  font-size: 13px;
  color: var(--text-2);
}
.cr-strip span {
  white-space: nowrap;
}
.cr-strip strong { color: var(--ink); font-weight: 700; }

/* ── شريط الأرقام: حقل أخضر كامل (استراتيجية اللون الملتزمة) ── */
.stats { background: var(--ink); color: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-block: clamp(36px, 6vw, 60px); }
.stats .num { font-family: var(--font-ar-display); font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; color: #fff; }
[dir="ltr"] .stats .num { font-family: var(--font-en-display); }
.stats .lbl { font-size: 14.5px; color: #cfe0d4; margin-top: 4px; }
@media (max-width: 820px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); } }

/* ── سجلّ المشاريع: بطاقات معمارية مصورة ── */
.ledger { border-top: 2px solid var(--ink); }
.ledger-row {
  display: grid; grid-template-columns: 220px 1fr auto; gap: clamp(16px, 3vw, 40px);
  align-items: center; padding-block: 22px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit; transition: background 0.15s ease;
}
.ledger-row:hover { background: var(--ink-wash); }
.ledger-row .thumb {
  width: 220px; height: 130px; overflow: hidden; border: 1.5px solid var(--ink);
  padding: 0; background: #112218; box-shadow: 3px 4px 0 0 var(--ink-wash);
}
.ledger-row .thumb-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ledger-row:hover .thumb-img { transform: scale(1.05); }
.ledger-row .t { display: block; font-family: var(--font-ar-display); font-size: 1.25rem; font-weight: 700; color: var(--ink-deep); }
.ledger-row .m { display: block; font-size: 14.5px; color: var(--text-2); margin-top: 4px; }
[dir="ltr"] .ledger-row .t { font-family: var(--font-en-display); }
.ledger-row .go { color: var(--gold-text); font-weight: 700; white-space: nowrap; }
@media (max-width: 720px) {
  .ledger-row { grid-template-columns: 110px 1fr; gap: 14px; }
  .ledger-row .thumb { width: 110px; height: 75px; }
  .ledger-row .go { grid-column: 2; font-size: 13.5px; }
}

/* ── صفوف الخدمات: بنية مستندية بإطار ذهبي رفيع ── */
.svc { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(20px, 4vw, 56px); padding-block: 34px; border-bottom: 1px solid var(--line); }
.svc:first-of-type { border-top: 2px solid var(--ink); }
.svc h3 { color: var(--ink-deep); padding-top: 6px; }
.svc .rule { width: 56px; height: 3px; background: var(--gold); margin-top: 12px; }
.svc p { color: var(--text-2); }
.svc ul { list-style: none; margin-top: 14px; display: grid; gap: 8px; }
.svc li { position: relative; padding-inline-start: 26px; font-size: 15.5px; }
.svc li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0.55em;
  width: 12px; height: 12px; border: 1.5px solid var(--ink);
  transform: rotate(45deg);
}
[dir="rtl"] .svc li::before { border-width: 0 1.5px 1.5px 0; }
@media (max-width: 760px) { .svc { grid-template-columns: 1fr; gap: 10px; } }

/* ── مسيرة العمل ── */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1.5px solid var(--ink); }
.process .step { padding: 26px 22px; border-inline-end: 1px solid var(--line); position: relative; background: var(--paper); }
.process .step:last-child { border-inline-end: 0; }
.process .sn { font-family: var(--font-en-display); font-size: 13px; letter-spacing: 0.14em; color: var(--gold-text); }
.process h3 { margin-top: 6px; color: var(--ink-deep); }
.process p { font-size: 14.5px; color: var(--text-2); margin-top: 6px; }
@media (max-width: 820px) { .process { grid-template-columns: 1fr 1fr; } .process .step:nth-child(2n) { border-inline-end: 0; } .process .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 480px) { .process { grid-template-columns: 1fr; } .process .step { border-inline-end: 0; border-bottom: 1px solid var(--line); } .process .step:last-child { border-bottom: 0; } }

/* ── لوحات أرشيف المشاريع ── */
.archive { display: grid; gap: clamp(40px, 6vw, 72px); }
.proj { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.proj > * { min-width: 0; max-width: 100%; }
.proj:nth-child(even) .plate-box { order: 2; }
.plate-box { border: 2px solid var(--ink); background: #fff; box-shadow: 4px 5px 0 0 var(--ink-wash); overflow: hidden; width: 100%; max-width: 100%; }
.plate-render-img, .proj-video { width: 100%; max-width: 100%; height: 290px; max-height: 320px; object-fit: cover; display: block; background: #092618; }
.blueprint-details { background: var(--paper-dim); border-top: 1.5px solid var(--ink); font-size: 13.5px; color: var(--ink-deep); }
.blueprint-details summary { padding: 10px 14px; cursor: pointer; font-weight: 700; user-select: none; background: var(--ink-wash); transition: background 0.15s ease; font-size: 14px; }
.blueprint-details summary:hover { background: #dcebe1; }
.blueprint-details .blueprint-content { padding: 8px; background: #fff; }
.blueprint-details .blueprint-content svg { width: 100%; max-width: 100%; height: auto; display: block; }
.plate-box .plate { width: 100%; height: auto; display: block; }
.proj .rec { padding-top: 6px; position: relative; display: flex; flex-direction: column; justify-content: space-between; }
.proj .rec h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); color: var(--ink-deep); }
.proj .meta { margin-top: 10px; display: grid; gap: 6px; font-size: 15px; color: var(--text-2); }
.proj .meta b { color: var(--text); font-weight: 600; }
.proj .desc { margin-top: 14px; color: var(--text-2); font-size: 15.5px; }

.rec-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 20px; padding-top: 12px; border-top: 1px dashed var(--line);
  position: relative; min-height: 52px;
}
.rec-footer .status-pill { margin-top: 0; }
.seal-slot { position: relative; display: flex; align-items: center; }
.proj .seal { opacity: 0.94; transform: rotate(-8deg); }
.proj.done .seal.stamped { animation: stamp 0.38s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes stamp {
  0% { opacity: 0; transform: rotate(-8deg) scale(1.6); }
  100% { opacity: 0.94; transform: rotate(-8deg) scale(1); }
}
.status-pill {
  display: inline-block; font-size: 13.5px; font-weight: 700;
  padding: 5px 14px; border: 1.5px solid var(--ink); color: var(--ink); background: var(--ink-wash);
}
.status-pill.live { border-color: var(--gold-text); color: var(--gold-text); background: #faf6ec; }
@media (max-width: 900px) {
  .proj { grid-template-columns: 1fr !important; }
  .proj:nth-child(even) .plate-box { order: 0; }
  .plate-render-img, .proj-video { height: 220px; }
  .proj .seal { width: 85px; height: 85px; }
}

/* ── شبكة العملاء المعتمدين ── */
.section-clients { background: var(--paper-dim); border-top: 1px solid var(--line); }
.clients-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px; margin-top: 24px;
}
.client-badge {
  background: #fff; border: 1.5px solid var(--line); padding: 16px 18px;
  border-radius: var(--radius); display: flex; flex-direction: column;
  justify-content: space-between; gap: 6px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.client-badge:hover {
  transform: translateY(-2px); border-color: var(--ink);
  box-shadow: 2px 4px 0 0 var(--ink-wash);
}
.client-badge .c-name { font-weight: 700; font-size: 14.5px; color: var(--ink-deep); }
.client-badge .c-tag { font-size: 12px; color: var(--gold-text); font-weight: 600; }

/* ── بنود القيم: عقد مُبَنّى ── */
.values { border-top: 2px solid var(--ink); }
.value { display: grid; grid-template-columns: 200px 1fr; gap: clamp(16px, 3vw, 44px); padding-block: 24px; border-bottom: 1px solid var(--line); }
.value h3 { color: var(--ink-deep); }
.value p { color: var(--text-2); }
@media (max-width: 640px) { .value { grid-template-columns: 1fr; gap: 4px; } }

/* ── عن الشركة: وثيقة أصلين ── */
.doc-2col { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--ink); }
.doc-2col > div { padding: clamp(22px, 3.5vw, 40px); }
.doc-2col > div + div { border-inline-start: 1px solid var(--line); }
.doc-2col h3 { color: var(--ink-deep); }
.doc-2col p { color: var(--text-2); margin-top: 8px; font-size: 15.5px; }
@media (max-width: 700px) { .doc-2col { grid-template-columns: 1fr; } .doc-2col > div + div { border-inline-start: 0; border-top: 1px solid var(--line); } }
.story { max-width: 70ch; font-size: 17px; color: var(--text); }
.story + .story { margin-top: 14px; }

/* ── تواصل: نموذج يحوّل إلى واتساب ── */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(26px, 5vw, 64px); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
form.quote { border: 2px solid var(--ink); padding: clamp(20px, 3vw, 34px); background: var(--paper); box-shadow: 5px 6px 0 0 var(--ink-wash); }
form.quote label { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink-deep); margin: 16px 0 6px; }
form.quote label:first-of-type { margin-top: 0; }
form.quote input, form.quote textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper-dim); padding: 11px 13px; font: inherit; font-size: 15.5px; color: var(--text);
}
form.quote input:focus, form.quote textarea:focus { outline: 2px solid var(--ink); background: #fff; }
form.quote .btn { margin-top: 22px; width: 100%; justify-content: center; }
form.quote .note { font-size: 13.5px; color: var(--text-2); margin-top: 12px; text-align: center; }
.info-block { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.info-block .row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding-block: 15px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.info-block .row b { color: var(--ink-deep); font-weight: 700; }
.info-block a { text-decoration: none; }
.info-block a:hover { text-decoration: underline; }
.map-frame { margin-top: 26px; border: 1.5px solid var(--ink); filter: grayscale(0.35); }
.map-frame iframe { display: block; width: 100%; height: 300px; border: 0; }

/* ── دعوة الختام ── */
.close-cta { background: var(--ink); color: #fff; text-align: center; }
.close-cta h2 { color: #fff; }
.close-cta p { color: #cfe0d4; max-width: 56ch; margin: 12px auto 0; }
.close-cta .actions { display: flex; justify-content: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.close-cta .btn-ghost { border-color: #cfe0d4; color: #fff; }
.close-cta .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); box-shadow: none; }
.close-cta .btn-quote { background: linear-gradient(135deg, #C59B27 0%, #9E7917 100%); color: #FFFFFF !important; border: 1.5px solid #FACC15; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); }
.close-cta .btn-quote:hover { background: linear-gradient(135deg, #FACC15 0%, #C59B27 100%); color: #0B192C !important; }

/* ── التذييل ── */
footer.site { background: var(--ink-deep); color: #b9cdc0; font-size: 14.5px; }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: clamp(24px, 4vw, 56px); padding-block: clamp(40px, 6vw, 64px); }
footer.site h4 { font-family: var(--font-ar-display); color: #fff; font-size: 16px; margin-bottom: 12px; }
[dir="ltr"] footer.site h4 { font-family: var(--font-en-display); }
footer.site ul { list-style: none; display: grid; gap: 8px; }
footer.site a { color: #b9cdc0; text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; }
footer.site .base { border-top: 1px solid rgba(255, 255, 255, 0.14); }
footer.site .base .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; padding-block: 16px; font-size: 13px; color: #8fa899; }
@media (max-width: 820px) { footer.site .cols { grid-template-columns: 1fr; gap: 28px; } }

/* ── زر واتساب العائم ── */
.wa-float {
  position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 80;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 22px -6px rgba(31, 168, 85, 0.55);
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* ── الظهور عند التمرير (حركة انسيابية) ── */
.reveal { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal.is-animating { opacity: 0; transform: translateY(14px); }
html.js .reveal.seen { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .g-line { animation: none; stroke-dashoffset: 0; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .proj.done .seal.stamped { animation: none; opacity: 0.94; }
}

/* ── ضبط اتجاه أرقام الهواتف منعاً للانقلاب ── */
.phone-link, .phone-num, [dir="ltr"] .phone-link {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-block;
  font-family: var(--font-en-display), "Source Sans 3", sans-serif;
  letter-spacing: 0.5px;
}

/* ══════════════════════════════════════════════════════════════════
   بوابة طلب التسعير المباشرة (Quote & Project Request Portal)
   ══════════════════════════════════════════════════════════════════ */
.quote-page-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  min-height: 80vh;
}

.quote-hero-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto clamp(30px, 4vw, 48px);
}

.quote-tag-badge {
  display: inline-block;
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  font-size: 13.5px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  border: 1px solid rgba(2, 132, 199, 0.25);
  margin-bottom: 12px;
}

.quote-hero-header h1 {
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  color: #0b192c;
  margin-bottom: 12px;
  font-weight: 800;
}

.quote-hero-header .lede {
  font-size: 16.5px;
  color: #475569;
  line-height: 1.7;
  margin: 0 auto;
}

.quote-trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* بطاقات أقسام النموذج */
.quote-full-form {
  max-width: 980px;
  margin: 0 auto;
}

.form-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: clamp(20px, 3.5vw, 36px);
  margin-bottom: 24px;
  box-shadow: 0 4px 20px -2px rgba(11, 25, 44, 0.05);
}

.section-title-wrap {
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.section-title-wrap h3 {
  font-size: 19px;
  color: #0b192c;
  font-weight: 700;
  margin: 0;
  position: relative;
  padding-inline-start: 14px;
}

.section-title-wrap h3::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  background: #0284c7;
  border-radius: 2px;
}

.section-title-wrap .sub-hint {
  font-size: 13.5px;
  color: #64748b;
  font-weight: 500;
}

/* شبكة حقول البيانات */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 720px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.field-group {
  display: flex;
  flex-direction: column;
}

.field-group label {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 7px;
}

.field-group input,
.field-group textarea {
  width: 100%;
  border: 1.5px solid #cbd5e1;
  border-radius: 7px;
  background: #f8fafc;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: #0f172a;
  transition: all 0.2s ease;
}

.field-group input:focus,
.field-group textarea:focus {
  outline: none;
  border-color: #0284c7;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.field-group input.has-error,
.field-group textarea.has-error {
  border-color: #ef4444;
  background: #fff5f5;
}

.field-error {
  font-size: 12.5px;
  color: #dc2626;
  margin-top: 5px;
  display: none;
  font-weight: 600;
}

.field-group.is-error .field-error {
  display: block;
}

/* شبكة تصنيفات الخدمات */
.services-categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .services-categories-grid {
    grid-template-columns: 1fr;
  }
}

.quote-cat-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 18px 20px;
}

.quote-cat-card .cat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #cbd5e1;
}

.quote-cat-card .cat-head h4 {
  font-size: 15.5px;
  font-weight: 700;
  color: #0b192c;
  margin: 0;
}

.quote-cat-card .cat-icon {
  font-size: 18px;
}

.quote-cat-card .cat-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quote-check-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  transition: all 0.18s ease;
  user-select: none;
  text-align: start;
}

.quote-check-label:hover {
  background: #f0f9ff;
  border-color: #7dd3fc;
}

.quote-check-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #0284c7;
  cursor: pointer;
  flex-shrink: 0;
}

.quote-check-label .check-text {
  font-size: 14px;
  color: #334155;
  line-height: 1.45;
  font-weight: 500;
  text-align: start;
  flex: 1;
}

.quote-check-label.is-checked {
  background: #f0f9ff;
  border-color: #0284c7;
  box-shadow: 0 0 0 1px #0284c7;
}

.quote-check-label.is-checked .check-text {
  color: #0369a1;
  font-weight: 700;
}

/* زر إرسال الطلب */
.form-submit-row {
  text-align: center;
  margin-top: 32px;
  padding-bottom: 20px;
}

.btn-primary-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #c59b27 0%, #b08d3e 100%);
  color: #07131f !important;
  font-weight: 800;
  font-size: 17px;
  padding: 16px 44px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(197, 155, 39, 0.38);
  transition: all 0.2s ease;
  min-width: 280px;
}

.btn-primary-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197, 155, 39, 0.48);
}

.btn-primary-gold:active {
  transform: translateY(0);
}

.btn-primary-gold:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(7, 19, 31, 0.25);
  border-top-color: #07131f;
  border-radius: 50%;
  animation: quoteSpin 0.7s linear infinite;
  display: inline-block;
}

@keyframes quoteSpin {
  to { transform: rotate(360deg); }
}

.privacy-note {
  font-size: 13.5px;
  color: #64748b;
  margin-top: 14px;
}

/* نافذة التأكيد التفاعلية (Modal) */
.quote-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(11, 25, 44, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.quote-modal-box {
  background: #ffffff;
  border-radius: 14px;
  max-width: 540px;
  width: 100%;
  padding: 38px 30px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border: 2px solid #c59b27;
  animation: modalCardPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalCardPop {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-badge-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 32px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.quote-modal-box .modal-title {
  font-size: 22px;
  color: #0b192c;
  margin-bottom: 10px;
  font-weight: 800;
}

.quote-modal-box .modal-desc {
  font-size: 15px;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 20px;
}

.modal-ref-card {
  background: #f0f9ff;
  border: 1.5px dashed #0284c7;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 24px;
}

.modal-ref-card .ref-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #0369a1;
  margin-bottom: 4px;
}

.modal-ref-card .ref-code {
  display: block;
  font-size: 22px;
  font-weight: 800;
  font-family: monospace;
  color: #0b192c;
  letter-spacing: 1px;
}

.modal-cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-cta-group .btn {
  padding: 12px 22px;
  font-size: 14.5px;
}

/* إخفاء زر واتساب العائم في صفحة التسعير لمنع تغطية الحقول وزر الإرسال */
body.page-quote .wa-float {
  display: none !important;
}

/* شريط التواصل المباشر عبر واتساب في ترويسة صفحة التسعير */
.quote-direct-wa-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 13.5px;
}

.direct-wa-hint {
  color: #166534;
  font-weight: 600;
}

.direct-wa-btn {
  color: #15803d !important;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}

.direct-wa-btn:hover {
  text-decoration: underline;
  color: #047857 !important;
}

/* ══════════════════════════════════════════════════════════════════
   تحسينات واجهة الجوال الفائقة لصفحة طلب التسعير (Mobile Optimization)
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .quote-page-section {
    padding-block: 24px 44px !important;
  }

  .quote-hero-header {
    margin-bottom: 20px;
  }

  .quote-tag-badge {
    font-size: 12px;
    padding: 3px 12px;
    margin-bottom: 8px;
  }

  .quote-hero-header h1 {
    font-size: 1.6rem;
    line-height: 1.3;
    margin-bottom: 8px;
  }

  .quote-hero-header .lede {
    font-size: 13.5px;
    line-height: 1.55;
    padding-inline: 8px;
  }

  .quote-trust-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 14px;
  }

  .trust-pill {
    font-size: 11px;
    padding: 6px 8px;
    justify-content: center;
    text-align: center;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .quote-direct-wa-bar {
    flex-direction: column;
    gap: 4px;
    padding: 9px 14px;
    border-radius: 12px;
    margin-top: 14px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .quote-direct-wa-bar .direct-wa-btn {
    font-size: 13px;
  }

  /* بطاقات الأقسام على الجوال */
  .form-section-card {
    padding: 16px 14px;
    margin-bottom: 14px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(11, 25, 44, 0.04);
  }

  .section-title-wrap {
    margin-bottom: 14px;
    padding-bottom: 8px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .section-title-wrap h3 {
    font-size: 16px;
  }

  .section-title-wrap .sub-hint {
    font-size: 12px;
    margin-inline-start: 14px;
  }

  /* شبكة الحقول على الجوال */
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .field-group label {
    font-size: 13.5px;
    margin-bottom: 5px;
  }

  .field-group input,
  .field-group textarea {
    font-size: 16px !important; /* يمنع التكبير التلقائي في متصفح سفاري على آيفون */
    padding: 11px 12px;
    border-radius: 8px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
  }

  /* شبكة تصنيفات الخدمات على الجوال — تصميم بطاقات تفاعلية خفيفة وعصرية */
  .services-categories-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .quote-cat-card {
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .quote-cat-card .cat-head {
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1.5px solid #e2e8f0;
    gap: 8px;
  }

  .quote-cat-card .cat-head h4 {
    font-size: 14.5px;
    color: #0b192c;
    font-weight: 700;
  }

  .quote-cat-card .cat-items {
    gap: 7px;
  }

  .quote-check-label {
    padding: 11px 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    align-items: center;
    min-height: 48px;
    text-align: start;
    box-sizing: border-box;
  }

  .quote-check-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
  }

  .quote-check-label .check-text {
    font-size: 13.5px;
    line-height: 1.45;
    text-align: start;
    flex: 1;
  }

  .quote-check-label.is-checked {
    background: #eff6ff;
    border-color: #0284c7;
    box-shadow: 0 0 0 1px #0284c7;
  }

  /* زر الإرسال على الجوال */
  .form-submit-row {
    margin-top: 18px;
    padding-bottom: 10px;
  }

  .btn-primary-gold {
    width: 100%;
    min-width: 0;
    padding: 16px 20px;
    font-size: 16.5px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(197, 155, 39, 0.4);
  }

  .privacy-note {
    font-size: 12px;
    margin-top: 10px;
    line-height: 1.5;
  }

  /* نافذة التأكيد المنبثقة على الجوال */
  .quote-modal-overlay {
    padding: 14px;
  }

  .quote-modal-box {
    padding: 24px 16px;
    max-width: 95%;
    border-radius: 12px;
  }

  .modal-badge-check {
    width: 52px;
    height: 52px;
    font-size: 26px;
    margin-bottom: 12px;
  }

  .quote-modal-box .modal-title {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .quote-modal-box .modal-desc {
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 16px;
  }

  .modal-ref-card {
    padding: 10px 12px;
    margin-bottom: 16px;
  }

  .modal-ref-card .ref-code {
    font-size: 18px;
  }

  .modal-cta-group {
    flex-direction: column;
    gap: 8px;
  }

  .modal-cta-group .btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
  }
}



