/* Layout: highway-signage industrial. Condensed display caps, asphalt + safety-yellow,
   full-bleed photo heroes, content on a 1200px rail. */
:root {
  --asphalt: #1b1f24;
  --asphalt-2: #262b31;
  --yellow: #f4b000;
  --yellow-ink: #1b1f24;
  --red: #c8102e;
  --bg: #f7f6f2;
  --bg-alt: #ecebe5;
  --surface: #ffffff;
  --fg: #1d2126;
  --muted: #5d636b;
  --line: #d9d7cf;
  --link: #a86f00;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 4px;
  --rail: 1200px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14171b; --bg-alt: #1b1f24; --surface: #20252b; --fg: #eceae4; --muted: #a3a8ae;
    --line: #333940; --link: #f4b000; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14171b; --bg-alt: #1b1f24; --surface: #20252b; --fg: #eceae4; --muted: #a3a8ae;
  --line: #333940; --link: #f4b000; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.6 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--link); }
a:focus-visible, .btn:focus-visible, label:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: .005em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; text-transform: uppercase; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0; }
address { font-style: normal; }
.wrap { max-width: var(--rail); margin: 0 auto; padding-inline: clamp(16px, 4vw, 32px); }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.mono { font-family: var(--mono); font-size: .92em; }
.eyebrow { font: 600 .8rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--link); margin-bottom: .7rem; }
.hl { color: var(--yellow); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.4rem; background: var(--yellow); color: var(--yellow-ink);
  font: 700 1rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border-radius: var(--radius);
  border: 2px solid var(--yellow); transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); background: #ffc21a; }
.btn-sm { padding: .55rem .9rem; font-size: .9rem; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-ghost-dark { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn-ghost-dark:hover { background: var(--bg-alt); }
.btn-dark { background: var(--asphalt); color: #fff; border-color: var(--asphalt); }
.btn-dark:hover { background: var(--asphalt-2); }
.arrow-link { display: inline-block; margin-top: 1.2rem; font: 700 1rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--fg); text-decoration: none; border-bottom: 3px solid var(--yellow); padding-bottom: .3rem; }
.arrow-link::after { content: " →"; }
.arrow-link:hover { color: var(--link); }

/* header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,.96); border-bottom: 4px solid var(--yellow); backdrop-filter: blur(6px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-head { background: rgba(20,23,27,.96); } }
:root[data-theme="dark"] .site-head { background: rgba(20,23,27,.96); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .4rem; }
.brand img { height: 62px; width: auto; background: #fff; border-radius: var(--radius); padding: 2px 6px; }
.main-nav { display: flex; align-items: center; gap: 1.4rem; }
.main-nav a:not(.btn) { color: var(--fg); text-decoration: none; font: 600 1.05rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; padding-block: .4rem; border-bottom: 3px solid transparent; }
.main-nav a:not(.btn):hover, .main-nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--yellow); }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.burger { display: none; cursor: pointer; padding: 10px; }
.burger span { display: block; width: 26px; height: 3px; background: var(--fg); margin: 5px 0; }
@media (max-width: 960px) {
  .burger { display: block; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 4px solid var(--yellow); padding: .5rem clamp(16px, 4vw, 32px) 1rem; display: none; }
  .main-nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .main-nav .btn { margin-top: 1rem; justify-content: center; }
  .nav-toggle:checked ~ .main-nav { display: flex; }
}

/* hero */
.hero { position: relative; color: #fff; background: var(--asphalt); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,23,27,.88) 0%, rgba(20,23,27,.65) 45%, rgba(20,23,27,.25) 100%); }
.hero-copy { position: relative; padding-block: clamp(4rem, 9vw, 7rem); max-width: var(--rail); }
.hero-copy h1, .hero-copy .lede { max-width: 760px; }
.hero-tall .hero-copy { padding-block: clamp(5rem, 12vw, 9.5rem); }
.hero .eyebrow { color: var(--yellow); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); margin-top: 1.2rem; color: rgba(255,255,255,.88); max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-plain { background: var(--asphalt); background-image: repeating-linear-gradient(-45deg, transparent 0 22px, rgba(244,176,0,.06) 22px 44px); }
.hero-plain .hero-copy { padding-block: clamp(3.5rem, 7vw, 5.5rem); }

/* stats */
.stats-strip { background: var(--yellow); color: var(--yellow-ink); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; padding-block: 1.6rem; }
.stats div { display: flex; flex-direction: column; border-left: 3px solid var(--yellow-ink); padding-left: .9rem; }
.stats b { font: 800 2.6rem/1 var(--display); font-variant-numeric: tabular-nums; }
.stats b small { font-size: 1.1rem; margin-left: .15rem; }
.stats span { font-size: .9rem; font-weight: 500; }

/* sections */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section.alt { background: var(--bg-alt); }
.sec-head { max-width: 720px; margin-bottom: 2.4rem; display: grid; gap: .8rem; }
.sec-head .eyebrow { margin: 0; }
.row-head { max-width: none; display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1rem; }
.row-head .arrow-link { margin: 0; }
.sub-title { margin: 3rem 0 1.4rem; font-size: 1.6rem; text-transform: uppercase; }

/* branches */
.branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1.6rem; }
.branch { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.branch-img { aspect-ratio: 16 / 8; overflow: hidden; }
.branch-img img { width: 100%; height: 100%; object-fit: cover; }
.branch-body { padding: 1.6rem; display: grid; gap: .8rem; align-content: start; }
.branch-body .eyebrow { margin: 0; }
.branch-body h3 { font-size: 2rem; text-transform: uppercase; }
.branch-body address { color: var(--muted); border-left: 3px solid var(--yellow); padding-left: .8rem; }
.branch-body .arrow-link { justify-self: start; margin-top: .4rem; }

/* split */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split > * { min-width: 0; }
.split-copy > * + * { margin-top: 1rem; }
.split-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
.split-media.stack { display: grid; gap: 1rem; }
.split-media.stack img { aspect-ratio: 16 / 9; }
.two-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.two-lists h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--link); margin-bottom: .5rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .two-lists { grid-template-columns: 1fr; } }

.ticks { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .45rem; }
.ticks li { position: relative; padding-left: 1.5rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: .7rem; height: .7rem; background: var(--yellow); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.ticks a { color: var(--fg); text-decoration: none; }
.ticks a:hover { color: var(--link); }

/* why */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0; border-top: 1px solid var(--line); }
.why { padding: 1.6rem 1.6rem 1.6rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .5rem; }
.why h3 { text-transform: uppercase; }
.why p { color: var(--muted); }

/* posts */
.cards-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.6rem; }
.post-card { display: flex; flex-direction: column; gap: .7rem; color: var(--fg); text-decoration: none; }
.post-img { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--asphalt); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-img img { transform: scale(1.04); }
.post-card h3 { font-size: 1.5rem; }
.post-card:hover h3 { color: var(--link); }
.post-card p { color: var(--muted); font-size: .97rem; }
.post-meta { display: flex; gap: .8rem; align-items: center; font-size: .85rem; color: var(--muted); }
.tag { font: 600 .72rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; background: var(--yellow); color: var(--yellow-ink); padding: .35rem .5rem; border-radius: 2px; }

/* services */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.svc { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--yellow); padding: 1.4rem; display: grid; gap: .6rem; align-content: start; border-radius: 0 0 var(--radius) var(--radius); }
.svc p { color: var(--muted); font-size: .97rem; }
.svc-rows { display: grid; gap: 2.4rem; }
.svc-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.svc-row > * { min-width: 0; }
.svc-row:nth-child(even) .svc-img { order: 2; }
.svc-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.svc-copy { display: grid; gap: .8rem; }
.svc-copy .eyebrow { margin: 0; }
.svc-copy h3 { font-size: 2rem; text-transform: uppercase; }
@media (max-width: 760px) { .svc-row { grid-template-columns: 1fr; } .svc-row:nth-child(even) .svc-img { order: 0; } }

/* UAE verticals */
.verts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.vert { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; background: var(--asphalt); }
.vert-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.vert:hover .vert-img img { transform: scale(1.05); }
.vert::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(20,23,27,.92)); }
.vert-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1.3rem; display: grid; gap: .3rem; }
.vert-copy b { font: 800 1.7rem/1 var(--display); text-transform: uppercase; }
.vert-copy span { font-size: .95rem; color: rgba(255,255,255,.85); }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1rem; counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); padding: 1.4rem; border-radius: var(--radius); display: grid; gap: .5rem; align-content: start; }
.steps li::before { content: counter(step, decimal-leading-zero); font: 800 2.4rem/1 var(--display); color: var(--yellow); }
.steps p { color: var(--muted); font-size: .95rem; }

/* fleet */
.fleet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.fleet-item { background: var(--surface); border: 1px solid var(--line); padding: 1.4rem; border-radius: var(--radius); display: grid; gap: .6rem; align-content: start; }
.fleet-item p { color: var(--muted); font-size: .95rem; }
.spec { justify-self: start; background: var(--asphalt); color: var(--yellow); padding: .3rem .55rem; font-size: .78rem; border-radius: 2px; text-transform: uppercase; letter-spacing: .05em; }

/* industries */
.ind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.ind { padding: 1.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: .5rem; align-content: start; }
.ind h3 { text-transform: uppercase; }
.ind p { color: var(--muted); font-size: .95rem; }

/* regions */
.region-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.region-list li { border: 2px solid var(--fg); padding: .35rem .8rem; font: 700 .95rem/1 var(--display); text-transform: uppercase; letter-spacing: .06em; border-radius: 2px; }

/* offices */
.office-card { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--yellow); padding: clamp(1.4rem, 4vw, 2.4rem); border-radius: var(--radius); }
.office-card > div { display: grid; gap: .8rem; min-width: 0; }
.office-card .eyebrow { margin: 0; }
.offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1.6rem; }
.office { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.office > img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.office-body { padding: 1.6rem; display: grid; gap: 1rem; }
.office-body .eyebrow { margin: 0; }
.office-body .arrow-link { justify-self: start; margin-top: 0; }
.contact-dl { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1.2rem; margin: 0; }
.contact-dl dt { font: 600 .78rem/1.9 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-dl dd { margin: 0; }
.contact-dl a { color: var(--fg); text-decoration: none; border-bottom: 2px solid var(--yellow); }

/* article */
.article-hero .wrap { padding-block: clamp(3rem, 6vw, 4.5rem); display: grid; gap: 1rem; }
.article-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.article-hero .post-meta { color: rgba(255,255,255,.75); }
.article-hero .lede { margin-top: 0; }
.back { color: var(--yellow); text-decoration: none; font: 700 .9rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.back::before { content: "← "; }
.article-figure { margin-top: 2.5rem; }
.article-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.article-figure + .section { padding-top: 2.5rem; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { margin-top: 2.2rem; font-size: 1.8rem; }
.prose p, .prose li { max-width: 68ch; }

/* cta */
.cta-band { background: var(--yellow); color: var(--yellow-ink); }
.cta-row { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.cta-row p { margin-top: .5rem; max-width: 60ch; }

/* footer */
.site-foot { background: var(--asphalt); color: #c9ccd0; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr; gap: 2rem; padding-block: 3.5rem 2.5rem; }
.foot-grid > * { min-width: 0; }
.foot-grid h3 { color: #fff; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .8rem; }
.foot-brand img { width: 120px; height: auto; background: #fff; border-radius: var(--radius); padding: .4rem; margin-bottom: 1rem; }
.site-foot .muted { color: #8f959c; margin-bottom: .3rem; }
.phones { margin-top: .8rem; }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.site-foot a { color: #e9ebed; text-decoration: none; }
.site-foot a:hover { color: var(--yellow); }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-block: 1.2rem; border-top: 1px solid #343a41; font-size: .85rem; color: #8f959c; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* 404 */
.notfound .wrap { padding-block: clamp(4rem, 10vw, 7rem); display: grid; justify-items: start; gap: .6rem; }
.notfound img { width: 220px; margin-bottom: 1rem; }


/* ---- responsive grid tuning: no orphaned cards on tablets, compact phones ---- */
.svc-grid, .fleet-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.verts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ind-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.branches, .offices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; }
@media (max-width: 1100px) {
  .svc-grid, .fleet-grid, .verts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ind-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 4rem 1fr; column-gap: 1rem; align-items: start; }
  .steps li::before { grid-row: span 2; }
  .verts .vert { aspect-ratio: 16 / 11; }
}
@media (max-width: 900px) {
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-3 > :nth-child(odd):last-child { grid-column: 1 / -1; }
  .cards-3 > :nth-child(odd):last-child .post-img { aspect-ratio: 21 / 9; }
  .ind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .branch-img { aspect-ratio: 16 / 10; }
  .branch-body, .office-body { padding: 1.3rem; }
  .branch-body h3 { font-size: 1.7rem; }
}
@media (max-width: 760px) {
  .stats { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1rem; }
  .stats > :nth-child(odd):last-child { grid-column: 1 / -1; }
  .stats b { font-size: 2.2rem; }
  .branches, .offices { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .svc-grid, .fleet-grid, .verts, .cards-3, .ind-grid { grid-template-columns: 1fr; }
  .cards-3 > :nth-child(odd):last-child .post-img { aspect-ratio: 3 / 2; }
  .steps li { grid-template-columns: 3rem 1fr; }
  .steps li::before { font-size: 2rem; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .office-card .btn { width: 100%; justify-content: center; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .contact-dl { grid-template-columns: 1fr; gap: .2rem; }
  .contact-dl dd { margin-bottom: .6rem; }
  .foot-links li a { display: inline-block; padding-block: .3rem; }
  .section { padding-block: 3rem; }
  .sec-head { margin-bottom: 1.8rem; }
}

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