/* ==========================================================
   Ebdaa Al-Waleed landing page
   Palette from the brand sheet: dark navy #0B1F3B, gold #D4AF37,
   silver #C9CDD1. The one motif is the slant of the logo's three
   bars (about 26 degrees): the hero photo is cut along it, the
   headings carry a small bar, the process steps climb like it.
   Layout: fixed side navigation, content to its side.
   ========================================================== */

:root {
  --navy: #0b1f3b;
  --navy-deep: #06142a;
  --navy-lift: #12305a;
  --gold: #d4af37;
  --gold-hi: #f3dc83;
  --gold-ink: #7a5f10;      /* gold dark enough for text on light surfaces */
  --silver: #c9cdd1;
  --silver-hi: #e9ecef;
  --paper: #f6f7f8;
  --ink: #0b1f3b;
  --ink-soft: #46546a;
  --on-navy: #f2f4f6;
  --on-navy-soft: #aab4c3;
  --line: rgba(11, 31, 59, 0.16);
  --line-navy: rgba(201, 205, 209, 0.18);

  --metal-gold: linear-gradient(100deg, #b98b1c 0%, #f3dc83 46%, #d4af37 72%, #a97c14 100%);
  --metal-silver: linear-gradient(100deg, #a3a9b1 0%, #eef0f2 40%, #c9cdd1 70%, #9299a2 100%);

  --font: "Alexandria", "Segoe UI", Tahoma, sans-serif;

  --s-0: 1.0625rem;
  --s-1: 1.33rem;
  --s-2: 1.66rem;
  --s-3: 2.07rem;
  --s-4: 2.6rem;

  --side: 224px;
  --bar: 64px;
  --wrap: 1120px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --radius: 4px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 0; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--s-0);
  font-weight: 300;
  line-height: 1.9;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
html:not([dir="rtl"]) body { line-height: 1.7; }

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.35; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd, figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

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

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  padding: 8px 16px; background: var(--gold); color: var(--navy-deep); font-weight: 500;
  border-radius: var(--radius);
}
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 10px 28px;
  font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.3; text-align: center;
  border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: filter 0.15s, background-color 0.15s, color 0.15s;
}
.btn-gold { background: var(--metal-gold); color: var(--navy-deep); }
.btn-gold:hover { filter: brightness(1.08); }
.btn-line { border-color: var(--silver); color: var(--on-navy); background: transparent; }
.btn-line:hover { background: var(--silver); color: var(--navy-deep); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-lift); }

/* ---------- side navigation ---------- */
.side {
  position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 50;
  width: var(--side);
  display: flex; flex-direction: column;
  /* every vertical size follows the window height, so the bar fits without scrolling */
  padding: clamp(12px, 3vh, 28px) 22px clamp(12px, 2.6vh, 24px);
  background: var(--navy-deep); color: var(--on-navy);
  border-inline-end: 1px solid var(--line-navy);
  overflow-y: auto;
}
.side-brand { display: grid; gap: clamp(6px, 1.4vh, 12px); text-decoration: none; }
.side-brand img { width: clamp(44px, 8.5vh, 72px); }
.side-brand-text { display: grid; line-height: 1.4; }
.side-name { font-weight: 800; font-size: clamp(1.1rem, 2.6vh, 1.35rem); }
html:not([dir="rtl"]) .side-name { font-size: clamp(1.05rem, 2.4vh, 1.2rem); white-space: nowrap; }
.side-sub { font-size: 0.78rem; color: var(--gold); font-weight: 400; }

.side-panel { display: flex; flex-direction: column; flex: 1; margin-top: clamp(10px, 2.6vh, 28px); }
.side-nav { display: grid; border-top: 1px solid var(--line-navy); }
.side-nav a {
  position: relative; padding: clamp(3px, 1vh, 10px) 0; padding-inline-start: 0;
  text-decoration: none; font-size: 0.96rem; line-height: 1.7; font-weight: 400; color: var(--on-navy-soft);
  border-bottom: 1px solid var(--line-navy);
  transition: color 0.15s, padding 0.15s;
}
.side-nav a:hover { color: #fff; }
.side-nav a.is-current { color: #fff; font-weight: 700; padding-inline-start: 30px; }
.side-nav a.is-current::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 50%; margin-top: -4px;
  width: 20px; height: 8px; background: var(--metal-gold);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.side-foot { display: grid; gap: clamp(6px, 1.3vh, 12px); margin-top: auto; padding-top: clamp(8px, 2vh, 24px); }
.side-phone { font-weight: 700; font-size: 1.08rem; line-height: 1.5; text-decoration: none; color: var(--silver); text-align: start; unicode-bidi: isolate; }
/* the digits always read left to right, but the number sits on the page's own starting side */
html[dir="rtl"] .side-phone, html[dir="rtl"] .call-phone { text-align: right; }
html:not([dir="rtl"]) .side-phone, html:not([dir="rtl"]) .call-phone { text-align: left; }
.side-phone:hover { color: var(--gold-hi); }
.side-foot .btn { min-height: clamp(36px, 6vh, 46px); padding: 4px 14px; font-size: 0.95rem; }
.lang-toggle {
  min-height: clamp(32px, 5.2vh, 40px); padding: 2px 14px;
  background: transparent; color: var(--silver);
  border: 1px solid var(--line-navy); border-radius: var(--radius);
  font-size: 0.92rem; font-weight: 500; cursor: pointer;
}
.lang-toggle:hover { border-color: var(--silver); color: #fff; }
.menu-toggle { display: none; }

main, .foot { margin-inline-start: var(--side); }

/* short windows: drop the least needed lines before a scrollbar is ever needed */
@media (min-width: 1001px) and (max-height: 560px) {
  .side-sub, .side-phone { display: none; }
}

/* ---------- scrollbars: slim gold bar on navy, cut like the logo ---------- */
html { scrollbar-width: thin; scrollbar-color: var(--gold) var(--navy-deep); }
.side, .modal { scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
@supports selector(::-webkit-scrollbar) {
  html, .side, .modal, .rail { scrollbar-width: auto; scrollbar-color: auto; }
  ::-webkit-scrollbar { width: 12px; height: 12px; }
  ::-webkit-scrollbar-track { background: var(--navy-deep); }
  ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #b98b1c, #f3dc83 45%, #d4af37 70%, #a97c14);
    border: 3px solid var(--navy-deep); border-radius: 8px;
  }
  ::-webkit-scrollbar-thumb:hover { border-width: 2px; }
  ::-webkit-scrollbar-corner { background: var(--navy-deep); }
  .side::-webkit-scrollbar { width: 8px; }
  .side::-webkit-scrollbar-thumb { border-width: 2px; }
  .rail::-webkit-scrollbar { height: 10px; }
  .rail::-webkit-scrollbar-track { background: var(--silver-hi); border-radius: 8px; }
  .rail::-webkit-scrollbar-thumb { background: var(--navy); border: 2px solid var(--silver-hi); }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center;
  background: var(--navy); color: var(--on-navy);
}
/* The photo sits on the far side, cut along the logo's slant. One cut-out only (on .hero-photo);
   the gold edge is its own thin strip, so nothing is clipped twice. */
.hero-cut { position: absolute; inset-block: 0; inset-inline-end: 0; width: 60%; }
.hero-cut::before {
  content: ""; position: absolute; inset: 0; z-index: 1; background: var(--metal-gold);
  clip-path: polygon(calc(100% - 12px) 0, 100% 0, 58% 100%, calc(58% - 12px) 100%);
}
.hero-photo {
  position: absolute; inset: 0; overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 11px) 0, calc(58% - 11px) 100%, 0 100%);
}
/* the photo is taller than its frame so it can drift as the page scrolls (--p runs 0 to 1) */
.hero-photo img {
  position: absolute; inset: -8% 0 auto 0; width: 100%; height: 116%; object-fit: cover;
  transform: translateY(calc(var(--p, 0) * 7%));
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(6, 20, 42, 0.5), rgba(6, 20, 42, 0.05) 45%, rgba(6, 20, 42, 0.45));
}
html:not([dir="rtl"]) .hero-cut::before { clip-path: polygon(42% 0, calc(42% + 12px) 0, 12px 100%, 0 100%); }
html:not([dir="rtl"]) .hero-photo { clip-path: polygon(calc(42% + 11px) 0, 100% 0, 100% 100%, 11px 100%); }

.hero-copy {
  position: relative;
  transform: translateY(calc(var(--p, 0) * -46px));
  opacity: calc(1 - var(--p, 0) * 1.25);
  width: min(54%, 620px);
  margin-inline-start: var(--gutter);
  padding-block: 56px;
}
.mark { position: relative; width: clamp(150px, 17vw, 230px); aspect-ratio: 900 / 778; margin-bottom: 30px; }
.mark-bar { position: absolute; inset: 0; width: 100%; height: 100%; }

/* The single orchestrated moment: the three bars slide in along their own slope. */
@media (prefers-reduced-motion: no-preference) {
  .mark-bar { animation: bar-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .mark-bar-1 { animation-delay: 0.15s; }
  .mark-bar-2 { animation-delay: 0.38s; }
  .mark-bar-3 { animation-delay: 0.68s; animation-duration: 1.1s; }
}
@keyframes bar-in {
  from { opacity: 0; transform: translate(26%, -12.6%); }
  to { opacity: 1; transform: none; }
}

.hero-name { display: grid; gap: 0.2em; }
.hero-name-main {
  font-size: clamp(2.9rem, 6.2vw, 5.6rem);
  font-weight: 800; line-height: 1.34; white-space: nowrap;
  background: var(--metal-silver); -webkit-background-clip: text; background-clip: text;
  color: transparent;
  /* the silver fill only paints inside the box: room below keeps the tail of the ain whole */
  padding-bottom: 0.34em; margin-bottom: -0.24em;
}
html:not([dir="rtl"]) .hero-name-main { font-size: clamp(2rem, 4.3vw, 3.8rem); line-height: 1.15; letter-spacing: -0.02em; }
.hero-name-sub { font-size: clamp(1.1rem, 2vw, 1.6rem); font-weight: 500; color: var(--gold); }
.hero-lead { margin-top: 1.4em; max-width: 30em; font-size: 1.15rem; line-height: 1.85; color: var(--on-navy-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2em; }

/* ---------- section shells ---------- */
.block { padding-block: clamp(64px, 8vw, 116px); }
.block-navy { background: var(--navy); color: var(--on-navy); }
.block-silver { background: var(--silver-hi); }

/* heading: a small gold bar, cut at the logo angle, leads the title */
.title {
  display: flex; align-items: center; gap: 16px;
  font-size: clamp(var(--s-3), 3.6vw, var(--s-4)); font-weight: 800;
  margin-bottom: 18px;
}
.title::before {
  content: ""; flex: none; width: 46px; height: 14px; background: var(--metal-gold);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.lead { font-size: 1.15rem; font-weight: 400; line-height: 1.8; max-width: 34em; color: var(--ink-soft); }
.block-navy .lead { color: var(--on-navy-soft); }

/* ---------- projects rail ---------- */
.rail-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: 34px; }
.rail-nav { display: flex; gap: 10px; }
.rail-btn {
  width: 52px; height: 52px; display: grid; place-items: center; cursor: pointer;
  background: var(--navy); border: 0; border-radius: var(--radius);
}
.rail-btn:hover { background: var(--navy-lift); }
.rail-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--gold-hi); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
html:not([dir="rtl"]) .rail-btn svg { transform: scaleX(-1); }

.rail {
  display: flex; gap: 18px;
  padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  padding-block: 4px 22px;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  scrollbar-width: thin; scrollbar-color: var(--navy) var(--silver-hi);
}
.project { flex: none; width: min(78vw, 372px); scroll-snap-align: start; }
.project-open {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; padding: 0;
  overflow: hidden; cursor: pointer; text-align: start;
  background: var(--navy) url("../assets/icon-192.png") center 36% / 120px auto no-repeat;
  border: 0; border-radius: var(--radius); color: #fff;
}
.project-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.project-open:hover .project-img { transform: scale(1.04); }
.project-open::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6, 20, 42, 0.96) 0%, rgba(6, 20, 42, 0.55) 36%, transparent 62%);
}
.project-cat {
  position: absolute; top: 0; inset-inline-start: 0; z-index: 1;
  padding: 6px 16px 6px 22px; padding-inline: 16px 26px;
  background: var(--metal-gold); color: var(--navy-deep); font-size: 0.85rem; font-weight: 700;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
html[dir="rtl"] .project-cat { clip-path: polygon(0 0, 100% 0, 100% 100%, 14px 100%); }
.project-meta { position: absolute; inset-inline: 0; bottom: 0; z-index: 1; display: grid; gap: 4px; padding: 22px; }
.project-name { font-weight: 800; font-size: 1.32rem; line-height: 1.45; }
.project-sub { font-size: 0.95rem; color: var(--silver); }
.rail-more { margin-top: 14px; color: var(--ink-soft); font-size: 1rem; }
.rail-more span:first-child { font-weight: 700; color: var(--ink); }

/* ---------- services: expanding list ---------- */
.svc { margin-top: 26px; border-top: 1px solid var(--line-navy); }
.svc-item { border-bottom: 1px solid var(--line-navy); }
.svc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 100%; padding: 22px 0; cursor: pointer; text-align: start;
  background: none; border: 0;
  font-size: clamp(1.3rem, 2.5vw, 2rem); font-weight: 700; color: var(--on-navy-soft);
  transition: color 0.15s;
}
.svc-head:hover { color: #fff; }
.svc-item.is-open .svc-head { color: #fff; }
/* plus that becomes a minus */
.svc-head i { position: relative; flex: none; width: 22px; height: 22px; }
.svc-head i::before, .svc-head i::after {
  content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 3px; margin-top: -1.5px;
  background: var(--gold); transition: transform 0.2s;
}
.svc-head i::after { transform: rotate(90deg); }
.svc-item.is-open .svc-head i::after { transform: none; }
.svc-body { display: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding-bottom: 34px; }
.svc-item.is-open .svc-body { display: grid; }
.svc-body.is-text { grid-template-columns: minmax(0, 1fr); }
.svc-body p { font-size: 1.15rem; color: var(--on-navy); max-width: 26em; }
.svc-body img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  clip-path: polygon(13% 0, 100% 0, 87% 100%, 0 100%);
}

/* ---------- about ---------- */
.about-logo { width: min(100%, 400px); margin-bottom: 40px; }
.statement {
  font-size: clamp(1.4rem, 2.5vw, 2.1rem); font-weight: 500; line-height: 1.75;
  max-width: 31em; margin-bottom: 0.9em;
}
html:not([dir="rtl"]) .statement { line-height: 1.5; }
.about-scope { max-width: 46em; color: var(--ink-soft); }
.record {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 52px; border-top: 3px solid var(--navy);
}
.record > div { padding: 20px 20px 4px 0; padding-inline: 0 20px; }
.record > div + div { border-inline-start: 1px solid var(--line); padding-inline-start: 20px; }
.record dt { font-size: 0.88rem; font-weight: 500; color: var(--gold-ink); }
.record dd { font-size: 1.12rem; font-weight: 700; line-height: 1.6; }

/* ---------- equipment inventory ---------- */
.fleet { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px clamp(20px, 3vw, 44px); margin-top: 44px; }
.fleet h3 {
  font-size: 1.05rem; font-weight: 700; color: var(--silver);
  padding-bottom: 12px; border-bottom: 3px solid var(--silver);
}
.fleet li { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); align-items: baseline; gap: 6px; padding-block: 12px; border-bottom: 1px solid var(--line-navy); }
.fleet b { font-size: var(--s-2); font-weight: 800; line-height: 1.3; color: var(--gold); font-variant-numeric: tabular-nums; }
.fleet span { font-size: 0.98rem; line-height: 1.6; color: var(--on-navy); }
.fleet-note { margin-top: 34px; max-width: 46em; color: var(--on-navy-soft); }

/* ---------- photo mosaic ---------- */
.mosaic {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 19vw, 280px);
  grid-auto-flow: dense; gap: 6px; background: var(--navy-deep); padding-block: 6px;
}
.mosaic li { position: relative; overflow: hidden; }
.m-big { grid-column: span 2; grid-row: span 2; }
.m-tall { grid-row: span 2; }
.m-wide { grid-column: span 2; }
.mosaic figure, .mosaic img { width: 100%; height: 100%; }
.mosaic img { object-fit: cover; }
.mosaic figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 34px 16px 12px;
  background: linear-gradient(to top, rgba(6, 20, 42, 0.92), transparent);
  color: #fff; font-size: 0.92rem; font-weight: 400; line-height: 1.5;
}

/* ---------- experience: horizontal years ---------- */
.years {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 50px; border-top: 3px solid var(--gold);
}
.years li { position: relative; padding: 30px 22px 0 0; padding-inline: 0 22px; }
.years li::before {
  content: ""; position: absolute; top: -10px; inset-inline-start: 0;
  width: 17px; height: 17px; background: var(--navy); transform: rotate(45deg);
}
.year { display: block; font-size: var(--s-4); font-weight: 800; line-height: 1.2; margin-bottom: 8px; }
.years p { font-size: 0.98rem; color: var(--ink-soft); }
.proofs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 50px; }
.proofs li { padding: 10px 18px; background: var(--navy); color: var(--on-navy); font-size: 0.96rem; font-weight: 400; border-radius: var(--radius); }

/* ---------- process: climbing steps ---------- */
.steps { counter-reset: step; display: grid; gap: 10px; margin-top: 36px; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); align-items: center;
  width: 58%; background: #fff; border-inline-start: 6px solid var(--gold);
}
.steps li:nth-child(2) { margin-inline-start: 10.5%; }
.steps li:nth-child(3) { margin-inline-start: 21%; }
.steps li:nth-child(4) { margin-inline-start: 31.5%; }
.steps li:nth-child(5) { margin-inline-start: 42%; }
.steps li::before {
  content: counter(step); text-align: center;
  font-size: var(--s-4); font-weight: 800; line-height: 1; color: var(--navy);
}
.steps li > div { padding: 18px 22px 18px 0; padding-inline: 0 22px; }
.steps h3 { font-size: 1.15rem; }
.steps p { font-size: 0.97rem; color: var(--ink-soft); }

/* ---------- contact ---------- */
.call { background: var(--metal-gold); color: var(--navy-deep); padding-block: clamp(44px, 6vw, 76px); }
.call-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.call h2 { font-size: clamp(var(--s-3), 4.4vw, 3.3rem); font-weight: 800; }
.call p { font-size: 1.15rem; font-weight: 400; margin: 0; }
.call-actions { display: grid; gap: 10px; justify-items: start; }
.call-phone { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; line-height: 1.2; text-decoration: none; unicode-bidi: isolate; }
.call-phone:hover { text-decoration: underline; }

.quote-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 22px; }
.quote-form h3 { grid-column: 1 / -1; font-size: var(--s-2); font-weight: 800; }
.f-wide { grid-column: 1 / -1; }
.quote-form label { display: grid; gap: 6px; }
.quote-form label > span { font-weight: 500; font-size: 0.95rem; color: var(--silver); }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%; min-height: 52px; padding: 10px 14px;
  background: var(--navy-deep); color: #fff; font-weight: 400;
  border: 1px solid rgba(201, 205, 209, 0.4); border-radius: var(--radius);
}
.quote-form select option { background: var(--navy-deep); color: #fff; }
.quote-form textarea { resize: vertical; line-height: 1.7; }
.quote-form input:focus-visible, .quote-form select:focus-visible, .quote-form textarea:focus-visible { outline-offset: 0; border-color: var(--gold); }
.quote-form [aria-invalid="true"] { border-color: #ff8a80; border-width: 2px; }
.form-error { margin: 0; padding: 10px 14px; background: #fbe9e7; color: #8c1d18; font-weight: 500; font-size: 0.95rem; border-radius: var(--radius); }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.form-note { margin: 0; font-size: 0.94rem; color: var(--on-navy-soft); }
.jobs { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line-navy); color: var(--on-navy-soft); }
.jobs a { color: var(--gold-hi); font-weight: 700; margin-inline-start: 8px; }

/* ---------- footer ---------- */
.foot { background: #fff; padding: 52px var(--gutter) 40px; text-align: center; color: var(--ink-soft); font-size: 0.92rem; }
.foot img { width: min(100%, 380px); margin: 0 auto 22px; }
.foot p { margin: 0; }
.foot-name { font-weight: 700; color: var(--ink); font-size: 1rem; }
.credit { margin-top: 8px !important; font-size: 0.82rem; }

/* ---------- floating WhatsApp (phones only; the side bar carries the number on wide screens) ---------- */
.wa-float {
  display: none;
  position: fixed; inset-inline-end: 16px; bottom: 16px; z-index: 40;
  width: 56px; height: 56px; place-items: center;
  background: #1f9d55; border-radius: 50%;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.55);
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- project modal (view only: X in the corner, backdrop closes) ---------- */
.modal {
  width: min(100% - 28px, 940px); max-height: calc(100dvh - 28px);
  padding: 0; border: 0; border-radius: var(--radius); overflow: auto;
  background: #fff; color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}
.modal::backdrop { background: rgba(6, 20, 42, 0.8); }
.modal-inner { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.modal-x {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2;
  width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
  background: var(--navy-deep); border: 0; border-radius: 50%;
}
.modal-x svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; fill: none; }
.modal-x:hover { background: var(--navy-lift); }
.modal-media { position: relative; min-height: 420px; background: var(--navy); }
.modal-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Thumbnails along the bottom of the photo when a project has more than one. */
.modal-thumbs {
  position: absolute; inset-inline: 0; bottom: 0; display: flex; gap: 8px; padding: 30px 12px 12px;
  background: linear-gradient(to top, rgba(6, 20, 42, 0.85), transparent);
}
.modal-thumb {
  width: 62px; height: 46px; padding: 0; overflow: hidden; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.55); border-radius: var(--radius); background: var(--navy);
}
.modal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal-thumb:hover { border-color: #fff; }
.modal-thumb[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.modal-media.is-empty { background: var(--navy) url("../assets/icon-192.png") center / 130px auto no-repeat; }
.modal-body { padding: clamp(22px, 4vw, 40px); padding-top: 60px; }
.modal-cat { font-size: 0.88rem; font-weight: 700; color: var(--gold-ink); margin-bottom: 4px; }
.modal-body h2 { font-size: var(--s-2); font-weight: 800; }
.modal-sub { color: var(--ink-soft); margin-bottom: 14px; }
.modal-content dl { margin-top: 18px; }
.modal-content dl > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 12px; padding-block: 11px; border-top: 1px solid var(--line); }
.modal-content dt { font-size: 0.9rem; color: var(--ink-soft); }
.modal-content dd { font-weight: 500; }

/* ---------- scroll animations (classes are added by main.js, so the page is complete without it) ---------- */
.rv {
  opacity: 0; transform: translate3d(0, 34px, 0);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--d, 0ms);
}
.rv.rv-side { transform: translate3d(-60px, 0, 0); }
html[dir="rtl"] .rv.rv-side { transform: translate3d(60px, 0, 0); }
/* photo tiles: a navy cover slides up off each picture while the picture settles from a slight zoom.
   Only transforms move, so the graphics card does the work and it stays smooth on large photos. */
.rv.rv-wipe { opacity: 1; transform: none; }
.rv.rv-wipe::after {
  content: ""; position: absolute; inset: -1px; background: var(--navy-deep);
  transform: translate3d(0, 0, 0);
  transition: transform 0.85s cubic-bezier(0.65, 0, 0.2, 1); transition-delay: var(--d, 0ms);
}
.rv.rv-wipe img { transform: scale(1.12); transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: var(--d, 0ms); }
.rv.is-in { opacity: 1; transform: none; }
.rv.rv-wipe.is-in::after { transform: translate3d(0, -102%, 0); }
.rv.rv-wipe.is-in img { transform: none; }
/* the gold bar in front of a heading draws itself */
.title.rv::before { transform: scaleX(0); transform-origin: inline-start; transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s; }
html[dir="rtl"] .title.rv::before { transform-origin: right; }
html:not([dir="rtl"]) .title.rv::before { transform-origin: left; }
.title.rv.is-in::before { transform: none; }
/* the year line draws across */
.years.rv-line { position: relative; border-top-color: transparent; }
.years.rv-line::after {
  content: ""; position: absolute; top: -3px; inset-inline-start: 0; width: 100%; height: 3px; background: var(--gold);
  transform: scaleX(0); transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
html[dir="rtl"] .years.rv-line::after { transform-origin: right; }
html:not([dir="rtl"]) .years.rv-line::after { transform-origin: left; }
.years.rv-line.is-in::after { transform: none; }

/* ---------- language switch curtain ---------- */
.curtain { position: fixed; inset: 0; z-index: 200; overflow: hidden; pointer-events: none; visibility: hidden; }
.curtain.is-closing, .curtain.is-opening { visibility: visible; pointer-events: auto; }
.curtain span {
  position: absolute; inset-block: 0; inset-inline: -40%;
  transform: translateX(-125%) skewX(-26deg);
}
.curtain-silver { background: var(--metal-silver); }
.curtain-gold { background: var(--metal-gold); }
.curtain-navy { background: var(--navy-deep); }
.curtain img {
  position: absolute; top: 50%; left: 50%; width: 150px; margin: -65px 0 0 -75px;
  opacity: 0; transform: scale(0.8);
}
/* closing: the bars arrive one behind the other, navy last, and cover the window */
.curtain.is-closing span { transform: translateX(0) skewX(-26deg); transition: transform 0.55s cubic-bezier(0.7, 0, 0.2, 1); }
.curtain.is-closing .curtain-gold { transition-delay: 0.09s; }
.curtain.is-closing .curtain-navy { transition-delay: 0.18s; }
.curtain.is-closing img { opacity: 1; transform: none; transition: opacity 0.25s 0.45s, transform 0.35s 0.45s; }
/* opening: they leave by the other side, navy first */
.curtain.is-opening span { transform: translateX(125%) skewX(-26deg); transition: transform 0.55s cubic-bezier(0.7, 0, 0.2, 1); }
.curtain.is-opening .curtain-navy { transition-delay: 0s; }
.curtain.is-opening .curtain-gold { transition-delay: 0.09s; }
.curtain.is-opening .curtain-silver { transition-delay: 0.18s; }
.curtain.is-opening img { opacity: 0; transition: opacity 0.15s; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .fleet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li { width: 66%; }
  .steps li:nth-child(2) { margin-inline-start: 8.5%; }
  .steps li:nth-child(3) { margin-inline-start: 17%; }
  .steps li:nth-child(4) { margin-inline-start: 25.5%; }
  .steps li:nth-child(5) { margin-inline-start: 34%; }
}

/* phones and tablets: the side bar becomes a top bar with a full-screen menu */
@media (max-width: 1000px) {
  html { scroll-padding-top: var(--bar); }
  main, .foot { margin-inline-start: 0; }
  main { padding-top: var(--bar); }
  .side {
    inset-block: 0 auto; inset-inline: 0; width: auto; height: var(--bar);
    flex-direction: row; align-items: center; gap: 12px;
    padding: 0 var(--gutter); overflow: visible;
    border-inline-end: 0; border-bottom: 1px solid var(--line-navy);
  }
  .side-brand { display: flex; align-items: center; gap: 10px; margin-inline-end: auto; }
  .side-brand img { width: 42px; }
  .side-name { font-size: 1.12rem; }
  .side-sub { display: none; }
  .menu-toggle {
    display: grid; place-content: center; gap: 7px; width: 46px; height: 46px; padding: 0; cursor: pointer;
    background: transparent; border: 1px solid var(--line-navy); border-radius: var(--radius);
  }
  .menu-toggle > span:not(.sr) { display: block; width: 22px; height: 2px; background: var(--silver); transition: transform 0.2s; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
  .side-panel {
    display: none; position: fixed; inset: var(--bar) 0 0 0; margin: 0;
    padding: 18px var(--gutter) 28px; background: var(--navy-deep); overflow-y: auto;
  }
  .side-panel.open { display: flex; }
  .side-nav a { padding: 15px 0; font-size: 1.3rem; font-weight: 700; color: var(--on-navy); }
  .side-foot { margin-top: 28px; }

  .hero { min-height: 0; display: block; }
  .hero-cut { position: relative; width: 100%; height: 44vh; min-height: 250px; }
  html[dir] .hero-cut::before { clip-path: polygon(0 calc(100% - 9px), 100% calc(76% - 9px), 100% 76%, 0 100%); }
  html[dir] .hero-photo { clip-path: polygon(0 0, 100% 0, 100% calc(76% - 8px), 0 calc(100% - 8px)); }
  .hero-copy { width: auto; margin-inline: var(--gutter); padding-block: 0 56px; margin-top: -54px; }
  .mark { width: 128px; margin-bottom: 18px; }
  .hero-name-main { white-space: normal; }

  .record { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .record > div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .record > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .years.rv-line::after { display: none; }
  .hero-copy { transform: none; opacity: 1; }
  .years { grid-template-columns: minmax(0, 1fr); border-top: 0; border-inline-start: 3px solid var(--gold); margin-top: 36px; }
  .years li { padding: 0 0 26px; padding-inline-start: 26px; }
  .years li::before { top: 14px; inset-inline-start: -10px; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 42vw; }
  .quote-form { grid-template-columns: minmax(0, 1fr); }
  .modal-inner { grid-template-columns: minmax(0, 1fr); }
  .modal-media { min-height: 0; aspect-ratio: 16 / 10; }
  .modal-body { padding-top: 22px; }
  .wa-float { display: grid; }
}

@media (max-width: 640px) {
  .svc-body { grid-template-columns: minmax(0, 1fr); }
  .svc-item.is-open .svc-body { gap: 18px; }
  .fleet { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li:nth-child(n) { width: auto; margin-inline-start: 0; grid-template-columns: 4rem minmax(0, 1fr); }
  .steps li:nth-child(2) { margin-inline-start: 4%; }
  .steps li:nth-child(3) { margin-inline-start: 8%; }
  .steps li:nth-child(4) { margin-inline-start: 12%; }
  .steps li:nth-child(5) { margin-inline-start: 16%; }
  .hero-actions .btn, .call-actions .btn { width: 100%; }
  .call-actions { width: 100%; }
  .modal-content dl > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .project-img, .svc-head i::after, .side-nav a { transition: none; }
}
