/* ============================================================
   AFAQ — Afaq Alinshaa Golden Foundation for Contracting
   Brand design system · works for RTL (ar) and LTR (en)
   ============================================================ */

:root {
  /* Brand palette (from logo) */
  --gold: #b9974c;
  --gold-light: #d4b878;
  --gold-pale: #f3e9d2;
  --gold-dark: #97783a;
  --purple: #6b1f7c;
  --purple-dark: #4e1659;
  --navy: #1b4a6b;
  --navy-deep: #0e2a40;
  --ink: #0b1f30;

  --bg: #faf9f6;
  --surface: #ffffff;
  --text: #2c3e4e;
  --text-soft: #5d7180;
  --line: #e7e2d6;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -22px rgba(14, 42, 64, 0.28);
  --shadow-sm: 0 10px 28px -16px rgba(14, 42, 64, 0.22);
  --gold-grad: linear-gradient(120deg, #c9a85e, #b9974c 45%, #9a7b3c);
  --dark-grad: linear-gradient(150deg, #12344e, #0e2a40 55%, #0b1f30);

  --ff-ar: "Almarai", "Tajawal", "Segoe UI", sans-serif;
  --ff-en: "Manrope", "Segoe UI", sans-serif;

  --section-pad: clamp(64px, 9vw, 120px);
  --header-h: 84px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-size: 16.5px;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body[lang="ar"], :lang(ar) { font-family: var(--ff-ar); }
body[lang="en"], :lang(en) { font-family: var(--ff-en); letter-spacing: .1px; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; font-weight: 800; }

.container { width: min(1180px, 92%); margin-inline: auto; }

section { padding-block: var(--section-pad); position: relative; }

::selection { background: var(--gold); color: #fff; }

/* ------------------------------------------------------------
   Reveal animations (driven by IntersectionObserver in main.js)
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s cubic-bezier(.16,.84,.32,1), transform .9s cubic-bezier(.16,.84,.32,1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal-x {
  opacity: 0;
  transform: translateX(-44px);
  transition: opacity 1s cubic-bezier(.16,.84,.32,1), transform 1s cubic-bezier(.16,.84,.32,1);
  transition-delay: var(--d, 0s);
}
[dir="rtl"] .reveal-x { transform: translateX(44px); }
.reveal-x.in-view { opacity: 1; transform: none; }
.reveal-zoom {
  opacity: 0; transform: scale(.92);
  transition: opacity .9s ease, transform .9s cubic-bezier(.16,.84,.32,1);
  transition-delay: var(--d, 0s);
}
.reveal-zoom.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-x, .reveal-zoom { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------
   Preloader
   ------------------------------------------------------------ */
#preloader {
  position: fixed; inset: 0; z-index: 2000;
  background: var(--navy-deep);
  display: grid; place-items: center;
  transition: opacity .6s ease, visibility .6s;
}
#preloader.done { opacity: 0; visibility: hidden; }
#preloader img { width: 86px; animation: pulseLogo 1.4s ease-in-out infinite; }
@keyframes pulseLogo {
  0%, 100% { transform: scale(1); opacity: .85; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* ------------------------------------------------------------
   Top bar
   ------------------------------------------------------------ */
.topbar {
  background: var(--navy-deep);
  color: #cfdce6;
  font-size: 13.5px;
  position: relative; z-index: 60;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding-block: 9px; flex-wrap: wrap;
}
.topbar a { display: inline-flex; align-items: center; gap: 7px; transition: color .25s; }
.topbar a:hover { color: var(--gold-light); }
.topbar .tb-group { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar svg { width: 15px; height: 15px; fill: var(--gold); flex: none; }
.topbar .num { direction: ltr; unicode-bidi: embed; }

/* ------------------------------------------------------------
   Header / nav
   ------------------------------------------------------------ */
header.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(231, 226, 214, .7);
  transition: box-shadow .3s;
}
header.site-header.scrolled { box-shadow: 0 10px 34px -18px rgba(14,42,64,.25); }
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 56px; width: auto; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand .brand-text strong {
  font-size: 24px; font-weight: 800; color: var(--purple); letter-spacing: 2px;
  font-family: var(--ff-en);
}
.brand .brand-text small { font-size: 10.5px; color: var(--navy); font-weight: 700; max-width: 230px; }

nav.main-nav ul { display: flex; gap: clamp(16px, 2.4vw, 34px); align-items: center; }
nav.main-nav a {
  font-weight: 700; font-size: 15.5px; color: var(--ink);
  padding-block: 8px; position: relative; transition: color .25s;
}
nav.main-nav a::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: 0;
  width: 0; height: 2.5px; border-radius: 2px;
  background: var(--gold-grad); transition: width .3s ease;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--purple); }
nav.main-nav a:hover::after, nav.main-nav a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 800; font-size: 14px; color: var(--navy);
  border: 1.5px solid var(--line); border-radius: 50px;
  padding: 7px 16px; transition: all .3s;
}
.lang-switch:hover { border-color: var(--gold); color: var(--gold-dark); background: var(--gold-pale); }
.lang-switch svg { width: 16px; height: 16px; fill: currentColor; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 30px; border-radius: 50px;
  font-weight: 800; font-size: 15.5px;
  transition: transform .3s, box-shadow .3s, background .3s, color .3s;
  position: relative; overflow: hidden;
}
.btn svg { width: 17px; height: 17px; fill: currentColor; }
[dir="rtl"] .btn svg.arrow { transform: scaleX(-1); }
.btn-gold { background: var(--gold-grad); color: #fff; box-shadow: 0 12px 28px -12px rgba(185,151,76,.7); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -12px rgba(185,151,76,.8); }
.btn-outline { border: 1.8px solid rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy-deep); transform: translateY(-3px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); transform: translateY(-3px); }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; position: relative; z-index: 130; }
.nav-toggle span {
  display: block; width: 24px; height: 2.5px; background: var(--ink);
  margin: 5px auto; border-radius: 2px; transition: .35s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  min-height: calc(100svh - var(--header-h) - 42px);
  display: flex; align-items: center;
  background: var(--dark-grad);
  color: #fff; overflow: hidden; padding-block: 90px;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-veil {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(150deg, rgba(18,52,78,.93), rgba(14,42,64,.78) 55%, rgba(11,31,48,.95));
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(212,184,120,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,184,120,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 75%);
}
.hero-glow {
  position: absolute; width: 560px; height: 560px; border-radius: 50%;
  filter: blur(110px); opacity: .35; pointer-events: none;
}
.hero-glow.g1 { background: var(--purple); top: -180px; inset-inline-end: -120px; animation: drift 11s ease-in-out infinite alternate; }
.hero-glow.g2 { background: var(--gold); bottom: -240px; inset-inline-start: -160px; opacity: .22; animation: drift 13s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(40px, 30px) scale(1.12); } }

.hero-mark {
  position: absolute; inset-inline-end: clamp(-120px, -4vw, 0px); top: 50%;
  transform: translateY(-50%);
  width: clamp(320px, 42vw, 640px); opacity: .07; pointer-events: none;
  animation: floatMark 9s ease-in-out infinite;
}
@keyframes floatMark { 0%,100% { transform: translateY(-52%);} 50% { transform: translateY(-48%);} }

.hero .container { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold-light); font-weight: 700; font-size: 15px;
  background: rgba(185,151,76,.12); border: 1px solid rgba(212,184,120,.35);
  padding: 8px 18px; border-radius: 50px; margin-bottom: 26px;
}
.hero-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(185,151,76,.25); }

.hero h1 {
  color: #fff; font-size: clamp(34px, 5.6vw, 62px); line-height: 1.25;
  max-width: 18ch; margin-bottom: 22px;
}
.hero h1 .gold-word { position: relative; white-space: nowrap; }
.hero h1 .gold-word, .hero h1 .gold-word .w {
  background: linear-gradient(100deg, #e8cf96, var(--gold-light) 40%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 .gold-word::after {
  content: ""; position: absolute; inset-inline: 2px; bottom: 4px; height: 9px;
  background: rgba(185,151,76,.25); border-radius: 6px; z-index: -1;
}
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(.6em); animation: wordUp .8s cubic-bezier(.16,.84,.32,1) forwards; animation-delay: calc(var(--i) * .12s + .2s); }
@keyframes wordUp { to { opacity: 1; transform: none; } }

.hero p.lead {
  color: #b9c9d6; font-size: clamp(16px, 1.6vw, 19px); max-width: 56ch;
  margin-bottom: 38px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 54px; }

.hero-trust {
  display: inline-flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm); padding: 14px 22px; backdrop-filter: blur(6px);
}
.hero-trust svg { width: 34px; height: 34px; fill: var(--gold); flex: none; }
.hero-trust strong { color: #fff; display: block; font-size: 15px; }
.hero-trust span { color: #93a8b8; font-size: 13px; }

.scroll-hint {
  position: absolute; bottom: 26px; inset-inline-start: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.35); border-radius: 16px;
  z-index: 3;
}
[dir="rtl"] .scroll-hint { transform: translateX(50%); }
.scroll-hint::after {
  content: ""; position: absolute; top: 7px; left: 50%; margin-left: -2px;
  width: 4px; height: 8px; border-radius: 3px; background: var(--gold-light);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 1; transform: translateY(0);} 70% { opacity: 0; transform: translateY(14px);} 100% { opacity: 0; } }

/* ------------------------------------------------------------
   Inner page hero
   ------------------------------------------------------------ */
.page-hero {
  background: var(--dark-grad); color: #fff;
  padding-block: clamp(64px, 9vw, 110px) clamp(48px, 7vw, 84px);
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(212,184,120,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,184,120,.06) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, #000 20%, transparent 80%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 48px); margin-block: 10px 14px; }
.page-hero p { color: #aebfcc; max-width: 64ch; font-size: 17px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--gold-light); font-weight: 700; flex-wrap: wrap; }
.breadcrumb a { color: #9fb3c2; transition: color .25s; font-weight: 400; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { color: #5d7587; }

/* ------------------------------------------------------------
   Section heading
   ------------------------------------------------------------ */
.sec-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold-dark); font-weight: 800; font-size: 14.5px;
  text-transform: uppercase; letter-spacing: .4px; margin-bottom: 12px;
}
.sec-eyebrow::before { content: ""; width: 30px; height: 2.5px; border-radius: 2px; background: var(--gold-grad); }
.sec-head.center .sec-eyebrow::after { content: ""; width: 30px; height: 2.5px; border-radius: 2px; background: var(--gold-grad); }
.sec-head h2 { font-size: clamp(27px, 3.6vw, 40px); }
.sec-head p { color: var(--text-soft); margin-top: 14px; font-size: 17px; }
.on-dark .sec-head h2 { color: #fff; }
.on-dark .sec-head p { color: #a7bac8; }
.on-dark .sec-eyebrow { color: var(--gold-light); }

/* ------------------------------------------------------------
   About / split layouts
   ------------------------------------------------------------ */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }

.about-visual { position: relative; }
.about-visual .frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: var(--dark-grad);
}
.about-visual .frame img { width: 100%; height: 100%; object-fit: cover; }
.about-visual::before {
  content: ""; position: absolute; inset: 26px -26px -26px 26px;
  border: 2px solid var(--gold); border-radius: var(--radius); z-index: -1; opacity: .5;
}
[dir="rtl"] .about-visual::before { inset: 26px 26px -26px -26px; }
.exp-badge {
  position: absolute; bottom: -26px; inset-inline-end: -14px;
  background: var(--gold-grad); color: #fff; border-radius: var(--radius-sm);
  padding: 20px 26px; text-align: center; box-shadow: var(--shadow);
}
.exp-badge strong { display: block; font-size: 34px; line-height: 1.1; font-weight: 800; }
.exp-badge span { font-size: 13.5px; font-weight: 700; opacity: .95; }

.checks { margin-top: 26px; display: grid; gap: 13px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; color: var(--ink); }
.checks svg { width: 22px; height: 22px; fill: var(--gold); flex: none; margin-top: 5px; }

/* ------------------------------------------------------------
   Cards: services
   ------------------------------------------------------------ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.svc-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px 30px;
  transition: transform .4s cubic-bezier(.16,.84,.32,1), box-shadow .4s, border-color .4s;
  position: relative; overflow: hidden;
}
.svc-card::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0;
  width: 100%; height: 4px; background: var(--gold-grad);
  transform: scaleX(0); transform-origin: var(--tx-origin, left);
  transition: transform .45s cubic-bezier(.16,.84,.32,1);
}
[dir="rtl"] .svc-card::before { --tx-origin: right; }
.svc-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); border-color: transparent; }
.svc-card:hover::before { transform: scaleX(1); }
.svc-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(185,151,76,.14), rgba(107,31,124,.1));
  display: grid; place-items: center; margin-bottom: 22px;
  transition: background .4s;
}
.svc-icon svg { width: 32px; height: 32px; fill: var(--gold-dark); transition: fill .4s, transform .4s; }
.svc-card:hover .svc-icon { background: var(--gold-grad); }
.svc-card:hover .svc-icon svg { fill: #fff; transform: scale(1.1); }
.svc-card h3 { font-size: 19.5px; margin-bottom: 10px; }
.svc-card p { color: var(--text-soft); font-size: 15px; line-height: 1.85; }
.svc-card .more {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
  font-weight: 800; font-size: 14px; color: var(--purple);
}
.svc-card .more svg { width: 15px; height: 15px; fill: currentColor; transition: transform .3s; }
[dir="rtl"] .svc-card .more svg { transform: scaleX(-1); }
.svc-card:hover .more svg { transform: translateX(4px); }
[dir="rtl"] .svc-card:hover .more svg { transform: scaleX(-1) translateX(4px); }

/* ------------------------------------------------------------
   Stats band
   ------------------------------------------------------------ */
.stats { background: var(--dark-grad); color: #fff; overflow: hidden; }
.stats::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(212,184,120,.14) 1.5px, transparent 1.5px);
  background-size: 34px 34px; opacity: .5;
  mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
}
.stats .grid-4 { position: relative; z-index: 2; }
.stat { text-align: center; padding: 18px 10px; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 22%;
  height: 56%; width: 1px; background: linear-gradient(180deg, transparent, rgba(212,184,120,.4), transparent);
}
.stat .num {
  font-size: clamp(38px, 4.6vw, 56px); font-weight: 800; line-height: 1.15;
  background: linear-gradient(100deg, #ecd9a8, var(--gold-light) 45%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  direction: ltr; unicode-bidi: embed;
}
.stat .lbl { color: #b9c9d6; font-weight: 700; margin-top: 8px; font-size: 15.5px; }

/* ------------------------------------------------------------
   Featured project band
   ------------------------------------------------------------ */
.featured { background: linear-gradient(150deg, #3d1247, var(--purple-dark) 45%, #2a0d33); color: #fff; overflow: hidden; }
.featured::after {
  content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%;
  background: var(--gold); filter: blur(160px); opacity: .16;
  top: -160px; inset-inline-end: -120px;
}
.featured .split { position: relative; z-index: 2; }
.featured h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 18px; }
.featured p { color: #d4c2db; }
.featured .tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212,184,120,.14); color: var(--gold-light);
  border: 1px solid rgba(212,184,120,.4);
  font-weight: 800; font-size: 13.5px; border-radius: 50px; padding: 7px 16px; margin-bottom: 18px;
}
.featured .fact-row { display: flex; gap: 30px; margin-top: 28px; flex-wrap: wrap; }
.featured .fact strong { display: block; font-size: 28px; font-weight: 800; color: var(--gold-light); direction: ltr; unicode-bidi: embed; }
.featured .fact span { font-size: 13.5px; color: #c9b3d2; font-weight: 700; }
.featured .visual { border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); }

/* ------------------------------------------------------------
   Projects grid
   ------------------------------------------------------------ */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; justify-content: center; }
.filters button {
  padding: 10px 22px; border-radius: 50px; font-weight: 800; font-size: 14.5px;
  color: var(--text-soft); border: 1.5px solid var(--line); background: var(--surface);
  transition: all .3s;
}
.filters button:hover { border-color: var(--gold); color: var(--gold-dark); }
.filters button.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.proj-card {
  border-radius: var(--radius); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .45s cubic-bezier(.16,.84,.32,1), box-shadow .45s;
  display: flex; flex-direction: column;
}
.proj-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); }
.proj-card.hide { display: none; }
.proj-media { position: relative; overflow: hidden; aspect-ratio: 16/10.5; }
.proj-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.16,.84,.32,1); }
.proj-card:hover .proj-media img { transform: scale(1.07); }
.proj-cat {
  position: absolute; top: 14px; inset-inline-start: 14px;
  background: rgba(11,31,48,.78); color: var(--gold-light); backdrop-filter: blur(6px);
  font-size: 12.5px; font-weight: 800; padding: 6px 14px; border-radius: 50px;
}
.proj-body { padding: 24px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.proj-body h3 { font-size: 18px; line-height: 1.5; margin-bottom: 8px; }
.proj-body .client { color: var(--purple); font-weight: 800; font-size: 13.5px; margin-bottom: 10px; }
.proj-body p { color: var(--text-soft); font-size: 14.5px; flex: 1; }
.proj-value {
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 13.5px; color: var(--text-soft); font-weight: 700;
}
.proj-value strong { color: var(--gold-dark); font-size: 15.5px; direction: ltr; unicode-bidi: embed; }

/* ------------------------------------------------------------
   Values & why us
   ------------------------------------------------------------ */
.value-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; text-align: center;
  transition: transform .4s, box-shadow .4s, border-color .4s;
}
.value-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-sm); border-color: rgba(185,151,76,.5); }
.value-card .v-icon {
  width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(185,151,76,.16), rgba(107,31,124,.12));
  display: grid; place-items: center;
}
.value-card .v-icon svg { width: 28px; height: 28px; fill: var(--purple); }
.value-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.value-card p { color: var(--text-soft); font-size: 14px; }

.why-list { display: grid; gap: 18px; counter-reset: why; }
.why-item {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 22px 24px;
  transition: transform .35s, box-shadow .35s, border-color .35s;
}
.why-item:hover { transform: translateX(-6px); box-shadow: var(--shadow-sm); border-color: rgba(185,151,76,.45); }
[dir="ltr"] .why-item:hover { transform: translateX(6px); }
.why-item::before {
  counter-increment: why; content: "0" counter(why);
  font-family: var(--ff-en);
  font-size: 26px; font-weight: 800; line-height: 1;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  flex: none; margin-top: 4px; min-width: 44px;
}
.why-item h3 { font-size: 17px; margin-bottom: 6px; }
.why-item p { color: var(--text-soft); font-size: 14.5px; }

/* ------------------------------------------------------------
   Partners marquee
   ------------------------------------------------------------ */
.partners { background: var(--surface); border-block: 1px solid var(--line); padding-block: clamp(44px, 6vw, 70px); }
.marquee { overflow: hidden; position: relative; --gap: clamp(40px, 6vw, 90px); }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 110px; z-index: 2; pointer-events: none;
}
.marquee::before { inset-inline-start: 0; background: linear-gradient(var(--mq-dir, 90deg), var(--surface), transparent); }
.marquee::after { inset-inline-end: 0; background: linear-gradient(calc(var(--mq-dir, 90deg) * -1), var(--surface), transparent); }
[dir="rtl"] .marquee::before { background: linear-gradient(-90deg, var(--surface), transparent); }
[dir="rtl"] .marquee::after { background: linear-gradient(90deg, var(--surface), transparent); }
.marquee-track {
  display: flex; gap: var(--gap); width: max-content;
  animation: scroll 32s linear infinite;
  align-items: center;
}
[dir="rtl"] .marquee-track { animation-name: scrollRtl; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }
@keyframes scrollRtl { to { transform: translateX(calc(50% + var(--gap) / 2)); } }
.partner-chip {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  color: var(--navy); font-weight: 800; font-size: clamp(16px, 1.8vw, 20px);
  opacity: .75; transition: opacity .3s; padding-block: 6px;
}
.partner-chip:hover { opacity: 1; }
.partner-chip svg { width: 22px; height: 22px; fill: var(--gold); flex: none; }
.partner-chip.logo img { height: 52px; width: auto; display: block; }
.partner-chip.logo .lg-sm { height: 44px; }

/* ------------------------------------------------------------
   CTA band
   ------------------------------------------------------------ */
.cta-band { padding-block: 0; }
.cta-inner {
  background: linear-gradient(130deg, var(--purple-dark), var(--purple) 40%, #8a3b9c);
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(40px, 6vw, 70px);
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.cta-inner::before {
  content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: var(--gold); filter: blur(120px); opacity: .3; inset-inline-end: -80px; top: -110px;
}
.cta-inner h2 { color: #fff; font-size: clamp(24px, 3.2vw, 36px); margin-bottom: 10px; position: relative; }
.cta-inner p { color: #e3d3e9; position: relative; max-width: 52ch; }
.cta-inner .btn { position: relative; flex: none; }

/* ------------------------------------------------------------
   Contact
   ------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.info-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 22px 24px; margin-bottom: 16px;
  transition: transform .3s, box-shadow .3s;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.info-card .i-icon {
  width: 52px; height: 52px; flex: none; border-radius: 14px;
  background: var(--gold-grad); display: grid; place-items: center;
}
.info-card .i-icon svg { width: 24px; height: 24px; fill: #fff; }
.info-card h3 { font-size: 16px; margin-bottom: 4px; }
.info-card p, .info-card a { color: var(--text-soft); font-size: 15px; }
.info-card a:hover { color: var(--purple); }
.info-card .num { direction: ltr; unicode-bidi: embed; display: inline-block; }

.contact-form {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-sm);
}
.contact-form h3 { font-size: 22px; margin-bottom: 6px; }
.contact-form .sub { color: var(--text-soft); font-size: 15px; margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 800; font-size: 13.5px; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 13px 16px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--bg); transition: border-color .3s, box-shadow .3s; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 4px rgba(185,151,76,.14); background: #fff;
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 13px; color: var(--text-soft); margin-top: 14px; }

.map-wrap {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); margin-top: clamp(40px, 6vw, 70px);
}
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; filter: saturate(.85); }

/* ------------------------------------------------------------
   Certifications
   ------------------------------------------------------------ */
.cert-card {
  display: flex; gap: 18px; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 24px 26px;
}
.cert-card .c-icon {
  width: 56px; height: 56px; flex: none; border-radius: 50%;
  background: linear-gradient(135deg, rgba(27,74,107,.12), rgba(185,151,76,.16));
  display: grid; place-items: center;
}
.cert-card .c-icon svg { width: 28px; height: 28px; fill: var(--navy); }
.cert-card h3 { font-size: 16.5px; margin-bottom: 4px; }
.cert-card p { font-size: 14px; color: var(--text-soft); }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
footer.site-footer { background: var(--ink); color: #9db0bf; position: relative; overflow: hidden; }
footer.site-footer::before {
  content: ""; position: absolute; inset-inline-start: -140px; bottom: -200px;
  width: 480px; height: 480px; border-radius: 50%;
  background: var(--purple); filter: blur(160px); opacity: .18;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: clamp(30px, 5vw, 60px);
  padding-block: clamp(50px, 7vw, 80px) 40px; position: relative; z-index: 2;
}
.footer-brand img { height: 64px; margin-bottom: 18px; }
.footer-brand p { font-size: 14.5px; line-height: 1.9; max-width: 36ch; }
.f-social { display: flex; gap: 10px; margin-top: 22px; }
.f-social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.07); transition: background .3s, transform .3s;
}
.f-social a:hover { background: var(--gold); transform: translateY(-4px); }
.f-social svg { width: 18px; height: 18px; fill: #fff; }
.footer-grid h4 { color: #fff; font-size: 17px; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer-grid h4::after {
  content: ""; position: absolute; bottom: 0; inset-inline-start: 0;
  width: 34px; height: 2.5px; border-radius: 2px; background: var(--gold-grad);
}
.f-links li { margin-bottom: 11px; }
.f-links a { transition: color .25s, padding .25s; font-size: 14.5px; }
.f-links a:hover { color: var(--gold-light); padding-inline-start: 6px; }
.f-contact li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 14.5px; align-items: flex-start; }
.f-contact svg { width: 17px; height: 17px; fill: var(--gold); flex: none; margin-top: 5px; }
.f-contact .num { direction: ltr; unicode-bidi: embed; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: 20px; font-size: 13.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  position: relative; z-index: 2;
}
.footer-bottom .num { direction: ltr; unicode-bidi: embed; }

/* ------------------------------------------------------------
   Floating buttons
   ------------------------------------------------------------ */
.wa-float {
  position: fixed; bottom: 26px; inset-inline-start: 26px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 14px 34px -10px rgba(37,211,102,.65);
  transition: transform .3s;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25d366; animation: waPing 2s ease-out infinite;
}
@keyframes waPing { from { transform: scale(1); opacity: .8; } to { transform: scale(1.55); opacity: 0; } }

.to-top {
  position: fixed; bottom: 26px; inset-inline-end: 26px; z-index: 90;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--navy); display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: all .35s; box-shadow: var(--shadow-sm);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold-dark); }
.to-top svg { width: 20px; height: 20px; fill: #fff; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3)::before { display: none; }
}

@media (max-width: 860px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; max-width: 540px; }
  .hero-mark { opacity: .045; }

  .nav-toggle { display: block; }
  nav.main-nav {
    position: fixed; inset: 0; z-index: 120;
    background: rgba(11,31,48,.97); backdrop-filter: blur(10px);
    display: grid; place-items: center;
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  nav.main-nav.open { opacity: 1; visibility: visible; }
  nav.main-nav ul { flex-direction: column; gap: 26px; text-align: center; }
  nav.main-nav a { color: #fff; font-size: 21px; }
  nav.main-nav a.active { color: var(--gold-light); }
  .nav-actions .btn-gold { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 14px; }
  .form-row { grid-template-columns: 1fr; }
  .stat + .stat::before { display: none; }
  .brand .brand-text small { display: none; }
  .brand img { height: 46px; }
  .topbar .tb-group.hide-sm { display: none; }
  .exp-badge { padding: 14px 18px; }
  .exp-badge strong { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .cta-inner { text-align: center; justify-content: center; }
  .wa-float { width: 52px; height: 52px; bottom: 18px; inset-inline-start: 18px; }
  .to-top { bottom: 18px; inset-inline-end: 18px; }
}
