/* ===================================================================
   TREADSTONE OUTDOOR
   One stylesheet, mobile-first. Search "=== NAME ===" to jump.

   TOKENS        colours, type, spacing
   BASE          reset + typography
   LAYOUT        container, sections, section heads
   BUTTONS       buttons + text links
   HEADER        sticky header, desktop nav, mobile menu
   HERO          home hero + inner page hero + breadcrumbs
   PROOF         trust strip under the hero
   SERVICES      photo tiles linking to each service page
   SPLIT         image + text blocks, benefit lists
   TABLES        comparison + spec tables
   BLENDS        blend picker + colours grid
   STEPS         numbered process
   PROJECTS      photo strip, gallery grid, lightbox
   REVIEWS       rating badge + review cards
   AREAS         service-area regions
   FAQ           details/summary accordion
   QUOTE FORM    multi-step quote card
   CTA BAND      closing call to action
   FOOTER        site footer + mobile call bar
   PROSE         long-form copy blocks
   UTILITIES     helpers, reduced motion
   =================================================================== */


/* === TOKENS === */

/* Jost, self-hosted (SIL OFL, see fonts/OFL.txt). One variable file covers 400 to 700. */
@font-face {
  font-family: "Jost";
  src: url("fonts/jost-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --charcoal: #3d3935;          /* logo charcoal */
  --charcoal-deep: #302d2a;
  --cyan: #46c3cf;              /* logo cyan */
  --cyan-hover: #34b4c1;
  --cyan-ink: #0e6f78;          /* cyan that passes contrast as text on white */
  --cyan-wash: #e3f5f7;
  --granite: #eff0ee;           /* pale stone band */
  --paper: #ffffff;
  --ink: #3d3935;
  --muted: #66625d;
  --line: #dcddd9;
  --line-dark: rgba(255, 255, 255, 0.16);
  --on-dark: #ffffff;
  --on-dark-muted: #c9c6c1;
  --star: #e9a23b;
  --error: #b42318;

  --font: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;

  --step--1: 0.875rem;   /* 14 */
  --step-0: 1.0625rem;   /* 17 */
  --step-1: 1.1875rem;   /* 19 */
  --step-2: 1.5rem;      /* 24 */
  --step-3: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.25rem, 1.5rem + 3.2vw, 4rem);

  --r-sm: 4px;
  --r-md: 8px;
  --shadow: 0 1px 2px rgba(48, 45, 42, 0.06), 0 12px 32px rgba(48, 45, 42, 0.14);

  --gutter: 20px;
  --max: 1200px;
  --section: clamp(56px, 8vw, 112px);
  --header-h: 64px;
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

@media (min-width: 1024px) {
  :root { --gutter: 40px; --header-h: 76px; }
}


/* === BASE === */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd {
  margin: 0;
}

h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); font-weight: 400; line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: 1.2; }
h4 { font-size: var(--step-1); line-height: 1.3; }

p { text-wrap: pretty; }

b, strong { font-weight: 500; }

img, svg, video {
  display: block;
  max-width: 100%;
}

img { height: auto; }

a { color: inherit; }

/* Zero specificity so component classes can set their own padding */
:where(ul[role="list"], ol[role="list"]) {
  list-style: none;
  padding: 0;
}

[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--cyan-ink);
  outline-offset: 2px;
}

/* Brighter ring where the background is dark */
.hero :focus-visible,
.section--dark :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible,
.lightbox :focus-visible {
  outline-color: var(--cyan);
}

/* Keep focused items clear of the sticky header and the phone call bar */
@media (max-width: 719px) {
  html { scroll-padding-bottom: 80px; }
}

::selection { background: var(--cyan); color: var(--charcoal); }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--fill { fill: currentColor; stroke: none; }


/* === LAYOUT === */

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--granite { background: var(--granite); }
.section--dark { background: var(--charcoal); color: var(--on-dark); }
.section--tight { padding-block: calc(var(--section) * 0.6); }

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--muted);
  max-width: 60ch;
}

.section--dark .lead { color: var(--on-dark-muted); }

/* Heading on the left, supporting copy on the right */
.section-head {
  display: grid;
  gap: 16px 48px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head h2 { max-width: 18ch; }

.section-head__side {
  display: grid;
  gap: 20px;
  align-content: end;
  justify-items: start;
}

@media (min-width: 900px) {
  .section-head { grid-template-columns: 1.1fr 1fr; align-items: end; }
}


/* === BUTTONS === */

.btn {
  --btn-bg: var(--cyan);
  --btn-fg: var(--charcoal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 22px;
  border: 2px solid var(--btn-bg);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 500 1rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover { --btn-bg: var(--cyan-hover); }

.btn--outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.btn--outline:hover { background: rgba(255, 255, 255, 0.08); border-color: currentColor; }
.section--granite .btn--outline:hover,
.page-hero .btn--outline:hover { background: rgba(61, 57, 53, 0.06); }

.btn--block { width: 100%; }
.btn--sm { min-height: 42px; padding: 8px 16px; font-size: 0.9375rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--cyan);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.text-link:hover { text-decoration-color: currentColor; }
.section--dark .text-link { color: var(--on-dark); }


/* === HEADER === */

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--charcoal);
  color: var(--on-dark);
  border-radius: var(--r-sm);
}

.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}

.brand { display: block; margin-right: auto; }
.brand img { width: 148px; height: auto; }

@media (min-width: 1024px) {
  .brand img { width: 172px; }
}

.nav { display: none; }

.nav__list {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  display: block;
  padding: 8px 10px;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--r-sm);
}

.nav__link:hover { color: var(--cyan-ink); }

.nav__link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--cyan);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.header-phone {
  display: none;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}

.header-phone .icon { color: var(--cyan-ink); }

.header-cta { display: none; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.icon-btn .icon { width: 22px; height: 22px; }

@media (min-width: 720px) {
  .header-cta { display: inline-flex; }
}

@media (min-width: 1180px) {
  .nav { display: block; }
  .header-phone { display: inline-flex; }
  .menu-toggle, .header-call { display: none; }
}

/* Mobile menu uses the native popover API: no JS needed to open or close it */
.mobile-menu {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  overflow-y: auto;
}

.mobile-menu::backdrop { background: rgba(48, 45, 42, 0.4); }

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--line);
}

.mobile-menu__top img { width: 148px; }

.mobile-menu__list {
  margin: 0;
  padding: 12px var(--gutter);
  list-style: none;
}

.mobile-menu__list a {
  display: block;
  padding: 14px 0;
  font-size: 1.375rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.mobile-menu__list a[aria-current="page"] { color: var(--cyan-ink); }

.mobile-menu__actions {
  display: grid;
  gap: 12px;
  padding: 12px var(--gutter) 40px;
}


/* === HERO === */

.hero {
  position: relative;
  color: var(--on-dark);
  background: var(--charcoal);
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(48, 45, 42, 0.62) 0%, rgba(48, 45, 42, 0.74) 45%, rgba(48, 45, 42, 0.94) 100%);
}

.hero__inner {
  display: grid;
  gap: 32px;
  padding-block: 56px 32px;
}

.hero__copy { max-width: 680px; }

.hero h1 { font-size: clamp(2.25rem, 1.45rem + 2.6vw, 3.375rem); }

.hero__lead {
  margin-top: 20px;
  font-size: var(--step-1);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  max-width: 52ch;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.check-list .icon {
  margin-top: 0.25em;
  color: var(--cyan);
  stroke-width: 3;
}

.check-list--dark .icon { color: var(--cyan-ink); }
.page-hero .check-list { margin-top: 20px; }

.hero__note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 28px;
  font-size: var(--step--1);
  color: rgba(255, 255, 255, 0.82);
}

.hero__note a { color: var(--on-dark); font-weight: 500; }

@media (min-width: 1024px) {
  .hero__media::after {
    background: linear-gradient(90deg, rgba(48, 45, 42, 0.9) 0%, rgba(48, 45, 42, 0.72) 40%, rgba(48, 45, 42, 0.15) 75%, rgba(48, 45, 42, 0.05) 100%);
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr) 440px;
    align-items: center;
    gap: 56px;
    min-height: min(820px, calc(100svh - var(--header-h)));
    padding-block: 72px;
  }
}

/* Inner page hero: copy left, photo right */
.page-hero {
  background: var(--granite);
  border-bottom: 1px solid var(--line);
}

.page-hero__inner {
  display: grid;
  gap: 28px;
  padding-block: 28px 48px;
}

.page-hero__copy { align-self: center; }

.page-hero h1 {
  max-width: 22ch;
  font-size: clamp(2.125rem, 1.5rem + 2vw, 3.25rem);
}

.page-hero .lead { margin-top: 18px; color: var(--muted); }

.page-hero__media {
  position: relative;
  margin-inline: calc(var(--gutter) * -1);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 900px) {
  .page-hero__inner {
    grid-template-columns: 1.05fr 1fr;
    gap: 24px 56px;
    padding-block: 28px 64px;
  }

  .page-hero__media {
    margin: 0;
    aspect-ratio: 5 / 4;
    border-radius: var(--r-md);
  }

  .page-hero__crumbs { grid-column: 1 / -1; }
}

.page-hero--plain .page-hero__inner { grid-template-columns: 1fr; }

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
  color: var(--muted);
}

.crumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--line);
}

.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); }


/* === PROOF === */

.proof {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.proof__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.proof__item {
  display: grid;
  gap: 2px;
  padding: 20px 16px 20px 0;
  border-bottom: 1px solid var(--line);
}

.proof__item:nth-child(odd) { padding-right: 16px; }
.proof__item:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }

.proof__item strong { font-size: 1.0625rem; font-weight: 500; line-height: 1.3; }
.proof__item span { font-size: var(--step--1); color: var(--muted); line-height: 1.45; }

@media (min-width: 900px) {
  .proof__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .proof__item,
  .proof__item:nth-child(odd),
  .proof__item:nth-child(even) {
    padding: 28px 24px;
    border-bottom: 0;
    border-left: 1px solid var(--line);
  }
  .proof__item:first-child { border-left: 0; padding-left: 0; }
}

.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--star);
}

.stars .icon { width: 1em; height: 1em; }


/* === SERVICES === */

.tiles {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

@media (min-width: 1100px) {
  .tiles--four { grid-template-columns: 1.25fr 1fr 1fr; }
  .tiles--four .tile__media { aspect-ratio: 1; }
  .tiles--four .tile:first-child { grid-row: span 2; }
  .tiles--four .tile:first-child .tile__media { aspect-ratio: auto; height: 100%; }
  .tiles--four .tile:last-child { grid-column: span 2; }
  .tiles--four .tile:last-child .tile__media { aspect-ratio: 2 / 1; }
}

.tile {
  position: relative;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--charcoal);
  color: var(--on-dark);
  text-decoration: none;
  isolation: isolate;
}

.tile__media {
  grid-area: 1 / 1;
  aspect-ratio: 4 / 3;
  z-index: -1;
}

.tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.tile__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(48, 45, 42, 0) 25%, rgba(48, 45, 42, 0.6) 58%, rgba(48, 45, 42, 0.94) 100%);
}

.tile__body {
  grid-area: 1 / 1;
  align-self: end;
  display: grid;
  gap: 6px;
  padding: 24px;
}

.tile__body p { color: rgba(255, 255, 255, 0.9); max-width: 38ch; }
.tile__body { text-shadow: 0 1px 14px rgba(30, 28, 26, 0.45); }

.tile__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-weight: 500;
  color: var(--cyan);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tile:hover .tile__media img { transform: scale(1.04); }
}


/* === SPLIT === */

.split {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split--wide-text { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
  .split--flip > :first-child { order: 2; }
}

.split__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
}

.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

@media (min-width: 900px) {
  .split__media img { aspect-ratio: 4 / 5; }
}

.split__copy > * + * { margin-top: 18px; }
.split__copy .btn-row { margin-top: 28px; }

.benefits {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
}

@media (min-width: 720px) {
  .benefits--single { grid-template-columns: 1fr; }
}

@media (min-width: 1024px) {
  .benefits--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.benefits li {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.section--dark .benefits li { border-top-color: var(--line-dark); }

.benefits h3 {
  font-size: var(--step-1);
  line-height: 1.3;
  margin-bottom: 6px;
}

.benefits p { color: var(--muted); }
.section--dark .benefits p { color: var(--on-dark-muted); }

.build-options {
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .build-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.build-option {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
}

.build-option img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  border-radius: var(--r-sm);
}

.build-option h3 { font-size: var(--step-2); }
.build-option > p { color: var(--muted); }
.build-option ol { margin: 0; padding-left: 1.2em; color: var(--muted); }
.build-option li + li { margin-top: 6px; }

.tag {
  justify-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--cyan-wash);
  color: var(--cyan-ink);
  font-size: var(--step--1);
  font-weight: 500;
}

.figure-note {
  margin-top: 12px;
  font-size: var(--step--1);
  color: var(--muted);
}


/* === TABLES === */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  -webkit-overflow-scrolling: touch;
}

.compare {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.9688rem;
  line-height: 1.5;
}

.compare th,
.compare td {
  padding: 18px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.compare td { color: var(--muted); }

.compare thead th {
  padding-block: 18px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.compare thead th:first-child { width: 20%; }
.compare thead .is-ours { width: 25%; }

.compare tbody th {
  position: sticky;
  left: 0;
  font-weight: 500;
  background: var(--paper);
}

.compare tbody tr:last-child > * { border-bottom: 0; }

.compare .is-ours {
  background: var(--cyan-wash);
  color: var(--ink);
  font-weight: 500;
}

.compare thead .is-ours { color: var(--cyan-ink); box-shadow: inset 0 3px 0 var(--cyan); }

.yes, .no, .meh {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.yes::before, .no::before, .meh::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translateY(-2px);
}

.yes::before { background: #2f9e6e; }
.meh::before { background: var(--star); }
.no::before { background: #c4443a; }

.specs {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--line);
}

.specs > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.specs dt { color: var(--muted); }
.specs dd { font-weight: 500; }


/* === BLENDS === */

.picker {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 900px) {
  .picker { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .picker__preview { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
}

.picker__panel .lead { margin-top: 12px; }

.picker__preview {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--line);
}

.picker__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.picker__label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  background: var(--paper);
  font-weight: 500;
  box-shadow: var(--shadow);
}

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 14px 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.swatch {
  display: grid;
  gap: 6px;
  justify-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: 500 0.8125rem/1.25 var(--font);
  color: var(--ink);
  text-align: center;
  cursor: pointer;
}

.swatch img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}

.swatch[aria-pressed="true"] img {
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--charcoal);
}

.swatch:focus-visible { outline: none; }
.swatch:focus-visible img { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--cyan-ink); }

.picker__detail {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.picker__detail h3 { font-size: var(--step-1); }
.picker__detail p { margin-top: 6px; color: var(--muted); }

/* Full colours page grid */
.blend-group + .blend-group { margin-top: 56px; }
.blend-group h3 { font-size: var(--step-2); margin-bottom: 20px; }

.blend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .blend-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
}

@media (min-width: 1100px) {
  .blend-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.blend-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-md);
}

.blend-card h4 { margin-top: 12px; font-size: var(--step-1); }
.blend-card p { margin-top: 4px; font-size: var(--step--1); color: var(--muted); }

.blend-card a {
  display: inline-block;
  margin-top: 8px;
  font-size: var(--step--1);
}


/* === STEPS === */

.steps-layout {
  display: grid;
  gap: 40px;
}

@media (min-width: 1024px) {
  .steps-layout { grid-template-columns: 0.8fr 1.6fr; gap: 64px; }
  .steps-layout__head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}

.steps-layout__head h2 { max-width: 14ch; }
.steps-layout__head .lead { margin-top: 18px; }

.steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
}

.steps li {
  counter-increment: step;
  padding: 24px 0 28px;
  border-top: 1px solid var(--line);
}

.section--dark .steps li { border-top-color: var(--line-dark); }

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border: 1px solid currentColor;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 500;
}

.steps li:first-child::before {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--charcoal);
}

.steps h3 { font-size: var(--step-1); line-height: 1.3; }
.steps p { margin-top: 8px; color: var(--muted); }
.section--dark .steps p { color: var(--on-dark-muted); }

@media (min-width: 720px) {
  .steps--compact { grid-template-columns: 1fr; }
}

.steps--compact li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 16px;
  padding: 16px 0 18px;
}

.steps--compact li::before { grid-row: span 2; margin-bottom: 0; }
.steps--compact h3 { font-size: 1.0625rem; }
.steps--compact p { margin-top: 2px; }


/* === PROJECTS === */

.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  gap: 16px;
  margin: 0;
  padding: 0 var(--gutter) 8px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
}

@media (min-width: 720px) {
  .strip { grid-auto-columns: 44%; gap: 20px; }
}

@media (min-width: 1100px) {
  .strip { grid-auto-columns: 30%; }
}

@media (min-width: 1280px) {
  .strip {
    padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2));
    scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2));
  }
}

.strip li { scroll-snap-align: start; }

.shot {
  margin: 0;
}

.shot img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-md);
}

.shot figcaption {
  margin-top: 10px;
  font-size: var(--step--1);
  color: var(--muted);
}

.shot figcaption strong { display: block; font-size: 1rem; color: var(--ink); font-weight: 500; }

.gallery {
  columns: 1;
  column-gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) { .gallery { columns: 2; } }
@media (min-width: 1024px) { .gallery { columns: 3; } }

.gallery li {
  break-inside: avoid;
  margin-bottom: 24px;
}

.gallery a {
  display: block;
  cursor: zoom-in;
}

.gallery img { width: 100%; border-radius: var(--r-md); }
.gallery .shot img { aspect-ratio: auto; }

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.pill-btn {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 500 0.9375rem/1.2 var(--font);
  cursor: pointer;
}

.pill-btn:hover { border-color: var(--muted); }

.pill-btn[aria-pressed="true"] {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: var(--on-dark);
}

.lightbox {
  width: min(1200px, 100vw - 32px);
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  background: var(--charcoal-deep);
  color: var(--on-dark);
}

.lightbox::backdrop { background: rgba(30, 28, 26, 0.88); }

.lightbox img {
  width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  font-size: var(--step--1);
}

.lightbox .icon-btn {
  background: transparent;
  color: var(--on-dark);
  border-color: var(--line-dark);
}


/* === REVIEWS === */

.reviews {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.review {
  display: grid;
  align-content: start;
  gap: 14px;
  height: 100%;
  padding: 28px;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--line);
}

.review blockquote { font-size: 1.0625rem; line-height: 1.6; }

.review figcaption {
  margin-top: auto;
  font-size: var(--step--1);
  color: var(--muted);
}

.review figcaption strong { display: block; color: var(--ink); font-size: 1rem; }

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  text-decoration: none;
}

.rating-badge__score { font-size: 2rem; font-weight: 500; line-height: 1; }
.rating-badge small { display: block; font-size: var(--step--1); color: var(--muted); }


/* === AREAS === */

.regions {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.section--dark .regions { border-top-color: var(--line-dark); }

.region {
  display: grid;
  gap: 6px 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.section--dark .region { border-bottom-color: var(--line-dark); }

@media (min-width: 720px) {
  .region { grid-template-columns: 220px minmax(0, 1fr) auto; align-items: baseline; }
}

.region h3 { font-size: var(--step-1); }
.region p { color: var(--muted); }
.section--dark .region p { color: var(--on-dark-muted); }
.region .text-link { white-space: nowrap; font-size: 0.9375rem; }

.region-detail + .region-detail { margin-top: 56px; }

.region-detail {
  display: grid;
  gap: 16px 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .region-detail { grid-template-columns: 0.8fr 1.2fr; }
}

.region-detail .towns { margin-top: 10px; color: var(--muted); font-size: var(--step--1); }
.region-detail__body > * + * { margin-top: 14px; }

.town-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.town-list li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--step--1);
  background: var(--paper);
}


/* === FAQ === */

.faq-layout {
  display: grid;
  gap: 32px;
}

@media (min-width: 1024px) {
  .faq-layout { grid-template-columns: 0.75fr 1.5fr; gap: 64px; }
  .faq-layout__head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}

.faq-layout__head h2 { max-width: 14ch; }
.faq-layout__head p { margin-top: 16px; color: var(--muted); }

.faq-toc {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.faq-toc a { font-weight: 500; }

.faq-group + .faq-group { margin-top: 48px; }
.faq-group > h2 { font-size: var(--step-2); margin-bottom: 8px; }

.faq {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq[open] summary::after { transform: translateY(3px) rotate(-135deg); }

.faq__answer {
  padding-bottom: 24px;
  color: var(--muted);
  max-width: 68ch;
}

.faq__answer > * + * { margin-top: 12px; }
.faq__answer a { color: var(--ink); font-weight: 500; }


/* === QUOTE FORM === */

.quote-card {
  width: 100%;
  padding: 24px;
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

@media (min-width: 720px) {
  .quote-card { padding: 32px; }
}

.quote-card__head h2 { font-size: var(--step-2); }
.quote-card__head p { margin-top: 6px; font-size: var(--step--1); color: var(--muted); }

.quote-progress {
  display: none;
  margin-top: 20px;
}

.quote--js .quote-progress { display: block; }

.quote-progress__label {
  display: flex;
  justify-content: space-between;
  font-size: var(--step--1);
  color: var(--muted);
}

.quote-progress__bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.quote-progress__bar span {
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  transition: background-color 0.2s ease;
}

.quote-progress__bar span.is-done { background: var(--cyan); }

.quote-step {
  margin: 20px 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.quote-step > legend {
  padding: 0;
  margin-bottom: 14px;
  font-size: var(--step-1);
  font-weight: 500;
}

.quote-q {
  min-width: 0;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}

.quote-q:first-of-type { margin-top: 0; }
.field-grid + .quote-q { margin-top: 18px; }

.quote-q__label {
  padding: 0;
  margin-bottom: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.quote-blend {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--cyan-wash);
  font-size: 0.9375rem;
}

/* Project tiles (checkboxes) */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice__face {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.choice__face img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 3px;
}

.choice:hover .choice__face { border-color: var(--muted); }

.choice input:checked + .choice__face {
  border-color: var(--charcoal);
  background: var(--cyan-wash);
  box-shadow: inset 0 0 0 1px var(--charcoal);
}

.choice input:focus-visible + .choice__face {
  outline: 3px solid var(--cyan-ink);
  outline-offset: 2px;
}

/* Pill options (radios) */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill { position: relative; cursor: pointer; }

.pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pill span {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9063rem;
  font-weight: 500;
  line-height: 1.2;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.pill:hover span { border-color: var(--muted); }

.pill input:checked + span {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: var(--on-dark);
}

.pill input:focus-visible + span {
  outline: 3px solid var(--cyan-ink);
  outline-offset: 2px;
}

/* Text fields */
.field-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 560px) {
  .field-grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.field label small { font-weight: 400; color: var(--muted); }

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid #b9b8b3;
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.4 var(--font);
}

.field textarea { min-height: 96px; resize: vertical; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--charcoal);
  box-shadow: 0 0 0 3px var(--cyan-ink);
}

.field.has-error input,
.field.has-error textarea { border-color: var(--error); }

.field__error {
  display: none;
  margin-top: 6px;
  font-size: var(--step--1);
  color: var(--error);
}

.field.has-error .field__error { display: block; }

.quote-nav {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.quote-nav .btn { flex: 1; }
.quote-nav .btn--outline { flex: 0 0 auto; color: var(--ink); }

.quote-nav [data-step-back],
.quote-nav [data-step-next] { display: none; }

.quote--js .quote-nav [data-step-back],
.quote--js .quote-nav [data-step-next] { display: inline-flex; }

.quote-status {
  margin-top: 14px;
  font-size: var(--step--1);
  color: var(--error);
}

.quote-status:empty { display: none; }

.quote-fine {
  margin-top: 16px;
  font-size: var(--step--1);
  color: var(--muted);
}

.quote-fine a { color: var(--ink); font-weight: 500; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Quote section on inner pages: form + aside */
.quote-section {
  display: grid;
  gap: 40px;
}

@media (min-width: 1024px) {
  .quote-section { grid-template-columns: 1fr 520px; gap: 72px; align-items: start; }
}

.quote-section__aside > * + * { margin-top: 20px; }

.contact-lines {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.contact-lines li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-lines .icon { margin-top: 0.2em; color: var(--cyan-ink); }
.section--dark .contact-lines .icon { color: var(--cyan); }
.contact-lines a { font-weight: 500; }
.contact-lines small { display: block; color: var(--muted); font-size: var(--step--1); }
.site-footer .contact-lines small,
.section--dark .contact-lines small { color: var(--on-dark-muted); }


/* === CTA BAND === */

.cta-band {
  position: relative;
  color: var(--on-dark);
  background: var(--charcoal);
  isolation: isolate;
  overflow: hidden;
}

.cta-band__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }

.cta-band__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(48, 45, 42, 0.94) 0%, rgba(48, 45, 42, 0.8) 50%, rgba(48, 45, 42, 0.45) 100%);
}

.cta-band__inner {
  padding-block: clamp(64px, 9vw, 120px);
  max-width: 720px;
}

.cta-band p { margin-top: 18px; font-size: var(--step-1); color: rgba(255, 255, 255, 0.86); }
.cta-band .btn--outline { color: var(--on-dark); }


/* === FOOTER === */

.site-footer {
  background: var(--charcoal-deep);
  color: var(--on-dark-muted);
  font-size: 0.9688rem;
}

.footer-grid {
  display: grid;
  gap: 40px;
  padding-block: 64px 48px;
}

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr; gap: 40px; }
}

.footer-brand img { width: 180px; }
.footer-brand p { margin-top: 18px; max-width: 34ch; }

.footer-col h2 {
  margin-bottom: 14px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--on-dark);
  letter-spacing: 0;
}

.footer-col ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 4px; }

.footer-contact a { color: var(--on-dark); font-weight: 500; }

.socials {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.socials a {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--on-dark);
}

.socials a:hover { background: rgba(255, 255, 255, 0.08); text-decoration: none; }
.socials .icon { width: 18px; height: 18px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-block: 20px 28px;
  border-top: 1px solid var(--line-dark);
  font-size: var(--step--1);
}

/* Fixed call / quote bar on phones */
.call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(48, 45, 42, 0.08);
}

.call-bar .btn { min-height: 48px; }

body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

@media (min-width: 720px) {
  .call-bar { display: none; }
  body { padding-bottom: 0; }
}


/* === PROSE === */

.prose { max-width: 68ch; }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 48px; font-size: var(--step-3); }
.prose h3 { margin-top: 32px; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 8px; }
.prose a { text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.callout {
  padding: 24px 28px;
  border-left: 4px solid var(--cyan);
  background: var(--granite);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.callout h2 { font-size: var(--step-2); margin-bottom: 10px; }
.callout p + p { margin-top: 10px; }
.callout a { font-weight: 500; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 4px; }


/* === UTILITIES === */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Windows high contrast: show selected states with an outline, since
   backgrounds and shadows are dropped */
@media (forced-colors: active) {
  .choice input:checked + .choice__face,
  .pill input:checked + span,
  .pill-btn[aria-pressed="true"] {
    outline: 3px solid Highlight;
    outline-offset: 1px;
  }

  .swatch[aria-pressed="true"] img { outline: 3px solid Highlight; outline-offset: 3px; }
  .quote-progress__bar span.is-done { background: Highlight; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
