/* ==========================================================
   الشربيني — site.css
   نظام بصري: ورق دافئ + حبر أخضر داكن + ذهبي كلمسة، تباين AA
   ========================================================== */
:root {
  color-scheme: light;
  --bg: #f6f5f2;
  --bg-tint: #ecebe7;
  --surface: #ffffff;
  --ink: #15161a;
  --ink-2: #43454b;
  --ink-3: #5f6269;
  --line: #dedcd6;
  --line-strong: #c7c4bb;
  --green: #1b1c20;
  --green-600: #2d2f35;
  --green-ink: var(--green);
  --deep: #17181c;
  --deep-2: #1e2025;
  --deep-900: #0c0c0e;
  --gold: #c19a3f;
  --gold-ink: #7a5c1e;
  --gold-light: #ecd391;
  --on-dark: #f3f2ee;
  --on-dark-2: #c9cacd;
  --on-dark-line: rgba(243, 241, 234, .16);
  --wa: #1f7a4d;
  --danger: #a3392a;
  --ok: #2f6f48;

  --r-sm: 4px;
  --r: 8px;
  --r-lg: 14px;
  --shadow: 0 18px 50px -24px rgba(10, 10, 12, .35);
  --shadow-lg: 0 40px 90px -40px rgba(10, 10, 12, .55);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --display: 'Noto Kufi Arabic', 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --body: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16.5px; line-height: 1.85; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.35; text-wrap: balance; font-weight: 700; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 3000; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }
.scroll-progress { position: fixed; top: 0; inset-inline: 0; height: 2px; z-index: 1200; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transform-origin: right; transform: scaleX(0); }

/* ---------- أقسام ---------- */
.section { padding-block: clamp(72px, 9vw, 120px); }
.section--tight { padding-block: 56px; }
.section--tint { background: var(--bg-tint); }
.section--deep { background: var(--deep); color: var(--on-dark); }
.section--deep .title, .section--deep h3, .section--deep h4 { color: #fff; }
.section--deep .lede { color: var(--on-dark-2); }
.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.head--split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem 3rem; flex-wrap: wrap; }
.head--split > div:first-child { max-width: 720px; }
.kicker { display: inline-flex; align-items: center; gap: .7rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: var(--green-ink); margin-bottom: 1rem; }
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--gold); transform-origin: right; transition: transform .9s var(--ease); }
.kicker--light { color: var(--gold-light); }
.kicker--center { display: flex; justify-content: center; }
.title { font-size: clamp(1.65rem, 3.3vw, 2.5rem); color: var(--ink); margin-bottom: .9rem; }
.lede { color: var(--ink-2); font-size: 1.05rem; max-width: 62ch; }
.note { margin-top: 1.4rem; font-size: .85rem; color: var(--ink-3); }

/* ---------- أزرار ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .75rem 1.6rem; border-radius: var(--r-sm); border: 1.5px solid transparent; font-weight: 700; font-size: .95rem; cursor: pointer; transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s; white-space: nowrap; }
.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(-4px); }
.btn:active { transform: translateY(1px); }
.btn--gold { background: linear-gradient(135deg, #c9a24e, #e2c275); color: var(--deep-900); box-shadow: 0 12px 30px -14px rgba(176, 141, 60, .8); }
.btn--gold:hover { box-shadow: 0 16px 40px -14px rgba(176, 141, 60, .95); transform: translateY(-2px); }
.btn--dark { background: var(--deep); color: #fff; }
.btn--dark:hover { background: var(--deep-900); }
.btn--outline { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn--outline:hover { border-color: var(--green); color: var(--green-ink); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--deep); border-color: #fff; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #185f3c; }
.btn--sm { min-height: 40px; padding: .45rem 1rem; font-size: .86rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link { color: var(--green-ink); font-weight: 700; display: inline-flex; gap: .4rem; align-items: center; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- الهيدر ---------- */
.header { --header-bg: rgba(246, 245, 242, .96); position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--header-h); display: flex; align-items: center; transition: background .35s, box-shadow .35s, height .35s; background: var(--header-bg); box-shadow: 0 1px 0 var(--line); backdrop-filter: saturate(1.4) blur(14px); color: var(--ink); }
.header.is-overlay { background: transparent; box-shadow: none; backdrop-filter: none; color: #fff; }
.header.is-compact { height: 64px; }
.header__row { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.brand { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.brand__mark { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border: 1.5px solid currentColor; border-radius: var(--r-sm); overflow: hidden; }
.brand__mark img { width: 100%; height: 100%; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
.brand__tag { font-size: .68rem; opacity: .75; letter-spacing: .04em; }
.nav__list { display: flex; gap: clamp(.9rem, 1.6vw, 1.6rem); }
.nav__list a { font-weight: 600; font-size: .9rem; padding: .35rem 0; border-bottom: 2px solid transparent; transition: border-color .3s, color .3s; opacity: .88; }
.nav__list a:hover, .nav__list a.is-active { opacity: 1; border-color: var(--gold); }
.header__actions { display: flex; align-items: center; gap: .6rem; }
.burger { display: none; width: 44px; height: 44px; border: 1.5px solid currentColor; border-radius: var(--r-sm); background: none; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 20px; height: 2px; background: currentColor; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- الهيرو ---------- */
.hero { position: relative; background: var(--deep-900); color: #fff; padding-top: calc(var(--header-h) + clamp(48px, 8vw, 110px)); overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media canvas, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media img { transform: scale(1.06); transition: transform 1.6s var(--ease); }
.hero.is-loaded .hero__media img { transform: scale(1); }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 70% at 85% 10%, rgba(193, 154, 63, .22), transparent 60%), linear-gradient(180deg, rgba(10, 10, 12, .35) 0%, rgba(10, 10, 12, .15) 40%, rgba(10, 10, 12, .92) 100%), linear-gradient(270deg, rgba(10, 10, 12, .85) 0%, rgba(10, 10, 12, .35) 70%); }
.hero__shade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(226, 194, 117, .12) 50%, transparent 100%); height: 30%; animation: scan 9s linear infinite; }
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(420%); } }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .75fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: .6rem; padding: .4rem 1rem; border: 1px solid rgba(255, 255, 255, .28); border-radius: 100px; font-size: .82rem; color: #e9e4cf; margin-bottom: 1.6rem; backdrop-filter: blur(6px); background: rgba(10, 10, 12, .25); }
.hero__eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #e8cd8a; box-shadow: 0 0 0 0 rgba(232, 205, 138, .6); animation: ping 2.2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(232, 205, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(232, 205, 138, 0); } }
.hero__title { font-size: clamp(2.05rem, 5vw, 3.7rem); line-height: 1.25; color: #fff; margin-bottom: 1.3rem; max-width: 18ch; }
.hero__title mark { background: none; color: var(--gold-light); position: relative; white-space: nowrap; }
.hero__title mark::after { content: ""; position: absolute; inset-inline: 0; bottom: .05em; height: .1em; background: rgba(226, 194, 117, .35); transform-origin: right; animation: underline 1.2s .5s var(--ease) both; }
@keyframes underline { from { transform: scaleX(0); } }
.hero__lede { font-size: clamp(1rem, 1.4vw, 1.14rem); color: rgba(243, 241, 234, .86); max-width: 58ch; margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__panel { background: rgba(10, 10, 12, .55); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r); padding: 1.4rem 1.5rem; backdrop-filter: blur(12px); }
.hero__panel-title { font-family: var(--display); font-weight: 700; color: var(--gold-light); margin-bottom: .6rem; font-size: .95rem; }
.hero__panel-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .62rem 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; color: var(--on-dark); }
.hero__panel-list b { font-weight: 600; color: var(--gold-light); font-size: .8rem; }
.hero__panel-foot { font-size: .72rem; color: rgba(243, 241, 234, .55); margin-top: .5rem; }
.hero__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-top: clamp(48px, 7vw, 90px); border-top: 1px solid rgba(255, 255, 255, .16); }
.stat { padding: 1.6rem 1.2rem 1.8rem 0; border-inline-end: 1px solid rgba(255, 255, 255, .12); }
.stat:last-child { border-inline-end: none; }
.stat b { display: block; font-family: var(--display); font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: .85rem; color: rgba(243, 241, 234, .72); display: block; margin-top: .4rem; max-width: 24ch; }

/* ---------- شريط القطاعات ---------- */
.sectors { background: var(--deep-2); color: var(--on-dark); overflow: hidden; border-top: 1px solid rgba(255, 255, 255, .06); }
.sectors__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.sectors:hover .sectors__track { animation-play-state: paused; }
.sectors__item { display: flex; align-items: center; gap: 1.2rem; padding: 1.15rem 1.6rem; white-space: nowrap; font-weight: 600; font-size: .95rem; }
.sectors__item::after { content: "◆"; color: var(--gold); font-size: .6rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ---------- من نحن ---------- */
.about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about__media { position: relative; aspect-ratio: 4 / 4.6; border-radius: var(--r); }
.about__media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold); border-radius: var(--r); z-index: 0; }
.about__frame { position: absolute; inset: 0; border-radius: var(--r); overflow: hidden; z-index: 1; box-shadow: var(--shadow-lg); }
.about__frame > img, .about__frame > svg { width: 100%; height: 100%; object-fit: cover; }
.about__badge { position: absolute; z-index: 2; bottom: 28px; right: -22px; background: var(--deep); color: #fff; padding: 1.1rem 1.4rem; border-radius: var(--r-sm); box-shadow: var(--shadow); max-width: 220px; }
.about__badge b { display: block; font-family: var(--display); font-size: 1.5rem; color: var(--gold-light); }
.about__badge span { font-size: .8rem; color: var(--on-dark-2); }
.timeline { margin-top: 2rem; border-inline-start: 1px solid var(--line-strong); }
.timeline li { position: relative; padding: 0 1.6rem 1.4rem 0; }
.timeline li::before { content: ""; position: absolute; right: -6px; top: .55em; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--gold); }
.timeline b { font-family: var(--display); color: var(--green-ink); display: block; }
.timeline p { color: var(--ink-2); font-size: .95rem; }

/* ---------- كلمة الرئيس التنفيذي ---------- */
.ceo { position: relative; overflow: hidden; }
.ceo::before { content: "”"; position: absolute; top: -.2em; left: 4%; font-family: Georgia, serif; font-size: 22rem; line-height: 1; color: rgba(226, 194, 117, .07); pointer-events: none; }
.ceo__grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; position: relative; }
.ceo__photo { aspect-ratio: 4 / 5; border-radius: 200px 200px var(--r) var(--r); overflow: hidden; border: 1px solid rgba(226, 194, 117, .45); padding: 10px; }
.ceo__photo > * { width: 100%; height: 100%; object-fit: cover; border-radius: 190px 190px 6px 6px; display: block; }
.ceo__quote { font-family: var(--display); font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.55; color: #fff; margin-bottom: 1.6rem; }
.ceo__message p { color: var(--on-dark-2); margin-bottom: 1rem; max-width: 64ch; }
.ceo__sign { margin-top: 1.6rem; display: flex; flex-direction: column; border-inline-start: 2px solid var(--gold); padding-inline-start: 1rem; }
.ceo__sign b { font-family: var(--display); color: #fff; font-size: 1.1rem; }
.ceo__sign span { color: var(--gold-light); font-size: .88rem; }

/* ---------- الخدمات ---------- */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; }
.svc { border-top: 1px solid var(--line-strong); }
.svc__head { width: 100%; display: grid; grid-template-columns: 48px minmax(0, 1fr) 28px; gap: 1rem; align-items: start; padding: 1.6rem 0; background: none; border: 0; text-align: start; cursor: pointer; }
.svc__icon { width: 48px; height: 48px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--surface); color: var(--green-ink); border: 1px solid var(--line); transition: background .35s, color .35s, transform .35s var(--ease); }
.svc__head:hover .svc__icon, .svc.is-open .svc__icon { background: var(--deep); color: var(--gold-light); transform: rotate(-6deg); }
.svc h3 { font-size: 1.12rem; margin-bottom: .3rem; color: var(--ink); }
.svc__desc { color: var(--ink-2); font-size: .94rem; }
.svc__toggle { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform .35s var(--ease), background .3s; margin-top: .3rem; color: var(--green-ink); }
.svc.is-open .svc__toggle { transform: rotate(45deg); background: var(--gold-light); border-color: var(--gold-light); color: var(--deep-900); }
.svc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.svc.is-open .svc__panel { grid-template-rows: 1fr; }
.svc__inner { overflow: hidden; }
.svc__body { padding: 0 64px 1.6rem 0; display: grid; gap: 1rem; }
.svc__body ul { display: grid; gap: .5rem; }
.svc__body li { position: relative; padding-inline-start: 1.2rem; font-size: .93rem; color: var(--ink-2); }
.svc__body li::before { content: ""; position: absolute; right: 0; top: .72em; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.svc__img { border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 16 / 7; }
.svc__img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- خطوات العمل ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 27px; inset-inline: 28px; height: 2px; background: var(--line); }
.steps::after { content: ""; position: absolute; top: 27px; right: 28px; left: 28px; height: 2px; background: linear-gradient(270deg, var(--gold), var(--green)); transform-origin: right; transform: scaleX(0); transition: transform 1.6s var(--ease); }
.steps.is-in::after { transform: scaleX(1); }
.step { position: relative; }
.step__num { width: 56px; height: 56px; border-radius: 50%; background: var(--bg); border: 2px solid var(--gold); display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--gold-ink); margin-bottom: 1.1rem; position: relative; z-index: 1; transition: background .3s, color .3s; }
.step:hover .step__num { background: var(--deep); color: var(--gold-light); }
.step h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.step p { font-size: .9rem; color: var(--ink-2); }
.step__time { display: inline-block; margin-top: .6rem; font-size: .76rem; font-weight: 700; color: var(--green-ink); background: rgba(193, 154, 63, .1); padding: .15rem .6rem; border-radius: 100px; }

/* ---------- المشروعات ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { border: 1px solid var(--line-strong); background: var(--surface); padding: .45rem 1rem; border-radius: 100px; font-size: .85rem; font-weight: 600; cursor: pointer; color: var(--ink-2); transition: all .25s; }
.chip:hover { border-color: var(--green); color: var(--green-ink); }
.chip[aria-selected="true"] { background: var(--deep); color: #fff; border-color: var(--deep); }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.project { background: var(--surface); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); cursor: pointer; display: flex; flex-direction: column; text-align: start; padding: 0; transition: transform .45s var(--ease), box-shadow .45s; }
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project__media { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.project__media > img, .project__media > svg { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.project:hover .project__media > img, .project:hover .project__media > svg { transform: scale(1.07); }
.project__body { padding: 1.2rem 1.3rem 1.4rem; display: grid; gap: .35rem; }
.project__tag { font-size: .75rem; font-weight: 700; color: var(--gold-ink); letter-spacing: .03em; }
.project h3 { font-size: 1.05rem; }
.project__meta { font-size: .82rem; color: var(--ink-3); }
.badge-sample { position: absolute; top: .8rem; right: .8rem; background: rgba(255, 255, 255, .92); color: var(--gold-ink); font-size: .7rem; font-weight: 700; padding: .2rem .6rem; border-radius: 100px; border: 1px solid var(--gold); }
.badge-sample--inline { position: static; display: inline-block; margin-inline-start: .4rem; }
.empty { border: 1.5px dashed var(--line-strong); border-radius: var(--r); padding: 2rem; text-align: center; color: var(--ink-3); grid-column: 1 / -1; }

/* ---------- التراخيص ---------- */
.licenses { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.license { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; display: flex; flex-direction: column; gap: .7rem; position: relative; transition: border-color .3s, transform .45s var(--ease); cursor: pointer; text-align: start; }
.license:hover { border-color: var(--gold); transform: translateY(-4px); }
.license__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-tint); color: var(--green-ink); border: 1px solid var(--line); overflow: hidden; }
.license__icon img { width: 100%; height: 100%; object-fit: cover; }
.license h3 { font-size: 1rem; }
.license__issuer { font-size: .85rem; color: var(--ink-2); }
.license dl { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; font-size: .8rem; margin-top: auto; padding-top: .7rem; border-top: 1px dashed var(--line); }
.license dt { color: var(--ink-3); }
.license dd { color: var(--ink); font-weight: 600; }
.license .badge-sample { top: 1rem; right: auto; left: 1rem; }

/* ---------- لماذا نحن ---------- */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border-top: 1px solid var(--on-dark-line); }
.why__item { padding: 1.8rem 1.4rem 1.8rem 1.6rem; border-inline-end: 1px solid var(--on-dark-line); transition: background .35s; }
.why__item:last-child { border-inline-end: none; }
.why__item:hover { background: rgba(0, 0, 0, .28); }
.why__num { font-family: var(--display); color: var(--gold-light); font-size: .85rem; margin-bottom: 1rem; display: block; }
.why__item h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.why__item p { font-size: .9rem; color: var(--on-dark-2); }

/* ---------- المعرفة ---------- */
.tabs { display: inline-flex; background: var(--bg-tint); border-radius: 100px; padding: 4px; border: 1px solid var(--line); }
.tab { border: 0; background: none; padding: .5rem 1.2rem; border-radius: 100px; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--ink-2); }
.tab.is-active { background: var(--deep); color: #fff; }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.post { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s; }
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post--featured { grid-column: span 2; flex-direction: row; }
.post--featured .post__media { aspect-ratio: auto; flex: 1 1 50%; min-height: 100%; }
.post--featured .post__body { flex: 1 1 50%; justify-content: center; }
.post--featured h3 { font-size: 1.35rem; }
.post__media { aspect-ratio: 16 / 9; overflow: hidden; }
.post__media > img, .post__media > svg { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.post:hover .post__media > img, .post:hover .post__media > svg { transform: scale(1.06); }
.post__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post__cat { font-size: .75rem; font-weight: 700; color: var(--gold-ink); }
.post h3 { font-size: 1.05rem; line-height: 1.55; }
.post p { font-size: .9rem; color: var(--ink-2); }
.post__meta { margin-top: auto; padding-top: .6rem; font-size: .78rem; color: var(--ink-3); display: flex; gap: .8rem; }
.laws { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.law { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.law__tag { font-size: .75rem; font-weight: 700; color: var(--green-ink); background: rgba(193, 154, 63, .1); padding: .2rem .7rem; border-radius: 100px; justify-self: start; }
.law h3 { font-size: 1.05rem; }
.law__ref { font-size: .82rem; color: var(--gold-ink); font-weight: 600; margin: .15rem 0 .4rem; }
.law p { font-size: .92rem; color: var(--ink-2); max-width: 70ch; }

/* ---------- الفريق ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.6rem; }
.member { background: var(--surface); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.member__photo { aspect-ratio: 1; overflow: hidden; position: relative; }
.member__photo > img, .member__photo > svg { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.member:hover .member__photo > img, .member:hover .member__photo > svg { transform: scale(1.05); }
.member__body { padding: 1.1rem 1.2rem 1.3rem; }
.member h3 { font-size: 1.02rem; }
.member__role { color: var(--gold-ink); font-weight: 700; font-size: .85rem; }
.member p { font-size: .88rem; color: var(--ink-2); margin-top: .4rem; }
.member__ln { display: inline-flex; margin-top: .6rem; font-size: .82rem; color: var(--green-ink); font-weight: 700; }

/* ---------- العملاء ---------- */
.clients { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem 3rem; align-items: center; }
.client { height: 48px; display: flex; align-items: center; opacity: .7; filter: grayscale(1); transition: opacity .3s, filter .3s; font-family: var(--display); font-weight: 700; color: var(--ink-2); }
.client:hover { opacity: 1; filter: none; }
.client img { max-height: 48px; width: auto; }

/* ---------- الأسئلة الشائعة ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem; align-items: start; }
.faq-item { border-top: 1px solid var(--line-strong); }
.faq-item:last-child { border-bottom: 1px solid var(--line-strong); }
.faq-q { width: 100%; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.25rem 0; background: none; border: 0; cursor: pointer; text-align: start; font-weight: 700; font-size: 1rem; color: var(--ink); }
.faq-q svg { flex-shrink: 0; color: var(--green-ink); transition: transform .35s var(--ease); }
.faq-item.is-open .faq-q svg { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding-bottom: 1.3rem; color: var(--ink-2); font-size: .95rem; max-width: 64ch; }

/* ---------- التواصل ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact__list { margin-top: 1.8rem; display: grid; }
.contact__list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; padding: .95rem 0; border-top: 1px solid var(--on-dark-line); }
.contact__label { width: 100%; font-size: .78rem; color: var(--on-dark-2); }
.copy { border: 1px solid rgba(255, 255, 255, .3); background: none; color: var(--on-dark); font-size: .72rem; padding: .1rem .6rem; border-radius: 100px; cursor: pointer; }
.copy:hover { border-color: var(--gold-light); color: var(--gold-light); }
.maplink { display: inline-block; margin-top: 1.4rem; color: var(--gold-light); font-weight: 700; }
.maplink:hover { text-decoration: underline; text-underline-offset: 4px; }
.socials { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.social { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--on-dark-line); color: var(--on-dark); transition: all .3s; }
a.social:hover { background: var(--gold-light); color: var(--deep-900); border-color: var(--gold-light); transform: translateY(-3px); }
.social.is-empty { opacity: .35; cursor: default; }
.form { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--shadow-lg); }
.section--deep .form__title, .form__title { font-size: 1.3rem; color: var(--ink); }
.form__hint { font-size: .85rem; color: var(--ink-3); margin-bottom: 1.4rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.45rem; position: relative; }
.field > span { font-size: .83rem; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; padding: .8rem 1rem; border: 1.4px solid var(--line-strong); border-radius: var(--r-sm); background: var(--bg); transition: border-color .25s, background .25s, box-shadow .25s; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(193, 154, 63, .16); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); }
.field__err { position: absolute; top: 100%; inset-inline-start: 0; margin-top: .15rem; font-size: .76rem; line-height: 1.3; color: var(--danger); }
.counter { position: absolute; top: 100%; inset-inline-end: 0; margin-top: .15rem; font-size: .72rem; color: var(--ink-3); }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form .btn + .btn { margin-top: .7rem; }
.form__alert { border-radius: var(--r-sm); padding: .9rem 1.1rem; font-size: .9rem; font-weight: 600; margin-bottom: 1rem; }
.form__alert.is-ok { background: #e7f2ea; color: #1e4d31; border: 1px solid var(--ok); }
.form__alert.is-err { background: #f8e8e4; color: #6e2317; border: 1px solid var(--danger); }

/* ---------- الفوتر ---------- */
.footer { background: var(--deep-900); color: var(--on-dark-2); padding-top: 72px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 2.5rem; padding-bottom: 2.6rem; border-bottom: 1px solid var(--on-dark-line); }
.brand--light { color: #fff; }
.footer__about { margin-top: 1rem; font-size: .9rem; max-width: 32ch; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer ul { display: grid; gap: .55rem; font-size: .9rem; }
.footer ul a:hover { color: var(--gold-light); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; padding-block: 1.3rem; font-size: .8rem; }
.footer__admin { color: rgba(243, 241, 234, .55); }
.footer__admin:hover { color: var(--gold-light); }

/* ---------- عناصر عائمة ---------- */
.wa-float { position: fixed; bottom: 22px; left: 22px; z-index: 900; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(15, 60, 40, .6); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.06); }
.wa-float__tip { position: absolute; left: 68px; white-space: nowrap; background: var(--surface); color: var(--ink); font-size: .82rem; font-weight: 700; padding: .45rem .9rem; border-radius: 100px; box-shadow: var(--shadow); opacity: 0; transform: translateX(-6px); transition: all .3s; pointer-events: none; }
.wa-float:hover .wa-float__tip, .wa-float:focus-visible .wa-float__tip { opacity: 1; transform: none; }
.to-top { position: fixed; bottom: 26px; right: 22px; z-index: 900; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--surface); color: var(--deep); display: grid; place-items: center; box-shadow: var(--shadow); cursor: pointer; opacity: 0; transform: translateY(12px); transition: all .35s var(--ease); pointer-events: none; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); z-index: 4000; background: var(--ink); color: #fff; padding: .7rem 1.3rem; border-radius: var(--r-sm); font-size: .9rem; opacity: 0; transition: all .3s; pointer-events: none; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast[data-kind="err"] { background: var(--danger); }

/* ---------- الـ Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 2500; background: rgba(8, 8, 10, .9); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 16px; }
.lb__card { background: var(--surface); border-radius: var(--r-lg); width: min(880px, 100%); max-height: calc(100vh - 32px); overflow: auto; display: grid; grid-template-columns: 1.1fr 1fr; animation: lbIn .45s var(--ease); }
@keyframes lbIn { from { transform: translateY(18px) scale(.98); opacity: .4; } }
.lb__media { min-height: 320px; background: var(--deep); }
.lb__media > img, .lb__media > svg { width: 100%; height: 100%; object-fit: cover; }
.lb__body { padding: 1.8rem; display: grid; gap: .8rem; align-content: start; }
.lb__body dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; font-size: .9rem; }
.lb__body dt { color: var(--ink-3); }
.lb__nav { display: flex; gap: .5rem; margin-top: .6rem; }
.lb__close { position: fixed; top: 18px; left: 18px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(0, 0, 0, .2); color: #fff; font-size: 1.1rem; cursor: pointer; }

/* ---------- المقال ---------- */
.article-page { padding-top: calc(var(--header-h) + 48px); }
.article { max-width: 780px; margin-inline: auto; }
.article__back { margin-bottom: 1.6rem; }
.article__cover { aspect-ratio: 16 / 8; border-radius: var(--r); overflow: hidden; margin-bottom: 2rem; }
.article__cover > img, .article__cover > svg { width: 100%; height: 100%; object-fit: cover; }
.article__cat { font-size: .8rem; font-weight: 700; color: var(--gold-ink); }
.article h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: .4rem 0 1rem; }
.article__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .85rem; color: var(--ink-3); padding-bottom: 1.3rem; margin-bottom: 1.8rem; border-bottom: 1px solid var(--line); }
.prose { font-size: 1.06rem; color: var(--ink-2); line-height: 2; }
.prose h2 { font-size: 1.4rem; color: var(--ink); margin: 2rem 0 .8rem; }
.prose h3 { font-size: 1.12rem; color: var(--ink); margin: 1.4rem 0 .5rem; }
.prose p { margin-bottom: 1.05rem; }
.prose ul, .prose ol { margin: .8rem 0 1.3rem; display: grid; gap: .45rem; }
.prose li { position: relative; padding-inline-start: 1.3rem; }
.prose li::before { content: ""; position: absolute; right: 0; top: .85em; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.prose blockquote { margin: 1.6rem 0; padding: 1.2rem 1.5rem; background: var(--bg-tint); border-inline-start: 3px solid var(--gold); font-family: var(--display); color: var(--ink); font-size: 1.08rem; }
.prose a { color: var(--green-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose small { color: var(--ink-3); font-size: .85rem; }
.sources { margin-top: 2.2rem; padding: 1.3rem 1.5rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.sources h2 { font-size: 1rem; margin-bottom: .6rem; }
.sources li { font-size: .88rem; padding: .3rem 0; }
.sources a { color: var(--green-ink); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.article__cta { margin-top: 2.2rem; padding: 1.6rem; border-radius: var(--r); background: var(--deep); color: #fff; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.article__cta h3 { color: #fff; font-size: 1.1rem; }
.article__cta p { color: var(--on-dark-2); font-size: .9rem; }

/* ---------- حركة (لا تُخفي المحتوى أبدًا) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rv { transform: translateY(18px); transition: transform .9s var(--ease); }
  .rv.is-in { transform: none; }
  .rv-img .about__frame { clip-path: inset(0 0 0 0); }
  .kicker.rv::before { transform: scaleX(.2); }
  .kicker.rv.is-in::before { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- الاستجابة ---------- */
@media (max-width: 1180px) {
  .burger { display: flex; }
  .nav { position: fixed; top: 0; inset-inline: 0; background: var(--bg); color: var(--ink); padding: calc(var(--header-h) + 8px) var(--gutter) 1.6rem; transform: translateY(-105%); transition: transform .45s var(--ease); box-shadow: var(--shadow-lg); z-index: -1; max-height: 100vh; overflow: auto; }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; padding: .95rem 0; border-bottom: 1px solid var(--line); opacity: 1; }
  .header.menu-open { background: var(--bg); color: var(--ink); }
}
@media (max-width: 1024px) {
  .hero__inner, .about, .ceo__grid, .contact__grid, .faq-wrap { grid-template-columns: 1fr; }
  .hero__panel { max-width: 460px; }
  .projects, .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post--featured { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .about__media { max-width: 520px; }
  .ceo__photo { max-width: 340px; }
  .lb__card { grid-template-columns: 1fr; }
  .lb__media { min-height: 220px; aspect-ratio: 16 / 9; }
}
@media (max-width: 760px) {
  .services { grid-template-columns: 1fr; }
  .law { grid-template-columns: 1fr; gap: .5rem; }
  .steps::before, .steps::after { display: none; }
}
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  body { font-size: 16px; }
  .brand__tag { display: none; }
  .header__actions .btn--wa span { display: none; }
  .header__actions .btn--wa { padding: .45rem .7rem; }
  .projects, .posts, .form__row, .footer__grid { grid-template-columns: 1fr; }
  .post--featured { flex-direction: column; }
  .post--featured .post__media { aspect-ratio: 16 / 9; }
  .stat { border-inline-end: none; border-bottom: 1px solid rgba(255, 255, 255, .1); padding: 1.1rem 0; }
  .about__badge { right: 8px; bottom: 12px; }
  .about__media::before { inset: 10px -8px -10px 10px; }
  .svc__body { padding-inline-start: 0; }
  .hero__title { max-width: none; }
  .wa-float { width: 52px; height: 52px; bottom: 16px; left: 16px; }
  .to-top { bottom: 18px; right: 16px; }
}


/* ==========================================================
   الوضع الداكن — ألوان محسوبة (تباين AA) وليست قلبًا للألوان
   يتبع تفضيل النظام ما لم يختر الزائر يدويًا
   ========================================================== */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0d0f; --bg-tint: #131316; --surface: #19191d;
  --ink: #f1f0ec; --ink-2: #c8c8cc; --ink-3: #9d9ea3;
  --line: #2a2a2f; --line-strong: #3a3a41;
  --green: #3b3d45; --green-600: #4a4c55; --green-ink: #e8cd8a;
  --deep: #1a1b20; --deep-2: #15161a;
  --gold: #d4aa4e; --gold-ink: #e8cd8a;
  --shadow: 0 18px 50px -24px rgba(0, 0, 0, .7); --shadow-lg: 0 40px 90px -40px rgba(0, 0, 0, .85);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d0d0f; --bg-tint: #131316; --surface: #19191d;
    --ink: #f1f0ec; --ink-2: #c8c8cc; --ink-3: #9d9ea3;
    --line: #2a2a2f; --line-strong: #3a3a41;
    --green: #3b3d45; --green-600: #4a4c55; --green-ink: #e8cd8a;
    --deep: #1a1b20; --deep-2: #15161a;
    --gold: #d4aa4e; --gold-ink: #e8cd8a;
    --shadow: 0 18px 50px -24px rgba(0, 0, 0, .7); --shadow-lg: 0 40px 90px -40px rgba(0, 0, 0, .85);
  }
}
:root[data-theme="dark"] .field input:focus, :root[data-theme="dark"] .field select:focus, :root[data-theme="dark"] .field textarea:focus { background: var(--bg-tint); }
:root[data-theme="dark"] .badge-sample { background: rgba(13, 13, 15, .9); }

/* لوحة التحكم تبقى فاتحة دائمًا (قراءة وتحرير مريح) */
#adminRoot {
  color-scheme: light;
  --bg: #f6f5f2; --bg-tint: #ecebe7; --surface: #ffffff;
  --ink: #15161a; --ink-2: #43454b; --ink-3: #5f6269;
  --line: #dedcd6; --line-strong: #c7c4bb;
  --green: #1b1c20; --green-600: #2d2f35; --green-ink: #1b1c20;
  --deep: #17181c; --gold: #c19a3f; --gold-ink: #7a5c1e;
}

/* زر الوضع الداكن */
.theme-toggle { width: 44px; height: 44px; border: 1.5px solid currentColor; border-radius: var(--r-sm); background: none; color: inherit; font-size: 1.05rem; cursor: pointer; display: grid; place-items: center; transition: background .3s, color .3s; }
.theme-toggle:hover { background: rgba(127, 127, 127, .18); }
.draft-note { background: var(--bg-tint); border: 1px dashed var(--gold); color: var(--gold-ink); padding: .5rem .9rem; border-radius: var(--r-sm); font-weight: 700; font-size: .88rem; }
@media (max-width: 960px) { .theme-toggle { width: 40px; height: 40px; } }

:root[data-theme="dark"] .header { --header-bg: rgba(13, 13, 15, .94); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .header { --header-bg: rgba(13, 13, 15, .94); } }

/* ==========================================================
   الهوية: أسود متدرج للرمادي + ذهبي
   ========================================================== */
.hero { background-color: #121316; background-image: linear-gradient(155deg, #050506 0%, #121316 36%, #26282d 76%, #3a3c42 100%); }
.section--deep { background-color: #1b1c20; background-image: linear-gradient(160deg, #0f1012 0%, #1b1c20 55%, #2b2d32 100%); }
.sectors { background-color: #1e2025; background-image: linear-gradient(90deg, #15161a, #26282c); }
.footer { background-color: #0c0c0e; background-image: linear-gradient(180deg, #101113, #050506); }
.about__badge, .article__cta { background-color: #1e2025; background-image: linear-gradient(135deg, #131417, #2f3136); border-top: 2px solid var(--gold); }
.btn--gold { background: linear-gradient(135deg, #e8cd8a, #c19a3f); color: #15161a; }
.btn--gold:hover { background: linear-gradient(135deg, #f2dca0, #d1aa4d); }
.header.is-overlay { background: linear-gradient(180deg, rgba(5, 5, 6, .55), transparent); }
:root[data-theme="dark"] .section--deep { background-color: #202125; background-image: linear-gradient(160deg, #141518 0%, #202125 55%, #2e3035 100%); }

/* ===== شعار الشركة + شارات الثقة + المؤسِّسة + الفوتر الرسمي ===== */
.brand__mark--logo { background: #0b0b0d; border-color: rgba(226, 194, 117, .55); padding: 3px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; list-style: none; padding: 0; }
.hero__badges li { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border: 1px solid rgba(226, 194, 117, .4); border-radius: 100px; font-size: .78rem; color: var(--gold-light); background: rgba(10, 10, 12, .45); backdrop-filter: blur(6px); }
.hero__badges svg { flex-shrink: 0; }

.trust { background: #0c0c0e; border-block: 1px solid rgba(226, 194, 117, .25); }
.trust__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2.2rem; padding-block: 1rem; list-style: none; }
.trust__list li { display: inline-flex; align-items: center; gap: .55rem; font-size: .86rem; color: #e9e4cf; }
.trust__list svg { color: var(--gold-light); flex-shrink: 0; }

.ceo__sign small { color: rgba(243, 241, 234, .6); font-size: .74rem; margin-top: .25rem; }
.founder { position: relative; display: grid; grid-template-columns: auto 1fr 1fr; gap: 2rem clamp(1.5rem, 4vw, 3.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid rgba(226, 194, 117, .3); }
.founder[hidden] { display: none; }
.founder__exp { display: flex; flex-direction: column; align-items: center; justify-content: center; padding-inline: 1rem; }
.founder__exp b { font-family: var(--display); font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1; color: var(--gold-light); }
.founder__exp span { font-size: .85rem; color: var(--on-dark-2); margin-top: .4rem; text-align: center; }
.founder h3 { font-size: .95rem; color: var(--gold-light); margin-bottom: .8rem; }
.founder__col--wide { grid-column: 1 / -1; }
.founder__list { display: grid; gap: .55rem; list-style: none; padding: 0; }
.founder__list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--on-dark-2); }
.founder__list svg { color: var(--gold-light); margin-top: .3em; flex-shrink: 0; }
.founder__jobs { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .9rem; list-style: none; padding: 0; counter-reset: job; }
.founder__jobs li { display: flex; flex-direction: column; gap: .15rem; padding: .9rem 1rem; border: 1px solid rgba(226, 194, 117, .22); border-radius: var(--r-sm); background: rgba(0, 0, 0, .28); }
.founder__jobs b { color: #fff; font-size: .92rem; }
.founder__jobs span { color: var(--on-dark-2); font-size: .82rem; }
.founder__jobs em { color: var(--gold-light); font-size: .76rem; font-style: normal; }

.footer__lockup { display: inline-block; }
.footer__lockup[hidden], .footer .brand[hidden] { display: none; }
.footer__lockup img { height: 112px; width: auto; display: block; }
.footer__en { margin-top: .5rem; font-size: .72rem; color: rgba(243, 241, 234, .55); max-width: 36ch; }
.footer__legal { display: flex; flex-wrap: wrap; gap: .4rem 1.8rem; padding-block: 1rem; font-size: .8rem; color: var(--on-dark-2); border-bottom: 1px solid var(--on-dark-line); }
.footer__legal[hidden] { display: none; }
@media (max-width: 900px) { .founder { grid-template-columns: 1fr; } .founder__exp { align-items: flex-start; padding: 0; } }
.footer li.ltr { text-align: right; }
.founder__jobs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .founder__jobs { grid-template-columns: 1fr; } }
.founder__jobs li > * { overflow-wrap: anywhere; }
.stat b.ltr, .about__badge b.ltr { text-align: right; }

/* صور المقالات والمشروعات المرفوعة (إنفوجرافيك وغيره) تُعرض كاملة بلا قصّ */
.post__media > img, .project__media > img, .lb__media > img { object-fit: contain; background: #0c0c0e; transform: none !important; }
.post__media, .project__media { background: #0c0c0e; }
.post--featured .post__media { min-height: 0; align-self: stretch; }
.article__cover { aspect-ratio: auto; background: #0c0c0e; line-height: 0; }
.article__cover > img { height: auto; max-height: none; object-fit: contain; display: block; }
.article__cover > svg { aspect-ratio: 16 / 8; height: auto; }
.lb__media > img { height: auto; max-height: 80vh; }
.post--featured .post__media { position: relative; min-height: 300px; }
.post--featured .post__media > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.article__cover > img { width: auto; max-width: 100%; max-height: 85vh; margin-inline: auto; }
@media (max-width: 640px) { .post--featured .post__media { min-height: 0; } .post--featured .post__media > img { position: static; } }

/* الكارت المميّز: الصورة بنسبة الإنفوجرافيك نفسها فلا فراغات سوداء، والنص يتوسّط ارتفاعها */
.post--featured { align-self: start; align-items: stretch; }
.post--featured .post__media { flex: 1 1 56%; min-height: 0; aspect-ratio: 1.84 / 1; align-self: center; position: static; }
.post--featured .post__media > img { position: static; width: 100%; height: 100%; }
.post--featured .post__body { flex: 1 1 44%; justify-content: center; }
.post--featured .post__meta { margin-top: .8rem; }
@media (max-width: 640px) { .post--featured .post__media { aspect-ratio: 16 / 9; align-self: auto; } }
@media (min-width: 1025px) {
  .posts { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .posts .post { grid-column: span 2; }
  .posts .post--featured { grid-column: 1 / -1; align-self: stretch; }
  .posts:has(.post--featured) .post:not(.post--featured) { grid-column: span 3; }
}

/* ===== Quote wizard ===== */
.wiz{max-width:860px;margin:0 auto;background:var(--surface,#fff);border:1px solid var(--line);border-radius:20px;padding:clamp(18px,3vw,34px);box-shadow:0 12px 40px rgba(0,0,0,.08)}
.wiz__prog{display:flex;gap:8px;list-style:none;margin:0 0 24px;padding:0}
.wiz__prog li{flex:1;display:flex;align-items:center;gap:8px;font-size:.85rem;color:var(--muted,#6b6b6b);padding-bottom:10px;border-bottom:3px solid var(--line)}
.wiz__prog li b{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--line);color:var(--ink,#111);font-size:.8rem;flex:none}
.wiz__prog li.is-current{color:var(--ink,#111);border-color:var(--gold);font-weight:700}
.wiz__prog li.is-current b,.wiz__prog li.is-done b{background:var(--gold);color:#111}
.wiz__prog li.is-done{border-color:var(--gold)}
@media(max-width:640px){.wiz__prog li span{display:none}}
.wiz__opts{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin:0;padding:0;border:0}
.wiz__opts--row{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.wiz__opt{display:block;text-align:right;padding:14px 16px;border:1.5px solid var(--line);border-radius:14px;background:transparent;color:inherit;font:inherit;cursor:pointer;transition:border-color .2s,background .2s,transform .2s}
.wiz__opt:hover{border-color:var(--gold);transform:translateY(-2px)}
.wiz__opt:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.wiz__opt.is-on,.wiz__opt[aria-pressed="true"],.wiz__opt[aria-checked="true"]{border-color:var(--gold);background:rgba(201,162,39,.12)}
.wiz__fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.wiz__full{grid-column:1/-1}
@media(max-width:640px){.wiz__fields{grid-template-columns:1fr}}
.wiz__nav{display:flex;justify-content:space-between;gap:12px;margin-top:22px;flex-wrap:wrap}
.wiz__err{color:#b3261e;margin:12px 0 0;font-weight:600}
.wiz__done{text-align:center;padding:12px 0}
.wiz__sum{list-style:none;margin:16px auto;padding:14px 18px;max-width:460px;text-align:right;border:1px dashed var(--gold);border-radius:12px}

/* ===== CTA band ===== */
.ctaband{background:linear-gradient(120deg,#b8891a,#e3c15a 55%,#c9a227);color:#111;padding:clamp(40px,6vw,72px) 0;text-align:center}
.ctaband h2{color:#111;margin:0 0 10px}
.ctaband p{color:#1c1c1c;max-width:640px;margin:0 auto 22px}

/* ===== Testimonials ===== */
.testi{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}
.testi__card{margin:0;padding:22px;border:1px solid var(--line);border-radius:16px;background:var(--surface,#fff)}
.testi__card blockquote{margin:0 0 14px;line-height:1.9}
.testi__card figcaption b{display:block}
.testi__card figcaption span{color:var(--muted,#6b6b6b);font-size:.9rem}

.founder__cta{margin-top:20px}
.wiz__opt:has(input:checked){border-color:var(--gold);background:rgba(201,162,39,.14);font-weight:700}
.wiz__opt:has(input:focus-visible){outline:3px solid var(--gold);outline-offset:2px}
.wiz__opt input{position:absolute;opacity:0;width:1px;height:1px}
.wiz__opt{position:relative}
.wiz__opts legend{font-weight:700;margin-bottom:12px;padding:0}
