/* ==========================================================================
   الأحمد للمحاماة والاستشارات القانونية — ورقة الأنماط
   الهوية: زيتون الأرض ونحاس الحجر ورمل الورق، وقوس البتراء وعمود الألف.
   الصفحة واحدة للّغتين؛ والفروق بين العربية والإنكليزية في آخر الملفّ.
   ========================================================================== */

:root {
  /* ألوان العلامة */
  --olive: #16302B;
  --olive-2: #1C3B35;      /* زيتونٌ أفتح قليلاً للألواح فوق الزيتون */
  --olive-3: #0F2420;      /* زيتونٌ أغمق للتذييل */
  --copper: #A4593B;       /* اللمسة: للأزرار والزخارف لا للنصّ الصغير */
  --copper-txt: #8A4A30;   /* نحاسٌ للنصّ على الفاتح (تباين ٦٫٨) */
  --copper-lt: #D08A69;    /* نحاسٌ فاتح على الزيتون (تباين ٥٫٠) */
  --sand: #F5F1EA;
  --stone: #CFC6B8;
  --white: #FFFFFF;
  --ink: #1D2825;          /* النصّ الأساسيّ على الفاتح */
  --ink-2: #4A5C57;        /* النصّ الثانويّ على الفاتح (تباين ≥ ٦) */
  --on-olive-2: #B9C6C1;   /* النصّ الثانويّ على الزيتون (تباين ≥ ٧) */
  --line: #E3DDD2;

  --f-display: "Reem Kufi", "Tajawal", system-ui, sans-serif;
  --f-body: "Tajawal", system-ui, "Segoe UI", sans-serif;
  --f-latin: "Bellefair", "Times New Roman", serif;

  --header-h: 72px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  color-scheme: light;
}

/* ── الأساس ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.8;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
section[id], footer[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

/* التركيز الظاهر: حلقةٌ نحاسية في كلّ مكان، وفاتحةٌ فوق الزيتون */
:focus-visible { outline: 3px solid var(--copper-txt); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible, .site-header :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: var(--copper-lt); }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--copper); color: #fff; padding: 10px 16px; border-radius: var(--radius); text-decoration: none; font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.latin { font-family: var(--f-latin); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* الهمزة: معيّنٌ نحاسيّ صغير يتكرّر زخرفةً */
.diamond { width: 10px; height: 10px; background: var(--copper); transform: rotate(45deg); flex: none; display: inline-block; }
.dark .diamond { background: var(--copper-lt); }

/* ── الأزرار ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border-radius: 2px;
  font: 700 1rem/1.2 var(--f-body); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; background: transparent; color: inherit; transition: background-color .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-copper { background: var(--copper); color: #fff; }
.btn-copper:hover { background: #8F4C31; }
.btn-ghost { border-color: rgba(245,241,234,.55); color: var(--sand); }
.btn-ghost:hover { background: rgba(245,241,234,.1); border-color: var(--sand); }
.btn-olive { background: var(--olive); color: var(--sand); }
.btn-olive:hover { background: #0F2420; }
.btn-line { border-color: var(--olive); color: var(--olive); background: transparent; }
.btn-line:hover { background: var(--olive); color: var(--sand); }

/* ==========================================================================
   الترويسة الثابتة
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22,48,43,.97);
  color: var(--sand);
  border-bottom: 1px solid rgba(208,138,105,.25);
}
/* لا backdrop-filter هنا: كان سيجعل الترويسة حاويةً للقائمة الثابتة فتنحبس فيها على الهاتف */
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--sand); flex: none; }
.brand img { width: 28px; height: auto; }
.brand .bar { width: 1.5px; height: 30px; background: var(--copper-lt); opacity: .8; }
.brand b { font-family: var(--f-display); font-weight: 600; font-size: 1.45rem; line-height: 1; }
.brand small { display: block; font-size: .7rem; letter-spacing: .02em; color: var(--on-olive-2); margin-top: 3px; line-height: 1.2; }

.nav { margin-inline-start: auto; display: flex; align-items: center; gap: 2px; }
.nav a {
  color: #E6E2D9; text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: 8px 10px; border-radius: 2px; position: relative;
  white-space: nowrap; /* الرابط سطرٌ واحد دائماً — وإن ضاق المكان فالقائمة المنسدلة */
}
.nav a:hover { color: #fff; }
.nav a.active::after {
  content: ""; position: absolute; inset-inline: 10px; bottom: 2px; height: 2px; background: var(--copper-lt);
}
.header-tools { display: flex; align-items: center; gap: 10px; flex: none; }
.lang {
  color: var(--sand); text-decoration: none; font-size: .9rem; font-weight: 700;
  border: 1px solid rgba(245,241,234,.4); padding: 6px 12px; border-radius: 2px; line-height: 1.2;
}
.lang:hover { border-color: var(--copper-lt); color: #fff; }
.header-call { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.menu-btn { display: none; }

/* القائمة على الشاشات الضيّقة */
@media (max-width: 1200px) {
  .js .menu-btn {
    display: inline-grid; place-items: center; width: 46px; height: 46px; padding: 0;
    background: transparent; border: 1px solid rgba(245,241,234,.4); border-radius: 2px; color: var(--sand); cursor: pointer;
  }
  .menu-btn svg { width: 22px; height: 22px; }
  .menu-btn .x { display: none; }
  .menu-open .menu-btn .x { display: block; }
  .menu-open .menu-btn .burger { display: none; }

  .js .nav {
    position: fixed; inset-inline: 0; top: var(--header-h); bottom: 0;
    background: var(--olive); flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 32px; overflow-y: auto;
    visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s;
  }
  .js .menu-open .nav { visibility: visible; opacity: 1; }
  .js .nav a { font-size: 1.15rem; padding: 14px 4px; border-bottom: 1px solid rgba(245,241,234,.12); }
  .js .nav a.active::after { inset-inline: auto 4px; inset-inline-start: 4px; width: 24px; bottom: 8px; }
  .header-tools { margin-inline-start: auto; }
  .js .nav { margin-inline-start: 0; }

  /* بلا JavaScript: الروابط شريطٌ أفقيّ يُمرَّر تحت الترويسة */
  html:not(.js) .site-header .wrap { flex-wrap: wrap; padding-block: 8px; }
  html:not(.js) .nav { order: 3; width: 100%; overflow-x: auto; margin: 0; }
  html:not(.js) .nav a { white-space: nowrap; }
}
@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .brand small { display: none; }
  .brand b { font-size: 1.3rem; }
  .header-call { display: none; }
}

/* ==========================================================================
   البطل: المَعْلَم داخل قوس البتراء على أرض الزيتون
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(245,241,234,.028) 0 1px, transparent 1px 84px),
    radial-gradient(ellipse 70% 80% at 25% 40%, #1E3F38 0%, var(--olive) 70%);
  color: var(--sand);
}
html[dir="rtl"] .hero { background:
    repeating-linear-gradient(90deg, rgba(245,241,234,.028) 0 1px, transparent 1px 84px),
    radial-gradient(ellipse 70% 80% at 75% 40%, #1E3F38 0%, var(--olive) 70%); }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: end; gap: clamp(32px, 6vw, 88px);
  padding-block: clamp(56px, 9vw, 120px) 0;
}
.hero-text { padding-bottom: clamp(56px, 8vw, 112px); display: grid; gap: 22px; align-content: center; align-self: center; }
.hero .eyebrow-en {
  font-family: var(--f-latin); color: var(--copper-lt); letter-spacing: .3em; font-size: clamp(.8rem, 1.3vw, .95rem);
  direction: ltr; unicode-bidi: isolate;
}
html[dir="rtl"] .hero .eyebrow-en { text-align: right; }
.hero h1 { font-family: var(--f-display); font-weight: 700; line-height: 1.05; }
.hero h1 .n1 { display: block; font-size: clamp(3.6rem, 10vw, 7.2rem); }
.hero h1 .n2 { display: block; font-weight: 500; font-size: clamp(1.25rem, 2.6vw, 2rem); line-height: 1.4; margin-top: 12px; color: #EDE8DF; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #D9DFDC; max-width: 34em; line-height: 1.85; }
.hero .rule { width: 72px; height: 2px; background: var(--copper-lt); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero .where { display: flex; align-items: center; gap: 10px; color: var(--on-olive-2); font-size: .95rem; }
.hero .where svg { flex: none; }

/* القوس */
.hero-arch { position: relative; justify-self: center; width: min(400px, 100%); display: grid; }
.arch {
  position: relative; aspect-ratio: 3 / 4; width: 100%;
  border-radius: 999px 999px 0 0;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, #234840 0%, var(--olive-2) 65%);
  border: 1px solid rgba(208,138,105,.45); border-bottom: 0;
  display: grid; place-items: end center; padding: 0 18% 0;
  box-shadow: inset 0 0 80px rgba(0,0,0,.18);
}
.arch::before {
  /* الخطّ الداخليّ الرفيع: نسخةٌ من إطار القوس المزدوج في الشعار */
  content: ""; position: absolute; inset: 14px 14px 0; border-radius: 999px 999px 0 0;
  border: 1px solid rgba(245,241,234,.14); border-bottom: 0; pointer-events: none;
}
.arch img { width: 100%; height: auto; margin-bottom: -1px; }
.plinth { height: 6px; background: var(--copper-lt); margin-inline: -6%; opacity: .9; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; gap: 32px; }
  .hero-arch { order: -1; width: min(170px, 44vw); }
  .hero-text { padding-bottom: 56px; text-align: center; justify-items: center; }
  html[dir="rtl"] .hero .eyebrow-en { text-align: center; }
  .hero .actions { justify-content: center; }
  .hero .actions .btn { flex: 1 1 160px; }
  .hero .where { justify-content: center; text-align: center; }
  .hero .where svg { display: none; }
  .hero .rule { margin-inline: auto; }
}

/* ==========================================================================
   الأقسام
   ========================================================================== */
.section { padding-block: clamp(64px, 9vw, 120px); }
.bg-sand { background: var(--sand); }
.bg-white { background: var(--white); }
.dark { background: var(--olive); color: var(--sand); }

.sec-head { display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 760px; }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--copper-txt); font-weight: 700; font-size: .9rem; letter-spacing: .06em; }
.eyebrow .num { font-family: var(--f-latin); font-size: 1rem; letter-spacing: .1em; }
.dark .eyebrow { color: var(--copper-lt); }
.sec-head h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.9rem, 3.8vw, 2.9rem); line-height: 1.3; color: var(--olive); }
.dark .sec-head h2 { color: var(--sand); }
.sec-head .lead { color: var(--ink-2); font-size: 1.1rem; }
.dark .sec-head .lead { color: var(--on-olive-2); }

/* ── من نحن ── */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.about .big { font-size: clamp(1.15rem, 1.9vw, 1.4rem); line-height: 1.95; color: var(--ink); }
.about .big::first-line { color: var(--olive); }
.highlights { background: var(--white); border-top: 3px solid var(--copper); padding: clamp(24px, 3.5vw, 36px); display: grid; gap: 18px; box-shadow: 0 1px 2px rgba(22,48,43,.05), 0 12px 32px rgba(22,48,43,.06); }
.highlights h3 { font-size: 1.1rem; color: var(--olive); }
.highlights li { display: flex; gap: 14px; align-items: baseline; color: var(--ink-2); line-height: 1.7; }
.highlights li .diamond { width: 8px; height: 8px; transform: translateY(-2px) rotate(45deg); }

/* ── الرؤية والرسالة ── */
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.vm article { padding: clamp(8px, 2vw, 16px) clamp(24px, 5vw, 64px); display: grid; gap: 16px; align-content: start; }
.vm article + article { border-inline-start: 1px solid var(--line); }
.vm .icon { width: 36px; height: 48px; }
.vm h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.6rem; color: var(--olive); }
.vm p { font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.95; color: var(--ink); }

/* ── القيم ── */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(245,241,234,.14); border: 1px solid rgba(245,241,234,.14); }
.value { background: var(--olive); padding: clamp(24px, 3vw, 40px); display: grid; gap: 10px; align-content: start; }
.value .vn { font-family: var(--f-latin); color: var(--copper-lt); font-size: 1.1rem; letter-spacing: .12em; }
.value h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.45rem; }
.value p { color: var(--on-olive-2); }

/* ── الخدمات ── */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.service {
  background: var(--white); padding: 28px 24px 30px; display: grid; gap: 10px; align-content: start;
  border: 1px solid var(--line); border-top: 3px solid var(--olive); position: relative;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.service:hover { border-top-color: var(--copper); box-shadow: 0 14px 34px rgba(22,48,43,.09); }
.service .sn { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.service .sn span { font-family: var(--f-latin); color: var(--copper-txt); font-size: 1.05rem; letter-spacing: .1em; }
.service h3 { font-size: 1.18rem; line-height: 1.45; color: var(--olive); font-weight: 700; }
.service .en-name { font-family: var(--f-latin); color: var(--ink-2); font-size: .9rem; letter-spacing: .06em; direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .service .en-name { text-align: right; }
.service p { color: var(--ink-2); font-size: .98rem; line-height: 1.75; }

/* ── الفريق ── */
.team { display: grid; gap: clamp(28px, 4vw, 44px); }
.team-row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px, 2.4vw, 28px); }
.member { margin: 0; width: calc((100% - 3 * clamp(16px, 2.4vw, 28px)) / 4); display: flex; flex-direction: column; }
.team-row.lead .member { width: min(300px, calc((100% - clamp(16px, 2.4vw, 28px)) / 2)); }
.niche {
  position: relative; flex: 1; border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #EFE9DF 0%, var(--sand) 100%);
  border: 1px solid var(--line); border-bottom: 3px solid var(--olive);
  display: flex; flex-direction: column; align-items: center;
  padding: 9% 9% 0;
}
.niche::before {
  content: ""; position: absolute; inset: 6px 6px 0; border-radius: 999px 999px 0 0;
  border: 1px solid rgba(164,89,59,.35); border-bottom: 0; pointer-events: none;
}
.photo { flex: none; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; position: relative; background: var(--olive); box-shadow: 0 0 0 4px var(--white), 0 0 0 5px rgba(164,89,59,.45); }
/* تكبيرٌ خفيف داخل القناع الدائريّ يُخفي أيّ بقيّةٍ من حوافّ القصّ الأصليّ */
.photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.who { text-align: center; display: grid; gap: 2px; padding: 16px 0 22px; }
.who b { font-size: 1.08rem; color: var(--olive); line-height: 1.35; }
.who span { color: var(--copper-txt); font-size: .9rem; font-weight: 500; line-height: 1.4; }
.who small { color: var(--ink-2); font-size: .8rem; }
.team-row.lead .who b { font-size: 1.2rem; }

/* ── لماذا نحن ── */
.why { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.why .statement { font-weight: 500; font-size: clamp(1.25rem, 2.1vw, 1.6rem); line-height: 1.9; color: var(--sand); }
.why .statement::before { content: ""; display: block; width: 56px; height: 2px; background: var(--copper-lt); margin-bottom: 24px; }
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: rgba(245,241,234,.14); border: 1px solid rgba(245,241,234,.14); }
.points li { background: var(--olive); padding: 22px 22px; display: flex; gap: 14px; align-items: center; font-weight: 500; font-size: 1.05rem; }

/* ── كيف نعمل ── */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 36px; inset-inline: 12.5%; height: 1px;
  background: repeating-linear-gradient(90deg, var(--copper) 0 6px, transparent 6px 12px);
}
.step { display: grid; gap: 12px; align-content: start; justify-items: center; text-align: center; position: relative; }
.step .badge {
  width: 56px; height: 72px; border-radius: 999px 999px 0 0; background: var(--olive); color: var(--sand);
  display: grid; place-items: center; padding-top: 8px;
  font-family: var(--f-latin); font-size: 1.4rem; border-bottom: 3px solid var(--copper);
}
.step h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.4rem; color: var(--olive); }
.step p { color: var(--ink-2); max-width: 26ch; }

/* ── التواصل ── */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.channels { display: grid; gap: 12px; }
.channel {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 16px 18px; background: var(--sand); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: border-color .2s, background-color .2s;
}
a.channel:hover { border-color: var(--copper); background: #F1EBE1; }
.channel .ic { width: 52px; height: 52px; border-radius: 50%; background: var(--olive); color: var(--sand); display: grid; place-items: center; }
.channel .ic svg { width: 22px; height: 22px; }
.channel .t { display: grid; min-width: 0; }
.channel .t small { color: var(--ink-2); font-size: .85rem; }
.channel .t b { font-size: 1.12rem; color: var(--olive); overflow-wrap: anywhere; font-weight: 700; }
.channel .go { color: var(--copper-txt); font-size: .9rem; font-weight: 700; white-space: nowrap; }
.address { display: grid; gap: 8px; padding: 20px 18px 22px; border: 1px solid var(--line); background: var(--white); border-top: 3px solid var(--olive); }
.address b { color: var(--olive); }
.address p { color: var(--ink-2); }
.address a { color: var(--copper-txt); font-weight: 700; text-underline-offset: 4px; }

.composer { background: var(--olive); color: var(--sand); padding: clamp(24px, 4vw, 40px); display: grid; gap: 16px; }
.composer h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; }
.composer p.note { color: var(--on-olive-2); font-size: .95rem; }
.field { display: grid; gap: 6px; }
.field label { font-size: .92rem; font-weight: 500; color: #E6E2D9; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--sand);
  border: 1.5px solid transparent; border-radius: 2px; padding: 12px 14px; line-height: 1.5;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--copper-lt); outline-offset: 2px; }
.composer .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.composer .actions .btn { flex: 1 1 180px; }
html:not(.js) .composer { display: none; }

/* ==========================================================================
   التذييل
   ========================================================================== */
.site-footer { background: var(--olive-3); color: #DDE3E0; padding-block: 56px 28px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(245,241,234,.12); }
.lockup { display: flex; align-items: center; gap: 16px; color: var(--sand); }
.lockup img { width: 44px; height: auto; }
.lockup .bar { width: 1.5px; align-self: stretch; background: var(--copper-lt); margin-block: 6px; }
.lockup .ar { font-family: var(--f-display); font-weight: 600; font-size: 2rem; line-height: 1; }
.lockup .ar2 { font-size: .85rem; color: var(--on-olive-2); margin-top: 6px; }
.lockup .en { font-family: var(--f-latin); color: var(--copper-lt); letter-spacing: .28em; font-size: .9rem; margin-top: 4px; direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .lockup .en { text-align: right; }
.site-footer h2 { font-size: .85rem; letter-spacing: .1em; color: var(--copper-lt); font-weight: 700; margin-bottom: 12px; }
.site-footer ul { display: grid; gap: 6px; }
.site-footer a { color: #DDE3E0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; color: #AEBBB6; font-size: .85rem; }

/* شريط الإجراءات السفليّ على الهاتف */
.mobile-bar { display: none; }
@media (max-width: 720px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(245,241,234,.97); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(22,48,43,.08);
  }
  .mobile-bar .btn { min-height: 48px; padding: 10px 12px; }
  /* يظهر الشريط بعد تجاوز البطل حتى لا يكرّر زرّيه */
  .js .mobile-bar { transform: translateY(110%); transition: transform .3s ease; }
  .js .mobile-bar.show { transform: none; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
}

/* ==========================================================================
   التجاوب
   ========================================================================== */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member { width: calc((100% - 2 * clamp(16px, 2.4vw, 28px)) / 3); }
}
@media (max-width: 860px) {
  .about, .why, .contact { grid-template-columns: 1fr; }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vm { grid-template-columns: 1fr; gap: 28px; }
  .vm article { padding: 0; }
  .vm article + article { border-inline-start: 0; border-top: 1px solid var(--line); padding-top: 28px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .steps::before { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .services, .points { grid-template-columns: 1fr; }
  .value { padding: 20px 16px 22px; gap: 6px; }
  .value h3 { font-size: 1.25rem; }
  .value p { font-size: .95rem; line-height: 1.7; }
  .member, .team-row.lead .member { width: calc((100% - 14px) / 2); }
  .team-row { gap: 14px; }
  .who b { font-size: .98rem; }
  .who span { font-size: .82rem; }
  .team-row.lead .who b { font-size: 1.02rem; }
  .steps { grid-template-columns: 1fr; }
  .step { grid-template-columns: 56px 1fr; justify-items: start; text-align: start; column-gap: 16px; align-items: start; }
  .step .badge { grid-row: span 2; }
  .step p { max-width: none; }
  .channel { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .channel .ic { width: 44px; height: 44px; }
  .channel .go { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .legal { flex-direction: column; }
}

/* ==========================================================================
   الحركة الهادئة عند الظهور — للمتصفّحات التي تسمح بالحركة فقط، والمحتوى ظاهرٌ بلا JS
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
  .js .rv.in { opacity: 1; transform: none; }
  .js .rv-d1 { transition-delay: .08s; } .js .rv-d2 { transition-delay: .16s; } .js .rv-d3 { transition-delay: .24s; }
  .hero .arch img { animation: rise 1.2s cubic-bezier(.2,.7,.2,1) both .1s; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
}

/* ==========================================================================
   الإنكليزية (LTR): العناوين بخطّ Bellefair
   ========================================================================== */
/* نصّ الإنكليزية: Questrial من Google Fonts، وTajawal احتياطٌ لأيّ حرفٍ عربيّ في الصفحة. */
html[lang="en"] { --f-body: "Questrial", "Tajawal", system-ui, sans-serif; }
html[lang="en"] body { font-size: 15px; line-height: 1.7; } /* Questrial أعرض من Tajawal بعينه، فيُصغَّر ليكافئه بصرياً */
html[lang="en"] .field input, html[lang="en"] .field textarea { font-family: var(--f-body); }
html[lang="en"] .hero h1, html[lang="en"] .sec-head h2, html[lang="en"] .vm h3, html[lang="en"] .value h3,
html[lang="en"] .step h3, html[lang="en"] .composer h3 {
  font-family: var(--f-latin); font-weight: 400;
}
html[lang="en"] .hero h1 .n1 { letter-spacing: .14em; font-size: clamp(3rem, 8.4vw, 6.2rem); }
html[lang="en"] .hero h1 .n2 { font-family: var(--f-latin); letter-spacing: .16em; text-transform: uppercase; font-size: clamp(1rem, 2vw, 1.5rem); }
html[lang="en"] .sec-head h2 { letter-spacing: .01em; line-height: 1.2; font-size: clamp(2rem, 4vw, 3.1rem); }
html[lang="en"] .why .statement { font-size: clamp(1.08rem, 1.6vw, 1.28rem); line-height: 1.75; font-weight: 400; }
html[lang="en"] .nav a { font-size: .9rem; padding-inline: 9px; }
html[lang="en"] .points li { font-size: .98rem; }
html[lang="en"] .brand b { font-family: var(--f-latin); font-weight: 400; letter-spacing: .2em; font-size: 1.3rem; }
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; }
html[lang="en"] .service h3 { font-size: 1.12rem; }
@media (max-width: 560px) { html[lang="en"] body { font-size: 14.5px; } }
@media (max-width: 380px) {
  .site-header .wrap { gap: 10px; }
  .brand { gap: 8px; }
  .brand .bar { display: none; }
  html[lang="en"] .brand b { letter-spacing: .12em; font-size: 1.15rem; }
  .lang { padding: 6px 9px; }
}

@media print {
  .site-header, .mobile-bar, .composer, .hero .actions { display: none !important; }
  .js .rv { opacity: 1 !important; transform: none !important; }
}
