/* Arabian Caesar Contracting Co. — site styles */

:root {
  --navy: #0a1a2f;
  --navy-2: #12294a;
  --navy-3: #1b3a63;
  --azure: #1e78d8;
  --azure-2: #4aa3ff;
  --amber: #f0a417;
  --sand: #f4efe6;
  --sand-2: #e7dfd0;
  --paper: #fbfaf7;
  --ink: #132033;
  --muted: #5a6575;
  --line: rgba(19, 32, 51, 0.12);
  --line-light: rgba(255, 255, 255, 0.16);

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;

  --radius: 4px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }

html[lang="ar"] body,
html[lang="ar"] button,
html[lang="ar"] input,
html[lang="ar"] select,
html[lang="ar"] textarea { font-family: var(--font-ar); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; inset-inline-start: -9999px; top: 8px; background: var(--azure); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }

:focus-visible { outline: 3px solid var(--azure-2); outline-offset: 2px; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--azure);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--amber); flex: none; }
.eyebrow-light { color: var(--azure-2); }

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  margin-bottom: 18px;
  text-wrap: balance;
}
.section-sub { color: var(--muted); max-width: 62ch; font-size: 18px; }

html[lang="ar"] .eyebrow,
html[lang="ar"] .h2,
html[lang="ar"] h1,
html[lang="ar"] .stats dd,
html[lang="ar"] .btn { font-family: var(--font-ar); text-transform: none; letter-spacing: 0; }
html[lang="ar"] .h2 { line-height: 1.3; font-size: clamp(28px, 3.6vw, 42px); }
html[lang="ar"] .eyebrow { font-size: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border-radius: var(--radius); border: 2px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--azure); color: #fff; }
.btn-primary:hover { background: #1866ba; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-whatsapp { background: #1fa855; color: #fff; margin-top: 8px; }
.btn-whatsapp:hover { background: #178a45; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 26, 47, 0.96);
  backdrop-filter: blur(8px);
  color: #fff;
  border-bottom: 1px solid var(--line-light);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 58px; height: auto; background: #fff; border-radius: 3px; padding: 3px 4px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-en { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: .06em; text-transform: uppercase; }
.brand-ar { font-family: var(--font-ar); font-size: 13px; color: rgba(255,255,255,.72); }

.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a {
  text-decoration: none; padding: 8px 12px; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.82);
}
html[lang="ar"] .nav a { font-family: var(--font-ar); letter-spacing: 0; font-size: 15px; }
.nav a:hover, .nav a.active { color: #fff; background: rgba(255,255,255,.08); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff;
  border-radius: var(--radius); min-height: 40px; padding: 0 12px; font-family: var(--font-ar); font-size: 15px;
}
html[lang="ar"] .lang-toggle { font-family: var(--font-body); }
.lang-toggle:hover { background: rgba(255,255,255,.1); }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; flex-direction: column; justify-content: space-between; }
.menu-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ---------- Hero: scroll scene ---------- */
/* Static by default (no JS / reduced motion): a still hero with the headline over the street.
   main.js adds .is-live, pins the stage and draws the fly-through frames on the canvas and drives --brand, --bs, --by, --shade, --cue while you scroll. */
.scene { position: relative; color: #fff; background: var(--navy); }
.scene-stage {
  position: relative; overflow: hidden;
  height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); min-height: 520px;
}
.scene-media { position: absolute; inset: 0; }
.scene-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.scene-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.scene.is-live .scene-canvas { display: block; }

.scene-brand {
  position: absolute; left: 50%; top: 3%; z-index: 1;
  width: min(82vw, 43vh, 470px);
  transform: translate(-50%, calc(var(--by, 0) * 1px)) scale(var(--bs, 1));
  opacity: var(--brand, 0); pointer-events: none; transform-origin: 50% 40%; will-change: transform, opacity;
}
.scene-brand img { width: 100%; height: auto; }
.scene-brand img { filter: drop-shadow(0 0 2px rgba(255,255,255,.9)) drop-shadow(0 0 18px rgba(255,255,255,.75)); }

.scene-shade {
  position: absolute; inset: 0; opacity: var(--shade, 1); pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,26,47,.9) 0%, rgba(10,26,47,.62) 40%, rgba(10,26,47,0) 78%),
    linear-gradient(0deg, rgba(10,26,47,.88) 0%, rgba(10,26,47,0) 42%);
}
html[dir="rtl"] .scene-shade {
  background:
    linear-gradient(270deg, rgba(10,26,47,.9) 0%, rgba(10,26,47,.62) 40%, rgba(10,26,47,0) 78%),
    linear-gradient(0deg, rgba(10,26,47,.88) 0%, rgba(10,26,47,0) 42%);
}
.scene-copy { position: absolute; inset-inline: 0; bottom: 0; padding-bottom: clamp(36px, 8vh, 88px); z-index: 2; }
.scene h1 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(42px, 6.6vw, 88px); line-height: .95; letter-spacing: .005em;
  max-width: 13ch; margin-bottom: 20px; text-wrap: balance;
  text-shadow: 0 2px 24px rgba(4,12,24,.35);
}
html[lang="ar"] .scene h1 { line-height: 1.25; font-size: clamp(34px, 5.4vw, 64px); max-width: 16ch; }
.lead { font-size: clamp(16px, 1.5vw, 19px); max-width: 56ch; color: rgba(255,255,255,.86); margin-bottom: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.scene-cue {
  position: absolute; left: 50%; bottom: 22px; z-index: 2; transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--navy); opacity: var(--cue, 0); pointer-events: none;
  background: rgba(255,255,255,.82); padding: 8px 16px 10px; border-radius: 999px;
}
html[lang="ar"] .scene-cue { font-family: var(--font-ar); letter-spacing: 0; }
.scene-cue i { width: 2px; height: 22px; background: var(--azure); border-radius: 2px; animation: cue 1.6s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* live (scroll-driven) */
.scene.is-live { height: var(--scene-len, 340vh); }
.scene.is-live .scene-stage { position: sticky; top: var(--header-h); }
.scene.is-live .scene-cue { display: flex; }
.scene.is-live .scene-copy > * { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.scene.is-live.copy-in .scene-copy > * { opacity: 1; transform: none; }
.scene.is-live.copy-in .scene-copy > :nth-child(2) { transition-delay: .08s; }
.scene.is-live.copy-in .scene-copy > :nth-child(3) { transition-delay: .16s; }
.scene.is-live.copy-in .scene-copy > :nth-child(4) { transition-delay: .24s; }
.scene.is-live:not(.copy-in) .scene-copy { pointer-events: none; }
.scene.is-live:not(.copy-in) .scene-copy a { visibility: hidden; transition: visibility 0s .6s; }

@media (max-height: 720px) {
  .scene h1 { font-size: clamp(36px, 5.4vw, 64px); margin-bottom: 14px; }
  .lead { margin-bottom: 18px; }
}
@media (max-width: 640px) {
  .scene .lead { font-size: 15.5px; line-height: 1.5; }
  /* the copy spans the full width on phones, so darken evenly instead of from one side */
  .scene-shade, html[dir="rtl"] .scene-shade {
    background: linear-gradient(0deg, rgba(10,26,47,.94) 0%, rgba(10,26,47,.8) 45%, rgba(10,26,47,.35) 75%, rgba(10,26,47,.15) 100%);
  }
}
@media (max-width: 640px) and (max-height: 760px) {
  .scene .lead { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ---------- Stats band ---------- */
.stats-band { background: var(--navy); color: #fff; padding: 8px 0 40px; position: relative; }
.stats {
  position: relative; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-light);
}
.stats > div { display: flex; flex-direction: column; padding: 22px 20px 0; border-inline-end: 1px solid var(--line-light); }
.stats > div:first-child { padding-inline-start: 0; }
.stats > div:last-child { border-inline-end: 0; }
.stats dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 4vw, 52px); line-height: 1; order: -1; font-variant-numeric: tabular-nums; }
.stats dt { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.66); margin-top: 6px; }
html[lang="ar"] .stats dt { letter-spacing: 0; font-size: 15px; }
html[dir="rtl"] .stats dd { direction: ltr; text-align: right; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: absolute; inset-inline: 0; bottom: -1px; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, var(--azure-2), var(--amber));
  transform: scaleX(var(--sp, 0)); transform-origin: left center;
}
html[dir="rtl"] .scroll-progress { transform-origin: right center; background: linear-gradient(270deg, var(--azure-2), var(--amber)); }

/* ---------- Clients ---------- */
.clients { background: var(--navy-2); color: #fff; padding: 28px 0 32px; }
.clients-title { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 14px; }
html[lang="ar"] .clients-title { font-family: var(--font-ar); letter-spacing: 0; }
.client-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.client-list li {
  border: 1px solid var(--line-light); border-radius: 999px; padding: 6px 14px;
  font-size: 15px; font-weight: 500; color: rgba(255,255,255,.88); white-space: nowrap;
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-sand { background: var(--sand); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy .section-sub { color: rgba(255,255,255,.72); }
.section-head { margin-bottom: 44px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-grid > div > p { color: #2c3a4e; }
.vision { margin-top: 28px; padding: 24px 26px; background: var(--sand); border-inline-start: 4px solid var(--azure); }
.vision h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 18px; color: var(--azure); margin-bottom: 8px; }
html[lang="ar"] .vision h3 { font-family: var(--font-ar); letter-spacing: 0; }
.vision p { margin: 0; font-size: 19px; line-height: 1.5; }
.about-photo { margin: 0 0 20px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.values li { background: var(--paper); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.values span { font-family: var(--font-display); font-weight: 700; color: var(--amber); font-size: 15px; letter-spacing: .1em; }
.values b { font-weight: 600; line-height: 1.3; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; border: 1px solid var(--sand-2);
}
.service-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--sand-2); }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service:hover .service-img img { transform: scale(1.04); }
.service-body { padding: 20px 22px 24px; }
.service h3 { font-family: var(--font-display); font-weight: 700; font-size: 23px; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; margin-bottom: 8px; display: flex; gap: 10px; align-items: baseline; }
.service h3 small { font-size: 14px; color: var(--azure); letter-spacing: .1em; }
html[lang="ar"] .service h3 { font-family: var(--font-ar); text-transform: none; letter-spacing: 0; font-size: 20px; line-height: 1.4; }
.service p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- Projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  border: 1px solid var(--line); background: transparent; border-radius: 999px;
  padding: 8px 16px; font-size: 15px; font-weight: 500; color: var(--ink); min-height: 40px;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter .n { opacity: .55; margin-inline-start: 4px; font-size: 13px; }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 20px; }
.project {
  position: relative; display: block; text-align: start; padding: 0; border: 0; background: var(--navy);
  border-radius: var(--radius); overflow: hidden; color: #fff; aspect-ratio: 4 / 3.3; width: 100%;
}
.project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s, opacity .3s; opacity: .92; }
.project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,26,47,.95) 0%, rgba(10,26,47,.55) 38%, rgba(10,26,47,0) 65%); }
.project:hover img { transform: scale(1.05); opacity: 1; }
.project-info { position: absolute; inset-inline: 0; bottom: 0; padding: 20px 22px; z-index: 1; }
.project-loc { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--azure-2); display: block; margin-bottom: 4px; }
html[lang="ar"] .project-loc { letter-spacing: 0; }
.project-title { font-family: var(--font-display); font-weight: 700; font-size: 25px; line-height: 1.05; text-transform: uppercase; display: block; }
html[lang="ar"] .project-title { font-family: var(--font-ar); text-transform: none; font-size: 20px; line-height: 1.35; }
.project-client { display: block; margin-top: 6px; font-size: 14px; color: rgba(255,255,255,.75); }
.project-count {
  position: absolute; top: 14px; inset-inline-end: 14px; z-index: 1;
  background: rgba(10,26,47,.75); border-radius: 999px; padding: 3px 10px; font-size: 13px;
}
.project.featured { grid-column: span 2; aspect-ratio: auto; }
.project[hidden] { display: none; }

/* ---------- Municipal table ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line-light); border-radius: var(--radius); }
.muni-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.muni-table th, .muni-table td { padding: 16px 20px; text-align: start; border-bottom: 1px solid var(--line-light); vertical-align: top; }
.muni-table th { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); font-weight: 600; background: var(--navy-2); }
html[lang="ar"] .muni-table th { letter-spacing: 0; font-size: 14px; }
.muni-table td { font-size: 16px; }
.muni-table td:first-child { font-weight: 500; }
.muni-table .num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.muni-table tbody tr:last-child td { border-bottom: 0; }
.muni-table tfoot td { background: var(--navy-2); font-weight: 600; border-bottom: 0; }

/* ---------- Fleet ---------- */
.fleet-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: end; margin-bottom: 40px; }
.fleet-photo { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius); }
.fleet-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fleet-group { border-top: 4px solid var(--navy); padding-top: 16px; }
.fleet-group h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
html[lang="ar"] .fleet-group h3 { font-family: var(--font-ar); letter-spacing: 0; font-size: 18px; }
.fleet-group ul { list-style: none; margin: 0; padding: 0; }
.fleet-group li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.fleet-group li small { display: block; color: var(--muted); font-size: 13px; }
.fleet-group .qty { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--azure); flex: none; line-height: 1.2; }

/* ---------- Credentials ---------- */
.cred-grid { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--sand-2); border: 1px solid var(--sand-2); }
.cred-grid > div { background: var(--paper); padding: 22px 24px; }
.cred-grid dt { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
html[lang="ar"] .cred-grid dt { letter-spacing: 0; font-size: 14px; }
.cred-grid dd { margin: 0; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-list { list-style: none; margin: 8px 0 24px; padding: 0; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line-light); }
.contact-list a { text-decoration: none; font-size: 19px; font-weight: 500; overflow-wrap: anywhere; }
html[dir="rtl"] .contact-list a[dir="ltr"] { text-align: right; }
.contact-list a:hover { color: var(--azure-2); }
.c-label { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 600; }
html[lang="ar"] .c-label { letter-spacing: 0; font-size: 14px; }
.contact-form { background: var(--paper); color: var(--ink); padding: clamp(22px, 4vw, 36px); border-radius: var(--radius); display: grid; gap: 14px; }
.contact-form h3 { font-family: var(--font-display); font-weight: 700; font-size: 28px; text-transform: uppercase; }
html[lang="ar"] .contact-form h3 { font-family: var(--font-ar); font-size: 24px; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; font: inherit; font-weight: 400; font-size: 16px; color: var(--ink);
  border: 1px solid #c9cfd8; border-radius: var(--radius); padding: 11px 12px; background: #fff;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--azure); border-color: var(--azure); }
.contact-form .invalid { border-color: #c0392b; }
.form-note { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: #06111f; color: rgba(255,255,255,.7); padding: 32px 0; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 48px; height: auto; background: #fff; border-radius: 3px; padding: 2px 3px; }
.footer-brand b { display: block; color: #fff; font-weight: 600; }
.footer-brand span { font-family: var(--font-ar); font-size: 13px; }
.footer-meta { margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(4, 10, 20, .88); }
.lb-panel {
  position: relative; width: min(1180px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  background: var(--navy); color: #fff; border-radius: var(--radius); overflow: hidden;
  display: grid; grid-template-columns: 1fr 340px;
}
.lb-stage { position: relative; background: #000; display: grid; place-items: center; min-height: 320px; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); object-fit: contain; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--navy);
  font-size: 30px; line-height: 1; display: grid; place-items: center;
}
.lb-prev { inset-inline-start: 12px; }
.lb-next { inset-inline-end: 12px; }
html[dir="rtl"] .lb-prev, html[dir="rtl"] .lb-next { transform: translateY(-50%) scaleX(-1); }
.lb-count { position: absolute; bottom: 12px; inset-inline-start: 12px; background: rgba(0,0,0,.6); padding: 2px 10px; border-radius: 999px; font-size: 13px; }
.lb-close {
  position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; line-height: 1;
}
.lb-close:hover { background: rgba(255,255,255,.24); }
.lb-info { padding: 28px 24px; overflow-y: auto; }
.lb-meta { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--azure-2); font-weight: 600; margin-bottom: 6px; padding-inline-end: 36px; }
html[lang="ar"] .lb-meta { letter-spacing: 0; }
.lb-info h3 { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.05; text-transform: uppercase; margin-bottom: 10px; }
html[lang="ar"] .lb-info h3 { font-family: var(--font-ar); font-size: 24px; line-height: 1.35; }
.lb-client { color: rgba(255,255,255,.7); font-size: 15px; }
.lb-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 18px; }
.lb-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 3px; overflow: hidden; aspect-ratio: 1; background: #000; }
.lb-thumbs button[aria-current="true"] { border-color: var(--azure-2); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Motion (only when main.js enables it; see .motion on <html>) ---------- */
.motion .reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s ease, transform .9s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
}
.motion .reveal.in { opacity: 1; transform: none; }
.motion .section-head.reveal .eyebrow::before { width: 0; transition: width .8s cubic-bezier(.2,.7,.2,1) .25s; }
.motion .section-head.reveal.in .eyebrow::before { width: 28px; }
.motion .project.reveal { transform: translateY(30px) scale(.97); }
.motion .project.reveal.in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.motion .project.reveal.in.tilting { transition: transform .12s linear, opacity .7s ease; }

/* clients: endless ticker */
.motion .clients .wrap { max-width: none; padding-inline: 0; }
.motion .clients-title { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.motion .client-track {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.motion .client-list { flex-wrap: nowrap; gap: 0; width: max-content; animation: ticker var(--ticker, 60s) linear infinite; }
.motion .client-list li { margin-inline-end: 10px; }
.motion .client-track:hover .client-list { animation-play-state: paused; }
html[dir="rtl"].motion .client-list { animation-name: ticker-rtl; }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes ticker-rtl { to { transform: translateX(50%); } }

/* project cards: light that follows the pointer */
.project .glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.18), transparent 60%);
}
.project:hover .glow { opacity: 1; }
.project:focus-visible { outline-offset: 3px; }

/* slow drift on large photos */
.motion .about-photo img { transform: translateY(calc(var(--py, 0) * 1px)) scale(1.12); will-change: transform; }
.motion .fleet-wrap { overflow: hidden; border-radius: var(--radius); }
.motion .fleet-wrap .fleet-photo { transform: translateY(calc(var(--py, 0) * 1px)) scale(1.14); border-radius: 0; will-change: transform; }

/* services: lift */
.service { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, opacity .7s ease; }
.motion .service.reveal.in:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(10,26,47,.14); }
.values li { transition: background .25s; }
.values li:hover { background: #fff; }
.fleet-group li { transition: background .2s, padding .2s; }
.fleet-group li:hover { background: var(--sand); padding-inline: 8px; }

/* floating WhatsApp */
.wa-fab {
  position: fixed; z-index: 60; inset-inline-end: 18px; bottom: 18px; bottom: max(18px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px 0 14px;
  background: #1fa855; color: #fff; border-radius: 999px; text-decoration: none; font-weight: 600;
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
  transform: translateY(120%) scale(.9); opacity: 0; pointer-events: none;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .3s, background .2s;
}
.wa-fab.show { transform: none; opacity: 1; pointer-events: auto; }
.wa-fab:hover { background: #178a45; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .fleet-groups { grid-template-columns: repeat(2, 1fr); }
  .hide-sm { display: none; }
}
@media (max-width: 960px) {
  .services-grid, .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .project.featured { grid-column: span 2; }
  .about-grid, .contact-grid, .fleet-head { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: repeat(2, 1fr); }
  .lb-panel { grid-template-columns: 1fr; overflow-y: auto; }
  .lb-stage img { max-height: 60vh; }
}
@media (max-width: 860px) {
  .menu-toggle { display: flex; }
  /* backdrop-filter would make the header the containing block of the fixed menu */
  .site-header { backdrop-filter: none; background: var(--navy); }
  .nav {
    position: fixed; top: var(--header-h); inset-inline: 0; bottom: 0;
    background: var(--navy); flex-direction: column; padding: 16px var(--gutter);
    gap: 0; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 16px 4px; font-size: 20px; border-bottom: 1px solid var(--line-light); border-radius: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-en { font-size: 18px; }
  .brand img { width: 48px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div { padding: 18px 0 0; border-inline-end: 0; padding-inline-start: 0; }
  .stats > div:nth-child(n+3) { margin-top: 14px; }
  .wa-fab { padding: 0; width: 56px; justify-content: center; }
  .wa-fab span { display: none; }
  .services-grid, .projects-grid, .fleet-groups, .cred-grid, .values { grid-template-columns: 1fr; }
  .project.featured { grid-column: auto; aspect-ratio: 4 / 3.3; }
  .lb-thumbs { grid-template-columns: repeat(5, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene-cue i { animation: none; }
  *, *::before, *::after { transition: none !important; }
}
