/* HA Consulting: one stylesheet for English (ltr) and Arabic (rtl). Logical properties only, so both directions work. */
:root {
  --navy: #14213D;
  --navy-2: #1B2A4A;
  --navy-3: #2A3C66;
  --orange: #D9822B;
  --orange-dark: #B8691C;
  --orange-text: #9A5815;   /* orange for small text on light backgrounds: 5.5:1 on white, 4.9:1 on cards */
  --card: #EDF1F5;
  --line: #D5DAE2;
  --muted: #5A6474;         /* 6.0:1 on white, 5.3:1 on cards */
  --body: #3D4759;
  --bg: #FFFFFF;
  --max: 1160px;
  --radius: 10px;
  --font: "IBM Plex Sans", Arial, Helvetica, sans-serif;
}
html[lang="ar"] { --font: "IBM Plex Sans Arabic", "Noto Naskh Arabic", Arial, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--body); background: var(--bg); line-height: 1.6; font-size: 17px; }
html[lang="ar"] body { line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-3); text-underline-offset: 3px; }
a:hover { color: var(--orange-dark); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.15rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-inline-start: 1.25em; }
li { margin-bottom: .35em; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 20px; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 50; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.brand img { height: 32px; width: auto; }
.brand .brand-tag { display: block; font-size: .72rem; color: var(--muted); font-weight: 400; border-inline-start: 1px solid var(--line); padding-inline-start: 10px; }
@media (max-width: 1240px) { .brand .brand-tag { display: none; } }
.brand .mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--navy); color: #fff; font-size: .95rem; letter-spacing: .02em; }
.brand small { display: block; font-weight: 400; font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.nav { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--navy-2); padding: 8px 10px; border-radius: 6px; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--card); color: var(--navy); }
.nav a[aria-current="page"] { font-weight: 600; }
.lang { border: 1px solid var(--line); }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; padding: 11px 18px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 600; }
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: #E39A4F; color: var(--navy); }
.btn-ghost { border-color: currentColor; color: var(--navy); background: transparent; }
.on-dark .btn-ghost { color: #fff; }
.nav .btn { padding: 8px 14px; margin-inline-start: 6px; white-space: nowrap; }
.menu-toggle { display: none; margin-inline-start: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; color: var(--navy); cursor: pointer; }

/* sections */
section { padding-block: 72px; }
.section-tight { padding-block: 48px; }
.eyebrow { display: inline-block; color: var(--orange-text); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .9rem; }
.lead { font-size: 1.15rem; color: var(--body); max-width: 760px; }
.muted { color: var(--muted); }
.note { font-size: .88rem; color: var(--muted); font-style: italic; }
html[lang="ar"] .note { font-style: normal; }
.alt { background: var(--card); }
.dark { background: var(--navy); color: #D5DAE2; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark a { color: #fff; }
.script { font-family: "Segoe Script", "Brush Script MT", cursive; color: var(--orange); font-weight: 400; margin-inline-end: .18em; }
html[lang="ar"] .script { font-family: inherit; font-weight: 700; }

/* hero */
.hero { padding-block: 64px 56px; background: var(--navy); color: #D5DAE2; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero .lead { color: #D5DAE2; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero figure { margin: 0; background: #fff; border-radius: 12px; padding: 10px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.hero figcaption { color: var(--muted); font-size: .8rem; margin-top: 8px; text-align: end; }
.hero { position: relative; }
.hero .wrap { position: relative; z-index: 1; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.hero-bg video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 33, 61, .95) 0%, rgba(20, 33, 61, .85) 55%, rgba(20, 33, 61, .72) 100%); }
@media (max-width: 760px), (prefers-reduced-motion: reduce) { .hero-bg video { display: none; } }
.page-hero { padding-block: 56px 40px; background: var(--navy); color: #D5DAE2; }
.page-hero h1 { color: #fff; max-width: 860px; }
.page-hero .lead { color: #D5DAE2; }

.strip { border-bottom: 1px solid var(--line); background: #fff; }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-block: 16px; font-size: .92rem; color: var(--navy-2); }
.strip span::before { content: "■"; color: var(--orange); font-size: .6rem; margin-inline-end: 8px; vertical-align: 2px; }

/* grids and cards */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--card); border-radius: var(--radius); padding: 24px; border-top: 4px solid var(--navy); }
.card.accent { border-top-color: var(--orange); }
.card.plain { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); }
.card h3 { margin-bottom: .4em; }
.card .who { color: var(--muted); font-size: .9rem; margin-bottom: .8em; }
.card ul { padding-inline-start: 1.1em; margin-bottom: .8em; }
.card .more { font-weight: 600; text-decoration: none; }
.card .more::after { content: " →"; }
html[dir="rtl"] .card .more::after { content: " ←"; }
a.card { display: flex; flex-direction: column; text-decoration: none; color: var(--body); transition: box-shadow .15s; }
a.card:hover { color: var(--body); box-shadow: 0 3px 12px rgba(20, 33, 61, .14); }
a.card .more { margin-top: auto; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #fff; color: var(--orange-text); border: 1px solid var(--orange); margin-bottom: 10px; }
.tag.soon { color: var(--muted); border-color: var(--line); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.stat { padding: 8px 20px; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat b { display: block; unicode-bidi: isolate; font-size: 2.1rem; color: var(--navy); line-height: 1.1; margin-bottom: 6px; }
.stat:first-child b { color: var(--orange-text); }
.stat span { font-size: .9rem; color: var(--muted); }
.dark .stat { border-color: var(--navy-3); }
.dark .stat b { color: #fff; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 7px; background: var(--orange); color: #fff; font-weight: 700; margin-bottom: 10px; }
.steps b { display: block; color: var(--navy); margin-bottom: 4px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.wide-media { grid-template-columns: .85fr 1.15fr; }
.shot { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 8px 28px rgba(20,33,61,.08); position: relative; }
.shot figcaption { font-size: .82rem; color: var(--muted); padding: 10px 14px; border-top: 1px solid var(--line); }
.shot .illus { position: absolute; top: 10px; inset-inline-end: 10px; background: #fff; color: var(--orange-text); border: 1px solid var(--orange); font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }

/* worked example */
.calc { background: #fff; border: 1.5px solid var(--navy); border-radius: var(--radius); padding: 24px; font-variant-numeric: tabular-nums; }
.calc h3 { font-size: 1rem; }
.calc dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 0 0 16px; font-size: .95rem; }
.calc dt { color: var(--body); }
.calc dd { margin: 0; font-weight: 600; color: var(--navy); text-align: end; direction: ltr; unicode-bidi: isolate; }
.calc ol { font-size: .95rem; padding-inline-start: 1.2em; }
html[dir="rtl"] .calc ol { direction: ltr; text-align: left; }
.calc .answer { color: var(--orange-text); font-weight: 700; }
.bars { display: grid; gap: 14px; }
.bar-row b { display: block; font-size: .95rem; color: var(--navy); margin-bottom: 4px; }
.bar { height: 30px; border-radius: 4px; display: flex; align-items: center; }
.bar span { margin-inline-start: calc(100% + 10px); font-weight: 700; color: var(--navy); white-space: nowrap; }
.callout { background: var(--orange); color: var(--navy); border-radius: var(--radius); padding: 18px 22px; font-weight: 700; font-size: 1.1rem; }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: start; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--navy); color: #fff; font-weight: 600; }
tbody tr:nth-child(even) td { background: #F7F9FB; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* charts and diagrams */
.chart { width: 100%; height: auto; }
.chart text { font-family: var(--font); }
.timeline { list-style: none; padding: 0; margin: 0; border-inline-start: 2px solid var(--line); }
.timeline li { position: relative; padding-inline-start: 22px; margin-bottom: 18px; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: -7px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--navy); }
.timeline li:first-child::before { background: var(--orange); }
.timeline b { display: block; color: var(--navy); }

.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; align-items: stretch; }
.flow > div { position: relative; padding: 20px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-inline-end: 28px; }
.flow > div:last-child { margin-inline-end: 0; }
.flow > div:not(:last-child)::after { content: "→"; position: absolute; inset-inline-end: -24px; top: 50%; transform: translateY(-50%); color: var(--orange); font-weight: 700; font-size: 1.3rem; }
html[dir="rtl"] .flow > div:not(:last-child)::after { content: "←"; }
.flow > div.us { background: var(--navy); color: #D5DAE2; border-color: var(--navy); }
.flow > div.us b { color: #fff; }
.flow b { display: block; color: var(--navy); margin-bottom: 4px; }
.flow small { color: inherit; opacity: .85; font-size: .88rem; }

/* faq */
details { border-bottom: 1px solid var(--line); padding-block: 14px; }
summary { cursor: pointer; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--orange); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; }

/* article */
.article { max-width: 760px; }
.article h2 { margin-top: 1.2em; }
.article .meta { color: var(--muted); font-size: .9rem; }
.toc a { display: block; padding: 6px 0; }

/* contact */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; color: var(--navy); font-size: .95rem; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 11px 12px; border: 1px solid #B9C2CF; border-radius: 8px; background: #fff; color: var(--body); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); }
.form .hint { font-size: .85rem; color: var(--muted); font-weight: 400; }
.form-status { font-size: .92rem; color: var(--navy-2); min-height: 1.4em; }

/* cta band */
.cta-band { background: var(--navy); color: #D5DAE2; }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }

/* footer */
.site-footer { background: #0E1830; color: #AAB4C2; font-size: .9rem; padding-block: 48px 28px; }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 10px; }
.site-footer a { color: #D5DAE2; text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--orange); }
.site-footer .legal { border-top: 1px solid #22304F; margin-top: 32px; padding-top: 18px; font-size: .8rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }


/* sector chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chip { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: .95rem; color: var(--navy); text-decoration: none; font-weight: 600; }
.chip:hover { border-color: var(--orange); color: var(--orange-dark); }
.page-hero .chips { margin-top: 22px; }
.page-hero .chip { background: transparent; color: #fff; border-color: var(--navy-3); }
.page-hero .chip:hover { border-color: var(--orange); color: #fff; }
section[id] { scroll-margin-top: 80px; }

/* icons */
.icon { display: block; color: var(--orange-text); margin-bottom: 10px; }
.card .icon { width: 30px; height: 30px; }
.chip .icon { display: inline-block; width: 18px; height: 18px; margin: 0 6px 0 0; vertical-align: -4px; }
html[dir="rtl"] .chip .icon { margin: 0 0 0 6px; }
.page-hero .chip .icon { color: var(--orange); }

/* blueprint grid behind dark headers */
.hero, .page-hero { background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 32px 32px; background-position: -1px -1px; }

/* bright orange where the background is navy */
.on-dark .eyebrow, .dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .cta-band .eyebrow { color: var(--orange); }
.page-hero .chip .icon { color: var(--orange); }
.card.accent .tag { background: #fff; }

/* keyboard focus and motion */
a:focus-visible, button:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.on-dark a:focus-visible, .on-dark .btn:focus-visible { outline-color: #fff; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.offers td:first-child { min-width: 150px; }
.offers td.num { white-space: normal; min-width: 90px; }

/* proof cards on the home page */
.proof .card { display: flex; flex-direction: column; text-decoration: none; color: var(--body); transition: border-color .15s; }
.proof .card:hover { border-color: var(--orange); color: var(--body); }
.proof .big { display: block; font-size: 1.7rem; line-height: 1.15; color: var(--navy); margin: 2px 0 8px; }
.proof .tag { align-self: flex-start; }
.proof img { border: 1px solid var(--line); border-radius: 6px; margin: 2px 0 10px; }
.proof .more { margin-top: auto; font-weight: 600; color: var(--navy-3); }
.proof .more::after { content: " →"; }

/* value per audience: five cards */
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.value .card { display: flex; flex-direction: column; padding: 20px; }
.value .big { display: block; font-size: 1.9rem; line-height: 1.1; color: var(--navy); margin: 4px 0 4px; }
.value .card p:not(.who) { font-size: .95rem; }
.value .more { margin-top: auto; }
.value .tag { align-self: flex-start; }
@media (max-width: 1100px) { .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .g5 { grid-template-columns: 1fr; } }

/* responsive */
@media (max-width: 1020px) {
  .g4, .steps, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .stats { row-gap: 20px; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .flow > div:nth-child(2) { margin-inline-end: 0; }
  .flow > div:nth-child(2)::after { display: none; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 68px; inset-inline: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 20px 18px; box-shadow: 0 12px 24px rgba(20,33,61,.08); }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}
@media (max-width: 900px) {
  .hero .wrap, .split, .split.wide-media, .g3, .g2 { grid-template-columns: 1fr; }
  .hero { padding-block: 44px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding-block: 52px; }
  .g4, .steps, .stats, .flow { grid-template-columns: 1fr; }
  .stat { border-inline-start: 0; padding-inline-start: 0; }
  .flow > div { margin-inline-end: 0; }
  .flow > div::after { display: none !important; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .calc dl { grid-template-columns: 1fr; }
  .calc dd { text-align: start; }
}
@media print {
  .site-header, .site-footer, .cta-band, .menu-toggle, .skip, .btn, .actions { display: none; }
  section { padding-block: 14px; }
  body { font-size: 11pt; }
  .hero, .page-hero { background: #fff !important; color: #000; }
  .hero h1, .page-hero h1, .hero .lead, .page-hero .lead { color: #000; }
  .card, .calc, table, figure, .flow > div { break-inside: avoid; }
  .shot { box-shadow: none; }
}
