/* SIG — Salah Ibrahim Algain Contracting Co.
   Dark corporate. Brand navy ground, blue/cyan signal accents. */

:root {
  --navy-900: #061634;
  --navy-850: #081C44;
  --navy-800: #0B2154;
  --navy-700: #123068;
  --navy-600: #1B4088;

  --white: #FFFFFF;
  --text:  #C3CBDB;
  --muted: #8C9AB6;
  --line:  rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .18);

  --blue: #1E7FFC;
  --cyan: #22C7EE;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 52px);
  /* One vertical rhythm for every content section, so bands line up down the
     page instead of each picking its own height. */
  --sec-y: clamp(74px, 9vw, 122px);
  --head-gap: clamp(40px, 4.4vw, 58px);
  --sans: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --arabic: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  background: var(--navy-900);
}

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[lang="ar"] body { font-family: var(--arabic); line-height: 1.9; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  color: var(--white);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0;
}
html[lang="ar"] :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.45; }
p { margin: 0; }

html[lang="en"] .ar { display: none !important; }
html[lang="ar"] .en { display: none !important; }

.skip {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 300;
  background: var(--blue); color: #fff; padding: 12px 20px;
}
.skip:focus { inset-inline-start: 0; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ============ header ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 22, 52, .82);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 26px; min-height: var(--header-h); }

.brand { flex: 0 0 auto; display: block; }
.brand img { height: 46px; width: auto; max-width: min(210px, 46vw); object-fit: contain; }

.nav { display: flex; align-items: center; gap: 30px; margin-inline-start: auto; }
.nav a {
  position: relative; color: var(--text); font-size: 14.5px;
  text-decoration: none; padding: 8px 0; white-space: nowrap;
  transition: color .18s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; bottom: 0; inset-inline-start: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0); transform-origin: var(--o, left);
  transition: transform .28s var(--ease);
}
html[dir="rtl"] .nav a::after { --o: right; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang {
  appearance: none; background: none; border: 1px solid var(--line-2);
  border-radius: 2px; color: var(--text);
  font-family: inherit; font-size: 13px; padding: 8px 14px; cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.lang:hover { border-color: var(--cyan); color: var(--white); }

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 15px; font-weight: 500; font-family: inherit;
  padding: 15px 30px; border-radius: 2px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), transform .2s var(--ease);
}
.btn-sm { font-size: 13.5px; padding: 9px 17px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #3D93FF; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-2); color: var(--white); }
.btn-ghost:hover { border-color: var(--cyan); background: rgba(34, 199, 238, .08); transform: translateY(-1px); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
html[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(3px); }

/* ============ mobile nav ============ */
.menu-btn {
  display: none; margin-inline-start: auto;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 1px solid var(--line-2); border-radius: 2px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--white); transition: transform .25s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-nav { display: none; }
.mobile-nav.open {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
  background: var(--navy-900);
  padding: 6px var(--gutter) 22px;
}
.mobile-nav a {
  padding: 15px 0; text-decoration: none; color: var(--white);
  font-size: 16px; border-bottom: 1px solid var(--line);
}
.mobile-nav a[aria-current="page"] { color: var(--cyan); }
.mobile-nav .lang { margin-top: 18px; align-self: flex-start; }

/* ============ hero ============ */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex; align-items: center;
  padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 8vw, 90px);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--navy-900) 2%, rgba(6, 22, 52, .72) 45%, rgba(6, 22, 52, .58) 100%),
    linear-gradient(to right, rgba(6, 22, 52, .92), rgba(6, 22, 52, .35) 62%, rgba(6, 22, 52, .55));
}
html[dir="rtl"] .hero-media::after {
  background:
    linear-gradient(to top, var(--navy-900) 2%, rgba(6, 22, 52, .72) 45%, rgba(6, 22, 52, .58) 100%),
    linear-gradient(to left, rgba(6, 22, 52, .92), rgba(6, 22, 52, .35) 62%, rgba(6, 22, 52, .55));
}
.hero .wrap { position: relative; z-index: 1; }
.hero-inner { max-width: 780px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 26px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 14px; }

.hero h1 {
  font-size: clamp(2.35rem, 5.6vw, 4rem);
  font-weight: 300; letter-spacing: -0.032em; line-height: 1.08;
  margin-bottom: 26px;
}
html[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.35; font-weight: 400; }
.hero h1 em {
  font-style: normal; font-weight: 500;
  background: linear-gradient(96deg, var(--blue), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.lede { font-size: clamp(1.0625rem, 1.7vw, 1.1875rem); color: var(--text); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ============ page header (inner pages) ============ */
.page-head {
  position: relative;
  padding: clamp(60px, 9vw, 110px) 0 clamp(52px, 7vw, 86px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-head .hero-media::after {
  background: linear-gradient(to top, var(--navy-900), rgba(6, 22, 52, .80) 60%, rgba(6, 22, 52, .70));
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 300; letter-spacing: -0.03em;
}
html[lang="ar"] .page-head h1 { letter-spacing: 0; font-weight: 500; }
.page-head .lede { margin-top: 20px; }

.crumb { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--cyan); }
.crumb span { padding-inline: 8px; opacity: .5; }

/* ============ sections ============ */
.section { padding: var(--sec-y) 0; }
.section-alt { background: var(--navy-850); border-block: 1px solid var(--line); }

.section-head { max-width: 760px; margin-bottom: var(--head-gap); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 300; letter-spacing: -0.028em;
}
html[lang="ar"] .section-head h2 { letter-spacing: 0; font-weight: 500; }
.section-head p { margin-top: 18px; font-size: 1.0625rem; color: var(--text); }
.section-head em { font-style: normal; color: var(--white); }

/* ============ stats ============ */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin: 0; padding: 0;
  background: var(--line); border: 1px solid var(--line);
}
.stats > div { background: var(--navy-850); padding: 32px 28px; }
.stats dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
html[lang="ar"] .stats dt { letter-spacing: 0; text-transform: none; font-size: 13.5px; }
.stats dd {
  margin: 0; font-size: clamp(1.75rem, 3.4vw, 2.35rem);
  font-weight: 300; color: var(--white); letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; direction: ltr; text-align: start;
}
.stats .plus { color: var(--cyan); }

/* ============ split (image + text) ============ */
.split {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 68px); align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border: 1px solid var(--line);
}
.split-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(30, 127, 252, .16), transparent 55%);
  pointer-events: none;
}
.split-body h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 300; letter-spacing: -0.026em; }
html[lang="ar"] .split-body h2 { letter-spacing: 0; font-weight: 500; }
.split-body p + p { margin-top: 16px; }
.split-body .lede { margin-top: 20px; }
.split-body .btn { margin-top: 30px; }

/* ============ cards ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}
.card {
  display: flex; flex-direction: column;
  background: var(--navy-850);
  border: 1px solid var(--line);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card-media { position: relative; overflow: hidden; }
.card-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .5s var(--ease);
}
.card:hover .card-media img { transform: scale(1.04); }
.card-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8, 28, 68, .92), rgba(8, 28, 68, .30) 55%, rgba(8, 28, 68, .10));
}
.card-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.125rem; font-weight: 500; margin-bottom: 14px; }
.card p { font-size: 15px; }
.card ul { list-style: none; margin: 4px 0 0; padding: 0; }
.card li { position: relative; padding: 8px 0 8px 20px; font-size: 14.75px; }
html[dir="rtl"] .card li { padding: 8px 20px 8px 0; }
.card li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 17px;
  width: 6px; height: 6px; background: var(--cyan);
}
.card .more {
  margin-top: auto; padding-top: 20px;
  font-size: 13.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cyan); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
html[lang="ar"] .card .more { letter-spacing: 0; text-transform: none; font-size: 14.5px; }
.card .more:hover { color: var(--white); }

.badge {
  position: absolute; z-index: 1; top: 16px; inset-inline-start: 16px;
  background: rgba(6, 22, 52, .82); border: 1px solid var(--line-2);
  color: var(--cyan);
  font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 2px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
html[lang="ar"] .badge { letter-spacing: 0; text-transform: none; font-size: 13px; }

.meta { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 7px; }
.meta li { display: flex; gap: 10px; font-size: 14px; color: var(--muted); }
.meta b { color: var(--text); font-weight: 400; }
.meta .k { min-width: 82px; color: var(--muted); }

/* ============ scope list (services page) ============ */
.scope-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.scope-list li { background: var(--navy-850); padding: 16px 22px; font-size: 15px; display: flex; align-items: center; gap: 14px; }
.scope-list li::before { content: ""; width: 7px; height: 7px; background: var(--cyan); flex: 0 0 auto; }

/* ============ timeline ============ */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr);
  gap: 8px 30px; padding: 24px 0; border-bottom: 1px solid var(--line);
}
.timeline li:first-child { border-top: 1px solid var(--line); }
.timeline .year { color: var(--cyan); font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; }

/* ============ numbered values ============ */
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.values li { background: var(--navy-850); padding: 30px 28px; }
.values .vnum { display: block; font-size: 12px; letter-spacing: .18em; color: var(--cyan); margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.values h3 { font-size: 1rem; font-weight: 500; margin-bottom: 10px; }
.values p { font-size: 14.5px; }

/* ============ partner grid ============ */
.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.partner { background: var(--navy-850); padding: 34px 28px; transition: background-color .25s var(--ease); }
.partner:hover { background: var(--navy-800); }
.partner .pname { font-size: 1.375rem; font-weight: 500; color: var(--white); letter-spacing: .01em; margin-bottom: 6px; }
.partner .prole { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
html[lang="ar"] .partner .prole { letter-spacing: 0; text-transform: none; font-size: 13.5px; }
.partner p { font-size: 14.5px; }

/* ============ full-bleed band ============ */
.band { position: relative; overflow: hidden; padding: var(--sec-y) 0; border-block: 1px solid var(--line); }
.band .hero-media::after { background: linear-gradient(to right, rgba(6, 22, 52, .94), rgba(6, 22, 52, .74)); }
html[dir="rtl"] .band .hero-media::after { background: linear-gradient(to left, rgba(6, 22, 52, .94), rgba(6, 22, 52, .74)); }
.band .wrap { position: relative; z-index: 1; }
.band h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 300; letter-spacing: -0.028em; max-width: 20ch; }
html[lang="ar"] .band h2 { letter-spacing: 0; font-weight: 500; }
.band .lede { margin-top: 22px; }

/* ============ CTA ============ */
.cta { text-align: center; }
.cta h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 300; letter-spacing: -0.03em; margin-inline: auto; max-width: 22ch; }
html[lang="ar"] .cta h2 { letter-spacing: 0; font-weight: 500; }
.cta .lede { margin: 20px auto 0; }
.cta .hero-actions { justify-content: center; }

/* ============ contact ============ */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 66px); align-items: start; }
.contact-list { margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.contact-list > div { background: var(--navy-850); padding: 24px 26px; }
.contact-list dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
html[lang="ar"] .contact-list dt { letter-spacing: 0; text-transform: none; font-size: 13.5px; }
.contact-list dd { margin: 0; color: var(--white); font-size: 15.5px; }
.contact-list a { color: var(--white); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.contact-list a:hover { border-color: var(--cyan); color: var(--cyan); }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .field label { letter-spacing: 0; text-transform: none; font-size: 14px; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 15px; color: var(--white);
  background: var(--navy-850); border: 1px solid var(--line-2); border-radius: 2px;
  padding: 14px 16px; width: 100%;
  transition: border-color .18s var(--ease);
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); outline: none; }
.field select option { background: var(--navy-800); color: var(--white); }
.form-note { font-size: 13.5px; color: var(--muted); }

/* ============ footer ============ */
.site-footer { background: var(--navy-850); border-top: 1px solid var(--line); }

/* 12-column proportions: brand 4, links 2, services 3, contact 3. */
.footer-top { padding: clamp(56px, 6.5vw, 84px) 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 4fr 2fr 3fr 3fr;
  gap: clamp(30px, 3.4vw, 44px);
  align-items: start;
}

.footer-brand img { height: 46px; width: auto; margin-bottom: 22px; }
.footer-brand p { font-size: 14.5px; max-width: 36ch; }

/* Every column head shares one size and one gap, so the four lists start on
   the same line however long the headings are. */
.footer-col h4 {
  font-size: 12.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--white);
  margin: 0 0 22px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  min-height: 1lh;
}
html[lang="ar"] .footer-col h4 { letter-spacing: 0; text-transform: none; font-size: 14.5px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col li { font-size: 14.5px; line-height: 1.55; }
.footer-col a { font-size: 14.5px; text-decoration: none; color: var(--text); }
.footer-col a:hover { color: var(--cyan); }

.footer-vision { border-top: 1px solid var(--line); padding: clamp(24px, 2.6vw, 32px) 0; }
.footer-vision p {
  font-size: clamp(.9375rem, 1.5vw, 1.0625rem);
  color: var(--text); max-width: 82ch;
}
.footer-vision strong { color: var(--white); font-weight: 500; }

/* Slim closing bar: one line, vertically centred, never a block of text. */
.footer-bottom { border-top: 1px solid var(--line); padding: 26px 0; }
.footer-bottom-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 10px 28px;
  font-size: 13px; color: var(--muted);
}
.footer-bottom-inner nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-bottom-inner a { color: var(--muted); text-decoration: none; }
.footer-bottom-inner a:hover { color: var(--cyan); }

/* ============ credits page ============ */
.credit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.credit-list li { background: var(--navy-850); padding: 22px 26px; display: grid; gap: 6px; }
.credit-list .ctitle { color: var(--white); font-size: 15.5px; }
.credit-list .cmeta { font-size: 13.5px; color: var(--muted); }
.credit-list a { color: var(--text); }
.credit-list a:hover { color: var(--cyan); }

/* ============ reveal ============ */
/* Hidden only once JS has confirmed it can un-hide these again: without the
   html.reveal-ready gate, a failed IntersectionObserver leaves the page blank. */
html.reveal-ready .reveal { opacity: 0; transform: translateY(18px); }
html.reveal-ready .reveal.in {
  opacity: 1; transform: none;
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}

/* ============ responsive ============ */
@media (max-width: 1080px) {
  .nav, .header-actions { display: none; }
  .menu-btn { display: flex; }
  .footer-grid { grid-template-columns: 5fr 3fr 4fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom-inner { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.reveal-ready .reveal { opacity: 1; transform: none; }
}
