/* Ali Al-Baker — shared stylesheet for the refined presentations (V1 and V2).
   Layout, components and behaviour live here; colours, type and image treatment
   come from theme.css. Written mobile-first. Breakpoints: 600, 720, 900, 1180, 1440. */

/* ---------- 1. Reset ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font-family: var(--font-read); font-size: var(--fs-body); line-height: var(--lh-body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--select-bg); color: var(--select-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
html { scrollbar-color: var(--rule) var(--paper); }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

/* ---------- 2. Tokens shared by both themes --------------------------------- */
:root {
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-6: 24px; --s-8: 32px; --s-12: 48px; --s-16: 64px; --s-24: 96px;
  --gutter: clamp(1.25rem, 4.5vw, 5rem);
  --gap: 24px;
  --container: 1440px;
  --section: clamp(3.25rem, 8vh, 6rem); --section-sm: clamp(2.75rem, 6vh, 4.5rem);
  --measure: 66ch;
  --hd-h: 64px;
  --hd-logo: 30px;
  --t: 160ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* type scale (themes override family, weight, tracking, and the Arabic sizes) */
  --fs-display: clamp(2.5rem, 1rem + 3.6vw, 4rem);
  --fs-display-2: clamp(2rem, 1.25rem + 2.4vw, 3.25rem);
  --fs-headline: clamp(1.625rem, 1.15rem + 1.5vw, 2.25rem);
  --fs-title: 1.3125rem;
  --fs-lede: 1.1875rem;
  --fs-body: 1.0625rem;
  --fs-body-sm: 0.9375rem;
  --fs-label: 0.8125rem;
  --fs-num: 0.8125rem;
  --lh-display: 1.04; --lh-display-2: 1.1; --lh-headline: 1.18; --lh-title: 1.3; --lh-lede: 1.5; --lh-body: 1.6; --lh-label: 1.45;
}
@media (min-width: 720px) { :root { --hd-h: 76px; --hd-logo: 36px; } }
@media (min-width: 1180px) { :root { --hd-h: 84px; --hd-logo: 42px; } }
@media (min-width: 1440px) { :root { --gap: 32px; } }
html[lang="ar"] { --lh-display: 1.3; --lh-display-2: 1.35; --lh-headline: 1.4; --lh-title: 1.5; --lh-lede: 1.75; --lh-body: 1.9; --lh-label: 1.6; --fs-body: 1.125rem; --fs-body-sm: 1rem; --fs-label: 0.9rem; --measure: 56ch; }

/* ---------- 3. Type roles --------------------------------------------------- */
.display   { font-family: var(--font-display); font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: var(--ls-display); font-weight: var(--fw-display); text-wrap: balance; }
.display-2 { font-family: var(--font-display); font-size: var(--fs-display-2); line-height: var(--lh-display-2); letter-spacing: var(--ls-display-2); font-weight: var(--fw-display); text-wrap: balance; }
.headline  { font-family: var(--font-display); font-size: var(--fs-headline); line-height: var(--lh-headline); letter-spacing: var(--ls-headline); font-weight: var(--fw-display); text-wrap: balance; }
.title     { font-family: var(--font-display); font-size: var(--fs-title); line-height: var(--lh-title); letter-spacing: var(--ls-title); font-weight: var(--fw-title); }
.lede      { font-size: var(--fs-lede); line-height: var(--lh-lede); max-width: var(--measure); }
.body      { font-size: var(--fs-body); line-height: var(--lh-body); max-width: var(--measure); }
.body-sm   { font-size: var(--fs-body-sm); line-height: var(--lh-body); max-width: var(--measure); }
.label     { font-family: var(--font-ui); font-size: var(--fs-label); line-height: var(--lh-label); letter-spacing: var(--ls-label); font-weight: var(--fw-label); }
.num       { font-family: var(--font-mono); font-size: var(--fs-num); letter-spacing: var(--ls-num); font-weight: 400; font-variant-numeric: tabular-nums; color: var(--ink-mute); }
.muted     { color: var(--ink-mute); }
.quiet     { color: var(--ink-mute); }
.ltr       { direction: ltr; unicode-bidi: isolate; display: inline-block; }
html[lang="ar"] :is(.label, .num) { letter-spacing: 0; text-transform: none; }

/* ---------- 4. Layout ------------------------------------------------------- */
.wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--gap); row-gap: var(--s-8); }
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .c-1-4  { grid-column: 1 / span 4; }
  .c-1-5  { grid-column: 1 / span 5; }
  .c-1-6  { grid-column: 1 / span 6; }
  .c-1-7  { grid-column: 1 / span 7; }
  .c-1-8  { grid-column: 1 / span 8; }
  .c-6-12 { grid-column: 6 / span 7; }
  .c-7-12 { grid-column: 7 / span 6; }
  .c-9-12 { grid-column: 9 / span 4; }
}
main { flex: 1 0 auto; }
.section { padding-block: var(--section); }
.section--rule { border-top: 1px solid var(--rule); }
.section--deep { background: var(--paper-2); }
.section__head { margin-bottom: var(--s-8); }
.section__head--split { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-3) var(--s-6); }
.stack { display: flex; flex-direction: column; gap: var(--s-4); }
.stack--tight { display: flex; flex-direction: column; gap: var(--s-2); }
.stack--loose { display: flex; flex-direction: column; gap: var(--s-8); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6); }
.skip { position: absolute; inset-inline-start: var(--gutter); top: -100px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; font-family: var(--font-ui); font-size: var(--fs-label); }
.skip:focus { top: var(--s-3); }
:target, [id] { scroll-margin-top: calc(var(--hd-h) + 16px); }

/* ---------- 5. Controls ----------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 22px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); font-family: var(--font-ui); font-size: var(--fs-label); font-weight: var(--fw-btn); letter-spacing: var(--ls-label); text-decoration: none; line-height: 1.2; transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease); }
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--paper-2); border-color: var(--ink); color: var(--ink); }
.section--deep .btn--secondary:hover { background: var(--paper); }
.btn[disabled] { opacity: .5; cursor: default; }
.lnk { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-ui); font-size: var(--fs-label); font-weight: var(--fw-label); letter-spacing: var(--ls-label); text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid var(--rule-strong); transition: border-color var(--t) var(--ease), color var(--t) var(--ease); }
.lnk:hover, .lnk:focus-visible { border-color: var(--accent); color: var(--accent); }
.lnk svg, .arrow { width: 14px; height: 14px; flex: none; transition: transform var(--t) var(--ease); }
.lnk:hover svg { transform: translateX(2px); }
html[dir="rtl"] .arrow { transform: scaleX(-1); }
html[dir="rtl"] .lnk:hover svg { transform: scaleX(-1) translateX(2px); }
html[dir="rtl"] .arrow--back { transform: none; }
html[dir="ltr"] .arrow--back { transform: scaleX(-1); }
.textlink { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule-strong); transition: color var(--t) var(--ease); }
.textlink:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ---------- 6. Header, menu, phone bar -------------------------------------- */
.hd { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--rule); }
.hd__bar { height: var(--hd-h); display: flex; align-items: center; gap: var(--s-4) clamp(1rem, 2.5vw, 2.5rem); }
.hd__mark { display: block; flex: none; height: var(--hd-logo); }
.hd__mark img { height: 100%; width: auto; }
.hd__nav { display: none; }
.nav { display: flex; flex-wrap: nowrap; white-space: nowrap; gap: clamp(1rem, 2.2vw, 2.25rem); font-family: var(--font-ui); font-size: var(--fs-label); letter-spacing: var(--ls-label); font-weight: var(--fw-label); }
.nav a { text-decoration: none; color: var(--ink-soft); padding-block: 6px; position: relative; transition: color var(--t) var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a[aria-current] { color: var(--ink); }
.nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); }
.hd__tools { display: flex; align-items: center; gap: clamp(.75rem, 1.6vw, 1.25rem); margin-inline-start: auto; }
.lang { font-family: var(--font-ui); font-size: var(--fs-label); font-weight: var(--fw-label); text-decoration: none; padding: 8px 10px; border: 1px solid var(--rule-strong); min-height: 40px; display: inline-flex; align-items: center; transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease); }
.lang:hover { border-color: var(--ink); background: var(--paper-2); }
html[lang="en"] .lang { font-family: 'IBM Plex Sans Arabic', var(--font-ui); font-size: 0.95rem; letter-spacing: 0; }
html[lang="ar"] .lang { font-family: var(--font-ui); letter-spacing: 0.02em; }
.hd .hd__cta { display: none; }
.menu-btn { font-family: var(--font-ui); font-size: var(--fs-label); letter-spacing: var(--ls-label); font-weight: var(--fw-label); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 0; }
.menu-btn svg { width: 18px; height: 18px; flex: none; }
@media (min-width: 720px) { .hd .hd__cta { display: inline-flex; } }
@media (min-width: 1180px) { .hd__nav { display: block; } .hd .menu-btn { display: none; } }

.menu { position: fixed; inset: 0; z-index: 60; background: var(--paper); overflow: auto; display: none; }
.menu.is-open { display: block; }
body.menu-open { overflow: hidden; }
.menu .wrap { display: flex; flex-direction: column; min-height: 100%; padding-block: var(--s-4) var(--s-8); }
.menu__head { display: flex; align-items: center; justify-content: space-between; min-height: var(--hd-h); border-bottom: 1px solid var(--rule); margin-bottom: var(--s-6); }
.menu__mark { height: var(--hd-logo); }
.menu__mark img { height: 100%; width: auto; }
.menu__links a { display: flex; align-items: baseline; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-family: var(--font-display); font-size: var(--fs-headline); line-height: var(--lh-headline); font-weight: var(--fw-display); }
.menu__links a[aria-current]::before { content: ""; width: 8px; height: 8px; background: var(--accent); flex: none; align-self: center; }
.menu__foot { margin-top: auto; padding-top: var(--s-8); display: flex; flex-direction: column; gap: var(--s-4); }
.menu__foot .label a { text-decoration: none; }

.actionbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; background: var(--bar-bg); color: var(--bar-ink); display: flex; align-items: center; gap: var(--s-4); padding: var(--s-3) var(--gutter); padding-bottom: calc(var(--s-3) + env(safe-area-inset-bottom)); border-top: 1px solid var(--bar-rule); }
.actionbar .btn { flex: 1 1 auto; background: var(--bar-btn-bg); color: var(--bar-btn-ink); border-color: var(--bar-btn-bg); }
.actionbar .btn:hover { background: var(--bar-btn-bg); }
.actionbar__wa { width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--bar-rule); color: var(--bar-ink); }
.actionbar__wa svg { width: 22px; height: 22px; }
.actionbar :focus-visible { outline: 2px solid var(--bar-focus); outline-offset: 2px; }
.actionbar .btn:focus-visible { outline-offset: 3px; }
.actionbar { transition: transform var(--t) var(--ease), visibility var(--t); }
body.bar-hidden .actionbar { transform: translateY(100%); visibility: hidden; }
body:has(> .actionbar) { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
@media (min-width: 720px) { .actionbar { display: none; } body:has(> .actionbar) { padding-bottom: 0; } }

/* ---------- 7. Homepage ----------------------------------------------------- */
.hero { padding-block: clamp(2.75rem, 7vh, 5.5rem) clamp(3rem, 8vh, 6rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-12) var(--gap); }
.hero__lead { display: flex; flex-direction: column; gap: var(--s-6); }
.hero__copy { max-width: 52ch; }
.hero .display { max-width: 16ch; }
html[lang="ar"] .hero .display { max-width: 20ch; }
.hero__actions .btn { display: none; }
@media (min-width: 720px) {
  .hero__actions .btn { display: inline-flex; }
  .hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .hero__lead { grid-column: 1 / span 7; }
  .guide { grid-column: 8 / span 5; }
}
@media (min-width: 1180px) { .guide { grid-column: 9 / span 4; } }

/* the quiet service guide: a vertical rule with three short ticks */
.guide { border-inline-start: 1px solid var(--rule-strong); padding-inline-start: var(--s-6); display: flex; flex-direction: column; gap: var(--s-4); align-self: stretch; }
.guide__title { font-family: var(--font-ui); font-size: var(--fs-label); letter-spacing: var(--ls-label); font-weight: var(--fw-label); color: var(--accent); }
.guide__list { display: flex; flex-direction: column; gap: var(--s-2); }
.guide__list li { position: relative; }
.guide__list li::before { content: ""; position: absolute; inset-inline-start: calc(-1 * var(--s-6) - 1px); top: 1.1em; width: var(--s-3); height: 1px; background: var(--rule-strong); }
.guide__list a { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: var(--s-2); align-items: baseline; padding: var(--s-2) 0; text-decoration: none; }
.guide__list .num { grid-row: 1 / span 2; padding-top: .35em; }
.guide__name { font-family: var(--font-display); font-size: var(--fs-title); line-height: var(--lh-title); font-weight: var(--fw-title); transition: color var(--t) var(--ease); }
.guide__sub { grid-column: 2; font-family: var(--font-ui); font-size: var(--fs-label); line-height: var(--lh-label); color: var(--ink-mute); }
.guide__list a:hover .guide__name, .guide__list a:focus-visible .guide__name { color: var(--accent); }
.guide__note { font-family: var(--font-ui); font-size: var(--fs-label); line-height: var(--lh-label); color: var(--ink-mute); max-width: 36ch; margin-top: auto; }

/* six open service previews */
.svc-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--gap); border-top: 1px solid var(--rule-strong); }
@media (min-width: 720px) { .svc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .svc-list .svc:nth-child(2) { border-top: 0; } }
.svc { border-bottom: 1px solid var(--rule); padding: var(--s-4) 0 var(--s-4); transition: background-color var(--t) var(--ease); }
.svc:has(.svc__toggle[aria-expanded="true"]) { background: var(--row-hover); box-shadow: 0 0 0 var(--s-3) var(--row-hover); padding-bottom: 20px; }
.svc__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); }
.svc__name { font-family: var(--font-display); font-size: var(--fs-title); line-height: var(--lh-title); font-weight: var(--fw-title); text-decoration: none; transition: color var(--t) var(--ease); }
.svc__name:hover, .svc__name:focus-visible { color: var(--accent); }
.svc__note { margin-top: var(--s-1); font-size: var(--fs-body-sm); line-height: var(--lh-body); color: var(--ink-soft); max-width: 48ch; }
.svc__toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; min-width: 44px; padding: 4px 0 4px 8px; font-family: var(--font-ui); font-size: var(--fs-label); letter-spacing: var(--ls-label); color: var(--ink-mute); flex: none; transition: color var(--t) var(--ease); }
.svc__toggle svg { width: 14px; height: 14px; }
.svc__toggle:hover { color: var(--accent); }
.svc__toggle[aria-expanded="true"] { color: var(--accent); }
.svc__toggle[aria-expanded="true"] svg .v { opacity: 0; }
.svc__panel { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: var(--s-4); }
.svc__panel .lnk { align-self: flex-start; }
.svc__lede { font-size: var(--fs-body-sm); line-height: var(--lh-body); max-width: 48ch; }
.svc__items { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-body-sm); color: var(--ink-soft); }
.svc__items li { display: flex; gap: var(--s-3); }
.svc__items li::before { content: ""; width: 10px; height: 1px; background: var(--rule-strong); flex: none; margin-top: .75em; }

/* approach: three steps joined by a line */
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4) var(--gap); margin-top: var(--s-4); }
@media (min-width: 600px) { .steps { gap: var(--s-6) var(--gap); } }
.steps li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: var(--s-2); row-gap: 2px; position: relative; }
.steps .num { padding-top: .4em; }
.step__text { grid-column: 2; }
@media (min-width: 600px) { .steps li { display: flex; flex-direction: column; gap: var(--s-2); } .steps .num { padding-top: 0; } }
.steps .num { color: var(--accent); }
.step__name { font-family: var(--font-display); font-size: var(--fs-title); line-height: var(--lh-title); font-weight: var(--fw-title); }
.step__text { font-size: var(--fs-body-sm); line-height: var(--lh-body); color: var(--ink-soft); max-width: 30ch; }
@media (min-width: 600px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps li::after { content: ""; position: absolute; top: .55em; inset-inline-start: 2.25rem; inset-inline-end: var(--s-4); height: 1px; background: var(--rule-strong); }
  .steps li:last-child::after { display: none; }
  .steps--stack { grid-template-columns: minmax(0, 1fr); }
  .steps--stack li::after { display: none; }
}
@media (min-width: 900px) {
  .steps--stack { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps--stack li::after { display: block; }
}
.steps__label { margin-bottom: 0; }
.steps__note { margin-top: var(--s-6); }

/* people: the featured pair sits centred in the container; captions read from the start edge */
.section--people { padding-block: var(--section-sm, var(--section)); }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-6); max-width: 760px; margin-inline: auto; }
.people .person { display: flex; flex-direction: column; gap: var(--s-2); }
.people .person__name { font-size: var(--fs-title); margin-top: var(--s-2); }
.people__more { margin-top: var(--s-8); text-align: center; }
@media (max-width: 379px) { .people { grid-template-columns: minmax(0, 1fr); max-width: 300px; } }
@media (min-width: 600px) { .people { gap: var(--s-8) var(--s-12); } }
@media (min-width: 900px) { .people { grid-template-columns: repeat(2, 320px); justify-content: center; gap: var(--s-8) 64px; max-width: none; } .people .person__name { font-size: 1.5rem; } }
.people .person--m { max-width: none; }
.person { display: flex; flex-direction: column; gap: var(--s-2); }
.person__photo { display: block; }
.portrait { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; background: var(--paper-2); filter: var(--portrait-filter); transition: filter var(--t) var(--ease); }
.person__photo:hover .portrait { filter: var(--portrait-filter-hover); }
.person__name { font-family: var(--font-display); font-size: var(--fs-title); line-height: var(--lh-title); font-weight: var(--fw-title); text-decoration: none; margin-top: var(--s-2); transition: color var(--t) var(--ease); }
.person__name:hover { color: var(--accent); }
.person__role { font-family: var(--font-ui); font-size: var(--fs-label); line-height: var(--lh-label); color: var(--ink-soft); }
.person--m { max-width: 320px; }

/* enquiry */
.enquiry__form { order: -1; }
@media (min-width: 720px) { .enquiry__form { order: 0; } }
.consult__form { background: var(--paper); padding: var(--s-6); border: 1px solid var(--rule); }
@media (min-width: 900px) { .consult__form { padding: var(--s-8); } }
.contact-lines { display: flex; flex-direction: column; gap: var(--s-3); }
.contact-lines li { display: flex; flex-direction: column; gap: 2px; }
.contact-lines .label { color: var(--ink-mute); }
.contact-lines a { text-decoration: none; }
.contact-lines a:hover { color: var(--accent); }
.contact-lines .value { font-size: var(--fs-body); align-self: flex-start; }
.contact-lines .textlink { align-self: flex-start; margin-top: 2px; }

/* ---------- 8. Inner pages -------------------------------------------------- */
.page-head { padding-block: clamp(2.25rem, 5vh, 4rem) var(--s-8); }
.page-head .lede { margin-top: var(--s-4); }
.page-head .label { margin-top: var(--s-4); }
.page-body { padding-block: var(--s-4) var(--section); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); font-family: var(--font-ui); font-size: var(--fs-label); letter-spacing: var(--ls-label); font-weight: var(--fw-label); color: var(--ink-mute); margin-bottom: var(--s-6); }
.crumbs a { text-decoration: none; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 6px; }
.crumbs a:hover { color: var(--accent); }
.crumbs .folio { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.quote { font-family: var(--font-display); font-size: var(--fs-headline); line-height: var(--lh-headline); letter-spacing: var(--ls-headline); font-weight: var(--fw-display); font-style: var(--quote-style); max-width: 30ch; text-wrap: balance; padding-top: var(--s-4); margin-top: var(--s-6); position: relative; }
.quote::before { content: ""; display: block; width: 2rem; height: 2px; background: var(--accent); margin-bottom: var(--s-4); }
html[lang="ar"] .quote { font-style: normal; }

.list-ruled { border-top: 1px solid var(--rule); }
.list-ruled li { padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 4px; }
.clauses { counter-reset: clause; border-top: 1px solid var(--rule); }
.clauses li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); counter-increment: clause; }
.clauses li::before { content: counter(clause) "."; font-family: var(--font-mono); font-size: var(--fs-num); color: var(--ink-mute); padding-top: .35em; grid-row: 1 / span 2; }
html[lang="ar"] .clauses li::before { content: counter(clause, arabic-indic) "."; }
.clause__t { font-family: var(--font-display); font-size: var(--fs-title); line-height: var(--lh-title); font-weight: var(--fw-title); }
.clause__d { grid-column: 2; font-size: var(--fs-body-sm); line-height: var(--lh-body); color: var(--ink-soft); max-width: 60ch; }
.list-ruled--titled li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px var(--gap); }
.list-ruled--titled .clause__d { grid-column: 1; }
@media (min-width: 600px) { .list-ruled--titled li { grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); align-items: baseline; } .list-ruled--titled .clause__d { grid-column: 2; } }
.cite { display: flex; flex-direction: column; gap: var(--s-2); padding-top: var(--s-4); border-top: 1px solid var(--rule); }
.cite__label { font-family: var(--font-ui); font-size: var(--fs-label); letter-spacing: var(--ls-label); font-weight: var(--fw-label); color: var(--ink-mute); }
.cite ul { font-family: var(--font-ui); font-size: var(--fs-body-sm); line-height: var(--lh-body); color: var(--ink-soft); }
.panel { background: var(--paper-2); padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-4); border: 1px solid var(--rule); }
.panel .btn { align-self: flex-start; }
.svc-cta { border-top: 1px solid var(--rule); padding-top: var(--s-6); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-6); }
.svc-cta__note { font-family: var(--font-ui); font-size: var(--fs-label); line-height: var(--lh-label); color: var(--ink-mute); }
@media (max-width: 719px) { .svc-cta { display: none; } }

/* comparison table (package) */
.tiers { width: 100%; border-collapse: collapse; border-top: 1px solid var(--rule); }
.tiers caption { text-align: start; caption-side: bottom; padding-top: var(--s-3); }
.tiers th, .tiers td { text-align: start; padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.tiers thead th { font-family: var(--font-ui); font-size: var(--fs-label); letter-spacing: var(--ls-label); font-weight: var(--fw-label); color: var(--ink-mute); }
.tiers tbody th { font-family: var(--font-display); font-size: var(--fs-title); font-weight: var(--fw-title); line-height: var(--lh-title); padding-inline-end: var(--s-6); width: 40%; }
.tiers td { font-size: var(--fs-body); color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* aside blocks */
.aside { display: flex; flex-direction: column; gap: var(--s-8); }
.aside__block { border-top: 1px solid var(--rule); padding-top: var(--s-4); display: flex; flex-direction: column; gap: var(--s-3); }
.aside__title { font-family: var(--font-ui); font-size: var(--fs-label); letter-spacing: var(--ls-label); font-weight: var(--fw-label); color: var(--ink-mute); }
.aside__list { display: flex; flex-direction: column; gap: 8px; }
.aside__list a { text-decoration: none; font-size: var(--fs-body-sm); line-height: 1.45; display: inline-flex; gap: 10px; align-items: baseline; transition: color var(--t) var(--ease); }
.aside__list a:hover { color: var(--accent); }
@media (min-width: 720px) and (max-width: 899px) {
  .page-body > .c-1-7, .page-body > .c-9-12, .page-body > .c-6-12, .page-body > .c-1-4 { grid-column: 1 / -1; }
  .page-body > .aside { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
}

/* service directory */
.dir__groups { display: flex; flex-direction: column; gap: var(--s-12); }
.dir__group .title { margin-bottom: var(--s-4); color: var(--ink-mute); }
.dir { border-top: 1px solid var(--rule-strong); }
.dir__row { display: grid; grid-template-columns: minmax(0, 1fr) 14px; column-gap: var(--s-4); align-items: baseline; padding: var(--s-4) 0; border-bottom: 1px solid var(--rule); text-decoration: none; transition: background-color var(--t) var(--ease); }
.dir__row:hover { background: var(--row-hover); box-shadow: 0 0 0 var(--s-3) var(--row-hover); }
.dir__name { font-family: var(--font-display); font-size: var(--fs-title); line-height: var(--lh-title); font-weight: var(--fw-title); transition: color var(--t) var(--ease); }
.dir__row:hover .dir__name { color: var(--accent); }
.dir__note { grid-column: 1; font-size: var(--fs-body-sm); line-height: var(--lh-body); color: var(--ink-soft); max-width: 60ch; }
.dir__row .arrow { grid-column: 2; grid-row: 1; align-self: center; color: var(--ink-mute); }
@media (min-width: 900px) { .dir__row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) 14px; column-gap: var(--gap); } .dir__note { grid-column: 2; grid-row: 1; } .dir__row .arrow { grid-column: 3; } }

/* team grid and profile */
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-8) var(--gap); }
@media (min-width: 600px) { .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.profile__portrait { max-width: 420px; }
.profile__body .aside__block { margin-top: var(--s-2); }

/* pager */
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); border-top: 1px solid var(--rule); padding-top: var(--s-6); margin-bottom: var(--section); }
.pager a { text-decoration: none; display: flex; flex-direction: column; gap: 4px; max-width: 48%; }
.pager__next { margin-inline-start: auto; text-align: end; align-items: flex-end; }
.pager a:only-child { max-width: 100%; }
.pager .label { color: var(--ink-mute); }
.pager .title { transition: color var(--t) var(--ease); }
.pager a:hover .title { color: var(--accent); }

/* ---------- 9. Forms -------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: var(--s-6); }
.form__hint { font-family: var(--font-ui); font-size: var(--fs-body-sm); line-height: var(--lh-body); color: var(--ink-soft); max-width: 60ch; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6) var(--gap); }
@media (min-width: 600px) { .field--split { grid-template-columns: 1fr 1fr; } }
.field__label { font-family: var(--font-ui); font-size: var(--fs-label); letter-spacing: var(--ls-label); font-weight: var(--fw-label); color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.field__label small { font-size: var(--fs-label); font-weight: 400; color: var(--ink-mute); letter-spacing: 0; }
.field__label .req { color: var(--ink-soft); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 0; background: transparent; border: 0; caret-color: var(--accent); border-bottom: 1px solid var(--control); border-radius: 0; font-size: var(--fs-body); color: var(--ink); transition: border-color var(--t) var(--ease); }
.field textarea { resize: vertical; min-height: 110px; border: 1px solid var(--control); padding: 10px 12px; }
.field select { appearance: none; -webkit-appearance: none; padding-inline-end: 28px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 5l4 4 4-4' fill='none' stroke='%236B635A' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right center; background-size: 14px; cursor: pointer; }
html[dir="rtl"] .field select { background-position: left center; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.field textarea:focus { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.field[data-invalid] textarea { border-color: var(--error); }
.field__error { display: none; font-family: var(--font-ui); font-size: var(--fs-label); line-height: var(--lh-label); color: var(--error); }
.field[data-invalid] .field__error { display: block; }
.field[data-invalid] input, .field[data-invalid] select { border-bottom-color: var(--error); }
.form__actions { margin-top: var(--s-2); }
.form__note { font-size: var(--fs-body-sm); line-height: var(--lh-body); color: var(--ink-soft); max-width: 52ch; }
.form__note.is-prompt { color: var(--ink); }
.form__alt { margin-top: var(--s-4); }
.form__alt a { color: inherit; }

/* ---------- 10. Footer ------------------------------------------------------ */
.footer { background: var(--foot-bg); color: var(--foot-ink); border-top: 1px solid var(--foot-rule); }
.footer .wrap { padding-block: 40px var(--s-6); }
@media (min-width: 720px) { .footer .wrap { padding-block: var(--s-12) var(--s-8); } }
.footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s-8) var(--gap); }
.footer .f-brand { grid-column: 1 / -1; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } .footer .f-brand { grid-column: 1 / span 6; } .footer .f-nav { grid-column: 7 / span 3; } .footer .f-contact { grid-column: 10 / span 3; } }
.footer__mark { display: block; height: 34px; width: max-content; }
.footer__mark img { height: 100%; width: auto; filter: var(--foot-logo-filter); }
.footer__place { font-family: var(--font-ui); font-size: var(--fs-label); color: var(--foot-mute); margin-top: var(--s-3); }
.footer__title { font-family: var(--font-ui); font-size: var(--fs-label); letter-spacing: var(--ls-label); font-weight: var(--fw-label); color: var(--foot-mute); margin-bottom: var(--s-3); }
.footer ul { display: flex; flex-direction: column; gap: 8px; }
.footer a { color: var(--foot-ink); text-decoration: none; font-family: var(--font-ui); font-size: var(--fs-body-sm); line-height: 1.5; transition: color var(--t) var(--ease); }
.footer a:hover { color: var(--foot-mute); }
.footer__bottom { margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--foot-rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); align-items: center; }
.footer__bottom .label { color: var(--foot-mute); }
.footer .lang { border-color: var(--foot-rule); color: var(--foot-ink); }
.footer .lang:hover { border-color: var(--foot-ink); background: transparent; }
.footer :focus-visible { outline-color: var(--foot-ink); }
.social { display: flex; gap: var(--s-3); margin-top: var(--s-4); }
.social a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--foot-rule); transition: border-color var(--t) var(--ease); }
.social a:hover { border-color: var(--foot-ink); }
.social svg { width: 18px; height: 18px; }

/* ---------- 11. Print ------------------------------------------------------- */
@media print { .hd, .menu, .actionbar, .footer .social, .svc__toggle { display: none !important; } .svc__panel[hidden] { display: block !important; } }
