/* =====================================================================
   EDC — Energy Development Company
   Visual language: engineering dossier · navy steel · derrick gold
   ===================================================================== */

:root {
  --navy: #091C2C;
  --navy-2: #0D2537;
  --navy-3: #133049;
  --navy-4: #1C3F5C;
  --gold: #B3832B;
  --gold-2: #D4A44C;
  --gold-3: #F0D9A8;
  --stone: #F3F1EC;
  --stone-2: #E9E5DC;
  --gray: #5A6670;
  --gray-2: #93A0AA;
  --ink: #0B1620;
  --white: #FFFFFF;
  --wa: #0F7A3F;
  --wa-2: #0B6B36;
  --gold-text: #7D5A1D;
  --gold-btn: #8A6420;
  --ok: #1E8E5A;
  --warn: #C98A12;
  --bad: #C2412D;
  --line: rgba(9, 28, 44, .12);
  --line-d: rgba(255, 255, 255, .12);

  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-disp: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --r: 4px;
  --r-lg: 10px;
  --shadow: 0 1px 2px rgba(9,28,44,.06), 0 12px 32px -12px rgba(9,28,44,.18);
  --shadow-lg: 0 30px 80px -30px rgba(9,28,44,.45);
  --ease: cubic-bezier(.2,.7,.1,1);
  --hdr-h: 76px;
}

[dir="rtl"] {
  --f-body: "IBM Plex Sans Arabic", "Archivo", Tahoma, sans-serif;
  --f-disp: "IBM Plex Sans Arabic", "Archivo", Tahoma, sans-serif;
  --f-mono: "IBM Plex Sans Arabic", "IBM Plex Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[dir="rtl"] body { font-size: 16px; line-height: 1.8; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-disp); line-height: 1.08; letter-spacing: -.01em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.35; letter-spacing: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold); color: var(--white); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.sec--navy :focus-visible, .hero :focus-visible, .phero :focus-visible, .hdr :focus-visible, .topbar :focus-visible, .drawer :focus-visible, .ftr :focus-visible, .mapblk__card :focus-visible, .feature :focus-visible, .jvhero :focus-visible, .jvband :focus-visible, .jvdark :focus-visible, .verify :focus-visible, .dossier-top :focus-visible, .marquee__label + .marquee__pause:focus-visible { outline-color: var(--gold-3); }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 44px); }
.ic { width: 1.15em; height: 1.15em; flex: none; }
[dir="rtl"] .ic.flip, [dir="rtl"] .ic.flip-x { transform: scaleX(-1); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 999; background: var(--gold-btn); color: #fff; padding: 10px 16px; border-radius: var(--r); }
.skip:focus { top: 12px; }

/* ---------- type helpers ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text);
  margin-bottom: 18px;
}
[dir="rtl"] .kicker { letter-spacing: 0; font-size: 14px; font-weight: 600; }
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.kicker--gold { color: var(--gold-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-3); border: 1px solid rgba(212,164,76,.35); padding: 8px 14px; border-radius: 99px; background: rgba(179,131,43,.08); }
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 13.5px; }
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 4px rgba(212,164,76,.2); animation: blink 2.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }

.shead { max-width: 780px; margin-bottom: clamp(36px, 5vw, 60px); }
.shead--center { margin-inline: auto; text-align: center; }
.shead--center .kicker { justify-content: center; }
.shead__h { font-size: clamp(30px, 4.2vw, 52px); font-weight: 750; font-variation-settings: "wdth" 88; color: var(--navy); text-wrap: balance; }
.shead__p { margin-top: 18px; font-size: 18px; color: var(--gray); max-width: 640px; }
.shead--center .shead__p { margin-inline: auto; }
.shead--light .shead__h { color: #fff; }
.shead--light .shead__p { color: var(--gray-2); }
.lead { font-size: 18.5px; color: #33424F; }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; color: var(--navy); border-bottom: 2px solid var(--gold); padding-bottom: 4px; margin-top: 28px; transition: gap .3s var(--ease); }
.link-arrow:hover { gap: 16px; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--navy); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: var(--r); border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg); font-weight: 650; font-size: 15px; line-height: 1.2;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn .ic { width: 18px; height: 18px; }
.btn--sm { padding: 9px 15px; font-size: 14px; }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--wa { --bg: var(--wa); }
.btn--wa:hover { --bg: var(--wa-2); box-shadow: 0 10px 26px -10px rgba(15,122,63,.6); }
.btn--gold { --bg: var(--gold-btn); }
.btn--gold:hover { --bg: #7D5A1D; box-shadow: 0 10px 26px -10px rgba(138,100,32,.8); }
.btn--navy:hover { --bg: var(--navy-3); box-shadow: 0 10px 26px -10px rgba(9,28,44,.6); }
.btn--line { --bg: transparent; --bd: rgba(255,255,255,.35); }
.btn--line:hover { --bd: var(--gold-2); --fg: var(--gold-3); }
.btn--ghost { --bg: rgba(255,255,255,.06); --bd: var(--line-d); }
.btn--outline { --bg: transparent; --fg: var(--navy); --bd: var(--line); }
.btn--outline:hover { --bd: var(--navy); }
.btn--danger { --bg: transparent; --fg: var(--bad); --bd: rgba(194,65,45,.3); }
.btn--danger:hover { --bg: var(--bad); --fg: #fff; }

/* ---------- top bar ---------- */
.topbar { background: #061420; color: var(--gray-2); font-size: 13px; }
.topbar__in { display: flex; justify-content: space-between; gap: 16px; min-height: 40px; align-items: center; }
.topbar__info, .topbar__right { display: flex; gap: 22px; align-items: center; }
.topbar a, .topbar span { display: inline-flex; gap: 7px; align-items: center; }
.topbar a:hover { color: var(--gold-2); }
.topbar .ic { color: var(--gold); width: 14px; height: 14px; }
.topbar__lang { color: var(--gold-3); font-weight: 600; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 60; background: rgba(9,28,44,.92); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line-d); transition: box-shadow .3s; }
.hdr.is-scrolled { box-shadow: 0 10px 30px -14px rgba(0,0,0,.6); }
.hdr__in { display: flex; align-items: center; gap: 24px; height: var(--hdr-h); }
.hdr__logo { flex: none; display: inline-flex; align-items: center; gap: 12px; color: #fff; border-radius: var(--r); }
.hdr__mark { width: 50px; height: auto; flex: none; transition: width .3s var(--ease); }
.hdr.is-scrolled .hdr__mark { width: 46px; }
.hdr__word { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding-inline-start: 12px; border-inline-start: 1px solid rgba(255,255,255,.18); white-space: nowrap; line-height: 1; }
.hdr__word span:first-child { font-family: var(--f-disp); font-size: 17px; font-weight: 700; letter-spacing: -.005em; font-variation-settings: "wdth" 84; color: #fff; }
.hdr__word span:last-child { font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); }
[dir="rtl"] .hdr__word { gap: 4px; line-height: 1.25; }
[dir="rtl"] .hdr__word span:first-child { font-size: 17px; letter-spacing: 0; }
[dir="rtl"] .hdr__word span:last-child { font-size: 12.5px; font-weight: 600; letter-spacing: 0; }
.hdr__logo:hover .hdr__word span:last-child { color: var(--gold-3); }
.hdr__nav { display: flex; gap: 4px; margin-inline: auto; }
.hdr__nav a { position: relative; color: #C9D2D9; font-size: 15px; font-weight: 550; padding: 10px 13px; border-radius: var(--r); transition: color .2s; }
.hdr__nav a::after { content: ""; position: absolute; inset-inline: 13px; bottom: 4px; height: 2px; background: var(--gold-2); transform: scaleX(0); transform-origin: var(--origin, left); transition: transform .35s var(--ease); }
[dir="rtl"] .hdr__nav a::after { --origin: right; }
.hdr__nav a:hover, .hdr__nav a.is-active { color: #fff; }
.hdr__nav a:hover::after, .hdr__nav a.is-active::after { transform: scaleX(1); }
.hdr__act { display: flex; align-items: center; gap: 10px; }
.hdr__lang { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-d); color: var(--gold-3); font-weight: 700; font-size: 14px; transition: border-color .2s, background .2s; }
.hdr__lang:hover { border-color: var(--gold-2); background: rgba(179,131,43,.12); }
.hdr__burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-d); background: transparent; border-radius: var(--r); position: relative; }
.hdr__burger span { position: absolute; inset-inline-start: 11px; width: 20px; height: 2px; background: #fff; transition: transform .3s var(--ease), opacity .2s; }
.hdr__burger span:nth-child(1) { top: 14px; } .hdr__burger span:nth-child(2) { top: 20.5px; width: 14px; } .hdr__burger span:nth-child(3) { top: 27px; }
.menu-open .hdr__burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-open .hdr__burger span:nth-child(2) { opacity: 0; }
.menu-open .hdr__burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.drawer { position: fixed; inset: 0; top: 0; z-index: 55; background: var(--navy); padding: calc(var(--hdr-h) + 64px) clamp(20px, 6vw, 44px) 32px; display: flex; flex-direction: column; justify-content: space-between; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; overflow-y: auto; }
.menu-open .drawer { opacity: 1; visibility: visible; }
.drawer__nav a { display: flex; align-items: baseline; gap: 16px; font-family: var(--f-disp); font-size: clamp(30px, 8vw, 44px); font-weight: 700; color: #fff; padding: 6px 0; border-bottom: 1px solid var(--line-d); opacity: 0; transform: translateY(14px); transition: opacity .4s calc(var(--i) * 40ms), transform .5s var(--ease) calc(var(--i) * 40ms), color .2s; font-variation-settings: "wdth" 80; }
.drawer__nav a small { font-family: var(--f-mono); font-size: 12px; color: var(--gold-2); }
.drawer__nav a.is-active, .drawer__nav a:hover { color: var(--gold-2); }
.menu-open .drawer__nav a { opacity: 1; transform: none; }
.drawer__foot { display: grid; gap: 12px; margin-top: 32px; }
.drawer__foot p { color: var(--gray-2); font-size: 14px; text-align: center; }
body.menu-open { overflow: hidden; }

/* ---------- reveal & load ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.is-in { opacity: 1; transform: none; }
.load { opacity: 0; transform: translateY(24px); animation: loadIn 1s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 110ms + 100ms); }
@keyframes loadIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal, .load { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .marquee__track { animation: none !important; }
}

/* ---------- sections ---------- */
.sec { padding-block: clamp(72px, 10vw, 130px); position: relative; }
.sec--stone { background: var(--stone); }
.sec--navy { background: var(--navy); color: #fff; overflow: hidden; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; background: radial-gradient(120% 90% at 85% 10%, #15344E 0%, var(--navy) 55%, #050F18 100%); color: #fff; overflow: hidden; padding-top: clamp(40px, 6vw, 80px); }
.hero__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(80% 70% at 70% 30%, #000 30%, transparent 80%); }
.hero__arcs { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__arcs path { fill: none; stroke: var(--gold); stroke-width: 1.2; opacity: .16; stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 3.5s var(--ease) forwards; }
.hero__arcs path:nth-child(2n) { animation-delay: .25s; opacity: .1; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding-bottom: 40px; }
.hero__h { margin-top: 26px; font-size: clamp(46px, 7.4vw, 104px); font-weight: 800; line-height: .95; letter-spacing: -.025em; font-variation-settings: "wdth" 78; text-transform: uppercase; }
.hero__h span, .hero__h em { display: block; }
.hero__h em { font-style: normal; color: transparent; -webkit-text-stroke: 1.6px var(--gold-2); background: linear-gradient(90deg, var(--gold-2), var(--gold-3)); -webkit-background-clip: text; background-clip: text; }
[dir="rtl"] .hero__h { text-transform: none; line-height: 1.2; font-size: clamp(42px, 6.4vw, 88px); font-weight: 700; letter-spacing: 0; }
[dir="rtl"] .hero__h em { -webkit-text-stroke: 0; }
.hero__lead { margin-top: 28px; font-size: clamp(17px, 1.5vw, 19.5px); color: #B9C5CE; max-width: 600px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__badge { display: inline-flex; gap: 10px; align-items: center; margin-top: 34px; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .1em; color: var(--gray-2); text-transform: uppercase; }
[dir="rtl"] .hero__badge { letter-spacing: 0; font-size: 13.5px; }
.hero__badge .ic { color: var(--gold-2); width: 22px; height: 22px; }

.hero__est { background: var(--gold-btn); color: #fff; padding: 18px 22px; border-radius: var(--r); display: grid; box-shadow: var(--shadow-lg); }
.hero__est small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.hero__est strong { font-size: 40px; font-weight: 800; line-height: 1; font-variation-settings: "wdth" 75; }
.hero__est span { font-size: 13px; }

.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-d); margin: 0; padding: 0; }
.stats__i { padding: 30px 26px 40px; border-inline-end: 1px solid var(--line-d); }
.stats__i:last-child { border-inline-end: 0; }
.stats dt { font-family: var(--f-disp); font-size: clamp(36px, 4vw, 54px); font-weight: 800; line-height: 1; color: #fff; font-variation-settings: "wdth" 75; }
.stats dt sup { font-size: .38em; color: var(--gold-2); margin-inline-start: 4px; vertical-align: super; font-family: var(--f-mono); }
.stats dd { margin: 10px 0 0; color: var(--gray-2); font-size: 14.5px; max-width: 220px; }

/* ---------- marquee ---------- */
.marquee { background: var(--gold); color: var(--navy); display: flex; align-items: center; overflow: hidden; position: relative; }
.marquee__label { flex: none; position: relative; z-index: 2; background: var(--navy); color: var(--gold-3); font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 22px 26px; }
[dir="rtl"] .marquee__label { letter-spacing: 0; font-size: 13.5px; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; flex: none; }
.marquee li { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 22px; letter-spacing: .02em; font-variation-settings: "wdth" 70; text-transform: uppercase; padding: 18px 28px; position: relative; white-space: nowrap; }
.marquee li::after { content: "◆"; position: absolute; inset-inline-end: -6px; top: 50%; transform: translateY(-50%); font-size: 10px; opacity: .55; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- intro ---------- */
.intro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.intro__media { position: relative; padding-bottom: 18%; padding-inline-end: 14%; }
.intro__media figure { margin: 0; overflow: hidden; border-radius: var(--r-lg); }
.intro__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.intro__media figure:hover img { transform: scale(1.05); }
.intro__a { aspect-ratio: 4/4.3; box-shadow: var(--shadow); }
.intro__b { position: absolute; width: 58%; aspect-ratio: 4/3; inset-inline-end: 0; bottom: 0; border: 8px solid #fff; box-shadow: var(--shadow-lg); }
.intro__stamp { position: absolute; top: -34px; inset-inline-end: 4%; width: 140px; height: 140px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; box-shadow: var(--shadow-lg); }
.intro__stamp svg { position: absolute; inset: 0; animation: spin 26s linear infinite; }
.intro__stamp text { font-family: var(--f-mono); font-size: 13.4px; letter-spacing: .13em; fill: var(--gold-3); } /* EN ring text fills the 490-unit circle (textLength in index.php) */
/* RTL: an inherited rtl direction lays the ring text out backwards from the path start, so nothing is painted.
   direction:ltr keeps it on the path (Arabic letters still shape and read right-to-left); no letter-spacing, which breaks Arabic joining. */
[dir="rtl"] .intro__stamp text { direction: ltr; letter-spacing: 0; font-size: 17px; }
.intro__stamp img { width: 72px; height: auto; position: relative; }
.intro__seal { display: flex; align-items: center; gap: 18px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.intro__seal img { width: 88px; height: auto; flex: none; }
.intro__seal strong { display: block; font-family: var(--f-disp); font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.intro__seal span { display: block; margin-top: 4px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
[dir="rtl"] .intro__seal span { letter-spacing: 0; font-size: 13.5px; }
@keyframes spin { to { transform: rotate(360deg); } }
.points { margin-top: 32px; display: grid; gap: 4px; }
.points li { display: flex; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.points__n { font-family: var(--f-mono); color: var(--gold-text); font-weight: 600; font-size: 14px; padding-top: 3px; }
.points h3 { font-size: 18px; font-weight: 700; color: var(--navy); }
.points p { color: var(--gray); margin-top: 4px; }

/* ---------- capabilities ---------- */
.caps__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 60px); }
.caps__head .shead { margin-bottom: 0; }
.caps__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--stone-2); border: 1px solid var(--stone-2); border-radius: var(--r-lg); overflow: hidden; }
.cap { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 34px 28px 30px; background: #fff; min-height: 330px; overflow: hidden; isolation: isolate; transition: color .4s; }
.cap__img { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; opacity: 0; transform: scale(1.12); transition: opacity .55s var(--ease), transform 1.2s var(--ease); }
.cap__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,28,44,.72), rgba(9,28,44,.94)); }
.cap:hover { color: #fff; }
.cap:hover .cap__img { opacity: 1; transform: scale(1); }
.cap__n { font-family: var(--f-mono); font-size: 13px; color: var(--gold-text); font-weight: 600; transition: color .4s; }
.cap:hover .cap__n { color: var(--gold-3); }
.cap__ic { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--stone); color: var(--navy); transition: background .4s, color .4s; }
.cap__ic .ic { width: 26px; height: 26px; }
.cap:hover .cap__ic { background: var(--gold); color: #fff; }
.cap h3 { font-size: 21px; font-weight: 750; color: var(--navy); transition: color .4s; font-variation-settings: "wdth" 90; }
.cap:hover h3 { color: #fff; }
.cap p { color: var(--gray); font-size: 15px; transition: color .4s; }
.cap:hover p { color: #C9D2D9; }
.cap__go { margin-top: auto; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: background .3s, border-color .3s, transform .4s var(--ease); }
.cap:hover .cap__go { background: var(--gold); border-color: var(--gold); transform: rotate(45deg); }
[dir="rtl"] .cap:hover .cap__go { transform: rotate(-45deg); }

/* ---------- feature ---------- */
.feature { position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden; background: var(--navy); }
.feature__img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.feature__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,28,44,.15) 0%, rgba(9,28,44,.55) 50%, rgba(9,28,44,.92) 100%); }
[dir="rtl"] .feature__img::after { background: linear-gradient(-90deg, rgba(9,28,44,.15) 0%, rgba(9,28,44,.55) 50%, rgba(9,28,44,.92) 100%); }
.feature__in { position: relative; display: flex; justify-content: flex-end; padding-block: 80px; }
.feature__card { max-width: 560px; color: #fff; background: rgba(9,28,44,.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line-d); border-top: 3px solid var(--gold); padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg); }
.feature__card h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; font-variation-settings: "wdth" 80; }
.feature__card > p { margin-top: 16px; color: #C3CDD5; }
.feature__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ticks { display: grid; gap: 12px; margin-top: 24px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .ic { color: var(--gold-2); background: rgba(212,164,76,.14); border-radius: 50%; padding: 4px; width: 24px; height: 24px; margin-top: 1px; }
.ticks--dark .ic { color: var(--gold); background: rgba(179,131,43,.12); }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; counter-reset: s; }
.steps::before { content: ""; position: absolute; top: 31px; inset-inline: 8%; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 18px); opacity: .5; }
.step { position: relative; text-align: center; padding: 0 6px; }
.step__n { position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%; background: #fff; border: 2px solid var(--navy); font-family: var(--f-mono); font-weight: 600; font-size: 20px; color: var(--navy); transition: background .3s, color .3s, transform .4s var(--ease); }
.step:hover .step__n { background: var(--navy); color: var(--gold-3); transform: translateY(-4px); }
.step h3 { font-size: 19px; font-weight: 750; color: var(--navy); }
.step p { color: var(--gray); font-size: 15px; margin-top: 8px; }

/* ---------- why ---------- */
.why__bgimg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .09; filter: grayscale(1); }
.why .wrap { position: relative; }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-d); border: 1px solid var(--line-d); }
.why__i { background: var(--navy); padding: 34px 28px; transition: background .35s; }
.why__i:hover { background: var(--navy-3); }
.why__ic { display: inline-grid; place-items: center; width: 50px; height: 50px; border: 1px solid rgba(212,164,76,.4); color: var(--gold-2); border-radius: var(--r); margin-bottom: 22px; }
.why__ic .ic { width: 24px; height: 24px; }
.why__i h3 { font-size: 19px; font-weight: 700; }
.why__i p { color: var(--gray-2); font-size: 15px; margin-top: 8px; }

/* ---------- registry promo ---------- */
.registry__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.registry__btns { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.registry__demo { position: relative; display: flex; justify-content: center; padding: 30px 0; }
.registry__demo::before { content: ""; position: absolute; inset: 8% 6%; background: radial-gradient(circle at 50% 50%, rgba(179,131,43,.22), transparent 65%); }
.phone { position: relative; width: 290px; aspect-ratio: 9/18.5; background: #0A1622; border-radius: 42px; padding: 12px; box-shadow: var(--shadow-lg), inset 0 0 0 2px #24384A; transform: rotate(-4deg); }
[dir="rtl"] .phone { transform: rotate(4deg); }
.phone__notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; background: #0A1622; border-radius: 20px; z-index: 2; }
.phone__screen { height: 100%; border-radius: 32px; background: var(--stone); overflow: hidden; display: flex; flex-direction: column; }
.phone__bar { display: flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; padding: 48px 18px 16px; font-weight: 700; font-size: 14px; }
.phone__bar img { width: 30px; height: auto; flex: none; }
.phone__ok { display: flex; align-items: center; gap: 8px; margin: 16px; padding: 10px 12px; border-radius: 8px; background: rgba(30,142,90,.12); color: #0B6B37; font-size: 12.5px; font-weight: 700; } /* 5.1:1 on the green tint */
.phone__doc { position: relative; margin: 0 16px; padding: 18px; background: #fff; border-radius: 8px; border: 1px solid var(--stone-2); display: grid; gap: 8px; box-shadow: var(--shadow); }
.phone__doc span { height: 7px; border-radius: 4px; background: var(--stone-2); }
.phone__doc span:nth-child(1) { width: 60%; background: var(--navy); height: 9px; }
.phone__doc span:nth-child(2) { width: 85%; } .phone__doc span:nth-child(3) { width: 70%; }
.phone__doc span.s { width: 40%; background: var(--gold); }
.phone__doc i { position: absolute; inset-inline-end: 14px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--gold); }
.phone__dl { margin: 14px 16px; display: grid; gap: 8px; }
.phone__dl div { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; padding: 9px 12px; background: #fff; border-radius: 6px; }
.phone__dl dt { color: var(--gray); }
.phone__dl dd { margin: 0; font-family: var(--f-mono); font-weight: 600; color: var(--navy); }
.phone__dl dd.ok { color: #0B6B37; }
.qrcard { position: absolute; inset-inline-end: 4%; bottom: 8%; background: #fff; padding: 16px 16px 10px; border-radius: 12px; box-shadow: var(--shadow-lg); text-align: center; transform: rotate(5deg); animation: floaty 7s ease-in-out infinite; }
.qrcard__qr { width: 120px; height: 120px; }
.qrcard__qr img, .qrcard__qr canvas { width: 100% !important; height: 100% !important; }
.qrcard span { display: block; margin-top: 8px; font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: .2em; color: var(--gold-text); font-weight: 600; }
[dir="rtl"] .qrcard span { font-family: var(--f-body); font-size: 12px; letter-spacing: 0; }

/* ---------- map block ---------- */
.mapblk { position: relative; min-height: 560px; background: var(--stone-2); }
.mapblk__frame { position: absolute; inset: 0; }
.mapblk__frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }
.mapblk__card-wrap { position: relative; display: flex; align-items: center; min-height: 560px; pointer-events: none; }
.mapblk__card { pointer-events: auto; max-width: 420px; background: var(--navy); color: #fff; padding: 36px; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border-top: 3px solid var(--gold); }
.mapblk__card h2 { font-size: 28px; font-weight: 750; font-variation-settings: "wdth" 85; }
.mapblk__card ul { display: grid; gap: 16px; margin: 24px 0 28px; }
.mapblk__card li { display: flex; gap: 14px; color: #C3CDD5; font-size: 15px; }
.mapblk__card li .ic { color: var(--gold-2); margin-top: 4px; }
.mapblk__card li strong { display: block; color: #fff; font-weight: 650; }
.mapblk__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.mapblk--flat { min-height: 460px; }
.mapblk--flat .mapblk__card-wrap { min-height: 460px; }

/* ---------- footer ---------- */
.ftr { position: relative; background: #061420; color: #AFBBC5; overflow: hidden; padding-top: 80px; }
.ftr__arc { position: absolute; top: -380px; left: 50%; width: 1700px; height: 600px; transform: translateX(-50%); border-radius: 50%; border-bottom: 2px solid rgba(179,131,43,.35); box-shadow: 0 40px 90px -40px rgba(179,131,43,.25); pointer-events: none; }
.ftr__cta { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; padding-bottom: 60px; border-bottom: 1px solid var(--line-d); }
.ftr__big { font-size: clamp(34px, 5vw, 64px); font-weight: 800; color: #fff; max-width: 760px; font-variation-settings: "wdth" 78; line-height: 1.02; }
[dir="rtl"] .ftr__big { line-height: 1.3; }
.ftr__cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.ftr__grid { display: grid; grid-template-columns: 1.3fr .8fr 1.1fr 1.3fr; gap: 40px; padding-block: 60px; }
.ftr__emblem { width: 160px; height: auto; margin-bottom: 24px; }
.ftr__brand p { font-size: 15px; max-width: 320px; }
.ftr h3 { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 20px; font-weight: 600; }
[dir="rtl"] .ftr h3 { letter-spacing: 0; font-size: 14px; }
.ftr ul { display: grid; gap: 10px; font-size: 15px; }
.ftr ul a:hover, .ftr__contact a:hover { color: var(--gold-2); }
.ftr__contact { display: grid; gap: 14px; align-content: start; font-size: 15px; }
.ftr__contact p { display: flex; gap: 12px; }
.ftr__contact p .ic { color: var(--gold); margin-top: 4px; }
.ftr__contact strong { display: block; color: #fff; font-weight: 600; }
.ftr__contact .btn { justify-self: start; margin-top: 4px; }
.ftr__bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-block: 24px 30px; border-top: 1px solid var(--line-d); font-size: 13.5px; }
.ftr__motto { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
[dir="rtl"] .ftr__motto { letter-spacing: 0; font-size: 13px; }
.ftr__admin { display: inline-flex; gap: 6px; align-items: center; opacity: .7; }
.ftr__admin:hover { opacity: 1; color: var(--gold-2); }

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 70; width: 62px; height: 62px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(15,122,63,.65); transition: transform .3s var(--ease), background .2s; }
.wa-float:hover { transform: scale(1.08); background: var(--wa-2); }
.wa-float .ic { width: 32px; height: 32px; position: relative; z-index: 1; }
.wa-float__pulse { position: absolute; inset: 0; border-radius: 50%; background: var(--wa); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
.wa-float__tip { position: absolute; inset-inline-end: 74px; white-space: nowrap; background: var(--navy); color: #fff; font-size: 13.5px; font-weight: 600; padding: 9px 14px; border-radius: var(--r); opacity: 0; transform: translateX(8px); pointer-events: none; transition: opacity .25s, transform .3s var(--ease); }
[dir="rtl"] .wa-float__tip { transform: translateX(-8px); }
.wa-float:hover .wa-float__tip { opacity: 1; transform: none; }

/* =====================================================================
   INNER PAGES
   ===================================================================== */
.phero { position: relative; color: #fff; background: var(--navy); overflow: hidden; padding-block: clamp(80px, 11vw, 150px) clamp(70px, 9vw, 120px); }
.phero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.06); animation: slowzoom 18s ease-out forwards; }
.phero__shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(9,28,44,.97) 0%, rgba(9,28,44,.86) 45%, rgba(9,28,44,.45) 100%); }
[dir="rtl"] .phero__shade { background: linear-gradient(-100deg, rgba(9,28,44,.97) 0%, rgba(9,28,44,.86) 45%, rgba(9,28,44,.45) 100%); }
.phero__arc { position: absolute; bottom: -2px; left: 0; width: 100%; height: 90px; color: var(--gold); opacity: .55; }
.phero__in { position: relative; }
.phero__h { font-size: clamp(38px, 6vw, 78px); font-weight: 800; max-width: 920px; font-variation-settings: "wdth" 80; line-height: 1; text-wrap: balance; }
[dir="rtl"] .phero__h { line-height: 1.3; }
.phero__p { margin-top: 22px; font-size: clamp(16.5px, 1.5vw, 19px); color: #C3CDD5; max-width: 660px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--gray-2); margin-bottom: 28px; }
.crumbs a:hover { color: var(--gold-2); }
.crumbs .ic { width: 14px; height: 14px; }
.phero .reveal { opacity: 1; transform: none; animation: loadIn 1s var(--ease) backwards; }
.phero .reveal:nth-of-type(2) { animation-delay: .1s; }

/* ---------- about ---------- */
.who { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.who__i { padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; position: relative; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; }
.who__i:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.who__i::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--gold), transparent); }
.who__n { font-family: var(--f-mono); font-size: 34px; font-weight: 600; color: var(--stone-2); line-height: 1; }
.who__i h3 { font-size: 19px; margin-top: 18px; color: var(--navy); font-weight: 700; }
.who__i p { color: var(--gray); margin-top: 8px; font-size: 15px; }

.md { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.md__media { position: relative; }
.md__media img { border-radius: var(--r-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.md__media::after { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 2px solid var(--gold); border-radius: var(--r-lg); z-index: -1; }
[dir="rtl"] .md__media::after { inset: 24px 24px -24px -24px; }
.md__media { isolation: isolate; }
.md__quote { color: var(--gold); width: 54px; height: 54px; margin-bottom: 18px; opacity: .8; }
.md__text p { font-size: 17.5px; color: #33424F; margin-top: 16px; }
.md__text p:first-of-type { font-size: 22px; color: var(--navy); font-weight: 600; font-family: var(--f-disp); }
.md__sig { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.md__sig strong { display: block; font-size: 20px; color: var(--navy); font-family: var(--f-disp); }
.md__sig span { color: var(--gold-text); font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; }
[dir="rtl"] .md__sig span { letter-spacing: 0; font-size: 14px; }

.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-d); border: 1px solid var(--line-d); border-radius: var(--r-lg); overflow: hidden; }
.vm__i { background: var(--navy); padding: clamp(30px, 4vw, 52px); }
.vm__i .ic { width: 40px; height: 40px; color: var(--gold-2); }
.vm__i h3 { font-size: 30px; font-weight: 800; margin: 18px 0 14px; font-variation-settings: "wdth" 80; }
.vm__i p { color: #C3CDD5; font-size: 17px; }
.values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; justify-content: center; }
.values li { padding: 11px 20px; border: 1px solid rgba(212,164,76,.35); border-radius: 99px; color: var(--gold-3); font-weight: 600; font-size: 15px; transition: background .25s, color .25s; }
.values li:hover { background: var(--gold-btn); color: #fff; border-color: var(--gold-btn); }

.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.timeline::before { content: ""; position: absolute; top: 46px; inset-inline: 0; height: 2px; background: linear-gradient(90deg, var(--gold), var(--navy)); }
[dir="rtl"] .timeline::before { background: linear-gradient(-90deg, var(--gold), var(--navy)); }
.tl__y { font-family: var(--f-disp); font-size: 38px; font-weight: 800; color: var(--navy); line-height: 1; font-variation-settings: "wdth" 75; }
.tl__dot { display: block; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); margin: 12px 0 24px; position: relative; }
.tl h3 { font-size: 19px; color: var(--navy); font-weight: 700; }
.tl p { color: var(--gray); margin-top: 8px; font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.split__img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/11; }
.split__img img { width: 100%; height: 100%; object-fit: cover; }
.panel { background: var(--stone); padding: clamp(26px, 3.5vw, 40px); border-radius: var(--r-lg); border-inline-start: 4px solid var(--gold); }
.panel h3 { font-size: 22px; color: var(--navy); font-weight: 750; margin-bottom: 10px; }
.panel p { color: #3B4A57; }
.panel + .panel { margin-top: 18px; }

/* ---------- services page ---------- */
.svc-nav { position: sticky; top: var(--hdr-h); z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.svc-nav__in { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 12px; }
.svc-nav__in::-webkit-scrollbar { display: none; }
.svc-nav a { flex: none; display: inline-flex; gap: 8px; align-items: center; padding: 9px 14px; border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--gray); border: 1px solid var(--line); transition: all .25s; }
.svc-nav a:hover, .svc-nav a.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.svc-nav .ic { width: 16px; height: 16px; }
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; padding-block: clamp(60px, 8vw, 100px); border-bottom: 1px solid var(--line); }
.svc:nth-child(even) .svc__media { order: 2; }
.svc__media { position: relative; }
.svc__media img { border-radius: var(--r-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.svc__num { position: absolute; top: -28px; inset-inline-start: -10px; font-family: var(--f-disp); font-size: 120px; font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--gold); opacity: .55; font-variation-settings: "wdth" 70; pointer-events: none; z-index: 2; }
.svc__ic { display: inline-grid; place-items: center; width: 56px; height: 56px; background: var(--navy); color: var(--gold-2); border-radius: var(--r); margin-bottom: 20px; }
.svc__ic .ic { width: 28px; height: 28px; }
.svc h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; color: var(--navy); font-variation-settings: "wdth" 82; }
.svc__p { margin-top: 16px; font-size: 17.5px; color: #3B4A57; }
.svc .ticks { margin-top: 26px; }
.svc .ticks li { padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.svc__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.equip { display: flex; flex-wrap: wrap; gap: 12px; }
.equip li { font-family: var(--f-mono); font-size: 14px; font-weight: 500; padding: 12px 18px; background: rgba(255,255,255,.05); border: 1px solid var(--line-d); border-radius: var(--r); color: #DCE3E8; transition: border-color .25s, color .25s; }
.equip li:hover { border-color: var(--gold-2); color: var(--gold-3); }

/* ---------- projects ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-top: -60px; position: relative; z-index: 2; box-shadow: var(--shadow); }
.kpis div { background: #fff; padding: 28px 26px; }
.kpis strong { display: block; font-family: var(--f-disp); font-size: 44px; font-weight: 800; color: var(--navy); line-height: 1; font-variation-settings: "wdth" 75; }
.kpis span { color: var(--gray); font-size: 14.5px; display: block; margin-top: 8px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.tabs button { border: 1px solid var(--line); background: #fff; padding: 11px 20px; border-radius: 99px; font-weight: 650; color: var(--gray); transition: all .25s; }
.tabs button.is-active, .tabs button:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.yr { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding-block: 44px; border-top: 1px solid var(--line); }
.yr[hidden] { display: none; }
.yr__h { font-family: var(--f-disp); font-size: 64px; font-weight: 900; color: var(--navy); line-height: .9; font-variation-settings: "wdth" 70; position: sticky; top: calc(var(--hdr-h) + 30px); align-self: start; }
.yr__h small { display: block; font-family: var(--f-mono); font-size: 12px; font-weight: 500; color: var(--gold-text); letter-spacing: .1em; margin-top: 12px; }
.plist { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pitem { display: flex; gap: 16px; padding: 20px 22px; background: var(--stone); border-radius: var(--r-lg); border: 1px solid transparent; transition: border-color .3s, background .3s, transform .3s var(--ease); }
.pitem:hover { background: #fff; border-color: var(--gold); transform: translateY(-3px); }
.pitem__t { flex: none; font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-text); background: rgba(179,131,43,.1); padding: 4px 9px; border-radius: 3px; height: fit-content; white-space: nowrap; }
[dir="rtl"] .pitem__t { font-size: 12.5px; letter-spacing: 0; }
.pitem p { color: #2E3D49; font-size: 15.5px; }
.clients { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line-d); border: 1px solid var(--line-d); border-radius: var(--r-lg); overflow: hidden; }
.clients li { background: var(--navy); min-height: 110px; display: grid; place-items: center; text-align: center; padding: 16px; font-family: "Archivo", sans-serif; font-weight: 800; font-size: 20px; letter-spacing: .03em; font-variation-settings: "wdth" 72; text-transform: uppercase; color: #DCE3E8; transition: background .3s, color .3s; }
.clients li:hover { background: var(--gold); color: var(--navy); }
.locs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.locs li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px; background: var(--stone); font-weight: 600; color: var(--navy); font-size: 14.5px; }
.locs .ic { color: var(--gold); }

/* ---------- QHSE ---------- */
.motto { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.motto p { padding: 28px 20px; font-family: var(--f-disp); font-size: clamp(20px, 2.2vw, 28px); font-weight: 800; color: var(--navy); text-align: center; font-variation-settings: "wdth" 80; border-inline-end: 1px solid var(--line); }
.motto p:last-child { border-inline-end: 0; }
.motto p span { color: var(--gold); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { padding: 34px 30px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.pillar .ic { width: 42px; height: 42px; color: var(--gold); }
.pillar h3 { font-size: 22px; color: var(--navy); font-weight: 750; margin-top: 20px; }
.pillar p { color: var(--gray); margin-top: 8px; }
.iso { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.iso__i { position: relative; padding: 36px 30px; border-radius: var(--r-lg); background: linear-gradient(160deg, var(--navy-3), var(--navy)); color: #fff; overflow: hidden; border: 1px solid var(--line-d); }
.iso__i::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; border: 22px solid rgba(179,131,43,.12); inset-inline-end: -80px; top: -80px; }
.iso__c { font-family: var(--f-disp); font-size: 34px; font-weight: 800; color: var(--gold-2); font-variation-settings: "wdth" 75; }
.iso__i p { margin-top: 10px; color: #C3CDD5; }
.iso__seal { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; color: var(--gold-3); text-transform: uppercase; }
.practice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.practice li { display: flex; gap: 12px; align-items: center; padding: 16px 18px; background: #fff; border-radius: var(--r); font-weight: 550; color: var(--navy); }
.practice .ic { color: var(--gold); }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 70px); }
.cinfo { display: grid; gap: 14px; align-content: start; }
.ccard { display: flex; gap: 18px; padding: 24px; border-radius: var(--r-lg); background: var(--stone); transition: transform .3s var(--ease), background .3s; }
a.ccard:hover { transform: translateY(-3px); background: var(--stone-2); }
.ccard__ic { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--gold-2); }
.ccard__ic .ic { width: 24px; height: 24px; }
.ccard--wa .ccard__ic { background: var(--wa); color: #fff; }
.ccard small { display: block; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; }
[dir="rtl"] .ccard small { letter-spacing: 0; font-size: 13px; }
.ccard strong { display: block; font-size: 17px; color: var(--navy); margin-top: 3px; word-break: break-word; }
.ccard span { color: var(--gray); font-size: 14.5px; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.form h2 { font-size: 30px; color: var(--navy); font-weight: 800; margin-bottom: 26px; font-variation-settings: "wdth" 85; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 600; color: var(--navy); }
.field label .req { color: var(--bad); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 15.5px; padding: 13px 15px; border: 1.5px solid #8C959C; border-radius: var(--r); background: #FBFAF7; color: var(--ink); transition: border-color .2s, background .2s, box-shadow .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(179,131,43,.12); }
.field small { color: var(--gray); font-size: 13px; }
.form__btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.hp { position: absolute; left: -9999px; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 15px 18px; border-radius: var(--r); margin-bottom: 22px; font-weight: 550; }
.alert--success { background: rgba(30,142,90,.1); color: #136640; }
.alert--error { background: rgba(194,65,45,.1); color: #8E2B1C; }

/* =====================================================================
   CERTIFICATES
   ===================================================================== */
.cbar { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; margin-bottom: 30px; }
.search { position: relative; display: flex; }
.search .ic { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); color: var(--gray); }
.search input { flex: 1; font: inherit; padding: 15px 18px; padding-inline-start: 48px; border: 1.5px solid #8C959C; border-radius: var(--r) 0 0 var(--r); background: #fff; font-size: 15.5px; min-width: 0; }
[dir="rtl"] .search input { border-radius: 0 var(--r) var(--r) 0; }
.search input:focus { outline: 0; border-color: var(--gold); }
.search button { border: 0; background: var(--navy); color: #fff; padding: 0 24px; border-radius: 0 var(--r) var(--r) 0; font-weight: 650; }
[dir="rtl"] .search button { border-radius: var(--r) 0 0 var(--r); }
.ccount { font-family: var(--f-mono); font-size: 13px; color: var(--gray); }
.clayout { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: start; }
.cside { position: sticky; top: calc(var(--hdr-h) + 20px); display: grid; gap: 18px; }
.cside__box { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; }
.cside__h { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); padding: 12px 12px 8px; font-weight: 600; }
[dir="rtl"] .cside__h { letter-spacing: 0; font-size: 13.5px; }
.ccat { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); font-size: 14.5px; font-weight: 550; color: #33424F; transition: background .2s, color .2s; }
.ccat .ic { width: 20px; height: 20px; color: var(--gold); flex: none; }
.ccat em { margin-inline-start: auto; font-style: normal; font-family: var(--f-mono); font-size: 12px; background: var(--stone); padding: 2px 8px; border-radius: 99px; color: var(--gray); }
.ccat:hover { background: var(--stone); }
.ccat.is-active { background: var(--navy); color: #fff; }
.ccat.is-active .ic { color: var(--gold-2); }
.ccat.is-active em { background: rgba(255,255,255,.12); color: #fff; }
.verify { background: var(--navy); color: #fff; padding: 24px; border-radius: var(--r-lg); position: relative; overflow: hidden; }
.verify::after { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; border: 18px solid rgba(179,131,43,.14); inset-inline-end: -60px; bottom: -60px; }
.verify h2, .verify h3 { font-size: 18px; display: flex; gap: 10px; align-items: center; }
.verify h2 .ic, .verify h3 .ic { color: var(--gold-2); }
.verify p { color: var(--gray-2); font-size: 14px; margin: 8px 0 16px; }
.verify form { display: grid; gap: 10px; position: relative; z-index: 1; }
.verify input { font: inherit; font-family: var(--f-mono); padding: 12px 14px; border-radius: var(--r); border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.06); color: #fff; text-transform: uppercase; letter-spacing: .06em; }
.verify input::placeholder { color: var(--gray-2); text-transform: none; letter-spacing: 0; }
.verify input:focus { outline: 0; border-color: var(--gold-2); }

.cathead { display: flex; gap: 20px; align-items: center; padding: 26px; background: var(--stone); border-radius: var(--r-lg); margin-bottom: 26px; }
.cathead__ic { flex: none; width: 64px; height: 64px; display: grid; place-items: center; background: var(--navy); color: var(--gold-2); border-radius: var(--r-lg); }
.cathead__ic .ic { width: 30px; height: 30px; }
.cathead h2 { font-size: 26px; color: var(--navy); font-weight: 800; font-variation-settings: "wdth" 85; }
.cathead p { color: var(--gray); margin-top: 4px; }

.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.ccard2 { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.ccard2:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold); }
.ccard2__thumb { position: relative; aspect-ratio: 4/3; background: var(--stone) center/cover no-repeat; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.ccard2__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ccard2__pdf { display: grid; place-items: center; gap: 8px; color: var(--navy); text-align: center; }
.ccard2__pdf .ic { width: 52px; height: 52px; color: var(--gold); }
.ccard2__pdf span { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; }
.ccard2__thumb .status { position: absolute; top: 12px; inset-inline-start: 12px; }
.ccard2__body { padding: 20px; display: grid; gap: 8px; flex: 1; }
.ccard2__cat { font-family: var(--f-mono); font-size: 11.5px; color: var(--gold-text); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
[dir="rtl"] .ccard2__cat { letter-spacing: 0; font-size: 12.5px; }
.ccard2 h3 { font-size: 17.5px; color: var(--navy); font-weight: 700; line-height: 1.3; }
.ccard2__meta { display: grid; gap: 4px; font-size: 13.5px; color: var(--gray); margin-top: 4px; }
.ccard2__meta span { display: flex; gap: 8px; align-items: center; }
.ccard2__meta .ic { width: 15px; height: 15px; color: var(--gold); }
.ccard2__foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 12px; color: var(--gray); }
.ccard2__foot .ic { color: var(--navy); }

.status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 99px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); white-space: nowrap; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--valid { color: #17734A; }
.status--expiring { color: #8F5F00; }
.status--valid i { background: var(--ok); }
.status--expiring i { background: var(--warn); }
.status--expired, .status--revoked { color: var(--bad); }
.status--none { color: var(--navy-4); }
.status--unknown { color: #8F5F00; }
.status--unknown i { background: transparent; border: 2px solid var(--warn); }

.empty { text-align: center; padding: 70px 24px; border: 2px dashed var(--stone-2); border-radius: var(--r-lg); background: #FCFBF8; }
.empty .ic { width: 56px; height: 56px; color: var(--gold); margin: 0 auto 18px; }
.empty h3 { font-size: 22px; color: var(--navy); }
.empty p { color: var(--gray); margin-top: 8px; }
.cats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 44px; }
.cats-grid a { display: grid; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; transition: border-color .3s, transform .3s var(--ease); }
.cats-grid a:hover { border-color: var(--gold); transform: translateY(-3px); }
.cats-grid .ic { width: 30px; height: 30px; color: var(--gold); }
.cats-grid strong { color: var(--navy); font-size: 16px; }
.cats-grid span { color: var(--gray); font-size: 13.5px; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-d); border-radius: var(--r-lg); overflow: hidden; margin-top: 70px; }
.how div { background: var(--navy); color: #fff; padding: 30px; }
.how b { font-family: var(--f-mono); color: var(--gold-2); font-size: 13px; }
.how h3 { font-size: 22px; margin: 10px 0 6px; }
.how p { color: var(--gray-2); font-size: 15px; }

/* ---------- certificate detail (dossier) ---------- */
.dossier-top { background: var(--navy); color: #fff; padding-block: 44px 120px; position: relative; overflow: hidden; }
.dossier-top::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; }
.dossier-top .wrap { position: relative; z-index: 1; }
.vbanner { display: flex; gap: 18px; align-items: center; padding: 18px 22px; border-radius: var(--r-lg); background: rgba(30,142,90,.14); border: 1px solid rgba(30,142,90,.45); margin-top: 22px; max-width: 760px; }
.vbanner .ic { width: 40px; height: 40px; color: #4CD08D; flex: none; }
.vbanner strong { display: block; font-size: 18px; }
.vbanner span { color: #B5D9C6; font-size: 14.5px; }
.vbanner--expired { background: rgba(194,65,45,.16); border-color: rgba(194,65,45,.5); }
.vbanner--expired .ic { color: #F07B66; }
.vbanner--expired span { color: #F1C3BA; }
.dossier-top h1 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; font-variation-settings: "wdth" 82; margin-top: 18px; max-width: 900px; }
.dossier { display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; margin-top: -84px; position: relative; z-index: 2; padding-bottom: 90px; align-items: start; }
.dcard { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.dcard__h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.dcard__h h2 { font-size: 17px; color: var(--navy); display: flex; gap: 10px; align-items: center; font-weight: 700; }
.dcard__h h2 .ic { color: var(--gold); }
.dcard__acts { display: flex; gap: 8px; flex-wrap: wrap; }
.viewer { background: #E7E4DD; min-height: 420px; display: grid; place-items: center; padding: 20px; }
.viewer img { max-height: 1100px; width: auto; margin-inline: auto; box-shadow: 0 10px 40px rgba(0,0,0,.18); background: #fff; }
.viewer object, .viewer iframe { width: 100%; height: 860px; border: 0; background: #fff; }
.viewer__fallback { text-align: center; color: var(--gray); }
.ddata { margin: 0; }
.ddata div { display: grid; grid-template-columns: 42% 1fr; gap: 14px; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.ddata div:last-child { border-bottom: 0; }
.ddata dt { color: var(--gray); font-size: 14px; display: flex; gap: 8px; align-items: center; }
.ddata dt .ic { color: var(--gold); width: 16px; height: 16px; }
.ddata dd { margin: 0; color: var(--navy); font-weight: 650; font-size: 15px; word-break: break-word; }
.ddata dd.mono { font-family: var(--f-mono); }
.dside { display: grid; gap: 22px; position: sticky; top: calc(var(--hdr-h) + 20px); }
.qrbox { padding: 26px; text-align: center; }
.qrbox__qr { width: 210px; height: 210px; margin: 0 auto; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); position: relative; }
.qrbox__qr::before, .qrbox__qr::after { content: ""; position: absolute; width: 26px; height: 26px; border: 3px solid var(--gold); }
.qrbox__qr::before { top: -6px; left: -6px; border-right: 0; border-bottom: 0; }
.qrbox__qr::after { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }
.qrbox__qr img, .qrbox__qr canvas { width: 100% !important; height: 100% !important; }
.qrbox__code { font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: 17px; letter-spacing: .08em; color: var(--navy); margin-top: 18px; }
.qrbox p { color: var(--gray); font-size: 14px; margin-top: 6px; }
.qrbox .btn { margin-top: 18px; width: 100%; }
.validity { padding: 22px 24px; }
.validity__bar { height: 8px; border-radius: 99px; background: var(--stone-2); overflow: hidden; margin: 14px 0 10px; }
.validity__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--ok)); border-radius: 99px; }
.validity__bar.is-expired i { background: var(--bad); }
.validity__row { display: flex; justify-content: space-between; font-size: 13px; color: var(--gray); font-family: var(--f-mono); }
.validity__left { font-weight: 700; color: var(--navy); }
.notes { padding: 22px 24px; color: #33424F; white-space: pre-line; border-top: 1px solid var(--line); }
.related { display: grid; gap: 8px; padding: 14px; }
.related a { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r); transition: background .2s; }
.related a:hover { background: var(--stone); }
.related .ic { color: var(--gold); }
.related strong { display: block; font-size: 14.5px; color: var(--navy); }
.related span { font-size: 12.5px; color: var(--gray); font-family: var(--f-mono); }
.toast { position: fixed; bottom: 100px; left: 50%; transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: var(--r); font-weight: 600; opacity: 0; transition: all .3s var(--ease); z-index: 90; pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1180px) {
  .hdr__nav { display: none; }
  .hdr__burger { display: block; }
  .hdr__act { margin-inline-start: auto; }
  .caps__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .who { grid-template-columns: repeat(2, 1fr); }
  .clients { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .hero__in, .intro__grid, .registry__grid, .md, .split, .svc, .contact, .dossier, .clayout { grid-template-columns: 1fr; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__i:nth-child(2) { border-inline-end: 0; }
  .stats__i:nth-child(-n+2) { border-bottom: 1px solid var(--line-d); }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 0; bottom: 0; inset-inline-start: 31px; inset-inline-end: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--gold) 0 10px, transparent 10px 18px); }
  .step { display: grid; grid-template-columns: 64px 1fr; gap: 4px 22px; text-align: start; padding-bottom: 30px; }
  .step__n { grid-row: span 2; margin: 0; }
  .svc:nth-child(even) .svc__media { order: 0; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .timeline::before { display: none; }
  .yr { grid-template-columns: 1fr; gap: 20px; }
  .yr__h { position: static; }
  .pillars, .iso { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .cside { position: static; }
  .dside { position: static; }
  .feature__in { justify-content: center; }
  .mapblk { min-height: 0; display: flex; flex-direction: column-reverse; }
  .mapblk__frame { position: relative; height: 380px; }
  .mapblk__card-wrap { min-height: 0; padding-block: 0; }
  .mapblk__card { max-width: none; width: 100%; margin-top: -40px; margin-bottom: 30px; }
  .md__media::after { display: none; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .topbar__hide { display: none !important; }
  .topbar__info { gap: 14px; }
  .topbar__info a:nth-child(2) span { display: none; }
  .hdr__act .btn--wa span { display: none; }
  .hdr__act .btn--wa { padding: 10px; }
  .hdr__in { gap: 14px; }
  .hdr__logo { gap: 9px; }
  .hdr__mark, .hdr.is-scrolled .hdr__mark { width: 40px; }
  .hdr__word { padding-inline-start: 9px; gap: 2px; }
  .hdr__word span:first-child { font-size: clamp(12.5px, 3.6vw, 14.5px); }
  .hdr__word span:last-child { font-size: clamp(8px, 2.3vw, 9px); letter-spacing: .16em; }
  [dir="rtl"] .hdr__word { gap: 2px; }
  [dir="rtl"] .hdr__word span:first-child { font-size: clamp(13px, 3.8vw, 14.5px); }
  [dir="rtl"] .hdr__word span:last-child { font-size: clamp(10px, 2.9vw, 11px); }
  .ftr__emblem { width: 140px; }
  .intro__seal img { width: 72px; }
  .caps__grid, .why__grid, .who, .vm, .pillars, .iso, .practice, .plist, .frow, .motto, .how { grid-template-columns: 1fr; }
  .motto p { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .cap { min-height: 0; }
  .clients { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .intro__stamp { width: 104px; height: 104px; top: -20px; }
  .intro__stamp text { font-size: 13px; }
  .intro__stamp img { width: 52px; }
  .hero__btns .btn { flex: 1 1 100%; }
  .ftr__grid { grid-template-columns: 1fr; gap: 32px; }
  .stats__i { padding: 22px 14px 28px; }
  .svc__num { font-size: 80px; top: -18px; }
  .qrcard { inset-inline-end: 0; }
  .phone { width: 240px; }
  .ddata div { grid-template-columns: 1fr; gap: 2px; }
  .viewer object, .viewer iframe { height: 560px; }
  .cbar { grid-template-columns: 1fr; }
  .wa-float { width: 56px; height: 56px; inset-inline-end: 16px; bottom: 16px; }
  .wa-float__tip { display: none; }
  .kpis strong { font-size: 34px; }
  .mapblk__card { padding: 26px; }
}

/* ---------- print (certificate page) ---------- */
@media print {
  .topbar, .hdr, .drawer, .ftr, .wa-float, .dcard__acts, .crumbs, .related-card, .no-print { display: none !important; }
  .dossier-top { background: #fff; color: #000; padding: 0 0 20px; }
  .dossier-top::after { display: none; }
  .vbanner { border-color: #999; color: #000; }
  .dossier { margin-top: 0; grid-template-columns: 1fr; }
  .dcard { box-shadow: none; break-inside: avoid; }
  .viewer object, .viewer iframe { display: none; }
}

/* keep RTL alignment for auto-direction values */
[dir="rtl"] [dir="auto"], [dir="rtl"] .ddata dd { text-align: right; }

/* =====================================================================
   v2 — Image integration & joint venture
   ===================================================================== */
@keyframes slowzoom { to { transform: scale(1); } }
@keyframes floaty { 50% { transform: translateY(-8px); } }

/* ---------- home hero with full-bleed illustration ---------- */
.hero--img { min-height: clamp(640px, calc(100vh - 116px), 900px); display: flex; flex-direction: column; justify-content: flex-end; background: var(--navy); }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media picture, .hero__media img { display: block; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; transform: scale(1.06); animation: slowzoom 16s ease-out forwards; }
.hero__shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(6,18,29,.94) 0%, rgba(9,28,44,.82) 38%, rgba(9,28,44,.28) 68%, rgba(9,28,44,.12) 100%),
  linear-gradient(180deg, rgba(9,28,44,.35) 0%, transparent 30%, transparent 62%, rgba(6,18,29,.92) 100%); }
[dir="rtl"] .hero__shade { background:
  linear-gradient(-90deg, rgba(6,18,29,.95) 0%, rgba(9,28,44,.85) 42%, rgba(9,28,44,.4) 70%, rgba(9,28,44,.2) 100%),
  linear-gradient(180deg, rgba(9,28,44,.35) 0%, transparent 30%, transparent 62%, rgba(6,18,29,.92) 100%); }
.hero--img .hero__grid { mask-image: radial-gradient(70% 70% at 20% 40%, #000 20%, transparent 75%); }
.hero--img .hero__arcs path { opacity: .12; }
.hero--img .hero__in { align-items: end; padding-top: 30px; }
.hero__aside { display: grid; gap: 14px; justify-items: end; align-self: end; }
.hero__spec { display: flex; align-items: flex-end; gap: 16px; padding: 18px 20px; border-radius: var(--r-lg); background: rgba(6,18,29,.55); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero__derrick { width: 46px; flex: none; }
.hero__derrick path { fill: none; stroke: var(--gold-3); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 3s .6s var(--ease) forwards; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 8px; max-width: 300px; }
.hero__tags li { font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--gold-3); border: 1px solid rgba(212,164,76,.4); padding: 5px 10px; border-radius: 3px; background: rgba(179,131,43,.1); }

/* ---------- inner hero with <img> ---------- */
.phero__bg--img { background: none; }
.phero__bg--img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- home banner (workshop capability) ---------- */
.banner { position: relative; margin: 0 0 22px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 6; background: var(--navy); }
.banner__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.4s var(--ease); }
.banner:hover .banner__img { transform: scale(1.03); }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,28,44,.88) 0%, rgba(9,28,44,.45) 45%, transparent 75%); pointer-events: none; }
[dir="rtl"] .banner::after { background: linear-gradient(-90deg, rgba(9,28,44,.88) 0%, rgba(9,28,44,.45) 45%, transparent 75%); }
.banner__cap { position: absolute; inset-block-end: clamp(18px, 3vw, 40px); inset-inline-start: clamp(18px, 3vw, 44px); z-index: 1; max-width: 520px; color: #fff; }
.banner__cap .kicker { margin-bottom: 10px; }
.banner__cap strong { display: block; font-family: var(--f-disp); font-size: clamp(20px, 2.4vw, 32px); font-weight: 750; line-height: 1.2; font-variation-settings: "wdth" 85; }

/* ---------- process with image ---------- */
.process__head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; margin-bottom: clamp(40px, 6vw, 70px); }
.process__head .shead { margin-bottom: 0; }
.process__img { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 2; box-shadow: var(--shadow); }
.process__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.process__img figcaption { position: absolute; inset-inline-start: 16px; inset-block-end: 16px; display: inline-flex; gap: 8px; align-items: center; background: rgba(9,28,44,.85); color: #fff; font-size: 13.5px; font-weight: 600; padding: 9px 14px; border-radius: var(--r); backdrop-filter: blur(6px); }
.process__img figcaption .ic { color: var(--gold-2); }

/* ---------- joint-venture band (home) ---------- */
.jvband { position: relative; background: #0A0A0B; color: #fff; overflow: hidden; padding-block: clamp(60px, 8vw, 100px); }
.jvband::before { content: ""; position: absolute; width: 900px; height: 900px; border-radius: 50%; background: radial-gradient(circle, rgba(212,164,76,.18), transparent 60%); inset-inline-start: -300px; top: -380px; }
.jvband__in { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.jvband__logo { display: block; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 70px -30px rgba(212,164,76,.45); border: 1px solid rgba(212,164,76,.25); transition: transform .5s var(--ease); }
.jvband__logo:hover { transform: translateY(-4px) rotate(-.5deg); }
.jvband__logo img { width: 100%; height: auto; }
.jvband h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; font-variation-settings: "wdth" 82; }
.jvband__copy > p:not(.kicker) { color: #B9B4A8; margin-top: 16px; font-size: 17px; }
.jvband__brands { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.jvband__brands li { padding: 7px 14px; border-radius: 99px; border: 1px solid rgba(212,164,76,.35); color: var(--gold-3); font-weight: 700; font-size: 14px; }
.jvband__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- footer JV card ---------- */
.ftr__jv { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 10px; border: 1px solid var(--line-d); border-radius: var(--r-lg); max-width: 320px; transition: border-color .25s, background .25s; }
.ftr__jv:hover { border-color: var(--gold); background: rgba(179,131,43,.06); }
.ftr__brand .ftr__jv img { width: 74px; height: 40px; object-fit: cover; border-radius: 6px; margin: 0; }
.ftr__jv span { flex: 1; color: #fff; font-weight: 650; font-size: 14.5px; line-height: 1.3; }
.ftr__jv small { display: block; color: var(--gold-2); font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
[dir="rtl"] .ftr__jv small { letter-spacing: 0; font-size: 12px; }
.ftr__jv > .ic { color: var(--gold-2); }

/* ---------- about ---------- */
.who-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: stretch; }
.who-wrap__img { margin: 0; border-radius: var(--r-lg); overflow: hidden; }
.who-wrap__img img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 100%; }
.who--2 { grid-template-columns: repeat(2, 1fr); }
.panel--jv { display: flex; gap: 18px; align-items: center; margin-top: 18px; border-inline-start-color: #0A0A0B; background: #0A0A0B; color: #fff; transition: transform .3s var(--ease); }
.panel--jv:hover { transform: translateY(-3px); }
.panel--jv img { width: 120px; flex: none; border-radius: 6px; }
.panel--jv h3 { color: var(--gold-3); font-size: 18px; }
.panel--jv p { color: #C8C3B8; font-size: 15px; }
.split__img--tall { aspect-ratio: 4 / 5; }
.split__img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- projects ---------- */
.over { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.over__i { background: #fff; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
.over__i:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.over__i figure { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; }
.over__i img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.over__i:hover img { transform: scale(1.04); }
.over__i > div { padding: 26px 28px 30px; }
.over__i h3 { font-size: 22px; color: var(--navy); font-weight: 750; }
.over__i p { color: var(--gray); margin-top: 8px; }
.field-gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.field-gal__i { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1 / 1; background: var(--stone); }
.field-gal__i:first-child { grid-row: span 2; aspect-ratio: auto; }
.field-gal__i img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease); }
.field-gal__i:hover img { transform: scale(1.05); }
.field-gal__i figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; font-size: 13px; font-weight: 600; background: linear-gradient(transparent, rgba(9,28,44,.9)); line-height: 1.35; }

/* ---------- QHSE ---------- */
.pillars--img { grid-template-columns: repeat(4, 1fr); }
.pillars__img { grid-row: span 2; margin: 0; border-radius: var(--r-lg); overflow: hidden; }
.pillars__img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- misc ---------- */
.why__grid--3 { grid-template-columns: repeat(3, 1fr); }

/* =====================================================================
   AL JANOUB AUTO (joint venture) — black & gold sub-theme
   ===================================================================== */
.jvpage { --jv-black: #0A0A0B; --jv-ink: #141416; --jv-gold: #D9A93A; --jv-gold-2: #F1CF79; --jv-silver: #C9CDD2; }
.jvhero { position: relative; background: radial-gradient(90% 120% at 80% 20%, #1D1B16 0%, var(--jv-black) 55%); color: #fff; overflow: hidden; padding-top: clamp(30px, 5vw, 60px); }
.jvhero__glow { position: absolute; width: 1100px; height: 1100px; border-radius: 50%; inset-inline-end: -380px; top: -520px; background: radial-gradient(circle, rgba(217,169,58,.22), transparent 62%); }
.jvhero__in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; padding-bottom: clamp(40px, 6vw, 70px); }
.jvhero .crumbs { margin-bottom: 22px; }
.jvhero .eyebrow { color: var(--jv-gold-2); border-color: rgba(217,169,58,.4); }
.jvhero__h { margin-top: 22px; font-size: clamp(46px, 7vw, 96px); font-weight: 900; line-height: .95; letter-spacing: -.02em; text-transform: uppercase; font-variation-settings: "wdth" 76; color: var(--jv-gold-2); }
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .jvhero__h { background: linear-gradient(180deg, #FFF3CF 0%, var(--jv-gold-2) 35%, var(--jv-gold) 70%, #9C7417 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.jvhero__h small { display: block; font-size: .42em; letter-spacing: 0; text-transform: none; margin-top: 10px; color: var(--jv-silver); -webkit-text-fill-color: var(--jv-silver); font-family: "IBM Plex Sans Arabic", var(--f-disp); font-weight: 700; line-height: 1.3; }
[dir="rtl"] .jvhero__h { line-height: 1.25; text-transform: none; }
[dir="rtl"] .jvhero__h small { font-family: "Archivo", sans-serif; font-size: .36em; letter-spacing: .04em; }
.jvhero__tag { margin-top: 18px; font-family: var(--f-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--jv-silver); }
[dir="rtl"] .jvhero__tag { letter-spacing: 0; font-size: 15px; }
.jvhero__lead { margin-top: 18px; font-size: 18px; color: #BDB8AD; max-width: 600px; }
.jvhero__logo { position: relative; }
.jvhero__logo img { width: 100%; border-radius: 14px; box-shadow: 0 40px 90px -30px rgba(217,169,58,.4); border: 1px solid rgba(217,169,58,.28); }
.jvhero__brands { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.jvhero__brands li { padding: 7px 15px; border-radius: 99px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); font-weight: 800; font-size: 14px; letter-spacing: .04em; color: #fff; }
.jvhero__values { position: relative; border-top: 1px solid rgba(217,169,58,.25); background: linear-gradient(90deg, rgba(217,169,58,.12), rgba(217,169,58,.02)); }
.jvhero__values ul { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 18px; }
.jvhero__values li { font-family: "Archivo", var(--f-disp); font-weight: 800; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--jv-gold-2); display: inline-flex; align-items: center; gap: 12px; }
[dir="rtl"] .jvhero__values li { font-family: var(--f-disp); letter-spacing: 0; }
.jvhero__values li::before { content: "\25C6"; font-size: 9px; color: var(--jv-gold); }

.jvrel { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: center; margin-bottom: clamp(40px, 6vw, 70px); }
.jvrel__edc { display: flex; align-items: center; gap: 18px; padding: 28px; border-radius: var(--r-lg); background: var(--stone); }
.jvrel__edc img { width: 42%; height: auto; }
.jvrel__edc .jvrel__jv { border-radius: 8px; }
.jvrel__x { font-size: 34px; font-weight: 300; color: var(--gold); flex: none; }
.jvtrio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.jvtrio__i { padding: 32px 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; border-top: 3px solid var(--jv-gold); }
.jvtrio__i .ic { width: 36px; height: 36px; color: var(--gold); }
.jvtrio__i h3 { font-size: 21px; color: var(--navy); margin: 16px 0 8px; }
.jvtrio__i p { color: var(--gray); }

.jvprod { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.jvprod li { display: flex; flex-direction: column; gap: 10px; padding: 20px 18px; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); font-weight: 650; color: var(--navy); font-size: 15px; line-height: 1.35; transition: border-color .25s, transform .3s var(--ease); }
.jvprod li:hover { border-color: var(--jv-gold); transform: translateY(-3px); }
.jvprod li span { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--gold-text); font-weight: 600; }

.jvdark { background: var(--jv-black); color: #fff; }
.jvduo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.jvcard { padding: clamp(28px, 4vw, 44px); border-radius: var(--r-lg); background: var(--jv-ink); border: 1px solid rgba(255,255,255,.08); }
.jvcard h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 800; font-variation-settings: "wdth" 82; }
.jvcard > p:not(.kicker) { color: #B9B4A8; margin-top: 14px; }
.jvsteps { display: grid; gap: 10px; margin-top: 24px; }
.jvsteps li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); font-weight: 650; }
.jvsteps b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--jv-gold); color: var(--jv-black); font-family: "IBM Plex Mono", monospace; flex: none; }
.jvchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.jvchips li { display: inline-flex; gap: 8px; align-items: center; padding: 9px 14px; border-radius: 99px; border: 1px solid rgba(217,169,58,.35); color: var(--jv-gold-2); font-weight: 600; font-size: 14px; }
.jvchips .ic { width: 15px; height: 15px; }
.jvdark .why__i { background: var(--jv-black); }
.jvdark .why__i:hover { background: var(--jv-ink); }
.jvdark .why__grid { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.08); }
.jvdark .shead__h { color: #fff; }

.jvspec { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.jvspec li { padding: 22px 18px; border-inline-end: 1px solid var(--line); font-weight: 700; color: var(--navy); display: grid; gap: 6px; }
.jvspec li:last-child { border-inline-end: 0; }
.jvspec small { font-family: "IBM Plex Mono", monospace; color: var(--gold-text); font-size: 12px; }
.jvlists { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(30px, 5vw, 70px); }
.jvcols { grid-template-columns: 1fr 1fr; display: grid; gap: 12px 24px; margin-top: 0; }
.jvcust { display: grid; gap: 10px; }
.jvcust li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: #fff; border-radius: var(--r); font-weight: 600; color: var(--navy); }
.jvcust .ic { color: var(--gold); }
.jvgal { display: grid; grid-template-columns: 2fr 1fr 1.4fr; grid-template-rows: 260px 260px; gap: 14px; }
.jvgal__i { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--stone); }
.jvgal__i img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease); }
.jvgal__i:hover img { transform: scale(1.04); }
.jvgal__i--1 { grid-column: 1; grid-row: 1 / span 2; }
.jvgal__i--2 { grid-column: 2; grid-row: 1 / span 2; }
.jvgal__i--3 { grid-column: 3; grid-row: 1; }
.jvgal__i--4 { grid-column: 3; grid-row: 2; }
.page-jv .hdr__nav a.is-active::after { background: var(--jv-gold); }

@media (max-width: 1180px) {
  .jvprod { grid-template-columns: repeat(3, 1fr); }
  .jvspec { grid-template-columns: repeat(3, 1fr); }
  .jvspec li:nth-child(3n) { border-inline-end: 0; }
  .jvspec li:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .pillars--img { grid-template-columns: repeat(3, 1fr); }
  .pillars__img { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 21 / 9; }
  .field-gal { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .hero--img { min-height: 0; }
  .hero--img .hero__in { grid-template-columns: 1fr; padding-top: 60px; }
  .hero__aside { justify-items: start; grid-auto-flow: column; align-items: end; justify-content: start; }
  .hero__shade, [dir="rtl"] .hero__shade { background: linear-gradient(180deg, rgba(9,28,44,.55) 0%, rgba(9,28,44,.72) 40%, rgba(6,18,29,.94) 100%); }
  .process__head, .jvband__in, .jvhero__in, .jvrel, .jvduo, .jvlists, .who-wrap { grid-template-columns: 1fr; }
  .who-wrap__img img { aspect-ratio: 16 / 9; }
  .jvtrio { grid-template-columns: 1fr; }
  .why__grid--3 { grid-template-columns: 1fr 1fr; }
  .jvgal { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .jvgal__i { aspect-ratio: 4 / 3; }
  .jvgal__i--1, .jvgal__i--2, .jvgal__i--3, .jvgal__i--4 { grid-column: auto; grid-row: auto; }
  .jvgal__i--1 { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .banner { aspect-ratio: 16 / 9; }
}
@media (max-width: 680px) {
  .hero__aside { grid-auto-flow: row; }
  .hero__spec { padding: 14px; }
  .over, .who--2, .why__grid--3, .jvcols { grid-template-columns: 1fr; }
  .field-gal { grid-template-columns: 1fr 1fr; }
  .field-gal__i:first-child { grid-row: auto; aspect-ratio: 1 / 1; }
  .pillars--img { grid-template-columns: 1fr; }
  .pillars__img { aspect-ratio: 4 / 3; }
  .jvprod { grid-template-columns: 1fr 1fr; }
  .jvspec { grid-template-columns: 1fr 1fr; }
  .jvspec li { border-bottom: 1px solid var(--line); }
  .jvspec li:nth-child(3n) { border-inline-end: 1px solid var(--line); }
  .jvspec li:nth-child(2n) { border-inline-end: 0; }
  .banner { aspect-ratio: 4 / 3; }
  .banner::after, [dir="rtl"] .banner::after { background: linear-gradient(180deg, transparent 20%, rgba(9,28,44,.92) 100%); }
  .jvrel__edc { padding: 18px; }
  .panel--jv { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__media img, .phero__bg, .phero__bg--img img { animation: none !important; transform: none !important; }
  .hero__derrick path { animation: none; stroke-dashoffset: 0; }
}


/* =====================================================================
   v3 — review fixes (accessibility, RTL, responsiveness)
   ===================================================================== */
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
main:focus { outline: none; }
.hp { position: absolute; left: auto; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; } /* logical: a physical left offset becomes scrollable overflow in RTL */
.form__note { color: var(--gray); font-size: 14px; margin: -14px 0 20px; }
.field__err { color: #8E2B1C; font-weight: 600; font-size: 13.5px; }
.field [aria-invalid="true"] { border-color: var(--bad); background: #FFF6F4; }
.alert:focus { outline: 3px solid var(--navy); outline-offset: 2px; }
.link-inline { color: var(--navy); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.vbanner__h { font-size: 18px; font-weight: 700; margin: 0 0 2px; line-height: 1.3; }

/* marquee pause control */
.marquee__pause { position: relative; z-index: 3; flex: none; width: 40px; align-self: stretch; border: 0; background: #0D2537; color: var(--gold-3); display: grid; place-items: center; cursor: pointer; }
.marquee__pause span { width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.marquee.is-paused .marquee__pause span { width: 0; height: 0; border: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid currentColor; }
.marquee.is-paused .marquee__track, .marquee__track:focus-within { animation-play-state: paused; }
.intro__stamp svg { animation-iteration-count: 2; }

/* letter-spacing breaks Arabic cursive joining */
[dir="rtl"] .hero__est small, [dir="rtl"] .yr__h small, [dir="rtl"] .iso__seal, [dir="rtl"] .jvhero__brands li,
[dir="rtl"] .hero__tags li, [dir="rtl"] .phone__dl dd, [dir="rtl"] .jvband__brands li { letter-spacing: 0; }

/* directional gradients mirrored for RTL (images are never mirrored) */
[dir="rtl"] .who__i::before { background: linear-gradient(-90deg, var(--gold), transparent); }
[dir="rtl"] .validity__bar i { background: linear-gradient(-90deg, var(--gold), var(--ok)); }
[dir="rtl"] .validity__bar.is-expired i { background: var(--bad); }
[dir="rtl"] .jvhero__values { background: linear-gradient(-90deg, rgba(217,169,58,.12), rgba(217,169,58,.02)); }
[dir="rtl"] .hero--img .hero__grid { mask-image: radial-gradient(70% 70% at 80% 40%, #000 20%, transparent 75%); }

/* mobile hero uses the portrait image (04) with its own focal point */
@media (max-width: 980px) {
  .hero__media img.hero__bgimg { object-position: 27% 52% !important; }
  /* the stacked hero is far taller than the photo: keep the photo near its own proportions at the top and fade it into navy */
  .hero--img .hero__media { bottom: auto; height: min(100%, 135vw); }
  .hero--img .hero__media::after { content: ""; position: absolute; inset: auto 0 0; height: 35%; background: linear-gradient(180deg, rgba(9,28,44,0), var(--navy)); }
  .hero--img .hero__shade, [dir="rtl"] .hero--img .hero__shade { background: linear-gradient(180deg, rgba(9,28,44,.42) 0, rgba(9,28,44,.55) 45vw, rgba(9,28,44,.84) 85vw, rgba(9,28,44,.93) 120vw, rgba(6,18,29,.96) 100%); }
  .topbar__hide { display: none !important; }
  .jvgal__i--2 { grid-row: span 2; aspect-ratio: auto; }
  .jvgal__i--1 { grid-column: 1 / -1; }
}

/* reduced motion: stop every looping / decorative animation */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .eyebrow__dot, .wa-float__pulse, .qrcard, .intro__stamp svg, .hero__arcs path, .marquee__track { animation: none !important; }
  .hero__arcs path { stroke-dashoffset: 0; }
}

.menu-open .wa-float { display: none; }
.menu-open .drawer { visibility: visible; transition: opacity .35s, visibility 0s; }

/* v4 — second-review fixes */
.shead--light .kicker, .sec--navy .kicker, .jvdark .kicker, .why .kicker { color: var(--gold-2); }
.cap:focus-visible { outline-offset: -4px; }
.cap:focus-visible .cap__img { opacity: 1; transform: scale(1); }
.cap:focus-visible, .cap:focus-visible h3 { color: #fff; }
.cap:focus-visible p { color: #C9D2D9; }
.qr-fallback { display: grid; place-items: center; font-family: var(--f-mono); font-size: 11px; word-break: break-all; text-align: center; color: var(--navy); }
.menu-open .hdr__act .hdr__lang, .menu-open .hdr__act .btn--wa { opacity: .45; }
nav.cside__box { display: block; }

/* v5 — new EDC emblem: keep the mark + wordmark and the full nav on one row between the burger breakpoint and the max width */
@media (min-width: 1181px) and (max-width: 1340px) {
  .hdr__in { gap: 16px; }
  .hdr__nav { gap: 0; }
  .hdr__nav a { padding-inline: 9px; }
  .hdr__nav a::after { inset-inline: 9px; }
}
/* very narrow phones: the emblem alone (the link keeps its full accessible name) */
@media (max-width: 345px) {
  .hdr__word { display: none; }
}

/* emblem placements on light / dark sections */
.jvrel__edc .jvrel__emblem { width: 36%; max-width: 200px; }
.jvrel__edc .jvrel__jv { flex: 1 1 0; min-width: 0; }
.emblemcard { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: clamp(40px, 6vw, 72px); padding: clamp(26px, 4vw, 44px) clamp(24px, 5vw, 56px); background: var(--stone); border-radius: var(--r-lg); border-inline-start: 3px solid var(--gold); }
.emblemcard__img { width: 210px; height: auto; }
.emblemcard__h { font-size: clamp(24px, 2.6vw, 32px); font-weight: 750; font-variation-settings: "wdth" 88; color: var(--navy); text-wrap: balance; }
.emblemcard__txt p:not(.kicker) { margin-top: 14px; font-size: 17px; color: #33424F; max-width: 620px; }
.nf__emblem { width: 132px; height: auto; margin: 0 auto 26px; }
@media (max-width: 680px) {
  .emblemcard { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .emblemcard .kicker { justify-content: center; }
  .emblemcard__img { width: 170px; }
  .nf__emblem { width: 112px; }
}

/* v6 — integration fixes
   1) narrow phones: grid/flex children may shrink below their content width (no sideways page scroll, EN + AR)
   2) target size: header / footer / drawer links are at least 24px tall (WCAG 2.2 SC 2.5.8) and 44px on touch screens
      (pointer: coarse). On desktop the boxes only grow to fill their existing line height, so the look is unchanged. */
.topbar__in > *, .contact > *, .clayout > * { min-width: 0; }
.ccard > div, .ccard > span:not(.ccard__ic) { min-width: 0; overflow-wrap: anywhere; }
.topbar a { min-height: 24px; min-width: 24px; justify-content: center; }
.ftr ul a { display: inline-flex; align-items: center; min-height: 24px; }
.ftr__contact p a { display: inline-flex; align-items: center; min-height: 24px; }
.ftr__admin { min-height: 24px; }
@media (max-width: 430px) {
  /* phone + e-mail icon on one side, language on the other: never wider than the screen in either language */
  .topbar__in { gap: 10px; }
  .topbar__info { gap: 6px; flex-wrap: nowrap; }
  .topbar__right { gap: 6px; flex: none; }
  .topbar__info a:first-child { min-width: 0; }
  .topbar__info a:first-child span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (pointer: coarse) {
  .topbar__in { min-height: 44px; }
  .topbar a { min-height: 44px; min-width: 44px; }
  .hdr__nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .hdr__lang { width: 44px; height: 44px; }
  .hdr__act .btn--wa { min-height: 44px; min-width: 44px; justify-content: center; }
  .hdr__logo { min-height: 44px; min-width: 44px; justify-content: center; }
  .drawer__nav a { min-height: 44px; align-items: center; }
  .drawer__foot .btn { min-height: 44px; }
  .ftr ul { gap: 0; }
  .ftr ul a { min-height: 44px; min-width: 44px; }
  .ftr__contact p { align-items: center; }
  .ftr__contact p .ic { margin-top: 0; }
  .ftr__contact p:has(strong) { align-items: flex-start; }
  .ftr__contact p:has(strong) .ic { margin-top: 4px; }
  .ftr__contact p a { min-height: 44px; }
  .ftr__contact .btn, .ftr__cta-btns .btn { min-height: 44px; }
  .ftr__admin { min-height: 44px; }
  .ftr__jv { min-height: 44px; }
}
