/* ==========================================================================
   الدقة المتناهية — flagpoles in Kuwait
   Hand-written, mobile first. Logical properties so one sheet serves RTL + LTR.
   ========================================================================== */

@font-face {
  font-family: "Cairo";
  src: url("../fonts/cairo.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #12304d;
  --navy-800: #0e2740;
  --navy-900: #0a1e33;
  --blue: #0f5e9c;
  --sky: #79b8ea;
  --sky-100: #e4f0fb;
  --sky-50: #f0f6fc;
  --orange: #f07a28;
  --orange-hi: #ff8c3f;
  --paper: #f6f9fc;
  --ink: #0d1b2a;
  --muted: #4a5d72;
  --line: #dbe5ee;
  --kw-green: #007a3d;
  --kw-red: #ce1126;
  --wa: #25d366;

  --r-lg: 24px;
  --r: 20px;
  --r-sm: 14px;
  --shadow-1: 0 1px 2px rgba(13, 27, 42, .05), 0 6px 16px rgba(13, 27, 42, .06);
  --shadow-2: 0 2px 6px rgba(13, 27, 42, .06), 0 18px 40px rgba(13, 27, 42, .12);
  --shadow-dark: 0 30px 70px rgba(2, 12, 24, .5);

  --gutter: 16px;
  --wrap: 1180px;
  --header-h: 64px;

  --flag-stripe: linear-gradient(90deg, #007a3d 0 25%, #fff 25% 50%, #ce1126 50% 75%, #000 75% 100%);
  /* eight-point star lattice, drawn once, used on the dark sections */
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.075' stroke-width='1.2'%3E%3Crect x='24' y='24' width='48' height='48'/%3E%3Crect x='24' y='24' width='48' height='48' transform='rotate(45 48 48)'/%3E%3Cpath d='M48 0v14M48 82v14M0 48h14M82 48h14M0 0l24 24M96 0 72 24M0 96l24-24M96 96 72 72'/%3E%3C/g%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: only light;          /* brand colours stay as designed; no automatic dark-mode inversion */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 3px);   /* sticky header + its flag line */
  background: var(--navy-900);       /* what shows when a phone over-scrolls past the header or footer */
}
::selection { background: rgba(240, 122, 40, .32); }

body {
  margin: 0;
  font-family: "Cairo", "Segoe UI", Tahoma, system-ui, -apple-system, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
html[lang="en"] body { line-height: 1.65; }

h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { line-height: 1.35; text-wrap: balance; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3, html[lang="en"] h4 { line-height: 1.2; }
html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: -.01em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, video, svg { max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 24px; height: 24px; flex: none; display: block; }
html[dir="rtl"] .icon-chev { transform: scaleX(-1); }

.container {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -80px; z-index: 100;
  padding: 10px 18px; border-radius: 12px; background: var(--orange); color: var(--ink);
  font-weight: 800; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.flagline { height: 3px; background: var(--flag-stripe); }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 8px 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 800; font-size: 1rem; line-height: 1.3; text-decoration: none; text-align: center;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background-color .2s, border-color .2s;
}
.btn .icon { width: 20px; height: 20px; }
.btn .num { font-weight: 900; font-variant-numeric: tabular-nums; }
/* the number is its own LTR island, so the divider side is set per page direction */
html[dir="rtl"] .btn span + .num { padding-right: .65em; border-right: 2px solid rgba(13, 27, 42, .28); }
html[dir="ltr"] .btn span + .num { padding-left: .65em; border-left: 2px solid rgba(13, 27, 42, .28); }
.btn-lg { min-height: 56px; padding-inline: 26px; font-size: 1.0625rem; }
.btn-primary { background: var(--orange); color: var(--ink); box-shadow: 0 10px 24px rgba(240, 122, 40, .32); }
.btn-wa { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .34); color: #fff; }
.btn-wa .icon { color: var(--wa); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn-primary:hover { background: var(--orange-hi); box-shadow: 0 14px 30px rgba(240, 122, 40, .42); }
  .btn-wa:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .6); }
}
.btn:active { transform: translateY(0); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50; color: #fff;
  background: rgba(14, 39, 64, .95);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(2, 12, 24, .35); }
.header-bar { display: flex; align-items: center; gap: 10px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; margin-inline-end: auto; color: #fff; text-decoration: none; }
.brand-tile {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); overflow: hidden;
}
.brand-tile img { display: block; width: 34px; height: 34px; }
.brand-text { display: grid; min-width: 0; line-height: 1.35; }
.brand-name { font-weight: 800; font-size: 1.0625rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-tag { font-weight: 600; font-size: .75rem; color: var(--sky); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[lang="en"] .brand-name { font-size: .9375rem; }
html[lang="en"] .brand-tag { font-size: .6875rem; }

.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.btn-call { min-height: 44px; width: 44px; padding: 0; box-shadow: none; }
.btn-call .num { display: none; }

.lang-switch {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .26); color: #fff;
  font-weight: 700; font-size: 1rem; line-height: 1.3; text-decoration: none; transition: background-color .2s, border-color .2s;
}
.lang-switch .icon { width: 18px; height: 18px; color: var(--sky); }
.lang-switch--top { display: none; }
@media (hover: hover) { .lang-switch:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .55); } }

.menu-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #fff;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06);
}
.menu-btn .icon-close, .menu-btn[aria-expanded="true"] .icon-menu { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

/* mobile menu: a panel under the header. Works without JS through :target. */
.site-nav { display: none; }
.site-nav.is-open, html:not(.js) .site-nav:target { display: block; }
.site-nav {
  position: absolute; inset-inline: 0; top: 100%;
  padding: 6px var(--gutter) 22px; background: var(--navy-900);
  border-top: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 50px rgba(2, 12, 24, .5);
  max-height: calc(100vh - var(--header-h) - 3px); max-height: calc(100dvh - var(--header-h) - 3px); overflow-y: auto;
}
.nav-list a {
  display: flex; align-items: center; min-height: 54px; padding: 0 6px; color: #fff; text-decoration: none;
  font-weight: 700; font-size: 1.125rem; border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.nav-cta { display: grid; gap: 10px; margin-top: 18px; }
.menu-close {
  position: absolute; top: 10px; inset-inline-end: var(--gutter); display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px; color: #fff; background: rgba(255, 255, 255, .1);
}
html.js .menu-close { display: none; }

@media (max-width: 359.98px) {          /* very small phones: keep the whole brand readable */
  .header-bar, .brand { gap: 8px; }
  .brand-tile { width: 38px; height: 38px; border-radius: 10px; }
  .brand-tile img { width: 30px; height: 30px; }
  .brand-name { font-size: .9375rem; }
  .brand-tag { font-size: .6875rem; }
  html[lang="en"] .brand-name { font-size: .8125rem; }
  html[lang="en"] .brand-tag { font-size: .625rem; }
}
@media (min-width: 480px) {
  .btn-call { width: auto; padding: 0 16px; }
  .btn-call .num { display: inline; }
  .brand-tile { width: 46px; height: 46px; }
  .brand-tile img { width: 38px; height: 38px; }
  html[lang="en"] .brand-name { font-size: 1.0625rem; }
  html[lang="en"] .brand-tag { font-size: .75rem; }
}
@media (min-width: 620px) {
  .lang-switch--top { display: inline-flex; }
  .lang-switch--panel { display: none; }
}
@media (min-width: 1080px) { :root { --gutter: 32px; } }
/* full navigation in the bar once the English brand, six links and both buttons fit on one line */
@media (min-width: 1180px) {
  :root { --header-h: 76px; }
  .header-bar { gap: 16px; }
  .brand { margin-inline-end: 0; flex: none; }
  .brand-name { font-size: 1.1875rem; }
  html[lang="en"] .brand-name { font-size: 1.125rem; }
  .brand-tag, html[lang="en"] .brand-tag { font-size: .8125rem; }
  .site-nav, .site-nav.is-open {
    display: block; position: static; flex: 1; padding: 0; background: none; border: 0; box-shadow: none; max-height: none; overflow: visible;
  }
  .nav-list { display: flex; justify-content: center; gap: 2px; }
  .nav-list a {
    min-height: 44px; padding: 0 11px; border: 0; border-radius: 10px; font-size: 1rem; color: #dce9f6; white-space: nowrap;
    position: relative; transition: color .2s, background-color .2s;
  }
  .nav-list a::after {
    content: ""; position: absolute; inset-inline: 11px; bottom: 6px; height: 2px; border-radius: 2px;
    background: var(--orange); transform: scaleX(0); transition: transform .25s;
  }
  .nav-list a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
  .nav-list a.is-current { color: #fff; }
  .nav-list a.is-current::after { transform: scaleX(1); }
  .nav-cta, .menu-close, .menu-btn { display: none; }
}
@media (min-width: 620px) and (max-width: 1079.98px) { :root { --gutter: 24px; } }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: #fff; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(80% 60% at 50% -10%, rgba(15, 94, 156, .8), transparent 70%),
    radial-gradient(60% 50% at 50% 115%, rgba(240, 122, 40, .13), transparent 70%),
    linear-gradient(180deg, var(--navy-800), var(--navy));
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 96px 96px;
  -webkit-mask-image: linear-gradient(180deg, #000 10%, rgba(0, 0, 0, .25) 90%); mask-image: linear-gradient(180deg, #000 10%, rgba(0, 0, 0, .25) 90%);
}
.hero-grid { display: grid; gap: 36px; padding-block: 34px 52px; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 16px 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  font-weight: 700; font-size: 1rem; color: #dcebfa;
}
html[dir="rtl"] .kicker { padding: 5px 12px 5px 16px; }
.flag--kicker { width: 30px; height: auto; flex: none; }
html[dir="rtl"] .flag--kicker { transform: scaleX(-1); }
html[lang="en"] .kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .8125rem; }

.hero h1 { margin: 18px 0 14px; font-weight: 900; font-size: clamp(2.2rem, 1.1rem + 5.4vw, 4.5rem); line-height: 1.28; }
html[lang="en"] .hero h1 { line-height: 1.1; letter-spacing: -.015em; }
.hero-lead { max-width: 34em; font-size: clamp(1.0625rem, 1rem + .5vw, 1.3125rem); color: #d3e3f2; }
.hero-cta { display: grid; gap: 12px; margin-top: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 26px; }
.chips li {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px 5px 10px; border-radius: 999px;
  background: rgba(121, 184, 234, .13); color: #d9eafa; font-weight: 600; font-size: 1rem; line-height: 1.6;
}
html[dir="rtl"] .chips li { padding: 5px 10px 5px 14px; }
.chips .icon { width: 16px; height: 16px; color: var(--sky); stroke-width: 2.8; }

.hero-media { display: flex; justify-content: center; }
.hero-frame { position: relative; width: 100%; max-width: 440px; }
/* the broken ring of the logo, enlarged behind the film */
.hero-ring {
  position: absolute; top: 50%; left: 50%; width: 160%; max-width: none; height: auto; aspect-ratio: 1;
  transform: translate(-50%, -50%); color: rgba(121, 184, 234, .15); pointer-events: none;
}
.hero-card {
  position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden;
  background: #2f6fb0; border: 1px solid rgba(255, 255, 255, .16); box-shadow: var(--shadow-dark);
}
.hero-video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.hero-badge {
  position: absolute; inset-inline: 12px; bottom: 12px; display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 14px; background: rgba(8, 24, 42, .74); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-weight: 700; font-size: 1rem; line-height: 1.5;
}
.hero-badge .icon { width: 18px; height: 18px; color: var(--orange); }

@media (min-width: 560px) {
  .hero-cta { display: flex; flex-wrap: wrap; }
}
@media (min-width: 760px) {
  .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: center; gap: 36px; padding-block: 48px 68px; }
  .hero-frame { max-width: 350px; }
  .hero-card { aspect-ratio: 480 / 848; }
  .hero-video { object-position: 50% 50%; }
  .hero-media { justify-content: flex-end; }
  .hero h1 { font-size: clamp(2.6rem, 1rem + 4.2vw, 4.5rem); }
}
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; padding-block: 64px 88px; }
}
@media (min-width: 760px) {
  .hero-bg {
    background:
      radial-gradient(60% 80% at var(--glow-x, 12%) 20%, rgba(15, 94, 156, .85), transparent 70%),
      radial-gradient(40% 50% at 50% 120%, rgba(240, 122, 40, .12), transparent 70%),
      linear-gradient(180deg, var(--navy-800), var(--navy));
  }
  html[dir="ltr"] .hero-bg { --glow-x: 88%; }
}

/* -------------------------------------------------------------- sections */
.section { padding-block: clamp(60px, 9vw, 116px); }
.section--white { background: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(26px, 4vw, 48px); }
.section-head h2 { font-weight: 900; font-size: clamp(1.8rem, 1.3rem + 2.4vw, 2.9rem); color: var(--navy); }
.section-head h2::after {
  content: ""; display: block; width: 72px; height: 5px; margin-top: 14px; border-radius: 3px;
  background: var(--flag-stripe); box-shadow: 0 0 0 1px rgba(13, 27, 42, .14);
}
.section-head p { margin-top: 14px; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--muted); }
.section-head--dark h2 { color: #fff; }
.section-head--dark h2::after { box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); }
.section-head--dark p { color: #cfe0f0; }

/* -------------------------------------------------------------- services */
.services-grid { display: grid; gap: 14px; }
.service {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-content: start;
  padding: 20px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1);
  overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--orange);
  transform: scaleX(0); transition: transform .35s;
}
.service-icon {
  grid-row: span 2; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
  background: linear-gradient(140deg, #e9f3fc, #d2e6f8); color: var(--blue);
}
.service-icon .icon { width: 30px; height: 30px; stroke-width: 1.7; }
.service h3 { font-weight: 800; font-size: 1.1875rem; color: var(--navy); }
.service p { margin-top: 4px; color: var(--muted); }
@media (hover: hover) {
  .service:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); border-color: #c5d8ea; }
  .service:hover::after { transform: scaleX(1); }
}
@media (min-width: 680px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .service { display: block; padding: 28px 26px 26px; }
  .service-icon { width: 64px; height: 64px; margin-bottom: 18px; border-radius: 18px; }
  .service-icon .icon { width: 34px; height: 34px; }
  .service h3 { font-size: 1.3125rem; }
  .service p { margin-top: 6px; }
}
@media (min-width: 1000px) { .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }

/* --------------------------------------------------------------- heights */
.heights-grid { display: grid; gap: 22px; }
.heights-grid .section-head { margin-bottom: 4px; }

.hs {
  --sky-h: clamp(360px, 96vw, 470px);
  --top: 46px;
  --ground: 16px;
  --unit: calc((var(--sky-h) - var(--top) - var(--ground)) / var(--hmax));
  --fw: clamp(26px, 8vw, 56px);
  --pad: clamp(8px, 2.2vw, 26px);
  position: relative; border-radius: var(--r-lg); overflow: hidden; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-2);
}
.hs-sky {
  position: absolute; inset: 0 0 auto 0; height: var(--sky-h);
  background:
    radial-gradient(120px 60px at 82% 22%, rgba(255, 255, 255, .22), transparent 70%),
    radial-gradient(160px 70px at 30% 38%, rgba(255, 255, 255, .16), transparent 70%),
    linear-gradient(180deg, #0f5e9c 0%, #2f84c9 38%, #79b8ea 78%, #c3e0f6 100%);
}
.hs-line {
  position: absolute; inset-inline: 0; bottom: calc(var(--ground) + var(--m) * var(--unit));
  border-top: 1px dashed rgba(255, 255, 255, .42);
}
.hs-line > span {
  position: absolute; inset-inline-start: 8px; top: 0; transform: translateY(-50%); padding: 0 8px; border-radius: 999px;
  background: rgba(9, 38, 66, .62); color: #fff; font-weight: 700; font-size: .8125rem; line-height: 1.6; white-space: nowrap;
}
.hs-ground {
  position: absolute; inset: auto 0 0 0; height: var(--ground);
  background: linear-gradient(180deg, #e4d3b0, #cdb78e); border-top: 2px solid #b39a6b;
}
.hs-cols { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); padding-inline: var(--pad); }
.hs-col { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.hs-draw { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: var(--sky-h); padding-bottom: var(--ground); }
.hs-pole {
  --pw: calc(5px + var(--h) * .14px);
  position: relative; display: block; width: var(--pw); height: calc(var(--h) * var(--unit)); transform-origin: 50% 100%;
}
.hs-pole::before {
  content: ""; position: absolute; z-index: 1; top: -6px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #ffd98a 45%, #d99a2b);
}
.hs-shaft {
  position: absolute; inset: 0; clip-path: polygon(26% 0, 74% 0, 100% 100%, 0 100%);
  background: linear-gradient(90deg, #fff 0%, #e8eef4 38%, #9fb0c0 100%);
}
.hs-foot {
  position: absolute; bottom: 0; left: 50%; width: calc(var(--pw) * 2.6); height: 4px; transform: translateX(-50%);
  border-radius: 2px 2px 0 0; background: #73869a;
}
.hs-flag { position: absolute; top: 1px; left: 50%; width: var(--fw); margin-left: 1px; line-height: 0; }
html[dir="rtl"] .hs-flag { left: auto; right: 50%; margin: 0 1px 0 0; transform: scaleX(-1); }
.hs-flag-svg { display: block; width: 100%; height: auto; transform-origin: 0 50%; filter: drop-shadow(0 2px 3px rgba(9, 40, 70, .28)); }

.hs-cap { padding: 12px 0 0; font-weight: 700; font-size: 1rem; line-height: 1.2; color: var(--muted); white-space: nowrap; }
.hs-n { font-weight: 900; font-size: clamp(1.6rem, 6.4vw, 2.3rem); color: var(--navy); font-variant-numeric: tabular-nums; }
.hs-types { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); padding: 12px var(--pad) 18px; }
.hs-type {
  position: relative; margin-inline: 5px; padding-top: 9px; border-top: 2px solid var(--sky);
  text-align: center; font-weight: 700; font-size: .875rem; line-height: 1.45; color: var(--blue);
}
.hs-type::before, .hs-type::after { content: ""; position: absolute; top: -8px; width: 2px; height: 8px; background: var(--sky); }
.hs-type::before { inset-inline-start: 0; }
.hs-type::after { inset-inline-end: 0; }

.note {
  display: grid; gap: 16px; padding: 18px; border-radius: var(--r); background: var(--sky-50); border: 1px solid #d3e4f4;
}
.note p { display: flex; gap: 10px; font-weight: 600; color: var(--navy); }
.note p .icon { width: 22px; height: 22px; margin-top: 4px; color: var(--blue); }
.note .btn { justify-self: start; }

@media (min-width: 480px) {
  .hs-type { font-size: 1rem; }
  .hs-line > span { font-size: .875rem; inset-inline-start: 12px; }
}
@media (min-width: 1000px) {
  .heights-grid {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); grid-template-rows: auto auto;
    column-gap: 64px; row-gap: 28px; align-items: center;
  }
  .heights-grid .section-head { grid-column: 1; grid-row: 1; align-self: end; margin-bottom: 0; }
  .heights-grid .note { grid-column: 1; grid-row: 2; align-self: start; }
  .heights-grid .hs { grid-column: 2; grid-row: 1 / span 2; --fw: 54px; --sky-h: 480px; --pad: 22px; }
  .hs-pole { --pw: calc(6px + var(--h) * .2px); }
  .hs-pole::before { width: 10px; height: 10px; margin-left: -5px; top: -8px; }
  .hs-foot { height: 5px; }
  .hs-cap { font-size: 1.125rem; padding-top: 14px; }
}

/* ----------------------------------------------------------------- specs */
.specs-grid { display: grid; gap: 22px; }
.specs-grid .section-head { margin-bottom: 0; }
.specs-photo { position: relative; }
.specs-photo::before {
  content: ""; position: absolute; z-index: 0; inset-block-end: -10px; inset-inline-start: -8px; width: 46%; height: 46%;
  border-radius: var(--r-lg); background: var(--orange);
}
.specs-photo::after {
  content: ""; position: absolute; z-index: 0; inset-block-start: -10px; inset-inline-end: -8px; width: 34%; height: 34%;
  border-radius: var(--r-lg); background: var(--sky);
}
.specs-photo img {
  position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 62%;
  border-radius: var(--r-lg); box-shadow: var(--shadow-2); background: #cfd8e0;
}
.checklist { padding: 4px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); }
.checklist li { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.checklist li:last-child { border-bottom: 0; }
.tick { flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin-top: 2px; border-radius: 50%; background: #dff3e7; color: var(--kw-green); }
.tick .icon { width: 16px; height: 16px; stroke-width: 3; }
@media (min-width: 900px) {
  .specs-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); grid-template-rows: auto auto; column-gap: 64px; row-gap: 28px; align-items: center; }
  .specs-grid .section-head { grid-column: 2; grid-row: 1; align-self: end; }
  .specs-photo { grid-column: 1; grid-row: 1 / span 2; }
  .specs-photo::before { inset-block-end: -16px; inset-inline-start: -16px; }
  .specs-photo::after { inset-block-start: -16px; inset-inline-end: -16px; }
  .specs-photo img { aspect-ratio: 3 / 4; object-position: 50% 50%; }
  .checklist { grid-column: 2; grid-row: 2; align-self: start; padding: 6px 26px; }
}

/* ----------------------------------------------------------------- steps */
.steps, .videos {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 20px; scroll-padding-inline: var(--gutter);
  -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #b9c9d9 transparent;
}
.step {
  flex: 0 0 min(72vw, 280px); scroll-snap-align: start; display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); transition: transform .25s, box-shadow .25s;
}
.step-photo { position: relative; aspect-ratio: 4 / 5; background: #d6e1ec; }
.step-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.step-n {
  position: absolute; inset-inline-start: 14px; bottom: -22px; display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 50%; background: var(--navy); color: #fff; border: 3px solid var(--paper);
  font-weight: 900; font-size: 1.25rem; line-height: 1; font-variant-numeric: tabular-nums;
}
.step-body { padding: 30px 16px 18px; }
.step h3 { font-weight: 800; font-size: 1.1875rem; color: var(--navy); }
.step p { margin-top: 4px; color: var(--muted); line-height: 1.7; }
@media (hover: hover) { .step:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); } }
@media (min-width: 900px) {
  .steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; overflow: visible; margin-inline: 0; padding: 0; }
}

/* -------------------------------------------------------------- projects */
.sub-title { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; font-weight: 800; font-size: 1.3125rem; color: var(--navy); }
.sub-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.projects-grid + .sub-title { margin-top: clamp(36px, 5vw, 56px); }

.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.project, .work {
  display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-1); transition: transform .25s, box-shadow .25s;
}
.project-photo, .work-photo { position: relative; overflow: hidden; background: #cfe0ef; }
.project-photo { aspect-ratio: 3 / 4; }
.work-photo { aspect-ratio: 16 / 9; }
.project-photo img, .work-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.project-photo--project-jaber-30m img { object-position: 50% 28%; }
.project-body { padding: 12px 14px 16px; }
.project-body h4 { font-weight: 800; font-size: 1.0625rem; color: var(--navy); }
.project-body p { display: flex; align-items: flex-start; gap: 5px; margin-top: 4px; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.project-body p .icon { width: 16px; height: 16px; margin-top: 5px; color: var(--blue); }

.badge {
  position: absolute; top: 10px; inset-inline-start: 10px; display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 11px 2px 8px; border-radius: 999px; font-weight: 800; font-size: .8125rem; line-height: 1.7;
}
html[dir="rtl"] .badge { padding: 2px 8px 2px 11px; }
.badge .icon { width: 14px; height: 14px; stroke-width: 3; }
.badge--done { background: rgba(255, 255, 255, .94); color: #0a6736; box-shadow: 0 2px 8px rgba(13, 27, 42, .18); }
.badge--progress { background: var(--orange); color: var(--ink); }
.badge--progress i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }

.project--plain { background: var(--navy); border-color: var(--navy); color: #fff; }
.project--plain .project-photo {
  display: grid; place-items: center; color: var(--sky);
  background: var(--pattern) 0 0 / 72px 72px, radial-gradient(90% 70% at 50% 0%, rgba(15, 94, 156, .9), transparent 75%), var(--navy-800);
}
.blueprint { width: 62%; height: auto; }
html[dir="rtl"] .blueprint { transform: scaleX(-1); }
.project--plain h4 { color: #fff; }
.project--plain .project-body p { color: #c5d9ec; }
.project--plain .project-body p .icon { color: var(--sky); }

.works-grid { display: grid; gap: 14px; }
@media (hover: hover) {
  .project:hover, .work:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
  .project:hover img, .work:hover img { transform: scale(1.05); }
}
@media (min-width: 520px) {
  .projects-grid { gap: 18px; }
  .project-body { padding: 16px 18px 20px; }
  .project-body h4 { font-size: 1.1875rem; }
  .badge { top: 14px; inset-inline-start: 14px; font-size: .875rem; }
}
@media (min-width: 720px) { .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
/* four across from 860px, so the low-resolution Jaber Al-Ahmad photo is never shown wider than ~400px */
@media (min-width: 860px) { .projects-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1080px) { .projects-grid { gap: 22px; } }

/* ---------------------------------------------------------------- videos */
.video { flex: 0 0 min(66vw, 270px); scroll-snap-align: start; }
.video-card {
  position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--r); background: var(--navy-900);
  box-shadow: var(--shadow-2);
}
.video-card video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--navy-900); }
.video-play {
  position: absolute; inset: 0; display: grid; place-items: center; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer;
  color: var(--ink); background: linear-gradient(180deg, rgba(10, 30, 51, .05) 45%, rgba(10, 30, 51, .5));
}
.video-play .icon {
  width: 72px; height: 72px; padding: 22px 20px 22px 24px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4), 0 0 0 8px rgba(255, 255, 255, .22); transition: transform .25s, background-color .25s;
}
@media (hover: hover) { .video-play:hover .icon { transform: scale(1.08); background: var(--orange-hi); } }
.video-body { padding: 14px 4px 0; }
.video-body h3 { font-weight: 800; font-size: 1.1875rem; color: var(--navy); }
.video-body p { color: var(--muted); }
@media (min-width: 760px) {
  .videos { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; gap: 32px; overflow: visible; margin-inline: 0; padding: 0; }
}

/* --------------------------------------------------------------- contact */
.contact { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(60px, 9vw, 116px); background: var(--navy); color: #fff; }
.contact-bg {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(90% 60% at 50% 0%, rgba(15, 94, 156, .55), transparent 70%), linear-gradient(180deg, var(--navy-800), var(--navy-900));
}
.contact-bg::after { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 96px 96px; opacity: .8; }
.contact-grid { display: grid; gap: 26px; }
.contact-list { display: grid; gap: 12px; }
.contact-list li { display: flex; }
.contact-card {
  flex: 1; display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 76px; padding: 14px 16px; border-radius: var(--r);
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .15); color: #fff; text-decoration: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .2s, background-color .2s, border-color .2s;
}
.cc-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(121, 184, 234, .18); color: var(--sky); }
.contact-card--phone .cc-icon { background: var(--orange); color: var(--ink); }
.contact-card--wa .cc-icon { background: var(--wa); color: #fff; }
.cc-text { display: grid; flex: 1; min-width: 0; }
.cc-label { font-weight: 600; font-size: 1rem; color: #b6d1ea; line-height: 1.5; }
.cc-value { font-weight: 800; font-size: 1.0625rem; line-height: 1.6; overflow-wrap: anywhere; }
.cc-value[dir="ltr"] { font-size: 1.3125rem; font-variant-numeric: tabular-nums; line-height: 1.35; }
html[dir="rtl"] .cc-value[dir="ltr"] { text-align: right; }
.contact-card--mail .cc-value[dir="ltr"] { font-size: clamp(1rem, .55rem + 2.2vw, 1.1875rem); line-height: 1.5; }
.contact-card .icon-chev { width: 20px; height: 20px; color: rgba(255, 255, 255, .45); }
/* service area and working hours are facts, not links: outlined card and icon, no arrow, no hover lift */
.contact-card--info { background: rgba(255, 255, 255, .025); border-color: rgba(255, 255, 255, .12); }
.contact-card--info .cc-icon { background: none; border: 1.5px solid rgba(121, 184, 234, .38); }
.contact-card--info .cc-value { font-weight: 700; text-wrap: balance; }
.cc-note { font-weight: 600; font-size: 1rem; line-height: 1.5; color: #b6d1ea; }
@media (hover: hover) {
  a.contact-card:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .13); border-color: rgba(121, 184, 234, .65); }
}

/* brand panel beside the cards: one of our poles against the dawn sky, with the two main actions */
.contact-panel {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  min-height: 460px; border-radius: var(--r-lg); background: #17395b;
  border: 1px solid rgba(255, 255, 255, .16); box-shadow: var(--shadow-dark);
}
.cp-photo { position: absolute; inset: 0; z-index: -2; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 68% 30%; }
.contact-panel::before {      /* a light veil over the whole photo; the text block brings its own, darker fade */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 30, 51, .3) 0%, rgba(10, 30, 51, .04) 32%, rgba(10, 30, 51, .16) 100%);
}
.cp-kicker {
  position: absolute; top: 14px; inset-inline-start: 14px; background: rgba(8, 24, 42, .6); border-color: rgba(255, 255, 255, .22); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.cp-body {
  padding: 76px 18px 20px;
  background: linear-gradient(180deg, rgba(10, 30, 51, 0) 0, rgba(10, 30, 51, .38) 28px, rgba(10, 30, 51, .72) 62px, rgba(10, 30, 51, .9) 55%, rgba(10, 30, 51, .96) 100%);
}
.cp-name { font-weight: 900; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.375rem); line-height: 1.3; text-shadow: 0 2px 14px rgba(2, 12, 24, .45); }
html[lang="en"] .cp-name { font-size: clamp(1.4rem, .95rem + 2.4vw, 2.375rem); line-height: 1.2; letter-spacing: -.01em; }
.cp-tag { margin-top: 2px; font-weight: 700; font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); color: var(--sky); }
/* the two buttons share a row when both fit, otherwise each takes a full row */
.cp-cta { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 18px; }
.cp-cta .btn { flex: 1 1 auto; }

@media (max-width: 359.98px) { .cp-cta .btn { padding-inline: 12px; gap: .45em; } }
@media (min-width: 700px) and (max-width: 959.98px) {
  .contact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 700px) {
  .cp-kicker { top: 20px; inset-inline-start: 20px; }
  .cp-body { padding: 84px 28px 28px; }
}
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: stretch; }
}

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--navy-900); color: #c7d7e6; }
.footer-grid { display: grid; gap: 22px; padding-block: 40px 26px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-logo { flex: none; width: 86px; padding: 8px; border-radius: 16px; background: #fff; }
.footer-logo img { display: block; width: 100%; height: auto; }
.footer-name { font-weight: 800; font-size: 1.0625rem; line-height: 1.6; color: #fff; }
.footer-legal { margin-top: 4px; font-size: 1rem; line-height: 1.6; color: #a3bad0; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 2px 4px; margin-inline: -12px; }
.footer-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px;
  color: #dbe7f3; font-weight: 600; text-decoration: none; transition: background-color .2s, color .2s;
}
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
  /* room at the bottom so the floating WhatsApp button never sits on the last line */
  padding-block: 18px calc(88px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer-bottom p { display: grid; gap: 2px; font-size: 1rem; color: #a3bad0; }
.back-top {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: background-color .2s;
}
html[dir="rtl"] .back-top { padding: 0 12px 0 16px; }
.back-top .icon { width: 18px; height: 18px; }
@media (hover: hover) {
  .footer-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .back-top:hover { background: rgba(255, 255, 255, .1); }
}
@media (min-width: 720px) {
  .footer-bottom p { display: flex; flex-wrap: wrap; gap: 4px 0; }
  .footer-bottom p span + span::before { content: "·"; margin-inline: 12px; opacity: .6; }
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; padding-block: 52px 32px; }
  .footer-logo { width: 104px; }
  .footer-name { font-size: 1.1875rem; }
  .footer-nav ul { justify-content: flex-end; }
  /* wide screens: the button floats beside the footer line instead of below it, so reserve its corner on the left */
  .footer-bottom {
    padding-block: 20px 30px;
    padding-left: max(0px, calc(88px - var(--gutter) - max(0px, (100vw - var(--wrap) - var(--gutter) * 2) / 2)));
  }
}

/* ------------------------------------------------- floating WhatsApp button */
.fab-wa {
  position: fixed; z-index: 40; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff; box-shadow: 0 10px 24px rgba(6, 70, 34, .38), 0 2px 6px rgba(0, 0, 0, .2);
  transition: transform .25s, opacity .25s, visibility .25s;
}
.fab-wa .icon { width: 30px; height: 30px; }
.fab-wa.is-hidden, html.menu-open .fab-wa { opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9); }
@media (hover: hover) { .fab-wa:hover { transform: translateY(-3px) scale(1.05); } }
/* Left corner = away from the desktop scrollbar in both languages. Touch screens have no fixed scrollbar,
   so on the English page the button moves to the right corner, where it covers line ends, not line starts. */
@media (hover: none) and (pointer: coarse) {
  html[dir="ltr"] .fab-wa { left: auto; right: 16px; }
  .footer-bottom { padding-left: 0; padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* reveal-on-scroll: main.js hides only what is still below the fold, so nothing is lost without JS */
  .pre-reveal { opacity: 0; }
  .reveal-in { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--d, 0) * 90ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

  /* the poles grow out of the ground, one after the other */
  .hs.pre-reveal { opacity: 1; }
  .hs.pre-reveal .hs-pole { transform: scaleY(0); }
  .hs.reveal-in { animation: none; }
  .hs.reveal-in .hs-pole { animation: grow 1.1s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 140ms); }
  @keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

  .hs-flag-svg { animation: wave 3.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -650ms); }
  html.js .hs:not(.is-live) .hs-flag-svg { animation-play-state: paused; }   /* flags rest while off screen */
  @keyframes wave {
    0%, 100% { transform: skewY(-4deg) scaleX(1); }
    50% { transform: skewY(4deg) scaleX(.93); }
  }

  .badge--progress i { animation: pulse 1.6s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: .25; } }
}

@media print {
  .site-header, .fab-wa, .video-play, .hero-ring { display: none !important; }
  .pre-reveal { opacity: 1 !important; }
  .hs.pre-reveal .hs-pole { transform: none !important; }
  .steps, .videos { flex-wrap: wrap; overflow: visible; }
}
