/* Structura London — site styles (2026 redesign)
   Light corporate base, four sub-brands: Infrastructure, Clean, Digital, Energy. */

:root {
  --paper: #f6f5f2;
  --white: #ffffff;
  --ink: #141416;
  --ink-2: #45443f;
  --muted: #6b6a64;
  --line: #e4e2dc;
  --line-2: #cfcdc6;
  --accent: #c8211b;
  --accent-dark: #a51a15;

  --infra: #b4410c;
  --clean: #0f766e;
  --property: #6d28d9;
  --digital: #1d4ed8;
  --energy: #a15c07;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--digital); outline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 800; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand img { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; padding: 10px 0; }
.nav a[aria-current="page"] { color: var(--accent); }
.nav a.btn[aria-current="page"] { color: #fff; }
.nav .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.nav-toggle { display: none; font: inherit; font-weight: 600; background: none; border: 1px solid var(--line-2); border-radius: 6px; padding: 0 16px; min-height: 44px; color: var(--ink); cursor: pointer; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .btn { margin-top: 14px; justify-content: center; border-bottom: 0; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 6px; font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper); color: var(--ink); }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.nav .btn { min-height: 44px; padding: 0 18px; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---------- Type helpers ---------- */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.eyebrow.infra { color: var(--infra); } .eyebrow.clean { color: var(--clean); }
.eyebrow.digital { color: var(--digital); } .eyebrow.property { color: var(--property); } .eyebrow.energy { color: var(--energy); }
.eyebrow.red { color: var(--accent); }
.lede { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 620px; }
.h-xl { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.035em; }
.h-lg { font-size: clamp(32px, 3.8vw, 50px); letter-spacing: -0.03em; }
.h-md { font-size: clamp(26px, 2.6vw, 34px); }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head .lede { margin-top: 14px; }
.bg-white { background: var(--white); border-block: 1px solid var(--line); }
.bg-dark { background: var(--ink); color: #f2f1ec; }
.bg-dark .lede, .bg-dark p { color: #d4d3cd; }
.bg-dark .eyebrow { color: #a8a7a0; }

/* ---------- Home hero (big division panels) ---------- */
.home-hero { padding-block: clamp(48px, 7vw, 88px) clamp(48px, 6vw, 72px); }
.home-hero .tag { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: #5b5a55; }
.home-hero .tag::before { content: ""; width: 10px; height: 10px; background: var(--accent); }
.home-hero h1 { margin-top: 20px; max-width: 980px; }
.home-hero .lede { margin-top: 22px; }
.panels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: clamp(36px, 5vw, 56px); }
@media (max-width: 1180px) { .panels { grid-template-columns: repeat(6, minmax(0, 1fr)); } .panel { grid-column: span 2; } .panel:nth-child(n+4) { grid-column: span 3; } }
@media (max-width: 760px) { .panels { grid-template-columns: repeat(2, minmax(0, 1fr)); } .panel, .panel:nth-child(n+4) { grid-column: span 1; } .panel:last-child { grid-column: span 2; } }
@media (max-width: 560px) { .panels { grid-template-columns: 1fr; } .panel, .panel:nth-child(n+4), .panel:last-child { grid-column: auto; } }
.panel { position: relative; display: block; min-height: clamp(380px, 42vw, 560px); border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; background: #222; isolation: isolate; }
@media (max-width: 560px) { .panel { min-height: 340px; } }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.82) 100%); }
.panel:hover { color: #fff; }
.panel:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .panel img { transition: none; } .panel:hover img { transform: none; } }
.panel-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; }
.panel .num { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.panel .num::before { content: ""; width: 22px; height: 4px; border-radius: 2px; background: var(--c, #fff); }
.panel h2 { font-size: clamp(22px, 1.9vw, 28px); margin-top: 10px; letter-spacing: -0.02em; }
.panel p { font-size: 15.5px; line-height: 1.5; color: #e9e8e3; margin-top: 8px; }
.panel .go { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 15px; border-bottom: 2px solid var(--c, #fff); padding-bottom: 2px; }
.panel.infra { --c: #ff7a3d; } .panel.clean { --c: #3fd1c1; } .panel.digital { --c: #7c9bff; } .panel.property { --c: #b99bff; }
.panel img.pos-team { object-position: 40% 50%; }
@media (min-width: 1181px) { .panel-body { padding: 22px; } .panel .num { font-size: 12px; letter-spacing: .06em; } .panel p { font-size: 15px; } } .panel.energy { --c: #ffc83d; }

/* ---------- Facts strip ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; padding-block: 26px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 600; }

/* ---------- Zig-zag feature rows ---------- */
.rows { display: flex; flex-direction: column; gap: clamp(64px, 8vw, 96px); }
.row { display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 56px); align-items: center; }
.row:nth-child(even) { flex-direction: row-reverse; }
.row > .media { flex: 1 1 460px; min-width: 0; }
.row > .media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.row > .text { flex: 1 1 400px; min-width: 0; }
.row h3 { margin-top: 12px; font-size: clamp(26px, 2.6vw, 34px); }
.row p { margin-top: 14px; color: var(--ink-2); }
.row .chips { margin-top: 18px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; font-size: 14px; }
.chips li { background: var(--white); border: 1px solid var(--line); padding: 7px 12px; border-radius: 999px; }

/* ---------- Division page hero ---------- */
.page-hero { padding-block: clamp(44px, 6vw, 80px); }
.page-hero .wrap { display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 56px); align-items: center; }
.page-hero .text { flex: 1 1 440px; min-width: 0; }
.page-hero .media { flex: 1 1 480px; min-width: 0; }
.page-hero .media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.page-hero h1 { margin-top: 14px; }
.page-hero .lede { margin-top: 20px; }
.page-hero .btn-row { margin-top: 30px; }
.division-bar { height: 6px; background: var(--c, var(--accent)); }
.crumbs { font-size: 14px; color: var(--muted); padding-top: 22px; }
.crumbs a { color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card .n { font-size: 13px; font-weight: 700; color: var(--c, var(--muted)); letter-spacing: .06em; }
.card h3 { font-size: 21px; margin-top: 10px; letter-spacing: -0.01em; }
.card p { margin-top: 10px; font-size: 16px; color: var(--ink-2); line-height: 1.55; }
.card a.link-arrow { margin-top: 8px; }
.card-top { border-top: 4px solid var(--c, var(--accent)); }
.bg-dark .card { background: #1d1d20; border-color: #2c2c30; }
.bg-dark .card p { color: #c9c8c2; }
.bg-dark .card-top { border-top-color: var(--c, var(--accent)); }
[id] { scroll-margin-top: 96px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.gallery figure { margin: 0; position: relative; grid-column: span 4; }
.gallery figure.wide { grid-column: span 8; }
.gallery figure.half { grid-column: span 6; }
.gallery img { width: 100%; height: 100%; min-height: 220px; max-height: 460px; object-fit: cover; border-radius: var(--radius); }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(20,20,22,.78); color: #fff; font-size: 13px; padding: 5px 10px; border-radius: 4px; }
@media (max-width: 760px) { .gallery figure, .gallery figure.wide, .gallery figure.half { grid-column: span 12; } }

/* ---------- Split block ---------- */
.split { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 64px); }
.split > * { flex: 1 1 400px; min-width: 0; }
.prose p + p { margin-top: 16px; }
.prose p { color: var(--ink-2); }
.bg-dark .prose p { color: #d4d3cd; }
.pull { font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }

/* ---------- Area list, FAQs ---------- */
.area-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; }
.area-list a { display: flex; justify-content: space-between; align-items: center; min-height: 56px; padding: 0 20px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-weight: 600; }
.area-list a::after { content: "→"; color: var(--clean); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; min-height: 64px; font-weight: 600; font-size: 18px; padding-block: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 20px; color: var(--ink-2); max-width: 820px; }

/* ---------- Compare (StructuraHub tiers) ---------- */
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.ticks li { padding-left: 26px; position: relative; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 12px; height: 7px; border-left: 2px solid var(--c, var(--clean)); border-bottom: 2px solid var(--c, var(--clean)); transform: rotate(-45deg); }
.ticks.cross li::before { width: 12px; height: 2px; border: 0; background: var(--muted); transform: none; top: 13px; }

/* ---------- App screenshots ---------- */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .shots { grid-template-columns: 1fr; } }
.shots figure { margin: 0; }
.shots button { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; cursor: zoom-in; }
.shots img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.shots figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.reports { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) { .reports { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .reports { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.reports img { border-radius: 6px; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.lightbox { position: fixed; inset: 0; background: rgba(10,10,11,.92); display: none; align-items: center; justify-content: center; padding: 24px; z-index: 200; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1400px, 100%); max-height: 88vh; border-radius: 6px; }
.lightbox button { position: absolute; top: 16px; right: 16px; min-width: 48px; min-height: 48px; border-radius: 50%; border: 0; background: #fff; font: inherit; font-size: 22px; cursor: pointer; }

/* ---------- Portfolio (Digital) ---------- */
.work { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.work .card { display: flex; flex-direction: column; }
.work .url { font-size: 14px; color: var(--muted); margin-top: 4px; }
.work .card .link-arrow { margin-top: auto; padding-top: 12px; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 16px; }
.steps li::before { content: "0" counter(s); font-size: 13px; font-weight: 700; color: var(--c, var(--digital)); }
.steps h3 { font-size: 20px; margin-top: 6px; }
.steps p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }

/* ---------- Notice ---------- */
.notice { border: 1px solid var(--line-2); background: var(--white); border-radius: 8px; padding: 18px 20px; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.notice strong { color: var(--ink); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; padding-block: clamp(56px, 7vw, 88px); }
.cta-band h2 { font-size: clamp(30px, 3.6vw, 46px); max-width: 720px; }
.cta-band p { color: #cfcec8; margin-top: 12px; max-width: 620px; }

/* ---------- Quote form ---------- */
.quote-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); }
.qf-services { border: 0; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.qf-services legend { font-weight: 700; font-size: 18px; margin-bottom: 12px; padding: 0; }
.qf-services label { position: relative; cursor: pointer; }
.qf-services input { position: absolute; opacity: 0; }
.qf-services span { display: flex; flex-direction: column; gap: 2px; min-height: 76px; justify-content: center; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 8px; border-left: 5px solid var(--c); }
.qf-services small { color: var(--muted); font-size: 13.5px; line-height: 1.35; }
.qf-services input:checked + span { border-color: var(--ink); border-left-color: var(--c); box-shadow: inset 0 0 0 1px var(--ink); background: #fbfbf9; }
.qf-services input:focus-visible + span { outline: 3px solid var(--digital); outline-offset: 2px; }
.qf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .qf-grid { grid-template-columns: 1fr; } }
.qf-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.qf-field[hidden] { display: none; }
.qf-wide { grid-column: 1 / -1; }
.qf-field input, .qf-field select, .qf-field textarea { font: inherit; font-size: 16px; font-weight: 400; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 6px; min-height: 48px; background: #fff; color: var(--ink); width: 100%; }
.qf-error { margin-top: 16px; color: var(--accent-dark); font-weight: 600; }
.qf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.qf-note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ---------- Contact details ---------- */
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 4px; font-size: 18px; }
.contact-list a { display: inline-flex; min-height: 44px; align-items: center; }

/* ---------- Footer ---------- */
.site-footer { background: #0e0e10; color: #c9c8c2; font-size: 15px; }
.site-footer .wrap { padding-block: 56px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer img { height: 48px; width: auto; }
.site-footer h2 { font-size: 13px; letter-spacing: .09em; text-transform: uppercase; color: #8f8e88; font-weight: 700; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.site-footer a { color: #e9e8e3; text-decoration: none; display: inline-flex; min-height: 34px; align-items: center; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .about { margin-top: 16px; max-width: 320px; color: #a8a7a0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid #26262a; margin-top: 40px; padding-top: 22px; color: #8f8e88; font-size: 14px; }

/* ---------- Legal/simple pages ---------- */
.legal { max-width: 820px; }
.legal h1 { margin-top: 12px; }
.legal h2 { font-size: 24px; margin-top: 40px; }
.legal p, .legal li { color: var(--ink-2); margin-top: 12px; }
.legal ul { padding-left: 20px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
