/* Layout: the 2026 company profile carried to the web. A navy bar with the orange triangle on top, photos in the profile's frame
   (thin navy line around, orange line under), text blocks in navy, Montserrat for Latin and Tajawal for Arabic. */
:root {
  --paper: #F4F5F7;
  --surface: #FFFFFF;
  --ink: #2E363E;
  --muted: #4D5257;
  --line: #D3D9DD;
  --slate: #1F2830;
  --on-slate: #EEF2F5;
  --on-slate-muted: #A8B4BE;
  --slate-line: #34434F;
  --accent: #EF4111;
  --accent-text: #B8320D;
  --plate: #FFFFFF;
  --shade: rgba(14, 20, 25, 0.86);
  --hero-shade: rgba(16, 24, 30, 0.9);
  --logo-light: block;
  --dw-concrete: #C9D1D7;
  --dw-accent-soft: #FBD9CC;
  --dw-ply: #E9D8B8;
  --logo-dark: none;
  --hero-shade-2: rgba(16, 24, 30, 0.55);

  --f-display: "Montserrat", "Tajawal", "Segoe UI", system-ui, sans-serif;
  --f-body: "Montserrat", "Tajawal", "Segoe UI", system-ui, -apple-system, sans-serif;
  /* numbers and small labels (once a monospace face): Montserrat with even-width digits */
  --f-mono: "Montserrat", "Tajawal", "Segoe UI", system-ui, sans-serif;
  --frame: #1F2830;

  --s-xs: 0.8125rem;
  --s-sm: 0.9375rem;
  --s-md: 1.0625rem;
  --s-lg: 1.3125rem;
  --s-xl: 1.75rem;
  --s-2xl: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --s-hero: clamp(2.1rem, 1.3rem + 3.6vw, 3.7rem);
  --gutter: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --logo-light: none; --logo-dark: block; --frame: #44525E;
    --dw-concrete: #3A4752; --dw-accent-soft: #4A2A1F; --dw-ply: #5A4A30;
    --paper: #0F151A; --surface: #172027; --ink: #E5EAEE; --muted: #9AA6B0; --line: #2A3540;
    --slate: #0A1015; --on-slate: #EDF1F4; --on-slate-muted: #97A4AE; --slate-line: #24313B;
    --accent: #EF4111; --accent-text: #FF8A62; --plate: #F3F5F7; --shade: rgba(4, 7, 9, 0.9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --logo-light: none; --logo-dark: block; --frame: #44525E;
    --dw-concrete: #3A4752; --dw-accent-soft: #4A2A1F; --dw-ply: #5A4A30;
  --paper: #0F151A; --surface: #172027; --ink: #E5EAEE; --muted: #9AA6B0; --line: #2A3540;
  --slate: #0A1015; --on-slate: #EDF1F4; --on-slate-muted: #97A4AE; --slate-line: #24313B;
  --accent: #EF4111; --accent-text: #FF8A62; --plate: #F3F5F7; --shade: rgba(4, 7, 9, 0.9);
  color-scheme: dark;
}

/* Arabic pages: Tajawal first, and a little larger because it draws smaller than Montserrat */
:root[data-lang="ar"] {
  --f-display: "Tajawal", "Montserrat", "Segoe UI", system-ui, sans-serif;
  --f-body: "Tajawal", "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 106.25%;
}

/* language switching: paired copies, one shown */
:root:not([data-lang="ar"]) [data-l="ar"] { display: none !important; }
:root[data-lang="ar"] [data-l="en"] { display: none !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--s-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; margin: 0; text-wrap: balance; font-weight: 700; }
h1, h2 { font-weight: 800; }
p { margin: 0; }
.wrap { max-width: 1220px; margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.eyebrow {
  font-family: var(--f-mono); font-size: var(--s-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent-text); display: flex; gap: 0.6em; align-items: center;
}
:root[data-lang="ar"] .eyebrow { font-family: var(--f-body); letter-spacing: 0; font-weight: 700; text-transform: none; font-size: var(--s-sm); }

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

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em; justify-content: center;
  font: 600 var(--s-sm)/1 var(--f-body); text-decoration: none; cursor: pointer;
  padding: 0.95em 1.35em; border: 1.5px solid transparent; border-radius: 2px;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-text); }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-ghost:hover { background: rgba(127, 127, 127, 0.12); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* the profile's top bar: a navy line with the orange triangle hanging from it (scrolls away; the header under it stays) */
.brandbar { position: relative; z-index: 31; height: 10px; background: var(--slate); }
.brandbar::after { content: ""; position: absolute; top: 0; inset-inline-end: clamp(20px, 5vw, 64px); border-style: solid; border-width: 22px 24px 0 24px; border-color: var(--accent) transparent transparent transparent; }
@media (max-width: 560px) { .brandbar { height: 8px; } .brandbar::after { border-width: 16px 17px 0 17px; } }

/* header */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: block; flex: none; }
.brand img { width: 172px; height: auto; }
.logo-light { display: var(--logo-light, block) !important; }
.logo-dark { display: var(--logo-dark, none) !important; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { white-space: nowrap;
  text-decoration: none; font-size: var(--s-sm); font-weight: 600; color: var(--ink);
  padding: 8px 10px; border-radius: 2px;
}
.nav a:hover { color: var(--ink); background: var(--paper); }
.top-actions { display: flex; gap: 8px; align-items: center; }
.lang, .theme-btn {
  font: 600 var(--s-sm)/1 var(--f-body); background: transparent; color: var(--ink);
  border: 1.5px solid var(--line); padding: 0.75em 0.9em; border-radius: 2px; cursor: pointer;
}
.lang:hover, .theme-btn:hover { border-color: var(--ink); }
/* dark/light switch: same box as .lang; the icon follows the theme through the logo's switch variables */
.theme-btn { display: inline-flex; align-items: center; justify-content: center; }
.theme-btn svg { width: 1em; height: 1em; }
.theme-btn .ico-moon { display: var(--logo-light, block); }
.theme-btn .ico-sun { display: var(--logo-dark, none); }
.top .btn { padding: 0.75em 1em; }
.menu-btn { display: none; }

@media (max-width: 1240px) { /* header menu collapses here: 7 links + logo + buttons need ~1240px */
  .nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; font-size: var(--s-md); border-bottom: 1px solid var(--line); border-radius: 0; }
  .top-actions { margin-inline-start: auto; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 42px;
    background: transparent; border: 1.5px solid var(--line); color: var(--ink); border-radius: 2px; cursor: pointer;
  }
  .menu-btn svg { width: 20px; height: 20px; }
}
@media (max-width: 560px) { /* logo + language + dark/light + WhatsApp + menu must fit a 360px phone */
  .brand img { width: 116px; }
  .top-in { gap: 10px; min-height: 64px; }
  .top .btn-wa span { display: none; }
  .top .btn-wa { padding: 0.7em; }
  .top-actions { gap: 4px; }
  .lang, .theme-btn { padding-inline: 0.6em; }
  .menu-btn { width: 38px; }
}
@media (max-width: 359px) {
  .brand img { width: 92px; }
  .top-in { gap: 6px; }
  .lang, .theme-btn { padding-inline: 0.45em; }
  .top .btn-wa { padding: 0.7em 0.55em; }
  .menu-btn { width: 34px; }
}

/* Photos are never cut: every frame has the same shape (4:3; the home page slideshow 16:9) and the whole photo shows
   inside it. Where a photo has another shape, the space beside it is a blurred, slightly darkened copy of the same
   photo (--bg on the frame, set by build.mjs; site.js updates it on the stage cards). */
.slide::before, .card-photo::before, .step-photo::before, .gallery button::before {
  content: ""; position: absolute; inset: -28px; background: var(--bg, none) center / cover no-repeat;
  filter: blur(20px) brightness(0.7) saturate(1.1);
}
/* hero: opens like the company profile cover. The project photos change inside the profile's frame, the headline and the
   buttons sit in a navy block under them, then the four key facts. */
.hero { background: var(--paper); padding-top: clamp(16px, 3vw, 36px); }
.showcase { position: relative; isolation: isolate; overflow: hidden; background: var(--slate); border: 1px solid var(--frame); border-bottom: 5px solid var(--accent); width: 100%; aspect-ratio: 16 / 9; max-height: 620px; }
.slides { position: absolute; inset: 0; z-index: -1; cursor: zoom-in; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 0.8s ease, visibility 0s linear 0.8s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 0.8s ease; }
.slide img { position: relative; width: 100%; height: 100%; object-fit: contain; }
/* the project's name on its photo: a navy tab in the lower corner */
.slide figcaption { position: absolute; inset-inline-start: 0; bottom: 0; background: var(--slate); color: var(--on-slate); font-family: var(--f-display); font-weight: 700; font-size: var(--s-sm); line-height: 1.3; padding: 9px 16px; }
.hero-plate { background: var(--slate); color: var(--on-slate); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(24px, 3.4vw, 44px); }
.hero h1 { font-size: clamp(1.8rem, 1.05rem + 2vw, 2.6rem); line-height: 1.16; }
:root[data-lang="ar"] .hero h1 { line-height: 1.35; }
.hero-text { display: grid; gap: 14px; }
.hero-since { color: var(--accent); font-weight: 700; font-size: 1.1875rem; line-height: 1.35; }
.hero-lead { color: #C9D0D6; font-size: var(--s-md); max-width: 60ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.hero .btn-ghost { color: var(--on-slate); }
.sc-pause {
  position: absolute; inset-inline-end: 14px; bottom: 14px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center;
  background: rgba(31, 40, 48, 0.6); color: #FFFFFF; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 2px; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.sc-pause:hover { border-color: #FFFFFF; }
.sc-pause svg { width: 14px; height: 14px; }
.sc-pause .i-play, .showcase.is-paused .sc-pause .i-pause { display: none; }
.showcase.is-paused .sc-pause .i-play { display: block; }
.facts-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-top: 0; }
.fact { padding: 22px 26px; border-inline-start: 1px solid var(--line); display: grid; gap: 2px; align-content: start; }
.fact:first-child { border-inline-start: 0; }
.fact b { font-family: var(--f-mono); font-size: var(--s-xl); font-weight: 800; color: var(--accent); line-height: 1.15; font-variant-numeric: tabular-nums; }
.fact span { font-size: var(--s-sm); color: var(--muted); }
@media (max-width: 900px) {
  .facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { padding: 16px 16px; }
  .fact:nth-child(odd) { border-inline-start: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .showcase { aspect-ratio: 4 / 3; max-height: none; }
  .hero-plate { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .sc-pause { top: 10px; bottom: auto; inset-inline-end: 10px; }
}
/* sections */
.section { padding-block: clamp(56px, 8vw, 104px); }
.sec-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2 { font-size: var(--s-2xl); }
/* the profile's heading: a short orange line under it */
.sec-head h2::after { content: ""; display: block; width: 56px; height: 4px; background: var(--accent); margin-top: 14px; }
.sec-head p { color: var(--muted); max-width: 62ch; }
:root[data-lang="ar"] h2, :root[data-lang="ar"] h3 { line-height: 1.35; }

/* about */
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 80px); }
.about-lead { font-size: var(--s-lg); line-height: 1.55; max-width: 60ch; }
.about-main { display: grid; gap: 28px; align-content: start; }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.pillar { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.pillar:nth-child(odd) { padding-inline-end: 24px; }
.pillar:nth-child(even) { padding-inline-start: 24px; border-inline-start: 1px solid var(--line); }
.pillar h3 { font-size: var(--s-md); }
.pillar p { color: var(--muted); font-size: var(--s-sm); }
.statement { background: var(--surface); border: 1px solid var(--line); align-self: start; }
.statement dl { margin: 0; }
.statement div { padding: 22px 24px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.statement div:last-child { border-bottom: 0; }
.statement dt { font-family: var(--f-mono); font-size: var(--s-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-text); }
:root[data-lang="ar"] .statement dt { font-family: var(--f-body); letter-spacing: 0; font-weight: 600; font-size: var(--s-sm); }
.statement dd { margin: 0; }
.values-band { margin-top: clamp(48px, 6vw, 80px); display: grid; gap: 20px; }
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.value { position: relative; padding: 26px 20px 4px 0; display: grid; gap: 8px; align-content: start; }
.value + .value { padding-inline-start: 20px; border-inline-start: 1px solid var(--line); }
.value::before { content: ""; position: absolute; top: -7px; inset-inline-start: 0; width: 12px; height: 12px; background: var(--accent); transform: rotate(45deg); }
.value + .value::before { inset-inline-start: 20px; }
.value h3 { font-size: var(--s-lg); }
.value p { color: var(--muted); font-size: var(--s-sm); }
@media (max-width: 980px) {
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; row-gap: 28px; }
  .value, .value + .value { border-top: 2px solid var(--ink); border-inline-start: 0; padding: 22px 16px 0 0; }
  .value + .value::before, .value::before { inset-inline-start: 0; }
  .value:last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillar:nth-child(n) { padding-inline: 0; border-inline-start: 0; }
}

/* services */
.services { background: var(--surface); border-block: 1px solid var(--line); }
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.svc { padding: 26px 22px 28px; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.svc .code { font-family: var(--f-mono); font-size: var(--s-xs); color: var(--muted); letter-spacing: 0.08em; }
.svc h3 { font-size: var(--s-lg); }
.svc p { color: var(--muted); font-size: var(--s-sm); }
@media (max-width: 980px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .svc-grid { grid-template-columns: minmax(0, 1fr); } }

/* featured */
.featured { background: var(--slate); color: var(--on-slate); }
.featured .sec-head p { color: var(--on-slate-muted); }
.featured .eyebrow { color: #FF9C78; }
.feat-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.titleblock { border: 1px solid var(--slate-line); }
.titleblock div { display: grid; grid-template-columns: 112px minmax(0, 1fr); border-bottom: 1px solid var(--slate-line); }
.titleblock div:last-child { border-bottom: 0; }
.titleblock dt, .titleblock dd { margin: 0; padding: 12px 14px; font-size: var(--s-sm); }
.titleblock dt { font-family: var(--f-mono); font-size: var(--s-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--on-slate-muted); border-inline-end: 1px solid var(--slate-line); }
:root[data-lang="ar"] .titleblock dt { font-family: var(--f-body); letter-spacing: 0; text-transform: none; font-size: var(--s-sm); }
.feat-side { display: grid; gap: 24px; }
.feat-side .btn { justify-self: start; color: var(--on-slate); }
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mosaic button { padding: 0; border: 0; background: var(--slate-line); cursor: zoom-in; overflow: hidden; border-radius: 2px; position: relative; aspect-ratio: 4 / 3; }
.mosaic img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.mosaic button:hover img { transform: scale(1.035); }
.mosaic .m0 { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.mosaic .more { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: var(--shade); color: var(--on-slate); font-weight: 600; font-size: var(--s-sm); }
@media (max-width: 900px) {
  .feat-grid { grid-template-columns: minmax(0, 1fr); }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic .m0 { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; }
  .mosaic .m5, .mosaic .m6, .mosaic .m7 { display: none; }
}

/* projects */
.proj-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
/* projects page: type filter above the cards; the pressed one is solid ink (paper text), so it reads in both themes */
.proj-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.proj-filter button {
  display: inline-flex; align-items: center; gap: 0.55em; font: 600 var(--s-sm)/1 var(--f-body); color: var(--ink); background: transparent;
  border: 1.5px solid var(--line); padding: 0.75em 1em; border-radius: 2px; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.proj-filter button:hover { border-color: var(--ink); }
.proj-filter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.proj-filter .n { font-family: var(--f-mono); font-size: var(--s-xs); color: var(--muted); }
.proj-filter button[aria-pressed="true"] .n { color: inherit; opacity: 0.7; }
.card { display: grid; grid-template-rows: auto 1fr; }
.card.big { grid-column: span 2; }
.card-photo { padding: 0; border: 1px solid var(--frame); border-bottom: 5px solid var(--accent); background: var(--line); cursor: zoom-in; position: relative; aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; display: block; width: 100%; }

.card-photo img { position: relative; width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.card-photo:hover img { transform: scale(1.035); }
.card-photo .count {
  position: absolute; inset-inline-end: 10px; bottom: 10px; background: var(--shade); color: var(--on-slate);
  font-family: var(--f-mono); font-size: var(--s-xs); padding: 4px 8px; border-radius: 2px;
}
.card-body { padding: 14px 0 4px; display: grid; gap: 8px; align-content: start; }
.card-body h3 { font-size: var(--s-lg); }
.card.big .card-body h3 { font-size: var(--s-xl); }
.tags { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--s-xs); color: var(--muted); }
.tags span { display: inline-flex; gap: 6px; }
.tags b { font-family: var(--f-mono); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); opacity: 0.75; }
:root[data-lang="ar"] .tags b { font-family: var(--f-body); letter-spacing: 0; text-transform: none; font-weight: 600; }
@media (max-width: 1080px) { .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .proj-grid { grid-template-columns: minmax(0, 1fr); }
  .card.big { grid-column: auto; }
}

/* design vs built */
.db-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.db-card { display: grid; grid-template-rows: auto 1fr; }
/* comparison slider: the design is clipped from the reading start to --pos, the built villa shows past it.
   touch-action pan-y keeps vertical page scrolling on phones while sideways drags move the line. */
.db-frame { --pos: 100%; position: relative; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: var(--line); border: 1px solid var(--frame); border-bottom: 5px solid var(--accent); cursor: ew-resize; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.db-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.db-design { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
:root[data-lang="ar"] .db-design { clip-path: inset(0 0 0 calc(100% - var(--pos))); }
.db-divider { position: absolute; top: 0; bottom: 0; inset-inline-start: var(--pos); width: 2px; margin-inline-start: -1px; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(14, 20, 25, 0.25); outline: none; }
.db-grip {
  position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; transform: translate(-50%, -50%); border-radius: 50%;
  display: grid; place-items: center; background: #FFFFFF; color: #2E363E; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); transition: background-color .15s ease, color .15s ease;
}
.db-grip svg { width: 22px; height: 22px; }
.db-divider:focus-visible .db-grip { outline: 3px solid var(--accent); outline-offset: 2px; }
.db-frame:hover .db-grip, .db-frame.is-dragging .db-grip { background: var(--accent); color: #FFFFFF; }
.db-tag {
  position: absolute; top: 12px; inset-inline-start: 12px; padding: 5px 10px; border-radius: 2px; font-size: var(--s-xs); font-weight: 600;
  background: rgba(14, 20, 25, 0.72); color: #FFFFFF; letter-spacing: 0.04em; pointer-events: none; transition: opacity .25s ease;
}
.db-tag-built { inset-inline-start: auto; inset-inline-end: 12px; background: var(--accent); }
.db-frame[data-view="design"] .db-tag-built, .db-frame[data-view="built"] .db-tag-design { opacity: 0; }
.db-switch { position: absolute; bottom: 12px; inset-inline-end: 12px; display: flex; padding: 3px; gap: 3px; border-radius: 3px; background: rgba(14, 20, 25, 0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.db-switch button { font: 600 var(--s-xs)/1 var(--f-body); color: #E3E9ED; background: transparent; border: 0; padding: 8px 12px; border-radius: 2px; cursor: pointer; }
.db-switch button[aria-pressed="true"] { background: #FFFFFF; color: #2E363E; }
.db-body { padding: 14px 0 4px; display: grid; gap: 8px; align-content: start; }
.db-body h3 { font-size: var(--s-lg); }
@media (max-width: 820px) { .db-grid { grid-template-columns: minmax(0, 1fr); } }

/* project list */
.list-wrap { margin-bottom: clamp(36px, 5vw, 56px); background: var(--surface); border: 1px solid var(--line); }
.list-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; justify-content: space-between; padding: 22px 22px 18px; border-bottom: 1px solid var(--line); }
.list-head h3 { font-size: var(--s-lg); }
.list-head p { color: var(--muted); font-size: var(--s-sm); margin-top: 4px; }
.filter { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filter input {
  font: inherit; font-size: var(--s-sm); color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 2px; padding: 10px 12px; width: min(280px, 100%);
}
.filter input:focus { border-color: var(--accent); outline: none; }
.filter .mono { font-size: var(--s-xs); color: var(--muted); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--s-sm); min-width: 560px; }
th, td { text-align: start; padding: 11px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--f-mono); font-size: var(--s-xs); font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); background: var(--paper); }
:root[data-lang="ar"] th { font-family: var(--f-body); letter-spacing: 0; text-transform: none; font-size: var(--s-sm); font-weight: 600; }
td.n { font-family: var(--f-mono); color: var(--muted); width: 56px; font-variant-numeric: tabular-nums; }
td.c { color: var(--muted); }
tbody tr:hover td { background: var(--paper); }
.list-foot { padding: 14px 22px; display: flex; justify-content: center; }
.list-foot .btn { color: var(--ink); }
.empty { padding: 28px 22px; color: var(--muted); }

/* stages */
.stage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step { padding: 0; border: 0; background: transparent; text-align: start; cursor: zoom-in; color: inherit; font: inherit; display: grid; grid-template-rows: auto 1fr; }
.step-photo { position: relative; aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; background: var(--line); border: 1px solid var(--frame); border-bottom: 5px solid var(--accent); }
.step-photo img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease, opacity .8s ease; }
.step-photo img.is-off { opacity: 0; }
.step:hover .step-photo img { transform: scale(1.035); }
.step-photo img.step-alt { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease, transform .4s ease; }
.step-photo img.step-alt.is-on { opacity: 1; }
.step-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 2px; background: rgba(6, 9, 12, 0.55); color: #fff; cursor: pointer; }
.step-arrow:hover, .step-arrow:focus-visible { background: var(--accent); }
.step-arrow svg { width: 20px; height: 20px; }
.step-prev { inset-inline-start: 8px; }
.step-next { inset-inline-end: 8px; }
:root[data-lang="ar"] .step-arrow svg { transform: scaleX(-1); }
.step.is-drawing { cursor: default; }
.step-draw .dw { display: block; width: 100%; height: 100%; direction: ltr; unicode-bidi: isolate; }
.dw-paper { fill: var(--surface); }
.dw-grid { fill: none; stroke: var(--line); stroke-width: 0.5; }
.dw-line { stroke: var(--ink); stroke-width: 1.4; fill: none; }
.dw-thin { stroke: var(--muted); stroke-width: 0.8; }
.dw-fill { fill: var(--dw-concrete); stroke: var(--ink); stroke-width: 1; }
.dw-accent-fill { fill: var(--dw-accent-soft); stroke: var(--accent); stroke-width: 1.4; }
.dw-bar { stroke: var(--accent); stroke-width: 1.6; fill: none; }
.dw-barfill { fill: var(--accent); }
.dw-thinbar, .dw-stirrup { stroke: var(--ink); stroke-width: 0.9; fill: none; }
.dw-mesh { stroke: var(--muted); stroke-width: 0.7; }
.dw-ply { fill: var(--dw-ply); stroke: var(--ink); stroke-width: 1; }
.dw-dim { stroke: var(--muted); stroke-width: 0.8; fill: none; }
.dw-lead { stroke: var(--muted); stroke-width: 0.6; }
.dw-dot { fill: var(--muted); }
.dw-boom { stroke: var(--accent); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.dw-t { font-family: var(--f-mono); font-size: 7px; font-weight: 500; fill: var(--muted); letter-spacing: 0.06em; }
.step-photo .count { position: absolute; inset-inline-end: 8px; bottom: 8px; background: var(--shade); color: var(--on-slate); font-family: var(--f-mono); font-size: var(--s-xs); padding: 3px 7px; border-radius: 2px; }
.step-body { padding: 14px 0 6px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-content: start; }
.step-no { font-family: var(--f-mono); font-size: var(--s-lg); font-weight: 800; color: var(--accent-text); line-height: 1.2; grid-row: span 2; font-variant-numeric: tabular-nums; }
.step-body h3 { font-size: var(--s-md); font-weight: 600; line-height: 1.35; }
.step-body p { color: var(--muted); font-size: var(--s-sm); line-height: 1.5; }
@media (max-width: 900px) { .stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .step:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 560px) { .step-body { grid-template-columns: minmax(0, 1fr); padding: 10px 0 4px; } .step-no { grid-row: auto; font-size: var(--s-md); } .step-body p { font-size: var(--s-xs); } }

/* why choose us: eight points, each under a navy line with a small orange triangle hanging from it (the top bar in miniature) */
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 28px; }
.why { position: relative; border-top: 3px solid var(--frame); padding-top: 22px; display: grid; gap: 8px; align-content: start; }
.why::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; border-style: solid; border-width: 10px 10px 0 10px; border-color: var(--accent) transparent transparent transparent; }
.why h3 { font-size: 1.125rem; }
.why p { color: var(--muted); font-size: var(--s-sm); }
@media (max-width: 980px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .why-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; } }

/* licences and certificates (about page) */
.creds-grid { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.credcard { padding: 24px 22px 26px; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.credcard dt { font-family: var(--f-display); font-weight: 700; font-size: var(--s-md); line-height: 1.35; }
.credcard dd { margin: 0; display: grid; gap: 6px; color: var(--muted); font-size: var(--s-sm); }
.credcard b { font-family: var(--f-mono); font-weight: 800; font-size: var(--s-lg); color: var(--accent-text); line-height: 1.2; font-variant-numeric: tabular-nums; unicode-bidi: isolate; text-align: start; }
:root[data-lang="ar"] .credcard b { text-align: right; }
@media (max-width: 900px) { .creds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .creds-grid { grid-template-columns: minmax(0, 1fr); } }

/* credentials */
.creds { background: var(--surface); border-block: 1px solid var(--line); }
.cred-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cred { padding: 28px 22px; border-inline-start: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.cred:first-child { border-inline-start: 0; padding-inline-start: 0; }
.cred b { font-family: var(--f-mono); font-weight: 800; font-size: var(--s-lg); color: var(--accent-text); }
.cred span { color: var(--muted); font-size: var(--s-sm); }
@media (max-width: 900px) {
  .cred-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cred:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .cred:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .cred-row { grid-template-columns: minmax(0, 1fr); }
  .cred:nth-child(n) { border-inline-start: 0; padding-inline-start: 0; }
  .cred:nth-child(n+2) { border-top: 1px solid var(--line); }
}

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.cdl { margin: 0; border-top: 1px solid var(--line); }
.cdl div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cdl dt { font-family: var(--f-mono); font-size: var(--s-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); padding-top: 3px; }
:root[data-lang="ar"] .cdl dt { font-family: var(--f-body); letter-spacing: 0; text-transform: none; font-size: var(--s-sm); font-weight: 600; }
.cdl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.cdl a { text-decoration: none; border-bottom: 1px solid var(--line); }
.cdl a:hover { border-color: var(--accent); }
.cdl .ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.mobiles { display: grid; gap: 8px; }
.mob { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.cdl .wa-link { font-size: var(--s-xs); font-weight: 600; color: var(--accent-text); border-bottom-color: currentColor; }
.map-link { margin-top: 18px; color: var(--ink); }
.form { background: var(--surface); border: 1px solid var(--line); padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; position: relative; }
.form::after { content: ""; position: absolute; inset-inline-end: -1px; top: -1px; width: 28px; height: 28px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%); }
:root[data-lang="ar"] .form::after { clip-path: polygon(0 0, 100% 0, 0 100%); }
.form h3 { font-size: var(--s-lg); }
.form > p { color: var(--muted); font-size: var(--s-sm); margin-top: -8px; }
.frow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: var(--s-xs); font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--s-sm); color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 2px; padding: 11px 12px; width: 100%;
}
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.form .btn { justify-self: start; }
.form .note { font-size: var(--s-xs); color: var(--muted); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .frow { grid-template-columns: minmax(0, 1fr); } .cdl div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* footer */
.foot { position: relative; overflow: hidden; background: var(--slate); color: var(--on-slate-muted); font-size: var(--s-sm); }
.foot::after { content: ""; position: absolute; bottom: 0; inset-inline-end: 0; width: 56px; height: 56px; background: var(--accent); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
:root[data-lang="ar"] .foot::after { clip-path: polygon(0 0, 0 100%, 100% 100%); }
.foot-in { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; align-items: center; padding-block: 28px; }
.foot .brand img { width: 210px; }
.foot-tag:empty { display: none; }
.foot-tag { color: var(--on-slate); font-family: var(--f-display); font-weight: 600; }
.foot .mono { font-size: var(--s-xs); }
.foot-ig { color: var(--on-slate); font-weight: 600; border-bottom: 1px solid currentColor; text-decoration: none; }
.foot-ig:hover { opacity: .75; }
.foot-social { display: inline-flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.foot-social a { display: inline-flex; align-items: center; gap: 8px; color: var(--on-slate); font-weight: 600; text-decoration: none; }
.foot-social a:hover { opacity: .75; }
.foot-social svg { width: 20px; height: 20px; flex: none; }

/* careers page */
.jobs-h { font-size: var(--s-lg); margin-bottom: 14px; }
.jobs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.jobs li { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.jobs li::before { content: ""; width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); flex: none; position: relative; top: -2px; }
.apply-steps { margin: 0; padding-inline-start: 1.4em; display: grid; gap: 12px; }
.apply-steps li::marker { color: var(--accent-text); font-weight: 600; }
.apply-steps a { color: inherit; font-weight: 600; }
.apply-steps .ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.apply-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-jobs { margin-top: 16px; font-size: var(--s-sm); color: var(--muted); }
.contact-jobs a { color: var(--ink); font-weight: 600; }
.contact-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.contact-btns .map-link { margin-top: 0; }
.contact-btns .btn-ghost { color: var(--ink); }

/* the profile's watermark: the white logo, faint, in the middle of every project and site photo */
.showcase::after, .card-photo::after, .step-photo::after, .db-frame::after, .gallery button::after, .mosaic button::after, .lb-stage::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: url("/img/watermark-2026.svg") center / auto 46% no-repeat; opacity: 0.26;
}
.lb-stage::after { background-size: auto min(42%, 320px); }
.mosaic button:has(.more)::after { display: none; }
.gallery button { position: relative; }
/* controls that sit on a photo stay above the watermark */
.db-divider, .db-tag, .db-switch, .step-arrow, .card-photo .count, .step-photo .count, .lb-nav { z-index: 2; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 60; background: rgba(6, 9, 12, 0.96); color: #EEF2F5; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.lb-bar { display: flex; align-items: center; gap: 16px; padding: 12px var(--gutter); }
.lb-title { font-family: var(--f-display); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-count { font-family: var(--f-mono); font-size: var(--s-xs); color: #A8B4BE; }
.lb-close { margin-inline-start: auto; background: transparent; color: inherit; border: 1.5px solid #3B4852; padding: 8px 14px; font: 600 var(--s-sm)/1 var(--f-body); border-radius: 2px; cursor: pointer; }
.lb-stage { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: 0 64px; min-height: 0; overflow: hidden; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; display: grid; place-items: center; background: rgba(30, 42, 51, 0.8); border: 0; color: #fff; cursor: pointer; border-radius: 2px; }
.lb-nav:hover { background: var(--accent); }
.lb-nav svg { width: 22px; height: 22px; }
.lb-prev { inset-inline-start: 8px; }
.lb-next { inset-inline-end: 8px; }
:root[data-lang="ar"] .lb-nav svg { transform: scaleX(-1); }
.lb-strip { display: flex; gap: 6px; overflow-x: auto; padding: 12px var(--gutter) 16px; scrollbar-width: thin; }
.lb-strip button { flex: none; width: 76px; height: 56px; padding: 0; border: 2px solid transparent; background: #1F2830; cursor: pointer; opacity: 0.55; border-radius: 2px; overflow: hidden; }
.lb-strip button[aria-current="true"] { border-color: var(--accent); opacity: 1; }
.lb-strip img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .lb-stage { padding: 0 8px; } .lb-nav { width: 40px; height: 52px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide { transition: none !important; }
  *, *::before, *::after { transition: none !important; }
}

/* ---- multi-page additions ---- */
.nav a[aria-current] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); }
a.lang { text-decoration: none; display: inline-flex; align-items: center; }

/* inner page heading: navy title block (the orange triangle is in the bar above the header) */
.page-head { position: relative; background: var(--slate); color: var(--on-slate); padding-block: clamp(36px, 6vw, 72px) clamp(32px, 5vw, 60px); overflow: hidden; }
.page-head .wrap { display: grid; gap: 16px; }
.page-head h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.1rem); max-width: 24ch; }
:root[data-lang="ar"] .page-head h1 { line-height: 1.3; }
.page-lead { color: #E3E9ED; max-width: 62ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-family: var(--f-mono); font-size: var(--s-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--on-slate-muted); }
:root[data-lang="ar"] .crumbs { font-family: var(--f-body); letter-spacing: 0; text-transform: none; font-size: var(--s-sm); }
.crumbs a { color: var(--on-slate); text-decoration: none; border-bottom: 1px solid var(--slate-line); }
.crumbs a:hover { border-color: var(--accent); }
.crumbs [aria-current] { color: #FFB394; }
.page-tags { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: var(--s-sm); color: var(--on-slate-muted); }
.page-tags b { color: var(--on-slate); font-weight: 600; margin-inline-end: 6px; }

/* "see more" links under a section */
.sec-more { margin-top: clamp(24px, 3vw, 36px); display: flex; flex-wrap: wrap; gap: 12px; }
.sec-more .btn-ghost { color: var(--ink); }

/* FAQ (services page): native <details>, so each answer opens without JS; the chevron turns when open */
.faq-list { display: grid; gap: 10px; max-width: 900px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 2px; }
.faq-item[open] { border-color: var(--ink); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; font: 600 var(--s-md)/1.45 var(--f-display);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-top: -5px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform .2s ease, margin-top .2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 5px; }
.faq-a { padding: 0 18px 18px; display: grid; gap: 10px; color: var(--muted); font-size: var(--s-sm); line-height: 1.7; }
.faq-a ol { margin: 0; padding-inline-start: 1.4em; display: grid; gap: 6px; }
.btn .arr { transition: transform .15s ease; }
.btn:hover .arr { transform: translateX(3px); }
:root[data-lang="ar"] .btn .arr { transform: scaleX(-1); }
:root[data-lang="ar"] .btn:hover .arr { transform: scaleX(-1) translateX(3px); }
.feat-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.feat-side .btn-primary { color: #fff; }

/* project cards link to their own pages */
a.card-photo { cursor: pointer; }
.card-body h3 a { text-decoration: none; }
.card-body h3 a:hover { color: var(--accent-text); }

/* project page */
.proj-detail { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.proj-side { display: grid; gap: 20px; position: sticky; top: 96px; }
.proj-side p { color: var(--muted); }
.proj-side .titleblock { background: var(--surface); border-color: var(--line); }
.proj-side .titleblock div { border-color: var(--line); }
.proj-side .titleblock dt { color: var(--muted); border-color: var(--line); }
.proj-side .btn { justify-self: start; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.gallery button { padding: 0; border: 1px solid var(--frame); background: var(--line); cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; }
.gallery img { position: relative; width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.gallery button:hover img { transform: scale(1.035); }
.db-grid.db-single { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
@media (max-width: 900px) { .proj-detail { grid-template-columns: minmax(0, 1fr); } .proj-side { position: static; } }

/* call-to-action box near the end of each page */
.cta-band { padding-block: clamp(48px, 7vw, 88px); }
.cta-box { position: relative; background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 4vw, 44px); display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.cta-box::after { content: ""; position: absolute; inset-inline-end: -1px; top: -1px; width: 28px; height: 28px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%); }
:root[data-lang="ar"] .cta-box::after { clip-path: polygon(0 0, 100% 0, 0 100%); }
.cta-box .sec-head { margin-bottom: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-actions .btn-ghost { color: var(--ink); }

/* footer links */
.foot-links { border-bottom: 1px solid var(--slate-line); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-block: 22px; }
.foot-nav a { color: var(--on-slate); text-decoration: none; font-weight: 500; }
.foot-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* 404 */
.nf-links { display: flex; flex-wrap: wrap; gap: 12px; }
.page-head .nf-links .btn-ghost { color: var(--on-slate); }

/* stage cards: the photo is the button, the text stays plain content */
article.step { cursor: default; }
.step-open { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
@media (max-width: 560px) { .step-arrow { width: 30px; height: 38px; } .step-arrow svg { width: 17px; height: 17px; } .step-prev { inset-inline-start: 4px; } .step-next { inset-inline-end: 4px; } }
.db-body h3 a { text-decoration: none; }
.db-body h3 a:hover { color: var(--accent-text); }
.page-head + .featured { border-top: 1px solid var(--slate-line); }

/* footer: office, phone and hours on every page */
.foot-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 40px; padding-block: 28px; border-bottom: 1px solid var(--slate-line); }
.foot-h { font-family: var(--f-mono); font-size: var(--s-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--on-slate-muted); margin-bottom: 8px; }
:root[data-lang="ar"] .foot-h { font-family: var(--f-body); letter-spacing: 0; text-transform: none; font-weight: 600; }
.foot-info address, .foot-info p:not(.foot-h) { font-style: normal; color: var(--on-slate); line-height: 1.75; }
.foot-info a { color: var(--on-slate); text-decoration: none; border-bottom: 1px solid var(--slate-line); }
.foot-info a:hover { border-color: var(--accent); }
@media (max-width: 760px) { .foot-info { grid-template-columns: minmax(0, 1fr); } }
/* the English copyright line always reads left to right and sits on the left, on Arabic pages too */
.foot-copy { flex-basis: 100%; text-align: left; }
/* on Arabic pages the orange corner is at the bottom left, where this line starts */
:root[data-lang="ar"] .foot-copy { padding-left: 52px; }
