/* ==========================================================================
   Designers Floors public site
   The approved Phase 2 design system (designers-floors/src/styles/global.css),
   ported unchanged, followed by the component styles Astro scoped per
   component, and the inner-page styles built from the same tokens.
   Tokens → fonts → base → layout → components → pages → utilities.
   Mobile-first. Breakpoints: 640 (sm), 900 (md), 1200 (lg).
   ========================================================================== */

/* ---------- Fonts (self-hosted, OFL-1.1; see /fonts/OFL-*.txt) ---------- */
@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3 Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(/fonts/source-sans-3-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3 Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(/fonts/source-sans-3-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  /* Palette (approved Phase 1 direction) */
  --charcoal: #23262b;
  --charcoal-2: #2f333a;
  --oak: #a6672a;
  --oak-deep: #8a5522;
  --oak-ink: #7e4c1b;
  --slate: #35505f;
  --sand: #f1eae0;
  --sand-2: #e7ddcf;
  --linen: #faf7f2;
  --card: #fffdfa;
  --line: #d9cfc1;
  --line-strong: #bfb3a3;
  --muted: #6b6259;
  --ok: #3f7d4e;
  --bad: #a63d3d;
  --white: #ffffff;

  /* Semantic */
  --bg: var(--linen);
  --bg-alt: var(--sand);
  --fg: var(--charcoal);
  --fg-muted: var(--muted);
  --accent: var(--oak);
  --accent-hover: var(--oak-deep);
  --link: var(--oak-ink);
  --focus: #d08a45;

  /* Type */
  --font-display: 'Bricolage Grotesque Variable', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Source Sans 3 Variable', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --text-xs: 0.8125rem; /* 13 */
  --text-sm: 0.9375rem; /* 15 */
  --text-md: 1.0625rem; /* 17 */
  --text-lg: 1.1875rem; /* 19 */
  --text-xl: 1.375rem;  /* 22 */
  --h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --h2: clamp(1.75rem, 1.45rem + 1.4vw, 2.5rem);
  --h1: clamp(2.25rem, 1.6rem + 3.4vw, 4rem);
  --leading: 1.55;

  /* Space (8px grid) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --section-y: var(--s-8);
  --gutter: 1.25rem;
  --container: 75rem; /* 1200 */
  --measure: 62ch;

  /* Shape */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-menu: 0 12px 32px rgba(35, 38, 43, 0.18);

  /* Header + sticky bar heights, used for scroll offsets */
  --header-h: 3.75rem;
  --stickybar-h: 3.5rem;
}
@media (min-width: 640px) {
  :root { --gutter: 2rem; }
}
@media (min-width: 900px) {
  :root { --section-y: var(--s-9); --header-h: 4.75rem; }
}
@media (min-width: 1200px) {
  :root { --gutter: 2.5rem; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* Room for the mobile sticky bar so nothing hides behind it. */
@media (max-width: 899px) {
  body { padding-bottom: calc(var(--stickybar-h) + env(safe-area-inset-bottom, 0px)); }
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
  color: var(--fg);
}
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); font-weight: 650; }
h4 { font-size: var(--text-lg); font-weight: 650; }
p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }
strong { font-weight: 650; }
ul, ol { margin: 0 0 var(--s-4); padding-left: 1.25rem; }
li { margin: 0.3em 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--sand-2); }
button { font: inherit; }
[hidden] { display: none !important; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--charcoal); color: var(--linen); }
.section--dark h2, .section--dark h3 { color: var(--linen); }
.section--dark a { color: #e6a567; }
.section--dark .btn { color: var(--btn-fg); }
.section--dark .btn:hover { color: var(--white); }
.section--dark .btn--on-dark:hover { color: var(--charcoal); }
.section--tight { padding-block: var(--s-6); }

.section-head { margin-bottom: var(--s-6); max-width: var(--measure); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: var(--s-3); color: var(--fg-muted); font-size: var(--text-lg); }
.section--dark .section-head p { color: #cfc6ba; }
@media (min-width: 900px) { .section-head { margin-bottom: var(--s-7); } }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oak-ink);
  margin-bottom: var(--s-3);
}
.section--dark .eyebrow, .on-photo .eyebrow { color: #e6a567; }

.grid { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .grid { gap: var(--s-5); } }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 640px) and (max-width: 899px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--white);
  --btn-border: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border-radius: 6px;
  border: 2px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn:hover { --btn-bg: var(--accent-hover); --btn-border: var(--accent-hover); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 1.15em; height: 1.15em; flex: none; }
.btn--secondary {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  --btn-border: var(--fg);
}
.btn--secondary:hover { --btn-bg: var(--fg); --btn-border: var(--fg); color: var(--linen); }
.btn--on-dark {
  --btn-bg: transparent;
  --btn-fg: var(--linen);
  --btn-border: var(--linen);
}
.btn--on-dark:hover { --btn-bg: var(--linen); --btn-border: var(--linen); color: var(--charcoal); }
.btn--sm { min-height: 2.75rem; padding: 0.45rem 1rem; font-size: var(--text-sm); }
.btn--block { width: 100%; }
@media (max-width: 639px) { .btn--block-sm { width: 100%; } }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
@media (max-width: 639px) { .btn-row--stack { flex-direction: column; } .btn-row--stack .btn { width: 100%; } }
.btn[disabled] { opacity: 0.7; cursor: progress; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.35em; min-height: 2.75rem;
  font-weight: 650; text-decoration: none; color: var(--link);
}
.link-arrow .icon { width: 1em; height: 1em; transition: transform 120ms ease; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.photo-card {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color 120ms ease;
}
.photo-card:hover, .photo-card:focus-visible { border-color: var(--line-strong); color: inherit; }
.photo-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand-2); }
.photo-card__media img { width: 100%; height: 100%; object-fit: cover; transition: filter 160ms ease; }
.photo-card:hover .photo-card__media img { filter: brightness(1.04); }
.photo-card__body { padding: var(--s-3) var(--s-4) var(--s-4); }
.photo-card__title {
  font-family: var(--font-display); font-weight: 650; font-size: var(--text-lg);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
}
.photo-card__title .icon { width: 1.1em; height: 1.1em; color: var(--accent); flex: none; transition: transform 120ms ease; }
.photo-card:hover .photo-card__title .icon { transform: translateX(3px); }
.photo-card__text { margin: var(--s-1) 0 0; color: var(--fg-muted); font-size: var(--text-sm); }
@media (max-width: 639px) {
  .photo-card__body { padding: var(--s-2) var(--s-3) var(--s-3); }
  .photo-card__title { font-size: var(--text-md); }
  .photo-card__text { font-size: var(--text-xs); }
}

/* Image frame used for gallery and supporting photos */
.frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sand-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame picture, .photo-card__media picture { width: 100%; height: 100%; }
.frame--3x2 { aspect-ratio: 3 / 2; }
.frame--4x3 { aspect-ratio: 4 / 3; }
.frame--4x5 { aspect-ratio: 4 / 5; }
.frame--16x10 { aspect-ratio: 16 / 10; }

/* Placeholder marker: visible wherever owner content is still missing (development) */
.ph-tag {
  position: absolute; top: var(--s-2); left: var(--s-2);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--linen); background: rgba(35, 38, 43, 0.82);
  padding: 0.2rem 0.5rem; border-radius: var(--radius-sm);
  pointer-events: none;
}
.ph-block {
  border: 1.5px dashed var(--line-strong);
  background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(35, 38, 43, 0.03) 10px 20px);
}
/* Intentional "no photo yet" panel: staggered planks in the brand palette, never a broken image */
.ph-media {
  display: grid; place-items: center; width: 100%; height: 100%;
  background: repeating-linear-gradient(180deg, var(--sand) 0 22px, var(--sand-2) 22px 24px);
  color: var(--fg-muted);
}
.ph-media__label { font-family: var(--font-display); font-weight: 650; font-size: var(--text-lg); color: var(--charcoal-2); padding: var(--s-3); text-align: center; }

/* ---------- Forms ---------- */
.field { display: grid; gap: var(--s-1); }
.field__label { font-weight: 650; font-size: var(--text-sm); }
.field__label small { font-weight: 400; color: var(--fg-muted); }
.field__hint { font-size: var(--text-xs); color: var(--fg-muted); }
.field__error { font-size: var(--text-sm); color: var(--bad); font-weight: 600; margin: 0; }
.field__error:empty { display: none; }
.input, .textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: var(--white);
  color: var(--fg);
  font: inherit;
  font-size: 1rem; /* ≥16px prevents iOS zoom */
}
.textarea { min-height: 6.5rem; resize: vertical; }
.input:focus, .textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--accent); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--bad); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  padding: 0.4rem 0.9rem; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--white);
  font-size: var(--text-sm); font-weight: 600; color: var(--fg); user-select: none;
}
.chip input:checked + span { background: var(--charcoal); border-color: var(--charcoal); color: var(--linen); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.form-note { font-size: var(--text-sm); color: var(--fg-muted); margin: 0; }
.form-alert {
  border-left: 3px solid var(--bad); background: #fbeeee; color: #6e2424;
  padding: var(--s-3) var(--s-4); border-radius: 0 6px 6px 0; font-size: var(--text-sm);
}
.form-alert a { color: inherit; font-weight: 700; }
/* Honeypot: off-screen, never displayed, never tabbable */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Icons ---------- */
.icon { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ==========================================================================
   Components (Astro scoped styles, unchanged)
   ========================================================================== */

/* ---------- Header ---------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 50;
}
@media (min-width: 900px) {
  .site-header { position: sticky; top: 0; }
}
.site-header__inner {
  display: flex; align-items: center; gap: var(--s-4);
  min-height: var(--header-h);
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--fg); min-height: 2.75rem;
  font-family: var(--font-display); font-weight: 650; font-size: 1.2rem; letter-spacing: -0.01em;
  margin-right: auto;
}
.brand:hover { color: var(--fg); }
.brand b { font-weight: 800; }
.brand__mark { display: inline-grid; gap: 2px; width: 26px; }
.brand__mark i { display: block; height: 5px; border-radius: 1px; background: var(--charcoal); }
.brand__mark i:nth-child(1) { width: 26px; }
.brand__mark i:nth-child(2) { width: 18px; margin-left: 8px; background: var(--oak); }
.brand__mark i:nth-child(3) { width: 22px; margin-left: 2px; }
@media (min-width: 900px) { .brand { font-size: 1.35rem; } }

.nav-desktop { display: none; }
.nav-desktop ul { list-style: none; display: flex; gap: var(--s-1); margin: 0; padding: 0; }
.nav-desktop li { margin: 0; }
.nav-desktop a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.5rem 0.75rem; border-radius: 6px;
  color: var(--fg); text-decoration: none; font-weight: 600; font-size: var(--text-sm);
}
.nav-desktop a:hover { background: var(--sand); }
.nav-desktop a[aria-current="page"] { color: var(--oak-ink); }
@media (min-width: 900px) { .nav-desktop { display: block; margin-inline: auto; } .nav-desktop a { font-size: var(--text-md); } }

.site-header__actions { display: flex; align-items: center; gap: var(--s-3); }
.header-phone {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-width: 2.75rem; min-height: 2.75rem; border-radius: 6px;
  color: var(--fg); text-decoration: none; font-weight: 700; font-size: var(--text-md);
}
.header-phone:hover { color: var(--oak-ink); }
.header-phone__num { display: none; }
.header-cta { display: none; }
@media (min-width: 640px) { .header-phone__num { display: inline; } }
@media (min-width: 1000px) { .header-cta { display: inline-flex; } }

/* Mobile nav */
.nav-mobile { position: static; }
.nav-mobile__toggle {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 6px; border: 1.5px solid var(--line-strong);
  color: var(--fg);
}
.nav-mobile__toggle::-webkit-details-marker { display: none; }
.nav-mobile__toggle .icon { width: 1.4rem; height: 1.4rem; }
.nav-mobile__close { display: none; }
.nav-mobile[open] .nav-mobile__open { display: none; }
.nav-mobile[open] .nav-mobile__close { display: block; }
.nav-mobile__sheet {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--card); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-menu);
  padding: var(--s-4) var(--gutter) var(--s-6);
}
.nav-mobile__sheet ul { list-style: none; margin: 0 0 var(--s-4); padding: 0; }
.nav-mobile__sheet li { margin: 0; border-bottom: 1px solid var(--line); }
.nav-mobile__sheet nav a {
  display: block; padding: 0.9rem 0.25rem;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 650;
  color: var(--fg); text-decoration: none;
}
.nav-mobile__sheet nav a[aria-current="page"] { color: var(--oak-ink); }
.nav-mobile__actions { display: grid; gap: var(--s-3); }
.nav-mobile__area { font-size: var(--text-sm); text-align: center; margin-top: var(--s-2); }
@media (min-width: 900px) { .nav-mobile { display: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #d9d2c7; padding-top: var(--s-7); font-size: var(--text-sm); }
.site-footer a { color: var(--linen); text-decoration: none; }
.site-footer__nav a, .site-footer__social a, .site-footer__legal a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.site-footer a:hover { color: #e6a567; text-decoration: underline; }
.site-footer__grid { display: grid; gap: var(--s-6); padding-bottom: var(--s-6); border-bottom: 1px solid rgba(250, 247, 242, 0.14); }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: 1.3fr 1fr; } }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1.1fr; } }
.site-footer__name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--linen); margin-bottom: var(--s-3); }
.site-footer__phone { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; font-size: 1.35rem; font-weight: 700; margin-bottom: var(--s-2); }
.site-footer__phone .icon { width: 1.2rem; height: 1.2rem; }
.site-footer__area, .site-footer__warranty { display: flex; gap: 0.5rem; align-items: flex-start; margin-bottom: var(--s-2); }
.site-footer__area .icon, .site-footer__warranty .icon { width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; color: #e6a567; }
.site-footer__domain, .site-footer__hours, .site-footer__address { color: #a69e93; margin-bottom: var(--s-2); font-style: normal; }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: var(--s-4); }
@media (min-width: 900px) { .site-footer__nav ul { columns: 1; } }
.site-footer__nav li { margin: 0; break-inside: avoid; }
.site-footer__warranty span { font-weight: 700; color: var(--linen); }
.muted-dark { color: #a69e93; }
.site-footer__social { list-style: none; padding: 0; margin: var(--s-3) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-3); }
.site-footer__social li { margin: 0; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); padding-block: var(--s-4); color: #a69e93; font-size: var(--text-xs); }

/* ---------- Sticky bar (mobile) ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--charcoal);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -6px 20px rgba(35, 38, 43, 0.18);
  transition: transform 180ms ease;
}
.sticky-bar[data-visible="false"] { transform: translateY(110%); }
.sticky-bar a {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: var(--stickybar-h); font-weight: 700; font-size: var(--text-md);
  text-decoration: none;
}
.sticky-bar a .icon { width: 1.25rem; height: 1.25rem; }
.sticky-bar__call { background: var(--linen); color: var(--charcoal); }
.sticky-bar__call:hover { color: var(--charcoal); }
.sticky-bar__estimate { background: var(--oak); color: var(--white); }
.sticky-bar__estimate:hover { color: var(--white); }
.sticky-bar a:focus-visible { outline-offset: -4px; }
@media (min-width: 900px) { .sticky-bar { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: min(78vh, 46rem);
  color: var(--linen);
  background: var(--charcoal);
}
@media (min-width: 640px) { .hero { align-items: center; min-height: min(70vh, 40rem); } }
@media (min-width: 900px) { .hero { min-height: min(76vh, 46rem); } }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: center; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(35, 38, 43, 0.86) 0%, rgba(35, 38, 43, 0.55) 45%, rgba(35, 38, 43, 0.15) 100%);
}
@media (min-width: 640px) {
  .hero__scrim {
    background:
      linear-gradient(to right, rgba(35, 38, 43, 0.82) 0%, rgba(35, 38, 43, 0.62) 40%, rgba(35, 38, 43, 0.12) 75%, rgba(35, 38, 43, 0) 100%),
      linear-gradient(to top, rgba(35, 38, 43, 0.35), rgba(35, 38, 43, 0) 40%);
  }
}
/* No hero photo yet: the charcoal hero colour with a quiet plank texture (never another photo) */
.hero--empty { background: repeating-linear-gradient(180deg, var(--charcoal) 0 46px, var(--charcoal-2) 46px 48px); }
.hero__ph { top: auto; bottom: var(--s-2); right: var(--s-2); left: auto; z-index: 2; }
.hero__content { position: relative; z-index: 1; padding-block: var(--s-7) var(--s-8); }
@media (min-width: 900px) { .hero__content { padding-block: var(--s-9); } }
.hero h1 { color: var(--linen); max-width: 12ch; }
.hero__lede {
  margin: var(--s-4) 0 var(--s-6);
  max-width: 44ch;
  font-size: var(--text-lg);
  color: #ece7df;
}
@media (min-width: 900px) { .hero__lede { font-size: var(--text-xl); } }
.hero__actions { max-width: 36rem; }

/* ---------- Trust strip ---------- */
.trust { background: var(--card); border-bottom: 1px solid var(--line); }
.trust__list {
  list-style: none; margin: 0; padding: var(--s-5) 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-5);
}
@media (min-width: 900px) { .trust__list { grid-template-columns: repeat(4, 1fr); padding: var(--s-6) 0; } }
.trust__item { display: flex; gap: var(--s-3); align-items: flex-start; margin: 0; }
.trust__icon { width: 1.75rem; height: 1.75rem; color: var(--oak); margin-top: 0.1rem; }
.trust__title { font-family: var(--font-display); font-weight: 650; font-size: var(--text-md); line-height: 1.2; margin: 0 0 0.2rem; }
.trust__text { margin: 0; color: var(--fg-muted); font-size: var(--text-sm); }
@media (max-width: 639px) {
  .trust__item { flex-direction: column; gap: var(--s-2); }
  .trust__text { display: none; }
  .trust__title { font-size: var(--text-sm); }
}

/* ---------- Flooring grid ---------- */
.flooring-grid { list-style: none; padding: 0; margin: 0; }
.flooring-grid li { margin: 0; }

/* ---------- Our Work (featured) ---------- */
.work-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); }
.work-head .section-head { margin-bottom: var(--s-5); }
.work-head__link { display: none; margin-bottom: var(--s-6); white-space: nowrap; }
@media (min-width: 900px) { .work-head__link { display: inline-flex; margin-bottom: var(--s-7); } .work-head .section-head { margin-bottom: var(--s-7); } }
.work-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3);
}
@media (min-width: 640px) { .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); } }
@media (min-width: 900px) { .work-grid { gap: var(--s-5); } }
.work-item { margin: 0; }
.work-item--wide { grid-column: span 2; }
.work-item figure { margin: 0; }
.work-item figcaption { margin-top: var(--s-2); font-size: var(--text-sm); color: var(--fg-muted); }
.work-item figcaption span:first-child { color: var(--fg); font-weight: 650; }
.work-foot { margin-top: var(--s-6); text-align: center; }
@media (min-width: 900px) { .work-foot { display: none; } }
.pair-badge {
  position: absolute; left: var(--s-2); bottom: var(--s-2);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--charcoal); background: rgba(250, 247, 242, 0.92);
  padding: 0.2rem 0.5rem; border-radius: var(--radius-sm);
}

/* ---------- Why us ---------- */
.why { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .why { grid-template-columns: 1fr 1.1fr; gap: var(--s-8); } }
.why--text-only { grid-template-columns: 1fr; max-width: 48rem; }
.why__frame { border-radius: var(--radius-lg); }
.why__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.why__list li { display: flex; gap: var(--s-3); margin: 0; }
.why__check { width: 1.5rem; height: 1.5rem; color: var(--oak); margin-top: 0.15rem; }
.why__title { font-family: var(--font-display); font-weight: 650; font-size: var(--text-lg); margin: 0 0 0.15rem; }
.why__text { margin: 0; color: var(--fg-muted); }
.why .section-head { margin-bottom: var(--s-5); }

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); } }
.step { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-5); }
.step__head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.step__num {
  display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--charcoal); color: var(--linen); font-family: var(--font-display); font-weight: 700;
}
.step__icon { width: 1.75rem; height: 1.75rem; color: var(--oak); }
.step__title { margin-bottom: var(--s-2); }
.step__text { margin: 0; color: var(--fg-muted); }

/* ---------- Reviews ---------- */
.reviews { list-style: none; padding: 0; margin: 0; }
.review {
  position: relative; margin: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--s-5);
}
.review__mark { width: 2rem; height: 2rem; color: var(--oak); margin-bottom: var(--s-3); }
.review__tag {
  position: absolute; top: var(--s-3); right: var(--s-3);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted);
}
.review__quote { margin: 0 0 var(--s-4); font-size: var(--text-lg); }
.review--placeholder .review__quote { color: var(--fg-muted); font-style: italic; }
.review__meta { margin: 0; color: var(--fg-muted); font-size: var(--text-sm); }
.reviews__foot { margin-top: var(--s-6); text-align: center; }

/* ---------- Warranty ---------- */
.warranty { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .warranty { grid-template-columns: 1.1fr 1fr; gap: var(--s-8); } }
.warranty--text-only { grid-template-columns: 1fr; max-width: 48rem; }
.warranty h2 { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.warranty__icon { width: 2rem; height: 2rem; color: var(--oak); flex: none; }
.warranty__text { max-width: var(--measure); font-size: var(--text-lg); }
.warranty__text + .warranty__text { color: var(--fg-muted); font-size: var(--text-md); margin-bottom: var(--s-5); }
.warranty__link { align-self: center; }

/* ---------- Estimate section and form ---------- */
.estimate { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .estimate { grid-template-columns: 1fr 1.2fr; gap: var(--s-8); align-items: start; } }
.estimate__lede { font-size: var(--text-lg); color: #d9d2c7; max-width: 44ch; margin: var(--s-4) 0 var(--s-6); }
.estimate__phone {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); font-weight: 700;
  color: var(--linen); text-decoration: none; letter-spacing: -0.01em;
}
.section--dark .estimate__phone { color: var(--linen); }
.estimate__phone .icon { width: 1.4rem; height: 1.4rem; color: #e6a567; }
.section--dark .estimate__phone:hover { color: #e6a567; }
.estimate__area { display: flex; align-items: center; gap: 0.5rem; color: #a69e93; margin-top: var(--s-3); font-size: var(--text-sm); }
.estimate__area .icon { width: 1.1rem; height: 1.1rem; }
.estimate__form { padding: var(--s-5); color: var(--fg); }
@media (min-width: 640px) { .estimate__form { padding: var(--s-6); } }
.estimate__form a, .section--dark .estimate__form a { color: var(--link); }

.estimate-form { display: grid; gap: var(--s-4); }
.estimate-form__grid { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .estimate-form__grid { grid-template-columns: 1fr 1fr; } }
.estimate-form__fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.estimate-form__fieldset legend { padding: 0; margin-bottom: var(--s-2); }
.estimate-form__actions { display: grid; gap: var(--s-3); align-items: center; }
@media (min-width: 640px) { .estimate-form__actions { grid-template-columns: auto 1fr; } }
.estimate-form__turnstile:empty { display: none; }
.estimate-form__turnstile { min-height: 65px; }

/* ==========================================================================
   Inner pages (Phase 1 plan §10: short photo header, content, closing band)
   ========================================================================== */
.page-head { padding-block: var(--s-7) var(--s-6); background: var(--sand); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .page-head { padding-block: var(--s-8) var(--s-7); } }
.page-head h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem); max-width: 22ch; }
.page-head__lede { margin: var(--s-4) 0 0; font-size: var(--text-lg); color: var(--fg-muted); max-width: var(--measure); }
.page-head--photo { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .page-head--photo { grid-template-columns: 1.05fr 1fr; gap: var(--s-8); } }
.page-head__media { border-radius: var(--radius-lg); }

.crumbs { font-size: var(--text-sm); color: var(--fg-muted); margin-bottom: var(--s-3); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; }
.crumbs li { margin: 0; display: inline-flex; align-items: center; gap: 0.35rem; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs a { color: var(--fg-muted); min-height: 2.75rem; display: inline-flex; align-items: center; }
.crumbs a:hover { color: var(--oak-ink); }

.prose { max-width: var(--measure); font-size: var(--text-lg); }
.prose p { margin-bottom: var(--s-4); }

/* Privacy page (draft until owner/legal approval) */
.privacy h2 { font-size: var(--text-xl); margin: var(--s-6) 0 var(--s-3); }
.privacy ul { margin: 0 0 var(--s-4); padding-left: 1.25rem; }
.privacy li { margin-bottom: var(--s-2); }
.review-banner {
  border-left: 3px solid var(--oak); background: var(--sand); color: var(--fg);
  padding: var(--s-4); border-radius: 0 6px 6px 0; font-size: var(--text-md); margin-bottom: var(--s-5);
}
.review-flag {
  display: inline-block; font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.02em;
  background: var(--sand); color: var(--oak-ink); border: 1px dashed var(--oak); border-radius: 4px; padding: 0 0.4em;
}

/* Category page: items */
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .items { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.item { margin: 0; display: flex; flex-direction: column; }
.item__body { padding: var(--s-4); display: grid; gap: var(--s-2); align-content: start; }
.item__name { font-size: var(--text-lg); }
.item__text { margin: 0; color: var(--fg-muted); }
.item__features { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; font-size: var(--text-sm); }
.item__features li { display: flex; gap: 0.5rem; margin: 0; }
.item__features .icon { width: 1.1rem; height: 1.1rem; color: var(--oak); margin-top: 0.2rem; }
.item__more summary { cursor: pointer; font-weight: 650; color: var(--link); min-height: 2.75rem; display: flex; align-items: center; }
.item__more p { color: var(--fg-muted); font-size: var(--text-sm); }

/* Our Work gallery */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); list-style: none; padding: 0; }
.filters li { margin: 0; }
.filters a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.4rem 0.95rem; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--white); color: var(--fg);
  font-size: var(--text-sm); font-weight: 600; text-decoration: none;
}
.filters a:hover { border-color: var(--charcoal); }
.filters a[aria-current="true"] { background: var(--charcoal); border-color: var(--charcoal); color: var(--linen); }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gallery__item { margin: 0; }
.gallery__item--pair { grid-column: 1 / -1; }
.gallery__item figure { margin: 0; }
.gallery__meta { margin: var(--s-2) 0 0; font-size: var(--text-sm); color: var(--fg); font-weight: 650; }
.gallery__caption { margin: 0.15rem 0 0; font-size: var(--text-sm); color: var(--fg-muted); }
.pair { display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .pair { grid-template-columns: 1fr 1fr; } }
.pair__label {
  position: absolute; left: var(--s-2); top: var(--s-2);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--linen); background: rgba(35, 38, 43, 0.85); padding: 0.2rem 0.55rem; border-radius: var(--radius-sm);
}
.empty-note { max-width: var(--measure); font-size: var(--text-lg); color: var(--fg-muted); }
.empty-note--dev { border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: var(--s-4) var(--s-5); background: var(--card); }

/* Closing band on inner pages (two buttons, plan §13) */
.cta-band { display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.2fr 1fr; gap: var(--s-8); } }
.cta-band p { color: #d9d2c7; font-size: var(--text-lg); margin: var(--s-3) 0 0; max-width: 46ch; }
.cta-band .btn-row { justify-content: flex-start; }
@media (min-width: 900px) { .cta-band .btn-row { justify-content: flex-end; } }

/* About */
.about { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 900px) { .about { grid-template-columns: 1.1fr 1fr; gap: var(--s-8); } }
.about--text-only { grid-template-columns: 1fr; max-width: 48rem; }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.values li { display: flex; gap: var(--s-3); margin: 0; font-size: var(--text-lg); }
.values .icon { width: 1.4rem; height: 1.4rem; color: var(--oak); margin-top: 0.2rem; }
.facts { display: grid; gap: var(--s-2); margin: 0; }
.facts dt { font-weight: 650; }
.facts dd { margin: 0 0 var(--s-3); color: var(--fg-muted); }

/* Estimate page, thank-you, status pages */
.estimate-page { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .estimate-page { grid-template-columns: 1fr 1.2fr; gap: var(--s-8); align-items: start; } }
.estimate-page__lede { font-size: var(--text-lg); color: var(--fg-muted); margin: var(--s-4) 0 var(--s-5); max-width: 44ch; }
.estimate-page__area { display: flex; align-items: center; gap: 0.5rem; margin-top: var(--s-4); font-size: var(--text-sm); }
.estimate-page__area .icon { width: 1.1rem; height: 1.1rem; }
.estimate-page__form { padding: var(--s-5); }
@media (min-width: 640px) { .estimate-page__form { padding: var(--s-6); } }
.mini-steps { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; gap: var(--s-3); counter-reset: ms; }
.mini-steps li { display: flex; gap: var(--s-3); align-items: flex-start; margin: 0; }
.mini-steps .step__num { width: 1.9rem; height: 1.9rem; font-size: var(--text-sm); flex: none; }
.mini-steps strong { display: block; font-family: var(--font-display); }
.mini-steps span { color: var(--fg-muted); font-size: var(--text-sm); }

.thanks, .narrow { max-width: 40rem; }
.thanks__icon { width: 3rem; height: 3rem; color: var(--ok); margin-bottom: var(--s-4); }
.thanks__lede, .narrow__lede { font-size: var(--text-lg); margin: var(--s-4) 0 var(--s-6); }

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.measure { max-width: var(--measure); }
.muted { color: var(--fg-muted); }
.text-center { text-align: center; }
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
.nowrap { white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }
.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--charcoal); color: var(--linen); padding: 0.6rem 1rem; border-radius: 6px; font-weight: 650;
}
.skip-link:focus { top: var(--s-4); }

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