/*
 * قالب الموقع التعريفي «تحريري فاخر» (premium-editorial) — منتج المحاماة.
 * ملف ثابت متتبَّع في git (لا يعتمد على حزمة Tailwind المُجمَّعة).
 * RTL أولًا. الحبر من باقة الألوان المختارة (--pe-ink*) يُحقن من القالب،
 * والعاجي والبرونزي ثابتان في هوية القالب.
 */

:root {
  --pe-ink: #08121e;
  --pe-ink-2: #0e1c2d;
  --pe-ink-3: #182b41;
  --pe-ink-4: #253b57;
  --pe-ivory: #f6f1e8;
  --pe-ivory-2: #efe7da;
  --pe-paper: #fffdf9;
  --pe-bronze: #b8894a;
  --pe-bronze-2: #d0a868;
  --pe-bronze-3: #8f6632;
  --pe-text: #1a2230;
  --pe-muted: #5b6474;
  --pe-line: rgba(26, 34, 48, 0.12);
  --pe-line-light: rgba(255, 255, 255, 0.14);
  --pe-radius: 14px;
  --pe-radius-sm: 10px;
  --pe-shadow: 0 18px 50px -24px rgba(8, 18, 30, 0.35);
  --pe-wrap: 1240px;
  --pe-gutter: 32px;
  --pe-header-h: 84px;
  --pe-font: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.pe {
  margin: 0;
  font-family: var(--pe-font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--pe-text);
  background: var(--pe-ivory);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
:where(.pe) img { max-width: 100%; display: block; }
:where(.pe) a { color: inherit; text-decoration: none; }
:where(.pe) :where(h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; padding: 0; }
:where(.pe) :where(ul, ol) { list-style: none; }
:where(.pe) button { font: inherit; }
.pe :focus-visible { outline: 2px solid var(--pe-bronze-2); outline-offset: 3px; border-radius: 6px; }

.pe-wrap { width: 100%; max-width: calc(var(--pe-wrap) + var(--pe-gutter) * 2); margin-inline: auto; padding-inline: var(--pe-gutter); }
.pe-anchor { scroll-margin-top: calc(var(--pe-header-h) + 8px); }

.pe-skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--pe-paper); color: var(--pe-ink); border-radius: 8px; font-weight: 700; }
.pe-skip:focus { top: 16px; }

.pe-ico { width: 20px; height: 20px; flex: none; }
.pe-ico--md { width: 26px; height: 26px; }
.pe-ico--lg { width: 30px; height: 30px; }
.pe-ico--xl { width: 46px; height: 46px; }

/* ---------- الأزرار ---------- */
.pe-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 24px; border-radius: 8px;
  font-weight: 700; font-size: 15px; line-height: 1.3; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.pe-btn:hover { transform: translateY(-1px); }
.pe-btn--sm { min-height: 44px; padding: 8px 18px; font-size: 14px; }
.pe-btn--lg { min-height: 56px; padding: 12px 28px; font-size: 16px; }
.pe-btn--block { width: 100%; }
.pe-btn--bronze { background: linear-gradient(180deg, var(--pe-bronze-2), var(--pe-bronze)); color: #1b140a; box-shadow: 0 10px 24px -14px rgba(184, 137, 74, .9); }
.pe-btn--bronze:hover { background: linear-gradient(180deg, #dab374, var(--pe-bronze-2)); }
.pe-btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; background: rgba(255, 255, 255, .03); }
.pe-btn--ghost:hover { border-color: var(--pe-bronze-2); color: var(--pe-bronze-2); }
.pe-btn--ink { background: var(--pe-ink-2); color: #fff; }
.pe-btn--ink:hover { background: var(--pe-ink-3); }
.pe-btn .pe-ico { width: 18px; height: 18px; }

/* ---------- العناوين ---------- */
.pe-eyebrow { color: var(--pe-bronze-3); font-weight: 700; font-size: 15px; letter-spacing: 0; margin-bottom: 12px; }
.pe-eyebrow--light { color: var(--pe-bronze-2); }
.pe-eyebrow--dash::after { content: ""; display: inline-block; width: 28px; height: 1px; margin-inline-start: 10px; vertical-align: middle; background: currentColor; }
.pe-title { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.35; font-weight: 800; color: var(--pe-ink); }
.pe-title--xl { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.3; }
.pe-display { font-size: clamp(32px, 4vw, 52px); line-height: 1.2; font-weight: 900; color: var(--pe-ink); }
.pe-lead { color: var(--pe-muted); font-size: 17px; line-height: 1.9; margin-top: 12px; max-width: 60ch; }
.pe-accent { color: var(--pe-bronze-3); }
.pe-head { margin-bottom: 48px; }
.pe-head--center { text-align: center; }
.pe-head--center .pe-lead { margin-inline: auto; }
.pe-head--light .pe-title { color: #fff; }
.pe-head--light .pe-lead { color: rgba(255, 255, 255, .7); }

/* ================= الرأس ================= */
.pe-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  color: #fff;
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.pe-header.is-solid, .pe-header.is-open {
  background: var(--pe-ink);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6);
}
.pe-header__inner { display: flex; align-items: center; gap: 24px; height: var(--pe-header-h); transition: height .3s; }
.pe-header.is-solid .pe-header__inner { height: 72px; }

.pe-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pe-brand__mark { display: grid; place-items: center; width: 48px; height: 48px; color: var(--pe-bronze-2); flex: none; }
.pe-brand__logo { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: rgba(255, 255, 255, .06); }
.pe-brand__text { display: flex; flex-direction: column; min-width: 0; }
.pe-brand__name { font-weight: 800; font-size: 20px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pe-brand__sub { font-size: 12px; color: rgba(255, 255, 255, .65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 30ch; }

.pe-nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.pe-nav__link { position: relative; padding: 8px 12px; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .82); transition: color .2s; }
.pe-nav__link:hover, .pe-nav__link[aria-current="page"] { color: var(--pe-bronze-2); }
.pe-nav__link[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--pe-bronze-2); }

.pe-header__actions { display: flex; align-items: center; gap: 10px; }
.pe-burger { display: none; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--pe-line-light); background: rgba(255, 255, 255, .04); color: #fff; cursor: pointer; place-items: center; }
.pe-burger__close { display: none; }
.pe-header.is-open .pe-burger__open { display: none; }
.pe-header.is-open .pe-burger__close { display: block; }

.pe-drawer { border-top: 1px solid var(--pe-line-light); padding: 12px var(--pe-gutter) 24px; max-height: calc(100vh - 72px); overflow-y: auto; }
.pe-drawer[hidden] { display: none; }
.pe-drawer__nav { display: grid; }
.pe-drawer__nav a { padding: 14px 4px; font-size: 18px; font-weight: 700; border-bottom: 1px solid var(--pe-line-light); }
.pe-drawer__actions { display: grid; gap: 10px; margin-top: 20px; }

/* ================= Hero ================= */
.pe-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--pe-ink); color: #fff;
  padding-top: var(--pe-header-h);
}
.pe-hero__backdrop {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(760px 480px at 80% 38%, color-mix(in srgb, var(--pe-ink-4) 45%, transparent), transparent 70%),
    radial-gradient(700px 400px at 90% 110%, rgba(184, 137, 74, .16), transparent 70%),
    linear-gradient(180deg, var(--pe-ink) 0%, var(--pe-ink-2) 100%);
}
.pe-hero__backdrop::after { /* خطوط معمارية رأسية خافتة */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 120px);
  opacity: .8;
}
.pe-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: stretch; min-height: min(760px, calc(100vh - var(--pe-header-h))); }
.pe-hero__copy { align-self: center; padding-block: 56px 72px; }
.pe-hero__title { margin-top: 8px; font-size: clamp(38px, 5.2vw, 72px); line-height: 1.22; font-weight: 900; letter-spacing: 0; }
.pe-hero__line { display: block; }
.pe-hero__line.is-accent { color: var(--pe-bronze-2); }
.pe-hero__lead { margin-top: 24px; max-width: 52ch; font-size: 18px; line-height: 1.95; color: rgba(255, 255, 255, .78); }
.pe-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.pe-hero__features { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--pe-line-light); font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .8); }
.pe-hero__features li { display: inline-flex; align-items: center; gap: 8px; }
.pe-hero__features .pe-ico { color: var(--pe-bronze-2); }

.pe-hero__visual { position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: 420px; }
.pe-hero__portrait { position: absolute; inset: 0; display: block; }
.pe-hero__portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
/* تلاشي الصورة في الخلفية بطبقة تدرّج — أرخص رسمًا من mask-image على صورة كبيرة */
.pe-hero__portrait::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(0deg, var(--pe-ink-2) 0, transparent 26%),
    linear-gradient(180deg, var(--pe-ink) 0, transparent 10%),
    linear-gradient(90deg, var(--pe-ink) 0, transparent 22%, transparent 80%, var(--pe-ink) 100%);
}
.pe-hero__visual.has-quote .pe-hero__portrait { inset-inline-end: 24%; }
.pe-hero__visual.has-quote { justify-content: flex-start; }
.pe-hero__visual.has-quote .pe-hero__fallback { width: min(310px, 54%); }
.pe-hero__fallback { position: relative; align-self: center; display: grid; place-items: center; width: min(420px, 90%); aspect-ratio: 4 / 5; }
.pe-hero__arch {
  position: absolute; inset: 0; border-radius: 999px 999px 18px 18px;
  border: 1px solid rgba(208, 168, 104, .55);
  background: linear-gradient(180deg, color-mix(in srgb, var(--pe-ink-3) 70%, transparent), transparent);
}
.pe-hero__arch::after { content: ""; position: absolute; inset: 16px; border-radius: inherit; border: 1px solid rgba(208, 168, 104, .22); }
.pe-hero__initials { position: relative; font-size: clamp(64px, 9vw, 120px); font-weight: 900; line-height: 1; color: var(--pe-bronze-2); }
.pe-hero__fallback-name { position: absolute; bottom: 12%; inset-inline: 10%; text-align: center; font-weight: 700; color: rgba(255, 255, 255, .78); font-size: 15px; }
.pe-hero__quote {
  position: absolute; top: 18%; inset-inline-end: 0; max-width: 240px;
  padding: 18px 20px; border-inline-end: 2px solid var(--pe-bronze-2);
  background: linear-gradient(90deg, rgba(8, 18, 30, .7), rgba(8, 18, 30, .25));
}
.pe-hero__quote blockquote { font-size: 16px; line-height: 1.9; color: rgba(255, 255, 255, .9); }
.pe-hero__quote blockquote::before { content: "”"; display: block; color: var(--pe-bronze-2); font-size: 40px; line-height: .6; margin-bottom: 8px; }
.pe-hero__quote figcaption { margin-top: 12px; display: grid; }
.pe-signature { color: var(--pe-bronze-2); font-size: 22px; font-weight: 700; font-style: italic; }
.pe-hero__quote-role { font-size: 12px; color: rgba(255, 255, 255, .6); }

/* ================= الثقة ================= */
.pe-trust { background: var(--pe-paper); border-bottom: 1px solid var(--pe-line); }
.pe-trust__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pe-trust__item { display: flex; align-items: flex-start; gap: 16px; padding: 30px 24px; }
.pe-trust__item + .pe-trust__item { border-inline-start: 1px solid var(--pe-line); }
.pe-trust__title { font-size: 18px; font-weight: 800; color: var(--pe-ink); line-height: 1.5; }
.pe-trust__item p { font-size: 14px; color: var(--pe-muted); line-height: 1.8; margin-top: 4px; }
.pe-ring { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 50%; border: 1px solid rgba(184, 137, 74, .55); color: var(--pe-bronze-3); background: rgba(184, 137, 74, .06); }
.pe-ring .pe-ico { width: 24px; height: 24px; }
.pe-ring--sm { width: 44px; height: 44px; }
.pe-ring--sm .pe-ico { width: 20px; height: 20px; }

/* ================= عن المكتب ================= */
.pe-about { background: var(--pe-ivory); overflow: hidden; }
.pe-about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 104px; }
.pe-about__sub { margin-top: 14px; font-size: 21px; font-weight: 800; color: var(--pe-bronze-3); line-height: 1.6; }
.pe-about__bio { margin-top: 18px; color: var(--pe-muted); font-size: 17px; line-height: 2; max-width: 62ch; }
.pe-about .pe-btn { margin-top: 32px; }
.pe-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); margin-top: 36px; border-block: 1px solid var(--pe-line); }
.pe-stats__item { display: grid; justify-items: center; gap: 4px; padding: 20px 8px; text-align: center; color: var(--pe-bronze-3); }
.pe-stats__item + .pe-stats__item { border-inline-start: 1px solid var(--pe-line); }
.pe-stats dt { order: 3; font-size: 13px; color: var(--pe-muted); }
.pe-stats dd { order: 2; font-size: 30px; font-weight: 900; color: var(--pe-ink); line-height: 1.2; }
.pe-about__visual { position: relative; min-height: 440px; border-radius: 18px; overflow: hidden; color: var(--pe-ink-3); background: linear-gradient(135deg, var(--pe-ivory-2), #e6dccb); }
.pe-about__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pe-about__visual.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(246, 241, 232, .0) 60%, rgba(246, 241, 232, .55)); }
.pe-about__art { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ================= مجالات الممارسة ================= */
.pe-practice { position: relative; background: var(--pe-ink-2); color: #fff; padding-block: 104px; overflow: hidden; isolation: isolate; }
.pe-practice::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 400px at 80% 0%, rgba(184, 137, 74, .12), transparent 70%), repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 96px); }
.pe-practice__rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.pe-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 300px;
  padding: 28px 26px; border-radius: var(--pe-radius);
  background: linear-gradient(180deg, color-mix(in srgb, var(--pe-ink-3) 80%, transparent), var(--pe-ink));
  border: 1px solid var(--pe-line-light);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.pe-card:hover { transform: translateY(-4px); border-color: rgba(208, 168, 104, .55); box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .9); }
.pe-card__num { position: absolute; top: 20px; inset-inline-start: 22px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .35); letter-spacing: .08em; }
.pe-card__icon { color: var(--pe-bronze-2); margin-top: 28px; }
.pe-card__title { font-size: 22px; font-weight: 800; line-height: 1.4; margin-top: 8px; }
.pe-card__text { font-size: 14.5px; color: rgba(255, 255, 255, .7); line-height: 1.9; }
.pe-card__link { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--pe-bronze-2); }
.pe-card__link .pe-ico { width: 16px; height: 16px; transition: transform .2s; }
.pe-card:hover .pe-card__link .pe-ico { transform: translateX(-4px); }

/* ================= بوابة العملاء ================= */
.pe-portal { background: linear-gradient(180deg, var(--pe-paper), var(--pe-ivory)); overflow: hidden; }
.pe-portal__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 56px; align-items: center; padding-block: 104px; }
.pe-portal__features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 16px; margin-block: 32px 36px; }
.pe-portal__features li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 700; color: var(--pe-ink); }

.pe-devices { position: relative; padding: 10px 0 36px; }
.pe-laptop { position: relative; width: 88%; margin-inline-start: auto; }
.pe-laptop__screen { padding: 10px; border-radius: 16px 16px 4px 4px; background: #121820; box-shadow: var(--pe-shadow); }
.pe-laptop__base { height: 16px; margin-inline: -3%; border-radius: 0 0 16px 16px; background: linear-gradient(180deg, #cfd3da, #a9afb9); }
.pe-ui { display: grid; grid-template-columns: 30% 1fr; min-height: 300px; border-radius: 8px; overflow: hidden; background: #f4f6f9; font-size: 11px; }
.pe-ui__side { display: flex; flex-direction: column; gap: 6px; padding: 14px 10px; background: var(--pe-ink-2); color: rgba(255, 255, 255, .7); }
.pe-ui__logo { height: 18px; width: 60%; border-radius: 4px; background: rgba(208, 168, 104, .7); margin-bottom: 10px; }
.pe-ui__nav { padding: 6px 8px; border-radius: 6px; }
.pe-ui__nav.is-on { background: rgba(255, 255, 255, .1); color: #fff; }
.pe-ui__main { padding: 14px; display: flex; flex-direction: column; gap: 8px; color: #243042; }
.pe-ui__bar { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 13px; margin-bottom: 4px; }
.pe-ui__pill { padding: 2px 10px; border-radius: 999px; background: rgba(184, 137, 74, .16); color: var(--pe-bronze-3); font-weight: 700; font-size: 10px; }
.pe-ui__row { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .04); }
.pe-ui__dot { width: 8px; height: 8px; border-radius: 50%; background: #2fa36b; }
.pe-ui__status { color: #6a7382; }
.pe-ui__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 4px; }
.pe-ui__cards span { display: grid; gap: 2px; padding: 8px; border-radius: 6px; background: #fff; color: #6a7382; }
.pe-ui__cards b { color: #243042; font-size: 10px; }
.pe-phone { position: absolute; bottom: 0; inset-inline-start: 0; width: 34%; min-width: 170px; padding: 9px; border-radius: 30px; background: #0d1219; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.pe-phone__screen { display: flex; flex-direction: column; gap: 8px; min-height: 330px; padding: 16px 12px; border-radius: 22px; background: #fff; font-size: 11px; color: #243042; }
.pe-phone__head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 12px; margin-bottom: 6px; }
.pe-phone__row { display: grid; grid-template-columns: 18px 1fr; gap: 2px 8px; padding: 8px 4px; border-bottom: 1px solid #eef0f3; }
.pe-phone__row .pe-ico { width: 16px; height: 16px; color: var(--pe-bronze-3); grid-row: span 2; }
.pe-phone__row span { color: #6a7382; }
.pe-phone__btn { margin-top: auto; padding: 9px; border-radius: 8px; text-align: center; font-weight: 700; background: linear-gradient(180deg, var(--pe-bronze-2), var(--pe-bronze)); color: #1b140a; }
.pe-devices__note { position: absolute; bottom: 0; inset-inline-end: 0; font-size: 12px; color: var(--pe-muted); }

/* ================= طريقة العمل ================= */
.pe-process { background: var(--pe-ivory); padding-block: 96px; border-top: 1px solid var(--pe-line); }
.pe-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: pe-step; }
.pe-step { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; padding-inline: 8px; }
.pe-step:not(:last-child)::after { /* موصّل منقّط نحو الخطوة التالية (يسارًا في RTL) */
  content: ""; position: absolute; top: 28px; inset-inline-start: calc(50% + 44px); width: calc(100% - 88px + 24px); height: 1px;
  background: repeating-linear-gradient(90deg, rgba(184, 137, 74, .6) 0 6px, transparent 6px 12px);
}
.pe-step__num { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--pe-bronze); color: var(--pe-bronze-3); font-weight: 900; font-size: 18px; background: var(--pe-paper); }
.pe-step__icon { color: var(--pe-ink); margin-top: 6px; }
.pe-step__title { font-size: 19px; font-weight: 800; color: var(--pe-ink); }
.pe-step p { font-size: 14.5px; color: var(--pe-muted); line-height: 1.85; max-width: 28ch; }

/* ================= الآراء ================= */
.pe-testimonials { background: var(--pe-ink-2); padding-block: 96px; }
.pe-testimonials .pe-title { color: #fff; }
.pe-testimonials .pe-eyebrow { color: var(--pe-bronze-2); }
.pe-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.pe-quote { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 30px 28px; border-radius: var(--pe-radius); background: var(--pe-paper); box-shadow: var(--pe-shadow); }
.pe-quote__mark { position: absolute; top: 12px; inset-inline-start: 22px; font-size: 64px; line-height: 1; color: var(--pe-bronze); font-weight: 900; }
.pe-quote blockquote { padding-top: 26px; font-size: 16px; line-height: 1.95; color: var(--pe-text); }
.pe-quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.pe-quote figcaption b { display: block; color: var(--pe-ink); }
.pe-quote figcaption small { display: block; color: var(--pe-muted); font-size: 13px; }
.pe-quote__avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--pe-ink-3); color: var(--pe-bronze-2); font-weight: 800; font-size: 18px; flex: none; }

/* ================= التواصل ================= */
.pe-contact { background: var(--pe-paper); }
.pe-contact__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, .9fr); }
.pe-contact__cta { position: relative; background: var(--pe-ink); color: #fff; overflow: hidden; isolation: isolate; }
.pe-contact__cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px 300px at 100% 100%, rgba(184, 137, 74, .2), transparent 70%), repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 64px); }
.pe-contact__cta-inner { padding: 72px clamp(24px, 4vw, 56px); }
.pe-contact__cta .pe-title { color: #fff; }
.pe-contact__cta .pe-lead { color: rgba(255, 255, 255, .7); }
.pe-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 12px; margin-top: 32px; }
.pe-tile { display: grid; justify-items: center; gap: 6px; padding: 20px 10px; border-radius: var(--pe-radius-sm); border: 1px solid var(--pe-line-light); background: rgba(255, 255, 255, .04); text-align: center; transition: border-color .2s, background-color .2s; }
.pe-tile:hover { border-color: var(--pe-bronze-2); background: rgba(208, 168, 104, .08); }
.pe-tile .pe-ico { color: var(--pe-bronze-2); }
.pe-tile b { font-size: 15px; }
.pe-tile small { font-size: 12.5px; color: rgba(255, 255, 255, .65); }

.pe-contact__form { padding: 64px clamp(24px, 3vw, 44px); border-inline-end: 1px solid var(--pe-line); }
.pe-form-title, .pe-info-title { font-size: 20px; font-weight: 800; color: var(--pe-ink); margin-bottom: 20px; }
.pe-form { display: grid; gap: 14px; }
.pe-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pe-field { display: grid; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--pe-ink); }
.pe-field input, .pe-field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 8px;
  border: 1px solid #d9d3c8; background: #fff; color: var(--pe-text);
  font: inherit; font-weight: 500; font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.pe-field textarea { min-height: 120px; resize: vertical; }
.pe-field input:focus, .pe-field textarea:focus { outline: none; border-color: var(--pe-bronze); box-shadow: 0 0 0 3px rgba(184, 137, 74, .18); }
.pe-form__note { font-size: 12.5px; color: var(--pe-muted); text-align: center; }
.pe-form__note a { text-decoration: underline; }
.pe-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pe-alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.pe-alert--ok { background: #e9f6ee; color: #1d6b3f; border: 1px solid #b9e2c8; }
.pe-alert--warn { background: #fdf5e4; color: #8a5a0b; border: 1px solid #f0d9a4; }
.pe-alert--err { background: #fdecec; color: #9b2323; border: 1px solid #f2c2c2; list-style: disc inside; }
.pe-form-closed h3 { font-size: 20px; font-weight: 800; color: var(--pe-ink); }
.pe-form-closed p { margin-top: 8px; color: var(--pe-muted); }

.pe-contact__info { padding: 64px clamp(24px, 3vw, 44px); }
.pe-info { display: grid; gap: 14px; }
.pe-info li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--pe-text); word-break: break-word; }
.pe-info .pe-ico { color: var(--pe-bronze-3); margin-top: 4px; }
.pe-map { position: relative; display: grid; place-items: center; height: 170px; margin-top: 24px; border-radius: var(--pe-radius-sm); overflow: hidden; border: 1px solid var(--pe-line); background: #e9eef2; }
.pe-map__grid { position: absolute; inset: 0; background:
  linear-gradient(28deg, transparent 47%, #fff 47% 53%, transparent 53%) 0 0 / 120px 90px,
  linear-gradient(-62deg, transparent 46%, #fff 46% 52%, transparent 52%) 0 0 / 150px 110px,
  linear-gradient(90deg, #dfe7ec, #e8eef1); opacity: .9; }
.pe-map__pin { position: relative; color: #c0392b; margin-bottom: 26px; }
.pe-map__label { position: absolute; top: 58%; padding: 3px 10px; border-radius: 6px; background: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .3); }
.pe-map__cta { position: absolute; bottom: 10px; inset-inline-start: 10px; padding: 5px 12px; border-radius: 6px; background: #fff; font-size: 12px; font-weight: 700; color: #1a5fb4; }

/* ================= التذييل ================= */
.pe-footer { background: var(--pe-ink); color: rgba(255, 255, 255, .8); }
.pe-footer__top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; padding-block: 40px; }
.pe-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: 14px; }
.pe-footer__nav a:hover { color: var(--pe-bronze-2); }
.pe-footer__end { display: flex; align-items: center; gap: 18px; }
.pe-social { display: flex; gap: 8px; }
.pe-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; transition: color .2s, background-color .2s; }
.pe-social a:hover { color: var(--pe-bronze-2); background: rgba(255, 255, 255, .06); }
.pe-top { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(208, 168, 104, .6); color: var(--pe-bronze-2); }
.pe-footer__bottom { border-top: 1px solid var(--pe-line-light); font-size: 13px; color: rgba(255, 255, 255, .55); }
.pe-footer__bottom-inner { display: flex; justify-content: space-between; gap: 12px; padding-block: 18px; }
.pe-quickbar { display: none; }

.pe-demo-badge { position: fixed; left: 12px; bottom: 12px; z-index: 60; padding: 6px 12px; border-radius: 999px; background: rgba(8, 18, 30, .9); color: var(--pe-bronze-2); font-size: 11px; font-weight: 700; pointer-events: none; }
.pe-preview-flag { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 70; padding: 6px 14px; border-radius: 999px; background: #fff3cd; color: #6b4e00; font-size: 12px; font-weight: 700; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .4); }

/* ---------- الظهور التدريجي (مع JS فقط، ويحترم تقليل الحركة) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .pe-btn, .pe-card { transition: none; }
}

/* ================= الاستجابة ================= */
@media (max-width: 1180px) {
  .pe-nav__link { padding-inline: 8px; font-size: 14px; }
  .pe-brand__sub { max-width: 22ch; }
  .pe-contact__grid { grid-template-columns: 1fr 1fr; }
  .pe-contact__cta { grid-column: 1 / -1; }
  .pe-contact__form { border-inline-end: 0; }
  .pe-contact__info { border-inline-start: 1px solid var(--pe-line); }
}

@media (max-width: 1024px) {
  :root { --pe-gutter: 24px; --pe-header-h: 72px; }
  .pe-nav, .pe-hide-sm { display: none; }
  .pe-burger { display: grid; }
  .pe-header__actions { margin-inline-start: auto; }
  .pe-hero__grid { grid-template-columns: 1fr 1fr; min-height: 0; }
  .pe-hero__copy { padding-block: 40px 56px; }
  .pe-hero__quote { display: none; }
  .pe-hero__visual.has-quote .pe-hero__portrait { inset-inline-end: 0; }
  .pe-hero__visual.has-quote { justify-content: center; }
  .pe-hero__visual.has-quote .pe-hero__fallback { width: min(360px, 80%); }
  .pe-trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pe-trust__item:nth-child(3) { border-inline-start: 0; }
  .pe-trust__item:nth-child(n + 3) { border-top: 1px solid var(--pe-line); }
  .pe-about__grid, .pe-portal__grid { gap: 40px; padding-block: 80px; }
  .pe-portal__features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pe-practice, .pe-process, .pe-testimonials { padding-block: 80px; }
  .pe-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .pe-step:nth-child(2)::after { display: none; }
}

@media (max-width: 767px) {
  :root { --pe-gutter: 20px; --pe-header-h: 64px; }
  body.pe { font-size: 15.5px; padding-bottom: 68px; }
  .pe-header.is-solid .pe-header__inner { height: 64px; }
  .pe-brand__name { font-size: 17px; }
  .pe-brand__sub { font-size: 11px; max-width: 24ch; }
  .pe-brand__mark { width: 40px; height: 40px; }

  /* الـHero على الهاتف: الصورة أولًا كغلاف، ثم النص فوق حافتها المتلاشية */
  .pe-hero__grid { grid-template-columns: 1fr; gap: 0; }
  .pe-hero__visual { order: -1; min-height: 0; height: min(64vh, 440px); margin-inline: calc(var(--pe-gutter) * -1); }
  .pe-hero__portrait img { object-position: center 15%; }
  .pe-hero__portrait::after { background: linear-gradient(0deg, var(--pe-ink-2) 0, transparent 40%); }
  .pe-hero__fallback { width: min(300px, 76%); margin-top: 24px; }
  .pe-hero__copy { margin-top: -72px; position: relative; padding-block: 0 44px; }
  .pe-hero__title { font-size: clamp(34px, 9.6vw, 44px); line-height: 1.28; }
  .pe-hero__lead { font-size: 16px; line-height: 1.9; margin-top: 16px; }
  .pe-hero__ctas { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 26px; }
  .pe-hero__ctas .pe-btn { width: 100%; }
  .pe-hero__features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }

  .pe-trust__grid { grid-template-columns: 1fr 1fr; }
  .pe-trust__item { flex-direction: column; gap: 10px; padding: 22px 14px; }
  .pe-trust__title { font-size: 16px; }
  .pe-trust__item p { font-size: 13px; }
  .pe-ring { width: 46px; height: 46px; }

  .pe-about__grid, .pe-portal__grid { grid-template-columns: 1fr; gap: 32px; padding-block: 64px; }
  .pe-about__visual { order: -1; width: 100%; min-height: 0; aspect-ratio: 16 / 10; }
  .pe-about__sub { font-size: 18px; }
  .pe-about__bio { font-size: 16px; }
  .pe-about .pe-btn { width: 100%; }
  .pe-stats { grid-template-columns: repeat(2, 1fr); }
  .pe-stats__item:nth-child(3) { border-inline-start: 0; }
  .pe-stats__item:nth-child(n + 3) { border-top: 1px solid var(--pe-line); }
  .pe-stats dd { font-size: 26px; }

  /* مجالات الممارسة: شريط أفقي بالتقاط — لا شبكة مضغوطة */
  .pe-practice { padding-block: 64px; }
  .pe-head { margin-bottom: 32px; }
  .pe-practice__rail {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(var(--pe-gutter) * -1); padding-inline: var(--pe-gutter); padding-bottom: 8px; scrollbar-width: none;
  }
  .pe-practice__rail::-webkit-scrollbar { display: none; }
  .pe-card { flex: 0 0 78%; min-height: 270px; scroll-snap-align: start; }

  .pe-portal__features { grid-template-columns: 1fr 1fr; gap: 14px 10px; margin-block: 24px 28px; }
  .pe-portal__features li { font-size: 13.5px; }
  .pe-portal .pe-btn { width: 100%; }
  .pe-devices { padding-bottom: 34px; }
  .pe-laptop { width: 100%; }
  .pe-ui { min-height: 220px; grid-template-columns: 28% 1fr; font-size: 9.5px; }
  .pe-ui__cards { display: none; }
  .pe-phone { width: 42%; min-width: 142px; bottom: 26px; }
  .pe-phone__screen { min-height: 250px; font-size: 9.5px; padding: 12px 9px; }
  .pe-devices__note { inset-inline: 0; text-align: center; }

  /* طريقة العمل: خط زمني رأسي على جهة البداية */
  .pe-process { padding-block: 64px; }
  .pe-steps { grid-template-columns: 1fr; gap: 0; }
  .pe-step { grid-template-columns: 56px 1fr; justify-items: start; text-align: start; column-gap: 16px; row-gap: 2px; padding: 0 0 30px; }
  .pe-step__num { grid-row: span 3; }
  .pe-step__icon { display: none; }
  .pe-step p { max-width: none; }
  .pe-step:not(:last-child)::after, .pe-step:nth-child(2)::after {
    display: block; top: 60px; inset-inline-start: 27px; width: 1px; height: calc(100% - 64px);
    background: repeating-linear-gradient(180deg, rgba(184, 137, 74, .6) 0 6px, transparent 6px 12px);
  }

  .pe-testimonials { padding-block: 64px; }
  .pe-quotes { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: calc(var(--pe-gutter) * -1); padding-inline: var(--pe-gutter); padding-bottom: 8px; scrollbar-width: none; }
  .pe-quote { flex: 0 0 86%; scroll-snap-align: start; }

  .pe-contact__grid { grid-template-columns: 1fr; }
  .pe-contact__cta-inner { padding: 56px var(--pe-gutter); }
  .pe-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pe-tile { padding: 16px 6px; }
  .pe-tile small { font-size: 11px; }
  .pe-contact__form, .pe-contact__info { padding: 44px var(--pe-gutter); border: 0; }
  .pe-contact__info { border-top: 1px solid var(--pe-line); }
  .pe-form__row { grid-template-columns: 1fr; }

  .pe-footer__top { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 22px; }
  .pe-footer__bottom-inner { flex-direction: column; align-items: center; text-align: center; }

  .pe-quickbar {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 45; display: flex; gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: var(--pe-ink);
    border-top: 1px solid var(--pe-line-light);
  }
  /* يظهر بعد تجاوز الـHero (مع JS) حتى لا يغطي أزراره عند أول فتح */
  .js .pe-quickbar { transform: translateY(110%); transition: transform .3s ease; }
  .js .pe-quickbar.is-shown { transform: none; }
  .pe-quickbar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: 10px; color: #fff; font-weight: 700; font-size: 14px; border: 1px solid var(--pe-line-light); }
  .pe-quickbar a.is-primary { background: linear-gradient(180deg, var(--pe-bronze-2), var(--pe-bronze)); color: #1b140a; border-color: transparent; }
  .pe-demo-badge { bottom: 76px; }
}

@media (max-width: 380px) {
  :root { --pe-gutter: 16px; }
  .pe-brand__sub { display: none; }
  .pe-hero__title { font-size: 32px; }
  .pe-hero__features { grid-template-columns: 1fr; }
  .pe-trust__grid { grid-template-columns: 1fr; }
  .pe-trust__item { flex-direction: row; }
  .pe-trust__item + .pe-trust__item { border-inline-start: 0; border-top: 1px solid var(--pe-line); }
  .pe-portal__features { grid-template-columns: 1fr; }
  .pe-card { flex-basis: 84%; }
  .pe-tiles { grid-template-columns: 1fr; }
  .pe-tile { grid-template-columns: auto 1fr; justify-items: start; text-align: start; align-items: center; column-gap: 12px; }
  .pe-tile .pe-ico { grid-row: span 2; }
}
