/* Layout concept: a site plan — left-aligned headlines on a stone ground, forest bands for statements, real project photos as tiles with plaque captions. */
:root {
  --bg: #F2F5F0;
  --surface: #FFFFFF;
  --surface-2: #E7ECE3;
  --ink: #14231F;
  --muted: #52615D;
  --line: #D6DED3;
  --leaf: #3F8A1E;
  --leaf-bright: #8BCB4F;
  --sky: #1D69B3;
  --forest: #0F2B27;
  --forest-2: #0C2333;
  --on-forest: #EAF1EC;
  --on-forest-muted: #B6C9C1;
  --focus: #1D69B3;
  --display: "Montserrat", "Segoe UI", Arial, sans-serif;
  --body: "DM Sans", "Segoe UI", Arial, sans-serif;
  --radius: 14px;
  --wrap: 1200px;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1714; --surface: #13211D; --surface-2: #182A25; --ink: #E8EEEA; --muted: #A3B3AD;
    --line: #25372F; --leaf: #8BCB4F; --sky: #6AA9E6; --forest: #0A1F1B; --forest-2: #0A1A26;
    --focus: #8BCB4F; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C1714; --surface: #13211D; --surface-2: #182A25; --ink: #E8EEEA; --muted: #A3B3AD;
  --line: #25372F; --leaf: #8BCB4F; --sky: #6AA9E6; --forest: #0A1F1B; --forest-2: #0A1A26;
  --focus: #8BCB4F; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

.eyebrow { font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--leaf); }
.band-forest .eyebrow { color: var(--leaf-bright); }
.lede { font-size: 19px; color: var(--muted); max-width: 62ch; }
.section { padding-block: 88px; }
.section-tight { padding-block: 64px; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; max-width: 760px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; }

/* Header */
/* The header stays white in both themes so the supplied logo (white ground) sits on it unaltered. */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: #FFFFFF; }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: #FFFFFF; color: #14231F; border-bottom: 1px solid #DCE3D9; box-shadow: 0 1px 12px rgba(15,43,39,0.06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 104px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 88px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 14px; border-radius: 999px; color: #3F4E4A; }
.nav a:hover { color: #14231F; background: #EEF3EB; }
.nav a[aria-current="page"] { color: #2F6E15; background: #E6F2DC; }
.nav .nav-cta { background: #0F2B27; color: #FFFFFF; font-weight: 600; margin-left: 8px; }
.nav .nav-cta:hover { background: #1A4038; color: #FFFFFF; }
.nav .nav-cta[aria-current="page"] { background: #0F2B27; color: #FFFFFF; }
.menu-btn { display: none; background: #FFFFFF; border: 1px solid #C9D3C6; color: #14231F; border-radius: 10px; padding: 8px 12px; font: 600 14px var(--body); cursor: pointer; }
.brand-foot { display: inline-flex; background: #FFFFFF; padding: 10px 14px; border-radius: 12px; }
.brand-foot img { height: 104px; }
@media (max-width: 480px) { .site-header .wrap { min-height: 84px; } .brand img { height: 68px; } }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; background: #FFFFFF; padding: 12px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid #DCE3D9; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav .nav-cta { margin-left: 0; text-align: center; margin-top: 6px; }
}

/* Bands */
.band-forest { background: linear-gradient(135deg, var(--forest) 0%, var(--forest-2) 100%); color: var(--on-forest); }
.band-forest .lede, .band-forest .muted { color: var(--on-forest-muted); }
.band-stone { background: var(--surface-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 16px; padding: 14px 24px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; font-family: var(--body); }
.btn-primary { background: var(--leaf-bright); color: #0F2B27; }
.btn-primary:hover { background: #9BD35E; }
.btn-ghost { border-color: rgba(255,255,255,0.3); color: var(--on-forest); background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-line { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-line:hover { border-color: var(--leaf); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { padding-block: 72px 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--leaf-bright); }
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero-mosaic { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 170px 170px 170px; gap: 12px; min-width: 0; }
.hero-mosaic figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; background: #0a1a17; }
.hero-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.hero-mosaic .t1 { grid-column: span 2; grid-row: span 2; }
.hero-mosaic .t4 { grid-row: span 2; }
.hero-mosaic figcaption { position: absolute; left: 8px; bottom: 8px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(10,26,23,0.78); color: #EAF1EC; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero-mosaic { grid-template-rows: 130px 130px 130px; } }
@media (max-width: 480px) { .hero-mosaic { grid-template-rows: 100px 100px 100px; gap: 8px; } }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); overflow: hidden; margin-top: 56px; }
.fact { background: rgba(10,31,27,0.6); padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fact b { font-family: var(--display); font-size: 22px; color: var(--on-forest); }
.fact span { font-size: 14px; color: var(--on-forest-muted); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } }

/* Page intro */
.page-intro { padding-block: 64px 56px; }
.page-intro .wrap { display: flex; flex-direction: column; gap: 16px; }
.page-intro h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 700; max-width: 18ch; }

/* Cards & grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card h3 { font-size: 21px; font-weight: 700; }
.card p { color: var(--muted); font-size: 16px; }
a.card { text-decoration: none; transition: border-color .2s, transform .2s; }
a.card:hover { border-color: var(--leaf); transform: translateY(-2px); }
.card .more { margin-top: auto; font-weight: 600; font-size: 15px; color: var(--leaf); }
.disc-tile .num { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--leaf); letter-spacing: 0.08em; }
.icon { width: 30px; height: 30px; color: var(--leaf); }

.stage { border-top: 5px solid var(--leaf-bright); }
.stage.s2 { border-top-color: #2F9A6A; }
.stage.s3 { border-top-color: var(--sky); }
.stage .label { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; color: var(--leaf); }
.stage.s3 .label { color: var(--sky); }
.ticks { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.ticks li { position: relative; padding-left: 26px; font-size: 15.5px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 8px; border-left: 2px solid var(--leaf); border-bottom: 2px solid var(--leaf); transform: rotate(-45deg); }
.band-forest .ticks li::before { border-color: var(--leaf-bright); }

/* Project cards */
.proj-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.proj-card:hover { border-color: var(--leaf); transform: translateY(-2px); }
.proj-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.proj-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.proj-card h3 { font-size: 20px; font-weight: 700; }
.meta { font-size: 14px; color: var(--muted); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--leaf); }

/* Process */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .phases { grid-template-columns: 1fr; } }
.phase { display: flex; flex-direction: column; gap: 14px; }
.phase h3 { font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; padding-bottom: 12px; border-bottom: 3px solid var(--leaf-bright); color: var(--on-forest); }
.phase.p2 h3 { border-color: #3FA06A; }
.phase.p3 h3 { border-color: #5A9BE0; }
.step { display: flex; gap: 16px; align-items: baseline; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); }
.step b { font-family: var(--display); font-size: 18px; color: var(--leaf-bright); font-variant-numeric: tabular-nums; }
.step div { display: flex; flex-direction: column; }
.step strong { font-size: 16px; color: var(--on-forest); }
.step span { font-size: 14px; color: var(--on-forest-muted); }

/* Clients */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.logo-cell { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; height: 108px; display: flex; align-items: center; justify-content: center; padding: 16px; }
.logo-cell img { max-height: 70px; max-width: 140px; width: auto; object-fit: contain; }

/* Certs */
.cert { display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: center; }
.cert img { width: 140px; height: 180px; object-fit: contain; background: var(--surface-2); border-radius: 10px; border: 1px solid var(--line); }
.cert.wide img { height: 100px; }
.cert h3 { font-size: 19px; }
.cert p { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .cert { grid-template-columns: 96px 1fr; } .cert img { width: 96px; height: 124px; } }

/* CTA */
.cta { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(28px, 3.6vw, 40px); max-width: 20ch; }

/* Service detail */
.service { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-block: 56px; border-top: 1px solid var(--line); scroll-margin-top: 124px; }
.service:nth-of-type(even) .service-media { order: -1; }
.service-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.service-copy h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; }
.service-copy p { color: var(--muted); }
.service-media { margin: 0; min-width: 0; }
.service-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); }
.service-media figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
@media (max-width: 860px) { .service { grid-template-columns: 1fr; gap: 24px; } .service:nth-of-type(even) .service-media { order: 0; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }

/* Projects page */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.filters button { font: 600 14px var(--body); padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--forest); color: #EAF1EC; border-color: var(--forest); }
.project { display: grid; grid-template-columns: 340px 1fr; gap: 40px; padding-block: 48px; border-top: 1px solid var(--line); scroll-margin-top: 124px; }
.project-info { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.project-info h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; }
.project-info p { color: var(--muted); font-size: 16px; }
.dl { display: flex; flex-direction: column; margin-top: 6px; }
.dl div { display: flex; flex-direction: column; padding-block: 10px; border-top: 1px solid var(--line); }
.dl div:last-child { border-bottom: 1px solid var(--line); }
.dl dt { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--leaf); }
.dl dd { margin: 0; font-size: 15.5px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; min-width: 0; align-content: start; }
.gallery button { padding: 0; border: 0; background: var(--surface-2); border-radius: 12px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery.g2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 960px) { .project { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 520px) { .gallery, .gallery.g2 { grid-template-columns: 1fr 1fr; } }

.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(6,14,12,0.92); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lightbox img { max-width: min(1000px, 100%); max-height: 76vh; border-radius: 10px; object-fit: contain; }
.lightbox p { color: #EAF1EC; font-size: 15px; text-align: center; max-width: 60ch; }
.lightbox .lb-bar { display: flex; gap: 10px; }
.lightbox button { font: 600 14px var(--body); color: #EAF1EC; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; padding: 9px 18px; cursor: pointer; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
.contact-item .k { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--leaf); }
.contact-item .v { font-size: 18px; font-weight: 600; user-select: all; overflow-wrap: anywhere; }
.copy-btn { font: 600 13px var(--body); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
form.enquiry { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { font: 16px var(--body); padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; }
.field textarea { min-height: 130px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } }
.form-note { font-size: 14px; color: var(--muted); }
.form-ok { padding: 14px 16px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--leaf); font-size: 15px; }

/* Footer */
.site-footer { background: var(--forest); color: var(--on-forest-muted); padding-block: 56px 32px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-forest); margin-bottom: 12px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--on-forest); }
.site-footer ul { display: flex; flex-direction: column; gap: 6px; }
.foot-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
