/* Buia Windows & Doors
   Layout: logo-green frame bands top and bottom; products drawn as survey-sheet elevations with mm dimensions;
   calm pale body, process as a real numbered sequence. */
:root {
  --frame: #043c2a;      /* the logo's deep green (matches the logo.png background exactly) */
  --frame-2: #0a4a35;
  --frame-fg: #f1f6f2;
  --leaf: #48a82f;       /* the logo's green triangle */
  --leaf-ink: #06281b;   /* text on leaf buttons */
  --leaf-text: #2c7a1c;  /* leaf green dark enough for small text on light paper */
  --paper: #f4f7f5;
  --card: #ffffff;
  --sheet: #e9f0eb;      /* drawing panel behind elevations */
  --sheet-ink: #1d3a2c;
  --ink: #13231b;
  --muted: #536259;
  --line: #d9e1dc;
  --draft: #f2c94c;
  --draft-ink: #13231b;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Figtree", "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1914; --card: #15241c; --sheet: #1a2d23; --sheet-ink: #d4e4d9; --ink: #e7efe9; --muted: #a0b0a6; --line: #263a2f;
    --leaf: #57b93c; --leaf-text: #7fd063; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e1914; --card: #15241c; --sheet: #1a2d23; --sheet-ink: #d4e4d9; --ink: #e7efe9; --muted: #a0b0a6; --line: #263a2f;
  --leaf: #57b93c; --leaf-text: #7fd063; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -.015em; }
h3 { font-size: 1.22rem; font-weight: 600; }
p { margin: 0; }
.label { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--leaf-text); }
.on-frame .label, .label.on-frame { color: var(--leaf); }
.hint { font-size: .88rem; color: var(--muted); }
.small { font-size: .9rem; }
.more { font-weight: 700; text-decoration: none; color: var(--leaf-text); }
.more::after { content: " \2192"; }
.more:hover { text-decoration: underline; }

/* draft notice: delete this block and the .draft element in each page before launch */
.draft { background: var(--draft); color: var(--draft-ink); font-size: .88rem; }
.draft .wrap { padding-block: 7px; }

/* header */
header.top { background: var(--frame); color: var(--frame-fg); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--frame); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.logo { display: block; line-height: 0; flex-shrink: 0; }
.logo img { height: 48px; width: auto; }
nav.links { display: flex; gap: 24px; font-weight: 600; font-size: .96rem; }
nav.links a { text-decoration: none; opacity: .82; padding-block: 6px; border-bottom: 2px solid transparent; }
nav.links a:hover, nav.links a[aria-current="page"] { opacity: 1; border-bottom-color: var(--leaf); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border: 1px solid rgba(255,255,255,.3); border-radius: 4px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 20px; height: 2px; background: var(--frame-fg); }
.menu nav { position: absolute; right: 0; top: calc(100% + 12px); background: var(--frame); border: 1px solid rgba(255,255,255,.15); border-radius: 6px; padding: 10px; display: grid; min-width: 220px; box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.menu nav a:not(.btn) { padding: 12px 10px; text-decoration: none; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.08); }
.menu nav a[aria-current="page"] { color: var(--leaf); }
.menu nav .btn { margin-top: 10px; }
@media (max-width: 960px) { nav.links { display: none; } .menu { display: block; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 1rem/1 var(--font-body); padding: 15px 22px; border-radius: 4px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: filter .15s, background-color .15s; }
.btn-leaf { background: var(--leaf); color: var(--leaf-ink); }
.btn-leaf:hover { filter: brightness(1.08); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-ghost-ink { border-color: var(--ink); color: var(--ink); background: transparent; justify-self: start; }
.btn-ink { background: var(--ink); color: var(--paper); justify-self: start; }
.btn-ink:hover { filter: brightness(1.15); }
.top .btn { padding: 11px 14px; font-size: .95rem; }
@media (max-width: 560px) { .top .btn .long { display: none; } .logo img { height: 40px; } }

/* home hero */
.hero { background: var(--frame); color: var(--frame-fg); overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; }
.hero .wrap { position: relative; display: grid; gap: 40px; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; padding-block: 56px 72px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; padding-block: 40px 56px; } }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); font-weight: 800; letter-spacing: -.025em; margin-top: 16px; }
.hero h1 span, .phero h1 span { color: var(--leaf); }
.hero .lede { font-size: 1.2rem; opacity: .9; max-width: 34em; margin-top: 20px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 30px 0 0; font-size: .95rem; opacity: .92; list-style: none; padding: 0; }
.facts li::before { content: ""; display: inline-block; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10px solid var(--leaf); margin-right: 8px; vertical-align: 1px; }
.survey { margin: 0; justify-self: center; width: min(400px, 100%); display: grid; gap: 10px; color: var(--frame-fg); }
.survey svg { width: 100%; height: auto; display: block; }
.survey figcaption { font-family: var(--font-mono); font-size: .78rem; opacity: .7; }
.dimt { font-family: var(--font-mono); font-size: 9px; fill: currentColor; stroke: none; opacity: .75; }
.dimt.big { font-size: 13px; }
.hero-elev .draw { stroke-dashoffset: 0; animation: dash 1.4s ease-out both .3s; }
@keyframes dash { from { stroke-dashoffset: 120; opacity: .2; } to { stroke-dashoffset: 0; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-elev .draw { animation: none; } }

/* inner page hero */
.phero { background: var(--frame); color: var(--frame-fg); }
.phero .wrap { padding-block: 48px 52px; display: grid; gap: 32px; }
.phero .wrap.has-art { grid-template-columns: minmax(0, 1fr) 200px; align-items: center; }
@media (max-width: 700px) { .phero .wrap.has-art { grid-template-columns: 1fr; } .phero-art { display: none; } }
.phero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; margin-top: 12px; }
.phero .lede { font-size: 1.15rem; opacity: .9; max-width: 38em; margin-top: 16px; }
.phero-art { color: var(--frame-fg); opacity: .9; }
.phero-art .elev { width: 100%; height: auto; }

section { padding-block: 72px; }
@media (max-width: 600px) { section { padding-block: 52px; } }
.head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 44em; }
.head p:not(.label) { color: var(--muted); }
.band { background: var(--card); border-block: 1px solid var(--line); }
.split { display: grid; gap: 40px; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* product cards with drawing sheets */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pgrid { grid-template-columns: 1fr; } }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; transition: transform .2s, box-shadow .2s; }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(4,60,42,.12); }
@media (prefers-reduced-motion: reduce) { .pcard, .pcard:hover { transition: none; transform: none; } }
.sheet { background: var(--sheet); color: var(--sheet-ink); display: grid; place-items: center; padding: 18px; border-bottom: 1px solid var(--line); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 20px 20px; background-position: -1px -1px; }
.sheet .elev { width: 150px; height: auto; }
.sheet.big .elev { width: min(240px, 100%); }
.pbody { padding: 20px 22px 22px; display: grid; gap: 8px; align-content: start; }
.pbody p { color: var(--muted); }
.pbody .tag { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--leaf-text); }
.pbody .more { margin-top: 4px; }

/* product detail rows */
.details { display: grid; gap: 28px; }
.detail { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.detail .sheet { border-bottom: 0; border-right: 1px solid var(--line); padding: 28px; }
.dbody { padding: 30px; display: grid; gap: 14px; align-content: start; }
.dbody > p { color: var(--muted); max-width: 40em; }
.dbody h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
@media (max-width: 760px) { .detail { grid-template-columns: 1fr; } .detail .sheet { border-right: 0; border-bottom: 1px solid var(--line); } .dbody { padding: 22px; } }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2.5px solid var(--leaf-text); border-bottom: 2.5px solid var(--leaf-text); transform: rotate(-45deg); }

.colours { display: flex; flex-wrap: wrap; gap: 14px 24px; list-style: none; padding: 0; margin: 0 0 14px; }
.colours li { display: flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 600; }
.colours i { width: 34px; height: 34px; border-radius: 4px; border: 1px solid var(--line); box-shadow: inset 0 0 0 3px rgba(255,255,255,.12); }

/* process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: s; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; border-top: 3px solid var(--frame); padding-top: 14px; display: grid; gap: 6px; align-content: start; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--leaf-text); }
.steps p { color: var(--muted); }

/* checklists */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; }
.checks li::before { content: ""; width: 20px; height: 20px; margin-top: 3px; border-radius: 3px; background: var(--leaf); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M0 0h20v20H0z M5 10.5l3.2 3.2L15 6.8' fill='none' stroke='black' stroke-width='2.4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M1.5 1.5h17v17h-17z M5 10.5l3.2 3.2L15 6.8' fill='none' stroke='black' stroke-width='2.4'/%3E%3C/svg%3E") center / contain no-repeat; }
.checks strong { display: block; }
.checks span { color: var(--muted); }

.quote-card { background: var(--frame); color: var(--frame-fg); border-radius: 6px; padding: 30px; display: grid; gap: 14px; position: sticky; top: 100px; }
.quote-card h3 { font-size: 1.6rem; font-weight: 800; }
.quote-card p { opacity: .9; }
.quote-card .btn { justify-self: start; }
@media (max-width: 860px) { .quote-card { position: static; } }

/* audiences */
.who { display: grid; gap: 22px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.who.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .who { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .who, .who.two { grid-template-columns: 1fr; } }
.who article { display: grid; gap: 6px; align-content: start; padding-left: 16px; border-left: 3px solid var(--leaf); }
.who p { color: var(--muted); }
.who a { font-weight: 600; color: var(--leaf-text); }

/* gallery placeholders: replace each .ph with <figure><img ...><figcaption>...</figcaption></figure> */
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; display: grid; gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; }
.gallery figcaption { font-size: .92rem; color: var(--muted); }
.ph span { aspect-ratio: 4 / 3; max-width: 100%; display: grid; place-items: center; border-radius: 6px; border: 2px dashed var(--line); background: var(--sheet); color: var(--muted); font-family: var(--font-mono); font-size: .85rem; }

.areas { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.areas li { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 14px; font-weight: 600; }
.box { border: 2px solid var(--ink); border-radius: 6px; padding: 26px; display: grid; gap: 12px; }
.box a:not(.btn) { font-weight: 600; }

.faq { display: grid; gap: 10px; max-width: 50em; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 16px 20px; }
.band .faq details { background: var(--paper); }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.4rem; line-height: 1; color: var(--leaf-text); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 10px; color: var(--muted); }
.faq a { font-weight: 600; }

/* quote form */
.contact .wrap { display: grid; gap: 36px; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
@media (max-width: 860px) { .contact .wrap { grid-template-columns: 1fr; } }
.contact .side { display: grid; gap: 14px; }
.phone-line { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; text-decoration: none; }
form { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 26px; display: grid; gap: 16px; min-width: 0; }
.row2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.field { display: grid; gap: 6px; min-width: 0; }
label { font-weight: 600; font-size: .95rem; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 12px; width: 100%; }
textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-msg { font-weight: 600; color: var(--leaf-text); }
form .btn { justify-self: start; }

/* closing CTA + footer */
.cta-band { background: var(--frame-2); color: var(--frame-fg); }
.cta-band .wrap { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.cta-band h2 { margin-block: 10px; }
.cta-band p:not(.label) { opacity: .9; max-width: 36em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: 1fr; } }
footer { background: var(--frame); color: var(--frame-fg); }
footer .wrap { padding-block: 44px 20px; display: grid; gap: 28px; grid-template-columns: 1.3fr 1fr 1.3fr 1.2fr; font-size: .95rem; }
@media (max-width: 860px) { footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { footer .wrap { grid-template-columns: 1fr; } }
footer .wrap > div { display: grid; gap: 6px; align-content: start; min-width: 0; overflow-wrap: anywhere; }
footer a { color: var(--frame-fg); }
footer .small { opacity: .75; }
footer .logo img { height: 56px; }
.f-title { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; color: var(--leaf); }
footer .f-base { display: block; padding-block: 18px 100px; border-top: 1px solid rgba(255,255,255,.1); }
@media (min-width: 760px) { footer .f-base { padding-block: 18px; } }

.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 8px; padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); background: var(--frame); border-top: 1px solid rgba(255,255,255,.12); }
.callbar .btn { flex: 1; padding: 13px 6px; font-size: .95rem; }
.callbar .btn-ghost { color: var(--frame-fg); }
@media (min-width: 760px) { .callbar { display: none; } }

/* brochure covers */
.bro .cover { padding: 0; aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; }
.bro .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bro .cover .elev { width: 130px; }
.bro .btn { justify-self: start; margin-top: 6px; }

/* photos */
.photo { background: var(--sheet); overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.pcard:hover .photo img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .pcard:hover .photo img { transform: none; } }
.detail .photo.big { aspect-ratio: auto; min-height: 280px; height: 100%; }
@media (max-width: 760px) { .detail .photo.big { aspect-ratio: 4 / 3; min-height: 0; } }
.bro .cover { display: block; padding: 0; aspect-ratio: 3 / 4; max-width: 100%; overflow: hidden; background: var(--sheet); border-bottom: 1px solid var(--line); }
.inspo-grid { display: grid; gap: 16px; grid-template-columns: 1.4fr 1fr 1fr; }
.inspo-grid figure { margin: 0; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%; }
.inspo-grid figure:first-child { aspect-ratio: auto; }
.inspo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) { .inspo-grid { grid-template-columns: 1fr 1fr; } .inspo-grid figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; } }
.group-title { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 16px; display: flex; align-items: center; gap: 12px; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.field input[type="file"] + input[type="file"] { margin-top: 4px; }

/* our work: real photos, masonry + filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chips button { font: inherit; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--frame); color: var(--frame-fg); border-color: var(--frame); }
.work-grid { columns: 3 280px; column-gap: 16px; }
.work-grid figure { break-inside: avoid; margin: 0 0 16px; display: grid; gap: 8px; }
.work-grid figure[hidden] { display: none; }
.work-grid img { width: 100%; height: auto; border-radius: 6px; display: block; background: var(--sheet); }
.work-grid figcaption { font-size: .92rem; color: var(--muted); }

/* privacy page + cookie notice */
.legal { max-width: 46em; display: grid; gap: 14px; }
.legal h2 { font-size: 1.4rem; margin-top: 18px; }
.legal ul { display: grid; gap: 8px; padding-left: 1.2em; margin: 0; }
.legal a { font-weight: 600; color: var(--leaf-text); }
footer .f-base a { color: inherit; text-decoration: underline; }
.cookie { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; align-items: center; gap: 14px; max-width: 560px; margin-inline: auto; padding: 14px 16px; border-radius: 8px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; font-size: .95rem; flex: 1; }
.cookie a { font-weight: 600; color: var(--leaf-text); }
.cookie .btn { flex: none; padding-inline: 22px; }

/* door colour swatches (from the Apeer brochure) */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px 12px; list-style: none; padding: 0; margin: 0 0 24px; }
.swatches li { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.swatches img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); display: block; }
.door-colours { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 16px 12px; align-items: start; list-style: none; padding: 0; margin: 0 0 20px; }
.door-colours li { display: grid; gap: 6px; font-size: .92rem; font-weight: 600; }
.door-colours img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 6px; display: block; background: var(--sheet); }
.door-colours em { display: block; font-style: normal; font-weight: 400; font-size: .8rem; color: var(--muted); }

/* home: our work showcase, straight after the hero */
.head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; max-width: none; }
.head-row > div { max-width: 40em; }
.showcase { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 240px; }
.showcase figure { margin: 0; position: relative; overflow: hidden; border-radius: 8px; background: var(--sheet); }
.showcase figure:first-child { grid-column: span 2; grid-row: span 2; }
.showcase img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.showcase figure:hover img { transform: scale(1.03); }
.showcase figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; font-size: .88rem; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
@media (max-width: 760px) { .showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; } .showcase figure:first-child { grid-row: span 2; } }
@media (prefers-reduced-motion: reduce) { .showcase img { transition: none; } }
@media (max-width: 760px) { .hero .survey { display: none; } }

/* doors page: three job photos per product */
.trio { display: grid; gap: 10px; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 4 / 3; align-self: start; }
.trio figure { margin: 0; position: relative; overflow: hidden; border-radius: 6px; background: var(--sheet); min-height: 0; }
.trio figure:first-child { grid-row: span 2; }
.trio img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trio figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font-size: .8rem; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.trio figure:not(:first-child) figcaption { display: none; }
/* bigger photo column when a section shows three job photos */
.detail.has-trio { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.detail.has-trio .trio { aspect-ratio: auto; height: 100%; min-height: 440px; padding: 10px; }
@media (max-width: 760px) { .detail.has-trio { grid-template-columns: 1fr; } .detail.has-trio .trio { aspect-ratio: 4 / 3; min-height: 0; height: auto; } }
.detail.has-trio .dbody { align-self: center; }
@media (max-width: 759px) { .cookie { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }
