/* ==========================================================================
   UNITED Remodeling & Flooring — homepage styles
   Derived from the original 8B export (design-0014): same grid, spacing,
   header behaviour and motion language, rebuilt on the approved brand system.
   Sections: 1 Tokens · 2 Base · 3 Components · 4 Header · 5 Hero
             6 Spaces, Specialty · 7 Work (hidden) · 8 Story, Team, Reviews, Q&A
             9 CTA · 10 Footer · 11 Blocker
   ========================================================================== */

/* 1 ─ Tokens ------------------------------------------------------------- */
:root {
  /* Brand palette — CLAUDE.md §4. Do not add colours outside this set. */
  --green:    #1F3D2E;   /* Deep Forest Green: primary accent + CTAs  */
  --cream:    #F5F3EE;   /* Warm Cream: backgrounds                  */
  --sage:     #6B846D;   /* Muted Sage: secondary accents (not body text) */
  --bronze:   #C8A97E;   /* Warm Bronze: fine rules + small highlights */
  --charcoal: #2B2B2B;   /* Charcoal: primary text                   */

  /* Derived tones (mixes of the palette above) */
  --cream-deep: color-mix(in oklab, var(--cream) 88%, var(--bronze));
  --sand:       color-mix(in oklab, var(--cream) 70%, var(--bronze));
  --muted:      color-mix(in oklab, var(--charcoal) 70%, var(--cream));
  --rule:       color-mix(in oklab, var(--charcoal) 16%, transparent);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-hero:  clamp(2.6rem, 1rem + 6.4vw, 6.6rem);
  --fs-h2:    clamp(1.85rem, 1.1rem + 2.6vw, 3.4rem);
  --fs-h3:    clamp(1.3rem, 1.1rem + .7vw, 1.75rem);
  --fs-lead:  clamp(1.06rem, .98rem + .4vw, 1.25rem);
  --fs-body:  1.02rem;
  --fs-small: .875rem;

  --pad:   clamp(16px, 3.6vw, 56px);
  --space: clamp(80px, 10vw, 160px);
  --head-h: 76px;
  --maxw:  1480px;
  --radius: 2px;

  --ease:     cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* 2 ─ Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font: 400 var(--fs-body)/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; } /* <picture> wrappers don't affect layout */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, figure, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }

h1, h2 { font-family: var(--font); font-weight: 500; text-wrap: balance; }
h1 { text-transform: uppercase; }
h2 { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -.02em; }
h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }

section[id], [id="flooring"], [id="remodeling"] { scroll-margin-top: calc(var(--head-h) + 12px); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: color-mix(in oklab, currentColor 84%, transparent); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; background: var(--green); color: var(--cream); border-radius: var(--radius);
}
.skip:focus { top: 12px; }

/* 3 ─ Components --------------------------------------------------------- */


/* Small factual footnote (e.g. what a photo shows) */
.note { font-size: .8rem; color: var(--muted); }

/* Buttons — rectangular, with the 8B inset fill on hover */
.btn {
  --b: var(--green); --t: var(--cream);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .95em 1.5em;
  border: 0; border-radius: var(--radius);
  background: var(--b); color: var(--t);
  font: 600 .86rem/1 var(--font); letter-spacing: .05em; text-transform: uppercase;
  white-space: nowrap; cursor: pointer;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in oklab, var(--b) 82%, black);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.btn--light { --b: var(--cream); --t: var(--green); }
.btn--light::before { background: color-mix(in oklab, var(--cream) 88%, var(--bronze)); }
.btn--sm { min-height: 44px; padding: .85em 1.2em; font-size: .78rem; }

/* Text link with underline draw and an arrow that nudges on hover */
.link { position: relative; display: inline-flex; align-items: center; gap: .5em; font-weight: 600; padding-block: 6px; }
.link::before, .link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; }
.link::after { opacity: .3; }
.link::before { transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.link .arr { display: inline-block; transition: transform .45s var(--ease-out); }
.link--arrow::before, .link--arrow::after { right: 1.5em; } /* underline stops before the arrow */

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; padding: 0;
  border-radius: var(--radius); border: 1px solid color-mix(in oklab, currentColor 30%, transparent);
  background: transparent; color: inherit; cursor: pointer;
}

@media (hover: hover) {
  .btn:hover::before { transform: scaleX(1); }
  .link:hover::before { transform: scaleX(1); transform-origin: left; }
  .link:hover .arr { transform: translateX(4px); }
}


/* 4 ─ Header (behaviour from the 8B export) ------------------------------ */
.site-head {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--head-h);
  display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px);
  padding-inline: var(--pad);
  background: var(--cream);
  box-shadow: 0 1px 0 color-mix(in oklab, var(--charcoal) 22%, transparent); /* divider between menu and page */
  transition: transform .55s var(--ease), background-color .4s, box-shadow .4s;
}
.site-head.is-scrolled { background: color-mix(in oklab, var(--cream) 96%, transparent); }
.site-head.is-hidden { transform: translateY(-100%); }

.brand { position: relative; z-index: 2; display: block; flex: none; }
.brand img { height: 42px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); margin-left: auto; font-size: .95rem; font-weight: 500; }
.nav > a, .nav__toggle { position: relative; padding-block: 8px; white-space: nowrap; }
.nav > a::after, .nav__toggle::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
@media (hover: hover) { .nav > a:hover::after, .nav__drop:hover .nav__toggle::after { transform: scaleX(1); transform-origin: left; } }
.nav > a[aria-current="page"]::after, .nav__toggle.is-current::after { transform: scaleX(1); }

/* Services dropdown: opens on hover, keyboard focus or click */
.nav__drop { position: relative; }
.nav__toggle { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.nav__caret { width: 6px; height: 6px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .3s var(--ease); }
.nav__sub {
  position: absolute; top: 100%; left: -20px; min-width: 210px; margin-top: 10px; padding: 8px 0;
  background: var(--cream); box-shadow: 0 0 0 1px var(--rule), 0 16px 32px -18px rgba(43, 43, 43, .35);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .25s, transform .25s var(--ease-out), visibility 0s .25s;
}
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
.nav__drop:hover .nav__sub, .nav__drop:focus-within .nav__sub, .nav__drop.is-open .nav__sub {
  opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s var(--ease-out);
}
.nav__drop:hover .nav__caret, .nav__drop.is-open .nav__caret { transform: rotate(225deg); margin-top: 3px; }
.nav__sub a { display: block; padding: 10px 20px; white-space: nowrap; }
.nav__sub a:hover, .nav__sub a:focus-visible { background: var(--cream-deep); color: var(--green); }
.nav__sub a[aria-current="page"] { color: var(--green); font-weight: 600; }
.menu__links a[aria-current="page"] { color: var(--green); }
.head__cta { position: relative; z-index: 2; }

.menu-btn { display: none; position: relative; z-index: 2; }
.menu-btn i { grid-area: 1 / 1; width: 16px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease); }
.menu-btn i:first-child { transform: translateY(-3px); }
.menu-btn i:last-child { transform: translateY(3px); }
.is-open .menu-btn i:first-child { transform: rotate(45deg); }
.is-open .menu-btn i:last-child { transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: calc(var(--head-h) + 28px) var(--pad) var(--pad);
  background: var(--cream); color: var(--charcoal);
  visibility: hidden; clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease), visibility 0s .6s;
}
.menu { overflow-y: auto; }
.menu__links { display: grid; gap: 2px; align-content: start; }
.menu__links > a, .menu__label {
  justify-self: start; padding-block: 6px; margin: 0;
  font-size: clamp(1.6rem, 7vw, 2.2rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.15;
}
.menu__label { color: var(--muted); }
.menu__sub { display: grid; gap: 0; padding-left: 4px; margin-bottom: 4px; }
.menu__sub a { display: inline-block; padding: 6px 0; font-size: 1.2rem; font-weight: 500; }
.menu__foot { display: grid; gap: 18px; justify-items: start; color: var(--muted); font-size: var(--fs-small); }
.site-head.is-open { background: var(--cream); box-shadow: none; }
.site-head.is-open .menu { visibility: visible; clip-path: inset(0); transition: clip-path .6s var(--ease); }

@media (max-width: 960px) {
  .nav { display: none; }
  .head__cta { margin-left: auto; }
  .menu-btn { display: inline-grid; }
}
@media (max-width: 560px) {
  :root { --head-h: 64px; }
  .brand img { height: 34px; }
  .head__cta { display: none; }
  .menu-btn { margin-left: auto; }
}
@media (min-width: 961px) { .menu { display: none; } }

/* 5 ─ Hero: headline overlaps the photo (8B split layout, 12-col overlap) */
.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  min-height: min(100svh, 880px);
}
.hero__copy {
  grid-column: 1 / span 10; grid-row: 1;
  position: relative; z-index: 2;            /* text sits above the photo */
  display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 5vh, 52px);
  padding: calc(var(--head-h) + clamp(24px, 6vh, 72px)) var(--pad) clamp(40px, 7vh, 80px);
}
.hero__title { font-size: var(--fs-hero); line-height: .95; letter-spacing: -.01em; max-width: 7.6em; }
/* lead + buttons stay on the cream side, clear of the photo */
.hero__lead { display: grid; gap: clamp(22px, 3.4vh, 32px); justify-items: start; }
.hero__lead .lead { max-width: min(30rem, calc(33.3vw - 2 * var(--pad))); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px 14px; }

.hero__photo {
  grid-column: 5 / -1; grid-row: 1;
  position: relative; overflow: hidden; margin-top: var(--head-h); background: var(--cream-deep);
}
.hero__photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 40% 70%; /* keeps the hardwood floor in frame */
}
/* soft cream fade where the headline crosses onto the photo, for legibility */
.hero__photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg,
    var(--cream) 0%,
    color-mix(in oklab, var(--cream) 55%, transparent) 9%,
    color-mix(in oklab, var(--cream) 12%, transparent) 22%,
    transparent 32%);
}

/* Tablet & phone: photo on top, headline rises over its lower edge */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__photo { grid-column: 1; grid-row: 1; aspect-ratio: 5 / 4; }
  .hero__photo img { object-position: 50% 70%; }
  .hero__photo::after {
    background: linear-gradient(0deg,
      var(--cream) 0%,
      color-mix(in oklab, var(--cream) 75%, transparent) 20%,
      color-mix(in oklab, var(--cream) 20%, transparent) 42%,
      transparent 58%);
  }
  .hero__copy {
    grid-column: 1; grid-row: 2;
    padding-top: 0; padding-bottom: 48px;
    margin-top: calc(-1 * clamp(6rem, 3.5rem + 11vw, 11rem)); /* pull ~2 headline lines up over the photo */
  }
  .hero__lead .lead { max-width: 34rem; }
}
@media (max-width: 560px) {
  .hero__photo { aspect-ratio: 4 / 5; }
  .hero__actions { justify-self: stretch; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* Shared section head (8B 12-column pattern) */
.sec-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px var(--pad); align-items: start;   /* heading and intro share a top line */
  margin-bottom: clamp(40px, 6vw, 88px);
}
.sec-head > h1, .sec-head > h2, .sec-head > div { grid-column: 1 / span 7; }
.sec-head > .lead { grid-column: 9 / span 4; max-width: 32rem; padding-top: .35em; }
@media (max-width: 1024px) { .sec-head > .lead { grid-column: 8 / span 5; } }
@media (max-width: 800px) { .sec-head > h1, .sec-head > h2, .sec-head > div, .sec-head > .lead { grid-column: 1 / -1; } }
.sec-head .note { margin-top: 12px; }

/* 6 ─ Spaces we improve: two unequal, image-led routes ------------------- */
.spaces { padding: var(--space) 0; }
.routes { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px var(--pad); align-items: start; }
.route { display: grid; gap: 22px; }
.route--flooring   { grid-column: 1 / span 7; }
.route--remodeling { grid-column: 9 / span 4; margin-top: clamp(60px, 10vw, 160px); }

.route__frame { position: relative; display: block; overflow: hidden; background: var(--cream-deep); }
.route__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.route--flooring .route__frame   { aspect-ratio: 4 / 3; }
.route--remodeling .route__frame { aspect-ratio: 3 / 4; }
.route--remodeling .route__frame img { object-position: 76% 50%; } /* keep the shower in frame */
.route__text { display: grid; gap: 12px; justify-items: start; max-width: 34rem; }
.route__text p { color: var(--muted); }
@media (hover: hover) { .route:hover .route__frame img { transform: scale(1.03); } }
@media (max-width: 1024px) { .route--remodeling { grid-column: 8 / span 5; } }

@media (max-width: 800px) {
  .route--flooring, .route--remodeling { grid-column: 1 / -1; margin-top: 0; }
  .route--remodeling .route__frame { aspect-ratio: 4 / 5; }
}

/* 6b ─ Specialty & luxury finishes: warm sand band (cream + bronze) -------- */
.lux { padding: var(--space) 0; background: var(--sand); color: var(--charcoal); }
.lux__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px var(--pad); align-items: start; }
.lux__head {
  grid-column: 1 / span 4; display: grid; gap: 22px; justify-items: start;
  position: sticky; top: calc(var(--head-h) + 32px);
}
.lux .lead { color: var(--charcoal); }
.lux__note { color: var(--muted); font-size: var(--fs-small); max-width: 26rem; }
.lux__body { grid-column: 6 / span 7; display: grid; gap: 36px; }
.mats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); }
.mat { display: grid; gap: 16px; align-content: start; }
.mat:nth-child(even) { margin-top: clamp(0px, 4vw, 56px); } /* gentle stagger */
.mat__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-deep); }
.mat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
@media (hover: hover) { .mat:hover .mat__img img { transform: scale(1.04); } }
.mat__text { display: grid; gap: 4px; }
.mat__text h3 { margin: 0; font-size: var(--fs-h3); font-weight: 500; letter-spacing: -.01em; }
.mat__text p { color: color-mix(in oklab, var(--charcoal) 78%, var(--sand)); font-size: var(--fs-small); max-width: 28rem; }
.lux__more { display: grid; gap: 8px; }
.lux .note { color: color-mix(in oklab, var(--charcoal) 78%, var(--sand)); }
@media (max-width: 900px) {
  .lux__head { grid-column: 1 / -1; position: static; }
  .lux__body { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .mats { gap: 28px 12px; }
  .mat:nth-child(even) { margin-top: 0; }
  .mat__text h3 { font-size: 1.05rem; }
}

/* 6c ─ Service pages: shorter hero, spec rows, plain lists --------------- */
.hero--page { min-height: min(78svh, 720px); }
.hero--page .hero__title { font-size: clamp(2.3rem, 1rem + 4.2vw, 4.6rem); max-width: 10em; }
.block { padding: var(--space) 0; }
.block--shade { background: var(--cream-deep); }
.block--sand { background: var(--sand); }
/* Pages without a photo hero (About): first block clears the fixed header */
.block--top { padding-top: calc(var(--head-h) + clamp(48px, 7vw, 112px)); }
.block--top .sec-head { margin-bottom: 0; }
.page-title { font-size: clamp(2.3rem, 1rem + 4.2vw, 4.6rem); line-height: .98; letter-spacing: -.01em; }
.block p + p { margin-top: 1em; }

/* Spec rows: name on the left, description on the shared right column */
.rows { border-top: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px var(--pad); padding: 26px 0; border-bottom: 1px solid var(--rule); }
.row h3 { grid-column: 1 / span 7; font-weight: 500; letter-spacing: -.01em; }
.row p { grid-column: 9 / span 4; color: var(--muted); }
.row a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1024px) { .row p { grid-column: 8 / span 5; } }
@media (max-width: 800px) { .row h3, .row p { grid-column: 1 / -1; } }

/* Remodeling: three photos with short captions */
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.strip__item { margin: 0; display: grid; gap: 14px; align-content: start; }
.strip__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.strip__item figcaption { font-size: 1.15rem; font-weight: 500; letter-spacing: -.01em; }
.strip__more { margin-top: clamp(28px, 3vw, 44px); color: var(--muted); max-width: 40rem; }
@media (max-width: 800px) { .strip { grid-template-columns: 1fr; gap: 28px; } }

/* Simple bulleted list: ordinary bullets in the brand bronze, no icons or rules */
.bullets { list-style: disc; padding-left: 1.15em; margin: 22px 0 0; display: grid; gap: 10px; font-size: 1.05rem; }
.bullets li { padding-left: .25em; }
.bullets li::marker { color: var(--bronze); }
.bullets + .note { margin-top: 22px; }

/* Two-column text block: heading left, copy on the shared right column */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px var(--pad); align-items: start; }
.split > h2 { grid-column: 1 / span 7; }
.split > div { grid-column: 9 / span 4; padding-top: .35em; }
.split .note { margin-top: 16px; }
/* Photo under the heading in a split block (left column) */
.split__photo { aspect-ratio: 3 / 2; overflow: hidden; background: var(--cream-deep); }
.split__photo img { width: 100%; height: 100%; object-fit: cover; }
/* With a photo: photo on the left, heading + text centred beside it */
.split:has(> .split__photo) { row-gap: 20px; }
.split:has(> .split__photo) > .split__photo { grid-column: 1 / span 6; grid-row: 1 / span 2; align-self: stretch; aspect-ratio: auto; min-height: clamp(280px, 30vw, 420px); } /* photo matches the text height */
.split:has(> .split__photo) > h2 { grid-column: 8 / span 5; grid-row: 1; align-self: end; font-size: clamp(1.8rem, 1.1rem + 1.9vw, 2.8rem); }
.split:has(> .split__photo) > div { grid-column: 8 / span 5; grid-row: 2; align-self: start; padding-top: 0; }
@media (max-width: 1024px) { .split > div { grid-column: 8 / span 5; } }
@media (max-width: 800px) {
  .split > h2, .split > div, .split:has(> .split__photo) > h2, .split:has(> .split__photo) > div,
  .split:has(> .split__photo) > .split__photo { grid-column: 1 / -1; grid-row: auto; }
  .split:has(> .split__photo) > .split__photo { aspect-ratio: 3 / 2; min-height: 0; }
}

/* Commercial: types of work — plain text grid, a fine rule above each */
.types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) var(--pad); }
.type { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 1px solid var(--rule); }
.type h3 { margin: 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
.type p { color: var(--muted); }
@media (max-width: 900px) { .types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .types { grid-template-columns: 1fr; } }

/* Commercial portfolio cards */
.pcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.pcard { display: grid; align-content: start; background: var(--cream); border-top: 3px solid var(--green); }
.pcard__body { display: grid; gap: 14px; align-content: start; padding: clamp(22px, 2.4vw, 32px); }
.pcard__photo { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-deep); }
.pcard__photo img { width: 100%; height: 100%; object-fit: cover; }
.pcard__label { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; background: color-mix(in oklab, var(--charcoal) 78%, transparent); color: var(--cream); font-size: .75rem; font-weight: 600; letter-spacing: .02em; }
.pcard__credit { font-size: .78rem; color: var(--muted); }
.pcard__credit a { text-decoration: underline; text-underline-offset: 2px; }
.pcard__tag { font-size: var(--fs-small); font-weight: 600; color: var(--green); }
.pcard h3 { margin: 0; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.pcard dl { display: grid; gap: 10px; margin: 6px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); }
.pcard dl div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; }
.pcard dt { font-size: var(--fs-small); color: var(--muted); }
.pcard dd { margin: 0; }
.pcards__note { margin-top: 20px; }
.hero__actions .link { align-self: center; }
@media (max-width: 800px) { .pcards { grid-template-columns: 1fr; } }

/* 3 ─ Brand carousel: logos on transparent backgrounds drift slowly.
   Hidden until js/brands.js lists real brands we install. */
.brands { padding: clamp(36px, 4vw, 56px) 0; border-bottom: 1px solid var(--rule); }
.brands__title { font-size: var(--fs-small); font-weight: 600; letter-spacing: .02em; color: var(--muted); margin-bottom: 22px; text-align: center; }
.brands__viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.brands__track { display: flex; align-items: center; gap: clamp(48px, 6vw, 88px); width: max-content; animation: brands-drift 45s linear infinite; }
.brands__track li { flex: none; }
.brands__track img { height: clamp(28px, 3vw, 40px); width: auto; max-width: 180px; object-fit: contain; opacity: .85; transition: opacity .3s; }
.brands__track li:hover img { opacity: 1; }
.brands__viewport:hover .brands__track { animation-play-state: paused; }
@keyframes brands-drift { to { transform: translateX(-50%); } } /* track holds two copies, so -50% loops seamlessly */
@media (prefers-reduced-motion: reduce) {
  .brands__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; margin-inline: auto; }
  .brands__track li[aria-hidden="true"] { display: none; }
  .brands__viewport { -webkit-mask-image: none; mask-image: none; }
}

/* 7 ─ Selected work: 1 + 2 editorial gallery, real photos only ---------- */
.work { padding: var(--space) 0; background: var(--cream-deep); }
.gallery {
  display: grid;
  grid-template-columns: minmax(0, 62fr) minmax(0, 38fr);
  grid-template-rows: auto auto;
  gap: clamp(28px, 3vw, 44px) var(--pad);
}
.shot { display: grid; gap: 12px; align-content: start; }
.shot--main { grid-row: 1 / span 2; }
.shot__frame { position: relative; overflow: hidden; background: var(--cream); aspect-ratio: 4 / 3; }
.shot__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* No colour filters on project photos — each job keeps its own light (CLAUDE.md §6). */
.shot--main .shot__frame { aspect-ratio: 4 / 3; }
.shot--side .shot__frame { aspect-ratio: 16 / 10; }
.shot__frame--shower img { object-position: 50% 74%; } /* mosaic floor + bench */
.shot figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; font-size: var(--fs-small); }
.shot figcaption b { font-weight: 600; }
.shot figcaption span { color: var(--muted); }

@media (max-width: 800px) {
  .gallery { grid-template-columns: 1fr; }
  .shot--main { grid-row: auto; }
  .shot--side .shot__frame { aspect-ratio: 4 / 3; }
  .shot__frame--shower { aspect-ratio: 4 / 5 !important; }
  .shot__frame--shower img { object-position: 50% 50%; }
}

/* 8a ─ Our story: typography-led, no photos ---------------------------- */
.story { padding: var(--space) 0; }
.story__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--pad); }
.story__title { grid-column: 1 / span 7; max-width: 11em; }
.story__body { grid-column: 9 / span 4; display: grid; gap: 22px; align-content: start; padding-top: .5em; max-width: 36rem; }
@media (max-width: 1024px) { .story__body { grid-column: 8 / span 5; } }
.story__body p:not(.lead) { color: var(--muted); }
@media (max-width: 800px) { .story__title, .story__body { grid-column: 1 / -1; } }

/* 8b ─ Meet the team: names set large, no placeholder portraits --------- */
.team { padding: var(--space) 0; background: var(--cream-deep); }
.team__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--pad); }
.team__head { grid-column: 1 / -1; }
.member { grid-column: 1 / span 6; display: grid; gap: 10px; align-content: start; }
.member + .member { grid-column: 9 / span 4; }
@media (max-width: 1024px) { .member + .member { grid-column: 8 / span 5; } }
.member h3 { margin: 0; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.member__role { font-size: var(--fs-small); font-weight: 600; color: var(--green); }
.member p:last-child { color: var(--muted); max-width: 32rem; }
@media (max-width: 800px) {
  .member, .member + .member { grid-column: 1 / -1; }
  .member + .member { margin-top: 48px; }
}

/* 8c ─ Google reviews slider (hidden until js/reviews.js has real reviews) */
.reviews { padding: var(--space) 0; }
.reviews__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.reviews__controls { display: flex; align-items: center; gap: 10px; }
.reviews__count { font-size: var(--fs-small); color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 6px; }
.reviews__btn { font-size: 1.1rem; }
.reviews__btn:disabled { opacity: .35; cursor: default; }
.reviews.is-static .reviews__controls { display: none; }
.reviews__track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--gap)) / 3);
  --gap: clamp(16px, 2vw, 28px); gap: var(--gap);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.reviews__track::-webkit-scrollbar { display: none; }
.reviews__track:focus-visible { outline: 2px solid var(--green); outline-offset: 6px; }
.review {
  scroll-snap-align: start; margin: 0;
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(24px, 2.6vw, 36px); background: var(--cream-deep);
}
.review__stars { color: var(--bronze); letter-spacing: .12em; font-size: 1.05rem; }
.review__text { margin: 0; font-size: 1.05rem; line-height: 1.6; flex: 1; }
.review__by { display: grid; gap: 2px; font-size: var(--fs-small); }
.review__by span, .review__by a { color: var(--muted); }
.review__by a { text-decoration: underline; text-underline-offset: 3px; }
.reviews__all { margin-top: 32px; }
@media (max-width: 1000px) { .reviews__track { grid-auto-columns: calc((100% - var(--gap)) / 2); } }
@media (max-width: 640px)  { .reviews__track { grid-auto-columns: 86%; } }

/* 8d ─ Q&A: native <details> accordion (works without JavaScript) ------- */
.qa { padding: var(--space) 0; }
/* keep sections alternating once the reviews section is showing */
.reviews:not([hidden]) + .qa { background: var(--cream-deep); }
.qa__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--pad); align-items: start; }
.qa__head { grid-column: 1 / span 4; position: sticky; top: calc(var(--head-h) + 32px); }
.qa__list { grid-column: 6 / span 7; border-top: 1px solid var(--rule); }
.qa__more { grid-column: 6 / span 7; margin-top: 8px; }
/* FAQ page: the list is the page, so it starts below the fixed header */
.qa--page { padding-top: calc(var(--head-h) + clamp(48px, 7vw, 112px)); }
.qa--page h1 { font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -.01em; }
.qa__a p + p { margin-top: .8em; }
.qa__a strong { color: var(--charcoal); font-weight: 600; }
.qa__item { border-bottom: 1px solid var(--rule); }
.qa__item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; min-height: 48px;
}
.qa__item summary::-webkit-details-marker { display: none; }
.qa__item summary h3 { margin: 0; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); font-weight: 600; line-height: 1.35; transition: color .3s; }
.qa__item summary:hover h3 { color: var(--green); }
.qa__item summary:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
/* plus that turns into a minus */
.qa__icon { position: relative; flex: none; width: 16px; height: 16px; }
.qa__icon::before, .qa__icon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px;
  background: var(--green); transition: transform .45s var(--ease);
}
.qa__icon::after { transform: rotate(90deg); }
.qa__item[open] .qa__icon::after { transform: rotate(0deg); }
.qa__a { padding: 0 48px 26px 0; }
.qa__a p { color: var(--muted); max-width: 40rem; }
.qa__a a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
/* Smooth open/close where the browser supports it; instant elsewhere */
@supports (interpolate-size: allow-keywords) {
  .qa { interpolate-size: allow-keywords; }
  .qa__item::details-content { height: 0; overflow: clip; transition: height .5s var(--ease), content-visibility .5s allow-discrete; }
  .qa__item[open]::details-content { height: auto; }
}
@media (max-width: 900px) {
  .qa__head { grid-column: 1 / -1; position: static; }
  .qa__list, .qa__more { grid-column: 1 / -1; }
  .qa__a { padding-right: 0; }
}

/* 9 ─ Final CTA: full-width forest green, text + button only ------------ */
.cta { background: var(--green); color: var(--cream); padding: clamp(72px, 9vw, 136px) 0; }
.cta__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--pad); align-items: end; }
.cta h2 { grid-column: 1 / span 7; font-size: clamp(2rem, 1.1rem + 3vw, 3.8rem); }
.cta__side { grid-column: 9 / span 4; display: grid; gap: 22px; justify-items: start; }
.cta .lead { color: color-mix(in oklab, var(--cream) 86%, transparent); }
@media (max-width: 800px) { .cta h2, .cta__side { grid-column: 1 / -1; } }

/* 10 ─ Footer ------------------------------------------------------------ */
.site-foot { background: var(--cream); border-top: 1px solid var(--rule); padding: clamp(32px, 4vw, 48px) 0 22px; }
.foot__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.foot__logo img { height: 36px; width: auto; }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .92rem; font-weight: 500; }
.foot__links a { padding-block: 6px; }
.foot__links a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.foot__facts { margin: 18px 0 20px; font-size: var(--fs-small); color: var(--muted); }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: var(--fs-small); color: var(--muted); }

/* 11 ─ Launch-blocker bar (preview builds only) ------------------------- */
.blocker {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  max-width: 760px; margin-inline: auto;
  padding: 10px 14px; border-radius: var(--radius);
  background: var(--charcoal); color: var(--cream);
  font-size: .8rem; line-height: 1.4; box-shadow: 0 8px 24px -12px rgba(0,0,0,.5);
}
.blocker code { font-size: .78rem; color: var(--bronze); }
/* keep the footer readable above the bar */
body:has(.blocker:not([hidden])) .site-foot { padding-bottom: 120px; }
body:has(.site-head.is-open) .blocker { display: none; } /* never cover the menu */

/* Motion off: everything static and visible */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
