@charset "UTF-8";
/* ==========================================================================
   عتيد للمحاماة والاستشارات القانونية — نظام التصميم
   ========================================================================== */

:root {
  /* ألوان الهوية */
  --ink:        #10151B;   /* مأخوذ من ملف الهوية */
  --ink-2:      #181E26;
  --ink-3:      #252D38;
  --gold:       #C6A15A;   /* مأخوذ من ملف الهوية */
  --gold-soft:  #DCC08A;
  --gold-ink:   #7A5F24;   /* الذهبي للنصوص على الخلفيات الفاتحة */
  --paper:      #F4F2ED;
  --paper-2:    #FBFAF7;
  --white:      #FFFFFF;

  --text:       #1B1F26;
  --muted:      #5C636D;
  --muted-dark: #9AA3AF;   /* نص ثانوي على الغامق */
  --line:       #E2DED6;
  --line-dark:  #333B46;

  --radius:   3px;
  --radius-lg: 6px;
  --shadow:   0 1px 2px rgba(16, 21, 27, .04), 0 8px 24px rgba(16, 21, 27, .06);
  --shadow-lg:0 2px 4px rgba(16, 21, 27, .05), 0 18px 48px rgba(16, 21, 27, .10);

  --header-h: 76px;
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(64px, 9vw, 116px);

  /* تاجوال للعناوين — أوزانه المتاحة: 200 300 400 500 700 800 900 (لا يوجد 600) */
  --font-head: "Tajawal", system-ui, -apple-system, sans-serif;
  --font-body: "IBM Plex Sans Arabic", system-ui, -apple-system, sans-serif;
}

/* ---------- الأساسيات ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.32; }
h2 { font-size: clamp(25px, 3.1vw, 38px); }
h3 { font-size: clamp(19px, 1.9vw, 23px); }
h4 { font-size: 17px; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--gold-ink); text-decoration: none; }
a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--gold-ink);
  outline-offset: 3px;
  border-radius: 2px;
}

/* تجاوز إلى المحتوى */
.skip {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--white);
  padding: 12px 20px; font-size: 15px; font-weight: 600;
}
.skip:focus { inset-inline-start: 12px; top: 12px; text-decoration: none; color: var(--white); }

/* ---------- عناصر مشتركة ---------- */
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--paper { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--white); }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600; letter-spacing: .14em;
  color: var(--gold-ink); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.section--ink .eyebrow { color: var(--gold); }

.lead { font-size: clamp(17px, 1.6vw, 19.5px); font-weight: 300; line-height: 1.85; color: var(--muted); }
.section--ink .lead { color: #C3CAD3; }

.head-block { max-width: 760px; }
.head-block .lead { margin-top: 18px; }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 13px 28px;
  font-family: var(--font-body); font-size: 15.5px; font-weight: 600; line-height: 1.3;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background-color .18s ease, color .18s ease, border-color .18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-soft); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--ink-3); color: var(--white); }
.btn--ghost { border-color: #C9C3B8; color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost-light { border-color: var(--line-dark); color: var(--paper); background: transparent; }
.btn--ghost-light:hover { border-color: var(--gold); color: var(--white); }
.btn--sm { min-height: 42px; padding: 10px 20px; font-size: 14.5px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--gold-ink);
}
.arrow-link svg { width: 15px; height: 15px; transition: transform .18s ease; }
.arrow-link:hover svg { transform: translateX(-4px); }

/* ---------- الهيدر ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(16, 21, 27, .97);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-dark);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: var(--header-h); position: relative;
}

/* هيدر شفاف يطفو فوق فيديو الهيرو، ويصير معتمًا بعد التمرير */
/* يخرج من مجرى الصفحة حتى يبدأ الهيرو من أعلى الشاشة تمامًا */
.header--over {
  position: fixed; inset-inline: 0; top: 0;
  background: transparent; backdrop-filter: none; border-bottom-color: transparent;
  transition: background-color .3s ease, border-color .3s ease;
}
.header--over::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 190%;
  background: linear-gradient(to bottom, rgba(16, 21, 27, .80), rgba(16, 21, 27, 0));
  pointer-events: none; transition: opacity .3s ease;
}
.header--over.is-solid {
  background: rgba(16, 21, 27, .97);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom-color: var(--line-dark);
}
.header--over.is-solid::before { opacity: 0; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 40px; height: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__ar { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--white); }
.brand__en { font-size: 10px; font-weight: 500; letter-spacing: .34em; color: var(--gold); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 14px; border-radius: var(--radius);
  font-size: 15.5px; font-weight: 500; color: #CFD5DD;
}
.nav a:hover { color: var(--white); background: rgba(255,255,255,.06); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--gold); }
.nav > .btn { display: none; }   /* زر الاستشارة داخل القائمة يظهر في الجوال فقط */

.header__actions { display: flex; align-items: center; gap: 12px; }

.burger {
  display: none; width: 46px; height: 46px; padding: 0;
  background: transparent; border: 1px solid var(--line-dark); border-radius: var(--radius);
  color: var(--white); cursor: pointer;
}
.burger svg { width: 22px; height: 22px; margin-inline: auto; }
.burger .icon-close { display: none; }
.burger[aria-expanded="true"] .icon-open { display: none; }
.burger[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1040px) {
  .nav { display: none; }
  .burger { display: block; }
  .header__actions .btn { display: none; }
  .nav--open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; inset-inline: 0; top: 100%;
    background: var(--ink); border-bottom: 1px solid var(--line-dark);
    padding: 12px var(--gutter) 22px;
  }
  .nav--open a { padding: 13px 10px; font-size: 16.5px; border-bottom: 1px solid rgba(255,255,255,.05); }
  .nav--open > .btn { display: inline-flex; margin-top: 14px; border-bottom: 0; }
}

/* ---------- الهيرو ---------- */
.hero { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.hero__inner { padding-block: clamp(68px, 11vw, 136px); position: relative; z-index: 1; max-width: 920px; }
.hero h1 { color: var(--white); max-width: none; }
.hero .lead { color: #C3CAD3; margin-top: 26px; max-width: 58ch; }

/* هيرو الفيديو يملأ الشاشة، والنص ينزل إلى الثلث السفلي
   حتى يبقى أعلى الكادر مكشوفًا والفيديو هو البطل */
.hero--media { min-height: 100vh; min-height: 100svh; display: flex; align-items: stretch; }
.hero--media .hero__inner {
  display: flex; flex-direction: column; justify-content: flex-end;
  width: 100%; max-width: var(--container); margin-inline: auto;
  padding-block: 0 clamp(56px, 9vh, 104px);
  padding-top: calc(var(--header-h, 76px) + clamp(40px, 12vh, 120px));
}
.hero--media .hero__title { max-width: 920px; }
.hero--media .lead { max-width: 56ch; }

/* اسم الشركة في الهيرو — سطر ذهبي كبير وتحته سطر أبيض */
.hero__title { display: flex; flex-direction: column; gap: 8px; }
.hero__name {
  display: block; color: var(--gold);
  font-size: clamp(38px, 6.4vw, 78px); font-weight: 700;
  line-height: 1.18; letter-spacing: -0.015em;
}
.hero__name--white { color: var(--white); }
.hero__rest {
  display: block; color: var(--white);
  font-size: clamp(23px, 3.5vw, 43px); font-weight: 700;
  line-height: 1.32; letter-spacing: -0.01em;
}
.hero__glow {
  position: absolute; inset-block: 0; inset-inline-start: -10%;
  width: 55%; pointer-events: none; opacity: .22;
  background: radial-gradient(closest-side, var(--gold), transparent 72%);
}

/* ---------- خلفية فيديو للهيرو ---------- */
.hero__media {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background-color: var(--ink);
  background-size: cover; background-position: center;
}
.hero__video {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block; border: 0; opacity: 0; transition: opacity .9s ease;
}
.hero__video.is-playing { opacity: 1; }
/* التعتيم فوق الفيديو، على ثلاث طبقات:
   1) تعتيم عام خفيف يُضبط من content.py
   2) بقعة مركّزة خلف كتلة النص — هي التي تضمن التباين
   3) تدرّج رأسي يربط الهيرو بالهيدر وبالشريط تحته */
.hero__scrim { position: absolute; inset: 0; background: rgba(16, 21, 27, var(--hero-dim, .30)); }
/* بقعة ناعمة تحت الكتابة فقط — أعلى الكادر يبقى مكشوفًا */
.hero__scrim::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(140% 66% at 60% 90%,
    rgba(16, 21, 27, .66) 0%, rgba(16, 21, 27, .38) 46%, rgba(16, 21, 27, 0) 84%);
}
/* تدرّج رأسي: يخفّ في الأعلى ويثقل عند النص أسفل الشاشة */
.hero__scrim::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(16, 21, 27, .34) 0%,
    rgba(16, 21, 27, 0) 22%,
    rgba(16, 21, 27, .32) 48%,
    rgba(16, 21, 27, .93) 100%);
}

/* ظل خفيف جدًا لحافة الحرف فقط — بلا هالة داكنة حول الكلمات.
   القراءة يحملها التدرّج الناعم خلف النص، لا الظل. */
.hero--media .hero__name,
.hero--media .hero__rest {
  text-shadow: 0 1px 2px rgba(16, 21, 27, .45);
}
.hero--media .lead {
  color: #E4E9EF;
  text-shadow: 0 1px 2px rgba(16, 21, 27, .45);
}
.hero--media .hero__glow { opacity: .10; }

.trust {
  background: var(--ink-2); border-top: 1px solid var(--line-dark);
  padding-block: 26px;
}
.trust__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 40px; }
.trust__item { display: flex; gap: 12px; align-items: flex-start; }
.trust__item svg { width: 19px; height: 19px; color: var(--gold); flex: none; margin-top: 4px; }
.trust__t { font-size: 15px; font-weight: 600; color: var(--white); display: block; }
.trust__d { font-size: 14px; line-height: 1.6; color: var(--muted-dark); }
@media (max-width: 860px) { .trust__grid { grid-template-columns: 1fr; } }

/* ---------- الشبكات والبطاقات ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; display: flex; flex-direction: column; gap: 14px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
a.card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.card__icon { width: 38px; height: 38px; color: var(--gold-ink); }
.card h3 { color: var(--text); }
.card p { font-size: 15.5px; line-height: 1.75; color: var(--muted); margin: 0; }
.card .arrow-link { margin-top: auto; padding-top: 6px; }

.numbered { display: flex; flex-direction: column; gap: 12px; }
.numbered__n {
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  color: var(--gold-ink); letter-spacing: .08em;
}
.section--ink .numbered__n { color: var(--gold); }
.section--ink .card { background: var(--ink-2); border-color: var(--line-dark); }
.section--ink .card h3 { color: var(--white); }
.section--ink .card p { color: #B9C1CB; }

/* ---------- قوائم العلامات ---------- */
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
@media (max-width: 680px) { .ticks--2 { grid-template-columns: 1fr; } }
.ticks li { display: flex; gap: 11px; align-items: flex-start; font-size: 16px; line-height: 1.7; }
.ticks svg { width: 17px; height: 17px; color: var(--gold-ink); flex: none; margin-top: 6px; }
.section--ink .ticks svg { color: var(--gold); }

/* ---------- بانر الصفحات الداخلية ---------- */
.page-head { background: var(--ink); color: var(--paper); padding-block: clamp(44px, 6vw, 72px); }
.page-head h1 { color: var(--white); max-width: 20ch; }
.page-head .lead { color: #C3CAD3; margin-top: 16px; max-width: 62ch; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; margin-bottom: 18px; list-style: none; }
.crumbs li { display: flex; align-items: center; gap: 8px; color: var(--muted-dark); }
.crumbs a { color: var(--muted-dark); }
.crumbs a:hover { color: var(--gold); }
.crumbs li + li::before { content: "/"; color: #4A5260; }
.crumbs [aria-current] { color: var(--gold); }

/* ---------- المحتوى المقالي ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.1em; margin-bottom: .6em; font-size: clamp(21px, 2.2vw, 27px); }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 17px; line-height: 1.9; }
.prose ul { list-style: none; display: flex; flex-direction: column; gap: 11px; margin: 1.2em 0; }
.prose ul li { display: flex; gap: 11px; align-items: flex-start; font-size: 16.5px; line-height: 1.8; }
.prose ul li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); flex: none; margin-top: 12px;
}
.prose b { font-weight: 600; color: var(--text); }

.note {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px; margin: 2em 0;
  display: flex; gap: 14px; align-items: flex-start;
}
.note svg { width: 20px; height: 20px; color: var(--gold-ink); flex: none; margin-top: 5px; }
.note p { font-size: 16px; line-height: 1.75; margin: 0; }
.note strong { font-weight: 600; }

/* ---------- الأسئلة الشائعة ---------- */
.faq { max-width: 860px; display: flex; flex-direction: column; gap: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: 22px 2px; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-size: clamp(16px, 1.7vw, 18.5px); font-weight: 700;
  line-height: 1.6; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-ink); }
.faq summary svg { width: 19px; height: 19px; color: var(--gold-ink); flex: none; margin-top: 5px; transition: transform .2s ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq__a { padding: 0 2px 26px; font-size: 16.5px; line-height: 1.9; color: var(--muted); max-width: 70ch; }

/* ---------- المقالات ---------- */
.post-list { display: flex; flex-direction: column; }
.post-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px 26px; align-items: center;
  padding: 26px 2px; border-bottom: 1px solid var(--line); text-decoration: none;
}
.post-row:hover { text-decoration: none; }
.post-row:hover h3 { color: var(--gold-ink); }
.post-row__n { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--gold); }
.post-row h3 { font-size: clamp(18px, 2vw, 22px); color: var(--text); transition: color .15s ease; }
.post-row p { font-size: 15.5px; color: var(--muted); margin: 7px 0 0; line-height: 1.7; }
.post-row__go { color: var(--gold-ink); }
.post-row__go svg { width: 18px; height: 18px; }
@media (max-width: 680px) {
  .post-row { grid-template-columns: auto 1fr; }
  .post-row__go { display: none; }
}

/* ---------- التواصل ---------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 14.5px; font-weight: 600; color: var(--text); }
.field label .req { color: var(--gold-ink); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 16px; color: var(--text);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 15px; min-height: 50px; width: 100%;
  transition: border-color .15s ease;
}
.field textarea { min-height: 136px; resize: vertical; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-ink); outline-offset: 1px; }
.field__hint { font-size: 13.5px; color: var(--muted); }

.info-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list svg { width: 19px; height: 19px; color: var(--gold-ink); flex: none; margin-top: 5px; }
.info-list .k { display: block; font-size: 13.5px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.info-list .v { font-size: 16.5px; color: var(--text); font-weight: 500; }
.info-list a.v:hover { color: var(--gold-ink); }

.map-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 26px; background: var(--white); }
.map-frame iframe { display: block; width: 100%; height: 300px; border: 0; }

/* ---------- دعوة أخيرة ---------- */
.cta { background: var(--ink); color: var(--paper); }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-block: clamp(48px, 7vw, 84px); }
.cta h2 { color: var(--white); max-width: 18ch; }
.cta p { color: #C3CAD3; margin: 14px 0 0; max-width: 52ch; font-weight: 300; }

/* ---------- الفوتر ---------- */
.footer { background: #0F1319; color: #B9C1CB; padding-block: clamp(48px, 6vw, 72px) 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 980px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--gold); margin-bottom: 18px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer a { color: #B9C1CB; font-size: 15.5px; }
.footer a:hover { color: var(--white); text-decoration: none; }
.footer p { font-size: 15px; line-height: 1.8; }
.footer__brand .brand { margin-bottom: 16px; }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line-dark); border-radius: var(--radius); color: #B9C1CB;
}
.footer__social a:hover { border-color: var(--gold); color: var(--gold); }
.footer__social svg { width: 17px; height: 17px; }
.footer__legal { border-top: 1px solid #1E2630; margin-top: 44px; padding-block: 26px 30px; }
.footer__legal p { font-size: 13.5px; line-height: 1.8; color: #7E8794; margin: 0; }
.footer__legal p + p { margin-top: 10px; }
.footer__meta { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-bottom: 14px; font-size: 13.5px; color: #7E8794; }

/* ---------- الفريق ---------- */
.member {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.member:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }

.portrait {
  display: block; width: 100%; aspect-ratio: 4 / 5;
  object-fit: cover; object-position: top center; background: var(--ink-2);
}
.portrait--empty {
  display: grid; place-items: center;
  background: var(--ink); color: var(--gold);
  font-family: var(--font-head); font-size: clamp(34px, 6vw, 52px); font-weight: 700;
}
.member__body { display: flex; flex-direction: column; gap: 7px; padding: 22px 24px 24px; }
.member h3 { font-size: 19px; color: var(--text); }
.member__role { font-size: 14.5px; font-weight: 500; color: var(--gold-ink); }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.tags li {
  font-size: 12.5px; line-height: 1.4; color: var(--muted);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 2px; padding: 5px 10px;
}
.tags--lg { margin-top: 16px; }
.tags--lg li { font-size: 14px; padding: 8px 14px; background: var(--white); }
.tags--lg a { color: var(--text); }
.tags--lg li:hover { border-color: var(--gold); }
.tags--lg a:hover { color: var(--gold-ink); text-decoration: none; }

.profile {
  display: grid; grid-template-columns: 330px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 60px); align-items: start;
}
.profile__media { position: sticky; top: 100px; }
.portrait--lg { border: 1px solid var(--line); border-radius: var(--radius); }
@media (max-width: 920px) {
  .profile { grid-template-columns: 1fr; }
  .profile__media { position: static; max-width: 320px; }
}

/* ---------- زر واتساب العائم ---------- */
.wa {
  position: fixed; inset-block-end: 22px; inset-inline-start: 22px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--gold);
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow-lg);
  transition: background-color .18s ease, transform .18s ease;
}
.wa:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); text-decoration: none; }
.wa svg { width: 26px; height: 26px; }
@media print { .wa, .header { display: none; } }

/* ===== نطاق التمثيل القانوني — بلاطات القوس =====
   القوس مأخوذ من علامة عتيد (بوابة معقودة)، والأيقونة في مربّع ذهبي
   كما في هوية الشركة السابقة. */
.scope { background: var(--paper-2); border-top: 1px solid var(--line); }
.scope--main { background: transparent; border-top: 0; }
.scope__head { max-width: 640px; margin-bottom: 38px; }
.scope__head h2 { margin: 0 0 12px; }
.scope__head .lead { margin: 0; }
.scope__lead { max-width: 640px; margin: 0 0 38px; }

.scope__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.scope__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 242px;
  padding: 44px 18px 30px;
  text-align: center;
  color: var(--text);
  text-decoration: none;
  background: #fff;
  border: 1px solid #EAE5DA;
  /* القوس: قبّة أعلى البلاطة وزوايا هادئة أسفلها */
  border-radius: 50% 50% 14px 14px / 42% 42% 0 0;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

/* المربّع الذهبي — العنصر المميّز في هوية عتيد */
.scope__ic {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: none;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(155deg, #D4B072 0%, var(--gold) 52%, #B08F46 100%);
  box-shadow: 0 6px 16px rgba(176, 143, 70, .26);
  transition: transform .2s ease, box-shadow .2s ease;
}
.scope__ic svg { width: 25px; height: 25px; }

.scope__item h3 {
  margin: auto 0 0;
  padding-top: 24px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.6;
  max-width: 16ch;
}

a.scope__item:hover,
a.scope__item:focus-visible {
  border-color: rgba(198, 161, 90, .6);
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(16, 21, 27, .09);
}
a.scope__item:hover .scope__ic,
a.scope__item:focus-visible .scope__ic {
  transform: scale(1.06);
  box-shadow: 0 10px 22px rgba(176, 143, 70, .36);
}

@media (prefers-reduced-motion: reduce) {
  .scope__item, .scope__ic { transition: none; }
  a.scope__item:hover, a.scope__item:focus-visible { transform: none; }
  a.scope__item:hover .scope__ic { transform: none; }
}

@media (max-width: 1040px) {
  .scope__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .scope__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .scope__item {
    min-height: 196px;
    padding: 32px 12px 24px;
    border-radius: 50% 50% 12px 12px / 36% 36% 0 0;
  }
  .scope__ic { width: 50px; height: 50px; border-radius: 15px; }
  .scope__ic svg { width: 22px; height: 22px; }
  .scope__item h3 { padding-top: 17px; font-size: 13.5px; }
}
