/* ==========================================================================
   Dr. Mohamed Yehia: site styles
   ========================================================================== */
:root {
  --ink: #0a2342;
  --ink-2: #0f2e55;
  --ink-3: #16406f;
  --paper: #ffffff;
  --paper-2: #f2f5f8;
  --white: #ffffff;
  --text: #1e1e1e;
  --muted: #5a6577;
  --line: #dfe5ec;
  --accent: #007c86;
  --accent-2: #00d6d6;
  --accent-soft: #e2f8f8;
  --turquoise: #00d6d6;
  --navy-deep: #061833;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(10,35,66,.06), 0 8px 28px rgba(10,35,66,.08);
  --max: 1180px;
  --serif: "Montserrat", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --arabic: "Cairo", "Inter", sans-serif;
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } body { font-size: 16px; } }

.skip { position: absolute; left: 8px; top: 8px; transform: translateY(-200%); background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
[dir="rtl"] .skip { left: auto; right: 8px; }
.skip:focus { transform: none; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: .75rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  font-family: var(--sans);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #00bfc0; }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.on-dark .btn-ghost { color: #fff; }
.on-dark .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.link-arrow { font-weight: 600; color: var(--accent); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }
[dir="rtl"] .link-arrow::after { content: "←"; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--ink-2);
  padding: 8px 12px; border-radius: 8px; transition: background .2s, color .2s; white-space: nowrap;
}
.nav-links a:hover { background: var(--paper-2); }
.nav-links a[aria-current="page"] { color: var(--accent); }
.nav-links .nav-cta { background: var(--ink); color: #fff; padding: 9px 18px; border-radius: 999px; margin-left: 8px; }
.nav-links .nav-cta:hover { background: var(--ink-3); }
.nav-links .nav-cta[aria-current="page"] { color: var(--accent-2); }
.lang-toggle {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-left: 8px;
}
.lang-toggle button {
  background: none; border: 0; padding: 6px 11px; font-size: .8rem; font-weight: 600; cursor: pointer; color: var(--muted); font-family: var(--sans);
}
.lang-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.lang-toggle button.ar { font-family: var(--arabic); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 26px; height: 26px; }

@media (max-width: 1120px) {
  .menu-btn { display: block; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 16px 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1rem; }
  .nav-links .nav-cta { margin: 14px 0 0; text-align: center; border-bottom: 0; border-radius: 999px; }
  .nav-links li:has(.lang-toggle) { padding-top: 14px; }
  .lang-toggle { margin-left: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-sm { padding: 72px 0; }
.section-alt { background: var(--paper-2); }
.section-white { background: var(--white); }
.on-dark { background: var(--ink); color: #c9d2de; }
.on-dark h1,.on-dark h2,.on-dark h3,.on-dark h4 { color: #fff; }
.on-dark .eyebrow { color: var(--accent-2); }
.on-dark .lead { color: #aab6c6; }
.section-head { max-width: 760px; margin-bottom: 56px; }

@media (max-width: 600px) { .section { padding: 72px 0; } .section-sm { padding: 52px 0; } .section-head { margin-bottom: 36px; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 104px; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -180px; top: -120px; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,214,214,.18), rgba(0,214,214,0) 65%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { margin-top: 24px; }
.hero-card {
  background: var(--ink); color: #c9d2de; border-radius: 20px; padding: 36px; box-shadow: var(--shadow); position: relative;
}
.hero-card .portrait {
  aspect-ratio: 4/5; border-radius: 12px; margin-bottom: 24px; overflow: hidden;
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2));
  display: grid; place-items: center; color: rgba(255,255,255,.35); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; text-align: center;
  border: 1px dashed rgba(255,255,255,.18);
}
.hero-card .portrait span { font-family: var(--serif); font-size: 4.5rem; color: var(--accent-2); letter-spacing: 0; text-transform: none; display: block; line-height: 1; margin-bottom: 10px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat strong { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 500; color: #fff; line-height: 1; }
.stat span { font-size: .78rem; color: #93a1b4; line-height: 1.35; display: block; margin-top: 6px; }
@media (max-width: 900px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-card .portrait { aspect-ratio: 16/10; }
}

.page-hero { padding: 88px 0 72px; background: var(--ink); color: #c9d2de; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -200px; bottom: -260px; width: 600px; height: 600px; border-radius: 50%;
  border: 1px solid rgba(0,214,214,.25); box-shadow: 0 0 0 60px rgba(0,214,214,.04), 0 0 0 120px rgba(0,214,214,.03); pointer-events: none;
}
.page-hero h1 { color: #fff; max-width: 900px; }
.page-hero .eyebrow { color: var(--accent-2); }
.page-hero .lead { color: #aab6c6; margin-top: 20px; }
@media (max-width: 600px) { .page-hero { padding: 60px 0 52px; } }

/* ---------- Trust band ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); padding: 36px 0; }
.trust p { margin: 0 0 18px; color: var(--muted); font-size: .95rem; max-width: 820px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; color: var(--ink-2); background: var(--paper); }
.on-dark .chips li { border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.04); color: #dbe2eb; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2,.grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #bfd0dd; }
.card h3 { margin-bottom: 12px; }
.card p:last-child { margin-bottom: 0; }
.card .num { font-family: var(--serif); font-size: .95rem; color: var(--accent); margin-bottom: 14px; display: block; }

.on-dark .card { background: var(--ink-2); border-color: rgba(255,255,255,.08); color: #c9d2de; }
.on-dark .card:hover { border-color: rgba(0,214,214,.4); }

.icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 20px;
}
.icon svg { width: 24px; height: 24px; }
.on-dark .icon { background: rgba(0,214,214,.12); color: var(--accent-2); }

/* ---------- Two practices ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.prose p { color: var(--text); }
.prose p.big { font-family: var(--serif); font-size: 1.5rem; line-height: 1.4; color: var(--ink); }
.pull { border-left: 3px solid var(--accent); padding-left: 20px; }
[dir="rtl"] .pull { border-left: 0; border-right: 3px solid var(--accent); padding-left: 0; padding-right: 20px; }

.practice-tabs { display: flex; gap: 6px; background: var(--white); border: 1px solid var(--line); padding: 6px; border-radius: 999px; width: fit-content; margin-bottom: 24px; }
.practice-tabs button {
  border: 0; background: none; padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--muted); font-family: var(--sans);
}
.practice-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.practice-panel[hidden] { display: none; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23007c86' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
  transform: translateY(-2px);
}
[dir="rtl"] .checklist li { padding-left: 0; padding-right: 30px; }
[dir="rtl"] .checklist li::before { left: auto; right: 0; }

/* ---------- Standards table ---------- */

/* ---------- Engagement cards ---------- */
.eng-card { display: flex; flex-direction: column; }
.eng-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.eng-logo {
  min-height: 44px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; font-family: var(--serif); font-size: 1.15rem; color: var(--ink); line-height: 1.25;
}
.eng-logo img { max-height: 44px; width: auto; }
.geo { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.eng-card .role { font-size: .93rem; color: var(--muted); flex: 1; }
.eng-card .role strong { color: var(--ink); font-weight: 600; display: block; margin-bottom: 4px; }
.outcome { margin-top: 20px; padding: 14px 16px; background: var(--accent-soft); border-radius: 10px; font-size: .9rem; color: #005c63; display: flex; gap: 10px; align-items: flex-start; }
.outcome svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; }

/* ---------- Learn pillars ---------- */

.tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; background: var(--paper-2); color: var(--ink-2); }
.tag.soon { background: #e9eef5; color: var(--ink-3); }

/* ---------- Articles ---------- */

/* ---------- Why list ---------- */
.why { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
@media (max-width: 1060px) { .why { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .why { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .why { grid-template-columns: 1fr; } }
.why .card { padding: 26px; }
.why h3 { font-size: 1.12rem; }
.why p { font-size: .92rem; }

/* ---------- Timeline ---------- */

/* ---------- Process steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.steps li { counter-increment: step; padding: 0 22px 0 0; position: relative; }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 2.6rem; color: var(--accent-2); line-height: 1; margin-bottom: 18px;
}
.steps li::after { content: ""; position: absolute; top: 22px; left: 72px; right: 18px; height: 1px; background: rgba(255,255,255,.15); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.15rem; }
.steps p { font-size: .92rem; color: #aab6c6; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; gap: 36px 24px; } .steps li::after { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Service detail blocks ---------- */
.svc { display: grid; grid-template-columns: 300px 1fr; gap: 56px; padding: 56px 0; border-top: 1px solid var(--line); }
.svc:first-child { border-top: 0; padding-top: 0; }
.svc:last-child { padding-bottom: 0; }
.svc .label { font-family: var(--serif); font-size: 1rem; color: var(--accent); margin-bottom: 8px; }
.svc h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.model { margin-top: 24px; padding: 18px 22px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; font-size: .95rem; }
.model strong { color: var(--ink); }
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- Credentials ---------- */
.cred h3 { font-size: 1.1rem; font-family: var(--sans); font-weight: 600; letter-spacing: .02em; color: var(--ink); margin-bottom: 16px; }
.cred ul { list-style: none; padding: 0; margin: 0; }
.cred li { padding: 12px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.cred li:first-child { border-top: 0; padding-top: 0; }
.cred li b { display: block; color: var(--ink); font-weight: 600; }
.cred li span { color: var(--muted); font-size: .88rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input,.field select,.field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--white);
  font: inherit; font-size: .95rem; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,.field select:focus,.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,124,134,.15); }

.form-success { display: none; padding: 18px 20px; border-radius: 10px; background: #e8f3ea; color: #23522c; font-size: .95rem; }
.form-success.show { display: block; }

.inline-form { display: flex; gap: 10px; max-width: 520px; }
.inline-form input {
  flex: 1; min-width: 0; padding: 14px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: .95rem;
}
.inline-form input::placeholder { color: #8c9aae; }
.inline-form input:focus { outline: none; border-color: var(--accent-2); }
@media (max-width: 480px) { .inline-form { flex-direction: column; } }

/* ---------- Contact aside ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { margin: 0; width: 42px; height: 42px; flex-shrink: 0; }
.contact-list b { display: block; color: #fff; font-weight: 600; font-size: .95rem; }
.contact-list a { color: var(--accent-2); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 820px; margin: 0 auto 18px; }
.cta-band .lead { margin: 0 auto; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: #061833; color: #93a1b4; padding: 72px 0 32px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { text-decoration: none; color: #b7c2d0; }
.site-footer a:hover { color: var(--accent-2); }

.site-footer .statement { font-family: var(--serif); font-size: 1.15rem; color: #dbe2eb; margin-top: 22px; line-height: 1.45; max-width: 360px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- RTL / Arabic ---------- */
/* Language switch links */
.lang-toggle a {
  display: block; padding: 6px 11px; font-size: .8rem; font-weight: 600; color: var(--muted);
  border: 0; border-radius: 0; background: none; line-height: 1.4;
}
.lang-toggle a:hover { background: var(--paper-2); color: var(--ink); }
.lang-toggle a[aria-current] { background: var(--ink); color: #fff; }
.lang-toggle .ar { font-family: var(--arabic); }
.lang-toggle .en { font-family: var(--sans); }

/* Arabic typography: letter-spacing breaks Arabic letter joining, so it is reset everywhere */
html[lang="ar"] { --serif: "Cairo", sans-serif; --sans: var(--arabic); }
html[lang="ar"] body { font-family: var(--arabic); line-height: 1.85; }
html[lang="ar"] *,html[lang="ar"] *::before,html[lang="ar"] *::after { letter-spacing: 0 !important; }
html[lang="ar"] h1,html[lang="ar"] h2,html[lang="ar"] h3,html[lang="ar"] h4 { font-weight: 600; line-height: 1.4; }
html[lang="ar"] h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
html[lang="ar"] .hero h1 em { font-style: normal; }
html[lang="ar"] .eyebrow { font-size: .9rem; }
html[lang="ar"] .stat strong,html[lang="ar"] .steps li::before { font-family: "Montserrat", sans-serif; }
html[lang="ar"] .latin { font-family: "Inter", sans-serif; direction: ltr; unicode-bidi: isolate; }

/* RTL layout mirrors */
[dir="rtl"] .nav-links .nav-cta { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .lang-toggle { margin-left: 0; margin-right: 8px; }

[dir="rtl"] .steps li { padding: 0 0 0 22px; }
[dir="rtl"] .steps li::after { left: 18px; right: 72px; }
[dir="rtl"] .hero::after { right: auto; left: -180px; }
[dir="rtl"] .page-hero::after { right: auto; left: -200px; }
@media (max-width: 1120px) {
  [dir="rtl"] .nav-links .nav-cta { margin: 14px 0 0; }
  [dir="rtl"] .lang-toggle { margin-right: 0; }
}

.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.split-wide { grid-template-columns: 1.5fr 1fr; }
@media (max-width: 900px) { .split-wide { grid-template-columns: 1fr; } }

/* Language switch sits outside the collapsible menu so it is always visible */
.nav { justify-content: flex-start; }
.nav-links { margin-inline-start: auto; order: 2; }
.nav .lang-toggle { order: 3; margin: 0; margin-inline-start: 12px; flex-shrink: 0; }
.menu-btn { order: 4; margin-inline-start: 6px; }
.lang-toggle a { text-decoration: none; }
@media (max-width: 1120px) {
  .nav .lang-toggle { margin-inline-start: auto; }
}

/* Professional palette refinements */
.hero h1 em { font-style: normal; color: var(--accent); }
.site-header { border-bottom: 1px solid var(--line); }
.trust { background: var(--paper-2); }
.btn-primary { box-shadow: 0 1px 2px rgba(10,35,66,.12); }
.geo { background: var(--accent-soft); color: var(--accent); }
.outcome { border-left: 3px solid var(--accent); border-radius: 6px; }
[dir="rtl"] .outcome { border-left: 0; border-right: 3px solid var(--accent); }

/* Logo */
.brand img { display: block; }
.brand .logo-full { height: 52px; width: auto; }
.brand .logo-mark { display: none; height: 44px; width: 44px; }
@media (max-width: 1240px) { .brand .logo-full { height: 46px; } }
@media (max-width: 560px) { .brand .logo-full { display: none; } .brand .logo-mark { display: block; } }
.footer-logo img { height: auto; width: 100%; }
.footer-logo { display: block; max-width: 240px; }

/* Phone / tablet dropdown menu: full-width rows with comfortable spacing */
@media (max-width: 1120px) {
  .site-header .nav-links {
    left: 0; right: 0; padding: 8px 20px 24px; gap: 0;
    background: #ffffff; box-shadow: 0 16px 32px rgba(10,35,66,.10);
  }
  .site-header .nav-links li { list-style: none; width: 100%; }
  .site-header .nav-links a {
    display: block; width: 100%; padding: 16px 4px; font-size: 1.05rem; line-height: 1.4;
    border-bottom: 1px solid var(--line); border-radius: 0; white-space: normal;
  }
  .site-header .nav-links a:hover { background: var(--paper-2); }
  .site-header .nav-links a[aria-current="page"] { color: var(--accent); font-weight: 600; }
  .site-header .nav-links .nav-cta {
    display: block; text-align: center; margin: 20px 0 0; padding: 15px 20px;
    border-bottom: 0; border-radius: 999px; color: #fff; font-weight: 600;
  }
  .site-header .nav-links .nav-cta:hover { background: var(--ink-3); }
}

/* Header runs wider than the page content so the logo sits further out, with clear space before the menu */
.site-header .container.nav { max-width: 1760px; padding-left: 48px; padding-right: 48px; }
.site-header .brand { margin-inline-end: 48px; flex-shrink: 0; }
@media (max-width: 1240px) {
  .site-header .container.nav { padding-left: 24px; padding-right: 24px; }
  .site-header .brand { margin-inline-end: 24px; }
}
@media (max-width: 600px) { .site-header .container.nav { padding-left: 16px; padding-right: 16px; } }

/* Between the phone menu and full desktop, tighten the links so everything fits on one line */
@media (min-width: 1121px) and (max-width: 1320px) {
  .site-header .nav-links a { padding: 8px 8px; font-size: .9rem; }
  .site-header .nav-links .nav-cta { padding: 9px 16px; margin-inline-start: 6px; }
  .site-header .brand { margin-inline-end: 16px; }
  .site-header .nav .lang-toggle { margin-inline-start: 10px; }
}

/* Header layout: logo | centred page links | actions (CTA + language) */
.nav-actions { display: flex; align-items: center; gap: 16px; order: 3; }
.nav-actions .lang-toggle,.nav .nav-actions .lang-toggle { margin: 0; }
.nav-actions .nav-cta {
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem;
  padding: 10px 20px; border-radius: 999px; white-space: nowrap; transition: background .2s;
}
.nav-actions .nav-cta:hover { background: var(--ink-3); }
.nav-actions .nav-cta[aria-current="page"] { background: var(--accent); }
@media (min-width: 1121px) {
  .site-header .nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
  .site-header .brand { justify-self: start; margin: 0; }
  .site-header .nav-links { justify-self: center; margin: 0; gap: 6px; }
  .site-header .nav-actions { justify-self: end; }
  .nav-links .nav-cta-item { display: none; }
}
@media (min-width: 1121px) and (max-width: 1320px) {
  .site-header .nav { gap: 12px; }
  .site-header .nav-links { gap: 0; }
  .nav-actions { gap: 10px; }
  .nav-actions .nav-cta { padding: 9px 16px; font-size: .88rem; }
}
@media (max-width: 1120px) {
  .nav-actions { margin-inline-start: auto; }
  .nav-actions .nav-cta { display: none; }
  .site-header .nav .lang-toggle { margin-inline-start: 0; }
}

/* ==========================================================================
   Brand identity (MY Brand Guidelines): navy #0A2342, turquoise #00D6D6,
   light grey #F2F5F8, charcoal #1E1E1E; Montserrat / Inter / Cairo
   ========================================================================== */
h1 { font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
h2 { font-weight: 700; letter-spacing: -.02em; }
h3,h4 { font-weight: 600; letter-spacing: -.01em; }
html[lang="ar"] h1,html[lang="ar"] h2 { font-weight: 700; }
.eyebrow { letter-spacing: .2em; }
.prose p.big { font-weight: 500; }

/* Buttons: turquoise pill with navy text */
.btn-primary { background: var(--turquoise); color: var(--ink); }
.btn-primary:hover { background: #00bfc0; color: var(--ink); }
.nav-actions .nav-cta { background: var(--turquoise); color: var(--ink); }
.nav-actions .nav-cta:hover { background: #00bfc0; }
.nav-actions .nav-cta[aria-current="page"] { background: var(--ink); color: #fff; }
@media (max-width: 1120px) {
  .site-header .nav-links .nav-cta { background: var(--turquoise); color: var(--ink); }
  .site-header .nav-links .nav-cta:hover { background: #00bfc0; }
}

/* Logo sizes (the signature logo is wider and thinner than the old mark) */
.brand .logo-full { height: 54px; }
@media (max-width: 1240px) { .brand .logo-full { height: 46px; } }
.brand .logo-mark { width: auto; height: 42px; }
.footer-logo { max-width: 230px; }

/* Brand curves on dark surfaces */
.on-dark,.page-hero,.site-footer {
  background-color: var(--ink);
  background-image: url("brand/curves.svg");
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.site-footer { background-color: var(--navy-deep); background-position: center bottom; }
.page-hero::after { display: none; }
.page-hero::before {
  content: ""; position: absolute; inset-inline-end: 6%; top: 50%; transform: translateY(-50%);
  width: min(320px, 40vw); aspect-ratio: 480 / 263; pointer-events: none;
  background: url("brand/monogram-white.png") center / contain no-repeat; opacity: .07;
}
.page-hero > .container { position: relative; z-index: 1; }
.on-dark h1 em,.on-dark h2 em,.page-hero h1 em { color: var(--turquoise); font-style: normal; }
.on-dark .link-arrow { color: var(--turquoise); }

/* Home hero: dark navy with portrait */
.hero.hero-dark { background: var(--ink) url("brand/curves.svg") center / cover no-repeat; color: #c9d2de; }
.hero.hero-dark::after { display: none; }
.hero-dark h1 { color: #fff; }
.hero-dark h1 em { color: var(--turquoise); }
.hero-dark .lead { color: #b9c6d6; }
.hero-dark .eyebrow { color: var(--turquoise); }
.hero-dark .btn-ghost { color: #fff; }
.hero-dark .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero-dark .hero-card,.on-dark .hero-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(0,214,214,.28);
  box-shadow: 0 0 0 1px rgba(255,255,255,.02), 0 20px 60px rgba(0,214,214,.10);
}

/* Portrait photos */
.hero-card .portrait { background: #000; border: 0; padding: 0; overflow: hidden; display: block; }
.hero-card .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }
@media (max-width: 900px) { .hero-card .portrait { aspect-ratio: 1 / 1; } }
.contact-photo { border-radius: 20px; overflow: hidden; margin-bottom: 20px; aspect-ratio: 4 / 3; background: #000; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; display: block; }

/* Brand promise band */
.promise {
  display: flex; align-items: center; gap: 36px; padding: 40px 48px; border-radius: 24px;
  background: var(--ink) url("brand/curves.svg") center / cover no-repeat;
  border: 1px solid rgba(0,214,214,.3);
}
.promise-pill {
  flex-shrink: 0; background: var(--turquoise); color: var(--ink); font-family: var(--serif); font-weight: 700;
  font-size: 1.35rem; padding: 14px 30px; border-radius: 14px; white-space: nowrap;
}
.promise h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.5rem, 3vw, 2.25rem); }
.promise p { color: var(--turquoise); font-weight: 600; margin: 0; font-size: 1.1rem; }
@media (max-width: 760px) { .promise { flex-direction: column; align-items: flex-start; gap: 20px; padding: 30px 24px; } }
.brand .logo-full { height: 62px; }
@media (max-width: 1240px) { .brand .logo-full { height: 52px; } }

/* Books & Publications */

/* Videos */

/* Form error message (shown if a submission fails) */
.form-error { display: none; margin-top: 14px; padding: 16px 18px; border-radius: 10px; background: #fdecec; color: #8a1f1f; font-size: .95rem; }
.form-error.show { display: block; }
.form-error a { color: inherit; font-weight: 600; }
button[disabled] { opacity: .7; cursor: progress; }

/* Qualifications & credentials (home) */
.cred-tracks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.cred-track { background: rgba(255,255,255,.04); border: 1px solid rgba(0,214,214,.22); border-radius: 18px; padding: 26px 24px; }
.cred-track-title { font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--turquoise); margin: 0 0 20px; line-height: 1.5; }
.cred-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 16px; }
.cred-badge { text-align: center; }
.cred-logo { display: grid; place-items: center; aspect-ratio: 1; background: #fff; border-radius: 14px; padding: 10px; margin-bottom: 10px; }
.cred-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cred-badge b { display: block; color: #fff; font-family: var(--serif); font-size: .98rem; line-height: 1.3; }
.cred-badge > span { display: block; color: #9fb0c3; font-size: .8rem; line-height: 1.4; margin-top: 2px; }
@media (max-width: 1000px) { .cred-tracks { grid-template-columns: 1fr; } }
.contact-list a { overflow-wrap: anywhere; }
.cred-tracks { grid-template-columns: 2fr 3fr 3fr; }
.cred-badges { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 14px; }
@media (max-width: 1000px) { .cred-tracks { grid-template-columns: 1fr; } .cred-track:first-child .cred-badges { grid-auto-columns: minmax(0, 1fr); max-width: 66%; } }
@media (max-width: 480px) { .cred-track { padding: 22px 16px; } .cred-badges { gap: 10px; } .cred-badge > span { font-size: .74rem; } }

/* Supply Chain Service Lines: linked arrow flow */
.sc-flow { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 4px; counter-reset: none; }
.sc-step { min-width: 0; }
.sc-arrow {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 96px;
  padding: 16px 34px 16px 36px; color: #fff; transition: filter .2s;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 0 100%, 24px 50%);
}
.sc-step:first-child .sc-arrow { padding-left: 22px; clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 0 100%); }
[dir="rtl"] .sc-arrow { padding: 16px 36px 16px 34px; clip-path: polygon(24px 0, 100% 0, calc(100% - 24px) 50%, 100% 100%, 24px 100%, 0 50%); }
[dir="rtl"] .sc-step:first-child .sc-arrow { padding-right: 22px; clip-path: polygon(24px 0, 100% 0, 100% 100%, 24px 100%, 0 50%); }
.sc-step:nth-child(1) .sc-arrow { background: #0a2342; }
.sc-step:nth-child(2) .sc-arrow { background: #0d375c; }
.sc-step:nth-child(3) .sc-arrow { background: #0f4c75; }
.sc-step:nth-child(4) .sc-arrow { background: #0c6385; }
.sc-step:nth-child(5) .sc-arrow { background: #007c86; }
.sc-step:hover .sc-arrow { filter: brightness(1.15); }
.sc-num { flex-shrink: 0; font-family: var(--serif); font-weight: 700; font-size: 1.45rem; line-height: 1; color: var(--turquoise); }
.sc-step:nth-child(5) .sc-num { color: #bff6f6; }
.sc-title { font-family: var(--serif); font-weight: 600; font-size: .95rem; line-height: 1.28; }
.sc-body { padding: 18px 16px 0 8px; }
[dir="rtl"] .sc-body { padding: 18px 8px 0 16px; }
.sc-body p { font-size: .88rem; line-height: 1.55; color: var(--muted); margin: 0 0 12px; }
.sc-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.sc-items li { position: relative; padding-left: 15px; font-size: .86rem; line-height: 1.45; color: var(--ink-2); }
.sc-items li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--turquoise); }
[dir="rtl"] .sc-items li { padding-left: 0; padding-right: 15px; }
[dir="rtl"] .sc-items li::before { left: auto; right: 0; }

/* Stacked version: home tab, and every flow on tablets and phones; arrows point down into the next stage */

@media (max-width: 1000px) {
  .sc-flow { grid-template-columns: 1fr; gap: 0; }
  .sc-flow .sc-arrow,.sc-flow .sc-step:first-child .sc-arrow,[dir="rtl"] .sc-flow .sc-arrow,[dir="rtl"] .sc-flow .sc-step:first-child .sc-arrow {
    min-height: 0; padding: 14px 22px 28px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 50% 100%, 0 calc(100% - 14px));
  }
  .sc-flow .sc-body,[dir="rtl"] .sc-flow .sc-body { padding: 12px 6px 18px; }
  .sc-flow .sc-items { display: flex; flex-wrap: wrap; gap: 6px 16px; }
}

/* Home: Supply Chain Service Lines as an always-visible vertical timeline */
.sc-timeline { list-style: none; margin: 18px 0 0; padding: 0; }
.sc-tl-step { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding-bottom: 26px; }
.sc-tl-step:last-child { padding-bottom: 0; }
.sc-tl-step:not(:last-child)::before {
  content: ""; position: absolute; top: 52px; bottom: 10px; left: 23px; width: 2px;
  background: linear-gradient(var(--turquoise), rgba(0,214,214,.35));
}
.sc-tl-step:not(:last-child)::after {
  content: ""; position: absolute; bottom: 2px; left: 18px;
  border-style: solid; border-width: 9px 6px 0 6px; border-color: rgba(0,214,214,.6) transparent transparent transparent;
}
[dir="rtl"] .sc-tl-step:not(:last-child)::before { left: auto; right: 23px; }
[dir="rtl"] .sc-tl-step:not(:last-child)::after { left: auto; right: 18px; }
.sc-tl-dot {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: .95rem; color: var(--turquoise);
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(0,214,214,.35);
}
.sc-tl-step:nth-child(1) .sc-tl-dot { background: #0a2342; }
.sc-tl-step:nth-child(2) .sc-tl-dot { background: #0d375c; }
.sc-tl-step:nth-child(3) .sc-tl-dot { background: #0f4c75; }
.sc-tl-step:nth-child(4) .sc-tl-dot { background: #0c6385; }
.sc-tl-step:nth-child(5) .sc-tl-dot { background: #007c86; color: #fff; }
.sc-tl-body h4 { margin: 11px 0 4px; font-size: 1.06rem; }
.sc-tl-body p { margin: 0 0 10px; font-size: .9rem; line-height: 1.55; color: var(--muted); }
.sc-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sc-tags li { font-size: .78rem; line-height: 1.35; padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); color: #005c63; }
@media (max-width: 480px) {
  .sc-tl-step { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .sc-tl-dot { width: 40px; height: 40px; font-size: .85rem; }
  .sc-tl-step:not(:last-child)::before { top: 46px; left: 19px; }
  .sc-tl-step:not(:last-child)::after { left: 14px; }
  [dir="rtl"] .sc-tl-step:not(:last-child)::before { left: auto; right: 19px; }
  [dir="rtl"] .sc-tl-step:not(:last-child)::after { left: auto; right: 14px; }
  .sc-tl-body h4 { margin-top: 8px; }
}
