/* =====================================================================
   Shatha Al-Madinah Contracting — main stylesheet
   Brand colours come from the official logo. To change a colour site-wide,
   edit the variables in :root below.
   ===================================================================== */

/* ---------- Fonts (self-hosted, open licences) ----------
   To use the licensed brand fonts later ("Saudi" for titles, "Kufyan Arabic"
   for text): put the .woff2 files in assets/fonts/ and change the two src
   lines marked BRAND below. Nothing else needs to change. */
@font-face { font-family: "SMC Head AR"; src: url("../fonts/alexandria-arabic.woff2") format("woff2"); /* BRAND: title font */
  font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "SMC Body AR"; src: url("../fonts/kufi-arabic.woff2") format("woff2"); /* BRAND: text font */
  font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900; font-display: swap; }

:root {
  --navy-950: #01131b;
  --navy-900: #021b26;
  --navy-850: #032433;
  --navy-800: #003142;   /* logo dark */
  --navy-700: #003e4f;   /* logo light */
  --teal-500: #2b7a8c;
  --copper-600: #a97c57; /* logo copper */
  --copper-400: #d8a072; /* logo light copper */
  --copper-200: #f0d3b6;
  --ivory: #f6f1ea;
  --ink: #0c2430;
  --white: #ffffff;
  --text: rgba(236, 243, 246, 0.92);
  --muted: rgba(208, 222, 228, 0.68);
  --line: rgba(255, 255, 255, 0.12);
  --glass-bg: linear-gradient(140deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035));
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset, 0 30px 80px -30px rgba(0, 0, 0, 0.6);
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --head: "SMC Head AR", "Montserrat", system-ui, sans-serif;
  --body: "SMC Body AR", "Montserrat", system-ui, sans-serif;
  --header-h: 84px;
}
html[lang="en"] { --head: "Montserrat", system-ui, sans-serif; --body: "Montserrat", system-ui, sans-serif; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy-900);
  background-image:
    radial-gradient(1200px 700px at 85% -10%, rgba(43, 122, 140, 0.25), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(169, 124, 87, 0.13), transparent 60%),
    radial-gradient(1000px 800px at 110% 80%, rgba(0, 62, 79, 0.55), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { line-height: 1.7; font-size: 16.5px; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--head); margin: 0; line-height: 1.3; color: var(--white); font-weight: 700; }
html[lang="en"] :is(h1, h2, h3) { letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--copper-400); color: var(--navy-900); }
:focus-visible { outline: 2px solid var(--copper-400); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--copper-400); color: var(--navy-900); border-radius: 10px; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 980px; }
.section { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.section.tight { padding-block: clamp(32px, 5vw, 56px) 0; }
.center { text-align: center; justify-content: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--head); font-size: 14px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--copper-400); margin-block-end: 18px;
}
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 12.5px; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: linear-gradient(90deg, var(--copper-400), transparent); }
[dir="rtl"] .eyebrow::before { background: linear-gradient(-90deg, var(--copper-400), transparent); }
.h2 { font-size: clamp(30px, 4.2vw, 52px); }
.h3 { font-size: clamp(22px, 2.4vw, 28px); }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 640px; margin-block-start: 16px; }
.center .lead { margin-inline: auto; }
.body-lg { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); margin-block: 20px 26px; }

/* ---------- Glass ---------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border-radius: var(--radius);
}

/* ---------- Buttons ---------- */
.btn {
  --pad: 14px 26px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad); border-radius: 999px; font-family: var(--head); font-weight: 600; font-size: 15.5px;
  line-height: 1.2; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease), color 0.3s;
  white-space: nowrap; isolation: isolate; overflow: hidden;
}
.btn .icon { width: 18px; height: 18px; flex: none; }
.btn-sm { --pad: 10px 18px; font-size: 14px; }
.btn-lg { --pad: 17px 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-copper { background: linear-gradient(135deg, var(--copper-400), var(--copper-600)); color: var(--navy-950); box-shadow: 0 12px 30px -10px rgba(216, 160, 114, 0.6); }
.btn-copper::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.9s var(--ease); }
.btn-copper:hover::after { transform: translateX(120%); }
.btn-copper:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(216, 160, 114, 0.75); }
.btn-glass { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); color: var(--white); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--copper-400); color: var(--copper-200); }
[dir="rtl"] .dir-icon { transform: scaleX(-1); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 600; color: var(--copper-400); }
.link-arrow .icon { width: 20px; transition: transform 0.4s var(--ease); }
.link-arrow:hover .icon { transform: translateX(6px); }
[dir="rtl"] .link-arrow:hover .icon { transform: scaleX(-1) translateX(6px); }
.icon { width: 22px; height: 22px; }

/* ---------- Progress + header ---------- */
.progress { position: fixed; inset-inline: 0; top: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--copper-600), var(--copper-400)); }
[dir="rtl"] .progress span { transform-origin: right; }

.site-header { position: fixed; inset-inline: 0; top: 0; z-index: 50; transition: background 0.5s var(--ease), box-shadow 0.5s, transform 0.5s var(--ease); }
.site-header::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s; background: rgba(2, 27, 38, 0.62); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); border-bottom: 1px solid var(--line); }
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }
.header-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 58px; height: auto; }
.brand-mark .lp-s, .brand-mark .lp-m-l { fill: #e9f0f3; }
.brand-mark .lp-c, .brand-mark .lp-m-r { fill: #c9d7dd; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: var(--head); font-size: 16px; color: var(--white); font-weight: 700; }
.brand-text small { font-size: 12.5px; color: var(--copper-400); letter-spacing: 0.06em; }
html[lang="en"] .brand-text small { text-transform: uppercase; letter-spacing: 0.22em; font-size: 10.5px; }
.main-nav { display: flex; gap: 6px; padding: 6px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.main-nav a { position: relative; padding: 8px 18px; border-radius: 999px; font-size: 15px; color: var(--muted); transition: color 0.3s, background 0.3s; }
.main-nav a:hover { color: var(--white); }
.main-nav a[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, 0.1); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { font-size: 14.5px; color: var(--text); padding: 8px 12px; border-radius: 10px; transition: color 0.3s; }
.lang-switch:hover { color: var(--copper-400); }
html[lang="ar"] .header-actions .lang-switch { font-family: "Montserrat", sans-serif; }
html[lang="en"] .header-actions .lang-switch { font-family: "SMC Body AR", sans-serif; }
.burger { display: none; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line); position: relative; background: rgba(255, 255, 255, 0.05); }
.burger span:not(.sr-only) { position: absolute; inset-inline: 13px; height: 1.6px; background: var(--white); transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 45; padding: calc(var(--header-h) + 24px) var(--gutter) 40px; background: rgba(1, 19, 27, 0.92); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); opacity: 0; transition: opacity 0.4s var(--ease); }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu a { font-family: var(--head); font-size: 28px; color: var(--white); padding: 12px 0; border-bottom: 1px solid var(--line); transform: translateY(16px); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.6s; }
.mobile-menu.is-open a { transform: none; opacity: 1; }
.mobile-menu a[aria-current="page"] { color: var(--copper-400); }
.mobile-menu .lang-switch { font-size: 20px; border: 0; color: var(--copper-400); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--header-h) + 24px) 64px; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: -6% 0; z-index: -3; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.hero-slide.is-active { opacity: 1; }
.cover { width: 100%; height: 100%; object-fit: cover; }
.hero-slide .cover { transform: scale(1.12); }
.hero-slide.is-active .cover { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.12) translate3d(0, 0, 0); } to { transform: scale(1.0) translate3d(0, -1.5%, 0); } }
.hero-shade { position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(1, 19, 27, 0.65) 0%, rgba(2, 27, 38, 0.55) 40%, rgba(2, 27, 38, 0.97) 100%),
    linear-gradient(90deg, rgba(0, 49, 66, 0.88), rgba(0, 49, 66, 0.25) 70%); }
[dir="rtl"] .hero-shade { background:
    linear-gradient(180deg, rgba(1, 19, 27, 0.65) 0%, rgba(2, 27, 38, 0.55) 40%, rgba(2, 27, 38, 0.97) 100%),
    linear-gradient(-90deg, rgba(0, 49, 66, 0.88), rgba(0, 49, 66, 0.25) 70%); }
.blueprint { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%); }
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-lines path { fill: none; stroke: rgba(216, 160, 114, 0.28); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 2400; stroke-dashoffset: 2400; }
.is-ready .hero-lines path { animation: draw 3.2s var(--ease) forwards; }
.is-ready .hero-lines path:nth-child(2) { animation-delay: 0.6s; }
.is-ready .hero-lines path:nth-child(3) { animation-delay: 1s; stroke: rgba(255, 255, 255, 0.08); }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr); align-items: center; gap: 40px; }
.hero-title { font-size: clamp(34px, 4.3vw, 56px); line-height: 1.28; margin-block: 4px 22px; }
.hero-title .line { white-space: normal; }
html[lang="en"] .hero-title { line-height: 1.06; font-size: clamp(34px, 4.6vw, 66px); }
.hero-title .line { display: block; overflow: hidden; padding-block: 0.06em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); }
.hero-title .line:nth-child(2) > span { transition-delay: 0.12s; }
.hero-title .line:nth-child(3) > span { transition-delay: 0.24s; color: transparent; background: linear-gradient(100deg, var(--copper-200), var(--copper-400) 45%, var(--copper-600)); -webkit-background-clip: text; background-clip: text; }
.is-ready .hero-title .line > span { transform: none; }
.hero-eyebrow, .hero-text, .hero-ctas { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.hero-text { font-size: clamp(17px, 1.5vw, 20px); color: var(--text); max-width: 580px; transition-delay: 0.5s; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-block-start: 28px; transition-delay: 0.7s; }
.is-ready :is(.hero-eyebrow, .hero-text, .hero-ctas) { opacity: 1; transform: none; }

.hero-emblem { position: relative; justify-self: center; width: min(360px, 100%); aspect-ratio: 1; display: grid; place-items: center; }
.emblem-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(216, 160, 114, 0.35);
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(216, 160, 114, 0.5) 85%, transparent 100%);
  -webkit-mask: radial-gradient(circle, transparent 69%, #000 70%, #000 71%, transparent 72%); mask: radial-gradient(circle, transparent 69%, #000 70%, #000 71%, transparent 72%);
  animation: spin 14s linear infinite; opacity: 0; transition: opacity 1.4s 1.4s; }
.is-ready .emblem-ring { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.emblem-glass { width: 72%; aspect-ratio: 1; border-radius: 38%; display: grid; place-items: center; transform: rotate(0deg) scale(0.9); opacity: 0; transition: opacity 1s 0.3s, transform 1.4s 0.3s var(--ease); }
.is-ready .emblem-glass { opacity: 1; transform: none; }
.emblem-mark { width: 74%; overflow: visible; }
.emblem-mark .lp-s, .emblem-mark .lp-m-l { fill: #eaf1f4; }
.emblem-mark .lp-c, .emblem-mark .lp-m-r { fill: #bfd0d7; }
.emblem-mark .lp { transform-box: fill-box; transform-origin: center; opacity: 0; transition: transform 1.3s var(--ease), opacity 0.9s; }
.emblem-mark .lp-s { transform: translateX(-40%); }
.emblem-mark .lp-c { transform: translateX(40%); }
.emblem-mark .lp-m-l, .emblem-mark .lp-m-r { transform: translateY(60%); transition-delay: 0.35s; }
.emblem-mark .lp-roof-l, .emblem-mark .lp-roof-r { transform: translateY(-120%); transition-delay: 0.85s; }
.emblem-mark .lp-bricks-l, .emblem-mark .lp-bricks-r { transform: scaleY(0); transform-origin: bottom; transition-delay: 1.15s; }
.is-ready .emblem-mark .lp { opacity: 1; transform: none; }
.is-ready .emblem-glass { animation: float 7s ease-in-out 2.4s infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }

.hero-stats-wrap { margin-block-start: clamp(28px, 4.5vh, 56px); }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 6px; opacity: 0; transform: translateY(30px); transition: opacity 1s 1s, transform 1.2s 1s var(--ease); }
.is-ready .hero-stats, .static-stats { opacity: 1; transform: none; }
.static-stats { grid-template-columns: repeat(4, 1fr); }
.stat { padding: 22px 26px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; inset-block: 22%; inset-inline-start: 0; width: 1px; background: var(--line); }
.stat-num { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: clamp(30px, 3.4vw, 46px); color: var(--white); line-height: 1.1; display: flex; align-items: baseline; gap: 6px; }
.stat-pre, .stat-suf { color: var(--copper-400); font-size: 0.55em; font-family: var(--head); }
.stat-label { color: var(--muted); font-size: 14.5px; margin-block-start: 6px; line-height: 1.6; }
.scroll-cue { position: absolute; bottom: 22px; inset-inline-start: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); letter-spacing: 0.1em; }
[dir="rtl"] .scroll-cue { transform: translateX(50%); }
.scroll-cue span { width: 22px; height: 36px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 12px; position: relative; }
.scroll-cue span::after { content: ""; position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--copper-400); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; min-height: 68svh; display: flex; align-items: flex-end; padding-block: calc(var(--header-h) + 60px) clamp(56px, 8vw, 96px); overflow: hidden; isolation: isolate; }
.page-hero-media { position: absolute; inset: -10% 0; z-index: -3; }
.page-hero-media .cover { animation: kenburns 14s linear forwards; }
.page-title { font-size: clamp(36px, 5.6vw, 72px); max-width: 900px; }
.crumbs { display: flex; gap: 10px; font-size: 14px; color: var(--muted); margin-block-end: 26px; }
.crumbs a:hover { color: var(--copper-400); }
.page-hero.nf { min-height: 100svh; align-items: center; }
.nf-mark { width: 160px; margin: 0 auto 20px; }
.nf-mark .lp { opacity: 1; transform: none; }
.hero-ctas.center { justify-content: center; opacity: 1; transform: none; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
[data-reveal="clip"] { opacity: 1; transform: none; }
[data-reveal="clip"] > img { clip-path: inset(100% 0 0 0); transform: scale(1.25); transition: clip-path 1.5s var(--ease), transform 2s var(--ease); transition-delay: inherit; }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="clip"].is-in > img { clip-path: inset(0 0 0 0); transform: none; }
.no-js [data-reveal], .no-js [data-reveal="clip"] > img { opacity: 1; transform: none; clip-path: none; }

/* ---------- Intro ---------- */
.intro-grid, .story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.intro-media, .story-media { position: relative; min-height: 560px; }
.intro-img { position: absolute; overflow: hidden; border-radius: var(--radius); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7); }
.intro-img.a { inset-inline-start: 0; top: 0; width: 76%; height: 78%; }
.intro-img.b { inset-inline-end: 0; bottom: 0; width: 52%; height: 50%; border: 6px solid var(--navy-900); }
.intro-badge { position: absolute; inset-inline-start: 6%; bottom: 6%; padding: 18px 24px; display: flex; align-items: center; gap: 14px; }
.intro-badge strong { font-family: "Montserrat", sans-serif; font-size: 44px; color: var(--copper-400); line-height: 1; }
.intro-badge span { font-size: 14px; color: var(--text); max-width: 110px; line-height: 1.5; }
.checks { display: grid; gap: 12px; margin-block-end: 30px; }
.checks li { display: flex; align-items: flex-start; gap: 12px; }
.checks .icon { width: 22px; height: 22px; flex: none; padding: 4px; border-radius: 50%; background: rgba(216, 160, 114, 0.15); color: var(--copper-400); margin-top: 4px; }

/* ---------- Section head ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-block-end: clamp(36px, 5vw, 60px); }
.section-head.center { justify-content: center; }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc { position: relative; padding: 34px 30px 30px; overflow: hidden; transition: transform 0.6s var(--ease), border-color 0.4s; }
.svc::before, .goal::before, .info-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.5s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(216, 160, 114, 0.16), transparent 45%); }
.svc:hover::before, .goal:hover::before, .info-card:hover::before { opacity: 1; }
.svc:hover { transform: translateY(-6px); border-color: rgba(216, 160, 114, 0.4); }
.svc-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; color: var(--copper-400); background: linear-gradient(140deg, rgba(216, 160, 114, 0.2), rgba(216, 160, 114, 0.04)); border: 1px solid rgba(216, 160, 114, 0.28); margin-block-end: 22px; }
.svc-icon .icon { width: 28px; height: 28px; }
.svc h3 { font-size: 20px; margin-block-end: 10px; }
.svc p { color: var(--muted); font-size: 15.5px; line-height: 1.8; }
.svc-num { position: absolute; top: 22px; inset-inline-end: 26px; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 14px; color: rgba(255, 255, 255, 0.18); letter-spacing: 0.1em; }
.svc-group + .svc-group { margin-block-start: clamp(56px, 8vw, 96px); }
.svc-group-head { display: flex; align-items: center; gap: 16px; margin-block-end: 28px; }
.svc-group-head span { font-family: "Montserrat", sans-serif; font-weight: 700; color: var(--copper-400); font-size: 15px; padding: 6px 12px; border: 1px solid rgba(216, 160, 114, 0.35); border-radius: 999px; }

/* ---------- Horizontal projects rail ---------- */
.rail-section { position: relative; height: 340vh; }
.rail-sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 4vh, 44px); overflow: hidden; padding-block-start: var(--header-h); }
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.rail-head .lead { max-width: 560px; }
.rail-viewport { overflow: visible; }
.rail-track { display: flex; gap: 24px; padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); will-change: transform; width: max-content; }
.rail-progress { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.rail-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--copper-600), var(--copper-400)); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .rail-progress span { transform-origin: right; }

/* ---------- Project cards ---------- */
.pcard { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); display: flex; flex-direction: column; transition: transform 0.6s var(--ease), border-color 0.4s; }
.pcard:hover { transform: translateY(-8px); border-color: rgba(216, 160, 114, 0.45); }
.pcard-rail { width: clamp(300px, 34vw, 460px); flex: none; }
.pcard-rail[data-reveal] { opacity: 1; transform: none; }
.pcard-hit { position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.pcard-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-850); }
.pcard-media .cover { transition: transform 1.2s var(--ease); }
.pcard:hover .pcard-media .cover { transform: scale(1.07); }
.pcard-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(2, 27, 38, 0.85)); }
.pcard-cat { position: absolute; top: 16px; inset-inline-start: 16px; z-index: 2; font-size: 12.5px; padding: 6px 12px; border-radius: 999px; background: rgba(2, 27, 38, 0.55); border: 1px solid rgba(255, 255, 255, 0.18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--white); }
.pcard-cat.static { position: static; display: inline-block; margin-block-end: 14px; }
.pcard-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.pcard-client { color: var(--copper-400); font-size: 14px; margin-block-end: 6px; }
.pcard-title { font-size: 19px; line-height: 1.5; margin-block-end: 10px; }
.pcard-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 14px; margin-block-end: 18px; }
.pcard-meta span { display: inline-flex; align-items: center; gap: 6px; }
.pcard-meta .icon { width: 16px; height: 16px; color: var(--copper-400); }
.pcard-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-block-start: 16px; border-top: 1px solid var(--line); }
.pcard-value small { display: block; font-size: 12.5px; color: var(--muted); }
.pcard-value strong { font-size: 18px; color: var(--white); font-family: var(--head); }
.pcard-value strong span { font-family: "Montserrat", sans-serif; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.badge .icon { width: 14px; height: 14px; }
.badge-done { background: rgba(83, 196, 155, 0.12); color: #8fe3c4; border: 1px solid rgba(83, 196, 155, 0.3); }
.badge-live { background: rgba(216, 160, 114, 0.14); color: var(--copper-200); border: 1px solid rgba(216, 160, 114, 0.35); }
.badge-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--copper-400); box-shadow: 0 0 0 0 rgba(216, 160, 114, 0.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(216, 160, 114, 0); } 100% { box-shadow: 0 0 0 0 rgba(216, 160, 114, 0); } }
.noimg { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px;
  background: radial-gradient(circle at 30% 20%, rgba(43, 122, 140, 0.55), transparent 60%), linear-gradient(140deg, var(--navy-700), var(--navy-950)); }
.noimg span { font-family: var(--head); font-size: clamp(30px, 4vw, 54px); font-weight: 700; color: rgba(255, 255, 255, 0.92); letter-spacing: 0.04em; }
.noimg-mark { width: 70px; opacity: 0.75; }
.noimg-mark .lp-s, .noimg-mark .lp-m-l { fill: #eaf1f4; }
.noimg-mark .lp-c, .noimg-mark .lp-m-r { fill: #bfd0d7; }
.noimg-lg { position: relative; min-height: 420px; border-radius: var(--radius); }

/* ---------- Projects page ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-block-end: 36px; }
.chip { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 15px; background: rgba(255, 255, 255, 0.03); transition: all 0.35s var(--ease); }
.chip:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.3); }
.chip.is-active { background: linear-gradient(135deg, var(--copper-400), var(--copper-600)); color: var(--navy-950); border-color: transparent; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pgrid .pcard.is-hidden { display: none; }

/* ---------- Project dialog ---------- */
.pdialog { width: min(1180px, calc(100vw - 24px)); max-height: calc(100svh - 24px); padding: 0; border: 1px solid var(--glass-border); border-radius: 26px; background: rgba(3, 30, 42, 0.86); color: var(--text); box-shadow: 0 50px 120px rgba(0, 0, 0, 0.6); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); overflow: auto; overscroll-behavior: contain; }
.pdialog::backdrop { background: rgba(1, 12, 18, 0.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pdialog[open] { animation: dlg 0.6s var(--ease); }
@keyframes dlg { from { opacity: 0; transform: translateY(30px) scale(0.98); } }
.pdialog-close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(2, 27, 38, 0.7); border: 1px solid var(--line); }
.pdialog-close:hover { border-color: var(--copper-400); color: var(--copper-400); }
.pd { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; }
.gallery { padding: 18px; }
.g-stage { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--navy-950); }
.g-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.6s; }
.g-slide.is-active { opacity: 1; }
.g-img { width: 100%; height: 100%; object-fit: contain; }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(2, 27, 38, 0.65); border: 1px solid rgba(255, 255, 255, 0.2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.g-nav:hover { border-color: var(--copper-400); }
.g-prev { inset-inline-start: 12px; }
.g-next { inset-inline-end: 12px; }
.g-prev .icon { transform: scaleX(-1); }
[dir="rtl"] .g-prev .icon { transform: none; }
[dir="rtl"] .g-next .icon { transform: scaleX(-1); }
.g-thumbs { display: flex; gap: 8px; margin-block-start: 10px; overflow-x: auto; }
.g-thumb { flex: none; width: 76px; height: 56px; border-radius: 10px; overflow: hidden; opacity: 0.5; border: 1px solid transparent; transition: opacity 0.3s; }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-thumb.is-active, .g-thumb:hover { opacity: 1; border-color: var(--copper-400); }
.pd-info { padding: 40px 34px 34px; }
.pd-title { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.45; margin-block-end: 24px; }
.pd-dl { display: grid; gap: 0; margin: 0 0 26px; }
.pd-dl div { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.pd-dl dt { color: var(--muted); font-size: 14.5px; }
.pd-dl dd { margin: 0; color: var(--white); text-align: end; font-weight: 600; }
.pd-sub { font-size: 17px; margin-block-end: 14px; color: var(--copper-400); }
.pbar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); overflow: hidden; margin-block-end: 26px; }
.pbar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--copper-600), var(--copper-400)); transition: width 1.4s var(--ease); }

/* ---------- Megaprojects ---------- */
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(255, 255, 255, 0.02); }
.mega-item { position: relative; padding: 46px 30px 40px; display: flex; flex-direction: column; gap: 10px; min-height: 260px; justify-content: flex-end; transition: background 0.6s var(--ease); overflow: hidden; }
.mega-item + .mega-item { border-inline-start: 1px solid var(--line); }
.mega-item::after { content: ""; position: absolute; inset: auto 0 0; height: 0; background: linear-gradient(0deg, rgba(216, 160, 114, 0.18), transparent); transition: height 0.7s var(--ease); }
.mega-item:hover::after { height: 100%; }
.mega-idx { position: absolute; top: 24px; inset-inline-start: 30px; font-family: "Montserrat", sans-serif; font-weight: 700; color: var(--copper-400); font-size: 14px; }
.mega-item strong { font-family: var(--head); font-size: clamp(34px, 3.6vw, 52px); color: var(--white); line-height: 1.1; position: relative; z-index: 1; }
html[lang="en"] .mega-item strong { letter-spacing: 0.04em; }
.mega-item span:last-child { color: var(--muted); font-size: 15px; position: relative; z-index: 1; }

/* ---------- Clients ---------- */
.clients { background: linear-gradient(180deg, transparent, rgba(246, 241, 234, 0.035) 30%, rgba(246, 241, 234, 0.035) 70%, transparent); }
.marquee { display: flex; overflow: hidden; gap: 18px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); direction: ltr; }
.marquee-track { display: flex; gap: 18px; flex: none; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee li { flex: none; width: 230px; height: 128px; border-radius: 18px; background: rgba(255, 255, 255, 0.94); display: grid; place-items: center; padding: 18px 22px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6); }
.marquee img { max-height: 88px; width: auto; max-width: 100%; object-fit: contain; filter: saturate(0.9); }
@keyframes marquee { to { transform: translateX(calc(-100% - 18px)); } }

/* ---------- Vision ---------- */
.vision { text-align: center; }
.vision .eyebrow { justify-content: center; }
.vision-text { font-family: var(--head); font-size: clamp(24px, 3.2vw, 40px); line-height: 1.75; color: var(--white); font-weight: 600; }
html[lang="en"] .vision-text { line-height: 1.45; }
.vision-text span { opacity: 0.16; transition: opacity 0.3s; }
.vision-text span.on { opacity: 1; }
.no-js .vision-text span { opacity: 1; }
.vision-2030 { display: inline-flex; align-items: baseline; gap: 10px; margin-block-start: 40px; padding: 10px 22px; border-radius: 999px; border: 1px solid rgba(216, 160, 114, 0.35); }
.vision-2030 span { color: var(--muted); font-size: 15px; }
.vision-2030 strong { font-family: "Montserrat", sans-serif; font-size: 26px; color: var(--copper-400); }
.vision-2030.small { margin-block-start: 22px; }

/* ---------- CTA ---------- */
.cta-section { padding-block-start: 0; }
.cta-panel { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: clamp(36px, 5vw, 64px); }
.cta-glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; inset-inline-end: -120px; top: -200px; background: radial-gradient(circle, rgba(216, 160, 114, 0.35), transparent 65%); filter: blur(10px); animation: float 9s ease-in-out infinite; pointer-events: none; }
.cta-panel > :not(.cta-glow) { position: relative; }

/* ---------- About ---------- */
.prose p { color: var(--muted); font-size: 18px; margin-block-start: 18px; }
.two-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.feature-card { padding: clamp(30px, 4vw, 48px); position: relative; overflow: hidden; }
.feature-card h2 { margin-block-end: 14px; }
.feature-card p { color: var(--muted); font-size: 17px; }
.copper-card { background: linear-gradient(140deg, rgba(216, 160, 114, 0.2), rgba(169, 124, 87, 0.06)); border-color: rgba(216, 160, 114, 0.3); }
.goals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.goal { padding: 30px; position: relative; overflow: hidden; }
.goal-num { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 38px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(216, 160, 114, 0.7); display: block; margin-block-end: 18px; }
.goal h3 { font-size: 19px; margin-block-end: 10px; }
.goal p { color: var(--muted); font-size: 15.5px; }
.docs-panel { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: clamp(30px, 4vw, 48px); }
.docs-panel p { color: var(--muted); margin-block-start: 8px; }
.docs-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.info-card { position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px; padding: 20px 22px; transition: transform 0.5s var(--ease), border-color 0.4s; }
a.info-card:hover { transform: translateY(-4px); border-color: rgba(216, 160, 114, 0.45); }
.info-card .svc-icon { margin: 0; flex: none; }
.info-card small { display: block; color: var(--muted); font-size: 13.5px; }
.info-card strong { color: var(--white); font-weight: 600; font-size: 16.5px; word-break: break-word; }
.map { overflow: hidden; padding: 0; height: 280px; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.35) contrast(1.05); }
.contact-form { padding: clamp(28px, 4vw, 44px); display: grid; gap: 18px; }
.contact-form h2 { margin-block-end: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field span { font-size: 14.5px; color: var(--muted); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--white); background: rgba(1, 19, 27, 0.45); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; transition: border-color 0.3s, background 0.3s, box-shadow 0.3s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--copper-400); background: rgba(1, 19, 27, 0.65); box-shadow: 0 0 0 4px rgba(216, 160, 114, 0.12); }
.field.invalid input, .field.invalid textarea { border-color: #e7877a; }
html[lang="ar"] .field input[dir="ltr"] { text-align: right; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.6em; font-size: 15px; }
.form-status.ok { color: #8fe3c4; }
.form-status.err { color: #f0a497; }
.contact-form button[disabled] { opacity: 0.7; cursor: progress; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(1, 19, 27, 0.2), rgba(1, 19, 27, 0.9)); padding-block: 72px 0; margin-block-start: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1.2fr; gap: 40px; }
.footer-brand p { color: var(--muted); margin-block: 18px 22px; max-width: 380px; font-size: 15.5px; }
.footer-title { font-size: 15px; color: var(--copper-400); margin-block-end: 18px; font-weight: 600; }
.footer-links { display: grid; gap: 10px; }
.footer-links a, .footer-contact a { color: var(--muted); transition: color 0.3s; }
.footer-links a:hover, .footer-contact a:hover { color: var(--white); }
.footer-contact { display: grid; gap: 14px; color: var(--muted); font-size: 15.5px; }
.footer-contact li, .footer-contact a { display: flex; align-items: flex-start; gap: 12px; }
.footer-contact .icon { width: 20px; height: 20px; color: var(--copper-400); flex: none; margin-top: 4px; }
.footer-bottom { margin-block-start: 56px; padding-block: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav, .header-cta { display: none; }
  .burger { display: block; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-emblem { display: none; }
  .svc-grid, .pgrid, .goals-grid { grid-template-columns: repeat(2, 1fr); }
  .mega-grid { grid-template-columns: repeat(2, 1fr); }
  .mega-item:nth-child(3) { border-inline-start: 0; }
  .mega-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .static-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .intro-grid, .story-grid, .two-cards, .contact-grid, .pd { grid-template-columns: 1fr; }
  .intro-media, .story-media { min-height: 420px; order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-panel, .docs-panel, .rail-head, .section-head { flex-direction: column; align-items: flex-start; }
  .section-head.center { align-items: center; }
  .pd-info { padding: 10px 22px 30px; }
}
@media (max-width: 700px) {
  :root { --header-h: 70px; }
  body { font-size: 16px; }
  .brand-mark { width: 48px; }
  .brand-text strong { font-size: 14.5px; }
  .header-actions { gap: 6px; }
  .hero { padding-block-end: 80px; }
  .hero-stats { grid-template-columns: 1fr; }
  .stat { padding: 16px 20px; }
  .stat + .stat::before { inset-inline: 20px; inset-block: 0 auto; width: auto; height: 1px; }
  .static-stats .stat:nth-child(odd)::before { display: none; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .svc-grid, .pgrid, .goals-grid, .mega-grid, .footer-grid, .field-row { grid-template-columns: 1fr; }
  .mega-item { min-height: 180px; }
  .mega-item + .mega-item { border-inline-start: 0; border-top: 1px solid var(--line); }
  .intro-media, .story-media { min-height: 340px; }
  .scroll-cue { display: none; }
  .rail-section { height: auto; }
  .rail-sticky { position: relative; height: auto; padding-block: 80px; }
  .rail-viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-block-end: 8px; }
  .rail-track { transform: none !important; }
  .pcard-rail { width: 84vw; scroll-snap-align: center; }
  .rail-progress { display: none; }
  .marquee li { width: 160px; height: 96px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  [data-reveal], [data-reveal="clip"] > img { opacity: 1; transform: none; clip-path: none; }
  .vision-text span { opacity: 1; }
  .rail-section { height: auto; }
  .rail-sticky { position: relative; height: auto; padding-block: 80px; }
  .rail-viewport { overflow-x: auto; }
  .rail-track { transform: none !important; }
}

@media (max-height: 860px) { .scroll-cue { display: none; } }
