/* =====================================================================
   BALI KAYU ULIN — Website stylesheet
   Monochrome timber aesthetic: bone (#F9F7F7) + ink (#1E1E1E), Inter.
   Rebuilt from the 1440px Figma prototype into a fully fluid, responsive
   layout. Shared verbatim by the static site and the WordPress theme.
   Image URLs are written relative to THIS file (../img/...), so the same
   markup resolves correctly in both deliverables.
   ===================================================================== */

/* ── Fonts ──────────────────────────────────────────────────────────── */
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-VariableFont_opsz,wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Italic-VariableFont_opsz,wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ── Tokens ─────────────────────────────────────────────────────────── */
:root {
  --ink: #1e1e1e;
  --bone: #f9f7f7;
  --black: #000;
  --white: #fff;
  --wash: rgba(0, 0, 0, 0.45);

  --fg-2: rgba(30, 30, 30, 0.6);
  --fg-3: rgba(30, 30, 30, 0.4);
  --line: rgba(30, 30, 30, 0.5);
  --line-on-dark: rgba(249, 247, 247, 0.5);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --fw-light: 300;
  --fw-reg: 400;
  --fw-med: 500;

  /* Fluid type — scales between mobile and the 1440 canvas size */
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-base: clamp(15px, 0.6vw + 13px, 16px);
  --fs-md: clamp(18px, 0.6vw + 15px, 20px);
  --fs-lg: clamp(21px, 1.4vw + 14px, 26px);
  --fs-xl: clamp(26px, 2.2vw + 14px, 32px);
  --fs-hero: clamp(28px, 3vw + 14px, 34px);

  --lh: 1.3;
  --track: -0.05em;

  --maxw: 1440px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(56px, 7vw, 96px);
  --gap: clamp(16px, 2.2vw, 32px);

  --radius: 8px;
  --header-h: clamp(64px, 8vw, 96px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-med: 260ms;
}

/* ── Reset / base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bone); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font);
  font-weight: var(--fw-light);
  font-size: var(--fs-base);
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; -webkit-user-drag: none; user-select: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ── Typography helpers ─────────────────────────────────────────────── */
.eyebrow {
  font-size: var(--fs-base);
  font-weight: var(--fw-reg);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: inherit;
  margin: 0;
}
.h1 { font-size: var(--fs-xl); font-weight: var(--fw-med); line-height: var(--lh); margin: 0; }
.h2 { font-size: var(--fs-lg); font-weight: var(--fw-med); line-height: var(--lh); margin: 0; }
.h3 { font-size: var(--fs-md); font-weight: var(--fw-med); line-height: var(--lh); margin: 0; }
.hero-title { font-size: var(--fs-hero); font-weight: var(--fw-med); line-height: var(--lh); margin: 0; }
.body { font-size: var(--fs-base); font-weight: var(--fw-light); line-height: var(--lh); margin: 0; }
.body-sm { font-size: var(--fs-sm); font-weight: var(--fw-light); line-height: var(--lh); margin: 0; }
.muted { color: var(--fg-2); }
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }

/* ── Layout ─────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }
.stack { display: flex; flex-direction: column; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: var(--gap); }

/* media block — sharp-cornered image tile */
.media {
  position: relative;
  overflow: hidden;
  background-color: #20201f;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.media--wide { aspect-ratio: 1360 / 650; }
.media--tall { aspect-ratio: 656 / 525; }
.media--square { aspect-ratio: 1 / 1; }
.media--portrait { aspect-ratio: 443 / 553; }
.media--card { aspect-ratio: 432 / 540; }
.media--article { aspect-ratio: 664 / 374; }

/* Responsive <img> inside a .media or hero background block — fills the parent
   container while preserving its aspect-ratio. wp_get_attachment_image() supplies
   srcset, sizes, alt and loading; this just makes it cover the slot. */
.media img,
.card__media img,
.media__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__bg img,
.hero__bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* Google Maps embed (contact page) — responsive iframe in a media--wide box. */
.map-embed { position: relative; width: 100%; aspect-ratio: 1360 / 650; overflow: hidden; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: var(--bone);
  transition: background-color var(--t-med) var(--ease), color var(--t-med) var(--ease),
    box-shadow var(--t-med) var(--ease), transform 420ms var(--ease);
}
.site-header__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.site-header__nav {
  display: flex;
  gap: clamp(20px, 2.6vw, 49px);
  align-items: center;
}
.site-header__brand { justify-self: center; display: inline-flex; }
.site-header__brand img { height: clamp(40px, 4vw, 56px); width: auto; }
.site-header__actions { justify-self: end; display: flex; align-items: center; gap: 16px; }

.navlink {
  position: relative;
  font-size: var(--fs-base);
  font-weight: var(--fw-light);
  letter-spacing: var(--track);
  white-space: nowrap;
  padding-block: 4px;
}
.navlink::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 360ms var(--ease);
}
.navlink:hover::after, .navlink[aria-current="page"]::after { transform: scaleX(1); }

/* logo colour control via filter — works on any source file */
.logo--bone { filter: brightness(0) invert(1); }
.logo--ink { filter: brightness(0); }

/* Two uploaded logo states: light over the transparent hero header, dark once
   the header turns solid or on light pages. Falls back to the recoloured SVG. */
.brand-logo { height: clamp(40px, 4vw, 56px); width: auto; display: block; }
.brand-state { display: inline-flex; align-items: center; }
.brand-state--dark { display: none; }
.site-header.is-solid .brand-state--light,
.site-header--light .brand-state--light { display: none; }
.site-header.is-solid .brand-state--dark,
.site-header--light .brand-state--dark { display: inline-flex; }

/* Solid state (after hero / on light pages) */
.site-header.is-solid {
  background: var(--bone);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(30, 30, 30, 0.08);
}
.site-header.is-solid .logo--bone { filter: brightness(0); }
.site-header.is-hidden { transform: translateY(-100%); }

/* page that starts on a light surface (detail pages) */
.site-header--light { color: var(--ink); }
.site-header--light .logo--bone { filter: brightness(0); }

/* WordPress admin bar — push the fixed header below it so it isn't clipped. */
.admin-bar .site-header,
.admin-bar .nav-drawer { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header,
  .admin-bar .nav-drawer { top: 46px; }
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 8px 32px;
  border-radius: var(--radius);
  border: 0.5px solid var(--ink);
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: var(--fw-light);
  letter-spacing: var(--track);
  line-height: var(--lh);
  white-space: nowrap;
  width: max-content;
  transition: transform var(--t-med) var(--ease), background-color var(--t-med) var(--ease),
    color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
/* Fill on hover for a clear, on-brand (monochrome) response. */
.btn:hover { background-color: var(--ink); color: var(--bone); box-shadow: 0 10px 24px rgba(30, 30, 30, 0.20); }
.btn--bone { border-color: var(--bone); color: var(--bone); }
.btn--bone:hover { background-color: var(--bone); color: var(--ink); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28); }

/* ── Arrow chip ─────────────────────────────────────────────────────── */
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius);
  border: 0.5px solid var(--ink);
}
.chip svg { width: 10px; height: 10px; display: block; }
.chip svg path { stroke: var(--ink); }
.chip--lg { width: 34px; height: 34px; }
.chip--lg svg { width: 13px; height: 13px; }
.chip--bone { border-color: var(--bone); }
.chip--bone svg path { stroke: var(--bone); }
.chip--flip { transform: scaleX(-1); }
.chip { transition: background-color var(--t-med) var(--ease), border-color var(--t-med) var(--ease); }
.chip svg path { transition: stroke var(--t-med) var(--ease); }
[data-arrow] svg, .card svg { transition: transform var(--t-med) var(--ease); }
/* Arrow slides further + the chip fills (inverts) on hover. */
[data-arrow]:hover svg, .card--link:hover .chip svg { transform: translateX(6px); }
[data-arrow]:hover .chip, .card--link:hover .chip { background-color: var(--ink); border-color: var(--ink); }
[data-arrow]:hover .chip svg path, .card--link:hover .chip svg path { stroke: var(--bone); }
[data-arrow]:hover .chip--bone, .card--link:hover .chip--bone { background-color: var(--bone); border-color: var(--bone); }
[data-arrow]:hover .chip--bone svg path, .card--link:hover .chip--bone svg path { stroke: var(--ink); }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: clamp(520px, 86vh, 800px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: var(--bone);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: transform;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 32%, rgba(0,0,0,0.55) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--gutter);
  padding-bottom: clamp(40px, 6vw, 56px);
}
.hero__content { max-width: 620px; display: flex; flex-direction: column; gap: clamp(20px, 3vw, 32px); }
.hero__text { display: flex; flex-direction: column; gap: 16px; }
.hero--page .hero__content { max-width: 640px; }

/* ── Section heading block (eyebrow + headline [+ button]) ──────────── */
.lede { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
.lede--wide { max-width: 720px; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(28px, 4vw, 48px);
}

/* ── Split (two columns: media + copy) ──────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
.split--top { align-items: start; }
.split__col { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 32px); }
.split--reverse .split__media { order: 2; }

/* a copy column that is centred + narrower (mirrors the 467px Figma text col) */
.copy-narrow { max-width: 468px; }
.copy-center { margin-inline: auto; }

/* ── Grids ──────────────────────────────────────────────────────────── */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--tight { gap: 16px; }

/* ── Cards ──────────────────────────────────────────────────────────── */
.card { display: flex; flex-direction: column; gap: 16px; }
.card--link { cursor: pointer; }
.card__media { transition: transform 700ms var(--ease); }
/* Card image zooms more noticeably on hover. */
.card--link:hover .card__media { transform: scale(1.06); }
.card__row { display: flex; gap: 24px; align-items: flex-start; }
.card__row .h3 { flex: 1; }
.card__title { font-size: var(--fs-md); font-weight: var(--fw-med); line-height: var(--lh); }

/* product card with dark wash + overlaid copy */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(380px, 38vw, 540px);
  padding: 24px;
  color: var(--bone);
  overflow: hidden;
  cursor: pointer;
}
.product-card .card__media {
  position: absolute;
  inset: 0;
}
.product-card .card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--wash);
}
.product-card__body { position: relative; z-index: 2; display: flex; gap: 10px; align-items: flex-end; }
.product-card__text { display: flex; flex-direction: column; gap: 16px; flex: 1; }
.product-card .chip { align-self: flex-end; }

/* why-work-with-us tile */
.tile { display: flex; flex-direction: column; gap: 16px; }
.tile__text { display: flex; flex-direction: column; gap: 16px; }

/* spec / overview card */
.spec { display: flex; flex-direction: column; gap: 16px; }
.spec__values { display: flex; flex-direction: column; gap: 8px; }

/* trusted-by logos */
.logos-row { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 96px); align-items: center; opacity: 0.5; }
.logo-box {
  width: 100px; height: 32px;
  border: 0.5px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: var(--fw-med); letter-spacing: 0.1em;
}
/* Uploaded client logos: show at full strength, no placeholder border. */
.logos-row--has-logos { opacity: 1; }
.logos-row--has-logos .logo-box { border-color: transparent; }
.logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ── CTA banner ─────────────────────────────────────────────────────── */
.cta { padding-block: clamp(40px, 5vw, 40px); }
.cta__inner {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--bone);
  min-height: clamp(360px, 40vw, 540px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(32px, 6vw, 64px);
}
.cta__bg { position: absolute; inset: 0; }
.cta__bg::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.cta__content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 32px; max-width: 420px; }
.cta__content .body { color: var(--bone); }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer { background: var(--bone); color: var(--ink); padding-block: clamp(40px, 5vw, 64px) 24px; }
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.site-footer__brand img { width: clamp(180px, 18vw, 286px); height: auto; }
.footer-cols { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.footer-col { display: flex; flex-direction: column; gap: 16px; }
.footer-col h2 { font-size: var(--fs-base); font-weight: var(--fw-med); margin: 0; }
.footer-col a, .footer-col span { font-size: var(--fs-sm); font-weight: var(--fw-light); }
.footer-col a { transition: opacity var(--t-med) var(--ease); }
.footer-col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer-contact { gap: 16px; }

/* ── Light page intro (detail pages) ────────────────────────────────── */
.page-intro { padding-top: calc(var(--header-h) + clamp(32px, 5vw, 60px)); }
.page-intro__head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }

/* meta row (project detail) */
.meta-row { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 48px); justify-content: flex-end; margin-top: 32px; }
.meta { display: flex; flex-direction: column; gap: 8px; min-width: 200px; max-width: 280px; }
.meta h4 { font-size: var(--fs-base); font-weight: var(--fw-med); margin: 0; }

/* article body */
.article-body { max-width: 640px; display: flex; flex-direction: column; gap: clamp(24px, 3vw, 32px); }
.article-body .media { width: 100%; max-width: 780px; aspect-ratio: 780 / 438; }
/* Native WordPress editor (the_content) blocks inside a single article. */
.article-body > * { margin: 0; }
.article-body h1, .article-body h2 { font-size: var(--fs-lg); font-weight: var(--fw-med); line-height: var(--lh); }
.article-body h3, .article-body h4 { font-size: var(--fs-md); font-weight: var(--fw-med); line-height: var(--lh); }
.article-body p, .article-body li { font-size: var(--fs-base); font-weight: var(--fw-light); line-height: var(--lh); }
.article-body ul, .article-body ol { padding-left: 1.2em; display: flex; flex-direction: column; gap: 0.4em; }
.article-body a { text-decoration: underline; }
.article-body img { width: 100%; height: auto; }
.article-body figure { margin: 0; }
.article-body figcaption { font-size: var(--fs-sm); color: var(--fg-2); margin-top: 8px; }
.article-body blockquote { padding-left: 1em; border-left: 2px solid var(--ink); }

/* ── Slider (horizontal scroll-snap track + arrows, styled scrollbar) ─ */
.slider { position: relative; }
.slider__track {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 18px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.slider__track > * { scroll-snap-align: start; flex: 0 0 auto; }
.slider__track .product-card { width: clamp(280px, 30vw, 432px); }
.slider__nav { display: flex; gap: 16px; margin-top: 28px; }
.slider__arrow {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0.5px solid var(--ink); border-radius: var(--radius);
  transition: background-color var(--t-med) var(--ease), opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.slider__arrow svg { width: 13px; height: 13px; display: block; }
.slider__arrow svg path { stroke: var(--ink); transition: stroke var(--t-med) var(--ease); }
.slider__arrow--prev svg { transform: scaleX(-1); }
/* Arrow fills (inverts) and grows on hover. */
.slider__arrow:hover:not(:disabled) { background-color: var(--ink); border-color: var(--ink); transform: scale(1.08); }
.slider__arrow:hover:not(:disabled) svg path { stroke: var(--bone); }
.slider__arrow:disabled { opacity: 0.25; cursor: default; }

/* gallery — a slider of wide media tiles */
.gallery { display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden; padding-bottom: 18px; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.gallery .media { flex: 0 0 clamp(280px, 34vw, 500px); aspect-ratio: 500 / 400; scroll-snap-align: start; }

/* Custom scrollbar for every slider — thin, monochrome, fits the design. */
.slider__track, .gallery {
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.slider__track::-webkit-scrollbar, .gallery::-webkit-scrollbar { height: 4px; }
.slider__track::-webkit-scrollbar-track, .gallery::-webkit-scrollbar-track { background: rgba(30, 30, 30, 0.08); }
.slider__track::-webkit-scrollbar-thumb, .gallery::-webkit-scrollbar-thumb { background: var(--line); }
.slider__track:hover::-webkit-scrollbar-thumb, .gallery:hover::-webkit-scrollbar-thumb { background: var(--ink); }

/* ── Contact form ───────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 0; max-width: 468px; }
.field {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--black);
  padding: 14px 0;
}
.field input, .field textarea, .field select {
  width: 100%; border: 0; background: transparent; font: inherit; color: var(--ink);
  font-size: var(--fs-sm); font-weight: var(--fw-light);
}
.field textarea { resize: vertical; min-height: 24px; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-2); }
.field select { color: var(--fg-2); }
.field .caret { color: var(--black); font-size: 12px; pointer-events: none; }
.radio-row { display: flex; gap: 32px; padding: 14px 0; }
.radio { display: inline-flex; gap: 10px; align-items: center; cursor: pointer; font-size: var(--fs-sm); }
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio .dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1px solid var(--black);
  display: inline-flex; align-items: center; justify-content: center;
}
.radio input:checked + .dot::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.form .btn { margin-top: 24px; }

/* ── Reveal / animation initial states (only when JS is on) ─────────── */
html.js [data-reveal] { opacity: 0; will-change: opacity, transform; }
html.js [data-reveal="up"] { transform: translateY(28px); }
html.js [data-reveal="fade"] { transform: translateY(10px); }
html.js [data-reveal="img"] { clip-path: inset(0 0 100% 0); transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  /* mobile nav: hide inline links + button, show burger.
     Note: .site-header prefix raises specificity so this wins over the base
     `.nav-toggle { display:none }` rule that appears later in the file. */
  .site-header__inner { grid-template-columns: auto 1fr auto; }
  .site-header__nav, .site-header__actions .btn { display: none; }
  .site-header__brand { justify-self: start; order: -1; }
  .site-header .nav-toggle { display: inline-flex; }
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split--reverse .split__media { order: 0; }
  .site-footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .section-head { align-items: flex-start; }
  .meta-row { justify-content: flex-start; }
  .meta { min-width: 0; }
}

/* ── Mobile nav drawer ──────────────────────────────────────────────── */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  color: inherit;
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform var(--t-med) var(--ease), opacity var(--t-med); }
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bone);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  padding: var(--gutter);
  transform: translateY(-100%);
  transition: transform 520ms var(--ease);
  visibility: hidden;
}
.nav-drawer.is-open { transform: translateY(0); visibility: visible; }
.nav-drawer__top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); margin-inline: calc(var(--gutter) * -1 + var(--gutter)); }
.nav-drawer__close { font-size: 28px; line-height: 1; width: 40px; height: 40px; }
.nav-drawer__links { display: flex; flex-direction: column; gap: clamp(18px, 4vw, 28px); margin-top: clamp(24px, 6vw, 56px); }
.nav-drawer__links a { font-size: clamp(26px, 8vw, 40px); font-weight: var(--fw-med); letter-spacing: var(--track); }
.nav-drawer__foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-sm); color: var(--fg-2); }

/* ── Image background utilities (URLs relative to this stylesheet) ──── */
.bg-about-workshop { background-image: url("../img/about-workshop.jpg"); }
.bg-article-1 { background-image: url("../img/article-1.jpg"); }
.bg-article-2 { background-image: url("../img/article-2.jpg"); }
.bg-articles-hero { background-image: url("../img/articles-hero.jpg"); }
.bg-contact-banner { background-image: url("../img/contact-banner.jpg"); }
.bg-contact-hero { background-image: url("../img/contact-hero.jpg"); }
.bg-dark-timber-cta { background-image: url("../img/dark-timber-cta.jpg"); }
.bg-factory-floor { background-image: url("../img/factory-floor.jpg"); }
.bg-hero-timber-stack { background-image: url("../img/hero-timber-stack.jpg"); }
.bg-interior-timber { background-image: url("../img/interior-timber.jpg"); }
.bg-location-map { background-image: url("../img/location-map.png"); }
.bg-our-service-1 { background-image: url("../img/our-service-1.jpg"); }
.bg-pd-doors-detail { background-image: url("../img/pd-doors-detail.jpg"); }
.bg-pd-doors-hero { background-image: url("../img/pd-doors-hero.jpg"); }
.bg-pd-flooring-detail { background-image: url("../img/pd-flooring-detail.jpg"); }
.bg-pd-lumberceiling-detail { background-image: url("../img/pd-lumberceiling-detail.jpg"); }
.bg-pd-lumberceiling-hero { background-image: url("../img/pd-lumberceiling-hero.jpg"); }
.bg-pd-outdoor-detail { background-image: url("../img/pd-outdoor-detail.jpg"); }
.bg-pd-outdoor-hero { background-image: url("../img/pd-outdoor-hero.jpg"); }
.bg-pd-screens-detail { background-image: url("../img/pd-screens-detail.jpg"); }
.bg-pd-screens-hero { background-image: url("../img/pd-screens-hero.jpg"); }
.bg-pd-spec-shared { background-image: url("../img/pd-spec-shared.jpg"); }
.bg-pd-staircase { background-image: url("../img/pd-staircase.jpg"); }
.bg-pd-structural-detail { background-image: url("../img/pd-structural-detail.jpg"); }
.bg-pd-structural-hero { background-image: url("../img/pd-structural-hero.jpg"); }
.bg-pd-wall-cladding-detail { background-image: url("../img/pd-wall-cladding-detail.jpg"); }
.bg-pd-wall-cladding-hero { background-image: url("../img/pd-wall-cladding-hero.jpg"); }
.bg-pd-wood-decking-detail { background-image: url("../img/pd-wood-decking-detail.jpg"); }
.bg-pd-wood-decking-hero { background-image: url("../img/pd-wood-decking-hero.jpg"); }
.bg-product-decking { background-image: url("../img/product-decking.jpg"); }
.bg-product-index-hero { background-image: url("../img/product-index-hero.jpg"); }
.bg-sustainability-1 { background-image: url("../img/sustainability-1.jpg"); }
.bg-sustainability-2 { background-image: url("../img/sustainability-2.jpg"); }
.bg-sustainability-3 { background-image: url("../img/sustainability-3.jpg"); }
.bg-sustainability-banner { background-image: url("../img/sustainability-banner.jpg"); }
.bg-sustainability-forest { background-image: url("../img/sustainability-forest.jpg"); }
.bg-timber-detail { background-image: url("../img/timber-detail.jpg"); }
.bg-timber-detail-large { background-image: url("../img/timber-detail-large.jpg"); }
.bg-wood-decking-tile { background-image: url("../img/wood-decking-tile.jpg"); }
.bg-wood-texture-overlay { background-image: url("../img/wood-texture-overlay.jpg"); }

/* ── Accessibility helpers + heading-level compatibility (SEO/a11y audit) ─── */
/* Visually hidden but available to screen readers (skip-link + structural headings). */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
/* "Skip to content" link: off-screen until keyboard-focused. */
.skip-link {
  position: absolute; left: 8px; top: -56px; z-index: 1000;
  background: var(--ink); color: var(--bone);
  padding: 10px 16px; border-radius: 4px;
  font-size: var(--fs-sm); text-decoration: none;
  transition: top var(--t-med) var(--ease);
}
.skip-link:focus { top: 8px; }
/* Card titles are now <h3> (were <span>): neutralise the default heading margin. */
.card__title { margin: 0; }
/* Single-post meta: category/author eyebrow links + tag pills (articles-as-posts). */
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; text-underline-offset: 3px; }
.eyebrow__sep { opacity: .45; margin: 0 .35em; }
.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: clamp(28px, 4vw, 48px); }
.article-tags__label { font-size: var(--fs-sm); font-weight: var(--fw-med); }
.article-tags a { font-size: var(--fs-sm); font-weight: var(--fw-light); padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; transition: opacity var(--t-med) var(--ease); }
.article-tags a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Drawer contact links (address → Google Maps, WhatsApp → wa.me). */
.nav-drawer__foot a { color: inherit; text-decoration: none; transition: opacity var(--t-med) var(--ease); }
.nav-drawer__foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Contact Form 7 — inherit the theme's .form styling. */
.form .field .wpcf7-form-control-wrap { display: block; flex: 1 1 auto; min-width: 0; position: static; }
.form .wpcf7-not-valid-tip { position: absolute; top: 100%; left: 0; margin-top: 4px; font-size: 12px; color: #b3261e; }
.form .radio-row .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 24px; }
.form .radio-row .wpcf7-list-item { margin: 0; }
.form .radio-row .wpcf7-list-item label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.form .wpcf7-submit { -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; }
.form .wpcf7-spinner { margin-left: 12px; }
.wpcf7 .wpcf7-response-output { margin: 18px 0 0; padding: 12px 16px; font-size: var(--fs-sm); border: 1px solid var(--line); border-radius: 4px; }
.form .wpcf7-select { -webkit-appearance: none; appearance: none; padding-right: 22px; background-repeat: no-repeat; background-position: right center; background-size: 12px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%231e1e1e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* Form polish: black radio/checkbox, gray default border → true-black on focus, no input outline. */
.form input[type="radio"], .form input[type="checkbox"] { accent-color: var(--ink); width: 16px; height: 16px; }
.form .field { border-bottom-color: var(--line); position: relative; }
.form .radio-row { position: relative; }
.form .field:has(:focus-visible) { border-bottom-color: var(--black); }
.form .field input:focus, .form .field select:focus, .form .field textarea:focus { outline: none; }

