/* ==========================================================================
   Olympus Facades — stylesheet
   One file, no overrides: each component is styled once, then adjusted in
   the two responsive blocks at the end (≤1000px tablet, ≤650px phone).
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License — see assets/fonts) ----------
   Archivo (variable: weight 100–900, width 62–125%) — headings, links, buttons, labels
   IBM Plex Sans 400/500/600 — body text and everything else */
@font-face {
  font-family: 'Archivo';
  src: url('assets/fonts/archivo-variable.woff2') format('woff2-variations'), url('assets/fonts/archivo-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face { font-family: 'IBM Plex Sans'; src: url('assets/fonts/ibm-plex-sans-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('assets/fonts/ibm-plex-sans-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('assets/fonts/ibm-plex-sans-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

/* Ampersand only: Archivo's '&' is very stylised, so '&' alone is drawn from IBM Plex Sans.
   unicode-range limits this face to U+0026; every other character still comes from Archivo. */
@font-face { font-family: 'Amp'; src: url('assets/fonts/ibm-plex-sans-500.woff2') format('woff2'); unicode-range: U+0026; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --radius: 4px;   /* one corner radius for every box, button, field and photo */
  --navy: #101f2e;
  --navy-deep: #0b1c29;
  --ink: #182734;
  --slate: #586f81;        /* labels & eyebrows — 4.9:1 on light backgrounds */
  --muted: #5b6b75;        /* body copy on light backgrounds */
  --pale: #eaf0f2;
  --mist: #dce7ed;
  --line: #d4dde2;
  --white: #fff;
  --page: #fafbfa;
  --focus: #3d84ad;
  --gutter: 52px;
  --header-h: 80px;
  --font-head: 'Amp', 'Archivo', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'IBM Plex Sans', Arial, Helvetica, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.65 var(--font-body);
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, select { touch-action: manipulation; }
button { cursor: pointer; }

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

p { color: var(--muted); }

h2 {
  font-size: clamp(35px, 3.5vw, 55px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.12;
  margin: 0 0 26px;
}

.wrap { width: min(1320px, calc(100% - 2 * var(--gutter))); margin: auto; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- Typography roles ---------- */
/* Headings, links and buttons: Archivo */
h1, h2, h3, h4,
.button, .outline, .reset, .skip-link,
nav a, .text-link, .email, .footer-links a,
.tile-title, .project button, .buildup-list button {
  font-family: var(--font-head);
}
h1, h2 { font-weight: 500; }
.button, .outline { font-weight: 600; letter-spacing: .01em; }
/* Small uppercase labels: Archivo, slightly expanded — echoes the spaced lettering in the logo */
.eyebrow, .strip, .meta, .tile-number, .coming-soon-badge, .bu-num, .buildup-detail .bu-brands b {
  font-family: var(--font-head);
  font-stretch: 112%;
}

/* ---------- Buttons & links ---------- */
.button, .outline {
  display: inline-block;
  border-radius: var(--radius);
  padding: 17px 24px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
}
.button { background: var(--mist); color: var(--navy); }
.button.small { background: var(--navy); color: #fff; padding: 13px 20px; }
.outline { border-color: #ffffff70; color: #fff; }

.text-link {
  display: inline-block;
  margin-top: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--slate);
  font-size: 14px;
}

.eyebrow {
  margin-bottom: 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--slate);
}

.lead { margin-top: 0; font-size: 22px; line-height: 1.5; color: var(--ink); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* same left/right inset as .wrap, so the logo and menu line up with the page content */
  padding: 15px max(var(--gutter), calc((100% - 1320px) / 2));
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-logo { display: block; flex-shrink: 0; }
.header-logo img { display: block; width: 170px; }

nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
nav a { white-space: nowrap; }
nav a:not(.button):hover { color: var(--slate); }
#menu { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  /* taller hero = more of the photo visible; fills the first screen on most laptops */
  min-height: clamp(640px, calc(100svh - var(--header-h)), 900px);
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background:
    /* dark only behind the text (left) and the bottom line; the right side shows the photo almost untouched */
    linear-gradient(90deg, #0b1c2cdb 0%, #0b1c2ca6 36%, #0b1c2c26 68%, #0b1c2c00 100%),
    linear-gradient(0deg, #0b1c2cb3 0%, #0b1c2c00 26%),
    url('assets/cladding-hero-bg.webp') center 32% / cover;
}

/* --hero-x = left/right inset shared by the hero text and the service strip, so both have exactly the same width */
.hero { --hero-x: max(var(--gutter), calc((100% - 1320px) / 2)); }
.hero-content { position: relative; width: 100%; padding: 65px var(--hero-x) 130px; }
.hero .eyebrow { color: #c0d2de; }

h1 {
  margin: 0 0 30px;
  font-size: clamp(46px, 6.5vw, 96px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.04;
}
h1 em { font-style: normal; color: #b6cbd9; }

.hero p { font-size: 18px; color: #d5dfe5; }
.hero .hero-slogan {
  margin: 0 0 24px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 1px;
  color: #d8e7f1;
}

.actions { display: flex; gap: 12px; margin-top: 35px; }

.hero-bottom {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding-left: var(--hero-x); padding-right: var(--hero-x);   /* line runs full width, text keeps the hero-content width */
  display: flex;
  justify-content: center;
  padding-top: 22px;
  padding-bottom: 30px;
  border-top: 1px solid #ffffff40;
  /* frosted band: 10% white over a blurred photo */
  background: #ffffff1a;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  font-size: 11px;
  letter-spacing: 1.3px;
}

/* Service strip inside the hero, spread across the same width as the hero content */
.hero-bottom.strip {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 1.7px;
  color: #e3ecf2;
}
.strip span { white-space: nowrap; }
.strip b { font-weight: 400; color: #8fb0c6; }

/* ---------- Sections ---------- */
.section, .intro { padding-top: 100px; padding-bottom: 100px; }
.intro, .split { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }

/* Section intro: heading with its short description underneath, both left-aligned */
.section-head { margin-bottom: 38px; }
.section-head h2 { margin-bottom: 18px; }
.section-head p { max-width: 620px; margin: 0; font-size: 16px; }

/* Who we are: photo left, text right */
.intro { align-items: center; }
.intro-text h2 { margin-bottom: 30px; }
.intro-media img { display: block; border-radius: var(--radius); width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* Remediation */
.remediation { padding: 90px 0; background: var(--navy); color: #fff; }
.remediation p { color: #b6c6d0; }
.remediation .eyebrow { color: #91acbf; }
/* Four delivery stages as stacked light cards with a numbered tile */
.rem-list { display: flex; flex-direction: column; gap: 14px; }
.rem-list article {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: #dce7ed;
  box-shadow: 0 6px 18px #050e1640;
  transition: background .2s, transform .2s;
}
.rem-list article:hover { background: #fff; }
.rem-list article > span {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
}
.rem-list h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.remediation .rem-list p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }

/* ---------- Service tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }

.tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 230px;
  padding: 30px;
  border: 0;
  border-radius: var(--radius);
  background: var(--pale);
  color: var(--ink);
  text-align: left;
  transition: background .2s, transform .2s;
}
.tile:hover { background: #d9e4eb; transform: translateY(-3px); }
.tile > span { display: block; }
.tile-number { display: flex !important; justify-content: space-between; font-size: 12px; color: var(--slate); }
.tile-title { margin: 27px 0 12px; font-size: 24px; font-weight: 500; line-height: 1.2; }
.tile-text { font-size: 13px; line-height: 1.6; color: var(--muted); }
.tile.primary { background: var(--navy); color: #fff; }
.tile.primary .tile-text, .tile.primary .tile-number { color: #bccdd8; }

/* ---------- Sectors ---------- */
.sectors { background: #edf0ed; }
.sector-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }

.sector {
  position: relative;
  min-height: 220px;
  padding: 25px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  text-align: left;
  background-color: #2c4659;
  background-image: linear-gradient(0deg, #0e2334f0, #24486130), var(--img);
  background-size: cover;
  background-position: center;
  transition: transform .2s;
}
.sector:hover { transform: translateY(-3px); }
.sector > span { position: absolute; left: 23px; right: 23px; bottom: 23px; font-size: 25px; }
.sector small { display: block; margin-top: 5px; font-size: 12px; color: #dbe4ea; }

/* ---------- Projects ---------- */
.projects { background: #fff; }

/* Filter bar — selects on a soft panel */
.filter-row {
  display: flex;
  align-items: end;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f6f9fa, #eef3f5);
}
.filter-row label {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--slate);
}
.filter-row select {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 13px 44px 13px 18px;
  border: 1px solid #c9d5dc;
  border-radius: var(--radius);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23101f2e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 18px center;
  box-shadow: 0 1px 2px #101f2e0d;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.filter-row select:hover { border-color: #8fa5b3; }
.filter-row select:focus-visible { border-color: var(--focus); box-shadow: 0 0 0 4px #3d84ad26; outline: none; }
.reset {
  flex-shrink: 0;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}
.reset:hover { background: #fff; border-color: #c9d5dc; }
.filter-row.is-disabled { opacity: .5; pointer-events: none; user-select: none; }

/* "Coming soon" panel shown while project profiles are hidden */
.coming-soon {
  margin-top: 24px;
  padding: 56px 48px;
  border-radius: var(--radius);
  background:
    linear-gradient(100deg, #101f2ef2 0%, #101f2ed9 55%, #101f2e99 100%),
    url('assets/portfolio-residential.webp') center / cover;
  color: #fff;
}
.coming-soon-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 12px;
  border: 1px solid #ffffff55;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #c0d2de;
}
.coming-soon h3 { margin: 0 0 12px; font-size: clamp(26px, 3vw, 38px); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.coming-soon p { max-width: 560px; margin: 0 0 26px; color: #c7d5df; }
.coming-soon .button.small { background: var(--mist); color: var(--navy); }

.count { margin: 25px 0; font-size: 12px; }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.project { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

.project-visual { position: relative; height: 230px; overflow: hidden; background: #d8e1e7; }
.project-visual > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.project:hover .project-visual > img { transform: scale(1.035); }
.project-visual > span {
  position: absolute; top: 18px; left: 20px;
  padding: 5px 8px;
  border-radius: 2px;
  background: #102637d9;
  color: #fff;
  font-size: 10px;
  letter-spacing: 1.5px;
}
.project-visual > small {
  position: absolute; right: 13px; bottom: 13px;
  padding: 3px 7px;
  border-radius: 2px;
  background: #102637df;
  color: #e7f0f6;
  font-size: 10px;
}

.project-copy { display: flex; flex-direction: column; flex: 1; padding: 23px; }
.project-copy button { align-self: flex-start; margin-top: auto; }
.meta { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--slate); }
.project h3 { margin: 12px 0; font-size: 24px; font-weight: 500; line-height: 1.2; }
.project p { min-height: 44px; font-size: 13px; }
.project button {
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid #8299a8;
  background: none;
  font-size: 12px;
}

.more-wrap { margin-top: 35px; text-align: center; }
.more-wrap .button { border: 1px solid var(--navy); background: #fff; }
.more-wrap .button:hover { background: var(--navy); color: #fff; }

.empty { grid-column: 1 / -1; padding: 35px; border-radius: var(--radius); background: var(--pale); }

.experience-note { max-width: 940px; margin: 35px 0 0; font-size: 12px; color: var(--muted); }

/* ---------- Delivery steps ---------- */
/* How we work: four cards with a numbered tile and a line that draws in on hover */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps article {
  position: relative;
  overflow: hidden;
  padding: 24px 20px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--pale);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
.steps article::before {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: #d9e4eb;   /* same colour as the light service tiles on hover */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.steps article:hover { background: #fff; transform: translateY(-5px); border-color: #d9e4eb; box-shadow: 0 10px 36px #101f2e14; }
.steps article:hover::before { transform: scaleX(1); }
.steps span {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
}
.steps h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; line-height: 1.3; }
.steps p { margin: 0; font-size: 14px; line-height: 1.55; }

.qa {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--slate);
}
.qa strong { margin-right: auto; font-size: 11px; letter-spacing: 1px; }

/* ---------- Contact ---------- */
.contact { background: var(--navy); color: #fff; }
.contact .eyebrow { color: #9ab1c1; }
.contact-intro p { color: #b9cad6; }
.contact h2 { font-size: 49px; }
.contact-intro a:focus-visible { outline-color: #8cc3e3; }

/* Intro left, white form card right */
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; }

.contact-points { display: flex; flex-direction: column; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.contact-points li { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.5; color: #dbe5ec; }
.contact-points li > span, .contact-methods .ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: var(--radius);
  background: #ffffff14;
  color: #b6cbd9;
  font-weight: 700;
}
.contact-methods { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 30px; padding-top: 26px; border-top: 1px solid #ffffff1f; }
.contact-methods > a, .contact-methods > span { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: #fff; overflow-wrap: anywhere; }
.contact-methods > a { font-family: var(--font-head); }
.contact-methods > a:hover { color: #b6cbd9; }

.enquiry-card, .enquiry-success {
  padding: 34px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 60px #050e1659;
}
.enquiry-card label { display: block; margin-bottom: 16px; font-family: var(--font-head); font-size: 13px; font-weight: 600; color: var(--ink); }
.enquiry-card .req { color: #a93226; }
.enquiry-card .opt { font-weight: 400; color: var(--muted); }
.enquiry-card input, .enquiry-card select, .enquiry-card textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  transition: border-color .18s, box-shadow .18s;
}
.enquiry-card select {
  padding-right: 42px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23101f2e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center;
  appearance: none;
  -webkit-appearance: none;
}
.enquiry-card input::placeholder, .enquiry-card textarea::placeholder { color: #8b9aa4; }
.enquiry-card input:hover, .enquiry-card select:hover, .enquiry-card textarea:hover { border-color: #b9c7d0; }
.enquiry-card input:focus-visible, .enquiry-card select:focus-visible, .enquiry-card textarea:focus-visible {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 4px #3d84ad26;
}
.enquiry-card [aria-invalid="true"] { border-color: #c0392b; }
.enquiry-card textarea { min-height: 130px; resize: vertical; }
.enquiry-card .button { width: 100%; margin-top: 4px; border-radius: var(--radius); background: var(--navy); color: #fff; font-size: 14px; transition: background .18s; }
.enquiry-card .button:hover { background: #1d3549; }

.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp-field { position: absolute; left: -9999px; }

.form-alert { margin: 14px 0 0; padding: 14px; border-radius: var(--radius); font-size: 14px; font-weight: 600; text-align: center; }
.form-alert:empty { display: none; }
.form-alert.is-error { background: #fdecec; color: #a93226; }
.form-alert.is-info { background: var(--pale); color: var(--ink); }
.form-note { margin: 18px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.form-note a { text-decoration: underline; }

.spinner {
  display: inline-block;
  width: 15px; height: 15px;
  margin-right: 10px;
  border: 2px solid #ffffff59;
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: -2px;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.enquiry-success { padding: 50px 34px; text-align: center; }
.enquiry-success:focus { outline: none; }
.success-icon {
  display: grid;
  place-items: center;
  width: 66px; height: 66px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  box-shadow: 0 12px 30px #101f2e40;
}
.enquiry-success h3 { margin: 0 0 10px; font-size: 26px; font-weight: 500; letter-spacing: -.02em; }
.enquiry-success p { max-width: 420px; margin: 0 auto 10px; font-size: 15px; }
.enquiry-success .text-link { border-width: 0 0 1px; background: none; color: var(--navy); cursor: pointer; }

button[disabled] { opacity: .6; cursor: progress; }

/* ---------- Footer ---------- */
.site-footer { padding: 50px 0; background: var(--navy-deep); color: #d8e3eb; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 35px; }
.footer-logo { display: block; width: 220px; }
.footer-links { display: flex; gap: 23px; font-size: 13px; }
.footer-links a:hover { text-decoration: underline; }
.footer-legal { font-size: 11px; color: #a9bdcb; text-align: right; }
.footer-legal span { display: block; }

/* ---------- Dialog ---------- */
dialog {
  width: min(760px, calc(100% - 35px));
  max-height: 85vh;
  padding: 50px;
  border: 0;
  border-radius: var(--radius);
  color: var(--ink);
}
dialog::backdrop { background: #071621bd; }
dialog h2 { font-size: 38px; }
dialog p { font-size: 15px; }
dialog .note { font-size: 12px; }
dialog a:not(.text-link) { display: inline-block; margin-right: 22px; font-size: 13px; text-decoration: underline; }
.close {
  position: absolute; top: 9px; right: 17px;
  width: 44px; height: 44px;
  border: 0;
  background: none;
  font-size: 30px;
  line-height: 1;
}
.dialog-scope { padding: 20px; background: var(--pale); font-size: 14px; }
.project-figure { margin: 30px 0 0; }
.project-figure img { display: block; width: 100%; border-radius: var(--radius); }
.project-figure figcaption { margin-top: 8px; font-size: 12px; color: #5e7181; }

/* ---------- Façade build-up (interactive) ---------- */
.buildup {
  margin-top: 70px;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.buildup-head { max-width: 640px; margin-bottom: 26px; }
.buildup-head .eyebrow { margin-bottom: 14px; }
.buildup-head h3 { margin: 0 0 10px; font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.buildup-head p { margin: 0; font-size: 15px; }

.buildup-body { display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px; align-items: start; }
.buildup-figure { margin: 0; }
.buildup-figure svg { display: block; width: 100%; height: auto; max-height: 560px; overflow: visible; }
.buildup-figure figcaption { margin-top: 10px; font-size: 12px; color: var(--muted); }

.bu-layer { cursor: pointer; transition: opacity .25s, transform .3s; }
.buildup-figure svg.is-interacting .bu-layer.is-dim { opacity: .22; }
.buildup-figure svg.is-interacting .bu-layer.is-active { transform: translate(-6px, 3px); }
.bu-layer polygon { stroke: #10202e33; stroke-width: .6; stroke-linejoin: round; }
.bu-marker circle { fill: #fff; stroke: var(--navy); stroke-width: 1.4; }
.bu-marker text { font: 700 14px var(--font-head); fill: var(--navy); }
.bu-layer.is-active .bu-marker circle { fill: var(--navy); }
.bu-layer.is-active .bu-marker text { fill: #fff; }

.buildup-list { margin: 0 0 22px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.buildup-list li { border-bottom: 1px solid var(--line); }
.buildup-list button {
  display: flex;
  align-items: baseline;
  gap: 16px;
  width: 100%;
  padding: 13px 4px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 16px;
  text-align: left;
  transition: color .2s, padding .2s;
}
.bu-num { min-width: 22px; font-size: 12px; color: var(--slate); }
.buildup-list button:hover { color: var(--navy); }
.buildup-list button[aria-pressed="true"] { padding-left: 12px; font-weight: 700; color: var(--navy); box-shadow: inset 3px 0 0 var(--navy); }

.buildup-detail { min-height: 210px; padding: 24px; border-radius: var(--radius); background: var(--pale); }
.buildup-detail h4 { margin: 8px 0 10px; font-size: 22px; font-weight: 500; }
.buildup-detail p { margin: 0 0 12px; font-size: 14px; }
.buildup-detail .bu-brands { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }
.buildup-detail .bu-brands b { display: block; margin-bottom: 4px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--slate); }

/* Placeholder highlighting (privacy.html) — remove once every [placeholder] is filled in */
.todo { background: #fff4c2; padding: 0 4px; color: #5a4600; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- Privacy page ---------- */
.legal-page { max-width: 820px; padding: 80px 0 100px; }
.legal-page h1 { font-size: clamp(38px, 5vw, 60px); letter-spacing: -.025em; }
.legal-page h2 { font-size: 26px; letter-spacing: -.5px; margin: 40px 0 12px; }
.legal-page p, .legal-page li { color: var(--muted); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  :root { --header-h: 68px; }
  .header-logo img { width: 150px; }
  nav { gap: 16px; }
  nav .small { display: none; }
}

@media (max-width: 1000px) {
  :root { --gutter: 28px; }
  .intro, .split { gap: 40px; }
  .tiles, .project-grid, .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .strip { font-size: 10px; letter-spacing: 1.2px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-wrap: wrap; }
  .footer-legal { text-align: left; }
  .buildup { padding: 32px; }
  .buildup-body { grid-template-columns: 1fr; gap: 24px; }
  .buildup-figure svg { max-height: 460px; }
}

@media (max-width: 650px) {
  :root { --gutter: 18px; --header-h: 69px; }

  .site-header { padding: 12px 18px; }
  .header-logo img { width: 130px; }

  /* Phone: whole photo shown on top, text below on navy (a portrait crop would hide most of it) */
  .hero { display: block; min-height: 0; }
  .hero-photo {
    position: relative;
    inset: auto;
    aspect-ratio: 4 / 3;
    background:
      linear-gradient(0deg, var(--navy) 0%, #101f2e00 22%),
      url('assets/cladding-hero-bg.webp') center / cover;
  }
  .hero-content { padding: 18px var(--hero-x) 120px; }
  h1 { font-size: 49px; letter-spacing: -.03em; }
  .hero p { font-size: 16px; }
  .hero .hero-slogan { max-width: 330px; margin-bottom: 22px; font-size: 16px; line-height: 1.55; letter-spacing: .7px; }
  .actions { flex-wrap: wrap; gap: 10px; }
  .button, .outline { padding: 14px 17px; font-size: 12px; }

  .hero-bottom.strip { gap: 8px 14px; padding-top: 18px; padding-bottom: 22px; font-size: 10px; letter-spacing: .8px; }
  .strip b { display: none; }

  .section, .intro { padding-top: 65px; padding-bottom: 65px; }
  .intro, .split { grid-template-columns: 1fr; gap: 28px; }
  h2 { font-size: 36px; }
  .lead { font-size: 20px; }

  .tiles, .project-grid { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .tile-title { margin-top: 20px; }

  .sector { min-height: 175px; padding: 18px; }
  .sector > span { left: 17px; font-size: 21px; }

  .filter-row { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .filter-row label { flex: 1 1 100%; }
  .reset { width: 100%; }
  .coming-soon { padding: 36px 24px; }

  .steps { grid-template-columns: 1fr; gap: 14px; }
  .steps article::before { transform: scaleX(1); }   /* no hover on touch: show the line */
  .qa { gap: 15px; }
  .qa strong { width: 100%; }

  .contact h2 { font-size: 37px; }
  .field-pair { grid-template-columns: 1fr; gap: 0; }
  .enquiry-card { padding: 24px 18px; }
  .enquiry-success { padding: 36px 20px; }
  .enquiry-card input, .enquiry-card select, .enquiry-card textarea { font-size: 16px; }   /* stops iOS zooming in on focus */
  .contact-methods > a, .contact-methods > span { font-size: 14px; }

  .rem-list article { align-items: flex-start; padding: 16px; gap: 14px; }
  .rem-list article > span { width: 38px; height: 38px; border-radius: var(--radius); }
  .footer-inner { display: block; }
  .footer-logo { width: 200px; }
  .footer-links { flex-wrap: wrap; margin: 25px 0; }

  dialog { padding: 42px 25px; }

  .buildup { margin-top: 45px; padding: 22px 16px; }
  .buildup-list button { padding: 11px 4px; font-size: 15px; }
  .buildup-detail { min-height: 0; padding: 18px; }
}

/* Hamburger menu from 900px down: six links at 15px no longer fit beside the logo */
@media (max-width: 900px) {
  #menu {
    display: block;
    width: 44px; height: 44px;
    border: 0;
    background: none;
    color: var(--navy);
    font-size: 24px;
  }
  nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: start;
    padding: 22px var(--gutter) 28px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  nav.open { display: flex; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  nav a:not(.button) { padding: 6px 0; font-size: 17px; }
  nav .small { display: inline-block; }
}

@media (max-width: 900px) and (min-width: 651px) { :root { --header-h: 75px; } }

/* Service strip: wrap onto centred rows once the four items no longer fit on one line */
@media (max-width: 860px) {
  .hero-bottom.strip { flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
  .strip b { display: none; }
}

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