/* OMSAZE Consulting: site styles — Executive Navy (corporate redesign 2026-12-03)
   Single tokens, see the :root below: Navy #0B1F3A, Blue #1263C7, Cyan #00AAFF,
   Gold #C9A55C, Mist #F3F6FA. Headings: Manrope. Body: Source Sans 3.
   Arabic: IBM Plex Sans Arabic. Photos are cropped with rounded corners. */

:root {
  --navy: #0B1F3A;
  --blue: #1263C7;
  --cyan: #00AAFF;
  --gold: #C9A55C;
  --gold-ink: #8A6A2B;
  --mist: #F3F6FA;
  --white: #FFFFFF;
  --text: #3A4A5E;
  --muted: #5A6B80;
  --rule: rgba(11, 31, 58, 0.1);
  --radius: 16px;
  --max: 1180px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --display: "Manrope", "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* QA 2026-12-04: safety net only — the real overflow fix is the figure margin reset above plus min-width:0 grid children. overflow-x:clip (not hidden) keeps the sticky header working. */
body { overflow-x: clip; }
body { margin: 0; font-family: var(--body); font-size: 1.125rem; line-height: 1.6; color: var(--text); background: var(--white); }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; } /* QA 2026-12-04: browser default figure margin (1em 40px) pushed .hero-photo-wrap 40px right, causing a 20px horizontal scroll at 360/390px. */
a { color: var(--navy); text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.band-navy :focus-visible, .closing :focus-visible { outline-color: var(--gold); }

h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--navy); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(2rem, 4vw, 3.5rem); }
.band-mist { background: var(--mist); }
.band-navy { background: var(--navy); color: rgba(255, 255, 255, 0.86); }
.band-navy h1, .band-navy h2, .band-navy h3 { color: var(--white); }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.3rem); max-width: 42rem; }
.muted { color: var(--muted); }
.band-navy .muted { color: rgba(255, 255, 255, 0.72); }
.section-intro { max-width: 46rem; margin-bottom: 1.5rem; }
.section-intro h2 { margin-bottom: 0.5rem; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 30; background: var(--gold); color: var(--navy); padding: 0.6rem 1rem; font-weight: 600; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Buttons and pills */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.7rem 1.35rem; border: 2px solid var(--navy); border-radius: 4px; font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { opacity: 0.9; text-decoration: none; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn-line { background: transparent; color: var(--navy); }
.band-navy .btn-line, .closing .btn-line { color: var(--white); border-color: var(--white); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1rem; }
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 1.75rem 0 0; padding: 0; }
.pills li { border: 1px solid var(--gold); border-radius: 999px; padding: 0.3rem 0.9rem; font-size: 0.95rem; color: var(--white); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--white); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 108px; }
.brand img { width: 144px; }
.nav { display: flex; align-items: center; gap: clamp(0.9rem, 1.5vw, 1.5rem); }
.nav a { color: var(--navy); font-weight: 500; font-size: 1rem; text-decoration: none; padding-block: 0.4rem; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.nav .btn { min-height: 0; padding: 0.55rem 1.05rem; }
.nav .btn-navy { color: var(--white); }
.nav .btn-navy:hover { text-decoration: none; }
.menu-toggle { display: none; background: none; border: 2px solid var(--navy); border-radius: 4px; padding: 0.45rem 0.9rem; min-height: 44px; font: 600 1rem var(--body); color: var(--navy); cursor: pointer; } /* Tablet fix (Dec 4 2026): 44px tap target at 641-1200px too — was ~40px there (F4b scoped the 44px rule to phones only); the toggle only displays at <=1200px, so desktop is unaffected. */
@media (max-width: 1200px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--rule); padding: 0.5rem var(--pad) 1.25rem; }
  .nav.is-open { display: flex; }
  .nav a { padding-block: 0.8rem; border-bottom: 1px solid var(--rule); }
  .nav .btn { margin-top: 1rem; justify-content: center; border-bottom-width: 2px; }
}

/* Hero: brand lockup, pills and the staged sequence */
.hero { padding-block: clamp(3.25rem, 6.5vw, 6rem); }
.hero h1 { max-width: 16ch; }
.hero .lead { color: rgba(255, 255, 255, 0.86); }
.brand-lockup { margin-bottom: 2.25rem; }
.brand-lockup .name { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1; letter-spacing: 0.02em; color: var(--white); }
.brand-lockup .descriptor { display: block; font-family: var(--display); font-weight: 500; font-size: 0.9rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold); margin-top: 0.55rem; }
.brand-lockup .rule { display: block; width: 100%; max-width: 26rem; height: 1px; background: var(--gold); opacity: 0.8; margin-top: 1.1rem; }
.stages-head { margin-top: clamp(2rem, 4vw, 3.25rem); }
.stages-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-bottom: 0.4rem; }
.stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.75rem); margin-top: 1.75rem; }
@media (max-width: 860px) { .stages { grid-template-columns: 1fr; } }
.stage { position: relative; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.stage::before { content: ""; position: absolute; top: -2px; inset-inline-start: 0; width: 100%; height: 3px; background: var(--gold); transform-origin: left center; animation: draw-rule 0.9s ease-out both; }
.stage:nth-child(2)::before { animation-delay: 0.25s; }
.stage:nth-child(3)::before { animation-delay: 0.5s; }
.stage h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 0.4rem; }
.stage p { margin: 0; color: rgba(255, 255, 255, 0.8); font-size: 1.02rem; }
@keyframes draw-rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Six letter pillars, in navy tiles as in the reference */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.pillar { background: var(--navy); color: rgba(255, 255, 255, 0.86); border-radius: var(--radius); padding: 1.25rem 1.25rem 1.35rem; }
.pillar .letter { display: block; font-family: var(--display); font-weight: 700; font-size: 3rem; line-height: 1; color: var(--white); margin-bottom: 0.9rem; }
.pillar h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 0.35rem; }
.pillar p { margin: 0; font-size: 1rem; line-height: 1.5; }
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

/* Divisions with photos */
.divisions { list-style: none; margin-top: 2rem; border-top: 1px solid var(--rule); }
.division { display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; gap: 1.75rem; align-items: center; padding-block: 1.5rem; border-bottom: 1px solid var(--rule); }
.division img { width: 9rem; height: 6.5rem; object-fit: cover; border-radius: var(--radius); }
.division h3 { margin: 0 0 0.35rem; }
.division p { margin: 0; color: var(--muted); }
.division a { font-weight: 600; }
@media (max-width: 760px) {
  .division { grid-template-columns: 6.5rem minmax(0, 1fr); }
  .division img { width: 6.5rem; height: 5rem; }
  .division a { grid-column: 2; justify-self: start; }
}

/* Text rows (service lists on inner pages) */
.rows { list-style: none; margin-top: 2rem; border-top: 1px solid var(--rule); }
/* FIX (Dec 4 2026) — row padding: row text sat flush against the card's left
   border (~0-2px) while the cards above have ~24px padding. 24px inline padding
   matches them. The fr tracks absorb the 48px (col 1 stays >= 12rem at 1440);
   at <=760px the rows are single-column and box-sizing is border-box, so no
   overflow at 390. Shared rule on purpose: Academy and Insights rows were flush
   the same way, and 24px makes them consistent with the cards above, not looser. */
.rows li { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(0, 2fr) auto; gap: 1.5rem; align-items: baseline; padding-block: 1rem; padding-inline: 1.5rem; border-bottom: 1px solid var(--rule); }
.rows h3 { margin: 0; }
.rows p { margin: 0; color: var(--muted); }
.rows a { font-weight: 600; }
@media (max-width: 760px) { .rows li { grid-template-columns: 1fr; gap: 0.4rem; } }

/* Split layout: text and a rounded photo */
.page-head { padding-block: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--rule); }
/* Symmetry fix round 2 (Dec 4 2026): ONE split grid for heroes and sections
   with EQUAL tracks. Round 1 used 1.05fr/0.95fr, which measured 539.7px vs
   488.3px at 1920px — and the --left flip puts the photo in the wider track
   on left sections, so left and right media differed by ~51px on every page.
   Equal 1fr/1fr tracks make left and right media the same width at every
   viewport (514.0px at 1920/1440; the 3:2 figure makes the height 342.7px). */
.split, .section-media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split h1 { max-width: 16ch; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.split-text p:last-child { margin-bottom: 0; }

/* Lists, columns and reasons */
.checklist { list-style: none; margin: 1rem 0 0; display: grid; gap: 0.9rem; }
.checklist li { position: relative; padding-inline-start: 1.6rem; }
.checklist li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.5em; width: 0.7rem; height: 0.7rem; background: var(--gold); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); margin-top: 1.5rem; }
.two-col > div + div { border-inline-start: 2px solid var(--gold); padding-inline-start: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col > div + div { border-inline-start: 0; padding-inline-start: 0; border-top: 2px solid var(--gold); padding-top: 2rem; }
}
.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem clamp(2rem, 5vw, 4rem); margin-top: 1.5rem; }
.reasons h3 { margin-bottom: 0.4rem; }
.reasons p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .reasons { grid-template-columns: 1fr; } }

/* Closing band: navy with a photo behind it */
.closing { color: rgba(255, 255, 255, 0.88); background: linear-gradient(rgba(16, 45, 70, 0.9), rgba(16, 45, 70, 0.9)), url("../img/architecture-3d.jpg") center / cover no-repeat var(--navy); }
.closing--zenith { background: linear-gradient(rgba(16, 45, 70, 0.86), rgba(16, 45, 70, 0.86)), url("../img/zenith-summit.jpg") center / cover no-repeat var(--navy); }
.closing h2 { color: var(--white); }
.closing .lead { color: rgba(255, 255, 255, 0.86); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-details { border-inline-start: 2px solid var(--gold); padding-inline-start: 1.5rem; }
.contact-details h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.contact-details p { margin-bottom: 1.25rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Forms */
.form { display: grid; gap: 0.8rem; max-width: 42rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
/* Fix round (Dec 4 2026) — contact form: bottom-align one row only, so inputs sit
   level when their labels wrap to different line counts. Applied to the
   Company/Phone row; Budget/Timeline already align. */
.form .row-align-end { align-items: end; }
label { display: grid; gap: 0.4rem; font-weight: 600; color: var(--navy); font-size: 1.125rem; }
input, select, textarea { font: inherit; font-weight: 400; color: var(--navy); background: var(--white); border: 1.5px solid rgba(16, 45, 70, 0.35); border-radius: 4px; padding: 0.7rem 0.85rem; width: 100%; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--navy); }
.checkbox { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 400; }
.checkbox input { width: auto; margin-top: 0.35rem; }
.form-status { min-height: 1.5em; font-weight: 600; color: var(--navy); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--white); border-top: 3px solid var(--gold); padding-block: 2.5rem 1.5rem; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
.footer-logo { width: 130px; margin-bottom: 1rem; }
.footer-grid h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.footer-links { list-style: none; display: grid; gap: 0.45rem; }
.footer-contact { margin-top: 1rem; }
.legal-row { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: 0.95rem; }
.legal-row p { margin: 0; }
.legal-row nav { display: flex; gap: 1.25rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Legal pages */
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { list-style: disc; padding-inline-start: 1.4rem; margin-bottom: 1em; }
.draft-note { border: 2px solid var(--gold); padding: 1rem 1.25rem; margin-bottom: 1.5rem; color: var(--navy); max-width: 44rem; }
.notice { border-inline-start: 4px solid var(--gold); background: var(--mist); padding: 1rem 1.25rem; margin-top: 1rem; max-width: 44rem; color: var(--navy); }
/* Symmetry fix (Dec 4 2026): the erp-support "Service commitments" notice was
   capped at 44rem (~705px) by .notice; the --full variant spans the grid like
   the other boxes on the page. Scoped to that one notice. */
.notice--full { max-width: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage::before { animation: none; }
}


/* OMSAZE Navy Edition | preview/navy-redesign | isolated design layer */
/* Superseded Navy Edition tokens (corporate redesign 2026-12-03): blue used as gold, radius 22px, superseded display font — removed. The single :root at the top of this file now applies site-wide. */
body{background:#fff;color:var(--text);font-size:1.075rem;line-height:1.75}
h1,h2,h3{letter-spacing:-.04em;color:var(--navy)}h1{font-size:clamp(2.8rem,6.2vw,5.5rem);line-height:1.08;max-width:18ch}h2{font-size:clamp(2rem,3.8vw,3.25rem);line-height:1.14}h3{font-size:1.23rem}
a{text-decoration-color:#1263C7}a:hover{color:#1263C7}::selection{background:#cceeff;color:#071b35}
.site-header{background:rgba(255,255,255,.96);backdrop-filter:blur(18px);box-shadow:0 4px 30px rgba(11,31,58,.035)}.header-inner{min-height:94px}.brand img{width:177px;max-height:68px;object-fit:contain}.nav{gap:clamp(.7rem,1.15vw,1.25rem)}.nav a{font-size:.91rem;font-weight:600}.nav a:hover,.nav a[aria-current="page"]{text-decoration-color:#1263C7}.nav .btn{border-radius:999px}
.btn{border-radius:999px;padding:.8rem 1.55rem;transition:transform .2s,box-shadow .2s,background .2s}.btn:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(8,38,78,.14);opacity:1}.btn-gold{color:#fff}.btn-navy{background:#0b1f3a}.btn-line{border-color:#0b1f3a}
.section{padding-block:clamp(2rem,4vw,3.5rem)}.band-mist{background:#f4f8fc}.band-navy{background:#0b1f3a}
.hero{position:relative;overflow:hidden;background:radial-gradient(ellipse at 94% 18%,rgba(0,120,232,.22),transparent 40%),linear-gradient(120deg,#07172d,#0b2b52 70%,#123e77);padding-block:clamp(3.25rem,6.5vw,6rem)}.hero::after{content:"";position:absolute;right:-12vw;bottom:-20vw;width:46vw;height:46vw;border:1px solid rgba(127,208,255,.12);border-radius:50%;pointer-events:none}.hero .wrap{position:relative;z-index:1}.hero h1{max-width:17ch;color:#fff}.hero .lead{max-width:53rem;color:#d8e7f7;font-size:clamp(1.15rem,1.7vw,1.35rem)}.brand-lockup .name{font-size:clamp(2rem,4vw,3rem)}.brand-lockup .descriptor{color:#55c9ef;letter-spacing:.28em}.brand-lockup .rule{background:#36b8eb}.pills li{border-color:rgba(115,205,248,.45);background:rgba(255,255,255,.07);padding:.4rem 1rem}.stage::before{background:#27c7eb}.stage{border-color:rgba(255,255,255,.19)}.stages-head{margin-top:3.25rem}.stages-head h2{color:#fff}.stage h3{color:#fff}
.section-intro{max-width:55rem}.section-intro h2{max-width:21ch}.division{grid-template-columns:11rem minmax(0,1fr) auto;gap:2rem;padding-block:1.7rem}.division img{width:11rem;height:7.5rem;border-radius:18px}.division a{color:#1263C7;text-decoration:none}.division a:hover{text-decoration:underline}
.pillar{background:#fff;color:var(--text);border:1px solid var(--rule);box-shadow:0 12px 36px rgba(7,30,58,.055);padding:1.25rem;border-radius:22px;transition:transform .2s,box-shadow .2s}.pillar:hover{transform:translateY(-5px);box-shadow:0 18px 45px rgba(7,30,58,.1)}.pillar .letter{color:#1263C7}.pillar h3{color:#0b1f3a}.pillar p{color:var(--muted)}
.page-head{background:linear-gradient(125deg,#f5f9fd,#fff 60%)}.page-head h1{max-width:19ch}.split img{border-radius:24px;box-shadow:0 18px 45px rgba(9,34,64,.09)}.rows li{padding-block:1rem}.rows li a{color:#1263C7}.checklist li::before{background:#13a6bf;border-radius:50%}.two-col>div+div,.contact-details{border-color:#17a8d9}
.closing,.closing--zenith{background-image:linear-gradient(110deg,rgba(6,24,47,.94),rgba(9,45,83,.9)),url("../img/architecture-3d.jpg")}.closing h2{color:#fff}
.site-footer{background:#071b35;color:#d7e5f5}.site-footer a{color:#e7f3ff}.site-footer h3{color:#fff}.site-footer .muted,.site-footer .legal-row{color:#d3e0f0}
@media(max-width:1200px){.nav{box-shadow:0 20px 28px rgba(11,31,58,.08)}.menu-toggle{border-radius:999px}}@media(max-width:760px){.division{grid-template-columns:6.5rem minmax(0,1fr);gap:1rem}.division img{width:6.5rem;height:5.5rem}.hero{padding-block:4.5rem}.header-inner{min-height:80px}.brand img{width:150px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* Corporate redesign 2026-12-03: dead logo override removed — no page references omsaze-wordmark.svg. Single logo: assets/img/omsaze-next-rise-logo.png. */


/* Bilingual language control and RTL layout */
.language-switch{flex-shrink:0;border:1px solid var(--navy);border-radius:5px;background:#fff;color:var(--navy);padding:.4rem .7rem;font:600 .95rem var(--body);cursor:pointer;white-space:nowrap}
html[dir="rtl"] body{font-family:Tahoma,"Segoe UI",Arial,sans-serif;text-align:right}
html[dir="rtl"] h1,html[dir="rtl"] h2,html[dir="rtl"] h3{font-family:Tahoma,"Segoe UI",Arial,sans-serif;letter-spacing:normal}
html[dir="rtl"] .reference-hero-copy{text-align:right}
html[dir="rtl"] .reference-hero h1{direction:rtl}
html[dir="rtl"] input[type="email"],html[dir="rtl"] input[type="tel"]{direction:ltr;text-align:left}
/* Fix 2026-12-03: removed margin-inline-start:auto here — it pushed the language switch away from the nav tabs. The button now lives inside #primary-nav; see the final override block below. */

/* Next Rise logo sizing (desktop, tablet, mobile) */
/* FIX (Dec 4 2026) — Arabic header logo collapsed to 22x11px at 1440 (vs 154x76
   EN). Root cause: in Arabic the nav labels are far longer than in English
   (notably "التحول الرقمي وهندسة المؤسسة") and the links are white-space:nowrap,
   so the nav needs ~1050px in the 1100px header box; the flex row overflows and
   the brand anchor — whose only content is the img capped by the global
   img{max-width:100%} — is squeezed, the img shrinking with it at its 2:1 ratio.
   No RTL rule touches the logo; the cascade specifies the same size both ways.
   Fix: the brand never shrinks (explicit flex-basis = the img's rendered width,
   152px desktop / 112px phone), the RTL size is restated explicitly, and RTL nav
   links may wrap so the nav fits without squeezing anything. EN is unchanged:
   the anchor was already 152px wide there. */
.brand { flex: 0 0 152px; }
.brand img { width: 172px; height: auto; max-height: 76px; object-fit: contain; }
html[dir="rtl"] .brand img { width: 172px; max-height: 76px; } /* same size as LTR, mirrored */
html[dir="rtl"] .site-header .nav a:not(.btn) { white-space: normal; } /* RTL only: long Arabic labels may wrap to two lines so the nav fits at 1440; EN stays single-line */
.footer-logo { width: 190px; height: auto; }
@media (max-width: 760px) {
  .brand { flex-basis: 112px; }
  .brand img { width: 136px; max-height: 56px; }
  .footer-logo { width: 160px; }
}

/* WhatsApp floating button, shown on every page */
.whatsapp-float { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60; width: 3.4rem; height: 3.4rem; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 24px rgba(11,31,58,.22); transition: transform .2s ease; }
.whatsapp-float svg { width: 1.9rem; height: 1.9rem; }
.whatsapp-float:hover, .whatsapp-float:focus-visible { transform: scale(1.06); }
html[dir="rtl"] .whatsapp-float { right: auto; left: 1.1rem; }

/* Footer logo sits on a white plate so it reads on the navy footer */
.site-footer .footer-logo { background: #fff; padding: .55rem .75rem; border-radius: 10px; box-sizing: content-box; }

/* ===== Final polish: type, colour and buttons (professional consulting look) ===== */
/* Corporate redesign 2026-12-03: tokens consolidated into the single :root at the top of this file. */
body { font-size: 1.0625rem; line-height: 1.7; color: var(--text); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; color: var(--navy); letter-spacing: -0.025em; }
h1 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.08; } /* Group 3 remediation F7 (Dec 4 2026): one h1 scale — was clamp(2.4rem, 5vw, 3.9rem) = 62.4px at 1440 on inner pages vs 41.6px home hero; now the home scale (2.6rem cap = 41.6px) everywhere. The home hero h1 keeps its own identical clamp. */
h2 { font-size: clamp(1.9rem, 3.3vw, 2.7rem); line-height: 1.15; }
h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -0.01em; }
.lead { color: var(--muted); font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.65; }
.reference-eyebrow, .page-head .eyebrow, .eyebrow { font-family: var(--display); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }

/* Buttons: pill shape, gradient, soft shadow, lift on hover */
.btn {
  border: 0; border-radius: 999px; min-height: 52px; padding: 0.85rem 1.7rem;
  font: 700 1rem/1.2 var(--body); letter-spacing: 0.01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); opacity: 1; text-decoration: none; }
.btn-navy { background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); color: #fff; box-shadow: 0 10px 24px -10px rgba(18, 99, 199, .65); }
.btn-navy:hover { box-shadow: 0 16px 30px -12px rgba(18, 99, 199, .75); color: #fff; }
.btn-gold { background: linear-gradient(135deg, #E4C98E 0%, var(--gold) 100%); color: var(--navy); box-shadow: 0 10px 24px -12px rgba(201, 165, 92, .8); }
.btn-gold:hover { box-shadow: 0 16px 30px -12px rgba(201, 165, 92, .9); color: var(--navy); }
.btn-line { background: #fff; color: var(--navy); border: 1.5px solid rgba(11, 31, 58, .18); box-shadow: none; }
.btn-line:hover { border-color: var(--blue); color: var(--blue); }
.band-navy .btn-line, .closing .btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.band-navy .btn-line:hover, .closing .btn-line:hover { border-color: #fff; color: #fff; }
.cta-row { gap: 1rem; }

/* Header and navigation */
.site-header { background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(11, 31, 58, .06), 0 8px 24px -16px rgba(11, 31, 58, .25); }
.nav a { font-weight: 600; font-size: .98rem; color: var(--navy); }
.nav a:not(.btn):hover { color: var(--blue); text-decoration: none; }
.nav a[aria-current="page"]:not(.btn) { color: var(--blue); }
.nav a.btn { color: #fff; }
.language-switch { border-radius: 999px; border: 1.5px solid rgba(11, 31, 58, .18); font-weight: 700; color: var(--navy); }
.language-switch:hover { border-color: var(--blue); color: var(--blue); }

/* Cards: divisions, pillars, rows */
.division, .pillar, .rows li {
  background: #fff; border: 1px solid rgba(11, 31, 58, .08); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(11, 31, 58, .04), 0 18px 40px -26px rgba(11, 31, 58, .35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.division:hover, .rows li:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(11, 31, 58, .04), 0 24px 48px -26px rgba(18, 99, 199, .45); }
.pillar { background: linear-gradient(160deg, var(--navy) 0%, #123E6E 100%); border: 0; }
.pillar:hover { transform: translateY(-4px); }
.pillar .letter { background: linear-gradient(135deg, #7CC8FF, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.divisions { border-top: 0; }
.division a { font-weight: 700; color: var(--blue); }

/* Footer */
.site-footer { background: #071b35; }
.site-footer h3 { color: #fff; letter-spacing: 0; }

/* Arabic typography */
html[dir="rtl"] body, html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] .btn, html[dir="rtl"] .nav a {
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  letter-spacing: normal;
}
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { font-weight: 700; }

/* Digital Labs: service detail, pilot steps */
.detail { display: grid; grid-template-columns: max-content 1fr; gap: 0.45rem 1.1rem; margin: 0.5rem 0 0.5rem; }
.detail dt { font-weight: 700; color: var(--navy); }
.detail dd { margin: 0; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 1.25rem 0 0; counter-reset: step; }
.steps li { background: #fff; border: 1px solid rgba(11, 31, 58, 0.08); border-radius: var(--radius); padding: 1.3rem 1.2rem; counter-increment: step; box-shadow: 0 18px 40px -26px rgba(11, 31, 58, 0.35); }
.steps li::before { content: "0" counter(step); display: block; font-family: var(--display); font-weight: 800; color: var(--blue); font-size: 1.1rem; margin-bottom: 0.35rem; }
.steps li h3 { font-size: 1.05rem; }
.steps li p { margin: 0; font-size: 0.98rem; }
.steps-note { margin-top: 0.75rem; }

/* Digital Labs: pilot flow diagram and pilot inquiry fields */
.pilot-flow { display: block; width: 100%; height: auto; margin-top: 1.25rem; overflow: visible; /* Dec 5 2026, B3(3): the last box and gate end exactly at the viewBox edge (x=1100), so their 1.5px strokes were half-clipped; visible keeps them whole in both directions. */ }
.pilot-flow .pf-box rect { fill: #fff; stroke: rgba(18, 99, 199, 0.35); stroke-width: 1.5; }
.pilot-flow .pf-num { font-family: var(--display); font-weight: 800; font-size: 18px; fill: #00AAFF; }
.pilot-flow .pf-title { font-family: var(--display); font-weight: 700; font-size: 18px; fill: #0B1F3A; }
.pilot-flow .pf-arrows line { stroke: #1263C7; stroke-width: 2; }
.pilot-flow .pf-gate rect { fill: #C9A55C; }
.pilot-flow .pf-gate text { font-family: var(--body); font-weight: 700; font-size: 15px; fill: #0B1F3A; }
@media (max-width: 720px) { .pilot-flow { display: none; } }
@media (min-width: 721px) { .steps { display: none; } }
.labs-fields { border: 1px solid rgba(18, 99, 199, 0.25); border-radius: var(--radius); padding: 0.85rem 1rem; margin: 0 0 0.75rem; }
.labs-fields legend { font-family: var(--display); font-weight: 700; font-size: 1.125rem; color: var(--navy); padding: 0 0.4rem; }
.labs-fields[hidden] { display: none; }

/* Second assessment: homepage outcomes, leadership, shorter enquiry form */
.hero-outcomes-title { font-weight: 700; margin: 1.25rem 0 0.4rem; }
.hero-outcomes { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.hero-outcomes li { position: relative; padding-left: 1.3rem; }
.hero-outcomes li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--gold); }
.leader { background: #fff; border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 1.1rem 1.25rem; box-shadow: 0 18px 40px -28px rgba(11, 31, 58, 0.35); display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 1.5rem; align-items: start; } /* Symmetry fix (Dec 4 2026): max-width 760px removed — the card ended ~1165px instead of the 1500px grid edge; it now spans the full grid width. */
.leader h3 { margin-top: 0; }
/* Founder photo (Dec 4 2026, code only — the binary assets/img/founder-mohamed-taher.jpg is uploaded separately by the owner via github.com; until then the img 404s and the figure shows a neutral navy-gradient 'MT' monogram placeholder (Dec 4 2026, owner-ordered) — no photo substitute and no stock person; the photo appears automatically once the owner uploads the original. CORRECTION Dec 4 01:46 (rules 1-4): NO cropping — no object-fit: cover, no overflow clip, no border-radius cut. Show the FULL image at its natural 450x531 ratio; display size is controlled ONLY by proportional scaling (img width:100%; height:auto; wrapper aspect-ratio:450/531, which matches the source ratio exactly, so nothing is cut). Display 180px wide, never upscaled beyond the 450px source. Only the ORIGINAL 450x531 file goes up — no resized derivative, no editing/retouching/filtering/re-encoding. Photo shows the founder alone. Nothing with this photo goes live until the owner confirms who is in it, where it goes, and consent — DEV preview wiring only. PHOTO RULES Dec 4 01:47-01:48 (rules 5-7, standing, all photos): no photo showing a desk name plate, no visible third-party names or logos (e.g. Matarat); the ONLY permitted edit to any of his photos, EVER, is masking a desk name plate and its logo; any masked version is preview only, the owner approves each photo individually before any use; where a clean photo without a plate exists, prefer it over a masked one. The supplied portrait is clean (no plate, no logos) — no masking, no edit of any kind. Grid column order follows page direction, so the photo mirrors to the right in RTL. */
.leader-photo { margin: 0; min-width: 0; min-height: 0; aspect-ratio: 450 / 531; width: 180px; max-width: 100%; border: 1px solid rgba(201, 165, 92, .45); } /* Symmetry fix (Dec 4 2026): fixed 180px width so the figure renders identically on About and Contact (was ~178px vs ~154px); photo itself untouched — original file, no crop, proportional scaling only. */
.leader-photo img { width: 100%; height: auto; display: block; }
@media (max-width: 760px) { .leader { grid-template-columns: minmax(0, 1fr); gap: 1rem; } }
.more-details { border: 0; border-radius: 0; padding: 0; margin: 0 0 0.5rem; }
.more-details summary { cursor: pointer; font-weight: 600; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.more-details[open] summary { margin-bottom: 0.75rem; }

/* Third assessment: articles, insights list, required markers */
.article-wrap { max-width: 780px; }
.article-meta { color: var(--blue); font-weight: 700; font-size: 0.9rem; margin: 0 0 0.5rem; }
.article h2 { margin-top: 2rem; }
.article ol, .article ul { padding-left: 1.3rem; }
.article li { margin-bottom: 0.4rem; }
.insights-list-title { margin-top: 0; }
.req { color: #b3261e; font-weight: 700; }
.form-note { margin-bottom: 0.75rem; }

/* Insights content: takeaways, featured article, topic filters */
.takeaways { background: var(--mist, #F3F7FB); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 0.85rem 1.1rem; margin: 1rem 0; }
.takeaways h2 { margin: 0 0 0.5rem; font-size: 1.05rem; margin-top: 0; }
.takeaways ul { margin: 0; padding-left: 1.2rem; }
.featured-article { background: #fff; border-radius: var(--radius); padding: 1.25rem 1.4rem; margin: 0.75rem 0 1.25rem; box-shadow: 0 18px 40px -28px rgba(11, 31, 58, 0.35); border-block-start: 3px solid var(--gold); } /* Rulings (Dec 4 2026): gold top edge like the Home cards — was 4px blue. */
.featured-article h2 { margin: 0.3rem 0 0.5rem; }
.topic-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 1.25rem; }
.topic-btn { font: inherit; font-weight: 600; padding: 0.45rem 0.9rem; border-radius: 999px; border: 1px solid rgba(18, 99, 199, 0.35); background: #fff; color: var(--navy); cursor: pointer; }
.topic-btn.is-on, .topic-btn:focus-visible { background: var(--blue); color: #fff; outline: none; }
.article-list > li[hidden] { display: none; }

.footer-address { margin: 0.4rem 0 0.6rem; font-size: 0.95rem; }

/* Desktop header: keep menu labels on one line */
@media (min-width: 1201px) {
  .nav a { white-space: nowrap; font-size: 0.9rem; }
  .nav { gap: 0.85rem; }
}

/* OMS-UI-261124-06: readable Six Pillars on the navy tiles (contrast above 4.5:1). */
.pillars .pillar h3 { color: #FFFFFF; }
.pillars .pillar p { color: rgba(255, 255, 255, 0.88); }
.pillars .pillar .letter { color: var(--gold); }

/* OMS-UI-261124-08: one gold accent across the site, as on the "Contact OMSAZE" button.
   Gold on dark backgrounds; a deeper gold for small text on light backgrounds (contrast above 4.5:1). */
/* --gold-ink #8A6A2B is in the single :root above. */
.reference-eyebrow, .page-head .eyebrow, .eyebrow { color: var(--gold-ink); }
.band-navy .eyebrow, .closing .eyebrow, .site-footer .eyebrow { color: var(--gold); } /* Group 3 remediation F9 (Dec 4 2026): .reference-hero .reference-eyebrow removed from this gold rule — its background is the navy hero gradient, not white, so navy text would be invisible; it now renders the designed #7CC8FF from home-reference.css on navy. Gold text remains only on navy contexts. */
a.reference-primary, .reference-hero a.reference-primary { background: linear-gradient(135deg, #E4C98E 0%, var(--gold) 100%); color: var(--navy); box-shadow: 0 10px 24px -12px rgba(201, 165, 92, .8); }
a.reference-primary:hover, .reference-hero a.reference-primary:hover { background: linear-gradient(135deg, #EBD6A6 0%, #DDBF7E 100%); color: var(--navy); box-shadow: 0 16px 30px -12px rgba(201, 165, 92, .9); }
.hero-outcomes-title { color: var(--gold); }

/* OMS-CNT-261124-07: in Arabic (right-to-left) the hidden skip link at left:-999px made the page
   about 1,000px wider, so the footer and other sections showed as a cut-off dark strip. Hide it
   without moving it off the page; it still appears at the top when reached with the keyboard. */
.skip-link { left: 0; right: auto; }
[dir="rtl"] .skip-link { left: auto; right: 0; }
.skip-link:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; padding: 0; }
/* Same fix for the contact form's hidden anti-spam field (left:-10000px widened the Arabic page). */
.hp { position: absolute !important; left: 0 !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* OMS-MND-261125-04: links to the MindProof assessment pilot */
.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}
.rows h3 a{color:var(--navy);text-decoration:underline;text-decoration-color:var(--gold);text-decoration-thickness:2px;text-underline-offset:5px}
.rows h3 a:hover{color:#1263C7}
.rows a:focus-visible{outline:3px solid var(--navy);outline-offset:3px;border-radius:4px}
.pill{display:inline-block;margin-inline-end:.35rem;padding:.1rem .55rem;border-radius:999px;background:#fbf3e1;border:1px solid var(--gold);color:var(--navy);font-size:.8rem;font-weight:600;line-height:1.5;vertical-align:1px}
/* OMS-MND-261125-06: discreet owner link to the admin page */
.legal-row .footer-admin { opacity: .7; }

/* ===== Corporate redesign 2026-12-03 — final overrides (single source of truth) ===== */
/* Compact, professional navigation: tabs closer together, single-line labels. */
.site-header .header-inner { min-height: 76px; }
.site-header .nav { gap: .55rem; }
.site-header .nav a:not(.btn) { padding-inline: .55rem; font-size: .92rem; white-space: nowrap; }
.site-header .nav .btn { padding: .55rem 1.05rem; }
@media (max-width: 760px) { .site-header .header-inner { min-height: 64px; } }
/* Single hero primary button: gold gradient only. */
a.reference-primary, .reference-hero a.reference-primary { background: linear-gradient(135deg, #E4C98E 0%, var(--gold) 100%); color: var(--navy); box-shadow: 0 10px 24px -12px rgba(201, 165, 92, .8); }
a.reference-primary:hover, .reference-hero a.reference-primary:hover { background: linear-gradient(135deg, #EBD6A6 0%, #DDBF7E 100%); color: var(--navy); }
/* Locked pillar treatment: navy-gradient tiles, white text, gold letter. */
.pillar { background: linear-gradient(160deg, var(--navy) 0%, #123E6E 100%); border: 0; border-radius: 16px; }
.pillar .letter { color: var(--gold); background: none; -webkit-background-clip: initial; background-clip: initial; }
.pillars .pillar h3 { color: #fff; }
.pillars .pillar p { color: rgba(255, 255, 255, .88); }
/* Consistent 16px radii and navy footer. */
.division, .pillar, .rows li, .split img, .steps li, .featured-article { border-radius: 16px; }
.site-footer { background: #071b35; border-top: 3px solid var(--gold); }
input, select, textarea { border-radius: 12px; }
/* RTL: compact nav spacing mirrors. */
html[dir="rtl"] .site-header .nav { gap: .55rem; }
html[dir="rtl"] .site-header .nav a:not(.btn) { padding-inline: .55rem; }
/* Fix 2026-12-03 (owner visual testing): language switch tight against the
   nav tabs. The button is now injected as the last child of #primary-nav,
   after Contact, so it shares the nav gap instead of sitting apart in
   .header-inner. */
.site-header .nav .language-switch { margin-inline-start: .25rem; }
@media (max-width: 1200px) { .site-header .nav .language-switch { margin-inline-start: 0; align-self: flex-start; } }
/* Visual enhancement 2026-12-03: the three approved architectural photos are
   16:10 (1586x992). .split img defaults to a 4/3 crop, which would cut their
   sides, so the new page-head photos keep 16/10 with cover (no distortion).
   Scoped to .page-photo-1610 only; every other page keeps its 4/3 crop. */
.split img.page-photo-1610 { aspect-ratio: 16 / 10; border-radius: 16px; }

/* Group 1 phone fixes (Dec 4 2026, owner review F1-F35). */
@media (max-width:640px){
  /* F4 — every named phone tap target is at least 44px tall. Inline links get
     inline-flex + min-height so the target is the full 44px, not the text line:
     .rows links (incl. MindProof format rows and SAP/ERP 'Discuss this') and
     division links. Desktop unchanged. */
  .rows a{display:inline-flex;align-items:center;min-height:44px}
  .division a{display:inline-flex;align-items:center;min-height:44px}
  /* F3 — floating WhatsApp button: smaller footprint on phones (3rem = 48px, still
     a 44px+ tap target), no hover/focus scale so it can never be pushed past the
     viewport edge, safe-area bottom so it clears the home indicator. Right edge
     stays at viewport minus 1.1rem at 360/390px. Footer bottom padding lets the
     last content scroll clear of the fixed buttons. */
  .whatsapp-float{width:3rem;height:3rem;bottom:max(1.1rem,env(safe-area-inset-bottom,0px))}
  .whatsapp-float:hover,.whatsapp-float:focus-visible{transform:none}
  .site-footer{padding-block-end:5rem}
  html{scroll-padding-bottom:6rem}
}

/* Group 2 Insights fixes (Dec 4 2026, owner review F1-F35). */
/* F5 — rebuild the article list. Root cause: .rows li is a 3-column grid
   (minmax(12rem,1fr) minmax(0,2fr) auto) built for (heading, text, link), but an
   article item has FOUR children (meta, title, excerpt, read link). Auto-placement
   put the excerpt in the `auto` column, whose max-content (~800px) starved the fr
   tracks, leaving the title ~50-90px wide at 1440px, one word per line. The list is
   now stacked full-width rows — meta, title, excerpt, link — so no grid starvation
   is possible. Scoped to .article-list only; the "What we publish" .rows list is
   untouched. Card background/border/shadow/hover still come from .rows li. */
.article-list > li { display: block; padding: 0.9rem 1.25rem; }
.article-list > li .article-meta { margin-bottom: .35rem; }
.article-list > li h3 { margin-bottom: .4rem; font-size: 1.35rem; line-height: 1.3; }
.article-list > li p { margin-bottom: .6rem; }
/* Fix round (Dec 4 2026) — Digital Labs "Illustrative use cases": the .rows li
   3-column grid (minmax(12rem,1fr) minmax(0,2fr) auto) starved its 2fr track to
   0px here — 4 children in 3 columns, and the auto track took the width — so the
   Problem paragraph wrapped one word per line and Measure auto-placed into the
   next row. Same pattern as F5. Stacked blocks: heading + labelled lines, full
   width at every viewport. Scoped to .use-cases only. */
.use-cases > li { display: block; }
.use-cases > li h3 { margin-bottom: .5rem; }
.use-cases > li p { margin-bottom: .4rem; }
.use-cases > li p:last-child { margin-bottom: 0; }
/* F26 — featured article title: keep 30px, drop the underline (bold kept). The title
   link was both bold (h2 weight 600) and underlined (default link underline, gold). */
.featured-article h2 { font-size: 1.875rem; }
.featured-article h2 a { text-decoration: none; }
.featured-article h2 a:hover { text-decoration: underline; }
/* F6 — Insights hero diagram: inline SVG, fixed 640x480 (4:3) so the space is
   reserved before paint; width 100% scales proportionally, nothing is cropped,
   no CLS. Brand colours only (navy/blue/gold); no gold text on white. */
.insights-diagram { width: 100%; height: auto; display: block; }
/* Insights diagram (F6) below the hero: centred, capped at its 640px design
   width so the space is reserved before paint. */
.insights-diagram-figure { max-width: 640px; margin-inline: auto; }
.insights-diagram text { font-family: var(--display); }
.insights-diagram .insights-diagram-title { font-size: 20px; font-weight: 800; fill: var(--navy); }
.insights-diagram .insights-box-acronym { font-size: 30px; font-weight: 800; fill: #fff; }
.insights-diagram .insights-box-sub { font-size: 17px; fill: #fff; }
.insights-diagram .insights-hub-title { font-size: 17px; font-weight: 700; fill: var(--navy); }
.insights-diagram .insights-hub-acronym { font-size: 24px; font-weight: 800; fill: var(--navy); }
.insights-diagram .insights-hub-sub { font-size: 17px; fill: var(--navy); }
.insights-diagram .insights-flow { font-size: 16px; font-weight: 600; fill: var(--navy); }
.insights-diagram .insights-caption { font-size: 17px; font-weight: 700; fill: var(--navy); }
.insights-diagram .insights-spoke { stroke: var(--blue); stroke-width: 2; }
html[dir="rtl"] .insights-diagram text { font-family: "IBM Plex Sans Arabic", "Source Sans 3", sans-serif; }

/* F6 follow-up (Dec 4 2026) — phone: only the labels that stay >=12px rendered
   may show. At 320px rendered width the scale is 0.5, so a visible label needs
   >=24 units; 26 units is used for margin (covers a 300px render too). The
   sub-labels, hub title/sub and flow labels are dropped at <=640px, keeping
   only the four acronyms, the hub acronym and the caption (option (a)). */
@media (max-width: 640px) {
  .insights-diagram .insights-diagram-title { font-size: 26px; }
  .insights-diagram .insights-box-sub,
  .insights-diagram .insights-hub-title,
  .insights-diagram .insights-hub-sub,
  .insights-diagram .insights-flow { display: none; }
  .insights-diagram .insights-hub-acronym { font-size: 26px; }
  .insights-diagram .insights-caption { font-size: 26px; }
}

/* Group 3 type system + Arabic (Dec 4 2026, owner review F1-F35). */
/* F7 — one type scale: H2 36px desktop / 28px phone, H3 19px. The base h2/h3
   rules earlier in this file reached 43px/19.5px; this block sits last so it
   wins at equal specificity. Deliberate exceptions keep their own size:
   .featured-article h2 stays 30px (F26), .prose h2 1.5rem and .takeaways h2
   1.05rem are small legal/box headings, .contact-details h2 1.5rem,
   .stages-head h2 is a hero sub-heading, and component h3s (.pillar, .stage,
   .steps, .footer-grid, .gains-list, .article-list) keep theirs. */
h2 { font-size: 2.25rem; }
h3 { font-size: 1.1875rem; }
/* F7 — labels/badges/meta minimum 14px: eyebrow was 0.8rem (12.8px), .pill
   0.8rem (12.8px, the 'Available now' badge). .article-meta is 0.9rem
   (14.4px) and already meets the floor, unchanged. Body text is already the
   single grey #3A4A5E (var(--text)) — verified, no change. */
.reference-eyebrow, .page-head .eyebrow, .eyebrow { font-size: 0.875rem; }
.pill { font-size: 0.875rem; }
/* F9 — gold #C9A55C text only on navy, never on white or pale bands. Audit:
   literal #C9A55C text appears only on navy (pillar letters on navy tiles,
   hero-outcomes-title on the navy hero, launcher mark on the navy launcher,
   navy-context eyebrows). The one gold-toned text that could appear on a
   light background was the base eyebrow in --gold-ink (#8A6A2B); it is now
   navy on light backgrounds, gold on navy via the more specific navy-context
   rules above. Gold stays as backgrounds, borders and rules. */
.reference-eyebrow, .page-head .eyebrow, .eyebrow { color: var(--navy); }
/* F31 — navigation 16px (was .92rem desktop, .9rem above 1200px). */
.nav a { font-size: 1rem; }
.site-header .nav a:not(.btn) { font-size: 1rem; }
.language-switch { font-size: 1rem; }
/* F8 — Arabic: headings line-height ~1.6 (was ~1.35, raised Dec 4 2026 — review called 1.35 too tight), body 18-19px, no letter-spacing on
   Arabic, IBM Plex Sans Arabic for Arabic labels instead of Manrope. The
   existing RTL block already covers body/h1/h2/h3/.btn/.nav a; this adds the
   label elements. The Latin brand wordmark (.brand-lockup .name), pillar
   letters and step numerals stay in the display font. */
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { line-height: 1.6; } /* Group 3 remediation F8 (Dec 4 2026): was 1.35 — review called it too tight. Computed: h1 41.6px x 1.6 = 66.56px, h2 36px x 1.6 = 57.6px, h3 19px x 1.6 = 30.4px. */
html[dir="rtl"] body { font-size: 1.125rem; line-height: 1.75; }
html[dir="rtl"] .eyebrow, html[dir="rtl"] .reference-eyebrow, html[dir="rtl"] .brand-lockup .descriptor, html[dir="rtl"] .pill, html[dir="rtl"] .article-meta, html[dir="rtl"] .topic-btn, html[dir="rtl"] .language-switch, html[dir="rtl"] .menu-toggle, html[dir="rtl"] .detail dt, html[dir="rtl"] .legal-row, html[dir="rtl"] .hero-outcomes-title, html[dir="rtl"] .footer-address, html[dir="rtl"] .form-note, html[dir="rtl"] .req { font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; letter-spacing: normal; }
@media (max-width: 640px) {
  /* F7 — H2 28px on phones. */
  h2 { font-size: 1.75rem; }
  /* F4b — main nav links (open menu), footer links and the menu toggle are
     44px minimum tap height at phone widths (measured 22px / 40px at 360px).
     Desktop unchanged. Group 3 remediation adds .footer-contact a (the "Email
     OMSAZE" link, still 22px at 390px). */
  .nav a { display: flex; align-items: center; min-height: 44px; }
  .menu-toggle { min-height: 44px; }
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .legal-row nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-contact a { display: inline-flex; align-items: center; min-height: 44px; } /* Group 3 remediation F4b leftover (Dec 4 2026): "Email OMSAZE" was still 22px at 390px. */
}
@media (min-width: 641px) and (max-width: 1200px) {
  /* Rulings (Dec 4 2026): 44px tap targets extend to tablets (641-1200px) for
     footer links and legal-row links. Phones already have them (<=640px block
     above); the menu toggle already has min-height: 44px on its base rule, and
     .nav a needs nothing here — dropdown links already measure ~53px. */
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .legal-row nav a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ===== Group 4 (Dec 4 2026, owner review F1-F35) ===== */
/* F16 — Engineering SES graphic: clean line icons + live HTML text (no baked-in
   text, so Arabic works). Inline SVGs are decorative (aria-hidden); the two
   caption lines are live text and translate via the site.js dictionary. */
.ses-graphic { background: var(--mist); border: 1px solid rgba(11, 31, 58, 0.08); border-radius: 16px; padding: 1.75rem 1.5rem; text-align: center; }
.ses-icons { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1.25rem; }
.ses-icons svg { width: 4rem; height: 4rem; flex: none; }
.ses-caption { font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--navy); margin: 0 0 0.35rem; }
.ses-sub { margin: 0; color: var(--muted); font-size: 0.95rem; }
/* F19 — About vision as its own large quoted line. */
.vision-quote { margin: 0 0 2rem; padding: 0.25rem 0 0.25rem 1.25rem; border-inline-start: 3px solid var(--gold); font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.4; color: var(--navy); }
.vision-quote p { margin: 0; }
/* F20 — MindProof assessment journey diagram (assessment page-head, right side),
   fix round Dec 4 2026: the plain text list did not read as a hero visual, so the
   right side is now a card holding a real inline-SVG diagram (navy circles, gold
   connector) + the same live-HTML step labels. Steps use the page's own wording;
   no people, no fake imagery. The SVG has fixed dimensions (64x228, no CLS); the
   three label rows are 76px each, centred on the three circles (cy 38/114/190). */
.journey-card { background: #fff; border: 1px solid rgba(11, 31, 58, 0.1); border-radius: 16px; box-shadow: 0 18px 45px rgba(9, 34, 64, 0.09); padding: 1.5rem 1.5rem 1.25rem; }
.journey-card .eyebrow { margin: 0 0 1rem; }
.journey-diagram { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 1rem; align-items: stretch; }
.journey-svg { display: block; width: 4rem; height: 228px; }
.journey-labels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-rows: repeat(3, 76px); }
.journey-labels li { display: flex; align-items: center; font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--navy); line-height: 1.35; }
/* F23 — Digital Labs services as cards (was full-width rows). The detail list
   stacks inside the narrower card (label above value). */
.service-cards { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.service-cards > li { background: #fff; border: 1px solid rgba(11, 31, 58, 0.08); border-block-start: 3px solid var(--gold); border-radius: 16px; box-shadow: 0 1px 2px rgba(11, 31, 58, 0.04), 0 18px 40px -26px rgba(11, 31, 58, 0.35); padding: 1.4rem 1.5rem; display: flex; flex-direction: column; } /* Rulings (Dec 4 2026): same gold top edge as the Home cards — the Digital Labs service cards had none. */
.service-cards h3 { margin: 0 0 0.75rem; }
.service-cards .detail { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; margin: 0 0 1rem; }
.service-cards .detail dd { margin-bottom: 0.6rem; }
.service-cards .detail dd:last-child { margin-bottom: 0; }
.service-cards p { margin: 0 0 1rem; color: var(--muted); }
.service-cards a { margin-top: auto; font-weight: 700; color: var(--blue); }
@media (max-width: 900px) { .service-cards { grid-template-columns: minmax(0, 1fr); } }
/* F25 — SAP/ERP: the ERP health check is the main offer among the five rows. */
.rows li.row-featured { background: var(--mist); border-inline-start: 3px solid var(--gold); }
/* F27 — Contact left column: founder portrait + note, then the contact details
   separated by a top rule (not a gold side border). */
.contact-intro .leader-photo { margin-bottom: 1.25rem; }
.contact-intro p { margin: 0 0 1em; }
.contact-intro .contact-details { border-inline-start: 0; padding-inline-start: 0; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
/* F30 — numbered list inside legal prose keeps the same measure as bullets. */
.prose ol { list-style: decimal; padding-inline-start: 1.4rem; margin-bottom: 1em; }
.prose ol li { margin-bottom: 0.4rem; }
/* F28/F29 — in-page anchor list at the top of the legal pages. */
.anchor-list { margin: 0 0 2rem; padding: 1.25rem 1.5rem; background: var(--mist); border-radius: 16px; }
.anchor-list-title { font-family: var(--display); font-weight: 700; color: var(--navy); margin: 0 0 0.6rem; }
.anchor-list ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem 1.5rem; }
.anchor-list a { color: var(--navy); }
@media (max-width: 760px) { .anchor-list ul { grid-template-columns: minmax(0, 1fr); } }

/* F11 privacy/terms spacing (Dec 4 2026, owner decision): the Group 4 cuts
   already applied to these pages (shared .section/.page-head), but the
   F28/F29 anchor-list navs added the height back, so the net was ~0 while
   every other page came down 17-30%. Same tightening as the other pages,
   scoped to the two legal pages via body.legal-page so no other page moves.
   Text, font sizes and line length are UNCHANGED — section gaps and band
   padding only. The .anchor-list rules are unscoped: only privacy.html and
   terms.html use .anchor-list, so they affect nothing else.
   Measured (WeasyPrint, real site.css, 1440px): v1 saved 429px privacy /
   404px terms (-10%); this tighter set adds ~150px. The 17% target is at
   the edge of what spacing alone can do here — the pages are one long prose
   column, so the text lines themselves are most of the height. */
body.legal-page .page-head { padding-block: 1.5rem; } /* 48px -> 24px/side */
body.legal-page .section { padding-block: 1.5rem; } /* 56px -> 24px/side */
body.legal-page .prose h2 { margin-top: 0.5rem; margin-bottom: 0.3em; } /* 24px -> 8px; 14.4px -> 7.2px */
body.legal-page .prose p { margin-bottom: 0.5em; } /* 17px -> 8.5px */
body.legal-page .page-head h1 { margin-bottom: 0.3em; } /* 25px -> 12.5px */
body.legal-page .page-head .lead { margin-bottom: 0.5em; } /* 20px -> 10px */
.anchor-list { margin-bottom: 1rem; padding: 0.75rem 1.5rem; } /* margin 32px -> 16px; padding 20px -> 12px/side */
.anchor-list-title { margin-bottom: 0.35rem; } /* 10.2px -> 5.6px */
.anchor-list ul { gap: 0.2rem 1.5rem; } /* row gap 5.95px -> 3.2px */
body.legal-page .site-footer { padding-block: 1.5rem 1rem; } /* 40+24px -> 24+16px */
body.legal-page .legal-row { margin-top: 0.75rem; padding-top: 0.5rem; } /* 24px -> 12px; 16px -> 8px */
body.legal-page .footer-grid h3 { margin-bottom: 0.4rem; } /* 12px -> 6.4px */
body.legal-page .footer-links { gap: 0.3rem; } /* 7.2px -> 4.8px */
body.legal-page .footer-address { margin: 0.25rem 0 0.4rem; } /* 6.4px/9.6px -> 4px/6.4px */
body.legal-page .footer-contact { margin-top: 0.75rem; } /* 16px -> 12px */

/* Scroll-margin for in-page anchors (Dec 4 2026, owner-confirmed defect):
   clicking an anchor put the target heading at top 0 while the sticky header
   is 77px tall, so the heading and its first line sat behind the header on
   privacy.html and terms.html. 90px clears the header with 13px to spare.
   Scoped to the two legal pages (body.legal-page) so no other page's anchor
   landings move. scroll-margin-top does not affect layout or page heights.
   First h2 sits ~625px (terms) / ~685px (privacy) below the document top at
   1440px — and further down at 390px, where the anchor list goes 1-column —
   so the 90px offset cannot overshoot (scroll clamps at 0). */
body.legal-page .prose h2[id] { scroll-margin-top: 90px; }
/* The anchor lists' first link targets <main id="main"> — same defect class:
   without this the page-head would land behind the header. main starts at
   y~77, so the 90px offset clamps to scroll 0: no overshoot possible. */
body.legal-page main#main { scroll-margin-top: 90px; }

/* Refund page section padding (Dec 4 2026, owner-confirmed miss): refund.html
   still had the base 56px .section padding while privacy/terms carry 24px
   after the F11 round. Align it to 24px/side so the three legal pages are
   consistent (~64px off the page). Scoped to refund only via body.refund-page
   — no h2/p margin or footer cuts, no other page moves. */
body.refund-page .section { padding-block: 1.5rem; } /* 56px -> 24px/side */

/* ===== Pexels image integration (Dec 4 2026, owner-ordered) ===== */
/* ONE shared image component for every page image (hero, section, card):
   fixed 3:2 box, same 16px radius, same gold border, same shadow, centred
   and aligned to the grid, object-fit: cover. The Home hero keeps its
   approved 16:10 box (01-Next-Rise, permanent approval Dec 3 2026) — its
   radius, border and shadow already match this component exactly, so it
   needs no change. The erp-support hero file is unchanged
   (modernize-datacenter.jpg) and is displayed in this component per the
   uniformity rule (its crop changes from 4/3 to 3/2). */
.px-photo { margin: 0; min-width: 0; aspect-ratio: 3 / 2; border-radius: 16px; border: 1px solid rgba(201, 165, 92, .45); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .55); overflow: hidden; }
.px-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Section images: the grid itself is the shared .split/.section-media rule
   above (one text width, one media width, one gap). Photo alternates sides via
   .section-media--left; on phones the photo stacks full-width above the text.
   The text column is the section's own intro / two-col / notice block, so no
   existing layout is re-built; inside a photo section the two-col stacks (its
   gold divider becomes a top rule, as at phone widths). */
.section-media > * { min-width: 0; }
.section-media > .two-col { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.section-media > .two-col > div + div { border-inline-start: 0; padding-inline-start: 0; border-top: 2px solid var(--gold); padding-top: 1.25rem; }
.section-media--left .px-photo { order: -1; }
/* Symmetry fix round 2 (Dec 4 2026): Consulting "Who we work with" has THREE
   grid children (intro, two-col, photo), so the photo auto-places in row 2,
   column 1 (left) — the --left flip cannot move it (it would reorder the
   photo into row 1 next to the intro). Pin it to column 2 so Consulting
   alternates hero R -> §1 L -> §2 R like the other pages.
   Tablet fix (Dec 4 2026): the pin is scoped to min-width:861px. Below 861px
   the grid is a single column, so grid-column:2 created an implicit auto
   column (~1200px, the photo's intrinsic width) next to a 0px 1fr track —
   the intro and two-col rendered 0px wide (invisible) and the photo
   overflowed, clipped by body overflow-x:clip. At <=860px the photo now
   stacks above the text like every other section (order:-1 rule below). */
@media (min-width: 861px) {
  .section-media--photo-right .px-photo { grid-column: 2; }
}
@media (max-width: 860px) {
  .split, .section-media { grid-template-columns: minmax(0, 1fr); }
  .section-media .px-photo { order: -1; }
}
/* Page-head right column holding a hero photo + the existing graphic
   (assessment journey card, engineering SES graphic). */
.split-media { display: grid; gap: 1.25rem; min-width: 0; align-items: start; }
/* Founder portrait fallback (Dec 4 2026, owner-ordered): the figure is the
   fixed 450:531 box; while founder-mohamed-taher.jpg 404s the img is hidden
   and a neutral navy-gradient "MT" monogram shows instead — no photo
   substitute, no stock person. When the owner uploads the original file the
   photo shows automatically, no code change. */
.leader-photo { position: relative; background: linear-gradient(160deg, #0B1F3A 0%, #123E6E 100%); }
.leader-photo-fallback { display: none; position: absolute; inset: 0; margin: auto; width: 5.5rem; height: 5.5rem; border: 1px solid rgba(201, 165, 92, .65); border-radius: 50%; place-items: center; font: 800 1.75rem var(--display); color: #C9A55C; }
.leader-photo.is-missing img { display: none; }
.leader-photo.is-missing .leader-photo-fallback { display: grid; }
/* Nav "Home" (Dec 4 2026, owner request): first item of the main nav on
   desktop as well as in the mobile menu — the logo stays a home link too.
   One shared <nav>: at <=1200px it becomes the dropdown, where Home stays
   first and appears exactly once (the desktop nav is hidden there). */
@media (max-width: 1200px) { .nav .nav-home { display: block; } }
@media (max-width: 640px) { .nav .nav-home { display: flex; align-items: center; } }
/* Tablet/desktop floating-button clearance (Dec 4 2026, owner requirement):
   the WhatsApp float (3.4rem) and chat pill (bottom 5.4rem, height 3.4rem)
   are fixed at every width, so without bottom clearance the footer legal
   links sit under the WhatsApp button at max scroll (geometry: legal-row
   text 24-50px above the viewport bottom; button spans 17.6-72px).
   Same formula as the phone rule, sized from the desktop stack
   (5.4rem + 3.4rem + 1rem) + safe-area. The <=640px rule below still wins
   on phones (later in file, same specificity). Consequence: every page
   grows ~133px at >=641px (footer padding 24px -> 156.8px); flagged to
   the owner with the deployment. */
.site-footer { padding-block-end: calc(5.4rem + 3.4rem + 1rem + env(safe-area-inset-bottom, 0px)); }
body.legal-page .site-footer { padding-block-end: calc(5.4rem + 3.4rem + 1rem + env(safe-area-inset-bottom, 0px)); }
/* Floating buttons on phones (Dec 4 2026, owner-observed): both buttons
   ~44px and tucked to the inline-end edge with safe-area insets, so they
   cover less text mid-page. End-of-scroll clearance: the footer is the last
   element on every page, so its bottom padding is the page's bottom
   clearance — the floating stack (chat pill bottom 5.4rem + pill height
   2.75rem) + 16px, so the last footer content scrolls clear of both
   buttons. Desktop unchanged (measured page heights). Mid-page text can
   still sit under the floating buttons — they stay semi-compact by design. */
@media (max-width: 640px) {
  .whatsapp-float { width: 2.75rem; height: 2.75rem; right: max(0.5rem, env(safe-area-inset-right, 0px)); bottom: max(0.75rem, env(safe-area-inset-bottom, 0px)); }
  html[dir="rtl"] .whatsapp-float { left: max(0.5rem, env(safe-area-inset-left, 0px)); }
  .site-footer { padding-block-end: calc(5.4rem + 2.75rem + 1rem + env(safe-area-inset-bottom, 0px)); }
  body.legal-page .site-footer { padding-block-end: calc(5.4rem + 2.75rem + 1rem + env(safe-area-inset-bottom, 0px)); }
}
