/* Salamati site. Hi-vis workwear palette (12-10-2026): safety orange, near-black, warm
   off-white, hi-vis yellow as a highlighter. Never purple or green (Ahmed), never the logo
   colours (Dad). Orange is a fill, never text on the light background (2.7:1). */
:root {
  --ink: #141414;
  --paper: #f4efe6;
  --white: #ffffff;
  --orange: #ff5b14;
  --yellow: #ffe500;
  --muted: #4a4640;
  --ghost: #cfc7b8;
  --line: rgba(20, 20, 20, 0.16);
  --display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --gutter: max(16px, 4vw);
  --max: 1180px;
  --radius: 14px;
  --hard: 6px 6px 0 var(--ink);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
html[lang="ar"] { --body: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6; overflow-x: clip;
}
html[lang="ar"] body { font-size: 18px; line-height: 1.75; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; margin: 0; line-height: 1.05; letter-spacing: -0.03em; }
html[lang="ar"] :is(h1, h2, h3, .hero-line, .fill-claim, .sticker, .tape, .num) { letter-spacing: 0; line-height: 1.3; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--yellow); padding: 10px 14px; z-index: 50; font-weight: 600; }
.skip:focus { top: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 3px solid var(--ink);
  font: 700 1rem/1 var(--display); text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn-big { min-height: 58px; padding: 0 28px; font-size: 1.1rem; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn-ghost:hover { box-shadow: 4px 4px 0 var(--orange); }
.btn-quote { background: var(--orange); color: var(--ink); min-height: 44px; padding: 0 18px; font-size: 0.95rem; }

/* ---------- header: a floating pill (gen3 dev site) ---------- */
.top { position: fixed; z-index: 20; top: 12px; inset-inline: 0; padding: 0 var(--gutter); }
.pill {
  max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 8px 22px; flex-wrap: wrap;
  padding: 8px 8px 8px 12px; border-radius: 999px; background: rgba(244, 239, 230, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
html[dir="rtl"] .pill { padding: 8px 12px 8px 8px; }
.brand { display: block; margin-inline-end: auto; }
.plate { display: block; padding: 2px 6px; } /* logo straight on the pill, no background (Ahmed 12-10) */
.plate img { display: block; width: 92px; height: auto; }
.nav { display: flex; gap: 4px 20px; }
.nav a { text-decoration: none; font-weight: 600; padding: 10px 2px; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--orange); }
.lang { font-weight: 600; text-decoration: none; padding: 10px 4px; }
.lang:hover { text-decoration: underline; }
main { padding-top: 110px; }
.page-index main { padding-top: 0; }
.menu, .nav-lang { display: none; }
@media (max-width: 760px) {
  .pill { border-radius: 26px; gap: 4px 8px; }
  .nav { display: none; order: 5; width: 100%; justify-content: space-around; border-top: 1px solid var(--line); }
  .pill.open .nav { display: flex; }
  .pill > .lang { display: none; } /* the Arabic button is wider; the language link moves into the menu */
  .pill.open .nav-lang { display: inline; font-weight: 600; text-decoration: none; padding: 10px 2px; }
  .plate img { width: 76px; }
  .btn-quote { min-height: 40px; padding: 0 12px; font-size: 0.85rem; }
  .menu { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ink); color: var(--paper); cursor: pointer; }
  .hero > .sun { width: 64px; top: 92px; inset-inline-end: 22px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; background: var(--ink); color: var(--paper); overflow: hidden; isolation: isolate;
  padding: clamp(130px, 20vh, 190px) var(--gutter) clamp(190px, 26vw, 300px);
}
.hero > * { position: relative; z-index: 1; }
/* The hi-vis disc and the night skyline, after the sun and city on the gen3 home hero. */
.hero > .sun {
  position: absolute; z-index: 0; inset-inline-end: 9vw; top: clamp(120px, 18vh, 170px);
  width: clamp(90px, 13vw, 190px); aspect-ratio: 1; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 14px rgba(255, 91, 20, 0.16), 0 0 0 34px rgba(255, 91, 20, 0.07);
}
.hero > .skyline { position: absolute; z-index: 0; inset-inline: 0; bottom: 0; width: 100%; height: clamp(150px, 22vw, 260px); }
.skyline .bd { fill: #232323; }
.skyline .lit { fill: var(--yellow); opacity: 0.85; }
.skyline .tw { animation: blink 5s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.12; } }
.hero-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.28em; max-width: var(--max);
  font-size: clamp(2.5rem, 8.6vw, 7.4rem); line-height: 1.04; letter-spacing: -0.04em;
}
/* The flipper is a real box turning on its horizontal axis (gen3 design menu, sentence-flip). */
.flip { position: relative; perspective: 620px; flex: 0 0 auto; display: inline-block; max-width: 100%; }
.flip .sizer { display: block; visibility: hidden; white-space: nowrap; }
.flip-inner { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.face {
  position: absolute; inset: 0; display: flex; align-items: center; white-space: nowrap;
  backface-visibility: hidden; color: var(--yellow);
}
.face.back { transform: rotateX(180deg); }
.still { display: none; color: var(--yellow); }
.no-flip .flip, .no-js .flip { display: none; }
.no-flip .still, .no-js .still { display: inline; }
.hero-sub { margin-top: 26px; max-width: 46ch; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(244, 239, 230, 0.86); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.pause {
  margin-top: 22px; font: inherit; font-size: 0.85rem; font-weight: 600; background: none; color: var(--paper);
  border: 1px solid rgba(244, 239, 230, 0.4); border-radius: 999px; min-height: 44px; padding: 0 18px; cursor: pointer;
}
.pause:hover { border-color: var(--paper); }
.no-flip .pause, .no-js .pause { display: none; }
.stickers { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.sticker {
  font: 800 1rem/1.15 var(--display); padding: 14px 18px; border: 3px solid var(--ink);
  border-radius: 999px; box-shadow: 4px 4px 0 var(--paper);
}
.sticker.s0 { background: var(--orange); color: var(--ink); transform: rotate(-4deg); }
.sticker.s1 { background: var(--yellow); color: var(--ink); transform: rotate(3deg); }
.sticker.s2 { background: var(--paper); color: var(--ink); transform: rotate(-2deg); }
@media (min-width: 1100px) {
  .hero > .stickers { position: absolute; inset-inline-end: var(--gutter); top: clamp(330px, 44vh, 420px); flex-direction: column; align-items: flex-end; margin: 0; gap: 16px; }
  .sticker { font-size: 1.2rem; padding: 16px 24px; }
}

/* ---------- hazard tape ---------- */
.tape {
  position: relative; z-index: 2; overflow: hidden; background: var(--yellow); color: var(--ink);
  border-block: 10px solid transparent;
  border-image: repeating-linear-gradient(-45deg, var(--ink) 0 12px, var(--yellow) 12px 24px) 10;
  font: 900 clamp(1.1rem, 2.4vw, 1.7rem)/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em;
  margin-inline: -2vw; padding-block: 14px;
}
.tilt-a { transform: rotate(-2deg); margin-block: -14px; }
.tilt-b { transform: rotate(1.5deg); margin-block: 10px; }
.tape-run { display: flex; width: max-content; gap: 0.7em; animation: run 38s linear infinite; }
.tape-run i { font-style: normal; color: var(--orange); }
@keyframes run { to { transform: translateX(-50%); } }
html[dir="rtl"] .tape-run { animation-name: run-rtl; }
@keyframes run-rtl { to { transform: translateX(50%); } }

/* ---------- sections ---------- */
section { padding-inline: var(--gutter); }
.sec-title { font-size: clamp(2rem, 5vw, 3.6rem); max-width: var(--max); margin: 0 auto 30px; }
.who { padding-block: clamp(70px, 12vh, 130px) clamp(50px, 8vh, 90px); }
.tiles {
  list-style: none; margin: 0 auto; padding: 0; max-width: var(--max);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px;
}
.tile { border: 3px solid var(--ink); border-radius: var(--radius); padding: 24px 24px 28px; box-shadow: var(--hard); display: grid; gap: 10px; align-content: start; }
.ico { width: 44px; height: 44px; margin-bottom: 6px; }
.tile h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.tile p { font-size: 1.05rem; }
.tile-0 { background: var(--orange); transform: rotate(-1deg); }
.tile-1 { background: var(--white); transform: rotate(0.8deg); }
.tile-2 { background: var(--yellow); transform: rotate(-0.6deg); }
.tile-3 { background: var(--ink); color: var(--paper); transform: rotate(1deg); }
.tile-3 p { color: rgba(244, 239, 230, 0.85); }
.tile-4 { background: var(--white); transform: rotate(-1.2deg); }
.tile-5 { background: var(--orange); transform: rotate(0.6deg); }

/* word fill (gen3 design menu, word-fill) */
.fill { min-height: 100vh; display: grid; align-content: center; padding-block: 80px; }
.fill-claim {
  max-width: var(--max); margin: 0 auto; font: 900 clamp(2.2rem, 6.4vw, 5.6rem)/1.08 var(--display);
  letter-spacing: -0.035em; color: var(--ink);
}
.fill-claim .hl {
  background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 88% / 100% 42%;
}
html[dir="rtl"] .fill-claim .hl { background-position: 100% 88%; }
.fill-after { max-width: var(--max); margin: 26px auto 0; width: 100%; font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: var(--muted); }

/* Heading on one side, numbered steps on the other (gen3 "How we work"). */
.how { padding-block: clamp(70px, 12vh, 130px); }
.how-grid { max-width: var(--max); margin: 0 auto; display: grid; gap: 30px 60px; }
@media (min-width: 900px) { .how-grid { grid-template-columns: 1fr 2fr; align-items: start; } .how-grid .sec-title { position: sticky; top: 110px; margin: 0; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; }
.steps li { display: grid; gap: 8px; align-content: start; border-top: 3px solid var(--ink); padding-top: 18px; }
.num { font: 900 clamp(4rem, 9vw, 7rem)/0.9 var(--display); color: var(--paper); -webkit-text-stroke: 3px var(--ink); paint-order: stroke; text-shadow: 5px 5px 0 var(--orange); }
.steps h3 { font-size: 1.6rem; }
.steps p { color: var(--muted); }

/* A rounded dark card at the end of each page (gen3 "room for one more"). */
.cta { padding-block: clamp(50px, 9vh, 100px); }
.cta-card {
  max-width: var(--max); margin: 0 auto; background: var(--ink); color: var(--paper); border-radius: 28px;
  padding: clamp(36px, 6vw, 70px); box-shadow: 10px 10px 0 var(--orange); border: 3px solid var(--ink);
}
.cta h2 { font-size: clamp(2.4rem, 7vw, 5.6rem); }
.cta p { margin-top: 14px; max-width: 40ch; font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: rgba(244, 239, 230, 0.86); }
.cta-row { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

/* operating standards: six numbered cards */
.standards { padding-block: clamp(60px, 10vh, 110px); background: var(--ink); color: var(--paper); }
.std-wrap { max-width: var(--max); margin: 0 auto; }
.standards .lede { color: rgba(244, 239, 230, 0.8); margin: -10px 0 30px; }
.std { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.std li { border: 2px solid rgba(244, 239, 230, 0.25); border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; align-content: start; }
.std-n { font: 900 1.4rem/1 var(--display); color: var(--yellow); }
.std h3 { font-size: 1.35rem; }
.std p { color: rgba(244, 239, 230, 0.82); }

/* ---------- inner pages ---------- */
.page-head { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-block: clamp(50px, 10vh, 110px) 30px; }
.page-head h1 { font-size: clamp(2.6rem, 7.4vw, 6rem); max-width: 16ch; }
.lede { margin-top: 20px; max-width: 58ch; font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--muted); }
.svcs, .facts {
  list-style: none; margin: 0 auto; padding: 0 var(--gutter) clamp(60px, 10vh, 110px); max-width: calc(var(--max) + 2 * var(--gutter));
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 22px;
}
.svc { border: 3px solid var(--ink); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--hard); background: var(--white); display: grid; gap: 10px; align-content: start; }
.svc h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.svc-1 { background: var(--yellow); }
.svc-2 { background: var(--orange); }
.facts li { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 28px 26px; display: grid; gap: 6px; }
.facts b { font: 900 clamp(2.6rem, 6vw, 4.4rem)/1 var(--display); color: var(--yellow); }
.office { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-bottom: 70px; }
.office h2 { font-size: 1.8rem; margin-bottom: 8px; }
.thanks { min-height: 55vh; }
.thanks .btn { margin-top: 28px; }
.prose { max-width: 70ch; margin: 0 auto; padding: 0 var(--gutter) 90px; }
.prose h2 { font-size: 1.5rem; margin: 34px 0 10px; }
.updated { margin-top: 14px; color: var(--muted); }

/* ---------- quote form (gen3 design menu, quote-builder, without prices) ---------- */
.quote { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter) 100px; }
.progress { list-style: none; display: none; gap: 6px; padding: 0; margin: 0 0 26px; }
.js .progress { display: grid; grid-template-columns: repeat(5, 1fr); }
.progress li { font-size: 0.8rem; font-weight: 600; color: var(--muted); border-top: 6px solid var(--ghost); padding-top: 8px; }
.progress li.done, .progress li.now { border-color: var(--orange); color: var(--ink); }
.quote fieldset { border: 3px solid var(--ink); border-radius: var(--radius); background: var(--white); padding: 24px 22px 26px; margin: 0 0 22px; box-shadow: var(--hard); display: grid; gap: 16px; }
.quote legend { font: 800 clamp(1.4rem, 3vw, 2rem)/1.2 var(--display); padding: 0 8px; float: left; width: 100%; margin-bottom: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border: 2px solid var(--ink);
  border-radius: 999px; cursor: pointer; font-weight: 600; transition: background-color 0.15s;
}
.chip span:hover { background: var(--paper); }
.chip input:checked + span { background: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 3px; }
.field { display: grid; gap: 6px; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; min-height: 50px; padding: 10px 14px; border: 2px solid var(--ink);
  border-radius: 10px; background: var(--white); color: var(--ink); width: 100%;
}
.field textarea { min-height: 100px; resize: vertical; }
.field.bad input { border-color: #c2410c; box-shadow: 0 0 0 3px rgba(255, 91, 20, 0.35); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint, .q { color: var(--muted); }
.q { font-weight: 600; color: var(--ink); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.form-error { background: var(--yellow); border: 3px solid var(--ink); border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-weight: 600; }
.js .quote fieldset[data-step]:not(.on) { display: none; }

/* ---------- WhatsApp button (gen3 design menu, whatsapp-button) ---------- */
.wa { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 30; display: grid; justify-items: end; gap: 12px; }
.wa-btn {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper);
  border: 3px solid var(--orange); box-shadow: 4px 4px 0 var(--orange); text-decoration: none;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.js .wa-btn { opacity: 0; transform: translateY(20px); pointer-events: none; }
.js .wa.show .wa-btn { opacity: 1; transform: none; pointer-events: auto; }
.wa-card {
  width: min(330px, calc(100vw - 36px)); background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--hard); padding: 20px; display: grid; gap: 12px;
}
.wa-card[hidden] { display: none; }
.wa-title { font: 800 1.25rem/1.2 var(--display); }
.wa-sub { color: var(--muted); font-size: 0.95rem; }
.wa-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wa-card li a { display: block; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 10px; text-decoration: none; font-weight: 600; background: var(--paper); }
.wa-card li a:hover { background: var(--yellow); }
.wa-close { justify-self: start; font: inherit; font-size: 0.9rem; background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 8px 0; min-height: 44px; }

/* ---------- footer: tagline + three columns (gen3 dev site) ---------- */
.foot { background: var(--ink); color: rgba(244, 239, 230, 0.85); padding: 60px var(--gutter) 110px; }
.foot-top { max-width: var(--max); margin: 0 auto; display: grid; gap: 40px; }
@media (min-width: 900px) { .foot-top { grid-template-columns: 1fr 2fr; } }
.foot-tag { font: 900 clamp(1.8rem, 3.6vw, 2.8rem)/1.1 var(--display); color: var(--paper); }
.foot-tag span { color: var(--yellow); }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; }
.foot-cols h2 { font: 700 0.95rem/1.2 var(--display); color: var(--orange); border-top: 1px solid rgba(244, 239, 230, 0.25); padding-top: 12px; margin-bottom: 10px; letter-spacing: 0; }
.foot-cols a { display: flex; align-items: center; min-height: 40px; color: var(--paper); }
.foot-cols p { margin-bottom: 8px; }
.foot-legal { max-width: var(--max); margin: 40px auto 0; font-size: 0.85rem; border-top: 1px solid rgba(244, 239, 230, 0.15); padding-top: 18px; }

@media (prefers-reduced-motion: reduce) {
  .tape-run, .skyline .tw { animation: none; }
  .btn, .wa-btn { transition: none; }
  .btn:hover { transform: none; }
}
