/* Diamond Valley Carpets. Design notes in DESIGN.md. */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../fonts/newsreader.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 300 700; font-display: swap; src: url(../fonts/newsreader-italic.woff2) format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/schibsted-grotesk.woff2) format("woff2"); }

:root {
  --wool: #F5F0E7;
  --linen: #EBE3D5;
  --paper: #FFFDF9;
  --ink: #22201F;
  --ink-2: #4E4A47;
  --line: #D6CCBA;
  --bush: #2B2A29;
  --bush-2: #1F1E1D;
  --clay: #BA3D2B;
  --clay-deep: #9A3122;
  --sage: #BAB6B0;
  --on-dark: #F3EEE4;
  --on-dark-2: #CFCAC3;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --wrap: 1320px;
  --section: clamp(64px, 9vw, 136px);
  --radius: 4px;
  --shadow: 0 10px 30px -12px rgb(34 32 31 / .28);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--wool);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 18px; } }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--clay); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--clay-deep); }
::selection { background: var(--clay); color: var(--paper); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 2px; }
html { scrollbar-color: var(--line) var(--wool); }
button, input, select, textarea { font: inherit; color: inherit; }
.tabular { font-variant-numeric: tabular-nums; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 450;
  line-height: 1.08;
  letter-spacing: -.018em;
  margin: 0 0 .5em;
  text-wrap: balance;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 6rem); letter-spacing: -.03em; line-height: 1; }
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.6rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.35rem, 1.15rem + .7vw, 1.8rem); line-height: 1.15; }
h1 em, h2 em { font-style: italic; font-weight: 400; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lede { font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 100; border-radius: var(--radius); }
.skip:focus { top: 12px; }
.skip:hover { color: var(--paper); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.band-linen { background: var(--linen); }
.band-dark { background: var(--bush); color: var(--on-dark); }
.band-dark .lede, .band-dark p { color: var(--on-dark-2); }
.band-dark a:not(.btn) { color: var(--on-dark); }
.band-dark ::selection { background: var(--on-dark); color: var(--bush); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 1.4em;
  border: 1.5px solid transparent; border-radius: var(--radius);
  font: 600 1rem/1 var(--sans); letter-spacing: .005em; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  touch-action: manipulation;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-clay { background: var(--clay); color: var(--paper); }
.btn-clay:hover { background: var(--clay-deep); color: var(--paper); }
.btn-line { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.band-dark .btn-line, .hero .btn-line { color: var(--on-dark); }
.band-dark .btn-line:hover, .hero .btn-line:hover { background: var(--on-dark); color: var(--bush); border-color: var(--on-dark); }
.btn[disabled] { opacity: .5; cursor: progress; }
.text-link { font-weight: 600; text-decoration: none; display: inline-flex; gap: .4em; align-items: center; }
.text-link::after { content: ""; width: .9em; height: .9em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform .2s var(--ease); }
.text-link:hover::after { transform: translateX(3px); }

/* ---------- Utility bar + header ---------- */
.utility { background: var(--bush-2); color: var(--on-dark-2); font-size: .85rem; }
.utility .wrap { display: flex; gap: 24px; align-items: center; justify-content: space-between; min-height: 38px; }
.utility a { color: var(--on-dark); text-decoration: none; }
.utility a:hover { text-decoration: underline; color: var(--on-dark); }
.utility .u-left, .utility .u-right { display: flex; gap: 20px; align-items: center; }
.stars { display: inline-flex; gap: 1px; color: #E3B04B; vertical-align: -2px; }
.stars svg { width: 13px; height: 13px; }
@media (max-width: 900px) { .utility .u-right span.u-hide { display: none; } }
@media (max-width: 760px) { .utility .u-hide { display: none; } .utility .wrap { justify-content: center; } }

.site-header { position: sticky; top: 0; z-index: 50; background: rgb(245 240 231 / .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgb(34 32 31 / .35); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 40px; height: 43px; flex: none; }
.f-logo { display: block; width: 132px; height: auto; }
.brand-name { font-family: var(--serif); font-size: 1.32rem; line-height: 1; letter-spacing: -.01em; font-weight: 500; }
.brand-name small { display: block; font: 500 .7rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-top: 4px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav > a, .nav > .has-menu > button {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border: 0; background: none; cursor: pointer;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .97rem; border-radius: var(--radius);
}
.nav > a:hover, .nav > .has-menu > button:hover, .nav > a[aria-current="page"] { color: var(--clay); }
.nav > a[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1.5px; }
.has-menu { position: relative; }
.has-menu button svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.has-menu[data-open="true"] button svg { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-38%); width: min(760px, 86vw);
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow);
  padding: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  opacity: 0; visibility: hidden; translate: 0 -6px; transition: opacity .18s var(--ease), translate .18s var(--ease), visibility .18s;
}
.has-menu[data-open="true"] .mega { opacity: 1; visibility: visible; translate: 0 0; }
.mega a { display: block; text-decoration: none; color: var(--ink); padding: 8px; border-radius: 4px; }
.mega a:hover { background: var(--wool); }
.mega img { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: 2px; margin-bottom: 8px; }
.mega strong { display: block; font-weight: 600; font-size: .95rem; }
.mega span { display: block; font-size: .8rem; color: var(--ink-2); line-height: 1.35; }
.header-cta { display: flex; gap: 10px; align-items: center; flex: none; }
.header-phone { font-weight: 600; text-decoration: none; color: var(--ink); white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.header-phone svg { width: 18px; height: 18px; color: var(--clay); }
.header-cta .btn { min-height: 46px; }
.menu-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1180px) { .header-phone span { display: none; } }
@media (max-width: 1020px) {
  :root { --header-h: 66px; }
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .brand-name { font-size: 1.18rem; }
}

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 80; display: none; }
.drawer[data-open="true"] { display: block; }
.drawer-scrim { position: absolute; inset: 0; background: rgb(31 30 29 / .5); animation: fade .2s var(--ease); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); background: var(--wool); padding: 18px var(--gutter) 32px; overflow-y: auto; animation: slide .28s var(--ease); display: flex; flex-direction: column; gap: 18px; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-close { width: 48px; height: 48px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.drawer-close svg { width: 22px; height: 22px; }
.drawer nav { display: grid; }
.drawer nav a { padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.35rem; }
.drawer .drawer-floors { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.drawer .drawer-floors a { font-family: var(--sans); font-size: 1rem; padding: 11px 0; }
.drawer h2 { font: 600 .75rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin: 10px 0 0; }
.drawer .btn { width: 100%; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }

/* Mobile action bar */
.action-bar { display: none; }
@media (max-width: 1020px) {
  .action-bar {
    display: grid; grid-template-columns: 1fr 1.25fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgb(34 32 31 / .4);
    padding: 8px max(10px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); gap: 8px;
    transition: transform .3s var(--ease);
  }
  .action-bar.hidden { transform: translateY(110%); }
  .action-bar a { min-height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; font-weight: 600; font-size: .8rem; color: var(--ink); border-radius: var(--radius); }
  .action-bar a svg { width: 20px; height: 20px; }
  .action-bar a.primary { background: var(--clay); color: var(--paper); flex-direction: row; font-size: .95rem; gap: 8px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--on-dark); min-height: min(92vh, 980px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; background: var(--bush); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 60%); animation: settle 2.2s var(--ease) both; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(24 23 22 / .82) 0%, rgb(24 23 22 / .55) 38%, rgb(24 23 22 / 0) 70%), linear-gradient(0deg, rgb(24 23 22 / .7) 0%, rgb(24 23 22 / 0) 45%); }
.hero .wrap { padding-top: 120px; padding-bottom: clamp(40px, 7vw, 96px); }
.hero h1 { max-width: 13ch; color: var(--paper); animation: rise 1.1s .15s var(--ease) both; }
.hero .lede { color: #E4E2D9; max-width: 40ch; animation: rise 1.1s .3s var(--ease) both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; animation: rise 1.1s .42s var(--ease) both; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgb(243 238 228 / .25); font-size: .95rem; color: #E4E2D9; max-width: 760px; animation: rise 1.1s .52s var(--ease) both; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof svg.tick { width: 16px; height: 16px; color: var(--sage); }
.hero-proof strong { color: var(--paper); font-weight: 600; }
@keyframes settle { from { transform: scale(1.06); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } }
@media (max-width: 700px) {
  .hero { min-height: 0; align-items: stretch; flex-direction: column; }
  .hero-media { position: relative; inset: auto; height: 46vh; min-height: 280px; }
  .hero::before { display: none; }
  .hero .wrap { padding-top: 28px; background: var(--bush); }
  .hero h1 { max-width: none; }
}

/* ---------- Section heads ---------- */
.head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.head h2 { margin: 0; max-width: 16ch; }
.head p { margin: 0; color: var(--ink-2); max-width: 46ch; }
@media (max-width: 800px) { .head { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Floor tiles (sample board) ---------- */
.floors { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(14px, 1.6vw, 28px); }
@media (min-width: 600px) { .floors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .floors { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.floor { position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 2px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.floor:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.floor-img { aspect-ratio: 4/3.2; overflow: hidden; background: var(--linen); }
.floor-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.floor:hover .floor-img img { transform: scale(1.04); }
.floor-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.floor h3 { margin: 0; font-size: 1.5rem; }
.floor .go { margin-top: auto; color: var(--clay); }

/* Sample label: the signature component */
.label { font-size: .86rem; border: 1px solid var(--ink); border-radius: 2px; background: var(--paper); }
.label dl { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.label dt, .label dd { margin: 0; padding: 6px 10px; border-top: 1px solid var(--line); line-height: 1.35; }
.label dt { font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; color: var(--ink-2); padding-top: 7px; border-right: 1px solid var(--line); white-space: nowrap; }
.label dl > :nth-child(-n+2) { border-top: 0; }
.label-head { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; background: var(--ink); color: var(--paper); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; }
.label-head span:last-child { font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: 0; font-size: .85rem; font-weight: 400; }

/* ---------- Floor finder ---------- */
.finder { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .finder { grid-template-columns: minmax(0, 1fr); } }
.finder fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.finder legend { font: 600 .78rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border: 1.5px solid rgb(243 238 228 / .35); border-radius: 999px; color: var(--on-dark); font-weight: 500; transition: all .18s var(--ease); cursor: pointer; }
.chip:hover span { border-color: var(--on-dark); }
.chip input:checked + span { background: var(--on-dark); color: var(--bush); border-color: var(--on-dark); }
.chip input:focus-visible + span { outline: 2px solid var(--sage); outline-offset: 3px; }
.finder-out { background: var(--paper); color: var(--ink); border-radius: 2px; padding: clamp(20px, 3vw, 34px); min-height: 100%; }
.finder-out h3 { margin-bottom: 6px; }
.finder-out .note { color: var(--ink-2); font-size: .95rem; margin-bottom: 18px; }
.matches { display: grid; gap: 10px; list-style: none; margin: 0 0 20px; padding: 0; }
.match { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 2px; text-decoration: none; color: var(--ink); transition: border-color .2s; }
.match:hover { border-color: var(--ink); color: var(--ink); }
.match img { width: 72px; height: 56px; object-fit: cover; border-radius: 2px; }
.match strong { display: block; font-size: 1.05rem; }
.match small { color: var(--ink-2); font-size: .86rem; line-height: 1.35; display: block; }
.match .fit { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--clay); white-space: nowrap; }
.match.dim { opacity: .55; }
.match.dim .fit { color: var(--ink-2); }

/* ---------- Split / showroom ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(80vh, 820px); }
.split-media { position: relative; min-height: 360px; }
.split-media img { position: sticky; top: var(--header-h); display: block; width: 100%; height: calc(100svh - var(--header-h)); max-height: 100%; min-height: 360px; object-fit: cover; }
/* Capped to the viewport so a landscape photo is never stretched over a 1,400px-tall column (18 Nov) */
.split-body { padding: var(--section) var(--gutter); display: flex; flex-direction: column; justify-content: center; max-width: 720px; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } .split-media { min-height: 0; aspect-ratio: 4/3; } .split-media img { position: absolute; inset: 0; height: 100%; min-height: 0; } }
.facts { list-style: none; padding: 0; margin: 26px 0 32px; display: grid; gap: 0; }
.facts li { display: grid; grid-template-columns: 9rem 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.band-dark .facts li { border-color: rgb(243 238 228 / .18); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.band-dark .facts li:last-child { border-color: rgb(243 238 228 / .18); }
.facts b { font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding-top: 3px; }
.band-dark .facts b { color: var(--on-dark-2); }
@media (max-width: 480px) { .facts li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--ink); }
.steps li { padding: 26px 24px 8px 0; position: relative; }
.steps li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--wool); border: 1.5px solid var(--ink); }
.steps li:first-child::before { background: var(--clay); border-color: var(--clay); }
.steps h3 { font-size: 1.45rem; margin-bottom: 8px; }
.steps p { color: var(--ink-2); margin: 0; font-size: .98rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 0 24px; } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 1.5px solid var(--ink); margin-left: 6px; } .steps li { padding: 0 0 26px 26px; } .steps li::before { top: 6px; left: -7px; } }

/* ---------- Reviews ---------- */
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 40px; }
.rating-score { font-family: var(--serif); font-size: clamp(4rem, 3rem + 4vw, 7.5rem); line-height: .85; letter-spacing: -.04em; }
.rating .stars svg { width: 26px; height: 26px; }
.rating p { margin: 6px 0 0; color: var(--ink-2); }
.reviews-slot { margin-top: 36px; border: 1px dashed var(--line); border-radius: 2px; padding: 28px; color: var(--ink-2); font-size: .95rem; }

/* ---------- Insights cards ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(20px, 2vw, 32px); }

.post { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); }
.post:hover { color: var(--ink); }
.post-img { aspect-ratio: 3/2; overflow: hidden; background: var(--linen); border-radius: 2px; }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post:hover .post-img img { transform: scale(1.03); }
.post .cat { font-size: .75rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); }
.post h3 { margin: 0; font-size: 1.45rem; }
.post:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.post p { color: var(--ink-2); margin: 0; font-size: .97rem; }
.post .meta { font-size: .82rem; color: var(--ink-2); }

/* ---------- Areas ---------- */
.areas { columns: 4 12rem; column-gap: 32px; list-style: none; padding: 0; margin: 0; }
.areas li { padding: 9px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }

/* ---------- CTA band + forms ---------- */
.cta-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
@media (max-width: 900px) { .cta-band { grid-template-columns: minmax(0, 1fr); } }
.form { background: var(--paper); color: var(--ink); padding: clamp(22px, 3vw, 40px); border-radius: 2px; border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.field label, .field .flabel { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field label small, .field .flabel small { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--wool);
  font-size: 16px; transition: border-color .15s, background-color .15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #BDB09A; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--paper); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.field .err { color: #A3241C; font-size: .86rem; margin-top: 6px; display: none; }
.field [aria-invalid="true"] ~ .err { display: block; }
.form .chips .chip span { border-color: var(--line); color: var(--ink); min-height: 44px; padding: 0 15px; font-size: .95rem; background: var(--wool); }
.form .chips .chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.form .chips .chip input:focus-visible + span { outline-color: var(--clay); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 22px; }
.form-foot .btn { flex: 1 1 220px; }
.form-foot p { margin: 0; font-size: .86rem; color: var(--ink-2); flex: 1 1 200px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); display: none; font-size: .95rem; }
.form-status[data-state="error"] { display: block; background: #F8E3DF; color: #7A1E14; }
.form-status[data-state="ok"] { display: block; background: #E3EBDF; color: #22401F; }
.hp { position: absolute; left: -9999px; }
.next-steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; counter-reset: n; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.next-steps li::before { content: counter(n); width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-weight: 600; font-size: .85rem; }

/* ---------- Product page ---------- */
.p-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); min-height: min(70vh, 720px); background: var(--bush); color: var(--on-dark); }
.p-hero-media { position: relative; overflow: hidden; }
.p-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: settle 2.2s var(--ease) both; }
.p-hero-media .label { position: absolute; left: var(--gutter); bottom: clamp(20px, 3vw, 40px); width: min(340px, calc(100% - 2 * var(--gutter))); box-shadow: var(--shadow); color: var(--ink); }
.p-hero-body { padding: clamp(40px, 6vw, 96px) var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.p-hero-body h1 { font-size: clamp(2.5rem, 1.6rem + 3.2vw, 5rem); color: var(--paper); animation: rise 1.1s .1s var(--ease) both; }
.p-hero-body .lede { color: var(--on-dark-2); animation: rise 1.1s .25s var(--ease) both; }
.p-hero-body .hero-actions { animation-delay: .35s; }
.crumbs { font-size: .85rem; color: var(--on-dark-2); margin-bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--on-dark-2); }
@media (max-width: 960px) { .p-hero { grid-template-columns: minmax(0, 1fr); } .p-hero-media { min-height: 52vh; } }

.suits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0 40px; }
.suits li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.suits svg { width: 20px; height: 20px; color: var(--clay); margin-top: 3px; }

.prose { max-width: 60ch; }
.prose h2 { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--clay); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.8em; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; background: var(--linen); }
.prose strong { font-weight: 600; }
.prose blockquote { margin: 1.5em 0; padding: 0 0 0 1.2em; border-left: 1px solid var(--clay); font-family: var(--serif); font-size: 1.3rem; }

.p-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(40px, 6vw, 110px); align-items: start; }
.p-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
@media (max-width: 1020px) { .p-layout { grid-template-columns: minmax(0, 1fr); } .p-aside { position: static; } }
.p-section + .p-section { margin-top: clamp(48px, 6vw, 80px); }
.p-section > h2 { max-width: 20ch; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--ink); border-radius: 2px; background: var(--paper); }
.compare > div { padding: 22px 24px; }
.compare > div + div { border-left: 1px solid var(--line); }
.compare h3 { font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; color: var(--ink-2); }
.compare ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.compare li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: .97rem; }
.compare svg { width: 18px; height: 18px; margin-top: 3px; }
.compare .good svg { color: #3F6B3A; }
.compare .watch svg { color: var(--clay); }
@media (max-width: 640px) { .compare { grid-template-columns: minmax(0, 1fr); } .compare > div + div { border-left: 0; border-top: 1px solid var(--line); } }

.ranges-intro { max-width: 62ch; color: var(--ink-2); margin: 0 0 28px; }
.makers { border-top: 1.5px solid var(--ink); }
.maker { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); align-items: start; gap: 16px 40px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.maker-head h3 { font-family: var(--serif); font-size: clamp(1.2rem, 1.1rem + .4vw, 1.45rem); line-height: 1.2; margin: 0 0 6px; }
.maker-head p { margin: 0 0 10px; font-size: .94rem; color: var(--ink-2); }
.maker-head a { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--ink); text-underline-offset: 3px; }
.maker-head a svg { width: 15px; height: 15px; }
.range-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.range-list li { padding: 6px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 2px; font-size: .92rem; line-height: 1.3; }
@media (max-width: 760px) { .maker { grid-template-columns: minmax(0, 1fr); } }

/* Quick book: short form straight under the hero on paid-traffic pages */
.quick-book { background: var(--paper); border-bottom: 1px solid var(--line); padding: clamp(28px, 4vw, 44px) 0; }
.quick-book-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px 48px; align-items: end; }
@media (min-width: 1020px) { .quick-book-in { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); } }
.quick-book h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); line-height: 1.15; margin: 0 0 6px; }
.quick-book-copy p { margin: 0; color: var(--ink-2); }
.quick-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
@media (min-width: 640px) { .quick-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); } .quick-fields .btn { grid-column: 1 / -1; } }
@media (min-width: 1200px) { .quick-fields { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; } .quick-fields .btn { grid-column: auto; margin-top: 27px; } }
.quick-fields .btn { min-height: 48px; }
.quick-note { margin: 10px 0 0; font-size: .9rem; color: var(--ink-2); }
/* Inline CTA between content sections */
.inline-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 22px 24px; background: var(--linen); border-left: 3px solid var(--ink); border-radius: 2px; }
.inline-cta p { margin: 0; max-width: 46ch; font-family: var(--serif); font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); line-height: 1.35; }
.inline-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-family: var(--serif); font-size: clamp(1.15rem, 1.05rem + .4vw, 1.4rem); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--ink), var(--ink)) center/100% 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center/1.5px 100% no-repeat; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--clay); }
.faq .a { padding: 0 0 22px; color: var(--ink-2); max-width: 68ch; }

.aside-card { background: var(--paper); border: 1px solid var(--line); border-radius: 2px; padding: 24px; }
.aside-card h3 { font-size: 1.45rem; }
.aside-card .btn { width: 100%; margin-top: 10px; }
.aside-card p { color: var(--ink-2); font-size: .95rem; }

/* ---------- Insights hub ---------- */
.ins-hero { padding: clamp(56px, 8vw, 120px) 0 clamp(36px, 4vw, 56px); }
.ins-hero h1 { max-width: 14ch; }
.search { position: relative; max-width: 720px; margin-top: 30px; }
.search input { width: 100%; min-height: 62px; padding: 0 20px 0 56px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--paper); font-size: 1.1rem; }
.search input:focus { outline: none; box-shadow: 0 0 0 4px rgb(186 61 43 / .18); }
.search > svg { position: absolute; left: 20px; top: 21px; width: 22px; height: 22px; color: var(--ink-2); pointer-events: none; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); padding: 6px; list-style: none; margin: 0; max-height: 60vh; overflow-y: auto; }
.suggest[hidden] { display: none; }
.suggest li a { display: block; padding: 12px 14px; border-radius: 4px; text-decoration: none; color: var(--ink); }
.suggest li[aria-selected="true"] a, .suggest li a:hover { background: var(--wool); }
.suggest strong { display: block; font-weight: 600; }
.suggest mark { background: rgb(186 61 43 / .16); color: inherit; border-radius: 2px; }
.suggest small { display: block; color: var(--ink-2); font-size: .85rem; margin-top: 2px; }
.suggest .kind { font-size: .7rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); }
.suggest .empty { padding: 14px; color: var(--ink-2); }
.searching-for { margin-top: 14px; font-size: .92rem; color: var(--ink-2); }
.searching-for button { border: 0; background: none; color: var(--clay); font-weight: 600; cursor: pointer; padding: 6px 4px; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.cats a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; background: var(--paper); }
.cats a:hover { border-color: var(--ink); color: var(--ink); }
.cats a span { color: var(--ink-2); font-size: .82rem; }
.group { padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--line); }
.group-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px 64px; margin-bottom: 32px; align-items: end; }
.group-head h2 { margin: 0; font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.8rem); }
.group-head p { margin: 0; color: var(--ink-2); max-width: 52ch; }
@media (max-width: 800px) { .group-head { grid-template-columns: minmax(0, 1fr); } }
.no-results { padding: 40px 0; color: var(--ink-2); }

/* Article */
.a-hero { padding: clamp(48px, 7vw, 104px) 0 clamp(28px, 3vw, 44px); }
.a-hero .crumbs, .a-hero .crumbs a { color: var(--ink-2); }
.a-hero h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 4.6rem); max-width: 18ch; }
.a-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-2); font-size: .92rem; margin-top: 18px; }
.a-cover { width: 100%; aspect-ratio: 21/9; object-fit: cover; }
@media (max-width: 700px) { .a-cover { aspect-ratio: 4/3; } }
.a-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr) 300px; gap: clamp(32px, 4vw, 72px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: .9rem; }
.toc b { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; color: var(--ink-2); text-decoration: none; margin-left: -1px; border-left: 1.5px solid transparent; line-height: 1.35; }
.toc a:hover, .toc a.on { color: var(--ink); border-left-color: var(--clay); }
@media (max-width: 1200px) { .a-layout { grid-template-columns: minmax(0, 1fr) 300px; } .toc { display: none; } }
@media (max-width: 900px) { .a-layout { grid-template-columns: minmax(0, 1fr); } }
.prose .confirm { background: #FBEBC8; padding: 0 4px; border-radius: 2px; font-size: .9em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bush-2); color: var(--on-dark-2); padding: clamp(56px, 7vw, 96px) 0 32px; font-size: .95rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--paper); }
.f-top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); gap: 40px 32px; padding-bottom: 48px; border-bottom: 1px solid rgb(243 238 228 / .14); }
.f-brand .brand { color: var(--paper); }
.f-brand .brand-name small { color: var(--on-dark-2); }
.f-brand p { margin: 20px 0 0; max-width: 32ch; }
.f-col h2 { font: 600 .74rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sage); margin: 6px 0 16px; }
.f-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.f-col li a { display: inline-block; padding: 5px 0; }
.f-col address { font-style: normal; line-height: 1.7; }
@media (max-width: 1100px) { .f-top { grid-template-columns: repeat(4, minmax(0, 1fr)); } .f-brand { grid-column: 1 / -1; } }
@media (max-width: 720px) { .f-top { grid-template-columns: 1fr 1fr; gap: 36px 24px; } }
.f-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 26px; font-size: .84rem; }
.f-legal p { margin: 0; }
.f-legal nav { display: flex; gap: 20px; }

/* ---------- Misc ---------- */
.center { text-align: center; }
.mt { margin-top: 32px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.preview-note { background: #FBEBC8; color: #5A3F07; font-size: .85rem; text-align: center; padding: 8px var(--gutter); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print { .site-header, .utility, .action-bar, .site-footer, .drawer { display: none !important; } body { padding: 0; } }
.img-missing { width: 100%; height: 100%; min-height: 200px; background: linear-gradient(135deg, var(--linen), #DCD2C0); }
.band-dark .finder-out a.match, .band-dark .finder-out a.match:hover { color: var(--ink); }
.band-dark .form a:not(.btn) { color: var(--clay); }
.band-dark .form a:not(.btn):hover { color: var(--clay-deep); }
mark.confirm { background: #F6E3A6; color: #4A3606; padding: 1px 5px; border-radius: 2px; font-size: .9em; }
.facts.stack li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.facts.stack b { padding-top: 0; }
.facts.stack span { color: var(--ink-2); }
.p-hero .btn-line { color: var(--on-dark); }
.p-hero .btn-line:hover { background: var(--on-dark); color: var(--bush); border-color: var(--on-dark); }
@media (max-width: 960px) {
  .p-hero-body { order: -1; padding-top: 28px; padding-bottom: 32px; }
  .p-hero-media { min-height: 0; height: 44vh; min-height: 300px; }
}
.f-col address a { overflow-wrap: anywhere; }
.hero h1 { font-size: clamp(2.3rem, 1.1rem + 3vw, 4.5rem); max-width: 17ch; }
.hero .lede { max-width: 48ch; }
.hero .wrap { padding-top: clamp(72px, 9vh, 120px); }
.hero { min-height: min(calc(100vh - 150px), 960px); }
@media (max-width: 700px) {
  .hero { min-height: 0; }
  .hero-media { height: 30vh; min-height: 210px; }
  .hero .wrap { padding-top: 24px; padding-bottom: 36px; }
  .hero-proof { margin-top: 26px; }
}
.facts a { overflow-wrap: anywhere; }

/* Large monitors: give content more room instead of a narrow column in a sea of wool */
@media (min-width: 1920px) { :root { --wrap: 1560px; } body { font-size: 19px; } }
@media (min-width: 2560px) { :root { --wrap: 1840px; } body { font-size: 20px; } .posts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Real job photo inside a product page */
.p-figure { margin-inline: 0; }
.p-figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius, 6px); display: block; }
.p-figure figcaption { margin-top: 10px; font-size: 0.9375rem; line-height: 1.4; color: var(--ink-2, inherit); }

/* Hero trust bar: Google rating + award, same pattern as Roof Repairs Sydney */
.trust-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.trust-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px; border: 1px solid rgb(243 238 228 / .28); border-radius: 999px; background: rgb(31 30 29 / .55); color: var(--on-dark-2); font-size: .9rem; line-height: 1.3; text-decoration: none; transition: border-color .15s ease-out, background-color .15s ease-out; }
.trust-chip:hover { border-color: rgb(243 238 228 / .6); background: rgb(31 30 29 / .75); }
.trust-chip:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 2px; }
.trust-chip strong { color: var(--paper); font-weight: 600; }
.trust-g { width: 20px; height: 20px; flex: none; }
.trust-stars { display: inline-flex; gap: 2px; flex: none; }
.trust-stars svg { width: 15px; height: 15px; }
.award-mark { width: 36px; height: 33px; flex: none; background: var(--on-dark); -webkit-mask: url(/media/qba-award-mark.png) center / contain no-repeat; mask: url(/media/qba-award-mark.png) center / contain no-repeat; }
.trust-chip { max-width: 100%; }
.trust-chip > span:last-of-type:not(.sr-only), .trust-chip > span:nth-last-child(2) { min-width: 0; }

/* Footer social link */
.f-social { margin: 20px 0 0; }
.f-social a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--on-dark); text-decoration: none; }
.f-social a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.fb-logo { width: 24px; height: 24px; flex: none; }
.f-credit strong { color: var(--paper); font-weight: 600; }
.f-legal nav { flex-wrap: wrap; }
/* Light variant for pages on a wool/paper background (quote page) */
.trust-bar--light .trust-chip { background: var(--paper); border-color: var(--line); color: var(--ink-2); }
.trust-bar--light .trust-chip:hover { background: var(--paper); border-color: var(--ink-2); }
.trust-bar--light .trust-chip strong { color: var(--ink); }
.trust-bar--light .trust-chip:focus-visible { outline-color: var(--ink); }
.trust-bar--light .award-mark { background: var(--ink); }

/* How a job runs: horizontal accordion (home). Stacks vertically on small screens. */
.hacc { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; height: clamp(360px, 28vw, 420px); }
.hacc-item { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; background: var(--linen); color: var(--ink); border-radius: var(--radius); overflow: hidden; transition: flex-grow .6s var(--ease), background-color .4s var(--ease), color .4s var(--ease); }
.hacc-item.is-open { flex-grow: 3.4; background: var(--bush); color: var(--on-dark); }
.hacc-tab { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 14px; padding: 26px 24px 18px; flex: 1 1 auto; }
.hacc-tab:focus-visible { outline: 2px solid var(--clay); outline-offset: -4px; }
.hacc-num { font: 500 .9rem/1 var(--sans); letter-spacing: .08em; color: var(--ink-2); }
.hacc-item.is-open .hacc-num { color: var(--sage); }
.hacc-title { font-family: var(--serif); font-size: clamp(1.35rem, 1.1rem + .8vw, 1.9rem); line-height: 1.1; letter-spacing: -.015em; }
.hacc-item:not(.is-open) .hacc-title { writing-mode: vertical-rl; transform: rotate(180deg); margin-top: auto; white-space: nowrap; }
.hacc-item.is-open .hacc-tab { flex: 0 0 auto; }
.hacc-panel { padding: 0 24px 28px; max-width: 46ch; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease, visibility 0s .3s; }
.hacc-item.is-open .hacc-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .45s .2s var(--ease), transform .45s .2s var(--ease), visibility 0s; margin-top: auto; }
.hacc-panel p { margin: 0; color: var(--on-dark-2); font-size: 1.02rem; }
.hacc-item:not(.is-open):hover { background: #E2D8C7; }
@media (max-width: 760px) {
  .hacc { flex-direction: column; height: auto; gap: 8px; }
  .hacc-item, .hacc-item.is-open { flex: none; }
  .hacc-item:not(.is-open) .hacc-title { writing-mode: horizontal-tb; transform: none; margin-top: 0; white-space: normal; }
  .hacc-tab { flex-direction: row; align-items: baseline; padding: 18px 20px; }
  .hacc-panel { display: none; padding: 0 20px 22px; }
  .hacc-item.is-open .hacc-panel { display: block; }
}
@media (prefers-reduced-motion: reduce) { .hacc-item, .hacc-panel { transition: none !important; } }
.hacc-item { position: relative; isolation: isolate; }
.hacc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transition: opacity .6s var(--ease); }
.hacc-item::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(24 23 22 / .9) 0%, rgb(24 23 22 / .55) 45%, rgb(24 23 22 / .35) 100%); opacity: 0; transition: opacity .6s var(--ease); }
.hacc-item.is-open .hacc-img, .hacc-item.is-open::after { opacity: 1; }
.hacc-item.is-open .hacc-num { color: var(--on-dark); }
.hacc-item.is-open .hacc-panel p { color: #ECE8E0; }
@media (max-width: 760px) { .hacc-img, .hacc-item::after { display: none; } }
.p-figure-pair .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p-figure-pair .pair img { aspect-ratio: 1 / 1; }

/* Placeholder text: darker than the browser default grey to pass 4.5:1 on wool and paper */
::placeholder { color: #67615C; opacity: 1; }

/* Range cards: link to each range's own page */
.range-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 14px; }
.range-cards-wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.range-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.range-card > a { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; }
.range-card:hover { border-color: var(--ink-2); box-shadow: var(--shadow); }
.range-card a:focus-visible { outline: 2px solid var(--clay); outline-offset: -2px; }
.range-lead { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--linen); }
.range-card .swatches { list-style: none; margin: 0; padding: 6px 12px 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.range-card .swatches img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 2px; background: var(--linen); }
.range-name { display: block; padding: 10px 12px 2px; font-family: var(--serif); font-size: 1.12rem; line-height: 1.25; }
.range-count { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px 12px; margin-top: auto; font-size: .84rem; color: var(--ink-2); }
.range-count svg { width: 14px; height: 14px; }
.range-card-plain { padding: 0 0 12px; }
.range-card-plain p { margin: 0; padding: 4px 12px 0; font-size: .84rem; color: var(--ink-2); font-style: italic; }
@media (min-width: 1100px) { .p-layout .range-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Range detail page */
.r-hero { padding: clamp(28px, 4vw, 56px) 0 clamp(36px, 5vw, 72px); background: var(--bush); color: var(--on-dark); }
.r-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.r-view { margin: 0; }
.r-view img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--bush-2); transition: opacity .25s; }
.r-view figcaption { margin-top: 12px; font-size: 1rem; color: var(--on-dark-2); }
.r-view figcaption strong { color: var(--paper); font-weight: 600; }
.r-copy .crumbs, .r-copy .crumbs a { color: var(--on-dark-2); }
.r-by { display: block; margin-top: .25em; font-size: max(1rem, .42em); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--on-dark-2); }
.r-copy h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4.4rem); color: var(--paper); margin: 18px 0 18px; }
.r-facts p { color: #E4E2D9; max-width: 52ch; margin: 0 0 12px; }
.r-count { color: var(--on-dark-2); font-size: .95rem; margin: 6px 0 0; }
.r-hero .btn-line { color: var(--on-dark); }
.r-hero .btn-line:hover { background: var(--on-dark); color: var(--bush); border-color: var(--on-dark); }
.colour-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 150px), 1fr)); gap: 14px; }
.colour { all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; border-radius: var(--radius); }
.colour img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 2px solid transparent; background: var(--linen); transition: border-color .2s, transform .2s var(--ease); }
.colour span { display: block; margin-top: 8px; font-size: .94rem; line-height: 1.3; }
.colour:hover img { transform: translateY(-2px); }
.colour[aria-pressed="true"] img { border-color: var(--ink); }
.colour[aria-pressed="true"] span { font-weight: 600; }
.colour:focus-visible img { outline: 2px solid var(--clay); outline-offset: 2px; }
.r-specs > * { max-width: 860px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0 12px; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 34%; font-weight: 600; color: var(--ink-2); }
.r-src { font-size: .88rem; color: var(--ink-2); }
@media (max-width: 860px) { .r-hero-in { grid-template-columns: minmax(0, 1fr); gap: 20px; } .r-copy { display: contents; } .r-copy .crumbs { order: -3; } .r-copy h1 { order: -2; margin: 0; } .r-view { order: -1; } .r-view img { aspect-ratio: 3 / 2; } .r-view figcaption { margin-top: 8px; } }
.range-more { margin-top: 12px; }
.range-more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1.5px solid var(--ink); border-radius: var(--radius); font-weight: 600; font-size: .94rem; }
.range-more > summary::-webkit-details-marker { display: none; }
.range-more > summary::after { content: "+"; font-size: 1.2rem; line-height: 1; }
.range-more[open] > summary { display: none; }
.range-more[open] > .range-cards { margin-top: 0; }
.range-more > summary:hover { background: var(--ink); color: var(--paper); }
.range-more > summary:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }

/* Areas we cover */
.loc-hero .hero-actions { margin-top: 26px; }
.area-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.area-list a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color .2s; }
.area-list a:hover { border-color: var(--ink-2); }
.area-list strong { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; }
.area-list span { font-size: .9rem; color: var(--ink-2); }
.loc-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.loc-photo { margin: 0; }
.loc-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.loc-photo figcaption { margin-top: 8px; font-size: .88rem; color: var(--ink-2); }
@media (max-width: 960px) { .loc-hero-in { grid-template-columns: minmax(0, 1fr); } }

/* About: team, before/after, recent jobs */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(24px, 3vw, 48px); }
.team-card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; align-items: start; }
.team-card figure { margin: 0; aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius); background: var(--linen); }
.team-card img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 30%); }
.team-card h3 { margin: 0 0 .2em; }
.team-role { color: var(--clay); font-weight: 600; margin: 0 0 .8em; }
@media (max-width: 560px) { .team-card { grid-template-columns: minmax(0, 1fr); } .team-card figure { aspect-ratio: 1/1; } }
.ba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.ba { margin: 0; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ba-pair > div { position: relative; aspect-ratio: 3/4; overflow: hidden; border-radius: var(--radius); }
.ba-pair img { width: 100%; height: 100%; object-fit: cover; }
.ba-pair span { position: absolute; left: 8px; top: 8px; background: var(--ink); color: var(--paper); font-size: .78rem; font-weight: 600; padding: 3px 8px; border-radius: var(--radius); }
.ba figcaption, .job-grid figcaption { font-size: .92rem; color: var(--ink-2); margin-top: 8px; }
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; margin-top: 16px; }
.job-grid figure { margin: 0; }
.job-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }

/* Home hero, light version from Kay's mock (17 Nov 2026) */
.hero-light { background: var(--wool); padding-top: clamp(28px, 4vw, 60px); }
.hero-light-head { max-width: var(--wrap); }
.hero-light .eyebrow { margin: 0 0 14px; font-size: .82rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.hero-light h1 { margin: 0; font-size: clamp(2.6rem, 1.6rem + 4.2vw, 5.4rem); line-height: 1.02; letter-spacing: -.02em; max-width: 14ch; }
.hero-light .lede { margin: 20px 0 0; max-width: 60ch; color: var(--ink-2); font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); }
.hero-light .hero-actions { margin-top: 28px; }
.hero-photo { margin: clamp(28px, 3.5vw, 48px) 0 0; aspect-ratio: 16 / 7; overflow: hidden; background: var(--linen); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 70%); }
@media (max-width: 700px) { .hero-photo { aspect-ratio: 4 / 3; } }
.hero-light-foot { padding-top: 22px; padding-bottom: clamp(32px, 5vw, 64px); }
.hero-caption { margin: 0 0 8px; font-family: var(--serif); font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); line-height: 1.3; max-width: 40ch; }
.hero-light-foot .trust-bar { margin-top: 22px; }

/* Why Choose list (Kay's wording) */
.why-choose h2 { margin: 0 0 28px; max-width: 22ch; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 22px 40px; }
.why-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--on-dark-2); line-height: 1.55; }
.why-list svg.tick { width: 20px; height: 20px; margin-top: 3px; color: var(--sage); }
.why-list strong { color: var(--on-dark); font-weight: 600; }

/* Showroom: Choose Your Carpet, Your Way */
.cyw { background: var(--linen); padding-bottom: var(--section); }
.cyw-photo { margin: 0; aspect-ratio: 16 / 6; overflow: hidden; }
.cyw-photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 60% 60%); }
@media (max-width: 700px) { .cyw-photo { aspect-ratio: 4 / 3; } }
.cyw-in { display: grid; gap: clamp(28px, 4vw, 56px); padding-top: clamp(36px, 5vw, 72px); }
@media (min-width: 960px) { .cyw-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } .cyw-steps { grid-column: 1; } .cyw-form { grid-column: 2; grid-row: 1 / span 2; align-self: start; } }
.cyw-copy h2 { margin: 0 0 16px; }
.cyw-copy p { max-width: 60ch; color: var(--ink-2); }
.cyw-copy p:first-of-type { font-family: var(--serif); font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem); color: var(--ink); }
.cyw-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.cyw-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.cyw-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 600; }
.cyw-steps h3 { margin: 6px 0 4px; font-size: 1.15rem; }
.cyw-steps p { margin: 0; color: var(--ink-2); }
.cyw-steps p + p { margin-top: 6px; }
.cyw-form .form { background: var(--paper); }

/* Article photo strip */
.a-gallery { margin: 28px 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.a-gallery img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; height: auto; }
@media (max-width: 560px) { .a-gallery { grid-template-columns: minmax(0, 1fr); } }
.team-card h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.6rem); line-height: 1.2; }
@media (max-width: 560px) { .team-card figure { aspect-ratio: 4 / 5; } }

/* Monthly specials (content/specials.json) */
.special-strip { background: var(--clay); color: var(--paper); }
.special-strip-in { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 14px; flex-wrap: wrap; }
.special-strip p { margin: 0; }
.special-strip .btn-clay { background: var(--paper); color: var(--ink); }
.special-strip .btn-clay:hover { background: var(--wool); color: var(--ink); }
.sp-tag { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; border: 1px solid currentColor; padding: 2px 8px; margin-right: 6px; }
.specials .eyebrow { margin: 0 0 14px; font-size: .82rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--clay-deep); }
.sp-h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4.4rem); margin: 0 0 clamp(24px, 4vw, 48px); }
.sp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .sp-grid { grid-template-columns: minmax(0, 1fr); } }
.sp-points { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; }
.sp-points li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-weight: 500; }
.sp-points .tick { width: 22px; height: 22px; color: var(--clay); }
.sp-now { font-family: var(--serif); font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); line-height: 1; color: var(--ink); }
.sp-now small { font-family: var(--sans); font-size: 1rem; margin-left: 6px; color: var(--ink-2); }
.sp-ex { font-weight: 600; font-size: 1.15rem; }
.sp-was { color: var(--ink-2); font-size: .95rem; }
.sp-summary { font-weight: 600; }
.sp-closing { font-family: var(--serif); font-size: 1.35rem; }
.sp-swatches { display: grid; gap: 32px; }
.sp-range h2 { font-family: var(--sans); font-size: .95rem; font-weight: 500; letter-spacing: .04em; color: var(--ink-2); margin: 0; }
.sp-range h2 strong { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 400; letter-spacing: 0; color: var(--ink); }
.sp-range-meta { margin: 4px 0 14px; font-size: .88rem; color: var(--ink-2); }
.sp-grid-sw { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.sp-grid-sw figcaption { margin-top: 6px; font-weight: 600; font-size: .95rem; }
.sp-swatches figure { margin: 0; }
.sp-swatches figure img { aspect-ratio: 3 / 2; border-radius: var(--radius); }
.sp-swatches img { width: 100%; height: auto; object-fit: cover; display: block; }
.sp-note { margin: -12px 0 0; font-size: .92rem; color: var(--ink-2); }
.sp-badge { position: absolute; z-index: 2; top: -34px; right: -18px; width: 132px; height: 132px; border-radius: 50%;
  background: var(--clay); color: var(--paper); display: grid; place-content: center; text-align: center; transform: rotate(-8deg);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18); outline: 2px dashed rgba(255, 255, 255, .55); outline-offset: -9px; }
.sp-badge-top, .sp-badge-foot { font-family: var(--sans); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; }
.sp-badge-foot { font-size: .58rem; letter-spacing: .08em; max-width: 86px; margin: 2px auto 0; line-height: 1.2; }
.sp-badge-num { font-family: var(--serif); font-size: 3.1rem; line-height: .95; }
.sp-badge-num small { font-size: 1.5rem; }
.sp-pill { display: inline-block; margin-left: 10px; padding: 3px 10px; border-radius: 999px; background: var(--clay); color: var(--paper); font-size: .7rem; letter-spacing: .12em; vertical-align: 1px; }
@media (max-width: 600px) { .sp-pill { display: table; margin: 8px 0 0; } }
@media (max-width: 900px) { .sp-swatches { order: -1; margin-top: 18px; } .sp-badge { width: 104px; height: 104px; top: -26px; right: -6px; } .sp-badge-num { font-size: 2.4rem; } .sp-badge-foot { font-size: .52rem; max-width: 70px; } }
@media (prefers-reduced-motion: no-preference) { .sp-badge { animation: sp-pop .5s var(--ease) both .2s; } }
@keyframes sp-pop { from { transform: rotate(-8deg) scale(.6); opacity: 0; } to { transform: rotate(-8deg) scale(1); opacity: 1; } }
.sp-price { margin: 28px 0 20px; display: grid; gap: 12px; }
.sp-price-row { display: grid; gap: 4px; padding: 18px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.sp-price-name { margin: 0 0 4px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-deep); }
.sp-price-foot { margin: 0; font-size: .9rem; color: var(--ink-2); }
.sp-range-price { margin: 6px 0 8px; font-weight: 600; }
.sp-range-price span { font-weight: 400; color: var(--ink-2); font-size: .92rem; }
.sp-specs { margin: 0 0 14px; padding-left: 18px; font-size: .88rem; color: var(--ink-2); display: grid; gap: 2px; }

/* Home hero: trust chips fill the right-hand space, sitting low beside the CTAs (Craig, 18 Nov) */
.hero-light-head { display: grid; gap: 24px clamp(32px, 5vw, 80px); }
@media (min-width: 1000px) {
  .hero-light-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .hero-light-proof .trust-bar { flex-direction: column; align-items: stretch; margin-top: 0; }
  .hero-light-proof .trust-chip { padding: 12px 20px; }
}
.hero-light-proof .trust-bar { margin-top: 0; }
.hero-proof-mobile .trust-bar { margin-top: 22px; }
@media (min-width: 1000px) { .hero-proof-mobile { display: none; } }
@media (max-width: 999px) { .hero-light-proof { display: none; } }

/* Long email addresses wrap instead of pushing the page sideways on phones (QA 18 Nov 2026). */
a[href^="mailto:"] { overflow-wrap: anywhere; }

/* Contrast fixes (QA 18 Nov 2026): red text on linen uses the deeper clay (5.9:1); dimmed room-picker
   options stay readable (WCAG AA) and show "not a fit" through a dashed border instead of fading. */
.band-linen a:not(.btn), .inline-cta a:not(.btn), .hacc-item a:not(.btn) { color: var(--clay-deep); }
.match.dim { opacity: 1; border-style: dashed; }
.match.dim strong, .match.dim small, .match.dim .fit { color: var(--ink-2); }
