/* =========================================================================================
   Pembinaan Setia Lestari Sdn Bhd - website styles
   Day theme only (light pages; phones' automatic dark mode is switched off with color-scheme).
   Built for phones first, then widened for tablets and desktops (up to 4K screens).
   ========================================================================================= */

:root {
  color-scheme: only light;
  --red: #d31c3b;
  --red-d: #a3162f;
  --red-soft: #fdeef1;
  --ink: #15171c;
  --ink-2: #353841;
  --muted: #5f6370;
  --line: #e5e7ec;
  --bg: #ffffff;
  --bg-2: #f5f6f8;
  --maxw: clamp(1140px, 78vw, 1800px);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 18px rgba(16, 24, 40, .06);
  --shadow-up: 0 2px 6px rgba(16, 24, 40, .06), 0 16px 34px rgba(16, 24, 40, .10);
  --head-h: 64px;
  --font-head: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}
@media (min-width: 1000px) { :root { --head-h: 76px; } }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.65; color: var(--ink-2); background: var(--bg); overflow-x: hidden; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }   /* hidden things stay hidden even when a style gives them a layout */
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.22; font-weight: 700; letter-spacing: -.01em; }
strong { color: var(--ink); font-weight: 600; }
:focus-visible { outline: 3px solid rgba(211, 28, 59, .45); outline-offset: 2px; border-radius: 6px; }
[id] { scroll-margin-top: calc(var(--head-h) + 16px); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px; line-height: 1.2; text-align: center; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s, transform .18s; }
.btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(211, 28, 59, .22); }
.btn-red:hover { background: var(--red-d); }
.btn-line { background: #fff; color: var(--ink); border-color: #cfd3db; }
.btn-line:hover { border-color: var(--red); color: var(--red); }
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: default; }

/* ---------- top strip (desktop only) ---------- */
.topbar { display: none; background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 38px; }
.topbar-info { display: flex; gap: 24px; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--red); }
.topbar svg { width: 14px; height: 14px; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.topbar-badge { font-weight: 600; color: var(--ink-2); }
.topbar-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }
@media (min-width: 1000px) { .topbar { display: block; } }

/* ---------- header + menu ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 6px 20px rgba(16, 24, 40, .08); }
.navbar { display: flex; align-items: center; gap: 16px; height: var(--head-h); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; }
.brand img { height: 34px; width: auto; flex: none; }
.brand-name { display: block; font-family: var(--font-head); font-weight: 700; font-size: 14.5px; line-height: 1.15; color: var(--ink); }
.brand-name span { color: var(--red); }
.brand-sub { display: block; font-size: 11px; color: var(--muted); letter-spacing: .02em; white-space: nowrap; }
@media (max-width: 360px) { .brand-sub { display: none; } }
@media (min-width: 1000px) { .brand img { height: 42px; } .brand-name { font-size: 16px; } .brand-sub { font-size: 12px; } }

.nav { display: none; }
.nav a { font-family: var(--font-head); font-weight: 600; color: var(--ink-2); }
.nav-contact { display: none; }
.menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; cursor: pointer; flex: none; }
.menu-btn span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-cta { display: none; }
.nav-overlay { display: none; }

@media (max-width: 1199px) {
  /* the menu drops down under the header (phones, tablets and small laptops: 7 menu items need 1200 px) */
  .nav.open { display: flex; flex-direction: column; position: fixed; top: var(--head-h); left: 0; right: 0; max-height: calc(100vh - var(--head-h));
    overflow-y: auto; background: #fff; padding: 6px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(16, 24, 40, .12); z-index: 60; }
  .nav.open > a { display: flex; align-items: center; justify-content: space-between; min-height: 54px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav.open > a::after { content: ""; width: 8px; height: 8px; border-right: 2px solid #b5b9c3; border-top: 2px solid #b5b9c3; transform: rotate(45deg); margin-right: 4px; }
  .nav.open > a.active { color: var(--red); }
  .nav.open .nav-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
  .nav-overlay.open { display: block; position: fixed; inset: var(--head-h) 0 0 0; background: rgba(16, 24, 40, .35); z-index: 45; }   /* under the header (50), so the open menu is not dimmed */
}
@media (min-width: 1200px) {
  .menu-btn { display: none; }
  .nav { display: flex; align-items: center; gap: clamp(20px, 1.7vw, 32px); margin-right: 8px; }
  .nav a { position: relative; font-size: 15px; padding: 6px 0; }
  .nav a:hover { color: var(--red); }
  .nav a.active { color: var(--red); }
  .nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--red); }
  .nav-cta { display: inline-flex; }
}

/* ---------- call / enquire bar along the bottom of a phone ---------- */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(16, 24, 40, .08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.mbar .btn { min-height: 46px; }
body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
@media (min-width: 1200px) { .mbar { display: none; } body { padding-bottom: 0; } }

/* ---------- headings ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 12px; line-height: 1.3;
  letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--red); flex: none; }
.h2 { font-size: 1.6rem; }
.h3 { font-size: 1.15rem; }
.lead { font-size: 1.02rem; color: var(--muted); }
.head { max-width: 820px; margin-bottom: 28px; }
.head .lead { margin-top: 12px; }
/* centred headings on a tablet or computer; on a phone they stay left-aligned, which is easier to read */
@media (min-width: 700px) { .head.center { margin-left: auto; margin-right: auto; text-align: center; } .head.center .eyebrow { justify-content: center; } }
@media (min-width: 1000px) {
  .h2 { font-size: clamp(2rem, 2.2vw, 2.7rem); }
  .h3 { font-size: 1.25rem; }
  .lead { font-size: 1.08rem; }
  .head { margin-bottom: 40px; }
}

/* ---------- sections ---------- */
.sec { padding: 52px 0; }
.sec.alt { background: var(--bg-2); }
@media (min-width: 1000px) { .sec { padding: 88px 0; } }
.sub-title { font-size: 1.05rem; margin: 36px 0 16px; display: flex; align-items: center; gap: 12px; }
.sub-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.center { text-align: center; }
@media (max-width: 699px) { .head.center { text-align: left; } }
.mt { margin-top: 28px; }
.mt-s { margin-top: 14px; }
.sec.pt0 { padding-top: 0; }
.head .lead + .lead { margin-top: 10px; }
.split .txt p.intro { font-size: 1.08rem; color: var(--ink-2); }
.split .txt .h2 { margin-bottom: 4px; }
.sector .txt { min-width: 0; }

/* ---------- cards + grids ---------- */
.grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .g2, .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid { gap: 20px; } }
@media (min-width: 1000px) { .g3, .g4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid { gap: 24px; } }
@media (min-width: 1400px) { .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card p:not(.eyebrow) { color: var(--muted); font-size: .96rem; }
.ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--red-soft); color: var(--red); flex: none; }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tag { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--red); background: var(--red-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--red); }
.link-more::after { content: "\2192"; transition: transform .18s; }
.link-more:hover::after { transform: translateX(3px); }

/* lists with a red tick */
.ticks li { position: relative; padding-left: 26px; margin: 7px 0; font-size: .95rem; color: var(--ink-2); line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 12px; height: 7px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }
@media (min-width: 700px) { .ticks.cols { columns: 2; column-gap: 28px; } .ticks.cols li { break-inside: avoid; } }

/* "What's included" - folded away on a phone, open on a computer (script.js) */
details.more { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
details.more summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--red); }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; margin-right: 4px; }
details.more[open] summary::after { transform: rotate(-135deg); }

/* "Show N more" on phones (script.js) */
.show-more-wrap { display: flex; justify-content: center; margin-top: 18px; }

/* ---------- home: hero ---------- */
.hero { padding: 28px 0 44px; background: radial-gradient(900px 420px at 100% 0, rgba(211, 28, 59, .07), transparent 60%), linear-gradient(180deg, #fff, #fbfbfc); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 28px; }
.hero h1 { font-size: 1.95rem; margin-bottom: 14px; }
.hero h1 span { color: var(--red); }
.hero .lead { color: var(--ink-2); }
.hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.glance div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.glance b { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; line-height: 1.1; color: var(--red); }
.glance span { display: block; font-size: 13px; line-height: 1.35; color: var(--muted); margin-top: 4px; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: 320px; }
.mosaic figure { position: relative; overflow: hidden; border-radius: 14px; background: var(--bg-2); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic figcaption { position: absolute; left: 8px; bottom: 8px; background: rgba(255, 255, 255, .94); color: var(--ink); font-family: var(--font-head);
  font-weight: 600; font-size: 11.5px; padding: 4px 10px; border-radius: 999px; }
@media (min-width: 700px) { .hero-actions { display: flex; flex-wrap: wrap; } .mosaic { height: 420px; } }
@media (min-width: 700px) and (max-width: 999px), (min-width: 1500px) { .glance { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .hero { padding: 64px 0 76px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; }
  .hero h1 { font-size: clamp(2.5rem, 3.1vw, 3.6rem); }
  .mosaic { height: clamp(440px, 34vw, 640px); gap: 14px; }
  .mosaic figcaption { font-size: 12.5px; left: 12px; bottom: 12px; }
}

/* ---------- home: sectors ---------- */
.sector { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px; }
.sector .pic { width: 96px; height: 96px; border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.sector .pic img { width: 100%; height: 100%; object-fit: cover; }
.sector .tag { margin-bottom: 6px; }
.sector h3 { font-size: 1.02rem; margin-bottom: 6px; }
.sector p { font-size: .92rem; }
.sector .link-more { margin-top: 8px; }
@media (min-width: 700px) {
  .sector { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
  .sector .pic { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 0; }
  .sector .txt { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
  .sector .tag { align-self: flex-start; }
  .sector .link-more { margin-top: auto; padding-top: 14px; }
  .sector h3 { font-size: 1.15rem; }
}

/* ---------- credentials ---------- */
.creds { display: grid; gap: 12px; }
.cred { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.cred h3 { font-size: 1rem; margin-bottom: 4px; }
.cred p { font-size: .93rem; color: var(--muted); }
@media (min-width: 700px) { .creds { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; } .cred { flex: 1 1 320px; max-width: 460px; } }

/* ---------- photo cards (our work, gallery) ---------- */
/* "From the Field": on a phone a stacked list of photo rows (nothing scrolls sideways), three across from a tablet up */
.work-list { display: grid; gap: 12px; }
@media (max-width: 699px) {
  .work-list .pcard { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; }
  .work-list .pcard .pic { aspect-ratio: auto; height: 100%; min-height: 104px; }
  .work-list .pcard .txt { padding: 12px 14px; }
}
@media (min-width: 700px) { .work-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.pcard .pic { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.pcard img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pcard:hover img { transform: scale(1.04); }
.pcard .txt { padding: 14px 16px 16px; }
.pcard .cat { display: block; font-family: var(--font-head); font-weight: 600; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.pcard h3 { font-size: 1rem; }

/* ---------- clients ---------- */
.logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.logos div { display: flex; align-items: center; justify-content: center; height: 64px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.logos img { max-height: 42px; max-width: 100%; width: auto; object-fit: contain; }
@media (min-width: 1000px) { .logos { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; } .logos div { height: 92px; padding: 14px; } .logos img { max-height: 56px; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.center { justify-content: center; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-2); }

/* ---------- split: text + photo ---------- */
.split { display: grid; gap: 24px; align-items: center; }
.split .pic { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-2); }
.split .pic img { width: 100%; height: 100%; object-fit: cover; }
.split p + p { margin-top: 14px; }
.split .txt p:not(.eyebrow) { color: var(--muted); }
@media (min-width: 1000px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split .pic { aspect-ratio: 4 / 3; } .split.flip .pic { order: -1; } }

/* ---------- call to action ---------- */
.cta { background: linear-gradient(135deg, #fff5f6, var(--red-soft)); border: 1px solid #f6d3da; border-radius: 20px; padding: 28px 22px; display: grid; gap: 18px; }
.cta h2 { font-size: 1.5rem; }
.cta p { color: var(--ink-2); margin-top: 8px; }
.cta-actions { display: grid; gap: 10px; }
@media (min-width: 700px) { .cta { padding: 40px 44px; grid-template-columns: 1fr auto; align-items: center; gap: 32px; } .cta-actions { grid-auto-flow: column; } .cta h2 { font-size: 1.9rem; } }

/* ---------- inner page header ---------- */
.page-head { padding: 26px 0 30px; background: radial-gradient(800px 300px at 100% 0, rgba(211, 28, 59, .06), transparent 60%), var(--bg-2); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--red); }
.crumbs span[aria-hidden] { color: #b5b9c3; }
.page-head h1 { font-size: 1.8rem; max-width: 900px; }
.page-head .lead { margin-top: 12px; max-width: 860px; color: var(--ink-2); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--ink-2); }
.jump a:hover { border-color: var(--red); color: var(--red); }
@media (min-width: 1000px) { .page-head { padding: 52px 0 56px; } .page-head h1 { font-size: clamp(2.3rem, 2.8vw, 3.2rem); } .jump { margin-top: 26px; } }

/* ---------- about ---------- */
.quals { display: grid; gap: 12px; }
@media (min-width: 700px) { .quals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1200px) { .quals { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.qual { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px; }
.qual h3 { font-size: 1rem; margin-bottom: 4px; }
.qual p { font-size: .92rem; }
.vision { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.vision .eyebrow { margin-bottom: 8px; }
.vision p:not(.eyebrow) { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; line-height: 1.5; color: var(--ink); }
.points { display: grid; gap: 12px; }
@media (min-width: 700px) { .points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1200px) { .points { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.point { padding: 18px; }
.point h3 { font-size: 1rem; margin: 12px 0 4px; }
.point p { font-size: .92rem; }
.approach { display: flex; flex-wrap: wrap; gap: 6px 4px; align-items: center; margin-top: 16px; font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--ink); }
.approach span { background: var(--red-soft); color: var(--red-d); padding: 5px 12px; border-radius: 999px; }
.approach i { font-style: normal; color: #b5b9c3; }
.card p.quote { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; line-height: 1.45; color: var(--ink); margin-bottom: 12px; }
.quote span { color: var(--red); }
.fleet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 1000px) { .fleet { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.fleet .card { padding: 16px; }
.fleet h3 { font-size: .98rem; margin: 10px 0 4px; }
.fleet p { font-size: .88rem; }
.info { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .95rem; }
.info th, .info td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.info tr:last-child th, .info tr:last-child td { border-bottom: 0; }
.info th { width: 34%; color: var(--muted); font-weight: 600; background: #fafbfc; }
@media (max-width: 599px) { .info th, .info td { display: block; width: 100%; } .info th { border-bottom: 0; padding-bottom: 2px; background: #fff; font-size: .85rem; } }

/* ---------- services ---------- */
.sector-intro { display: grid; gap: 20px; margin-bottom: 26px; }
.sector-intro .pic { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-2); }
.sector-intro .pic img { width: 100%; height: 100%; object-fit: cover; }
.sector-intro .lead { margin-top: 12px; }
@media (min-width: 1000px) { .sector-intro { grid-template-columns: 1.2fr .8fr; align-items: center; gap: 48px; margin-bottom: 36px; } .sector-intro .pic { aspect-ratio: 16 / 10; } }
.svc h3 { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 12px; }
.svc h3 .ico { width: 38px; height: 38px; border-radius: 10px; }
.svc h3 .ico svg { width: 19px; height: 19px; }
.svc > p { margin-top: 4px; }
.steps { display: grid; gap: 12px; counter-reset: step; }
.step { position: relative; padding: 18px 18px 18px 70px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 18px; top: 18px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step h3 { font-size: 1rem; margin-bottom: 4px; }
.step p { font-size: .92rem; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }

/* ---------- track record ---------- */
.group-title { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin: 0 0 16px; }
.group-title .count { font-family: var(--font-body); font-size: 12.5px; font-weight: 700; color: var(--red); background: var(--red-soft); padding: 2px 10px; border-radius: 999px; }
.projects + .group-title, .show-more-wrap + .group-title { margin-top: 40px; }
.project h3 { font-size: 1.02rem; margin-bottom: 10px; }
.project dl { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 6px 10px; font-size: .93rem; }
.project dt { font-weight: 600; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; padding-top: 2px; }
.project dd { color: var(--ink-2); }
.project dd.client { font-weight: 600; color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
@media (min-width: 700px) { .filters { justify-content: center; margin-bottom: 28px; } }
.filter { min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--ink-2); }
.filter.active { background: var(--red); border-color: var(--red); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1200px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gallery .pcard .txt { padding: 10px 12px 12px; }
.gallery .pcard h3 { font-size: .9rem; }
.gallery .pcard .cat { font-size: 10.5px; }
.gallery .hidden { display: none; }

/* ---------- contact ---------- */
.ccards { display: grid; gap: 12px; }
@media (min-width: 700px) { .ccards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.ccard { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 18px; transition: border-color .18s, box-shadow .18s; }
a.ccard:hover { border-color: var(--red); box-shadow: var(--shadow-up); }
.ccard .label { display: block; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ccard .value { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; color: var(--ink); margin-top: 2px; overflow-wrap: anywhere; }
.ccard .value + .value { margin-top: 4px; }
.ccard .note { display: block; font-size: .88rem; color: var(--muted); margin-top: 2px; }
.ccard a.value:hover { color: var(--red); }
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; } }
.form-card { padding: 22px; }
@media (min-width: 700px) { .form-card { padding: 32px; } }
.form-card h2 { font-size: 1.4rem; }
.form-card > p { color: var(--muted); margin: 8px 0 22px; font-size: .95rem; }
.form-row { display: grid; gap: 0 16px; }
@media (min-width: 700px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.field label i { font-style: normal; color: var(--red); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; font-size: 16px; color: var(--ink); background: #fff;
  border: 1.5px solid #d6d9e0; border-radius: 10px; -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s; }
.field select { background-image: linear-gradient(45deg, transparent 50%, #6b6f7b 50%), linear-gradient(135deg, #6b6f7b 50%, transparent 50%);
  background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 4px rgba(211, 28, 59, .12); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-captcha { min-height: 78px; margin: 4px 0 18px; }
/* small phones: the "I am human" box is a fixed 304 px wide - a little smaller so it stays inside the form */
@media (max-width: 379px) { .form-card { padding: 18px 16px; } .form-captcha { transform: scale(.9); transform-origin: 0 0; margin-bottom: 10px; } }
#form-submit { width: 100%; }
@media (min-width: 700px) { #form-submit { width: auto; min-width: 220px; } }
.form-msg { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: .95rem; }
.form-msg.show { display: block; }
.form-msg.success { background: #e9f7ef; color: #14532d; }
.form-msg.error { background: var(--red-soft); color: var(--red-d); }
.office { padding: 0; overflow: hidden; }
.office .txt { padding: 20px 22px; }
.office h2 { font-size: 1.2rem; margin-bottom: 6px; }
.office p:not(.eyebrow) { color: var(--ink-2); font-size: .95rem; }
.office .btn { margin-top: 14px; }
.map { aspect-ratio: 4 / 3; background: var(--bg-2); border-top: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 44px 0 0; font-size: .93rem; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.foot-about, .foot-contact { grid-column: 1 / -1; }
.foot-about img { height: 44px; width: auto; margin-bottom: 14px; }
.site-footer h2 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.foot-about h2 { font-size: 1.05rem; letter-spacing: 0; text-transform: none; margin-bottom: 8px; }
.foot-links li { margin: 8px 0; }
.foot-links a:hover, .foot-contact a:hover { color: var(--red); }
.foot-contact li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; margin: 10px 0; }
.foot-contact svg { width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.foot-bottom { margin-top: 32px; padding: 18px 0 22px; border-top: 1px solid var(--line); font-size: .83rem; display: grid; gap: 6px; }
.foot-bottom a { text-decoration: underline; }
@media (min-width: 1000px) {
  .site-footer { padding-top: 64px; }
  .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; }
  .foot-about, .foot-contact { grid-column: auto; }
}

/* =========================================================================================
   COLOUR - the company profile's brand colours on the light pages: deep red -> red -> orange-red -> orange -> peach,
   Construction in red, Oil & Gas in orange, Trading in amber. Text on colour keeps a readable contrast.
   ========================================================================================= */
:root {
  --orange: #ff7a1a;
  --orange-d: #c2410c;
  --orange-soft: #fff1e2;
  --warm: #fbf5f2;
  --grad: linear-gradient(100deg, #a3162f 0%, #d31c3b 28%, #e8362b 48%, #ff7a1a 72%, #ffb98f 100%);
  --grad-deep: linear-gradient(115deg, #a3162f 0%, #d31c3b 42%, #e8362b 72%, #f06423 100%);
  --grad-soft: linear-gradient(135deg, #fdecef 0%, #ffeedd 100%);
}
.con { --sc: #d31c3b; --sc-soft: #fdecef; }
.og { --sc: #c2410c; --sc-soft: #fff1e2; }
.tr { --sc: #a15c07; --sc-soft: #fef4e2; }

/* brand stripe across the very top of every page */
body::before { content: ""; display: block; height: 4px; background: var(--grad); }
.eyebrow::before { width: 26px; background: var(--grad); }
.sub-title::after { background: linear-gradient(90deg, #f2c4cc, rgba(255, 185, 143, .5) 40%, transparent); }

/* buttons */
.btn-red { background: var(--grad-deep); border-color: transparent; box-shadow: 0 8px 20px rgba(211, 28, 59, .26); }
.btn-red:hover { background: linear-gradient(115deg, #8c1227 0%, #b8152f 45%, #d42c22 100%); box-shadow: 0 10px 24px rgba(211, 28, 59, .32); }
.btn-line:hover { background: #fff8f5; }
.nav a.active::after { background: var(--grad); height: 3px; }

/* icons: a warm red-orange tint (inside a sector: the sector's colour) */
.ico { background: var(--sc-soft, var(--grad-soft)); color: var(--sc, var(--red)); }
.creds .ico { background: var(--grad-deep); color: #fff; box-shadow: 0 6px 14px rgba(211, 28, 59, .24); }

/* warm sections instead of grey */
.sec.alt { background: radial-gradient(900px 320px at 100% 0, rgba(255, 122, 26, .08), transparent 60%), radial-gradient(700px 300px at 0 100%, rgba(211, 28, 59, .05), transparent 60%), var(--warm); }

/* home: hero */
.hero { background: radial-gradient(760px 420px at 96% 4%, rgba(255, 122, 26, .16), transparent 62%), radial-gradient(620px 380px at -4% 100%, rgba(211, 28, 59, .09), transparent 60%), linear-gradient(180deg, #fff 0%, #fff8f4 100%); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 span, .glance b { background: var(--grad-deep); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.glance div { position: relative; overflow: hidden; border-color: #f4dcd6; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 16px rgba(211, 28, 59, .06); }
.glance div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); }
.mosaic { position: relative; isolation: isolate; }
.mosaic::before { content: ""; position: absolute; inset: 16px -10px -10px 16px; border-radius: 20px; background: var(--grad); opacity: .22; z-index: -1; }
@media (min-width: 1000px) { .mosaic::before { inset: 26px -18px -18px 26px; border-radius: 26px; } }
.mosaic figure { box-shadow: 0 10px 26px rgba(16, 24, 40, .14); }
.mosaic figcaption { display: inline-flex; align-items: center; gap: 6px; }
.mosaic figcaption::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sc, var(--red)); }

/* sector colours: tags, card tops, categories */
.tag { color: var(--sc, var(--red)); background: var(--sc-soft, var(--red-soft)); }
.sector { position: relative; overflow: hidden; }
.sector::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--sc, var(--red)); z-index: 1; }
.sector .link-more { color: var(--sc, var(--red)); }
.pcard .cat { color: var(--sc, var(--red)); }
.gallery [data-category="civil"] { --sc: #d31c3b; }
.gallery [data-category="epcc"] { --sc: #c2410c; }
.gallery [data-category="crane"] { --sc: #a15c07; }
.project { box-shadow: inset 4px 0 0 var(--sc, var(--red)), var(--shadow); }
.group-title .count { background: var(--grad-soft); }

/* photos beside text: a warm offset frame */
.split .pic, .sector-intro .pic { box-shadow: 10px 10px 0 #ffe2d2; }
@media (min-width: 1000px) { .split .pic, .sector-intro .pic { box-shadow: 16px 16px 0 #ffe2d2; } }

/* clients */
.logos div { transition: transform .18s, box-shadow .18s, border-color .18s; }
.logos div:hover { transform: translateY(-2px); border-color: #f6c9b3; box-shadow: 0 8px 18px rgba(255, 122, 26, .14); }

/* page header of the inner pages */
.page-head { background: radial-gradient(760px 320px at 100% 0, rgba(255, 122, 26, .15), transparent 60%), radial-gradient(600px 300px at 0 100%, rgba(211, 28, 59, .08), transparent 60%), #fff8f5; border-bottom-color: #f3dfd8; }
.jump a:hover, .filter:hover { border-color: #f2a37d; color: var(--red-d); }
.filter.active, .filter.active:hover { background: var(--grad-deep); border-color: transparent; color: #fff; box-shadow: 0 6px 14px rgba(211, 28, 59, .22); }

/* about */
.vision { position: relative; overflow: hidden; border-left: 1px solid var(--line); padding-left: 30px; background: linear-gradient(90deg, #fff7f3, #fff 60%); }
.vision::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, #a3162f, #e8362b 55%, #ff7a1a); }
.approach span { background: var(--grad-soft); color: var(--red-d); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .card p.quote span { background: var(--grad-deep); -webkit-background-clip: text; background-clip: text; color: transparent; }
}

/* process steps */
.step::before { background: var(--grad-deep); box-shadow: 0 6px 14px rgba(211, 28, 59, .25); }

/* call to action: a bold brand-gradient panel */
.cta { position: relative; overflow: hidden; isolation: isolate; background: var(--grad-deep); border: 0; box-shadow: 0 18px 40px rgba(211, 28, 59, .22); }
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .10); z-index: -1; }
.cta::before { width: 260px; height: 260px; right: -70px; top: -110px; }
.cta::after { width: 180px; height: 180px; right: 120px; bottom: -120px; background: rgba(255, 185, 143, .20); }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .93); }
.cta .btn-red { background: #fff; color: var(--red-d); box-shadow: 0 8px 20px rgba(80, 10, 20, .22); }
.cta .btn-red:hover { background: #fff3ee; }
.cta .btn-line { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .75); }
.cta .btn-line:hover { background: rgba(255, 255, 255, .18); color: #fff; border-color: #fff; }

/* contact */
.ccards a.ccard:first-child .ico { background: var(--grad-deep); color: #fff; }
.form-card { position: relative; overflow: hidden; }
.form-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }

/* footer: the brand stripe again, warm background */
.site-footer { position: relative; border-top: 0; background: radial-gradient(800px 300px at 100% 0, rgba(255, 122, 26, .07), transparent 60%), var(--warm); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }

/* desktop: cards lift a little under the mouse */
@media (hover: hover) and (min-width: 1000px) {
  .sector, .pcard, .svc, .qual, .cred, .project, .fleet .card { transition: transform .2s, box-shadow .2s; }
  .sector:hover, .pcard:hover, .svc:hover, .qual:hover, .cred:hover, .fleet .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
  .project:hover { transform: translateY(-3px); box-shadow: inset 4px 0 0 var(--sc, var(--red)), var(--shadow-up); }
}

/* inside a sector, its lists and links take the sector colour too */
details.more summary { color: var(--sc, var(--red)); }
.ticks li::before { border-color: var(--sc, var(--red)); }

/* =========================================================================================
   NEWS, CAREERS, GALLERY (filled from the Firebase database by js/content.js) + page banners
   ========================================================================================= */
/* inner pages: a photo next to the title (a banner above it on phones), the key words highlighted */
mark { background: linear-gradient(transparent 58%, #ffd6bf 58%, #ffd6bf 92%, transparent 92%); color: inherit; padding: 0 .05em; }
.ph-grid { display: grid; gap: 18px; }
.ph-photo { order: -1; margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 7; background: var(--bg-2); box-shadow: 0 10px 24px rgba(16, 24, 40, .12); }
.ph-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1000px) {
  .ph-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: center; }
  .ph-photo { order: 0; aspect-ratio: 4 / 3; border-radius: 18px; box-shadow: 16px 16px 0 #ffe2d2, 0 14px 30px rgba(16, 24, 40, .12); }
}

/* a heading with a link on the right */
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 24px; max-width: none; }
.head-row .link-more { margin: 0 0 4px; }

/* waiting / nothing / could not load */
.loading-box { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 140px; color: var(--muted); font-size: .95rem; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #f6d6cc; border-top-color: var(--red); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-box { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 30px 20px; border: 1.5px dashed #efcabe; border-radius: var(--radius); background: #fffaf8; color: var(--muted); }
.empty-box p { max-width: 560px; }
.badge-sample { display: inline-block; background: #fff; color: #9a3412; border: 1px dashed #f59e0b; font-family: var(--font-head); font-weight: 700; font-size: 10.5px;
  letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; line-height: 1.5; vertical-align: middle; }
.pic .badge-sample, .gtile .badge-sample { position: absolute; top: 10px; left: 10px; z-index: 2; }

/* ---------- news ---------- */
.nmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.ncat { font-family: var(--font-head); font-weight: 600; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--red-d); background: var(--grad-soft); padding: 3px 9px; border-radius: 999px; }
.news-cards { display: grid; gap: 14px; }
@media (min-width: 900px) { .news-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.ncard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: inherit; min-width: 0; }
.ncard .pic { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--grad-soft); }
.ncard img, .nrow img, .nfeature img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ncard:hover img, .nrow:hover img, .nfeature:hover img { transform: scale(1.04); }
.ncard .txt { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; min-width: 0; }
.ncard h3 { font-size: 1.02rem; margin-bottom: 6px; }
.ncard p, .nrow p, .nfeature p { color: var(--muted); font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ncard .link-more { margin-top: auto; padding-top: 12px; }
@media (max-width: 899px) {
  .ncard { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
  .ncard .pic { aspect-ratio: auto; height: 100%; min-height: 118px; }
  .ncard .txt { padding: 12px 14px; }
  .ncard p { -webkit-line-clamp: 2; }
  .ncard .link-more { display: none; }
  .ncard .pic .badge-sample { top: 6px; left: 6px; }
}
.nfeature { display: grid; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); color: inherit; }
.nfeature .pic { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--grad-soft); }
.nfeature .txt { padding: 20px 20px 22px; }
.nfeature h2 { font-size: 1.35rem; margin-bottom: 8px; }
.nfeature .link-more { margin-top: 12px; }
@media (min-width: 900px) {
  .nfeature { grid-template-columns: 1.15fr .85fr; }
  .nfeature .pic { aspect-ratio: auto; min-height: 360px; }
  .nfeature .pic img { position: absolute; inset: 0; }
  .nfeature .txt { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
  .nfeature h2 { font-size: 1.75rem; }
}
.nlist { display: grid; gap: 14px; margin-top: 18px; }
.nrow { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); color: inherit; }
.nrow .pic { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--grad-soft); }
.nrow h3 { font-size: 1rem; margin-bottom: 4px; }
.nrow p { -webkit-line-clamp: 2; }
.dblock { display: none; }
@media (min-width: 700px) {
  .nrow { grid-template-columns: 78px 210px minmax(0, 1fr); gap: 22px; padding: 16px; align-items: center; }
  .nrow .pic { aspect-ratio: 16 / 10; }
  .dblock { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 78px; height: 78px; border-radius: 14px;
    background: var(--grad-soft); color: var(--red-d); font-family: var(--font-head); line-height: 1; }
  .dblock b { font-size: 1.7rem; font-weight: 800; }
  .dblock span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-top: 5px; }
  .nrow .nmeta .ndate { display: none; }
}
.article { max-width: 860px; margin: 0 auto; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--red); }
.back-link::before { content: "\2190"; }
.article h2 { font-size: 1.6rem; margin: 6px 0 4px; }
.article .apic { position: relative; border-radius: var(--radius); overflow: hidden; margin: 20px 0 24px; background: var(--grad-soft); box-shadow: var(--shadow); }
.article .apic img { width: 100%; max-height: 560px; object-fit: cover; }
.article .body p { font-size: 1.03rem; color: var(--ink-2); margin-bottom: 16px; }
.article .more-news { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); }
@media (min-width: 1000px) { .article h2 { font-size: 2.3rem; } }

/* ---------- careers ---------- */
#jobs-app .filters { justify-content: flex-start; }
.jobs-count { color: var(--muted); margin-bottom: 14px; font-size: .95rem; }
.jobs { display: grid; gap: 16px; }
.job { padding: 0; overflow: hidden; box-shadow: inset 4px 0 0 var(--red), var(--shadow); }
.job-head { padding: 18px 20px 16px 22px; }
.job-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.job-top .tag { margin: 0; }
.job-soon { font-family: var(--font-head); font-weight: 700; font-size: 11.5px; color: #9a3412; background: var(--orange-soft); padding: 3px 9px; border-radius: 999px; }
.job h3 { font-size: 1.15rem; }
.job-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; margin: 12px 0; font-size: .9rem; color: var(--ink-2); }
.job-meta li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; line-height: 1.4; }
.job-meta svg { width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.job-sum { color: var(--muted); font-size: .95rem; }
@media (min-width: 900px) { .job-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); } .job-head { padding: 22px 26px 18px 28px; } }
.job-more { border-top: 1px solid var(--line); }
.job-more > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 12px 20px 12px 22px; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--red); background: #fffaf8; }
.job-more > summary::-webkit-details-marker { display: none; }
.job-more > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; margin-right: 4px; }
.job-more[open] > summary::after { transform: rotate(-135deg); }
.job-body { display: grid; gap: 22px; padding: 18px 20px 22px 22px; }
.job-body h4 { font-size: .98rem; margin-bottom: 6px; }
.job-facts { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .93rem; }
.job-facts div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.job-facts div:last-child { border-bottom: 0; }
.job-facts dt { color: var(--muted); font-weight: 600; }
.job-facts dd { color: var(--ink); }
.job-apply { display: grid; gap: 10px; padding: 18px; border-radius: 14px; background: var(--grad-soft); }
.job-apply p { font-size: .92rem; color: var(--ink-2); }
@media (min-width: 900px) {
  .job-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 22px 26px 26px 28px; }
  .job-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-column: 1 / -1; }
  .job-facts div:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  .job-facts div:nth-child(odd) { border-right: 1px solid var(--line); }
  .job-apply { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 20px; }
}
.notice { border-left: 4px solid var(--orange); }

/* ---------- project gallery: photo tiles with the title on the photo, tap to view large ---------- */
.gtiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .gtiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1200px) { .gtiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.gtile { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1;
  background: var(--grad-soft); cursor: zoom-in; text-align: left; box-shadow: var(--shadow); font: inherit; }
@media (min-width: 700px) { .gtile { aspect-ratio: 4 / 3; } }
.gtile::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--sc, var(--red)); z-index: 1; }
.gtile img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.gtile:hover img, .gtile:focus-visible img { transform: scale(1.06); }
.gtile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 10px 10px; background: linear-gradient(180deg, rgba(12, 14, 20, 0), rgba(12, 14, 20, .8)); }
.gtile .cap span { display: block; font-family: var(--font-head); font-weight: 700; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: #ffd6bf; margin-bottom: 2px; }
.gtile .cap b { display: block; font-family: var(--font-head); font-weight: 600; font-size: .86rem; line-height: 1.25; color: #fff; }
@media (min-width: 700px) { .gtile .cap { padding: 40px 14px 13px; } .gtile .cap span { font-size: 10.5px; } .gtile .cap b { font-size: .98rem; } }
.cat-civil { --sc: #d31c3b; } .cat-telco { --sc: #f06423; } .cat-epcc { --sc: #c2410c; } .cat-crane { --sc: #a15c07; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 64px 14px 86px; background: rgba(255, 255, 255, .97); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1200px, 100%); max-height: calc(100vh - 210px); border-radius: 12px; object-fit: contain; box-shadow: 0 18px 40px rgba(16, 24, 40, .22); }
.lb-cap { text-align: center; font-family: var(--font-head); font-weight: 600; color: var(--ink); max-width: 720px; }
.lb-cap span { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sc, var(--red)); margin-bottom: 2px; }
.lightbox button { position: absolute; display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.lightbox button:hover { border-color: var(--red); color: var(--red); }
.lb-close { top: 12px; right: 14px; }
.lb-prev, .lb-next { bottom: 20px; }
.lb-prev { left: calc(50% - 62px); } .lb-next { right: calc(50% - 62px); }
@media (min-width: 900px) { .lightbox { padding: 64px 90px 40px; } .lb-prev, .lb-next { bottom: auto; top: calc(50% - 25px); } .lb-prev { left: 24px; } .lb-next { right: 24px; } }

/* client logos waiting for the database: soft placeholder tiles */
.logos .sk { background: linear-gradient(90deg, #fff 0%, #fbeee9 50%, #fff 100%); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
/* a project with a photo (optional field image) */
.project .ppic { margin: -22px -22px 16px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--grad-soft); }
.project .ppic img { width: 100%; height: 100%; object-fit: cover; }
#projects-app .group-title + .projects { margin-bottom: 0; }

/* notice bar across the top of every page (from the database) */
.notice-bar { font-size: .93rem; line-height: 1.45; }
.notice-bar .wrap { display: flex; align-items: center; gap: 12px; padding-top: 9px; padding-bottom: 9px; }
.notice-bar p { flex: 1; min-width: 0; }
.notice-bar a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.notice-bar.info { background: linear-gradient(90deg, #fff1e2, #fdeef1); color: var(--ink); border-bottom: 1px solid #f6d3da; }
.notice-bar.info a { color: var(--red-d); }
.notice-bar.important { background: var(--grad-deep); color: #fff; }
.notice-bar.important a { color: #fff; }
.nb-close { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .06); color: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.notice-bar.important .nb-close { background: rgba(255, 255, 255, .2); }
.notice-bar .badge-sample { margin-right: 4px; }

/* downloads (About page) */
.dl-list { display: grid; gap: 12px; }
@media (min-width: 700px) { .dl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1200px) { .dl-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dl { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.dl h3 { font-size: 1rem; margin-bottom: 4px; }
.dl .dmeta { font-size: 12.5px; color: var(--muted); margin: 4px 0 12px; }
.dl .btn svg { width: 16px; height: 16px; }
#brands-app .chips { justify-content: flex-start; }

/* phones: rows of buttons / names never wrap raggedly - an even two-column grid of equal tiles (an odd last one takes the full row) */
@media (max-width: 699px) {
  .jump, .filters, .chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .jump a, .filter, .chip { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 8px 10px;
    border-radius: 12px; line-height: 1.25; }
  .jump > :last-child:nth-child(odd), .filters > :last-child:nth-child(odd), .chips > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .topbar, .site-header, .mbar, .nav-overlay { display: none !important; } body { padding: 0; } }
