/* Semantic Vertex — site.css · one-page bilingual site · v1.0 · 2026-11-24
   Three brand colours, Manrope + IBM Plex Sans Arabic, 12-column grid, one lattice motif.
   Logical properties throughout so the same sheet serves /en/ (ltr) and /ar/ (rtl). */

/* === tokens:start === (mirrors design-system/project/tokens.json — change values there first) */
:root {
  --ink: #1a1a2e;
  --paper: #f4f2ed;
  --vertex-red: #d54225;

  --bg: var(--paper);
  --fg: var(--ink);
  --fg-muted: #575663;
  --surface: #ebe9e5;
  --line: #cdcbcb;
  --control-border: #7c7b84;
  --primary-bg: var(--ink);
  --primary-fg: var(--paper);
  --primary-hover: #343445;
  --primary-active: #10101c;
  --focus: var(--ink);
  --shadow-menu: 0 8px 24px rgba(26, 26, 46, 0.08);

  --font-sans: Manrope, Arial, sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", Tahoma, sans-serif;

  --space-1: 4px;  --space-2: 8px;   --space-3: 12px;  --space-4: 16px;  --space-6: 24px;
  --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px; --space-32: 128px;

  --radius-panel: 0px; --radius-control: 4px; --radius-card: 8px;

  --container-max: 1200px;
  --gutter-xs: 16px; --gutter-s: 24px; --gutter-m: 32px; --gutter-l: 64px;
  --section-s: 48px; --section-m: 64px; --section-l: 96px;
  --header-s: 72px; --header-l: 88px; --scroll-padding: 104px; --grid-gap: 24px;

  --button-height: 48px; --target-min: 44px; --icon: 32px;
  --logo-horizontal: 264px; --logo-side: 180px;
  --logo-horizontal-min: 240px; --logo-side-min: 180px; --logo-symbol-min: 32px;
  --measure-lead: 58ch; --measure-body: 65ch; --measure-body-ar: 52ch;

  --hairline: 1px; --control-width: 1px; --focus-width: 2px; --focus-offset: 4px;

  --duration-fast: 150ms; --duration-disclosure: 240ms; --ease-standard: cubic-bezier(0.2, 0.7, 0.2, 1);
}
[data-theme="dark"] {
  --bg: var(--ink);
  --fg: var(--paper);
  --fg-muted: #c4c2c3;
  --surface: #252538;
  --line: #4a4a58;
  --control-border: #929197;
  --primary-bg: var(--paper);
  --primary-fg: var(--ink);
  --primary-hover: #dedcda;
  --primary-active: #cfcdcd;
  --focus: var(--paper);
  --shadow-menu: 0 8px 24px rgba(0, 0, 0, 0.3);
}
/* === tokens:end === */

/* Responsive aliases: one gutter, one section rhythm, one header height per breakpoint. */
:root { --gutter: var(--gutter-s); --section: var(--section-s); --header-h: var(--header-s); }
@media (max-width: 359px)  { :root { --gutter: var(--gutter-xs); } }
@media (min-width: 768px)  { :root { --gutter: var(--gutter-m); --section: var(--section-m); } }
@media (min-width: 1024px) { :root { --gutter: var(--gutter-l); --section: var(--section-l); --header-h: var(--header-l); } }
@media (min-width: 1280px) { :root { --grid-gap: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
[lang="ar"] { font-family: var(--font-arabic); letter-spacing: normal; text-transform: none; }
[lang="ar"] body, [lang="ar"] .body { line-height: 1.9; }
[lang="en"] { font-family: var(--font-sans); }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: var(--space-1); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
:focus:not(:focus-visible) { outline: none; }
::selection { background: var(--fg); color: var(--bg); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.container { width: min(100% - var(--gutter) * 2, var(--container-max)); margin-inline: auto; }

/* Skip link: hidden until focused, then a primary pill at the top-start corner. */
.skip-link {
  position: absolute; inset-inline-start: var(--space-4); top: var(--space-4); z-index: 100;
  padding: var(--space-3) var(--space-6);
  background: var(--primary-bg); color: var(--primary-fg);
  border-radius: var(--radius-control); font-weight: 600; text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--duration-fast) var(--ease-standard);
}
.skip-link:focus { transform: none; }

/* ---------- Text styles ---------- */
.eyebrow {
  font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-muted); margin: 0 0 var(--space-3);
}
[lang="ar"] .eyebrow { letter-spacing: normal; text-transform: none; line-height: 24px; }

.section-heading {
  font-size: 28px; line-height: 34px; letter-spacing: -0.01em; max-width: 22ch;
}
@media (min-width: 768px) { .section-heading { font-size: 40px; line-height: 48px; letter-spacing: -0.02em; } }
[lang="ar"] .section-heading { font-size: 28px; line-height: 42px; letter-spacing: normal; max-width: 24ch; }
@media (min-width: 768px) { [lang="ar"] .section-heading { font-size: 36px; line-height: 52px; } }

.lead { font-size: 18px; line-height: 28px; color: var(--fg-muted); max-width: var(--measure-lead); }
@media (min-width: 768px) { .lead { font-size: 20px; line-height: 32px; } }
[lang="ar"] .lead { line-height: 32px; max-width: var(--measure-body-ar); }
@media (min-width: 768px) { [lang="ar"] .lead { line-height: 37px; } }

.body { max-width: var(--measure-body); }
[lang="ar"] .body { max-width: var(--measure-body-ar); }

.label { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--fg-muted); }
[lang="ar"] .label { line-height: 24px; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--button-height); padding: var(--space-3) var(--space-6);
  border: var(--control-width) solid var(--primary-bg); border-radius: var(--radius-control);
  background: var(--primary-bg); color: var(--primary-fg);
  font-size: 15px; line-height: 20px; font-weight: 600; text-decoration: none; text-align: center;
  transition: background-color var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard);
}
[lang="ar"] .button { line-height: 24px; }
.button:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.button:active { background: var(--primary-active); border-color: var(--primary-active); }
.button--secondary { background: transparent; color: var(--fg); border-color: var(--control-border); }
.button--secondary:hover { background: var(--surface); border-color: var(--fg); }
.button--secondary:active { background: var(--line); border-color: var(--fg); }
.button:disabled, .button[aria-disabled="true"] { opacity: 0.42; pointer-events: none; }

.actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-8); }
@media (max-width: 639px) { .actions { flex-direction: column; } .actions .button { width: 100%; } }

/* Text link with a typographic arrow (→ in LTR, ← in RTL, supplied by the content). */
.text-link {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--target-min);
  font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 6px;
}
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: var(--hairline) solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; min-height: var(--target-min); text-decoration: none; }
.brand__side { width: var(--logo-side); }
.brand__horizontal { display: none; width: var(--logo-horizontal); }
@media (min-width: 1024px) { .brand__side { display: none; } .brand__horizontal { display: block; } }

.nav { display: none; }
@media (min-width: 1024px) { .nav { display: flex; align-items: center; gap: var(--space-8); } }
.nav__link {
  display: inline-flex; align-items: center; min-height: var(--target-min);
  font-size: 15px; line-height: 20px; font-weight: 500; text-decoration: none;
  text-underline-offset: 6px;
  padding-inline: 6px; margin-inline: -6px;
}
.nav__link:hover, .nav__link:focus-visible, .nav__link[aria-current="true"] { text-decoration: underline; }
.nav__lang {
  margin-inline-start: var(--space-2); padding-inline-start: var(--space-8);
  border-inline-start: var(--hairline) solid var(--line);
}
[lang="ar"] .nav__link { line-height: 24px; }

/* Menu button: two bars closed, a cross open; 44×44 target. */
.menu-button {
  display: inline-grid; place-items: center;
  width: var(--target-min); height: var(--target-min);
  border: var(--control-width) solid var(--control-border); border-radius: var(--radius-control);
  background: transparent; color: var(--fg);
  transition: background-color var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard);
}
.menu-button:hover { background: var(--surface); border-color: var(--fg); }
.menu-button:active { background: var(--line); }
.menu-button[aria-expanded="true"] { background: var(--primary-bg); color: var(--primary-fg); border-color: var(--primary-bg); }
.menu-button__icon { width: 20px; height: 20px; }
.menu-button__icon .icon-close { display: none; }
.menu-button[aria-expanded="true"] .icon-open { display: none; }
.menu-button[aria-expanded="true"] .icon-close { display: block; }
@media (min-width: 1024px) { .menu-button { display: none; } }

/* Mobile menu panel: sits under the header, full width, hairline rows, 56px targets. */
.mobile-menu {
  position: absolute; inset-inline: 0; top: 100%;
  background: var(--bg);
  border-bottom: var(--hairline) solid var(--line);
  box-shadow: var(--shadow-menu);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--duration-disclosure) var(--ease-standard),
              transform var(--duration-disclosure) var(--ease-standard),
              visibility 0s linear var(--duration-disclosure);
}
.mobile-menu[data-open="true"] { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (min-width: 1024px) { .mobile-menu { display: none; } }
.mobile-menu__link {
  display: flex; align-items: center; min-height: 56px;
  padding: var(--space-3) var(--gutter);
  font-size: 18px; line-height: 26px; font-weight: 500; text-decoration: none;
  border-top: var(--hairline) solid var(--line);
  transition: background-color var(--duration-fast) var(--ease-standard);
}
.mobile-menu__link:hover { background: var(--surface); }
.mobile-menu__link:active { background: var(--line); }
.mobile-menu__link:focus-visible { outline-offset: -4px; }
.mobile-menu__lang { color: var(--fg-muted); }
.mobile-menu__lang:hover { color: var(--fg); }
[lang="ar"] .mobile-menu__link { line-height: 30px; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section + .section:not([data-theme="dark"]) { border-top: var(--hairline) solid var(--line); }
.section-intro { margin-bottom: var(--space-12); }

/* ---------- Hero ---------- */
.hero { padding-block: var(--space-12) var(--section); }
@media (min-width: 1024px) { .hero { padding-block: var(--space-24) var(--section); } }
.hero__grid { display: grid; gap: var(--space-12) var(--grid-gap); }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }
  .hero__content { grid-column: 1 / span 7; }
  .hero__figure { grid-column: 8 / span 5; }
}
.hero__title {
  font-size: 40px; line-height: 44px; letter-spacing: -0.02em; max-width: 12ch;
  text-wrap: balance;
}
@media (max-width: 359px) { .hero__title { font-size: 36px; line-height: 40px; } }
@media (min-width: 768px) { .hero__title { font-size: 56px; line-height: 60px; } }
@media (min-width: 1024px) { .hero__title { font-size: 72px; line-height: 76px; letter-spacing: -0.03em; } }
[lang="ar"] .hero__title { font-size: 36px; line-height: 50px; letter-spacing: normal; max-width: 14ch; }
@media (max-width: 359px) { [lang="ar"] .hero__title { font-size: 32px; line-height: 44px; } }
@media (min-width: 768px) { [lang="ar"] .hero__title { font-size: 52px; line-height: 70px; } }
@media (min-width: 1024px) { [lang="ar"] .hero__title { font-size: 64px; line-height: 84px; } }
.hero__title span { display: block; }
.hero__lead { margin-top: var(--space-6); }

/* The lattice drawing: hairline grid, 4px nodes, one stepped path, one fixed red node.
   Strokes are non-scaling so it stays crisp at any width. Hidden at ≤359px. */
.hero__figure { max-width: 520px; }
@media (max-width: 359px) { .hero__figure { display: none; } }
.lattice { width: 100%; height: auto; overflow: visible; }
.lattice__grid { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.lattice__nodes { fill: none; stroke: var(--line); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.lattice__path { fill: none; stroke: var(--fg); stroke-width: 1.5; stroke-linejoin: miter; vector-effect: non-scaling-stroke; }
.lattice__vertex { fill: none; stroke: var(--vertex-red); stroke-width: 12; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* ---------- Expertise ---------- */
.expertise__grid { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--space-16); }
@media (min-width: 768px) { .expertise__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.area {
  display: flex; flex-direction: column;
  padding: var(--space-8) 0; border-top: var(--hairline) solid var(--line);
}
.area__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-6); }
.area__number { font-variant-numeric: tabular-nums; }
.area__icon { width: var(--icon); height: var(--icon); color: var(--fg); flex: none; }
.area__title { font-size: 22px; line-height: 30px; margin-bottom: var(--space-2); }
@media (min-width: 768px) { .area__title { font-size: 24px; line-height: 32px; } }
[lang="ar"] .area__title { font-size: 22px; line-height: 34px; }
.area__desc { color: var(--fg-muted); max-width: 42ch; }
.expertise__cta { margin-top: var(--space-6); padding-top: var(--space-6); border-top: var(--hairline) solid var(--line); }

/* ---------- Company ---------- */
.company__grid { display: grid; gap: var(--space-8) var(--grid-gap); }
@media (min-width: 1024px) {
  .company__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .company__intro { grid-column: 1 / span 5; }
  .company__body { grid-column: 7 / span 6; }
}
.company__intro .section-heading { margin: 0; }
.facts { margin-top: var(--space-8); border-top: var(--hairline) solid var(--line); }
.facts__row {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--space-4);
  padding: var(--space-3) 0; border-bottom: var(--hairline) solid var(--line);
}
@media (min-width: 768px) { .facts__row { grid-template-columns: 160px minmax(0, 1fr); } }
.facts__value { margin: 0; }
.facts__value .alt-name { color: var(--fg-muted); }

/* ---------- Contact (dark) ---------- */
.contact { background: var(--bg); color: var(--fg); }
.contact__grid { display: grid; gap: var(--space-12) var(--grid-gap); }
@media (min-width: 1024px) {
  .contact__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .contact__intro { grid-column: 1 / span 5; }
  .contact__details { grid-column: 7 / span 6; }
}
.contact__intro .section-heading { margin: 0; }
.contact__intro .lead { margin-top: var(--space-6); }
.contact__intro .actions { margin-top: var(--space-8); }
.details { border-top: var(--hairline) solid var(--line); }
.details__row { display: grid; gap: var(--space-1); padding: var(--space-4) 0; border-bottom: var(--hairline) solid var(--line); }
.details__value { font-size: 18px; line-height: 28px; text-decoration: none; }
a.details__value { display: inline-block; padding-block: var(--space-2); margin-block: calc(var(--space-2) * -1); text-underline-offset: 5px; }
a.details__value:hover { text-decoration: underline; }
[lang="ar"] .details__value { line-height: 32px; }
[lang="ar"] .details__value[dir="ltr"] { font-family: var(--font-sans); }

/* ---------- Footer ---------- */
.site-footer { border-top: var(--hairline) solid var(--line); padding-block: var(--space-12) var(--space-6); }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: var(--space-8); }
.site-footer__brand .brand__side { width: var(--logo-side); }
.site-footer__brand .brand__horizontal { width: var(--logo-horizontal-min); }
.site-footer__legal { margin-top: var(--space-4); font-size: 14px; line-height: 22px; color: var(--fg-muted); }
[lang="ar"] .site-footer__legal { line-height: 26px; }
.site-footer__legal .legal-name { color: var(--fg); font-weight: 500; }
.site-footer__nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-6); }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-6);
  margin-top: var(--space-8); padding-top: var(--space-4); border-top: var(--hairline) solid var(--line);
  font-size: 14px; line-height: 22px; color: var(--fg-muted);
}
[dir="rtl"] .ltr-inline { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}
