/* Zakur public site: shared styles for every page. */
:root {
  --night: #111821; --night-2: #19212c; --night-3: #222c39; --gold: #E3A23B; --gold-hi: #F6C66B; --ember: #C66F24;
  --sand: #EFE7DA; --sand-dim: #b9b1a4; --line: rgba(239, 231, 218, .14);
  --font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--night); color: var(--sand); font: 400 17px/1.6 var(--font); }
html[lang="ar"] { --font: 'Noto Sans Arabic', 'Montserrat', Arial, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 20; padding: max(16px, env(safe-area-inset-top)) var(--gutter) 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; transition: background .25s, box-shadow .25s; }
.site-header.solid, .page-sub .site-header { background: rgba(17, 24, 33, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand b { display: block; font-weight: 700; font-size: 21px; letter-spacing: .28em; line-height: 1; }
.brand small { display: block; margin-top: 5px; font-size: 8.5px; font-weight: 600; letter-spacing: .32em; color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); font-size: 14px; font-weight: 500; }
.site-nav a { text-decoration: none; opacity: .86; }
.site-nav a:hover, .site-nav a[aria-current="page"] { opacity: 1; }
.site-nav a[aria-current="page"] { color: var(--gold-hi); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang { position: relative; display: flex; align-items: center; }
.lang svg { position: absolute; inset-inline-start: 12px; pointer-events: none; color: var(--sand-dim); }
.lang select { appearance: none; background: transparent; color: var(--sand); border: 1px solid var(--line); border-radius: 999px;
  font: 600 13px var(--font); min-height: 40px; padding-block: 0; padding-inline: 36px 14px; cursor: pointer; }
.lang select:hover { border-color: rgba(239,231,218,.4); }
.lang option { color: #111821; }
.site-nav .m-only { display: none; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--sand); border-radius: 10px; width: 44px; height: 40px; cursor: pointer; }
.menu-btn svg { margin: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 10px;
  font: 600 15px var(--font); text-decoration: none; border: 0; cursor: pointer; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 13.5px; }
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-line { border: 1px solid rgba(239,231,218,.4); color: var(--sand); background: transparent; }
.btn-line:hover { border-color: var(--sand); }
.link-arrow { color: var(--gold); font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .2s; }
html[dir="rtl"] .link-arrow::after { content: "←"; }
.link-arrow:hover::after { transform: translateX(4px); }
html[dir="rtl"] .link-arrow:hover::after { transform: translateX(-4px); }

/* Home hero (desert sunset) */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(17,24,33,.82) 0%, rgba(17,24,33,.45) 45%, rgba(17,24,33,0) 70%); }
html[dir="rtl"] .hero::after { background: linear-gradient(270deg, rgba(17,24,33,.82) 0%, rgba(17,24,33,.45) 45%, rgba(17,24,33,0) 70%); }
.hero-text { padding: 140px var(--gutter) 120px; max-width: 780px; }
h1 { font-weight: 600; font-size: clamp(36px, 5.6vw, 66px); line-height: 1.08; letter-spacing: -.01em; margin: 0 0 22px; }
html[dir="rtl"] h1, html[dir="rtl"] .brand b { letter-spacing: 0; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--sand-dim); max-width: 40ch; margin: 0 0 36px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.sun { transform-box: fill-box; transform-origin: center; animation: rise 2.4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { transform: translateY(70px); opacity: .55; } to { transform: none; opacity: 1; } }

/* Inner page hero (photo) */
.page-hero { position: relative; isolation: isolate; padding: 170px var(--gutter) 90px; background: var(--night-2) center / cover no-repeat; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(17,24,33,.55) 0%, rgba(17,24,33,.82) 70%, var(--night) 100%); }
.page-hero .wrap > * { max-width: 760px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 58px); }
.page-hero .lede { margin-bottom: 0; }

/* Sections */
main section, .section { padding: clamp(72px, 10vw, 120px) var(--gutter); }
.wrap { max-width: 1160px; margin: 0 auto; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
html[dir="rtl"] .kicker { letter-spacing: 0; }
h2 { font-weight: 600; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; margin: 0 0 18px; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.3; margin: 0 0 8px; }
.intro { color: var(--sand-dim); max-width: 62ch; margin: 0 0 48px; }
.muted { color: var(--sand-dim); }
.band { background: var(--night-2); }
.statement > * { max-width: 900px; }
.statement h2 { font-size: clamp(30px, 4vw, 48px); }
.statement p { font-size: clamp(17px, 1.5vw, 20px); color: var(--sand-dim); max-width: 60ch; }

/* Layered feature rows: big photo, overlapping text card */
.feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; margin-bottom: clamp(64px, 9vw, 120px); }
.feature:last-child { margin-bottom: 0; }
.feature .photo { grid-column: 1 / span 8; grid-row: 1; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; background: var(--night-3); }
.feature .photo img { width: 100%; height: 100%; object-fit: cover; }
.feature .card { grid-column: 7 / span 6; grid-row: 1; position: relative; z-index: 1; background: var(--night-2); border: 1px solid var(--line);
  border-radius: 14px; padding: clamp(28px, 3.4vw, 48px); box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.feature.flip .photo { grid-column: 5 / span 8; }
.feature.flip .card { grid-column: 1 / span 6; }
.feature .card p { color: var(--sand-dim); margin: 0 0 22px; }

/* Full width photo band */
.photo-band { position: relative; isolation: isolate; min-height: 520px; display: flex; align-items: flex-end;
  padding: clamp(72px, 10vw, 120px) var(--gutter); background: var(--night-3) center / cover no-repeat; }
.photo-band::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(17,24,33,.78) 0%, rgba(17,24,33,.3) 55%, rgba(17,24,33,0) 80%), linear-gradient(0deg, rgba(17,24,33,.9) 0%, rgba(17,24,33,.2) 60%, rgba(17,24,33,.1) 100%); }
html[dir="rtl"] .photo-band::before { background: linear-gradient(270deg, rgba(17,24,33,.78) 0%, rgba(17,24,33,.3) 55%, rgba(17,24,33,0) 80%), linear-gradient(0deg, rgba(17,24,33,.9) 0%, rgba(17,24,33,.2) 60%, rgba(17,24,33,.1) 100%); }
.photo-band .wrap { width: 100%; }
.photo-band h2 { font-size: clamp(30px, 4vw, 50px); max-width: 20ch; }
.photo-band p { max-width: 56ch; color: var(--sand); opacity: .88; margin: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0 0 44px; padding: 0; list-style: none; counter-reset: step; }
.steps li { background: var(--night); border: 1px solid var(--line); border-radius: 14px; padding: 28px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold); color: var(--night); font-weight: 700; margin-bottom: 18px; }
.steps p { margin: 0; color: var(--sand-dim); }

/* Coverage */
.coverage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.regions { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.regions li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--night); }
.pill { font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.pill.live { background: rgba(110, 200, 120, .16); color: #8fdc98; }
.pill.prep { background: rgba(227, 162, 59, .16); color: var(--gold-hi); }
.pill.soon { background: rgba(239, 231, 218, .08); color: var(--sand-dim); }
.africa { width: 100%; max-width: 440px; margin-inline: auto; }

/* Cards grid (news, values, roles, modules) */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.tile { background: var(--night-2); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.tile p { margin: 0; color: var(--sand-dim); }
.band .tile { background: var(--night); }
.article-card { display: flex; flex-direction: column; text-decoration: none; background: var(--night-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: transform .2s, border-color .2s; }
.band .article-card { background: var(--night); }
.article-card:hover { transform: translateY(-3px); border-color: rgba(227,162,59,.5); }
.article-card .thumb { aspect-ratio: 16 / 10; background: var(--night-3); overflow: hidden; }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-card .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article-card .meta { font-size: 13px; color: var(--gold); font-weight: 600; }
.article-card p { margin: 0; color: var(--sand-dim); font-size: 15.5px; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.head-row h2 { margin: 0; }

/* Modules (solutions page) */
.module { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding-block: 48px; border-top: 1px solid var(--line); }
.module:first-child { border-top: 0; padding-top: 0; }
.module .photo { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--night-3); }
.module .photo img { width: 100%; height: 100%; object-fit: cover; }
.module.flip .photo { order: 2; }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 28px; color: var(--sand-dim); }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 14px; height: 8px; border-inline-start: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
html[dir="rtl"] .ticks li::before { transform: rotate(45deg) scaleX(-1); }

/* Article page */
.article { max-width: 720px; margin: 0 auto; }
.article .meta { color: var(--gold); font-weight: 600; font-size: 14px; margin-bottom: 18px; }
.article .cover { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; margin: 32px 0 40px; background: var(--night-3); }
.article .cover img { width: 100%; height: 100%; object-fit: cover; }
.article p { font-size: 18px; line-height: 1.75; margin: 0 0 22px; }
.article .lead { font-size: 21px; color: var(--sand-dim); }

/* Forms */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea, .field select { width: 100%; background: var(--night); color: var(--sand); border: 1px solid rgba(239,231,218,.22); border-radius: 10px;
  font: 400 16px var(--font); padding: 13px 14px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(227,162,59,.2); }
.hint { font-size: 13px; color: var(--sand-dim); }
.notice { display: none; border: 1px solid rgba(227,162,59,.45); background: rgba(227,162,59,.1); border-radius: 12px; padding: 16px 18px; font-size: 15px; }
.notice.show { display: block; }
.notice a { color: var(--gold-hi); }
.notice.err { border-color: rgba(214, 104, 64, .55); background: rgba(214, 104, 64, .12); }
.ts:empty { display: none; }
[hidden] { display: none !important; }
.newsletter { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.inline-form { display: flex; gap: 12px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 240px; min-height: 48px; background: var(--night); color: var(--sand); border: 1px solid rgba(239,231,218,.22); border-radius: 10px; font: 400 16px var(--font); padding: 0 14px; }
.inline-form input:focus { outline: none; border-color: var(--gold); }
.inline-form .notice { flex-basis: 100%; }

/* Auth pages */
.auth { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth .side { position: relative; isolation: isolate; background: var(--night-3) center / cover no-repeat; display: flex; align-items: flex-end; padding: 140px var(--gutter) 64px; }
.auth .side::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(17,24,33,.95) 0%, rgba(17,24,33,.4) 70%); }
.auth .side h2 { font-size: clamp(26px, 3vw, 36px); max-width: 18ch; }
.auth .panel { padding: 140px var(--gutter) 72px; display: flex; align-items: center; }
.auth .panel > div { width: 100%; max-width: 480px; margin-inline: auto; }
.auth h1 { font-size: clamp(30px, 3.6vw, 42px); }
.next-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: n; }
.next-list li { counter-increment: n; display: flex; gap: 14px; color: var(--sand); opacity: .9; }
.next-list li::before { content: counter(n); flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--night); font-weight: 700; font-size: 14px; }
.switch-line { margin-top: 22px; color: var(--sand-dim); font-size: 15px; }
.switch-line a { color: var(--gold); font-weight: 600; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); }
.mail { font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; color: var(--gold); text-decoration: none; word-break: break-word; }
.mail:hover { text-decoration: underline; text-underline-offset: 6px; }
.contact-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px var(--gutter) max(28px, env(safe-area-inset-bottom)); font-size: 14px; color: var(--sand-dim); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; max-width: 1160px; margin: 0 auto 40px; }
.footer-grid h4 { color: var(--sand); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
html[dir="rtl"] .footer-grid h4 { letter-spacing: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--sand); }
.footer-grid p { max-width: 34ch; margin: 16px 0 0; }
.footer-base { max-width: 1160px; margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }

@media (prefers-reduced-motion: reduce) { .sun { animation: none; } html { scroll-behavior: auto; } * { transition: none !important; } }

@media (max-width: 980px) {
  .menu-btn { display: inline-grid; }
  .site-nav { position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px;
    background: var(--night); border-bottom: 1px solid var(--line); display: none; max-height: calc(100svh - 72px); overflow-y: auto; }
  .site-nav.open { display: flex; }
  .site-nav .m-only { display: block; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-actions .btn-signin { display: none; }
  .feature .photo, .feature.flip .photo { grid-column: 1 / -1; }
  .feature .card, .feature.flip .card { grid-column: 1 / -1; grid-row: 2; margin: -60px 16px 0; }
  .steps, .grid-3 { grid-template-columns: 1fr; }
  .coverage, .newsletter, .module, .contact-grid, .grid-2 { grid-template-columns: 1fr; }
  .module.flip .photo { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .auth { grid-template-columns: 1fr; }
  .auth .side { display: none; }
}
@media (max-width: 820px) {
  .hero::after, html[dir="rtl"] .hero::after { background: linear-gradient(180deg, rgba(17,24,33,.35) 0%, rgba(17,24,33,.7) 45%, rgba(17,24,33,.15) 100%); }
  .hero-text { padding-bottom: 200px; }
}
@media (max-width: 560px) {
  .form .row { grid-template-columns: 1fr; }
  .nav-actions .btn-signup { display: none; }
  .brand small { display: none; }
}

/* slogan */
.slogan { color: var(--gold, #E3A23B); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 13.5px; margin: 0 0 18px; }
.footer-grid p.slogan { margin: 18px 0 0; }
.footer-grid p.slogan + p { margin-top: 8px; }
[dir=rtl] .slogan, :lang(zh) .slogan, :lang(hi) .slogan, :lang(ar) .slogan { letter-spacing: 0; }
