/* Al Muqlad landing page — 2026
   Palette: formwork concrete + the logo's blue and red.
   Signature: architectural dimension lines (red ticks, mono labels). */

:root {
  --paper: #F5F6F3;      /* cured concrete, cool */
  --formwork: #E3E5E0;   /* shuttering panels */
  --ink: #12161F;
  --steel: #5E646D;      /* muted text, rebar grey */
  --rule: #C9CCC5;
  --blue: #1D3E9C;       /* logo blue */
  --blue-deep: #142C70;
  --red: #C62032;        /* logo red — ticks and markers only */

  --f-display: "Archivo", "Arial Narrow", sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 50; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
.display {
  font-family: var(--f-display);
  font-stretch: 112%;
  font-variation-settings: "wdth" 112;
  font-weight: 760;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
h1, h2, h3 { margin: 0; }
h2.display { font-size: clamp(30px, 4.2vw, 50px); }
h3 { font: 600 19px/1.3 var(--f-body); }
.label {
  font: 500 12px/1.4 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}
.lede { font-size: clamp(17px, 1.6vw, 20px); color: #2C323C; max-width: 34em; }
[lang="ar"] { font-family: var(--f-body); }

/* ---------- dimension line (signature) ---------- */
.dim {
  --tick: var(--red);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--steel);
  background:
    linear-gradient(var(--tick), var(--tick)) left center / 1.5px 14px no-repeat,
    linear-gradient(var(--tick), var(--tick)) right center / 1.5px 14px no-repeat;
}
.dim::before, .dim::after { content: ""; height: 1px; background: currentColor; opacity: .55; }
.dim > span { font: 500 11.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.dim--v {
  grid-template-columns: auto;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  background:
    linear-gradient(var(--tick), var(--tick)) center top / 14px 1.5px no-repeat,
    linear-gradient(var(--tick), var(--tick)) center bottom / 14px 1.5px no-repeat;
}
.dim--v::before, .dim--v::after { width: 1px; height: auto; }
.dim--v > span { writing-mode: vertical-rl; transform: rotate(180deg); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 246, 243, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 42px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: #2C323C; }
.nav a:hover { color: var(--blue); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-radius: 2px;
  font: 600 15px/1 var(--f-body); text-decoration: none;
  border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-deep); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--formwork); }
.nav .btn { padding: 11px 16px; font-size: 14px; color: #fff; }
.menu-toggle { display: none; }

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex; margin-left: auto; align-items: center; gap: 8px;
    background: none; border: 1.5px solid var(--ink); padding: 9px 12px; border-radius: 2px;
    font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); cursor: pointer;
  }
  .nav {
    position: absolute; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
  .nav .btn { margin-top: 16px; justify-content: center; padding: 15px; font-size: 16px; border-bottom: 0; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(48px, 7vw, 96px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) 28px;
  grid-template-areas: "copy photo vdim" "copy hdim .";
  column-gap: clamp(24px, 4vw, 56px);
  row-gap: 14px;
  align-items: start;
}
.hero__copy { grid-area: copy; padding-top: 8px; }
.hero__copy .label { margin-bottom: 22px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 84px); }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero__ar { margin: 18px 0 0; font-size: clamp(19px, 2vw, 24px); font-weight: 600; color: var(--red); }
.hero .lede { margin: 26px 0 34px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__photo { grid-area: photo; margin: 0; position: relative; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 62% center; border-radius: 2px; }
.hero__vdim { grid-area: vdim; align-self: stretch; }
.hero__hdim { grid-area: hdim; }

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) 24px;
    grid-template-areas: "copy copy" "photo vdim" "hdim .";
    row-gap: 20px;
  }
  .hero__copy { padding-bottom: 20px; }
  .hero__photo img { aspect-ratio: 4 / 3; }
}

/* draw-in on load: the one orchestrated motion */
@media (prefers-reduced-motion: no-preference) {
  .dim.draw::before, .dim.draw::after { transform: scaleX(0); animation: draw .9s cubic-bezier(.2,.7,.2,1) .35s forwards; }
  .dim.draw::before { transform-origin: right center; }
  .dim.draw::after { transform-origin: left center; }
  .dim--v.draw::before, .dim--v.draw::after { transform: scaleY(0); animation-name: drawY; }
  .dim--v.draw::before { transform-origin: center bottom; }
  .dim--v.draw::after { transform-origin: center top; }
  .dim.draw > span { opacity: 0; animation: fade .5s ease 1s forwards; }
  @keyframes draw { to { transform: scaleX(1); } }
  @keyframes drawY { to { transform: scaleY(1); } }
  @keyframes fade { to { opacity: 1; } }
}

/* ---------- title block (company facts, as on a drawing sheet) ---------- */
.titleblock { border-block: 1.5px solid var(--ink); background: var(--formwork); }
.titleblock dl { margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.titleblock div { padding: 18px 20px; border-left: 1px solid var(--rule); }
.titleblock div:first-child { border-left: 0; padding-left: 0; }
.titleblock dt { font: 500 11px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.titleblock dd { margin: 6px 0 0; font: 600 16px/1.35 var(--f-body); }
@media (max-width: 900px) {
  .titleblock dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .titleblock div, .titleblock div:first-child { padding: 14px 0; border-left: 0; border-top: 1px solid var(--rule); }
  .titleblock div:nth-child(-n+2) { border-top: 0; }
  .titleblock div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--rule); }
}

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section--formwork { background: var(--formwork); }
.section--ink { background: var(--ink); color: #E9EBE7; }
.section__head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.section__head p { margin: 0; color: var(--steel); font-size: 18px; }
.section--ink .section__head p, .section--ink .label { color: #9CA3AD; }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.about p { margin: 0 0 1em; }
.about__text p:first-child { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.5; color: var(--ink); }
.about__text { color: #2C323C; }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1.5px solid var(--ink); }
.values li { padding: 20px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 14px 1fr; column-gap: 16px; }
.values li::before { content: ""; width: 10px; height: 10px; margin-top: 7px; background: var(--red); grid-row: span 2; }
.values strong { font: 700 14px/1.3 var(--f-display); font-stretch: 115%; font-variation-settings: "wdth" 115; letter-spacing: .04em; text-transform: uppercase; }
.values span { color: var(--steel); font-size: 16px; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

/* process (a real sequence → numbered) */
.stages { display: grid; gap: clamp(28px, 4vw, 48px); }
.stage { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.stage__no { font: 500 12px/1 var(--f-mono); letter-spacing: .1em; color: var(--red); margin-bottom: 10px; display: block; }
.stage h3 { font: 760 24px/1.1 var(--f-display); font-stretch: 112%; font-variation-settings: "wdth" 112; margin-bottom: 10px; }
.stage p { margin: 0; color: #2C323C; font-size: 16px; }
.stage img { width: 100%; border-radius: 2px; background: var(--rule); }
.stages__span { margin-top: 8px; }
@media (max-width: 760px) { .stage { grid-template-columns: 1fr; gap: 14px; } }

/* services */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #343A45; }
.services li { padding: 28px 28px 28px 0; border-bottom: 1px solid #343A45; font: 600 clamp(20px, 2.2vw, 26px)/1.25 var(--f-body); color: #fff; }
.services li:nth-child(even) { padding-left: 28px; border-left: 1px solid #343A45; }
@media (max-width: 700px) {
  .services { grid-template-columns: 1fr; }
  .services li, .services li:nth-child(even) { padding: 22px 0; border-left: 0; }
}

/* HSE */
.hse { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); }
.hse__stat { border: 1.5px solid var(--ink); padding: 28px; background: var(--paper); align-self: start; }
.hse__stat .display { font-size: clamp(56px, 7vw, 92px); color: var(--blue); }
.hse__stat p { margin: 10px 0 0; color: #2C323C; }
.hse ul { list-style: none; margin: 0; padding: 0; }
.hse li { padding: 0 0 18px 28px; position: relative; color: #2C323C; }
.hse li::before { content: ""; position: absolute; left: 0; top: 11px; width: 14px; height: 1.5px; background: var(--red); }
@media (max-width: 900px) { .hse { grid-template-columns: 1fr; } }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gallery a { display: block; overflow: hidden; border-radius: 2px; background: var(--rule); aspect-ratio: 3 / 4; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery a:hover img { transform: scale(1.03); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* clients */
.clients { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.clients li { padding: 12px 18px; border: 1.5px solid var(--ink); border-radius: 2px; font-weight: 600; font-size: 16px; background: var(--paper); }

/* team */
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 28px 20px; }
.team img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; background: var(--rule); filter: grayscale(.15); }
.team strong { display: block; margin-top: 12px; font-size: 16px; line-height: 1.3; }
.team span { font: 500 12px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }

/* quote band */
.quote { background: var(--blue); color: #fff; padding-block: clamp(56px, 8vw, 104px); }
.quote .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.quote h2 { font-size: clamp(32px, 4.6vw, 58px); }
.quote p { margin: 16px 0 0; color: #D5DCF0; font-size: 18px; max-width: 32em; }
.quote__ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.quote .btn--ghost { border-color: #fff; color: #fff; }
.quote .btn--ghost:hover { background: #fff; color: var(--blue); }
@media (max-width: 900px) { .quote .wrap { grid-template-columns: 1fr; } .quote__ctas { justify-content: flex-start; } }

/* footer */
.site-footer { background: var(--ink); color: #C3C8CF; padding-block: 56px 32px; font-size: 15px; }
.site-footer .grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font: 500 11px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #8C939D; margin-bottom: 12px; }
.site-footer p, .site-footer address { margin: 0; font-style: normal; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .logo { background: #fff; padding: 10px 14px; border-radius: 2px; display: inline-block; margin-bottom: 16px; }
.site-footer .logo img { height: 34px; width: auto; }
.site-footer .legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid #2A303A; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font: 500 12px/1.4 var(--f-mono); letter-spacing: .06em; color: #8C939D; }
@media (max-width: 800px) { .site-footer .grid { grid-template-columns: 1fr; } }

/* floating WhatsApp on small screens */
.wa-float { display: none; }
@media (max-width: 700px) {
  .wa-float {
    display: inline-flex; position: fixed; right: 16px; bottom: 16px; z-index: 30;
    width: 56px; height: 56px; border-radius: 50%; background: #1FAF54; color: #fff;
    align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.25);
  }
  .wa-float svg { width: 28px; height: 28px; }
}
