/* =========================================================
   Elite Management Services — main stylesheet
   ========================================================= */

:root {
  --navy-900: #071528;
  --navy-800: #0B1F3A;
  --navy-700: #12305A;
  --navy-600: #1E4C8F;
  --gold-500: #EFA73A;
  --gold-600: #D98F22;
  --gold-100: #FDF3E2;
  --ink: #16213A;
  --text: #2E3A4D;
  --muted: #4F5B6E;
  --line: #E3E8F0;
  --surface: #FFFFFF;
  --surface-2: #F4F6FA;

  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(11, 31, 58, .06);
  --shadow: 0 14px 40px rgba(11, 31, 58, .12);
  --container: 1200px;
  --gutter: 24px;
  --header-h: 78px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

html[lang="ar"] {
  --font-head: 'IBM Plex Sans Arabic', 'Montserrat', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
/* No CSS smooth scrolling: it made Safari visibly slide down when restoring a position on reload.
   In-page links scroll smoothly from main.js instead. */
html { scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--surface);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
svg.lucide {
  width: 20px; height: 20px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.wa-icon { width: 22px; height: 22px; flex-shrink: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--gold-500); color: var(--navy-900); padding: 10px 16px; border-radius: 6px; z-index: 200; font-weight: 600; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }

/* Arrows point the reading direction */
[dir="rtl"] .i-dir, [dir="rtl"] .hero-arrow svg { transform: scaleX(-1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 6px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; line-height: 1;
  transition: transform .25s var(--ease), background-color .25s, color .25s, box-shadow .25s, border-color .25s;
  white-space: nowrap;
}
.btn svg.lucide { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg.i-dir { transform: translateX(4px); }
[dir="rtl"] .btn:hover svg.i-dir { transform: scaleX(-1) translateX(4px); }
.btn-gold { background: var(--gold-500); color: var(--navy-900); box-shadow: 0 8px 22px rgba(239, 167, 58, .32); }
.btn-gold:hover { background: #F5B552; transform: translateY(-2px); }
.btn-outline-light { border-color: rgba(255,255,255,.85); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy-800); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn-sm { padding: 11px 18px; font-size: 14px; }
.btn-block { width: 100%; }

.link-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--navy-800);
}
.link-more svg.lucide { width: 16px; height: 16px; color: var(--gold-600); transition: transform .25s var(--ease); }
.link-more:hover svg.i-dir { transform: translateX(4px); }
[dir="rtl"] .link-more:hover svg.i-dir { transform: scaleX(-1) translateX(4px); }

.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-500); margin-bottom: 14px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 15px; }
.eyebrow-dark { color: var(--gold-600); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
/* Blur lives on a pseudo-element so the fixed mobile drawer is not trapped inside the header */
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.97); backdrop-filter: saturate(160%) blur(10px);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }

/* direction: ltr keeps the logo lockup (mark left of the wordmark) identical on the Arabic pages */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy-800); flex-shrink: 0; direction: ltr; }
/* --mark-cut is the colour of the shirt behind the tie: the background the logo sits on */
.brand-mark { width: 46px; height: 51px; --mark-cut: #fff; }
.brand-text { display: flex; flex-direction: column; font-family: 'Montserrat', sans-serif; line-height: 1; direction: ltr; }
.brand-text b { font-size: 30px; font-weight: 700; letter-spacing: .07em; }
.brand-text small { font-size: 8.1px; font-weight: 600; letter-spacing: .13em; margin-top: 5px; color: var(--navy-800); }
.brand-light { color: #fff; }
.brand-light .brand-mark { --mark-cut: var(--navy-900); }
.brand-light .brand-text small { color: rgba(255,255,255,.75); }

.main-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.main-nav a {
  position: relative; white-space: nowrap; padding: 10px 12px; font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--ink);
  transition: color .2s;
}
.main-nav a::after {
  content: ''; position: absolute; inset-inline: 12px; bottom: 2px; height: 2px; background: var(--gold-500);
  transform: scaleX(0); transition: transform .3s var(--ease);
}
.main-nav a:hover, .main-nav a.is-active { color: var(--navy-600); }
.main-nav a.is-active::after, .main-nav a:hover::after { transform: scaleX(1); }
.main-nav .nav-cta-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-cta { display: none; }
@media (min-width: 1440px) {
  :root { --container: 1320px; }
  .header-cta { display: inline-flex; }
}
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px; color: var(--navy-800); font-weight: 600; font-size: 14px;
  transition: border-color .2s, background .2s;
}
.lang-toggle:hover { border-color: var(--gold-500); background: var(--gold-100); }
.lang-toggle svg.lucide { width: 17px; height: 17px; color: var(--gold-600); }
.lang-label { font-family: 'IBM Plex Sans Arabic', sans-serif; }
html[lang="ar"] .lang-label { font-family: 'Inter', sans-serif; }

.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: var(--navy-800); border-radius: 8px; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.menu-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-backdrop { position: fixed; inset: 0; background: rgba(7, 21, 40, .5); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 90; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 640px; height: calc(100vh - var(--header-h)); max-height: 780px; color: #fff; overflow: hidden; background: #1B3A63; }
.hero h1, .hero .h1, .hero p, .hero .eyebrow { text-shadow: 0 2px 18px rgba(5, 20, 45, .45); }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide {
  display: flex; align-items: center; padding-bottom: 110px;
  opacity: 0; visibility: hidden; transition: opacity 1s var(--ease), visibility 1s;
}
.hero-slide::before {
  content: ''; position: absolute; inset: 0; background: var(--bg) center / cover no-repeat;
  transform: scale(1.08); transition: transform 7s linear;
}
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12,36,70,.78) 0%, rgba(12,36,70,.5) 42%, rgba(12,36,70,.08) 78%, rgba(12,36,70,0) 100%);
}
[dir="rtl"] .hero-slide::after {
  background: linear-gradient(270deg, rgba(12,36,70,.78) 0%, rgba(12,36,70,.5) 42%, rgba(12,36,70,.08) 78%, rgba(12,36,70,0) 100%);
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide.is-active::before { transform: scale(1); }
.hero-content { position: relative; z-index: 2; }
.hero-content > * { max-width: 620px; }
.hero h1, .hero .h1 { color: #fff; font-size: clamp(34px, 5.2vw, 60px); font-weight: 800; letter-spacing: -.01em; margin-bottom: 20px; }
html[lang="ar"] .hero h1, html[lang="ar"] .hero .h1 { line-height: 1.35; letter-spacing: 0; }
.hero p { font-size: clamp(17px, 1.6vw, 20px); color: #fff; max-width: 520px; margin-bottom: 32px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-slide .hero-content > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hero-slide.is-active .hero-content > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-content > :nth-child(2) { transition-delay: .12s; }
.hero-slide.is-active .hero-content > :nth-child(3) { transition-delay: .24s; }
.hero-slide.is-active .hero-content > :nth-child(4) { transition-delay: .36s; }

.hero-arrow {
  position: absolute; top: calc(50% - 55px); transform: translateY(-50%); z-index: 5;
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.55);
  background: rgba(7,21,40,.25); color: #fff; display: grid; place-items: center; transition: background .2s, border-color .2s;
}
.hero-arrow:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); }
.hero-arrow.prev { inset-inline-start: 22px; }
.hero-arrow.next { inset-inline-end: 22px; }
.hero-dots { position: absolute; z-index: 5; bottom: 128px; inset-inline-start: 0; inset-inline-end: 0; display: flex; justify-content: center; gap: 10px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; padding: 0; background: rgba(255,255,255,.45); transition: width .3s var(--ease), background .3s; }
.hero-dots button.is-active { width: 32px; background: var(--gold-500); }

.hero-trust { position: absolute; z-index: 4; inset-inline: 0; bottom: 0; background: rgba(255,255,255,.97); box-shadow: 0 -10px 30px rgba(11,31,58,.12); }
.trust-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 24px 20px; font-family: var(--font-head); font-weight: 600; font-size: 14.5px; line-height: 1.35; color: var(--ink); }
.trust-item + .trust-item { border-inline-start: 1px solid var(--line); }
.trust-item svg.lucide { width: 34px; height: 34px; color: var(--gold-600); stroke-width: 1.6; }
/* Riyada badge: official colours on a white chip so it stands out on the dark strip */
.trust-riyada { transition: background .2s; }
.trust-riyada:hover { background: #F2F8FB; }
.riyada-chip { display: inline-flex; flex-shrink: 0; padding: 6px 10px; background: #fff; border-radius: 10px; box-shadow: 0 0 0 2px rgba(63,192,211,.7); }
.riyada-chip img { display: block; width: auto; height: 34px; }

/* ---------- About ---------- */
/* ---------- Riyada accreditation ---------- */
.accreditation { padding: 56px 0 0; }
.accred-card {
  display: grid; grid-template-columns: 340px 1fr; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.accred-logo {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 36px 28px; text-align: center;
  background: linear-gradient(160deg, #F3FBFD, #E2F5F8); border-inline-end: 5px solid #3FC0D3;
}
.accred-logo img { width: 230px; height: auto; margin-bottom: 12px; }
.accred-authority { font-family: 'IBM Plex Sans Arabic', sans-serif; font-size: 15px; font-weight: 700; line-height: 1.4; color: #000080; }
.accred-authority-en { font-family: 'Montserrat', sans-serif; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; }
.accred-body { padding: 40px 44px; }
.accred-body .section-title { font-size: clamp(24px, 2.6vw, 32px); }
.accred-body p { margin-bottom: 0; }
.accred-facts { display: flex; flex-wrap: wrap; gap: 16px 30px; margin-top: 24px; }
.accred-facts li { display: flex; align-items: center; gap: 12px; }
.accred-facts svg.lucide { width: 42px; height: 42px; padding: 10px; border-radius: 10px; background: #E4F6F9; color: #168EA2; }
.accred-facts b { display: block; font-family: var(--font-head); font-size: 15px; color: var(--ink); }
.accred-facts small { display: block; font-size: 13.5px; color: var(--muted); }

.about { padding: 64px 0 8px; }
.about-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.about-text p { font-size: 17px; }
.about-text p:last-child { margin-bottom: 0; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-tight { padding-top: 24px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-title { font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.section-title.with-line { display: inline-flex; align-items: center; gap: 18px; }
.section-title.with-line::after { content: ''; width: 56px; height: 3px; border-radius: 3px; background: var(--gold-500); flex-shrink: 0; }
.section-sub { margin: 0; color: var(--muted); max-width: 620px; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-media { aspect-ratio: 16 / 11; overflow: hidden; background: var(--surface-2); }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.07); }
.service-icon {
  position: relative; z-index: 2; align-self: center; margin-top: -32px;
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-800); color: #fff; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--gold-500), var(--shadow-sm);
  transition: background .3s;
}
.service-icon svg.lucide { width: 26px; height: 26px; }
.service-card:hover .service-icon { background: var(--gold-500); color: var(--navy-900); }
.service-body { padding: 16px 22px 24px; text-align: center; display: flex; flex-direction: column; flex: 1; }
.service-body h3 { font-size: 18px; font-weight: 700; }
.service-body p { font-size: 15.5px; color: var(--muted); flex: 1; }
.service-body .link-more { align-self: center; }

/* ---------- Process ---------- */
.process { background: var(--surface-2); }
.section-head-center { justify-content: center; text-align: center; }
.section-head-center .section-sub { margin-inline: auto; }
.process-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.process-steps::before { content: ''; position: absolute; top: 60px; inset-inline: 12%; border-top: 2px dashed #CFD7E4; }
.step {
  position: relative; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px 26px; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step-num { position: absolute; top: 12px; inset-inline-end: 18px; font-family: 'Montserrat', sans-serif; font-size: 34px; font-weight: 800; line-height: 1; color: rgba(239, 167, 58, .32); }
.step-icon {
  position: relative; z-index: 1; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy-800); color: var(--gold-500);
  box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--line);
}
.step-icon svg.lucide { width: 28px; height: 28px; stroke-width: 1.8; }
.step h3 { font-size: 17px; font-weight: 700; }
.step p { margin: 0; font-size: 15.5px; color: var(--muted); }
.process-steps .reveal:nth-child(2) { transition-delay: .1s; }
.process-steps .reveal:nth-child(3) { transition-delay: .2s; }
.process-steps .reveal:nth-child(4) { transition-delay: .3s; }

/* ---------- Partner ---------- */
.partner { background: var(--surface-2); overflow: hidden; }
.partner-grid { display: grid; grid-template-columns: 1.15fr 1fr .85fr; min-height: 440px; }
.partner-intro {
  position: relative; z-index: 2; background: #EAF1F9; color: var(--text);
  padding: 64px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  padding-inline-end: 72px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 64px) 100%, 0 100%);
}
[dir="rtl"] .partner-intro { clip-path: polygon(0 0, 100% 0, 100% 100%, 64px 100%); }
.partner-intro::after {
  content: ''; position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: 6px; background: var(--gold-500);
  transform: skewX(-8.3deg); transform-origin: top;
}
[dir="rtl"] .partner-intro::after { display: none; }
.partner-intro .eyebrow { color: var(--gold-600); }
.partner-intro h2 { color: var(--ink); font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; }
.partner-intro p { font-size: 15.5px; margin-bottom: 28px; max-width: 460px; }
.partner-logo-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 36px; padding: 48px 32px; background: #fff; margin-inline-start: -64px; padding-inline-start: 96px; }

.gms-logo { display: inline-flex; align-items: center; gap: 14px; color: var(--navy-800); direction: ltr; }
.gms-mark { width: 104px; height: 62px; }
.gms-text { display: flex; flex-direction: column; font-family: 'Montserrat', sans-serif; line-height: 1; }
.gms-text b { font-size: 54px; font-weight: 800; letter-spacing: .04em; color: var(--navy-600); -webkit-text-stroke: 1px var(--navy-800); }
.gms-text small { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: var(--navy-800); margin-top: 6px; }
.gms-logo-sm .gms-mark { width: 58px; height: 35px; }
.gms-logo-sm .gms-text b { font-size: 28px; -webkit-text-stroke: 0; }
.gms-logo-sm .gms-text small { font-size: 7px; }
.gms-logo-light .gms-text b, .gms-logo-light .gms-text small { color: #fff; }

.partner-services { display: grid; grid-template-columns: repeat(2, 1fr); width: 100%; max-width: 420px; }
.partner-services li { display: flex; align-items: center; gap: 12px; padding: 16px 14px; font-family: var(--font-head); font-weight: 600; font-size: 14px; line-height: 1.3; color: var(--ink); }
.partner-services li:nth-child(odd) { border-inline-end: 1px solid var(--line); }
.partner-services li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.partner-services svg.lucide { width: 30px; height: 30px; color: var(--navy-600); stroke-width: 1.6; }
.partner-media { position: relative; }
.partner-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.partner-media::before { content: ''; position: absolute; z-index: 1; top: 0; bottom: 0; inset-inline-start: -2px; width: 14px; background: var(--gold-500); }

/* ---------- Industries ---------- */
.industries { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.industries li { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--ink); line-height: 1.3; padding: 8px; }
.ind-icon {
  width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; color: var(--navy-800);
  background: #fff; border: 1.5px solid var(--line); box-shadow: inset 0 0 0 6px var(--surface-2);
  transition: background .3s, color .3s, transform .3s var(--ease), border-color .3s;
}
.ind-icon svg.lucide { width: 36px; height: 36px; stroke-width: 1.6; }
.industries li:hover .ind-icon { background: var(--navy-800); color: var(--gold-500); border-color: var(--navy-800); box-shadow: inset 0 0 0 6px var(--navy-700); transform: translateY(-4px); }

/* ---------- Clients ---------- */
/* Static grid: every client is visible at once (no carousel). The last row is centred. */
.clients-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.client-logo {
  flex: 0 0 calc((100% - 5 * 16px) / 6); height: 96px;
  display: grid; place-items: center; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.client-logo img { width: auto; height: auto; max-width: 100%; max-height: 54px; object-fit: contain; transition: transform .3s var(--ease); }
.client-logo:hover { box-shadow: var(--shadow-sm); border-color: transparent; }
.client-logo:hover img { transform: scale(1.06); }
/* Staggered fade-in; hover effects keep no delay */
.clients-grid .client-logo.reveal {
  transition: opacity .7s var(--ease), transform .7s var(--ease), box-shadow .3s, border-color .3s;
  transition-delay: calc(var(--i) * 45ms), calc(var(--i) * 45ms), 0s, 0s;
}

/* ---------- Projects ---------- */
.projects { background: var(--surface-2); }
.projects-grid { display: grid; grid-template-columns: 1fr 1.15fr .9fr; align-items: stretch; }
.projects-media { position: relative; min-height: 380px; }
.projects-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.projects-content { padding: 64px 48px; align-self: center; }
.projects-content p { margin-bottom: 28px; }
.stats { align-self: center; margin-inline-end: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 28px; }
.stats-caption {
  grid-column: 1 / -1; margin: 8px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--line);
  font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-600);
}
html[lang="ar"] .stats-caption { letter-spacing: 0; font-size: 13.5px; }
.stat { display: flex; align-items: center; gap: 18px; padding: 20px 0; }
.stat + .stat { border-top: 1px solid var(--line); }
.stat-icon { width: 54px; height: 54px; border-radius: 12px; background: var(--gold-100); color: var(--gold-600); display: grid; place-items: center; flex-shrink: 0; }
.stat-icon svg.lucide { width: 26px; height: 26px; }
.stat strong { display: block; font-family: 'Montserrat', sans-serif; font-size: 32px; font-weight: 800; color: var(--navy-800); line-height: 1.1; }
.stat div > span { font-size: 15px; color: var(--muted); }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.news-card:hover .news-media img { transform: scale(1.06); }
.news-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.news-tag {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-bottom: 12px;
  padding: 5px 11px; border-radius: 99px; background: var(--gold-100); color: var(--gold-600);
  font-family: var(--font-head); font-size: 12.5px; font-weight: 700;
}
.news-tag svg.lucide { width: 14px; height: 14px; }
.news-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.news-body p { flex: 1; font-size: 15.5px; color: var(--muted); }

/* ---------- Careers ---------- */
.careers { padding: 0 0 84px; }
.careers-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: linear-gradient(120deg, var(--gold-100), #fff 70%); border: 1px solid #F6DFB8; border-radius: var(--radius);
  padding: 36px 44px;
}
.careers h2 { font-size: 24px; font-weight: 800; }
.careers p { margin: 0; color: var(--muted); max-width: 640px; }

/* ---------- Contact CTA ---------- */
.contact-cta { position: relative; padding: 96px 0; color: var(--ink); isolation: isolate; overflow: hidden; background: linear-gradient(135deg, #EAF1F9 0%, #F6F9FC 55%, #FCF5E8 100%); }
.contact-cta::before { content: ''; position: absolute; z-index: -1; inset-inline-end: -140px; top: -160px; width: 460px; height: 460px; border-radius: 50%; border: 60px solid rgba(239,167,58,.10); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.contact-intro h2 { color: var(--ink); font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; }
.contact-intro p { color: var(--text); font-size: 17px; max-width: 480px; margin-bottom: 28px; }
.contact-quick { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.contact-quick li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.contact-quick svg.lucide { color: var(--gold-600); }
.contact-quick a:hover { color: var(--navy-600); }

.contact-form { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: 0 24px 60px rgba(11,31,58,.12); border: 1px solid var(--line); display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--surface-2);
  border: 1.5px solid transparent; border-radius: var(--radius-sm); padding: 13px 16px; transition: border-color .2s, background .2s;
}
.contact-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
[dir="rtl"] .contact-form select { background-position: 20px 55%, 25px 55%; }
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold-500); background: #fff; }
.contact-form .is-invalid { border-color: #E04848; background: #FFF6F6; }
.form-note { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.form-note a { color: var(--navy-600); font-weight: 600; white-space: nowrap; }
.form-status { margin: 0; font-size: 14px; color: #1E7D45; min-height: 1em; }
.form-status:empty { display: none; }
.form-status.is-error { color: #C23030; }

/* ---------- Map ---------- */
.map { position: relative; height: 400px; background: var(--surface-2); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.3) contrast(1.05); }
.map-card-wrap { position: relative; height: 100%; display: flex; align-items: center; pointer-events: none; }
.map-card {
  pointer-events: auto; max-width: 340px; padding: 28px; background: #fff; border-radius: var(--radius);
  border-top: 4px solid var(--gold-500); box-shadow: var(--shadow);
}
.map-card h2 { font-size: 21px; font-weight: 800; }
.map-card p { font-size: 14.5px; }

/* ---------- Inner page hero + prose ---------- */
.page-hero { position: relative; overflow: hidden; padding: 76px 0 60px; color: var(--ink); background: linear-gradient(120deg, #E6EEF8, #F6F9FC); border-bottom: 1px solid var(--line); }
.page-hero::after { content: ''; position: absolute; inset-inline-end: -80px; top: -80px; width: 320px; height: 320px; border: 40px solid rgba(239, 167, 58, .12); border-radius: 50%; }
.page-hero .eyebrow { color: var(--gold-600); }
.page-hero h1 { color: var(--ink); font-size: clamp(32px, 4vw, 46px); font-weight: 800; }
.page-hero p { margin: 0; color: var(--muted); }
.prose { max-width: 820px; }
.prose h2 { font-size: 21px; font-weight: 700; margin-top: 36px; }
.prose p { font-size: 17px; }
.prose a { color: var(--navy-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: #F1F5FA; color: var(--text); font-size: 15.5px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .9fr 1.3fr .9fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.footer-brand p { margin: 20px 0 22px; max-width: 320px; }
.footer-partner { display: flex; flex-direction: column; gap: 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
html[lang="ar"] .footer-partner { letter-spacing: 0; font-size: 13px; }
.footer-partner + .footer-partner { margin-top: 20px; }
.footer-riyada img { display: block; width: auto; height: 46px; }
.footer-cr { margin-inline-start: 10px; white-space: nowrap; color: var(--muted); }
.footer-title { color: var(--ink); font-size: 16px; font-weight: 700; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer-title::after { content: ''; position: absolute; bottom: 0; inset-inline-start: 0; width: 32px; height: 2px; background: var(--gold-500); }
.footer-links li + li { margin-top: 10px; }
.footer-links a { transition: color .2s, padding .2s; }
.footer-links a:hover { color: var(--gold-600); padding-inline-start: 4px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact li + li { margin-top: 14px; }
.footer-contact svg.lucide { color: var(--gold-600); width: 18px; height: 18px; margin-top: 3px; }
.footer-contact a:hover { color: var(--navy-600); }
.socials { display: flex; gap: 10px; margin-bottom: 24px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #CFD8E6; background: #fff; color: var(--navy-800); transition: background .2s, color .2s, border-color .2s; }
.socials a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); }
.vcard { display: flex; align-items: center; gap: 14px; font-size: 13px; line-height: 1.4; }
.qr { width: 96px; height: 96px; padding: 6px; background: #fff; border-radius: 8px; flex-shrink: 0; }
.qr img, .qr canvas { width: 100% !important; height: 100% !important; }
.footer-bottom { border-top: 1px solid var(--line); background: #E9EFF6; color: var(--muted); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 20px; padding-bottom: 20px; font-size: 13.5px; }
.footer-bottom p { margin: 0; }
.legal { display: flex; gap: 12px; }
.legal a:hover { color: var(--gold-500); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; z-index: 80; bottom: 22px; inset-inline-end: 22px; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37, 211, 102, .45);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: pulse 2.4s infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.services-grid .reveal:nth-child(2), .news-grid .reveal:nth-child(2), .industries .reveal:nth-child(2) { transition-delay: .08s; }
.services-grid .reveal:nth-child(3), .news-grid .reveal:nth-child(3), .industries .reveal:nth-child(3) { transition-delay: .16s; }
.services-grid .reveal:nth-child(4), .industries .reveal:nth-child(4) { transition-delay: .24s; }
.industries .reveal:nth-child(5) { transition-delay: .32s; }
.industries .reveal:nth-child(6) { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1300px) {
  .hero-arrow { display: none; }
}

@media (max-width: 1180px) {
  .main-nav a { padding: 10px 9px; font-size: 14px; }
  .partner-grid { grid-template-columns: 1.1fr 1fr; }
  .partner-media { display: none; }
  .projects-grid { grid-template-columns: .9fr 1.1fr; }
  .stats { grid-column: 1 / -1; margin: 0 var(--gutter) 56px; display: grid; grid-template-columns: repeat(3, 1fr); padding: 8px 24px; }
  .stat + .stat { border-top: 0; border-inline-start: 1px solid var(--line); padding-inline-start: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  :root { --header-h: 70px; }
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed; z-index: 95; top: 0; bottom: 0; inset-inline-end: 0; width: min(340px, 86vw);
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: calc(var(--header-h) + 16px) 24px 32px; background: #fff; box-shadow: var(--shadow);
    transform: translateX(100%); transition: transform .4s var(--ease); overflow-y: auto;
  }
  [dir="rtl"] .main-nav { transform: translateX(-100%); }
  .menu-open .main-nav { transform: none; }
  .menu-open .nav-backdrop { opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 15px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .main-nav a.is-active { color: var(--gold-600); }
  .main-nav .nav-cta-mobile { display: inline-flex; margin-top: 24px; border-bottom: 0; color: var(--navy-900); }
  .header-actions { margin-inline-start: auto; position: relative; z-index: 96; }

  .trust-item { padding: 18px 12px; gap: 10px; font-size: 13px; }
  .trust-item svg.lucide { width: 28px; height: 28px; }
  .riyada-chip img { height: 28px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .industries { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .clients-grid { gap: 12px; }
  .client-logo { flex-basis: calc((100% - 5 * 12px) / 6); height: 80px; padding: 10px; }
  .client-logo img { max-height: 44px; }
  .about-grid { grid-template-columns: 1fr; gap: 12px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 820px) {
  .partner-grid { grid-template-columns: 1fr; }
  .accred-card { grid-template-columns: 1fr; }
  .accred-logo { border-inline-end: 0; border-bottom: 5px solid #3FC0D3; padding: 28px 20px; }
  .partner-intro { clip-path: none; padding: 56px var(--gutter); }
  [dir="rtl"] .partner-intro { clip-path: none; }
  .partner-intro::after { display: none; }
  .partner-logo-panel { margin: 0; padding: 48px var(--gutter); border-top: 6px solid var(--gold-500); }
  .projects-grid { grid-template-columns: 1fr; }
  .projects-media { min-height: 260px; }
  .projects-content { padding: 48px var(--gutter) 32px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-grid .news-card:last-child { display: none; }
  .careers-inner { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
}

/* Tablet: the four trust items get two rows of two instead of four cramped columns */
@media (min-width: 641px) and (max-width: 1024px) {
  .trust-row { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-inline-start: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero-slide { padding-bottom: 190px; }
  .hero-dots { bottom: 150px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 64px; }
  body { font-size: 16px; }
  .brand-mark { width: 39px; height: 43px; }
  .brand-text b { font-size: 25px; }
  .brand-text small { font-size: 6.75px; }
  .lang-toggle { padding: 7px 10px; }
  .lang-toggle svg.lucide { display: none; }

  .hero-slide::before { background-image: var(--bg-sm, var(--bg)); }
  .process-steps { grid-template-columns: 1fr; gap: 16px; }
  .step { padding: 24px 20px; }
  .map { height: auto; }
  .map iframe { position: relative; display: block; height: 280px; }
  .map-card-wrap { height: auto; }
  .map-card { position: relative; max-width: none; margin: -48px 0 40px; }
  .page-hero { padding: 52px 0 40px; }
  .hero { height: auto; min-height: 0; max-height: none; }
  .hero-slides { position: relative; height: 560px; }
  .hero-slide { padding-bottom: 40px; align-items: flex-end; }
  .hero-slide::after, [dir="rtl"] .hero-slide::after { background: linear-gradient(0deg, rgba(12,36,70,.85) 0%, rgba(12,36,70,.5) 55%, rgba(12,36,70,.08) 100%); }
  .hero-buttons .btn { flex: 1 1 auto; }
  .hero-arrow { display: none; }
  .hero-dots { bottom: auto; top: 20px; justify-content: flex-start; padding-inline: var(--gutter); }
  .hero-trust { position: relative; background: #fff; box-shadow: none; border-bottom: 1px solid var(--line); }
  .trust-row { grid-template-columns: 1fr; padding-block: 8px; }
  .riyada-chip img { height: 30px; }
  .accreditation { padding-top: 36px; }
  .accred-body { padding: 28px 22px; }
  .accred-logo img { width: 190px; }
  .accred-facts { gap: 14px 22px; }
  .trust-item { padding: 14px 0; }
  .trust-item br { display: none; }
  .trust-item + .trust-item { border-inline-start: 0; border-top: 1px solid var(--line); }
  .trust-item svg.lucide { width: 28px; height: 28px; }

  .about { padding-top: 48px; }
  .about-grid { padding-bottom: 40px; }
  .section { padding: 56px 0; }
  .section-tight { padding-top: 8px; }
  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 28px; gap: 12px; }
  .section-title.with-line::after { width: 36px; }

  .services-grid { grid-template-columns: 1fr; gap: 20px; }
  .service-media { aspect-ratio: 16 / 9; }

  .partner-services li { flex-direction: column; text-align: center; gap: 8px; padding: 14px 8px; font-size: 13px; }
  .gms-mark { width: 80px; height: 48px; }
  .gms-text b { font-size: 42px; }
  .gms-text small { font-size: 8.4px; }

  .industries { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .ind-icon { width: 78px; height: 78px; }
  .industries li { font-size: 14px; }

  .clients-grid { gap: 10px; }
  .client-logo { flex-basis: calc((100% - 2 * 10px) / 3); height: 72px; padding: 8px 10px; }
  .client-logo img { max-height: 40px; }

  .stats { grid-template-columns: 1fr; margin: 0 var(--gutter) 48px; }
  .stat + .stat { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--line); }

  .news-grid { grid-template-columns: 1fr; }
  .news-grid .news-card:last-child { display: flex; }
  .careers { padding-bottom: 56px; }

  .contact-cta { padding: 64px 0; }
  .contact-form { padding: 22px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; padding-bottom: 90px; }
  .wa-float { width: 52px; height: 52px; bottom: 16px; inset-inline-end: 16px; }
}
