/* =========================================================================
   Rawasi Al-Khutout Contracting — main stylesheet
   Layout: navy hero + white/soft-grey content bands, gold accents.
   Direction-agnostic: logical properties throughout (works for RTL + LTR).
   ========================================================================= */

@font-face { font-family: "Handicrafts"; src: url("../fonts/handicrafts-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Handicrafts"; src: url("../fonts/handicrafts-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Handicrafts"; src: url("../fonts/handicrafts-black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  /* colour */
  --navy-950: #031B33;
  --navy-900: #062D55;
  --navy-800: #073B70;
  --blue-700: #174F83;
  --blue-100: #E6EEF7;
  --gold: #E9B52E;
  --gold-hover: #F2C449;
  --gold-ink: #8C6310;          /* gold for text on white (AA) */
  --white: #FFFFFF;
  --soft: #F4F6F9;
  --line: #E1E6EE;
  --ink: #0E2541;               /* headings on light */
  --body: #4B5563;
  --muted: #6B7280;
  --wa: #25D366;
  --wa-ink: #0B7A3B;
  --danger: #B42318;
  --success: #067647;

  /* type */
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-head: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* shape + rhythm */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --shadow: 0 1px 2px rgba(6, 45, 85, .06), 0 8px 24px rgba(6, 45, 85, .08);
  --shadow-lg: 0 18px 50px rgba(3, 27, 51, .22);
  --wrap: 1200px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --section: clamp(64px, 8vw, 104px);
  --header-h: 122px;
  color-scheme: light;
}
html[lang="ar"] {
  --f-body: "Cairo", "Handicrafts", "Segoe UI", Tahoma, Arial, sans-serif;
  --f-head: "Handicrafts", "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) - 34px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--white); color: var(--body);
  font-family: var(--f-body); font-size: 16px; line-height: 1.65;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* clip, not hidden: hidden would break the sticky header */
}
html[lang="ar"] body { font-size: 17px; line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--f-head); color: var(--ink); line-height: 1.2; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.45; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--navy-900); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 12px; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * 24px); margin-inline: auto; padding-left: max(24px, var(--gutter)); padding-right: max(24px, var(--gutter-r)); }
@media (max-width: 600px) { .wrap { padding-left: var(--gutter); padding-right: var(--gutter-r); } }

.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic .fill, .ic-wa { fill: currentColor; stroke: none; }
[dir="rtl"] .ic-dir { transform: scaleX(-1); }

/* ---------- buttons ---------- */
.btn {
  --b-bg: var(--navy-900); --b-fg: #fff; --b-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 20px; border-radius: var(--r-sm);
  background: var(--b-bg); color: var(--b-fg); border: 1.5px solid var(--b-bd);
  font-weight: 600; font-size: 15px; line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
html[lang="ar"] .btn { font-family: var(--f-body); font-weight: 700; font-size: 16px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 16px; }
.btn--gold { --b-bg: var(--gold); --b-fg: var(--navy-900); box-shadow: 0 6px 18px rgba(233, 181, 46, .28); }
.btn--gold:hover { --b-bg: var(--gold-hover); }
.btn--navy:hover { --b-bg: var(--blue-700); }
.btn--glass { --b-bg: rgba(255, 255, 255, .06); --b-fg: #fff; --b-bd: rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn--glass:hover { --b-bg: rgba(255, 255, 255, .14); --b-bd: rgba(255, 255, 255, .6); }
.btn--outline { --b-bg: transparent; --b-fg: var(--navy-800); --b-bd: var(--navy-800); }
.btn--outline:hover { --b-bg: var(--navy-800); --b-fg: #fff; }
.btn--wa { --b-bg: var(--wa-ink); }
.btn--wa:hover { --b-bg: #096a33; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy-800); }
.link-arrow .ic { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover { color: var(--gold-ink); }
.link-arrow:hover .ic-dir { transform: translateX(3px); }
[dir="rtl"] .link-arrow:hover .ic-dir { transform: scaleX(-1) translateX(3px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }
.topbar { background: #EEF1F5; color: #4A5568; font-size: 13px; border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__contact { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--navy-800); }
.topbar .ic { width: 14px; height: 14px; }
.lang-switch { font-weight: 600; color: var(--navy-900); }
.lang-switch span[lang], .lang-switch span { font-family: "Cairo", "Inter", sans-serif; }

.navbar { background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.is-scrolled .navbar { box-shadow: 0 6px 24px rgba(6, 45, 85, .10); }
.navbar__in { display: flex; align-items: center; gap: 24px; min-height: 80px; }
.brand { flex: none; display: block; }
.brand img { height: 62px; width: auto; }
.mainnav { margin-inline: auto; }
.mainnav > ul { display: flex; align-items: center; gap: 4px; }
.mainnav > ul > li { position: relative; display: flex; align-items: center; }
.mainnav > ul > li > a { display: block; padding: 8px 14px; border-radius: var(--r-sm); color: var(--ink); font-weight: 500; font-size: 15px; transition: background-color .2s, color .2s; }
html[lang="ar"] .mainnav > ul > li > a { font-weight: 600; font-size: 16px; }
.mainnav > ul > li > a:hover { background: var(--soft); color: var(--navy-800); }
.mainnav > ul > li > a[aria-current="page"] { background: #E4E9F0; color: var(--navy-900); font-weight: 600; }
.has-sub > a { padding-inline-end: 4px !important; }
.sub-toggle { display: inline-grid; place-items: center; width: 26px; height: 32px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: var(--r-sm); }
.sub-toggle .ic { width: 15px; height: 15px; transition: transform .2s; }
.sub-toggle[aria-expanded="true"] .ic { transform: rotate(180deg); }
.sub {
  position: absolute; top: calc(100% + 10px); inset-inline-start: 0; min-width: 290px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.sub::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.is-open .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); color: var(--ink); font-size: 14.5px; font-weight: 500; }
.sub a .ic { color: var(--navy-800); width: 18px; height: 18px; }
.sub a:hover { background: var(--soft); color: var(--navy-800); }
.mainnav__extra { display: none; }
.navbar__cta { flex: none; }
.burger { display: none; width: 46px; height: 46px; place-items: center; border: 1px solid var(--line); background: #fff; border-radius: var(--r-sm); color: var(--navy-900); cursor: pointer; margin-inline-start: auto; }
.burger .ic { width: 22px; height: 22px; }
.burger .ic-close { display: none; }
.burger[aria-expanded="true"] .ic-open { display: none; }
.burger[aria-expanded="true"] .ic-close { display: block; }

@media (max-width: 1080px) {
  :root { --header-h: 108px; }
  .navbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; } /* a filter would trap the fixed menu panel */
  .navbar__in { min-height: 68px; gap: 12px; }
  .brand img { height: 52px; }
  .burger { display: inline-grid; }
  .navbar__cta { display: none; }
  .mainnav {
    position: fixed; inset: var(--nav-top, 108px) 0 0 0; margin: 0; z-index: 40;
    background: #fff; overflow-y: auto; padding: 16px var(--gutter-r) calc(32px + env(safe-area-inset-bottom, 0px)) var(--gutter);
    border-top: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .mainnav { visibility: visible; opacity: 1; transform: none; }
  .nav-open { overflow: hidden; }
  .mainnav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .mainnav > ul > li { flex-wrap: wrap; }
  .mainnav > ul > li > a { flex: 1; padding: 14px 12px; font-size: 17px; }
  .has-sub > a { padding-inline-end: 12px !important; }
  .sub-toggle { width: 48px; height: 48px; }
  .sub { position: static; flex-basis: 100%; min-width: 0; box-shadow: none; border: 0; padding: 0 12px 8px; display: none; opacity: 1; visibility: visible; transform: none; background: var(--soft); border-radius: var(--r); }
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: none; }
  .has-sub.is-open .sub { display: block; }
  .sub::before { display: none; }
  .mainnav__extra { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
  .mainnav__extra .btn { width: 100%; }
  .mainnav__lang { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 1px solid var(--line); border-radius: var(--r-sm); font-weight: 600; color: var(--navy-900); font-family: "Cairo", "Inter", sans-serif; }
}
@media (max-width: 600px) {
  .topbar__contact a:nth-child(2) span { display: none; }
  .topbar__contact { gap: 14px; }
}

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--navy-900); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(var(--hero-dir, 90deg), rgba(4, 31, 62, .96) 0%, rgba(6, 45, 85, .90) 38%, rgba(7, 59, 112, .72) 70%, rgba(7, 59, 112, .55) 100%),
    linear-gradient(180deg, rgba(3, 27, 51, .25), rgba(3, 27, 51, .55));
}
[dir="rtl"] .hero, [dir="rtl"] .phero { --hero-dir: 270deg; }
.hero__in { padding-block: clamp(56px, 8vw, 96px) clamp(48px, 6vw, 80px); }
.hero__badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 7px 16px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); font-size: 14px; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(233, 181, 46, .2); }
.hero__title { color: #fff; font-size: clamp(38px, 6.2vw, 72px); font-weight: 800; line-height: 1.06; letter-spacing: -0.025em; max-width: 15ch; }
html[lang="ar"] .hero__title { font-weight: 900; line-height: 1.32; letter-spacing: 0; max-width: 18ch; font-size: clamp(36px, 5.6vw, 66px); }
.hero__title span { display: block; }
.gold { color: var(--gold); }
.hero__sub { margin: 22px 0 6px; font-size: clamp(19px, 2.2vw, 26px); font-weight: 600; color: #fff; max-width: 40ch; }
html[lang="ar"] .hero__sub { font-size: clamp(18px, 1.9vw, 22px); font-weight: 500; line-height: 1.75; max-width: 52ch; color: #E6ECF4; }
.hero__values { margin: 12px 0 18px; color: var(--gold); font-weight: 600; letter-spacing: .04em; font-size: 15px; }
html[lang="ar"] .hero__values { letter-spacing: 0; font-size: 17px; }
.hero__text { max-width: 60ch; color: #C9D5E3; font-size: 17px; line-height: 1.7; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 48px 0 0; max-width: 900px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--r-lg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.stats__item { display: flex; flex-direction: column-reverse; align-items: center; justify-content: flex-end; gap: 4px; padding: 26px 16px; text-align: center; min-width: 0; }
.stats__item + .stats__item { border-inline-start: 1px solid rgba(255, 255, 255, .12); }
.stats dd { margin: 0; font-family: "Inter", var(--f-head); font-size: clamp(32px, 3.6vw, 46px); font-weight: 800; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
html[lang="ar"] .stats__item--text dd { font-family: var(--f-head); }
.stats__item--text dd { font-size: clamp(26px, 2.8vw, 34px); padding-block: 4px 2px; }
.stats dt { color: #D4DEEA; font-size: 14px; line-height: 1.4; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats__item:nth-child(3) { border-inline-start: 0; }
  .stats__item:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
  .hero__btns .btn { flex: 1 1 100%; }
}

/* ---------- page hero ---------- */
.phero { position: relative; isolation: isolate; color: #fff; background: var(--navy-900); overflow: hidden; }
.phero__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.phero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(var(--hero-dir, 90deg), rgba(4, 31, 62, .97) 0%, rgba(6, 45, 85, .9) 50%, rgba(7, 59, 112, .7) 100%); }
.phero__in { padding-block: clamp(48px, 7vw, 84px); }
.phero h1 { color: #fff; font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; max-width: 22ch; }
html[lang="ar"] .phero h1 { font-weight: 900; }
.phero__lead { margin: 16px 0 0; max-width: 62ch; color: #CBD6E4; font-size: 18px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 0; margin-bottom: 18px; font-size: 14px; color: #A9B9CC; }
.crumbs li + li::before { content: "/"; margin-inline: 10px; color: rgba(255, 255, 255, .35); }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current] { color: #fff; }

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section--soft { background: var(--soft); }
.section--navy { background: var(--navy-900); color: #C9D5E3; }
.shead { max-width: 720px; margin-bottom: 44px; }
.shead--center { margin-inline: auto; text-align: center; }
.shead h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; }
html[lang="ar"] .shead h2 { font-weight: 700; }
.shead__lead { margin: 16px 0 0; font-size: 17px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--gold-ink); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 15px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.shead--center .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--gold); }
.shead--light h2 { color: #fff; }
.shead--light .eyebrow { color: var(--gold); }
.shead--light .shead__lead { color: #C9D5E3; }
.shead-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.shead-row .shead { margin-bottom: 0; }

/* split: text + image */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split__text { min-width: 0; }
.split__text .shead { margin-bottom: 24px; }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 4 / 4.4; object-fit: cover; box-shadow: var(--shadow-lg); }
.since { position: absolute; inset-block-end: -22px; inset-inline-end: -14px; display: grid; gap: 2px; padding: 18px 24px; border-radius: var(--r); background: var(--navy-900); color: #fff; box-shadow: var(--shadow-lg); border-bottom: 4px solid var(--gold); text-align: center; }
.since span { font-size: 13px; color: #B9C6D6; }
.since strong { font-family: "Inter", sans-serif; font-size: 34px; line-height: 1; color: var(--gold); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; max-width: 560px; }
  .about-intro .split__media img, .split__media img { aspect-ratio: 16 / 11; }
  .since { inset-inline-end: 12px; }
}

.ticks { display: grid; gap: 12px; margin: 22px 0 30px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.ticks .ic { margin-top: 4px; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--gold); color: var(--navy-900); stroke-width: 3; }
.ticks--sm { gap: 8px; margin: 14px 0 20px; font-size: 14.5px; }
.ticks--sm li { font-weight: 400; color: var(--body); }
.ticks--sm .ic { width: 17px; height: 17px; margin-top: 4px; background: var(--blue-100); color: var(--navy-800); }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 28px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.facts div { background: #fff; padding: 16px 18px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 2px 0 0; color: var(--ink); font-weight: 700; font-size: 18px; }

/* ---------- service cards ---------- */
.scards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 1000px) { .scards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .scards { grid-template-columns: 1fr; } }
.scard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: box-shadow .25s, transform .25s, border-color .25s; }
.scard:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.scard__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.scard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.scard:hover .scard__media img { transform: scale(1.04); }
.scard__body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 34px 26px 26px; }
.scard__icon { position: absolute; top: -26px; inset-inline-start: 24px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r); background: var(--navy-900); color: var(--gold); box-shadow: 0 8px 20px rgba(6, 45, 85, .3); }
.scard__icon .ic { width: 24px; height: 24px; }
.scard__tag { margin: 0 0 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }
html[lang="ar"] .scard__tag { letter-spacing: 0; font-size: 14px; }
.scard h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.scard h3 a:hover { color: var(--navy-800); }
.scard p { font-size: 15.5px; }
.scard .link-arrow { margin-top: auto; }

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; top: 27px; inset-inline: 10% 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 16px); opacity: .6; }
.process__step { position: relative; text-align: center; padding: 0 6px; }
.process__num { position: relative; display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 50%; background: var(--navy-900); color: var(--gold); font-family: "Inter", sans-serif; font-weight: 800; font-size: 20px; box-shadow: 0 0 0 8px var(--white); }
.section--soft .process__num { box-shadow: 0 0 0 8px var(--soft); }
.process h3 { font-size: 18px; margin-bottom: 8px; }
.process p { font-size: 15px; margin: 0; }
@media (max-width: 960px) {
  .process { grid-template-columns: 1fr; gap: 0; max-width: 560px; margin-inline: auto; }
  .process::before { top: 28px; bottom: 28px; inset-inline: 27px auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--gold) 0 8px, transparent 8px 16px); }
  .process__step { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; text-align: start; padding: 0 0 26px; }
  .process__num { grid-row: span 2; margin: 0; }
  .process h3 { align-self: end; }
}

/* ---------- why ---------- */
.why { position: relative; isolation: isolate; overflow: hidden; }
.why__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: .14; }
.why::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, rgba(6, 45, 85, .6), var(--navy-900) 70%); }
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-lg); overflow: hidden; }
.why__item { display: flex; gap: 18px; padding: 30px 28px; background: rgba(6, 45, 85, .92); transition: background-color .25s; }
.why__item:hover { background: rgba(23, 79, 131, .7); }
.why__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r); background: rgba(233, 181, 46, .12); color: var(--gold); border: 1px solid rgba(233, 181, 46, .3); }
.why__icon .ic { width: 22px; height: 22px; }
.why h3 { color: #fff; font-size: 18px; margin-bottom: 6px; }
.why p { margin: 0; font-size: 15px; color: #B9C6D6; }
@media (max-width: 960px) { .why__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .why__grid { grid-template-columns: 1fr; } }

/* ---------- field work gallery ---------- */
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work--home { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .work, .work--home { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .work, .work--home { grid-template-columns: 1fr; } }
.work__item[hidden] { display: none; }
@media (min-width: 1001px) {
  .work--page { grid-template-columns: repeat(6, 1fr); }
  .work--page .work__item { grid-column: span 2; }
  .work--page:not(.is-filtered) .work__item:nth-child(n+4) { grid-column: span 3; }
  .work--page:not(.is-filtered) .work__item:nth-child(n+4) .work__btn { aspect-ratio: 16 / 11; }
}
.work__btn { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r-lg); overflow: hidden; cursor: zoom-in; background: var(--navy-900); aspect-ratio: 3 / 3.6; text-align: start; }
.work__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; }
.work__btn:hover img { transform: scale(1.05); opacity: .9; }
.work__meta { position: absolute; inset: auto 0 0 0; display: grid; gap: 4px; padding: 90px 20px 18px; background: linear-gradient(180deg, transparent, rgba(3, 27, 51, .78) 45%, rgba(3, 27, 51, .96)); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.work__cat { font-size: 12.5px; font-weight: 700; color: var(--gold); letter-spacing: .06em; text-transform: uppercase; }
html[lang="ar"] .work__cat { letter-spacing: 0; font-size: 13.5px; }
.work__title { font-weight: 600; line-height: 1.35; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip { min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--navy-800); }
.chip[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

.empty { display: grid; justify-items: center; gap: 14px; padding: 48px 24px; border: 2px dashed #C9D3E0; border-radius: var(--r-lg); background: #fff; text-align: center; }
.empty p { max-width: 62ch; margin: 0; }
.empty__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--blue-100); color: var(--navy-800); }
.empty__icon .ic { width: 26px; height: 26px; }
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.pcard img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.pcard__body { padding: 22px; }
.pcard__loc { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }

/* ---------- certifications ---------- */
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 1000px) { .certs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .certs { grid-template-columns: 1fr; } }
.cert { margin: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cert__thumb { position: relative; display: block; padding: 18px 18px 0; border: 0; background: linear-gradient(180deg, #EEF2F7, #fff); cursor: zoom-in; }
.cert__thumb img { width: 100%; aspect-ratio: 1 / 1.1; object-fit: cover; object-position: top; border-radius: 4px 4px 0 0; box-shadow: 0 4px 16px rgba(6, 45, 85, .12); }
.cert__zoom { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(6, 45, 85, .72); color: #fff; font-weight: 600; opacity: 0; transition: opacity .2s; }
.cert__thumb:hover .cert__zoom, .cert__thumb:focus-visible .cert__zoom { opacity: 1; }
.cert figcaption { display: grid; gap: 2px; padding: 18px 20px 20px; border-top: 1px solid var(--line); }
.cert figcaption strong { color: var(--navy-900); font-size: 18px; font-family: "Inter", sans-serif; }
.cert figcaption span { color: var(--ink); font-size: 14.5px; line-height: 1.45; }
.cert figcaption small { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.cert--aramco { justify-content: center; align-items: flex-start; gap: 6px; padding: 30px 26px; background: var(--navy-900); border-color: var(--navy-900); color: #C9D5E3; }
.cert__seal { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 10px; border-radius: 50%; background: var(--gold); color: var(--navy-900); }
.cert__seal .ic { width: 28px; height: 28px; }
.cert--aramco strong { color: #fff; font-size: 21px; font-family: var(--f-head); }
.cert__vendor { margin-top: 10px; font-family: "Inter", sans-serif; font-size: 34px; font-weight: 800; color: var(--gold); letter-spacing: .02em; font-variant-numeric: tabular-nums; }

/* ---------- vision / mission / values / Q&S ---------- */
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 760px) { .vm { grid-template-columns: 1fr; } }
.vm__card { padding: clamp(28px, 4vw, 44px); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.vm__card h2 { font-size: 26px; margin: 18px 0 12px; }
.vm__card p { margin: 0; font-size: 18px; color: var(--ink); }
.vm__card--navy { background: var(--navy-900); border-color: var(--navy-900); }
.vm__card--navy h2 { color: #fff; }
.vm__card--navy p { color: #D4DEEA; }
.vm__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: var(--r); background: var(--gold); color: var(--navy-900); }
.vm__icon .ic { width: 26px; height: 26px; }

.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 1000px) { .values { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .values { grid-template-columns: 1fr; } }
.values__item { padding: 26px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); text-align: center; background: #fff; transition: border-color .2s, box-shadow .2s; }
.values__item:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.values__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 50%; background: var(--blue-100); color: var(--navy-800); }
.values__icon .ic { width: 24px; height: 24px; }
.values h3 { font-size: 18px; margin-bottom: 6px; }
.values p { margin: 0; font-size: 14.5px; }

.qs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .qs__grid { grid-template-columns: 1fr; } }
.qs__card { padding: 32px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); }
.qs__icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 18px; border-radius: var(--r); background: var(--gold); color: var(--navy-900); }
.qs__icon .ic { width: 26px; height: 26px; }
.qs__card h3 { color: #fff; font-size: 22px; margin-bottom: 10px; }
.qs__card p { margin: 0; font-size: 16.5px; }

/* ---------- service detail ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .detail { grid-template-columns: 1fr; } }
.detail__intro { font-size: 20px; line-height: 1.6; color: var(--ink); }
html[lang="ar"] .detail__intro { line-height: 1.9; }
.detail__fig { margin: 28px 0 40px; }
.detail__fig img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); }
.detail__main h2 { font-size: 26px; margin: 8px 0 20px; }
.scope { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 32px; }
.scope--1 { grid-template-columns: 1fr; margin: 0; }
@media (max-width: 600px) { .scope { grid-template-columns: 1fr; } }
.scope li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r); background: var(--soft); color: var(--ink); font-weight: 500; }
.scope .ic { flex: none; width: 22px; height: 22px; padding: 4px; margin-top: 2px; border-radius: 50%; background: var(--navy-900); color: var(--gold); stroke-width: 3; }
.scope--1 li { background: #fff; border: 1px solid var(--line); }
.groups { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: 32px; }
.group .scope--1 { grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 600px) { .group .scope--1 { grid-template-columns: 1fr; } }
.group { padding: 22px; border-radius: var(--r-lg); background: var(--soft); }
.group h3 { font-size: 19px; margin-bottom: 14px; }
.detail__note { display: flex; gap: 12px; padding: 18px 20px; margin: 0 0 40px; border-inline-start: 4px solid var(--gold); background: #FFF8E6; border-radius: var(--r-sm); color: var(--ink); }
.detail__note .ic { flex: none; margin-top: 4px; color: var(--gold-ink); width: 20px; height: 20px; }
.detail .work { grid-template-columns: repeat(2, 1fr); }

.detail__side { display: grid; gap: 22px; position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 960px) { .detail__side { position: static; } }
.side-card { padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; }
.side-card h2 { font-size: 20px; margin-bottom: 12px; }
.side-card--navy { background: var(--navy-900); border-color: var(--navy-900); color: #C9D5E3; }
.side-card--navy h2 { color: #fff; }
.side-card--navy .btn { width: 100%; margin: 6px 0 14px; }
.side-card__line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .12); color: #fff; font-weight: 500; }
.side-card__line:hover { color: var(--gold); }
.side-card__line .ic { color: var(--gold); }
.side-list { display: grid; gap: 4px; }
.side-list a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--r-sm); color: var(--ink); font-weight: 500; font-size: 15px; }
.side-list a .ic { color: var(--navy-800); }
.side-list a:hover { background: var(--soft); }
.side-list a[aria-current="page"] { background: var(--navy-900); color: #fff; }
.side-list a[aria-current="page"] .ic { color: var(--gold); }

/* ---------- contact + form ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact--quote { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 960px) { .contact, .contact--quote { grid-template-columns: 1fr; } }
.contact__info { display: grid; gap: 22px; align-content: start; }
.contact__info .shead { margin-bottom: 6px; }
.clist { display: grid; gap: 14px; }
.clist li { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); }
.clist__icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r); background: var(--navy-900); color: var(--gold); }
.clist__icon--wa { background: var(--wa-ink); color: #fff; }
.clist div { display: grid; gap: 2px; min-width: 0; }
.clist small { color: var(--muted); font-size: 13px; }
.clist a:not(.link-arrow), .clist span { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.clist a:not(.link-arrow):hover { color: var(--navy-800); text-decoration: underline; }
.clist .link-arrow { margin-top: 6px; font-size: 14px; }

.card-form { padding: clamp(24px, 4vw, 40px); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.qform__title { font-size: 26px; }
.qform__note { margin: 6px 0 22px; color: var(--muted); font-size: 14px; }
.qform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
@media (max-width: 600px) { .qform__grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; color: var(--ink); font-size: 14.5px; }
.req { color: var(--danger); }
.opt { color: var(--muted); font-weight: 400; font-size: 13px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #CBD3DE; border-radius: var(--r-sm); background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23073B70' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; background-position: right 14px center; padding-inline-end: 42px; }
[dir="rtl"] .field select { background-position: left 14px center; }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field input::placeholder, .field textarea::placeholder { color: #98A2B3; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #98A6B9; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-800); box-shadow: 0 0 0 4px rgba(7, 59, 112, .14); }
.field [aria-invalid="true"] { border-color: var(--danger); background: #FFFBFA; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, .14); }
.field__err { margin: 0; min-height: 0; color: var(--danger); font-size: 13.5px; font-weight: 500; }
.field__err:empty { display: none; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qform { position: relative; }
.qform__submit { margin-top: 24px; min-width: 200px; }
@media (max-width: 600px) { .qform__submit { width: 100%; } }
.qform__alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; margin: 0 0 18px; border-radius: var(--r-sm); font-weight: 500; font-size: 14.5px; }
.qform__alert[hidden] { display: none; }
.qform__alert--error { background: #FEF3F2; color: var(--danger); border: 1px solid #FECDCA; }
.qform__alert .ic { margin-top: 3px; }
[data-fail] { margin: 18px 0 0; }
.qform-result { display: grid; justify-items: center; gap: 8px; padding: 32px 12px; text-align: center; }
.qform-result[hidden] { display: none; }
.qform-result:focus { outline: none; }
.qform-result h2 { font-size: 26px; }
.qform-result p { max-width: 46ch; margin: 0; }
.qform-result__icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px; border-radius: 50%; background: #ECFDF3; color: var(--success); }
.qform-result__icon .ic { width: 30px; height: 30px; }
.qform-result--fallback .qform-result__icon { background: var(--blue-100); color: var(--navy-800); }
.qform-result__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 16px; }

/* ---------- CTA band ---------- */
.band { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-950); color: #C9D5E3; }
.band__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 60%; opacity: .22; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--navy-950), rgba(3, 27, 51, .7)); }
.band__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-block: clamp(48px, 6vw, 72px); }
.band__in > div:first-child { flex: 1 1 420px; min-width: 0; }
.band h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); }
.band p { margin: 12px 0 0; font-size: 17px; max-width: 56ch; }
.band__btns { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 600px) { .band__btns { width: 100%; } .band__btns .btn { flex: 1 1 100%; } }

/* ---------- footer ---------- */
.footer { background: var(--navy-950); color: #A9B9CC; font-size: 15px; border-top: 4px solid var(--gold); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.4fr; gap: 40px; padding-block: 64px 48px; }
@media (max-width: 1000px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }
.footer__brand img { height: 84px; width: auto; margin-bottom: 18px; }
.footer__brand p { max-width: 40ch; }
.footer__vendor { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid rgba(233, 181, 46, .35); border-radius: var(--r-sm); color: #fff; font-size: 14px; }
.footer__vendor .ic { color: var(--gold); }
.footer h3 { color: #fff; font-size: 17px; margin-bottom: 18px; }
.footer ul { display: grid; gap: 10px; }
.footer a:hover { color: var(--gold); }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer__contact .ic { margin-top: 4px; color: var(--gold); }
.footer__social { display: flex !important; gap: 14px; margin-top: 18px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }
.footer__bottom-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 20px calc(20px + env(safe-area-inset-bottom, 0px)); }
.footer__bottom p { margin: 0; }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed; z-index: 45; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  inset-block-end: calc(22px + env(safe-area-inset-bottom, 0px)); right: calc(22px + env(safe-area-inset-right, 0px));
  background: var(--wa); color: #fff; box-shadow: 0 10px 28px rgba(37, 211, 102, .4); transition: transform .2s, box-shadow .2s;
}
.wa-float .ic { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.07); box-shadow: 0 14px 34px rgba(37, 211, 102, .5); }
.wa-float:focus-visible { outline-color: var(--navy-900); }
.nav-open .wa-float { display: none; }
@media (max-width: 600px) { .wa-float { width: 52px; height: 52px; inset-block-end: calc(16px + env(safe-area-inset-bottom, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); } }

/* ---------- lightbox ---------- */
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(92vw, 1000px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(3, 27, 51, .88); }
.lightbox figure { margin: 0; display: grid; gap: 12px; }
.lightbox img { max-height: 82vh; width: auto; max-width: 100%; margin-inline: auto; border-radius: var(--r); background: #fff; }
.lightbox figcaption { color: #fff; text-align: center; font-weight: 600; }
.lightbox__close { position: absolute; top: -18px; inset-inline-end: -18px; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--gold); color: var(--navy-900); cursor: pointer; }
@media (max-width: 600px) { .lightbox__close { top: -54px; inset-inline-end: 0; } }

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal.is-pending { opacity: 0; transform: translateY(18px); }
  .reveal { transition: opacity .6s ease, transform .6s ease; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* =========================================================================
   v2 — brand hero (company emblem), project types, CTA card, Aramco mark
   ========================================================================= */

/* hero: copy + emblem */
.hero--brand::before {
  background:
    linear-gradient(var(--hero-dir, 90deg), rgba(3, 27, 51, .97) 0%, rgba(6, 45, 85, .93) 45%, rgba(6, 45, 85, .82) 100%),
    linear-gradient(180deg, rgba(3, 27, 51, .2), rgba(3, 27, 51, .6));
}
.hero__lines {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(233, 181, 46, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 181, 46, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at var(--emblem-x, 78%) 45%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 70% at var(--emblem-x, 78%) 45%, #000 0%, transparent 75%);
}
[dir="rtl"] .hero__lines { --emblem-x: 22%; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 7vw, 88px) 0; }
.hero__copy { min-width: 0; }
.hero__title--name { max-width: none; font-size: clamp(38px, 5.4vw, 70px); }
html[lang="ar"] .hero__title--name { font-size: clamp(44px, 6.4vw, 86px); line-height: 1.2; }
.hero--brand .stats { margin: clamp(40px, 5vw, 56px) 0 clamp(48px, 6vw, 72px); max-width: none; }

.emblem { margin: 0; justify-self: center; width: min(100%, 420px); }
.emblem__frame {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; justify-items: center; gap: 18px; padding: 44px 32px 30px;
  border-radius: 22px; text-align: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03) 55%, rgba(233, 181, 46, .06));
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.emblem__frame::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.emblem__corner { position: absolute; width: 34px; height: 34px; border: 2px solid var(--gold); }
.emblem__corner--a { top: 14px; inset-inline-start: 14px; border-inline-end: 0; border-bottom: 0; border-start-start-radius: 8px; }
.emblem__corner--b { bottom: 18px; inset-inline-end: 14px; border-inline-start: 0; border-top: 0; border-end-end-radius: 8px; }
/* rising "lines" behind the mark, echoing the logo's towers */
.emblem__bars { position: absolute; inset: 0 0 34%; z-index: -1; display: flex; align-items: flex-end; justify-content: center; gap: 14px; opacity: .55; }
.emblem__bars i { width: 3px; border-radius: 2px; background: linear-gradient(180deg, rgba(233, 181, 46, 0), rgba(233, 181, 46, .55)); height: var(--h); }
.emblem__bars i:nth-child(1) { --h: 30%; } .emblem__bars i:nth-child(2) { --h: 52%; } .emblem__bars i:nth-child(3) { --h: 74%; }
.emblem__bars i:nth-child(4) { --h: 92%; } .emblem__bars i:nth-child(5) { --h: 68%; } .emblem__bars i:nth-child(6) { --h: 46%; } .emblem__bars i:nth-child(7) { --h: 26%; }
@media (prefers-reduced-motion: no-preference) {
  .emblem__bars i { transform-origin: bottom; animation: rise 1.4s cubic-bezier(.2, .8, .2, 1) both; }
  .emblem__bars i:nth-child(odd) { animation-delay: .15s; }
  .emblem__mark { animation: emblem-in 1s .1s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  @keyframes emblem-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
}
.emblem__mark { width: min(64%, 230px); height: auto; filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .35)); }
.emblem__name { display: grid; justify-items: center; gap: 6px; }
.emblem__ar { font-family: "Handicrafts", "Cairo", sans-serif; font-weight: 700; font-size: clamp(26px, 2.6vw, 34px); color: #fff; line-height: 1.3; }
.emblem__en { font-family: "Inter", system-ui, sans-serif; font-weight: 700; font-size: 12.5px; letter-spacing: .24em; color: #D7E1EE; }
.emblem__est { display: inline-flex; align-items: center; gap: 12px; margin-top: 8px; color: var(--gold); font-size: 13px; }
.emblem__est b { font-weight: 700; letter-spacing: .08em; }
html[lang="ar"] .emblem__est b:first-child { letter-spacing: 0; font-size: 14px; }
.emblem__est i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .emblem { order: -1; width: min(100%, 340px); }
  .emblem__frame { padding: 32px 24px 24px; gap: 14px; }
  .emblem__mark { width: 150px; }
}

/* stats: Aramco logo item */
.stats__item--logo dd { display: flex; justify-content: center; }
.stats__item--logo dd img { height: clamp(34px, 3.6vw, 46px); width: auto; max-width: 100%; }

/* project types */
.types__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .types__grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }
.type { position: relative; isolation: isolate; display: flex; min-height: 420px; border-radius: var(--r-lg); overflow: hidden; color: #fff; background: var(--navy-900); box-shadow: var(--shadow); }
.type img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.type::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(3, 27, 51, .05) 20%, rgba(3, 27, 51, .82) 62%, rgba(3, 27, 51, .97)); }
.type:hover img { transform: scale(1.05); }
.type__body { display: grid; gap: 8px; align-content: end; padding: 28px; width: 100%; }
.type__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 6px; border-radius: var(--r); background: var(--gold); color: var(--navy-900); }
.type__icon .ic { width: 24px; height: 24px; }
.type__title { font-family: var(--f-head); font-size: 24px; font-weight: 700; line-height: 1.3; }
.type__text { color: #D4DEEA; font-size: 15.5px; }
.type__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--gold); font-weight: 600; }
.type__more .ic { width: 16px; height: 16px; }
@media (max-width: 900px) { .type { min-height: 340px; } }

/* services grid: 7 services + a CTA card = 8 tiles */
@media (min-width: 1101px) { .scards { grid-template-columns: repeat(4, 1fr); gap: 22px; } .scard__body { padding: 32px 22px 22px; } .scard h3 { font-size: 19px; } }
@media (min-width: 641px) and (max-width: 1100px) { .scards { grid-template-columns: repeat(2, 1fr); } }
.scard--cta { background: var(--navy-900); border-color: var(--navy-900); color: #C9D5E3; justify-content: center; }
.scard--cta .scard__body { justify-content: center; gap: 4px; padding-top: 30px; }
.scard--cta h3 { color: #fff; font-size: 22px; }
.scard--cta .btn { margin-top: 10px; }
.scard__icon--static { position: static; margin-bottom: 14px; background: var(--gold); color: var(--navy-900); box-shadow: none; }
.scard__call { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; color: #fff; font-weight: 600; }
.scard__call .ic { color: var(--gold); }
.scard__call:hover { color: var(--gold); }

/* Aramco certification card (white, with logo) */
.cert--aramco { background: #fff; border-color: var(--line); color: var(--body); border-top: 4px solid var(--gold); }
.cert--aramco strong { color: var(--ink); }
.cert__aramco { display: block; width: 100%; max-width: 220px; margin-bottom: 14px; }
.cert__aramco img { width: 100%; height: auto; }
.cert--aramco .cert__vendor { color: var(--navy-900); }

/* footer Aramco badge */
.footer__vendor { gap: 14px; line-height: 1.4; }
.footer__vendor img { height: 34px; width: auto; }
