/* ════════════════════════════════════════════════════════════════════
   ░░  HUB — المنظومة القيادية (صفحة الحوكمة)  ░░
   أسلوب تقارير المؤسسات: خطوط شعرية، مساحات واسعة، لون ذهبي واحد.
   السلسلة C→P من اليسار، ثم مجلس الخبراء، ثم طبقة القيادة كمخطط
   هرمي (المجلس ← المكتبان ← قادة المسارات)، ثم أرقام المنظومة.
   الأسماء والصور من GOVERNANCE_MEMBERS في governance.js.
   الفاتح أساس القسم، والداكن للإبراز (لوحة ابتكار القيمة، المجلس)
   وللتمرير (مراحل السلسلة).
   ════════════════════════════════════════════════════════════════════ */

.hub {
  --g: #8E6524;
  --line: rgba(11,39,47,.1);
  --line-g: rgba(169,122,46,.4);
  --bg: #EAF0F0;
  --card: #FFFFFF;
  --text: #0B272F;
  --head: #061318;
  --muted: #4A6A72;
  --dark: #0B272F;
  --on-dark: #EFE7D8;
  --g-on-dark: #D9A85A;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Noto Sans", system-ui, sans-serif;
  background: var(--bg); color: var(--text);
  padding: clamp(80px, 10vw, 136px) 0;
}
.hub__container { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter, 20px); }
.hub .reveal { transition-duration: .9s; }

/* ── الرأس ── */
.hub__head { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.hub__brand { order: 2; text-align: left; line-height: 1; }
.hub__brand-en { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .4em; text-transform: uppercase; color: var(--muted); }
.hub__brand-hub { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 6.5vw, 84px); letter-spacing: .16em; color: var(--g); margin-top: 6px; }
.hub__intro .section-label { color: var(--g); }
.hub__title { font-size: clamp(26px, 3vw, 38px); line-height: 1.55; font-weight: 700; margin: 12px 0; color: var(--head); }
.hub__title em { font-style: normal; color: var(--g); }
.hub__desc { max-width: 580px; margin: 0; font-size: 15.5px; line-height: 2; color: var(--muted); }

.hub__kicker { font-family: var(--sans); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--g); }

/* ── الإطار: يصبح قسمين مفصولين بخط شعري ── */
.hub__frame { margin-top: 56px; }

/* السلسلة */
.hub__chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line-g); border-bottom: 1px solid var(--line); }
.hub-stage { display: flex; flex-direction: column; align-items: flex-start; padding: 22px 20px 26px; text-align: left; }
.hub-stage + .hub-stage { border-left: 1px solid var(--line); }
.hub-stage__num { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; color: var(--muted); }
.hub-stage__glyph { order: 2; font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 4.6vw, 64px); line-height: 1; color: var(--g); margin: 18px 0 14px; transition: transform .4s ease; }
.hub-stage__ar { order: 3; font-size: 15px; font-weight: 700; color: var(--head); direction: rtl; }
.hub-stage__en { order: 4; font-family: var(--sans); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.hub-stage__dots { display: none; }
.hub-stage { transition: background .4s ease; }
.hub-stage:hover { background: var(--dark); }
.hub-stage:hover .hub-stage__glyph { transform: translateY(-3px); color: var(--g-on-dark); }
.hub-stage:hover .hub-stage__ar { color: var(--on-dark); }
.hub-stage:hover .hub-stage__num,
.hub-stage:hover .hub-stage__en { color: rgba(239,231,216,.6); }

/* سهم التدفق */
.hub__flow { display: grid; grid-template-columns: repeat(6, 1fr); padding-top: 14px; }
.hub__flow span { grid-column: 1 / span 3; position: relative; display: flex; justify-content: space-between; gap: 16px; padding: 12px 20px 0; font-size: 12px; }
.hub__flow span::before { content: ""; position: absolute; top: 0; left: 20px; right: 20px; height: 1px; background: var(--line-g); }
.hub__flow span::after { content: ""; position: absolute; top: -3px; right: 20px; width: 7px; height: 7px; border-top: 1px solid var(--g); border-right: 1px solid var(--g); transform: rotate(45deg); }
.hub__flow em { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--g); }
.hub__flow b { font-weight: 400; color: var(--muted); }

/* مجلس الخبراء */
.hub__experts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; align-items: stretch; margin-top: 56px; }
.hub__experts-grid { grid-column: 1 / span 3; order: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hub-tile { grid-column: 4; order: 2; }
.hub__experts-label { grid-column: 5 / span 2; order: 3; display: flex; flex-direction: column; gap: 10px; padding-inline-start: 28px; border-inline-start: 1px solid var(--line-g); align-self: start; }
.hub__experts-label strong { font-size: 22px; color: var(--head); }
.hub__experts-label span:last-child { font-size: 13.5px; line-height: 1.9; color: var(--muted); }

.hub-portrait { margin: 0; }
.hub-portrait__marker { display: none; }
.hub-portrait__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--card); border: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: center; }
.hub-portrait__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .6s ease; }
.hub-portrait:hover .hub-portrait__img img { filter: none; }
.hub-portrait figcaption { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-g); display: flex; flex-direction: column; gap: 2px; direction: rtl; text-align: right; }
.hub-portrait__name { font-size: 14px; font-weight: 700; color: var(--head); }
.hub-portrait__role { font-size: 12px; color: var(--muted); }
.hub-silhouette { width: 64%; height: auto; color: rgba(11,39,47,.1); }
.hub-initials { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 34px; color: var(--g); }

.hub-tile { aspect-ratio: 4 / 5; background: var(--dark); border: 1px solid var(--dark); --g: var(--g-on-dark); --muted: rgba(239,231,216,.6); --text: var(--on-dark); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 16px; color: var(--g); }
.hub-tile__dots { display: grid; grid-template-columns: repeat(4, 6px); gap: 8px; }
.hub-tile__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--g); }
.hub-tile__dots i:nth-child(6), .hub-tile__dots i:nth-child(7) { background: transparent; box-shadow: inset 0 0 0 1px var(--g); }
.hub-tile__en { font-family: var(--serif); font-size: 20px; letter-spacing: .1em; line-height: 1.1; }
.hub-tile__en small { font-family: var(--sans); font-size: .48em; letter-spacing: .3em; color: var(--muted); }
.hub-tile__ar { font-size: 12px; font-weight: 600; color: var(--text); }

/* ── طبقة القيادة: مخطط هرمي ── */
.hub__command { margin-top: 88px; padding-top: 40px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; }
.hub__tier-head { align-self: stretch; display: flex; align-items: baseline; gap: 16px; margin-bottom: 40px; }
.hub__tier-head strong { font-size: 22px; color: var(--head); }
.hub__board { display: flex; flex-direction: column; align-items: center; }
.hub__board-pill { padding: 10px 36px; background: var(--dark); border: 1px solid var(--dark); color: var(--g-on-dark); font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.hub__stem { width: 1px; height: 32px; background: var(--line-g); }
.hub__offices { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 32px; }
.hub__offices::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 1px; background: var(--line-g); }
.hub-office { position: relative; min-width: 220px; padding: 20px 24px; background: var(--card); border: 1px solid var(--line); border-top: 2px solid var(--g); display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.hub-office::before { content: ""; position: absolute; top: -34px; left: 50%; width: 1px; height: 32px; background: var(--line-g); }
.hub-office__code { font-family: var(--serif); font-size: 30px; letter-spacing: .14em; color: var(--head); line-height: 1; }
.hub-office__ar { font-size: 12.5px; color: var(--muted); }
.hub-office__team { display: none; }
.hub-office__team:not(:empty) { display: flex; gap: 4px; margin-top: 6px; }
.hub-office__team .hub-mini { width: 26px; height: 32px; border: 1px solid var(--line); overflow: hidden; }
.hub-office__team .hub-mini img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }

.hub__leads-row { position: relative; align-self: stretch; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 32px; }
.hub__leads-row::before { content: ""; position: absolute; top: 0; left: 12.5%; right: 12.5%; height: 1px; background: var(--line-g); }
.hub__leads { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.hub-lead { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hub-lead::before { content: ""; position: absolute; top: -32px; left: 50%; width: 1px; height: 32px; background: var(--line-g); }
.hub-lead__img { width: 132px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--card); border: 1px solid var(--line-g); display: flex; align-items: flex-end; justify-content: center; }
.hub-lead__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.hub-lead__seat { display: none; }
.hub-lead figcaption { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.hub-lead__name { font-size: 14px; font-weight: 700; color: var(--head); }
.hub-lead__role { font-size: 12px; color: var(--muted); }

/* ── الأرقام ── */
.hub__stats { margin: 88px 0 0; border-top: 1px solid var(--line-g); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); }
.hub-stat { margin: 0; padding: 28px 24px; display: flex; flex-direction: column; gap: 8px; }
.hub-stat + .hub-stat { border-inline-start: 1px solid var(--line); }
.hub-stat dt { text-align: right; font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 4.4vw, 60px); line-height: 1; color: var(--g); }
.hub-stat dd { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--muted); }

/* ── اللوحي والجوال ── */
@media (max-width: 960px) {
  .hub__head { grid-template-columns: 1fr; gap: 20px; }
  .hub__brand { order: 0; text-align: right; }
  .hub__chain { grid-template-columns: repeat(3, 1fr); }
  .hub-stage:nth-child(4) { border-left: 0; }
  .hub-stage:nth-child(n+4) { border-top: 1px solid var(--line); }
  .hub__flow span { grid-column: 1 / -1; }
  .hub__experts { grid-template-columns: repeat(3, 1fr); }
  .hub__experts-label { grid-column: 1 / -1; order: 0; border: 0; padding: 0; }
  .hub__experts-grid { grid-column: 1 / -1; }
  .hub-tile { grid-column: 1 / -1; aspect-ratio: auto; flex-direction: row; padding: 18px; }
  .hub__stats { grid-template-columns: 1fr 1fr; }
  .hub-stat:nth-child(3) { border-inline-start: 0; }
  .hub-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .hub-stage { padding: 18px 12px; }
  .hub-stage__en { font-size: 9.5px; }
  .hub__experts-grid { gap: 12px; }
  .hub__offices { grid-template-columns: 1fr; gap: 16px; }
  .hub__offices::before { display: none; }
  .hub-office { min-width: 0; }
  .hub-office + .hub-office::before { top: -18px; height: 16px; }
  .hub__leads-row { grid-template-columns: 1fr; gap: 28px; }
  .hub__leads-row::before { left: 25%; right: 25%; }
  .hub__leads { gap: 16px; }
  .hub__leads + .hub__leads .hub-lead::before { display: none; }
  .hub-lead__img { width: 112px; }
}
