/* ============================================================
   PropSocial — العقار الاجتماعي | main.css
   RTL-first via CSS logical properties; flips cleanly for EN.
   Palette per brand guide: navy #152B3C, burgundy #7A3F43,
   gold #E8A62B, ivory #F7F4EE, charcoal #202A35, grey #F1F3F5
   ============================================================ */

/* ---------- Fonts (local, licensed OFL) ---------- */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('../fonts/IBMPlexSansArabic-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('../fonts/IBMPlexSansArabic-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('../fonts/IBMPlexSansArabic-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #152B3C;
  --navy-2: #1E3A50;
  --navy-3: #0E2231;
  --burg: #7A3F43;
  --burg-d: #5E3134;
  --gold: #E8A62B;
  --gold-d: #C98A1B;
  --ivory: #F7F4EE;
  --char: #202A35;
  --grey: #F1F3F5;
  --line: #E2DCCF;
  --white: #FFFFFF;
  --teal: #3E7A8A;
  --ochre: #A8752B;
  --font: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(21, 43, 60, .10);
  --shadow-sm: 0 4px 14px rgba(21, 43, 60, .08);
  --container: 1240px;
  --header-h: 78px;
  --tr: .28s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--char);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--burg); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--gold-d); }
h1, h2, h3, h4 { line-height: 1.35; color: var(--navy); margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.3em; }
.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 88px; }
.section--ivory { background: var(--ivory); }
.section--navy { background: linear-gradient(160deg, var(--navy-3), var(--navy) 55%, var(--navy-2)); color: var(--ivory); }
.section--navy h2, .section--navy h3 { color: var(--ivory); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; inset-inline-start: -999px; top: 10px; z-index: 200;
  background: var(--gold); color: var(--navy); padding: 10px 18px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { inset-inline-start: 10px; }

.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.28em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px;
  font-family: var(--font); font-size: 16px; font-weight: 700; line-height: 1.3;
  border: 2px solid transparent; cursor: pointer;
  transition: transform var(--tr), box-shadow var(--tr), background var(--tr), color var(--tr);
  min-height: 48px;
}
.btn .icon { transition: transform var(--tr); }
[dir="rtl"] .btn .icon { transform: scaleX(-1); }
.btn:hover .icon { transform: translateX(4px); }
[dir="rtl"] .btn:hover .icon { transform: scaleX(-1) translateX(4px); }
.btn--gold { background: var(--gold); color: var(--navy); box-shadow: 0 6px 18px rgba(232, 166, 43, .35); }
.btn--gold:hover { background: var(--gold-d); color: var(--navy); transform: translateY(-2px); }
.btn--ghost { background: rgba(247, 244, 238, .1); color: var(--ivory); border-color: rgba(247, 244, 238, .5); }
.btn--ghost:hover { background: rgba(247, 244, 238, .2); color: var(--white); border-color: var(--ivory); }
.btn--ghost-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost-dark:hover { background: var(--navy); color: var(--ivory); }
.btn--outline { background: transparent; color: var(--burg); border-color: var(--burg); }
.btn--outline:hover { background: var(--burg); color: var(--ivory); }
.btn--lg { padding: 16px 34px; font-size: 17px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 244, 238, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--tr), background var(--tr);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); background: rgba(255, 255, 255, .95); }
.header__inner { display: flex; align-items: center; gap: 26px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 46px; height: 46px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name { font-weight: 700; font-size: 19px; color: var(--navy); }
.brand__sub { font-size: 11.5px; color: var(--burg); }
.nav { margin-inline-start: auto; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  display: block; padding: 10px 13px; border-radius: 9px;
  color: var(--navy); font-weight: 500; font-size: 15.5px;
}
.nav__list a:hover { background: rgba(232, 166, 43, .14); color: var(--navy); }
.nav__list a[aria-current="page"] { color: var(--burg); font-weight: 700; box-shadow: inset 0 -3px 0 var(--gold); border-radius: 9px 9px 0 0; }
.header__actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  font-weight: 700; font-size: 14px; color: var(--navy);
  border: 1.5px solid var(--navy); border-radius: 8px; padding: 6px 12px; letter-spacing: .4px;
}
.lang-switch:hover { background: var(--navy); color: var(--ivory); }
.nav__mobile-cta { display: none; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(165deg, var(--navy-3) 0%, var(--navy) 55%, var(--navy-2) 100%); color: var(--ivory); overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(720px 420px at 78% 18%, rgba(232, 166, 43, .16), transparent 65%),
    radial-gradient(560px 420px at 12% 88%, rgba(122, 63, 67, .28), transparent 62%);
}
.hero__inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  gap: 48px; align-items: center; padding-block: 84px 72px;
}
.hero__kicker { display: flex; align-items: center; gap: 10px; color: var(--gold); font-weight: 500; font-size: 15.5px; margin-bottom: 18px; }
.kicker-dot { width: 34px; height: 3px; border-radius: 2px; background: var(--gold); display: inline-block; }
.hero__title { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.28; color: var(--white); margin-bottom: 20px; }
.hero__title-accent { color: var(--gold); }
.hero__desc { font-size: 18.5px; color: #C4D0DA; max-width: 56ch; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero__download { display: inline-flex; align-items: center; gap: 8px; color: #AEBDC9; font-size: 15px; }
.hero__download:hover { color: var(--gold); }
.hero__visual img { border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(0, 0, 0, .4); border: 1px solid rgba(247, 244, 238, .12); }

/* ---------- Trust chips ---------- */
.trust { background: var(--ivory); border-bottom: 1px solid var(--line); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding-block: 44px; }
.trust__chip { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; box-shadow: var(--shadow-sm); }
.trust__chip::before { content: ""; position: absolute; inset-inline-start: 0; top: 16px; bottom: 16px; width: 4px; border-radius: 4px; background: var(--gold); }
.trust__num { font-size: 13px; font-weight: 700; color: var(--gold-d); letter-spacing: 1px; }
.trust__chip h3 { font-size: 17.5px; margin: 4px 0 6px; }
.trust__chip p { font-size: 14.5px; color: #57646F; margin: 0; }

/* ---------- Section head ---------- */
.sec-head { max-width: 760px; margin-bottom: 44px; }
.sec-head__bar { display: block; width: 52px; height: 5px; border-radius: 4px; background: linear-gradient(90deg, var(--gold), var(--burg)); margin-bottom: 16px; }
.sec-head__title { font-size: clamp(26px, 3.2vw, 38px); }
.sec-head__desc { color: #57646F; font-size: 17.5px; margin: 0; }
.sec-head--light .sec-head__desc { color: #B9C6D0; }

/* ---------- Stats ---------- */
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform var(--tr), box-shadow var(--tr);
}
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.stat-card__value { font-size: 42px; font-weight: 700; color: var(--navy); line-height: 1.1; margin: 0 0 2px; text-align: start; }
.stat-card__prefix { color: var(--gold-d); font-size: .62em; font-weight: 700; }
.stat-card__unit { color: var(--burg); font-weight: 700; font-size: 16px; margin: 0 0 8px; }
.stat-card__desc { font-size: 14.5px; color: #57646F; flex: 1; margin: 0 0 14px; }
.stat-card__source { font-size: 12.5px; color: #8A96A1; border-top: 1px dashed var(--line); padding-top: 10px; margin: 0; }
.source-note { font-size: 13.5px; color: #8A96A1; margin-top: 22px; }

/* ---------- Transform triptych ---------- */
.transform__grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 18px; align-items: stretch; }
.state-card { margin: 0; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.state-card img { aspect-ratio: 9 / 7.6; object-fit: cover; }
.state-card figcaption { padding: 20px 22px 24px; position: relative; flex: 1; }
.state-card__step {
  position: absolute; top: -22px; inset-inline-start: 20px;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 18px; border: 3px solid var(--white); box-shadow: var(--shadow-sm);
}
.state-card--muted .state-card__step { background: var(--grey); color: #6B7885; }
.state-card--gold .state-card__step { background: var(--gold); color: var(--navy); }
.state-card--navy .state-card__step { background: var(--navy); color: var(--gold); }
.state-card h3 { font-size: 19px; margin: 14px 0 6px; }
.state-card p { font-size: 14.5px; color: #57646F; margin: 0; }
.transform__arrow { align-self: center; color: var(--gold-d); }
.transform__arrow .icon { width: 34px; height: 34px; }
[dir="rtl"] .transform__arrow .icon { transform: scaleX(-1); }

/* ---------- Services ---------- */
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.service-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.service-card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(232, 166, 43, .18), rgba(122, 63, 67, .12)); color: var(--burg);
}
.service-card__icon .icon { width: 26px; height: 26px; }
.service-card__num { font-size: 34px; font-weight: 700; color: var(--grey); -webkit-text-stroke: 1.4px var(--line); letter-spacing: 1px; }
.service-card h3 { font-size: 19.5px; }
.service-card__verbs { list-style: none; padding: 0; margin: 0 0 14px; flex: 1; }
.service-card__verbs li { position: relative; padding-inline-start: 20px; font-size: 14.5px; color: #4A5762; margin-bottom: 8px; }
.service-card__verbs li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 9px; height: 9px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.service-card__output { font-size: 14px; background: var(--ivory); border-inline-start: 3px solid var(--burg); padding: 10px 14px; border-radius: 8px; color: var(--navy); }
.service-card__cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; margin-top: 8px; }
[dir="rtl"] .service-card__cta .icon { transform: scaleX(-1); }

/* Services page rows */
.services-page { display: flex; flex-direction: column; gap: 26px; }
.service-row { display: grid; grid-template-columns: 320px 1fr; gap: 34px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.service-row__head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.service-row__head h2 { font-size: 24px; margin: 0; }
.service-row__body .service-card__verbs { columns: 1; }

/* ---------- ARI meter ---------- */
.ari__inner { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); gap: 54px; align-items: center; }
.ari__ranges { margin: 24px 0 30px; }
.ari__ranges h3 { font-size: 17px; color: var(--gold); }
.ari__ranges ul { list-style: none; margin: 0; padding: 0; }
.range { display: flex; align-items: center; gap: 12px; padding-block: 8px; font-size: 15.5px; color: #D7E0E7; }
.range span { width: 40px; height: 10px; border-radius: 6px; flex: none; }
.range--fix span { background: var(--burg); }
.range--improve span { background: var(--ochre); }
.range--develop span { background: var(--gold); }
.ari__meter { background: rgba(247, 244, 238, .06); border: 1px solid rgba(247, 244, 238, .14); border-radius: var(--radius-lg); padding: 30px 30px 22px; }
.ari__row { display: grid; grid-template-columns: minmax(150px, 220px) 1fr 44px; align-items: center; gap: 14px; margin-bottom: 16px; }
.ari__label { font-size: 14.5px; color: #D7E0E7; }
.ari__bar { height: 14px; background: rgba(247, 244, 238, .12); border-radius: 8px; overflow: hidden; }
.ari__fill { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, var(--gold), var(--gold-d)); transition: width 1.1s cubic-bezier(.25, .8, .3, 1); }
[dir="rtl"] .ari__fill { background: linear-gradient(270deg, var(--gold), var(--gold-d)); }
.ari__pts { font-weight: 700; color: var(--gold); text-align: center; }
.ari__total { text-align: center; border-top: 1px dashed rgba(247, 244, 238, .2); margin: 6px 0 0; padding-top: 14px; font-weight: 700; color: var(--ivory); }

/* ---------- Gates ---------- */
.gates__track { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; padding: 0; margin: 0; counter-reset: gate; position: relative; }
.gate { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 54px 20px 20px; box-shadow: var(--shadow-sm); }
.gate::after { /* connector */
  content: ""; position: absolute; top: 34px; inset-inline-end: -18px; width: 18px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--gold-d) 0 6px, transparent 6px 11px);
}
.gate:last-child::after { display: none; }
.gate__num {
  position: absolute; top: -20px; inset-inline-start: 20px;
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--navy); color: var(--gold); font-weight: 700; font-size: 20px;
  border: 3px solid var(--ivory); box-shadow: var(--shadow-sm);
}
.gate h3 { font-size: 18px; margin-bottom: 6px; }
.gate p { font-size: 14px; color: #57646F; margin-bottom: 12px; }
.gate__output { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--burg); background: var(--ivory); border-radius: 8px; padding: 8px 12px; margin: 0; }
.gate__output .icon { color: var(--gold-d); margin-top: 2px; }

/* ---------- Ecosystem ---------- */
.eco__inner { display: grid; grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); gap: 48px; align-items: start; }
.eco__map { margin: 0; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm); }
.eco__map img { border-radius: 12px; }
.eco__map--wide { max-width: 940px; margin-inline: auto; }
.eco__caption { text-align: center; font-weight: 700; color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; margin-top: -26px; position: relative; width: fit-content; margin-inline: auto; box-shadow: var(--shadow-sm); font-size: 15px; }
.eco__legend { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; padding: 0; margin: 16px 0 4px; font-size: 14px; color: #4A5762; }
.eco__legend li { display: flex; align-items: center; gap: 8px; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--navy); flex: none; }
.dot--burg { background: var(--burg); } .dot--gold { background: var(--gold); }
.dot--teal { background: var(--teal); } .dot--ochre { background: var(--ochre); } .dot--navy { background: var(--navy-2); }
.eco__layers { display: flex; flex-direction: column; gap: 16px; }
.eco-layer { background: var(--white); border: 1px solid var(--line); border-inline-start: 4px solid var(--gold); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow-sm); }
.eco-layer h3 { font-size: 17.5px; margin-bottom: 4px; }
.eco-layer__who { font-size: 14px; color: var(--burg); font-weight: 500; margin-bottom: 4px; }
.eco-layer__how { font-size: 14px; color: #57646F; margin: 0; }

/* Network page */
.layers__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-bottom: 34px; }
.layer-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.layer-card h3 { color: var(--burg); }
.layer-card p { font-size: 15px; color: #4A5762; }
.credibility { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border: 1.5px solid var(--gold); border-radius: var(--radius); padding: 20px 24px; }
.credibility .icon { width: 34px; height: 34px; color: var(--gold-d); flex: none; }
.credibility p { margin: 0; font-size: 15px; color: var(--navy); }
.partners__title { margin: 40px 0 18px; }
.partners__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.partner-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; }
.partner-card img { max-height: 70px; width: auto; margin-inline: auto; object-fit: contain; }
.partner-card__badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--white); background: var(--burg); border-radius: 999px; padding: 4px 12px; }

/* ---------- CTA band & closing ---------- */
.cta-band { background: linear-gradient(120deg, var(--burg-d), var(--burg)); color: var(--ivory); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding-block: 52px; }
.cta-band h2 { color: var(--ivory); font-size: clamp(21px, 2.6vw, 28px); margin: 0; max-width: 30ch; }
.closing { background: linear-gradient(160deg, var(--navy-3), var(--navy) 60%, var(--navy-2)); color: var(--ivory); overflow: hidden; }
.closing__inner { display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); gap: 40px; align-items: center; padding-block: 84px; }
.closing h2 { color: var(--white); font-size: clamp(26px, 3.4vw, 40px); }
.closing p { color: #C4D0DA; font-size: 17.5px; max-width: 52ch; }
.closing__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 26px; }
.closing__download { display: inline-flex; align-items: center; gap: 8px; color: #AEBDC9; }
.closing__download:hover { color: var(--gold); }
.closing__img { border-radius: var(--radius-lg); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(160deg, var(--navy-3), var(--navy) 62%, var(--navy-2)); color: var(--ivory); }
.page-hero__inner { padding-block: 72px 64px; max-width: 860px; }
.page-hero__title { color: var(--white); font-size: clamp(30px, 4vw, 46px); }
.page-hero__desc { color: #C4D0DA; font-size: 18px; margin-bottom: 26px; }

/* ---------- About / values / audiences ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); gap: 48px; align-items: start; }
.prose h2 { font-size: 28px; } .prose h3 { font-size: 20px; margin-top: 1.4em; color: var(--burg); }
.prose--narrow { max-width: 820px; }
.about__institutional { margin-top: 30px; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.operated-inline { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; color: #6B7885; margin-top: 8px; }
.operated-inline img { height: 44px; width: auto; }
.about__visual { margin: 0; position: sticky; top: calc(var(--header-h) + 20px); }
.about__visual img { border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.values__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.value-card { background: var(--white); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow-sm); }
.value-card h3 { font-size: 17px; }
.value-card p { font-size: 13.5px; color: #57646F; margin: 0; }
.aud__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.aud-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.aud-card h3 { font-size: 18px; color: var(--burg); }
.aud-card p { font-size: 14.5px; color: #4A5762; flex: 1; }
.aud-card a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; }
[dir="rtl"] .aud-card a .icon { transform: scaleX(-1); }

/* ---------- Methodology ---------- */
.gaps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gap-card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px; box-shadow: var(--shadow-sm); display: flex; gap: 16px; align-items: flex-start; }
.gap-card__num { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--ivory); border: 1.5px solid var(--gold); color: var(--gold-d); font-weight: 700; font-size: 18px; }
.gap-card p { margin: 0; font-size: 15px; color: #37434E; }
.tools__cols { display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); gap: 56px; align-items: start; }
.tools__list { list-style: none; padding: 0; margin: 0; }
.tools__list li { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 16px; }
.tools__list .icon { color: var(--gold-d); margin-top: 4px; }
.models__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.model-card { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.model-card h3 { font-size: 16.5px; color: var(--burg); margin-bottom: 4px; }
.model-card p { font-size: 13.5px; color: #57646F; margin: 0; }

/* ---------- Governance ---------- */
.gov__grid { display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); gap: 48px; align-items: start; }
.gov__list { list-style: none; padding: 0; margin: 0 0 26px; }
.gov__list li { display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 15px 18px; margin-bottom: 12px; font-weight: 500; box-shadow: var(--shadow-sm); }
.gov__list .icon { color: var(--burg); width: 26px; height: 26px; }
.gov__visual img { border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.metrics__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.metric-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--burg); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.metric-card ul { list-style: none; padding: 0; margin: 0; }
.metric-card li { display: flex; align-items: flex-start; gap: 8px; font-size: 14.5px; padding: 7px 0; color: #37434E; }
.metric-card .icon { color: var(--gold-d); margin-top: 3px; }

/* ---------- Contact form ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 36fr) minmax(0, 64fr); gap: 48px; align-items: start; }
.contact__aside h2 { font-size: 24px; }
.contact__list { list-style: none; padding: 0; margin: 0 0 24px; }
.contact__list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 16px; }
.contact__list .icon { color: var(--burg); width: 24px; height: 24px; }
.contact__img { border-radius: var(--radius); margin-bottom: 16px; }
.ps-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 36px; }
.ps-form__error { background: #FBEDEC; border: 1px solid #E4B4B0; color: #8C2F28; border-radius: 10px; padding: 12px 18px; font-weight: 500; }
.ps-form fieldset { border: none; padding: 0; margin: 0 0 24px; }
.ps-form legend { font-weight: 700; color: var(--navy); margin-bottom: 12px; font-size: 16.5px; }
.type-chip { display: inline-block; margin-inline-end: 10px; margin-bottom: 10px; }
.type-chip input { position: absolute; opacity: 0; }
.type-chip span {
  display: inline-block; padding: 10px 18px; border-radius: 999px; font-size: 15px; font-weight: 500;
  border: 1.5px solid var(--line); background: var(--ivory); color: var(--navy); cursor: pointer; transition: all var(--tr);
}
.type-chip--sm span { padding: 8px 15px; font-size: 14px; }
.type-chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--gold); font-weight: 700; }
.type-chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.ps-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: 15px; color: var(--navy); }
.req { color: var(--burg); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  font-family: var(--font); font-size: 15.5px; color: var(--char);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 15px; background: var(--white);
  transition: border-color var(--tr), box-shadow var(--tr); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232, 166, 43, .18); }
.field textarea { resize: vertical; min-height: 120px; }
.field--consent { flex-direction: row; font-size: 14.5px; }
.field--consent input { width: 20px; height: 20px; accent-color: var(--burg); margin-inline-end: 8px; }
.hp-field { position: absolute !important; inset-inline-start: -9999px !important; height: 0; overflow: hidden; }
.ps-form [data-show] { display: none; }
.ps-form [data-show].is-visible { display: flex; }
fieldset[data-show].is-visible { display: block; }
.ps-form__submit { width: 100%; justify-content: center; margin-top: 8px; }

/* ---------- Thanks / 404 ---------- */
.thanks__inner { text-align: center; max-width: 620px; padding-block: 40px; }
.thanks__icon { width: 84px; height: 84px; margin-inline: auto; margin-bottom: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--navy); box-shadow: 0 10px 30px rgba(232, 166, 43, .4); }
.thanks__icon .icon { width: 40px; height: 40px; }
.thanks__actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.nf-code { font-size: 90px; font-weight: 700; color: var(--grey); -webkit-text-stroke: 2px var(--line); margin: 0; line-height: 1; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(170deg, var(--navy) 0%, var(--navy-3) 100%); color: #C4D0DA; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 25fr) minmax(0, 35fr); gap: 44px; padding-block: 64px 44px; }
.footer__brand img { margin-bottom: 18px; }
.footer__about { font-size: 15px; }
.footer__legal { font-size: 13px; color: #8A9BAA; }
.site-footer h3 { color: var(--gold); font-size: 16.5px; margin-bottom: 16px; }
.footer__links ul, .footer__contact ul { list-style: none; padding: 0; margin: 0; }
.footer__links li { margin-bottom: 9px; }
.footer__links a { color: #C4D0DA; font-size: 15px; }
.footer__links a:hover { color: var(--gold); }
.footer__contact li { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 15px; }
.footer__contact .icon { color: var(--gold); }
.footer__contact a { color: #C4D0DA; }
.footer__contact a:hover { color: var(--gold); }
.footer__cta { margin-top: 16px; }
.footer__bottom { border-top: 1px solid rgba(247, 244, 238, .12); }
.footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.footer__copy { margin: 0; font-size: 13.5px; color: #8A9BAA; }
.operated-by {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ivory); border-radius: 12px; padding: 8px 16px;
  font-size: 12.5px; font-weight: 500; color: var(--navy);
  transition: transform var(--tr), box-shadow var(--tr);
}
.operated-by:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, .3); color: var(--navy); }
.operated-by img { height: 38px; width: auto; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .stats__grid, .services__grid { grid-template-columns: repeat(2, 1fr); }
  .gates__track { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .gate:nth-child(3)::after { display: none; }
  .values__grid { grid-template-columns: repeat(3, 1fr); }
  .aud__grid, .partners__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 640px; }
  .ari__inner, .eco__inner, .about__grid, .gov__grid, .tools__cols, .contact__grid { grid-template-columns: 1fr; }
  .about__visual { position: static; max-width: 560px; }
  .closing__inner { grid-template-columns: 1fr; }
  .closing__img { max-width: 560px; }
  .service-row { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 860px) {
  :root { --header-h: 66px; }
  body { font-size: 16px; }
  .section { padding-block: 60px; }
  .header__cta { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 46px; padding: 10px; background: transparent; border: 1.5px solid var(--navy); border-radius: 10px; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2.5px; border-radius: 2px; background: var(--navy); transition: transform var(--tr), opacity var(--tr); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .nav {
    position: fixed; top: var(--header-h); inset-inline: 0; bottom: 0; z-index: 90;
    background: var(--ivory); padding: 26px 24px; overflow-y: auto;
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all var(--tr);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; gap: 2px; }
  .nav__list a { font-size: 19px; padding: 14px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__list a[aria-current="page"] { box-shadow: none; color: var(--burg); }
  .nav__mobile-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
  .nav__mobile-cta .btn { justify-content: center; }
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .transform__grid { grid-template-columns: 1fr; }
  .transform__arrow { transform: rotate(90deg); justify-self: center; }
  [dir="rtl"] .transform__arrow { transform: rotate(-90deg); }
  [dir="rtl"] .transform__arrow .icon { transform: none; }
  .gaps__grid, .metrics__grid { grid-template-columns: 1fr; }
  .layers__grid, .models__grid { grid-template-columns: 1fr; }
  .ps-form { padding: 26px 20px; }
  .ps-form__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .footer__bottom-inner { justify-content: center; text-align: center; }
}
@media (max-width: 560px) {
  .stats__grid, .services__grid, .trust__grid, .values__grid, .aud__grid, .partners__grid { grid-template-columns: 1fr; }
  .gates__track { grid-template-columns: 1fr; }
  .gate::after { display: none; }
  .hero__actions .btn, .thanks__actions .btn { width: 100%; justify-content: center; }
  .cta-band__inner { justify-content: center; text-align: center; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .closing, .nav-toggle { display: none; }
  body { font-size: 12pt; }
}
