/* HRIGHT Consultancy — site styles
   Brand: Majlis Navy #14213D, Pearl Gold #C8963E, Sand White #F7F5F0, Slate #5A6478
   Type: Sora (headings), IBM Plex Sans (text), IBM Plex Sans Arabic (Arabic)
   One stylesheet serves English (ltr) and Arabic (rtl) pages: layout uses logical properties. */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/sora-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/sora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/sora-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

/* ---------- Tokens ---------- */
:root {
  --navy: #14213D;
  --navy-2: #22325A;
  --navy-line: #2E3E63;
  --gold: #C8963E;
  --gold-hover: #D7A853;
  --gold-ink: #8A6420;
  --gold-tick: #A87A2F;
  --sand: #F7F5F0;
  --paper: #FFFFFF;
  --line: #E1DBCF;
  --line-strong: #C9C1B2;
  --ink: #14213D;
  --text: #2E3850;
  --slate: #5A6478;
  --mist: #D6DBE4;
  --mist-2: #B9C1D0;
  --error: #A3361F;

  --font-display: "Sora", "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "IBM Plex Sans", "Segoe UI", Tahoma, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --radius: 6px;
}

/* Language-aware type variables. Arabic wins over component settings. */
:lang(en) { --display: var(--font-display); --body: var(--font-body); --hw: 600; --tr: -0.01em; --lh-head: 1.12; --lh-body: 1.6; }
:lang(ar) { --display: var(--font-ar) !important; --body: var(--font-ar) !important; --hw: 700 !important; --tr: 0 !important; --lh-head: 1.4 !important; --lh-body: 1.85 !important; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
html.has-subnav { scroll-padding-top: calc(var(--header-h) + 76px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
html[dir="rtl"] body { font-size: 1.125rem; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: var(--hw);
  line-height: var(--lh-head);
  letter-spacing: var(--tr);
  color: var(--ink);
  text-wrap: balance;
}
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
strong, b { font-weight: 600; }
bdi { unicode-bidi: isolate; }
main:focus { outline: none; }

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

/* Focus: navy on light grounds, gold on navy grounds */
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 3px; }
.site-header :focus-visible, .hero :focus-visible, .pillars-band :focus-visible,
.page-head :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -100px; z-index: 100;
  background: var(--gold); color: var(--navy); font-weight: 600; padding: 10px 16px; border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1.5px solid transparent; border-radius: var(--radius);
  font-family: var(--body); font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn .icon { width: 20px; height: 20px; flex: none; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .95rem; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-ghost { border-color: rgba(214, 219, 228, .5); color: var(--sand); background: transparent; }
.btn-ghost:hover { border-color: var(--sand); background: rgba(247, 245, 240, .07); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--sand); }

.text-link {
  color: var(--ink); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--gold);
  text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.text-link:hover { text-decoration-color: var(--ink); }
.text-link.on-dark { color: var(--sand); }
.text-link.on-dark:hover { text-decoration-color: var(--sand); }

.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--navy); color: var(--sand);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--navy-line), 0 10px 30px rgba(8, 14, 30, .28); }
.header-bar { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--sand); text-decoration: none; margin-inline-end: auto; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-word { font-family: var(--font-display); font-weight: 300; font-size: 1.375rem; letter-spacing: .02em; line-height: 1; }
.brand-word b { font-weight: 700; }
.brand-sub {
  font-family: var(--font-body); font-size: .66rem; font-weight: 500; letter-spacing: .3em;
  text-transform: uppercase; color: var(--mist-2); margin-inline-start: 2px; padding-top: 3px;
}
.brand-word-ar { font-family: var(--font-ar); font-weight: 700; font-size: 1.3rem; line-height: 1; }
.brand-sub-ar { font-family: var(--font-ar); font-weight: 500; font-size: .95rem; color: var(--mist-2); line-height: 1; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-list a {
  display: inline-block; padding-block: 8px;
  color: var(--mist); text-decoration: none; font-weight: 500;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover { color: var(--sand); border-bottom-color: rgba(200, 150, 62, .6); }
.nav-list a[aria-current="page"] { color: var(--sand); border-bottom-color: var(--gold); }

.lang-switch {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px;
  border: 1px solid var(--navy-line); border-radius: 999px;
  color: var(--sand); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.lang-switch:lang(ar) { font-family: var(--font-ar); font-size: 1.02rem; }
.lang-switch:lang(en) { font-family: var(--font-body); }
.lang-switch:hover { border-color: var(--gold); }

.menu-btn { display: none; }

@media (max-width: 899px) {
  :root { --header-h: 64px; }
  .header-bar { gap: 10px; }
  .brand-sub, .brand-sub-ar { display: none; }
  /* Without JavaScript the menu stays visible under the logo */
  .site-nav { order: 10; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 16px; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--navy-line); font-size: 1.1rem; }
  .nav-list a[aria-current="page"] { border-bottom-color: var(--gold); }
  .nav-cta { margin-top: 18px; }
  .header-bar { flex-wrap: wrap; }

  .js .header-bar { flex-wrap: nowrap; }
  .js .site-nav {
    display: none; position: fixed; inset-inline: 0; top: var(--header-h);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    padding: 8px var(--gutter) 28px; background: var(--navy);
    border-top: 1px solid var(--navy-line); box-shadow: 0 20px 40px rgba(8, 14, 30, .35);
  }
  .js.nav-open .site-nav { display: flex; }
  .js .menu-btn {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    background: transparent; color: var(--sand); border: 1px solid var(--navy-line); border-radius: 8px; cursor: pointer;
  }
  .menu-btn .icon-close { display: none; }
  .nav-open .menu-btn .icon-open { display: none; }
  .nav-open .menu-btn .icon-close { display: block; }
}

/* ---------- Hero (home) ---------- */
.hero { background: var(--navy); color: var(--sand); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px); align-items: center;
  padding-block: clamp(56px, 8vw, 116px) clamp(56px, 7vw, 100px);
}
.hero-title {
  color: var(--sand);
  font-size: clamp(3rem, 1.1rem + 6.6vw, 6.4rem);
  line-height: .98; --tr: -0.035em;
}
html[dir="rtl"] .hero-title { font-size: clamp(2.6rem, 1.1rem + 5.2vw, 5.1rem); line-height: 1.25; }
.hero-title .hl { color: var(--gold); white-space: nowrap; }
html[dir="ltr"] .hero-echo { text-align: left; }
html[dir="rtl"] .hero-echo { text-align: right; }
.hero-echo { margin-top: 18px; font-size: clamp(1.2rem, 1rem + .8vw, 1.65rem); color: var(--mist-2); line-height: 1.4; }
.hero-echo:lang(ar) { font-family: var(--font-ar); font-weight: 500; }
.hero-echo:lang(en) { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
.hero-lead {
  margin-top: 30px; max-width: 31ch;
  font-size: clamp(1.2rem, 1rem + .75vw, 1.6rem); line-height: 1.4; font-weight: 500; color: var(--sand);
}
html[dir="rtl"] .hero-lead { max-width: 36ch; line-height: 1.7; }
.hero-sub { margin-top: 14px; max-width: 54ch; color: var(--mist); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-facts { list-style: none; margin-top: 38px; display: grid; gap: 10px; color: var(--mist); font-size: .98rem; }
.hero-facts li { display: flex; gap: 12px; align-items: flex-start; }
.fact-tick { width: 18px; height: 18px; color: var(--gold); margin-top: .3em; }
.hero-art { display: flex; justify-content: flex-end; }
.hero-mark { width: 100%; max-width: 440px; height: auto; }

/* The one moment of motion: the check draws itself once */
.hero-mark .mark-check { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-check 1s cubic-bezier(.65, 0, .35, 1) .35s forwards; }
@keyframes draw-check { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-mark .mark-check { animation: none; stroke-dashoffset: 0; } }

@media (max-width: 479px) {
  .hero-actions .btn, .cta-actions .btn, .composer-actions .btn { flex: 1 1 100%; }
}
@media (max-width: 899px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; justify-content: flex-start; }
  .hero-mark { max-width: 104px; }
}

/* ---------- Five pillars band (home) ---------- */
.pillars-band { background: var(--navy); color: var(--mist); padding-bottom: clamp(64px, 8vw, 112px); }
.band-head {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 48px; align-items: end;
  padding-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--navy-line); margin-bottom: clamp(32px, 4vw, 48px);
}
.band-title { color: var(--sand); font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem); }
.band-lead { color: var(--mist); max-width: 58ch; }
.pillars { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 2px solid var(--gold); }
.pillar { position: relative; padding: 30px 20px 34px; border-inline-start: 1px solid var(--navy-line); }
.pillar::before { content: ""; position: absolute; top: 0; inset-inline: 20px; height: 3px; background: var(--gold); }
.pillar:first-child { border-inline-start: 0; padding-inline-start: 0; }
.pillar:first-child::before { inset-inline-start: 0; }
.pillar:last-child { padding-inline-end: 0; }
.pillar:last-child::before { inset-inline-end: 0; }
.pillar-name { font-size: 1.22rem; line-height: 1.25; }
.pillar-name a { display: block; color: var(--sand); text-decoration: none; }
.pillar-name a:hover span:last-child { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.pillar-num { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.9rem; line-height: 1; color: var(--gold); margin-bottom: 14px; letter-spacing: 0; }
.pillar-short { margin-top: 12px; font-size: .95rem; line-height: 1.55; color: var(--mist-2); }
.pillar-services { list-style: none; margin-top: 22px; display: grid; gap: 10px; font-size: .95rem; line-height: 1.4; }
.pillar-services a { display: flex; gap: 10px; color: var(--sand); text-decoration: none; }
.pillar-services a:hover span { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.pillar-services .code { flex: none; min-width: 2.1em; color: var(--mist-2); font-variant-numeric: tabular-nums; font-family: var(--font-display); font-size: .82rem; padding-top: .18em; }
.band-foot { margin-top: 32px; }

@media (max-width: 1099px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; border-bottom: 0; }
  .pillar, .pillar:first-child, .pillar:last-child { border-inline-start: 0; padding-inline: 0; }
  .pillar::before, .pillar:first-child::before, .pillar:last-child::before { inset-inline: 0; }
  .pillar:last-child { grid-column: 1 / -1; }
}
@media (max-width: 699px) {
  .band-head { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
}

/* ---------- Generic sections ---------- */
.section { padding-block: clamp(64px, 8vw, 120px); }
.bg-sand { background: var(--sand); }
.bg-paper { background: var(--paper); }
.section-head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-title { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem); }
.lead { margin-top: 14px; max-width: 62ch; font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); color: var(--slate); }
.sub-title { font-size: 1.35rem; margin: 64px 0 22px; }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split-head { position: sticky; top: calc(var(--header-h) + 32px); }
.split-head .lead { font-size: 1.08rem; }
@media (max-width: 899px) {
  .split { grid-template-columns: 1fr; }
  .split-head { position: static; }
}

/* Who we work with */
.who-item { padding-block: 28px; border-top: 1px solid var(--line-strong); }
.who-item:first-child { padding-top: 6px; border-top: 0; }
.who-title { font-size: 1.35rem; }
.who-item p { margin-top: 10px; max-width: 62ch; }
.who-item .first-step { margin-top: 12px; font-size: .95rem; color: var(--slate); }
.first-step a { color: var(--ink); font-weight: 600; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* What you can expect */
.expect-list { display: grid; }
.expect-item { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px 28px; padding-block: 22px; border-top: 1px solid var(--line); }
.expect-item:first-child { border-top-color: var(--line-strong); }
.expect-item dt { display: flex; gap: 10px; font-family: var(--display); font-weight: var(--hw); font-size: 1.12rem; line-height: 1.35; color: var(--ink); }
.expect-tick { width: 20px; height: 20px; color: var(--gold-tick); margin-top: .1em; }
.expect-item dd { color: var(--text); }
@media (max-width: 699px) { .expect-item { grid-template-columns: 1fr; } }

/* How a project runs */
.steps { list-style: none; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.step { position: relative; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 21px; inset-inline-start: 54px; inset-inline-end: -16px; height: 1px; background: var(--line-strong); }
.step-num {
  position: relative; z-index: 1; display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: var(--sand);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  box-shadow: 0 0 0 6px var(--sand);
}
.step-title { margin-top: 22px; font-size: 1.15rem; }
.step p { margin-top: 8px; font-size: .98rem; color: var(--text); }
@media (max-width: 899px) {
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .step:not(:last-child)::after { top: 54px; bottom: -16px; inset-inline-start: 21px; inset-inline-end: auto; width: 1px; height: auto; }
  .step { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 20px; }
  .step-num { grid-row: span 2; }
  .step-title { margin-top: 8px; }
}

/* Ways to work with us */
.models { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.model { padding-top: 22px; border-top: 2px solid var(--navy); }
.model-title { font-size: 1.25rem; }
.model-facts { margin-top: 14px; display: grid; gap: 12px; }
.model-facts dt { font-size: .88rem; font-weight: 600; color: var(--slate); }
.model-facts dd { margin-top: 2px; }
@media (max-width: 899px) { .models { grid-template-columns: 1fr; } }

/* Tables */
.table-wrap { width: 100%; }
.data-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.data-table th, .data-table td { text-align: start; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.data-table th:first-child, .data-table td:first-child { padding-inline-start: 0; }
.data-table th:last-child, .data-table td:last-child { padding-inline-end: 0; }
.data-table thead th { font-size: .88rem; font-weight: 600; color: var(--slate); border-bottom: 2px solid var(--navy); padding-block: 10px; }
.data-table tbody th { font-weight: 600; color: var(--ink); }
.packages-table tbody th { font-family: var(--display); font-weight: var(--hw); width: 26%; }
.where-table tbody th { width: 34%; }
.table-note { margin-top: 14px; font-size: .92rem; color: var(--slate); }
.code-link {
  display: inline-block; padding: 1px 8px; border: 1px solid var(--line-strong); border-radius: 4px;
  font-family: var(--font-display); font-weight: 600; font-size: .86rem; color: var(--ink); text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.code-link:hover { border-color: var(--navy); background: var(--sand); }
.bg-sand .code-link:hover { background: var(--paper); }
.code-link + .code-link { margin-inline-start: 6px; }
@media (max-width: 759px) {
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table, .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; width: auto; }
  .data-table tr { padding-block: 16px; border-bottom: 1px solid var(--line); }
  .data-table tr:first-child { border-top: 2px solid var(--navy); }
  .data-table th, .data-table td { padding: 3px 0; border: 0; }
  .data-table tbody th { font-size: 1.08rem; padding-bottom: 6px; }
  .data-table td::before { content: attr(data-label); display: block; font-size: .82rem; font-weight: 600; color: var(--slate); }
  .data-table td.is-empty { display: none; }
  .packages-table tbody th, .where-table tbody th { width: auto; }
}

/* Founder (home) and credentials */
.founder-text { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.6; color: var(--ink); max-width: 60ch; }
html[dir="rtl"] .founder-text { line-height: 1.9; }
.cred-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 28px; }
.cred-list li { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 4px; font-size: .95rem; font-weight: 500; color: var(--ink); background: var(--paper); }

/* ---------- Call to action band ---------- */
.cta-band { background: var(--navy); color: var(--mist); padding-block: clamp(56px, 7vw, 100px); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px 48px; align-items: center; }
.cta-title { color: var(--sand); font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem); }
.cta-text { margin-top: 12px; font-size: 1.15rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 899px) {
  .cta-grid { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
}

/* ---------- Inner page heading ---------- */
.page-head { background: var(--navy); color: var(--mist); padding-block: clamp(56px, 7vw, 104px); }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.page-title { color: var(--sand); font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.4rem); --tr: -0.025em; }
.page-lead { margin-top: 18px; max-width: 60ch; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); color: var(--mist); }
.page-meta { margin-top: 12px; color: var(--mist-2); }
.page-mark { width: clamp(96px, 12vw, 168px); height: auto; }
.page-head-compact { padding-block: clamp(48px, 6vw, 80px); }
.link-row { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 699px) {
  .page-head-grid { grid-template-columns: 1fr; }
  .page-mark { display: none; }
}

/* ---------- Services page ---------- */
.pillar-nav {
  position: sticky; top: var(--header-h); z-index: 40;
  background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) { .pillar-nav { background: rgba(255, 255, 255, .88); backdrop-filter: blur(8px); } }
.pillar-nav-list { list-style: none; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.pillar-nav-list::-webkit-scrollbar { display: none; }
.pillar-nav a {
  display: flex; align-items: center; gap: 9px; padding: 15px 12px 13px; white-space: nowrap;
  color: var(--slate); text-decoration: none; font-weight: 500; font-size: .94rem;
  border-bottom: 2px solid transparent;
}
.pillar-nav li:first-child a { padding-inline-start: 0; }
.pillar-nav a:hover { color: var(--ink); }
.pillar-nav .pn {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--sand); color: var(--ink); border: 1px solid var(--line-strong);
  font-family: var(--font-display); font-weight: 600; font-size: .75rem; line-height: 1;
}
.pillar-nav a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.pillar-nav a[aria-current="true"] .pn { background: var(--navy); color: var(--sand); border-color: var(--navy); }

.pillar-section { padding-block: clamp(64px, 8vw, 112px); }
.pillar-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: start; max-width: 920px; margin-bottom: clamp(16px, 3vw, 28px); }
.pillar-big { font-family: var(--font-display); font-weight: 600; font-size: clamp(4rem, 2.6rem + 5vw, 7.5rem); line-height: .8; color: var(--gold); letter-spacing: -0.04em; }
.pillar-title { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem); }
.pillar-intro { margin-top: 12px; max-width: 62ch; font-size: 1.12rem; color: var(--slate); }

.service {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 28px clamp(28px, 5vw, 72px);
  padding-block: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line-strong);
}
.service-title { display: flex; gap: 14px; align-items: baseline; font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); }
.service-code { flex: none; min-width: 2.3em; font-family: var(--font-display); font-weight: 600; font-size: .62em; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.service-headline { margin-top: 14px; font-size: 1.15rem; line-height: 1.5; font-weight: 500; color: var(--ink); }
.service-desc { margin-top: 10px; }
.service-facts { margin-top: 20px; display: grid; gap: 14px; }
.service-facts dt { font-size: .88rem; font-weight: 600; color: var(--slate); }
.service-facts dd { margin-top: 2px; }
.service-facts a { color: var(--ink); font-weight: 600; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.service-note { margin-top: 18px; padding: 14px 16px; background: rgba(200, 150, 62, .1); border-radius: var(--radius); font-size: .97rem; color: var(--ink); }
.included-title { font-family: var(--body); font-weight: 600; font-size: .92rem; letter-spacing: 0; color: var(--slate); margin-bottom: 14px; }
@media (max-width: 899px) { .service { grid-template-columns: 1fr; } }

/* Check-mark lists (the brand's tick) */
.ticks { list-style: none; display: grid; gap: 11px; }
.ticks li { position: relative; padding-inline-start: 28px; line-height: 1.5; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .32em; width: 15px; height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.5 12.5 9.5 18.5 20.5 6.5' fill='none' stroke='%23A87A2F' stroke-width='3.4' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat;
}
html[dir="rtl"] .ticks li { line-height: 1.75; }
.ticks-lg { gap: 16px; font-size: 1.08rem; }

/* ---------- About page ---------- */
.prose { color: var(--text); font-size: 1.08rem; max-width: 66ch; }
.prose p + p { margin-top: 1em; }
.prose-col .sub-title:first-child { margin-top: 0; }
.prose-narrow { max-width: 720px; }
.prose-narrow h2 { font-size: 1.35rem; margin-top: 2.2em; margin-bottom: .5em; }
.prose-narrow .lead { margin-top: 0; color: var(--text); font-size: 1.15rem; }
.kicker { font-weight: 600; color: var(--slate); margin-bottom: 8px; }
.founder-role { margin-top: 8px; color: var(--slate); }
.sector-list { list-style: none; margin-top: 28px; border-top: 1px solid var(--line-strong); }
.sector-list li { padding-block: 10px; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--ink); }
.quals-table th[scope="row"] { font-weight: 500; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-ways .sub-title, .composer-card .sub-title { margin-top: 0; }
.contact-list { list-style: none; display: grid; gap: 12px; }
.contact-row {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); text-decoration: none; transition: border-color .15s ease;
}
.contact-row:hover { border-color: var(--navy); }
.contact-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--gold); flex: none; }
.contact-text { display: grid; gap: 2px; min-width: 0; }
.contact-label { font-size: .88rem; color: var(--slate); }
.contact-value { font-family: var(--display); font-weight: var(--hw); font-size: 1.15rem; line-height: 1.3; overflow-wrap: anywhere; }
.contact-value[dir="ltr"] { font-family: var(--font-display); font-weight: 600; }
.biz-details { margin-top: 48px; }
.biz-details p { line-height: 1.8; }

.composer-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: clamp(24px, 3.4vw, 44px); }
.composer-lead { color: var(--slate); }
.field { display: grid; gap: 8px; margin-top: 22px; }
.field label { font-weight: 600; color: var(--ink); }
.optional { font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid #B9B1A2; border-radius: var(--radius); padding: 12px 14px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(20, 33, 61, .2); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: .92rem; font-weight: 500; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-inline-end: 42px; }
.select-wrap::after {
  content: ""; position: absolute; inset-inline-end: 16px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--slate); border-bottom: 2px solid var(--slate); transform: rotate(45deg); pointer-events: none;
}
.composer-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.form-note { margin-top: 16px; font-size: .92rem; color: var(--slate); }
.js-only { display: none !important; }
.js .js-only { display: inline-flex !important; }
@media (max-width: 899px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--mist); border-top: 1px solid var(--navy-line); padding-top: clamp(48px, 6vw, 80px); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.brand-footer { margin-inline-end: 0; }
.footer-strap { margin-top: 20px; max-width: 36ch; color: var(--mist); }
.footer-loc { display: flex; gap: 8px; margin-top: 14px; color: var(--mist-2); }
.footer-loc .icon { width: 18px; height: 18px; margin-top: .2em; color: var(--gold); }
.footer-h { font-family: var(--body); font-weight: 600; font-size: .95rem; letter-spacing: 0; color: var(--sand); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--mist); text-decoration: none; }
.footer-col a:hover { color: var(--sand); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--gold); }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  position: relative; margin-top: 52px; padding-block: 22px;
  color: var(--mist-2); font-size: .875rem;
}
.footer-base::before { content: ""; position: absolute; top: 0; inset-inline: var(--gutter); height: 1px; background: var(--navy-line); }
.footer-other { margin-inline-start: 6px; }
.footer-other:lang(ar) { font-family: var(--font-ar); }
@media (max-width: 899px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 559px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Print ---------- */
@media print {
  .site-header, .pillar-nav, .cta-band, .menu-btn, .skip-link, .composer-card { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .page-head, .pillars-band, .site-footer { background: #fff !important; color: #000 !important; }
  .hero-title, .page-title, .band-title, .pillar-name a, .pillar-services a { color: #000 !important; }
  .split-head { position: static; }
}
