/* ==========================================================================
   Luxury Flooring — shared stylesheet
   Brand tokens come from ./ASSETS/READ-ME-FIRST.txt (brand kit).
   Values marked DERIVED are not in the kit (spacing, radius, shadows,
   type scale) — swap in brand-book values when available.
   ========================================================================== */

@font-face {
  font-family: "Jost";
  src: url("../fonts/Jost-Variable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/Jost-Italic-Variable.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/CormorantGaramond-Italic-Variable.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
}

:root {
  /* Colour — brand kit */
  --color-night: #15130F;       /* dark backgrounds */
  --color-ivory: #F4EFE6;       /* light backgrounds */
  --color-gold: #C9A96E;        /* gold on dark */
  --color-deep-gold: #9A7B45;   /* gold on light (graphics, rules, large text) */
  --color-bronze: #7A5F32;      /* gold text on light */
  --color-ink: #1C1A17;         /* body text */
  --color-parchment: #F2ECE1;   /* alternate light surface */
  --color-stone: #D8D0C2;       /* borders, dividers */

  /* Colour — semantic aliases */
  --color-bg: var(--color-ivory);
  --color-bg-alt: var(--color-parchment);
  --color-bg-dark: var(--color-night);
  --color-text: var(--color-ink);
  --color-text-muted: #5A544B;  /* DERIVED: ink at ~75% on ivory, 6.4:1 */
  --color-text-on-dark: var(--color-ivory);
  --color-text-on-dark-muted: #B8B0A2; /* DERIVED */
  --color-accent: var(--color-bronze);
  --color-accent-on-dark: var(--color-gold);
  --color-border: var(--color-stone);
  --color-border-dark: #3A352D; /* DERIVED */
  --color-error: #9B2C1F;       /* DERIVED: form errors only */
  --color-success: #3F5B2E;     /* DERIVED: form success only */

  /* Type — brand kit: Jost = brand typeface, Cormorant Garamond Italic = quotes only */
  --font-sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --font-quote: "Cormorant Garamond", Georgia, serif;
  --fw-light: 300; --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600;
  --tracking-wide: 0.18em;      /* matches the spaced wordmark */
  --tracking-caps: 0.12em;

  /* Type scale — DERIVED (fluid) */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  --fs-2xl: clamp(2rem, 1.5rem + 2vw, 3rem);
  --fs-3xl: clamp(2.375rem, 1.6rem + 3.2vw, 4.25rem);

  /* Spacing — DERIVED (8px scale) */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4rem;
  --space-9: 6rem; --space-10: 8rem;
  --section-y: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
  --container: 1240px;
  --container-narrow: 820px;

  /* Radius — DERIVED (near-square, echoing the line-art mark) */
  --radius-sm: 2px; --radius-md: 4px; --radius-btn: 8px; --radius-pill: 999px;

  /* Shadows — DERIVED (soft, warm) */
  --shadow-sm: 0 1px 2px rgba(21, 19, 15, 0.06);
  --shadow-md: 0 6px 20px -8px rgba(21, 19, 15, 0.18);
  --shadow-lg: 0 18px 40px -16px rgba(21, 19, 15, 0.28);

  /* Motion — subtle only */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --dur: 200ms;
  --header-h: 80px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-sans); font-size: var(--fs-base); line-height: 1.65; font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
img { background: var(--color-parchment); }
a { color: inherit; text-decoration-color: var(--color-deep-gold); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 var(--space-4); font-weight: var(--fw-medium); line-height: 1.15; letter-spacing: -0.005em; }
h1, h2 { font-weight: var(--fw-semibold); letter-spacing: -0.01em; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); font-weight: var(--fw-regular); }
h5, h6 { font-size: var(--fs-md); font-weight: var(--fw-medium); }
p { margin: 0 0 var(--space-4); }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25rem; }
:focus-visible { outline: 2px solid var(--color-deep-gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--color-night); color: var(--color-ivory); padding: var(--space-3) var(--space-4); }
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--color-bg-alt); }
.section--dark { background: var(--color-bg-dark); color: var(--color-text-on-dark); }
.section--dark .eyebrow { color: var(--color-accent-on-dark); }
.section--dark p { color: var(--color-text-on-dark-muted); }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.section__head { max-width: 720px; margin: 0 auto var(--space-7); text-align: center; }
.section__head p { color: var(--color-text-muted); font-size: var(--fs-md); }
.section--dark .section__head p { color: var(--color-text-on-dark-muted); }
.grid { display: grid; gap: var(--space-6); }
.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2, .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--space-9); } .split--reverse > :first-child { order: 2; } }
.stack > * + * { margin-top: var(--space-4); }
.text-center { text-align: center; }
.muted { color: var(--color-text-muted); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-block; margin-bottom: var(--space-3);
  font-size: var(--fs-xs); font-weight: var(--fw-medium); letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: var(--color-accent);
}
.eyebrow::after { content: ""; display: inline-block; width: 2.5rem; height: 1px; margin-left: 0.75rem; vertical-align: middle; background: currentColor; }
.text-center .eyebrow::after, .section__head .eyebrow::after, .feature-banner .eyebrow::after, .page-head .eyebrow::after { display: none; }
.lead { font-size: var(--fs-md); color: var(--color-text-muted); }
.quote { font-family: var(--font-quote); font-style: italic; font-weight: 400; font-size: var(--fs-lg); line-height: 1.45; }
.rule { width: 3rem; height: 1px; background: var(--color-deep-gold); border: 0; margin: var(--space-5) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0.75rem 1.75rem; border: 1px solid transparent; border-radius: var(--radius-btn);
  font-size: var(--fs-sm); font-weight: var(--fw-medium); letter-spacing: var(--tracking-caps); text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn svg { width: 1em; height: 1em; }
.btn--primary { background: var(--color-night); color: var(--color-ivory); }
.btn--primary:hover { background: var(--color-bronze); }
.btn--gold { background: var(--color-gold); color: var(--color-night); }
.btn--gold:hover { background: var(--color-ivory); }
.btn--outline { border-color: var(--color-ink); color: var(--color-ink); background: transparent; }
.btn--outline:hover { background: var(--color-ink); color: var(--color-ivory); }
.btn--outline-light { border-color: rgba(244, 239, 230, 0.6); color: var(--color-ivory); background: transparent; }
.btn--outline-light:hover { background: var(--color-ivory); color: var(--color-night); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.link-arrow { display: inline-flex; gap: var(--space-2); align-items: center; font-size: var(--fs-sm); font-weight: var(--fw-medium); letter-spacing: var(--tracking-caps); text-transform: uppercase; text-decoration: none; color: var(--color-accent); }
.link-arrow::after { content: "→"; transition: transform var(--dur) var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }
.section--dark .link-arrow { color: var(--color-gold); }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--color-night); color: var(--color-text-on-dark-muted); font-size: var(--fs-xs); letter-spacing: 0.04em; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); min-height: 38px; }
.topbar a { color: var(--color-ivory); text-decoration: none; }
.topbar a:hover { color: var(--color-gold); }
.topbar__items { display: flex; gap: var(--space-5); align-items: center; }
.topbar__msg { display: none; }
@media (min-width: 768px) { .topbar__msg { display: block; } }
@media (max-width: 767px) { .topbar .container { justify-content: center; } .topbar__area { display: none; } }

/* Fixed header: follows the top bar up, then pins at 0 (JS sets top). Transparent over a photo hero until scrolled. */
.site-header { position: fixed; top: 38px; left: 0; right: 0; z-index: 100; background: var(--color-ivory); border-bottom: 1px solid var(--color-border); box-shadow: 0 6px 24px -18px rgba(21, 19, 15, 0.35); transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.brand__mark--light { display: none; }
body:has(main > .hero:first-child) .site-header:not(.is-solid) { background: transparent; border-bottom-color: transparent; box-shadow: none; }
body:has(main > .hero:first-child) .site-header:not(.is-solid) .brand { color: var(--color-ivory); }
body:has(main > .hero:first-child) .site-header:not(.is-solid) .brand__sub { color: var(--color-gold); }
body:has(main > .hero:first-child) .site-header:not(.is-solid) .brand__sub::after { background: var(--color-gold); }
body:has(main > .hero:first-child) .site-header:not(.is-solid) .brand__mark--dark { display: none; }
body:has(main > .hero:first-child) .site-header:not(.is-solid) .brand__mark--light { display: block; }
body:has(main > .hero:first-child) .site-header:not(.is-solid) .nav__list > .nav__item > .nav__link { color: var(--color-ivory); }
body:has(main > .hero:first-child) .site-header:not(.is-solid) .nav__list > .nav__item > .nav__link:hover, body:has(main > .hero:first-child) .site-header:not(.is-solid) .nav__link[aria-current="page"] { color: var(--color-gold); }
body:has(main > .hero:first-child) .site-header:not(.is-solid) .header__cta { background: var(--color-ivory); color: var(--color-night); }
body:has(main > .hero:first-child) .site-header:not(.is-solid) .header__cta:hover { background: var(--color-gold); }
body:has(main > .hero:first-child) .site-header:not(.is-solid) .menu-toggle { border-color: rgba(244, 239, 230, 0.5); }
body:has(main > .hero:first-child) .site-header:not(.is-solid) .menu-toggle span, body:has(main > .hero:first-child) .site-header:not(.is-solid) .menu-toggle span::before, body:has(main > .hero:first-child) .site-header:not(.is-solid) .menu-toggle span::after { background: var(--color-ivory); }
.brand, .brand__sub, .nav__link, .header__cta, .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease; }
/* Space for the fixed header: photo-hero pages let the hero run under it; other pages get padding. */
body:not(:has(main > .hero:first-child)) main { padding-top: var(--header-h); }
body:has(main > .hero:first-child) main > .hero:first-child .container { padding-top: calc(var(--header-h) + clamp(3.5rem, 2rem + 5vw, 7rem)); }
body:has(main > .hero:first-child) main > .hero--page:first-child .container { padding-top: calc(var(--header-h) + clamp(2rem, 1rem + 3.5vw, 4.5rem)); }
.hero--page p { margin-bottom: 3.25rem; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0; text-decoration: none; color: var(--color-ink); }
/* Header lockup: brand-kit diamond mark (SVG) + live Jost wordmark — stays sharp and legible at any size */
.brand__mark { width: 48px; height: 48px; background: none; flex-shrink: 0; }
.brand__word { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-sans); text-transform: uppercase; }
.brand__name { font-size: 25px; font-weight: 400; letter-spacing: 0.34em; margin-right: -0.34em; }
.brand__sub { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 11px; font-weight: 500; letter-spacing: 0.42em; color: var(--color-bronze); }
.brand__sub::after { content: ""; flex: 1; min-width: 18px; height: 1px; background: var(--color-deep-gold); }
.brand--dark { color: var(--color-ivory); }
.brand--dark .brand__sub { color: var(--color-gold); }
.brand--dark .brand__sub::after { background: var(--color-gold); }
@media (min-width: 1100px) { :root { --header-h: 96px; } .brand__mark { width: 60px; height: 60px; } .brand__name { font-size: 30px; } .brand__sub { font-size: 12px; } }
.nav { display: none; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-1); align-items: center; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 0.625rem 0.8rem; font-size: var(--fs-sm); font-weight: var(--fw-medium); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--color-ink); background: none; border: 0; cursor: pointer; }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--color-bronze); }
.nav__item { position: relative; }
.nav__caret { width: 10px; height: 10px; transition: transform var(--dur) var(--ease); }
.nav__dropdown { position: absolute; top: 100%; left: 0; min-width: 560px; padding: 32px 38px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; background: #FBF8F2; border: 0; border-radius: 10px; box-shadow: 0 0 10px rgba(21, 19, 15, 0.08), 0 18px 40px -18px rgba(21, 19, 15, 0.25); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur); }
.nav__item:hover .nav__dropdown, .nav__item:focus-within .nav__dropdown, .nav__item.is-open .nav__dropdown { opacity: 1; visibility: visible; transform: none; }
.nav__dropdown h6, .nav__heading { margin: 0 0 6px; font-size: 18px; font-weight: var(--fw-semibold); letter-spacing: 0; text-transform: none; color: var(--color-ink); }
.nav__dropdown ul { list-style: none; margin: 0; padding: 0; }
.nav__dropdown a { display: block; padding: 8px 0 8px 15px; font-size: 16px; line-height: 20px; text-decoration: none; color: var(--color-ink); transition: color var(--dur) var(--ease); }
.nav__dropdown a:hover { color: var(--color-bronze); }
.header__cta { display: none; }

.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: none; border: 1px solid var(--color-border); border-radius: var(--radius-btn); cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 1.5px; background: var(--color-ink); position: relative; content: ""; }
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }
@media (min-width: 1100px) { .nav { display: block; } .header__cta { display: inline-flex; } .menu-toggle { display: none; } }
.mobile-nav { position: fixed; inset: 0; z-index: 150; background: var(--color-night); color: var(--color-ivory); padding: var(--space-5) var(--gutter) var(--space-8); overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), visibility var(--dur); }
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-6); }
.mobile-nav__top .brand__mark { width: 44px; height: 44px; }
.mobile-nav__close { width: 48px; height: 48px; background: none; border: 1px solid var(--color-border-dark); color: var(--color-ivory); font-size: 1.5rem; cursor: pointer; border-radius: var(--radius-sm); }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav > ul > li { border-bottom: 1px solid var(--color-border-dark); }
.mobile-nav a { display: block; padding: 0.9rem 0; text-decoration: none; font-size: var(--fs-md); letter-spacing: 0.06em; }
.mobile-nav details summary { list-style: none; display: flex; justify-content: space-between; padding: 0.9rem 0; cursor: pointer; font-size: var(--fs-md); letter-spacing: 0.06em; }
.mobile-nav details summary::after { content: "+"; color: var(--color-gold); }
.mobile-nav details[open] summary::after { content: "–"; }
.mobile-nav details ul { padding: 0 0 var(--space-3) var(--space-4); }
.mobile-nav details a { font-size: var(--fs-base); padding: 0.5rem 0; color: var(--color-text-on-dark-muted); }
.mobile-nav .btn { margin-top: var(--space-6); width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: var(--color-ivory); background: var(--color-night); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--color-night); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(21, 19, 15, 0.68) 0%, rgba(21, 19, 15, 0.82) 100%); }
.hero .container { padding-block: clamp(5rem, 3rem + 9vw, 10rem); text-align: center; }
.hero h1 { max-width: 16ch; margin-inline: auto; font-weight: 700; letter-spacing: -0.01em; line-height: 1.08; text-shadow: 0 2px 24px rgba(21, 19, 15, 0.35); }
.hero p { max-width: 60ch; margin: 0 auto 2.75rem; color: #E4DDD0; font-size: var(--fs-md); }
.hero .btn-row { justify-content: center; }
.hero .eyebrow { color: var(--color-gold); }
.hero .eyebrow::after { display: none; }
.hero--page::before { background: linear-gradient(180deg, rgba(21, 19, 15, 0.66) 0%, rgba(21, 19, 15, 0.8) 100%); }
/* Home hero (video): a little taller, content centred */
.hero:not(.hero--page) { min-height: clamp(600px, 82vh, 820px); display: flex; align-items: center; }
.hero:not(.hero--page) > .container { width: 100%; }
.hero--page .container { padding-block: clamp(4rem, 2.5rem + 6vw, 7.5rem); }
.hero--page h1 { font-size: var(--fs-2xl); max-width: 22ch; }
.hero--left .container { text-align: left; }
.hero--left h1, .hero--left p { margin-left: 0; }
.hero--left .btn-row { justify-content: flex-start; }

.page-head { padding-block: clamp(3rem, 2rem + 4vw, 5rem); background: var(--color-parchment); border-bottom: 1px solid var(--color-border); text-align: center; }
.page-head h1 { font-size: var(--fs-2xl); margin-bottom: var(--space-3); }
.page-head p { max-width: 62ch; margin-inline: auto; color: var(--color-text-muted); }
.breadcrumbs { font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: var(--space-4); }
.breadcrumbs a { text-decoration: none; color: var(--color-bronze); }
.hero .breadcrumbs, .hero .breadcrumbs a { color: var(--color-gold); }

/* ---------- Banner strip ---------- */
.strip { background: var(--color-parchment); border-block: 1px solid var(--color-border); text-align: center; font-size: var(--fs-sm); padding: 0.8rem var(--gutter); }
.strip a { font-weight: var(--fw-semibold); }

/* ---------- Cards ---------- */
.card { background: var(--color-ivory); border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.card:hover { box-shadow: var(--shadow-md); border-color: var(--color-deep-gold); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.card:hover .card__media img { transform: scale(1.03); }
.card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.card__body h3 { font-size: var(--fs-lg); font-weight: var(--fw-regular); margin: 0; }
.card__body p { color: var(--color-text-muted); margin: 0; font-size: var(--fs-sm); }
.card__body .link-arrow { margin-top: auto; padding-top: var(--space-3); }
a.card { text-decoration: none; color: inherit; }
.section--alt .card { background: #FAF7F1; }

/* Service tiles (bordered grid, home "Our Flooring Services") */
.tiles { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--color-border); }
@media (min-width: 720px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile { padding: var(--space-6) var(--space-5); border-bottom: 1px solid var(--color-border); }
@media (min-width: 720px) { .tile:nth-child(odd) { border-right: 1px solid var(--color-border); } }
.tile h3 { font-size: var(--fs-lg); font-weight: var(--fw-regular); display: flex; gap: var(--space-3); align-items: center; }
.tile h3::before { content: ""; width: 10px; height: 10px; border: 1px solid var(--color-deep-gold); transform: rotate(45deg); flex-shrink: 0; }
.tile p { color: var(--color-text-muted); margin: 0; }
/* Hover lift (matches source: white card, borders drop, 0 20px 60px -15px shadow, 0.3s) */
.tiles--hover .tile { position: relative; transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s; }
.tiles--hover .tile:hover { z-index: 1; background: #FFFDF9; border-color: transparent; box-shadow: 0 20px 60px -15px rgba(21, 19, 15, 0.22); }

/* Check list */
.checks { list-style: none; padding: 0; display: grid; gap: var(--space-3) var(--space-5); }
@media (min-width: 560px) { .checks--2 { grid-template-columns: 1fr 1fr; } }
.checks li { position: relative; padding-left: 1.75rem; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 9px; height: 9px; border: 1.5px solid var(--color-deep-gold); transform: rotate(45deg); }
.section--dark .checks li::before { border-color: var(--color-gold); }

/* Image mosaic (Work Speaks for Itself) */
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); aspect-ratio: 4 / 3; }
.mosaic img:nth-child(4) { aspect-ratio: auto; grid-row: span 2; }
.mosaic--even img { aspect-ratio: 4 / 3 !important; grid-row: auto !important; }

.figure-pair { position: relative; padding-bottom: 18%; }
.figure-pair img:first-child { width: 88%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-sm); }
.figure-pair img:last-child { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 4/3; object-fit: cover; border: 6px solid var(--color-bg); border-radius: var(--radius-sm); }
.section--alt .figure-pair img:last-child { border-color: var(--color-bg-alt); }
.feature-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.framed { position: relative; }
.framed img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
.framed::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--color-deep-gold); z-index: -1; }
.framed { isolation: isolate; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); text-align: center; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats > * { min-width: 0; }
.stat__num { overflow-wrap: anywhere; display: block; font-size: clamp(2rem, 1.6rem + 1.4vw, 2.5rem); font-weight: var(--fw-semibold); line-height: 1.1; letter-spacing: 0.01em; color: var(--color-ink); }
.stat__label { display: block; margin-top: var(--space-2); font-size: 1rem; color: var(--color-text-muted); }
.stat__icon { box-sizing: content-box; width: 22px; height: 22px; padding: 15px; margin: 0 auto var(--space-4); border-radius: 50%; background: rgba(154, 123, 69, 0.14); color: var(--color-bronze); }
.section--dark .stat__num { color: var(--color-ivory); }
.section--dark .stat__label { color: var(--color-text-on-dark-muted); }

/* Testimonials */
.testimonials { display: grid; gap: var(--space-5) var(--space-7); grid-template-columns: 1fr; }
@media (min-width: 700px) { .testimonials { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .testimonials--4 { grid-template-columns: repeat(4, 1fr); } .testimonials--3 { grid-template-columns: repeat(3, 1fr); } }
.testimonial { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-5) 0; background: transparent; border: 0; }
.testimonial__stars { display: flex; gap: 3px; color: var(--color-gold); }
.testimonial__stars svg { width: 18px; height: 18px; }
.testimonial__title { margin: 0; font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); font-weight: var(--fw-semibold); line-height: 1.25; letter-spacing: -0.005em; color: var(--color-ink); }
.testimonial blockquote { margin: 0; font-family: var(--font-sans); font-style: normal; font-weight: var(--fw-regular); font-size: 1rem; line-height: 1.75; color: var(--color-ink); }
.testimonial__who { margin-top: auto; display: flex; gap: var(--space-3); align-items: center; font-size: var(--fs-sm); }
.testimonial__who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial__who strong { display: block; font-weight: var(--fw-medium); }
.testimonial__who span { color: var(--color-text-muted); font-size: var(--fs-xs); }
.testimonial__who .avatar-initial { color: var(--color-gold); font-size: var(--fs-sm); }
.avatar-initial { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--color-night); color: var(--color-gold); font-weight: var(--fw-medium); flex-shrink: 0; }

/* Trust row */
.trust { display: grid; gap: var(--space-6); grid-template-columns: 1fr; text-align: center; align-items: center; }
@media (min-width: 800px) { .trust { grid-template-columns: repeat(3, 1fr); } .trust > * + * { border-left: 1px solid var(--color-border); } }
.trust__item { padding: var(--space-3) var(--space-5); font-size: var(--fs-sm); }
.trust__item strong { display: block; font-size: var(--fs-lg); font-weight: var(--fw-regular); margin-bottom: var(--space-1); }
.trust__item svg { width: 34px; height: 34px; margin: 0 auto var(--space-3); color: var(--color-deep-gold); }

/* Trust row with badges (home) */
.trust--badges { padding-block: var(--space-6); }
.trust--badges .trust__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-4); padding-block: var(--space-6); }
.trust--badges .trust__item p { margin: 0; font-size: 1.0625rem; line-height: 1.45; color: var(--color-ink); }
.trust--badges b { font-weight: var(--fw-semibold); }
.trust__img { background: none; width: auto; }
.trust__img--avatars { height: 58px; }
.trust__img--logos { height: 128px; margin-block: -12px; }
.trust--badges .trust__seal { width: 84px; height: 84px; margin: 0; }

/* Commercial / feature banner */
.feature-banner { position: relative; isolation: isolate; overflow: hidden; max-width: 1200px; min-height: 333px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--color-night); color: var(--color-ivory); border-radius: 16px; padding: clamp(2.5rem, 1.5rem + 3.2vw, 65px) clamp(1.25rem, 0.5rem + 4vw, 65px); text-align: center; }
.feature-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../logo/luxury-flooring-mark-gold.svg") no-repeat right -60px center / 380px; opacity: 0.08; }
.feature-banner h2 { color: var(--color-ivory); font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem); margin-bottom: var(--space-4); }
.feature-banner .btn { min-height: 56px; padding: 0 60px; }
@media (min-width: 1264px) { .feature-banner { margin-inline: -12px; } }
.feature-banner p { max-width: 58ch; margin: 0 auto var(--space-6); color: var(--color-text-on-dark-muted); }

/* CTA band */
.cta-band { background: var(--color-parchment); border-top: 1px solid var(--color-border); }
.cta-band .container { display: grid; gap: var(--space-6); align-items: center; padding-block: var(--section-y); }
@media (min-width: 900px) { .cta-band .container { grid-template-columns: 1.3fr 1fr; } }
.cta-band h2 { margin-bottom: var(--space-3); }
.cta-band img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-sm); }

/* Steps / process */
.steps { counter-reset: step; display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(var(--cols, 4), 1fr); } }
.step { counter-increment: step; padding-top: var(--space-5); border-top: 1px solid var(--color-deep-gold); }
.step::before { content: "0" counter(step); display: block; font-size: var(--fs-sm); letter-spacing: var(--tracking-wide); color: var(--color-bronze); margin-bottom: var(--space-3); }
.section--dark .step::before { color: var(--color-gold); }
.step h3 { font-size: var(--fs-lg); font-weight: var(--fw-regular); }
.step p { color: var(--color-text-muted); font-size: var(--fs-sm); margin: 0; }
.section--dark .step p { color: var(--color-text-on-dark-muted); }

/* FAQ */
.faq { border-top: 1px solid var(--color-border); }
.faq details { border-bottom: 1px solid var(--color-border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) 0; font-size: var(--fs-md); font-weight: var(--fw-medium); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--color-bronze); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 var(--space-5); color: var(--color-text-muted); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .gallery--4 { grid-template-columns: repeat(4, 1fr); } }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-sm); }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 600ms var(--ease); }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: var(--space-5) var(--space-4) var(--space-3); font-size: var(--fs-sm); color: var(--color-ivory); background: linear-gradient(transparent, rgba(21,19,15,0.8)); }

/* Project list (Our Work) */
.project { display: grid; gap: var(--space-6); padding-block: var(--space-8); border-bottom: 1px solid var(--color-border); }
.project:first-child { padding-top: 0; }
.project__meta { font-size: var(--fs-xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-bronze); }
.project .gallery { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .project .gallery { grid-template-columns: repeat(4, 1fr); } }

/* Category / product tiles */
.cat-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(var(--cols, 4), 1fr); } }
.cat { position: relative; display: block; overflow: hidden; border-radius: var(--radius-sm); color: var(--color-ivory); text-decoration: none; aspect-ratio: 3 / 4; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(21, 19, 15, 0.85)); }
.cat:hover img { transform: scale(1.04); }
.cat__label { position: absolute; z-index: 1; left: var(--space-4); right: var(--space-4); bottom: var(--space-4); }
.cat__label strong { display: block; font-size: var(--fs-lg); font-weight: var(--fw-regular); }
.cat__label span { font-size: var(--fs-xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-gold); }

.brand-list { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; }
.brand-list li { padding: 0.4rem 0.9rem; border: 1px solid var(--color-border); border-radius: var(--radius-pill); font-size: var(--fs-sm); background: var(--color-ivory); }

.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.filters button { padding: 0.5rem 1rem; border: 1px solid var(--color-border); background: transparent; border-radius: var(--radius-pill); font-size: var(--fs-sm); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--color-night); color: var(--color-ivory); border-color: var(--color-night); }

/* Blog */
.post-card time { font-size: var(--fs-xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-bronze); }
.prose { max-width: 72ch; margin-inline: auto; font-size: 1.0625rem; }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--space-7); }
.prose h3 { font-size: var(--fs-lg); font-weight: var(--fw-regular); margin-top: var(--space-6); }
.prose h4 { margin-top: var(--space-5); }
.prose img { margin: var(--space-6) 0; border-radius: var(--radius-sm); }
.prose li { margin-bottom: var(--space-2); }
.prose blockquote { margin: var(--space-6) 0; padding-left: var(--space-5); border-left: 1px solid var(--color-deep-gold); font-family: var(--font-quote); font-style: italic; font-size: var(--fs-lg); }
.prose table { width: 100%; border-collapse: collapse; margin: var(--space-5) 0; font-size: var(--fs-sm); }
.prose th, .prose td { text-align: left; padding: var(--space-3); border-bottom: 1px solid var(--color-border); }
.post-hero-img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: var(--space-7); }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--space-4); }
.form__row { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--space-2); }
.field label, .field legend { font-size: var(--fs-xs); font-weight: var(--fw-medium); letter-spacing: var(--tracking-caps); text-transform: uppercase; }
.field .req { color: var(--color-bronze); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.75rem 0.9rem; background: #FBF9F5; border: 1px solid var(--color-stone); border-radius: var(--radius-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input[type=checkbox], .field input[type=radio] { width: auto; min-height: 0; padding: 0; flex-shrink: 0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-deep-gold); box-shadow: 0 0 0 3px rgba(154, 123, 69, 0.18); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--color-error); }
.field__error { font-size: var(--fs-xs); color: var(--color-error); min-height: 0; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
@media (min-width: 640px) { .choice-grid { grid-template-columns: repeat(3, 1fr); } }
.choice { display: flex; gap: var(--space-2); align-items: center; padding: 0.7rem 0.8rem; border: 1px solid var(--color-stone); border-radius: var(--radius-sm); font-size: var(--fs-sm); cursor: pointer; background: #FBF9F5; }
.choice:has(input:checked) { border-color: var(--color-deep-gold); background: var(--color-parchment); }
.choice input { accent-color: var(--color-bronze); }
.form__note { font-size: var(--fs-xs); color: var(--color-text-muted); }
.form-card { background: var(--color-ivory); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); box-shadow: var(--shadow-md); }
.form-success { display: none; text-align: center; padding: var(--space-7) var(--space-4); }
.form-success svg { width: 56px; height: 56px; margin: 0 auto var(--space-4); color: var(--color-deep-gold); }
.is-submitted .form { display: none; }
.is-submitted .form-success { display: block; }
.form-status { font-size: var(--fs-sm); color: var(--color-error); }

.contact-list { list-style: none; padding: 0; display: grid; gap: var(--space-5); }
.contact-list li { display: flex; gap: var(--space-4); align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--color-deep-gold); margin-top: 3px; }
.contact-list strong { display: block; font-size: var(--fs-xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; font-weight: var(--fw-medium); }
.contact-list a { text-decoration: none; }
.map-embed { aspect-ratio: 16/9; width: 100%; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-parchment); display: grid; place-items: center; color: var(--color-text-muted); font-size: var(--fs-sm); text-align: center; padding: var(--space-5); }
.map-embed:has(iframe) { padding: 0; overflow: hidden; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-night); color: var(--color-text-on-dark-muted); font-size: var(--fs-sm); }
.site-footer .container { padding-block: var(--space-8) var(--space-6); }
.footer__grid { display: grid; gap: var(--space-7); grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 700px) and (max-width: 1023px) { .footer__grid { grid-template-columns: repeat(3, 1fr); } .footer__brand { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.5fr repeat(4, 1fr) 1.3fr; gap: var(--space-6); } }
.footer__brand .brand { margin-bottom: var(--space-5); }
.footer__brand .brand__mark { width: 64px; height: 64px; }
.footer__brand .brand__name { font-size: 30px; }
.footer__brand .brand__sub { font-size: 12px; }
.site-footer h2, .site-footer h4 { font-size: var(--fs-xs); font-weight: var(--fw-medium); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--color-gold); margin-bottom: var(--space-4); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.site-footer a { text-decoration: none; color: var(--color-ivory); }
.site-footer a:hover { color: var(--color-gold); }
.footer__rating { font-size: var(--fs-md); color: var(--color-ivory); line-height: 1.4; }
.footer__badge { display: block; width: 118px; height: auto; margin: var(--space-2) 0 var(--space-5); background: none; }
.footer__rating .stars { color: var(--color-gold); letter-spacing: 0.2em; display: block; margin-bottom: var(--space-2); }
.footer__bottom { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--color-border-dark); display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; align-items: center; font-size: var(--fs-xs); }
.footer__bottom nav { display: flex; gap: var(--space-5); }
.social { display: flex; gap: var(--space-3); }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--color-border-dark); border-radius: 50%; }
.social a:hover { border-color: var(--color-gold); }
.social svg { width: 16px; height: 16px; }

/* ---------- Our Work gallery (timings match the source's UIkit post gallery) ---------- */
.work-filters { position: relative; text-align: center; margin-bottom: 20px; }
.work-filters__toggle { display: none; width: 100%; min-height: 48px; padding: 0.75rem 1rem; background: transparent; border: 1px solid var(--color-ink); border-radius: var(--radius-btn); font-size: var(--fs-sm); font-weight: var(--fw-medium); letter-spacing: var(--tracking-caps); text-transform: uppercase; cursor: pointer; }
.work-filters__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 36px; }
.page-head--plain { background: transparent; border-bottom: 0; padding-bottom: 0; }
.page-head--plain + .section--work { padding-top: var(--space-6); }
.work-filter { padding: 0.5rem 0; background: none; border: 0; border-bottom: 2px solid transparent; font-size: 1.125rem; font-weight: var(--fw-medium); letter-spacing: 0.06em; color: var(--color-text-muted); cursor: pointer; transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.work-filter:hover { color: var(--color-ink); }
.work-filter.is-active { color: var(--color-ink); border-bottom-color: var(--color-ink); }
@media (max-width: 959px) {
  .work-filters__toggle { display: block; }
  .work-filters__list { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; display: none; flex-direction: column; gap: 0; padding: var(--space-2) 0; background: var(--color-ivory); border: 1px solid var(--color-border); box-shadow: var(--shadow-lg); text-align: left; }
  .work-filters.is-open .work-filters__list { display: flex; }
  .work-filter { display: block; width: 100%; padding: 0.7rem 1.25rem; border: 0; text-align: left; }
  .work-filter.is-active { background: var(--color-parchment); }
}

/* Fallback (no JS): simple CSS columns. JS adds .is-masonry and positions items absolutely. */
.work-grid { columns: 2; column-gap: 15px; }
@media (min-width: 640px) { .work-grid { columns: 3; } }
@media (min-width: 960px) { .work-grid { columns: 4; } }
.work-item { break-inside: avoid; margin-bottom: 15px; }
.work-grid.is-masonry { columns: auto; position: relative; }
@media (min-width: 1024px) { .work-grid.is-masonry { transition: height 0.5s ease-out; } }
.work-grid.is-masonry .work-item { position: absolute; margin: 0; }
.work-grid.is-animating .work-item { transition: top 0.25s ease, left 0.25s ease, width 0.25s ease, height 0.25s ease, opacity 0.25s ease; }
.work-item[hidden] { display: none; }

.work-item__inner { position: relative; overflow: hidden; border-radius: var(--radius-sm); background: var(--color-parchment); }
.work-item__inner img { width: 100%; height: auto; display: block; background: none; }
/* Scroll-in: hidden until in view, then fade + scale 0.9 → 1 over 0.5s ease-out (JS staggers 100ms) */
.work-gallery.is-ready .work-item__inner { opacity: 0; }
.work-gallery.is-ready .work-item__inner.is-inview { opacity: 1; animation: lf-fade 0.5s ease-out both, lf-scale-up 0.5s ease-out both; animation-delay: var(--spy-delay, 0ms); }
@keyframes lf-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lf-scale-up { from { transform: scale(0.9); } to { transform: scale(1); } }

/* Hover / focus overlay: fades in over 0.3s ease-out */
.work-item__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; padding: 30px; text-align: center; background: rgba(21, 19, 15, 0.7); -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px); opacity: 0; transition: opacity 0.3s ease-out; }
.work-item:hover .work-item__overlay, .work-item__overlay:focus-within { opacity: 1; }
.work-item__title { margin: 0; font-size: 18px; font-weight: var(--fw-regular); line-height: 1.35; color: #E4DDD0; text-transform: capitalize; transition: color 0.3s; }
.work-item__title:hover { color: var(--color-ivory); }
.work-item__zoom { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--color-stone); color: var(--color-ink); transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out; }
.work-item__zoom:hover { background: var(--color-ivory); }
.work-item__zoom svg { width: 15px; height: 15px; }

.work-pagination { display: flex; justify-content: center; gap: var(--space-2); margin-top: var(--space-7); }
.work-pagination button { min-width: 40px; height: 40px; padding: 0 0.75rem; border: 1px solid var(--color-border); background: transparent; border-radius: var(--radius-btn); font-size: var(--fs-sm); cursor: pointer; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.work-pagination button:hover { border-color: var(--color-ink); }
.work-pagination button[aria-current="page"] { background: var(--color-night); border-color: var(--color-night); color: var(--color-ivory); }

/* Lightbox: black backdrop fades in over 0.15s linear; slides cross-fade */
.lf-lightbox { position: fixed; inset: 0; z-index: 1010; background: #000; opacity: 0; visibility: hidden; transition: opacity 0.15s linear, visibility 0.15s linear; }
.lf-lightbox.is-open { opacity: 1; visibility: visible; }
.lf-lightbox__stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.lf-lightbox__img { max-width: 100vw; max-height: 100vh; width: auto; height: auto; background: none; opacity: 0; transition: opacity 0.25s linear; }
.lf-lightbox__img.is-shown { opacity: 1; }
.lf-lightbox__toolbar { position: absolute; left: 0; right: 0; padding: 10px; background: rgba(0, 0, 0, 0.3); color: rgba(255, 255, 255, 0.7); }
.lf-lightbox__toolbar--top { top: 0; display: flex; justify-content: flex-end; }
.lf-lightbox__toolbar--bottom { bottom: 0; text-align: center; font-size: var(--fs-sm); }
.lf-lightbox__toolbar--bottom:empty { display: none; }
.lf-lightbox button { display: inline-flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.3); border: 0; color: rgba(255, 255, 255, 0.7); cursor: pointer; transition: color 0.3s; }
.lf-lightbox button:hover { color: #fff; }
.lf-lightbox__close { width: 44px; height: 44px; background: transparent !important; font-size: 1.75rem; }
.lf-lightbox__nav { position: absolute; top: 50%; width: 50px; height: 50px; margin-top: -25px; font-size: 1.5rem; }
.lf-lightbox__nav--prev { left: 10px; } .lf-lightbox__nav--next { right: 10px; }
.lf-lightbox-page { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .work-gallery.is-ready .work-item__inner { opacity: 1; }
  .work-gallery.is-ready .work-item__inner.is-inview { animation: none; }
}

/* ---------- Home: three-image mosaic + "See Our Work" spacing ---------- */
.mosaic--3 { grid-template-rows: 1fr 1fr; gap: 8px; aspect-ratio: 1.05 / 1; }
.mosaic--3 img, .mosaic--3 img:nth-child(4) { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; grid-row: auto; }
.mosaic--3 img:first-child { grid-row: 1 / span 2; }
.work-checks { margin: var(--space-5) 0 var(--space-7); }

/* ---------- Home: "Flooring Services" cards (from the secondary source; timings match) ---------- */
.svc-head { display: grid; gap: var(--space-4); align-items: end; margin-bottom: var(--space-6); }
@media (min-width: 900px) { .svc-head { grid-template-columns: 1fr minmax(0, 360px); gap: var(--space-7); } }
.svc-head__title { margin: 0; font-size: var(--fs-2xl); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: 0.04em; line-height: 1; }
.svc-head__text { margin: 0; color: var(--color-text-muted); }
.svc-cards { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .svc-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1025px) { .svc-cards { grid-template-columns: repeat(4, 1fr); } }
.svc-card { position: relative; min-height: 320px; overflow: hidden; }
.svc-card__face { position: relative; isolation: isolate; height: 100%; min-height: 320px; display: flex; flex-direction: column; justify-content: space-between; padding: 32px 24px 24px; background-color: #6D6D6D; background-size: cover; background-position: center; color: var(--color-ivory); }
/* Legibility gradient (always on) + tint that darkens on hover (0.2s) */
.svc-card__face::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(21, 19, 15, 0.55) 0%, rgba(21, 19, 15, 0.1) 38%, rgba(21, 19, 15, 0.1) 62%, rgba(21, 19, 15, 0.6) 100%); }
.svc-card__face::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--color-night); opacity: 0.15; transition: opacity 0.2s; }
.svc-card:hover .svc-card__face::after, .svc-card__face:focus-within::after { opacity: 0.5; }
.svc-card__title { margin: 0; max-width: 60%; font-size: 1.25rem; font-weight: var(--fw-medium); line-height: 1.2; text-shadow: 0 1px 12px rgba(21, 19, 15, 0.35); }
.svc-card__title a { color: inherit; text-decoration: none; }
.svc-card__foot { display: flex; align-items: center; justify-content: space-between; }
.svc-card__more { font-size: 0.8rem; font-weight: var(--fw-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; text-shadow: 0 1px 10px rgba(21, 19, 15, 0.4); }
.svc-card__open, .svc-card__close { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; transition: background-color 0.3s, color 0.3s; }
.svc-card__open { background: var(--color-gold); color: var(--color-night); }
.svc-card__open:hover { background: var(--color-ivory); }
.svc-card__open svg, .svc-card__close svg { width: 16px; height: 16px; }
.svc-card__panel { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; padding: 16px 16px 24px 24px; background: #FBF8F2; color: var(--color-ink); opacity: 0; transform: translateY(-10px); transition: opacity 0.3s ease, transform 0.3s ease; }
.svc-card__panel[hidden] { display: none; }
.svc-card.is-showing .svc-card__panel { opacity: 1; transform: translateY(0); }
.svc-card__close { align-self: flex-end; background: var(--color-night); color: var(--color-ivory); }
.svc-card__close:hover { background: var(--color-bronze); }
.svc-card__panel-title { margin: 16px 0 16px; font-size: 1.25rem; font-weight: var(--fw-medium); line-height: 1.2; }
.svc-card__panel-title a { color: inherit; text-decoration: none; }
.svc-card__panel p { margin: 0; font-size: 0.875rem; line-height: 1.6; color: var(--color-text-muted); }
.svc-card__btn { align-self: flex-start; margin-top: auto; border-radius: var(--radius-btn); display: inline-flex; gap: 8px; align-items: center; padding: 12px 24px; background: var(--color-night); color: var(--color-ivory); font-size: 0.8rem; letter-spacing: var(--tracking-caps); text-transform: uppercase; text-decoration: none; transition: background-color 0.3s; }
.svc-card__btn:hover { background: var(--color-bronze); }
@media (max-width: 767px) { .svc-card__title { max-width: 75%; font-size: 1.5rem; } }
@media (prefers-reduced-motion: reduce) { .svc-card__panel { transition: none; } }

/* ---------- Brand logo carousel (home) ---------- */
.brands { padding-block: var(--space-5); overflow: hidden; background: #FFFFFF; } /* matches the logos' white so it reads as one strip */
.brands__viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.brands__track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: lf-marquee 45s linear infinite; }
.brands__viewport:hover .brands__track, .brands__viewport:focus-within .brands__track { animation-play-state: paused; }
.brands__track li { flex: 0 0 auto; }
.brands__track a { display: block; padding: 0 clamp(4px, 1vw, 14px); }
.brands__track a:hover img, .brands__track a:focus-visible img { transform: scale(1.05); }
.brands__track img { width: clamp(150px, 16vw, 220px); aspect-ratio: 2 / 1; height: auto; object-fit: cover; background: none; transition: transform 0.3s var(--ease); }
@keyframes lf-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .brands__track { animation: none; }
  .brands__viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Quote page (sizes measured from the primary source's /quote at 1440px) ---------- */
.quote-page { padding-top: clamp(3rem, 2rem + 3vw, 5rem); }
.quote__grid { display: grid; gap: var(--space-7); align-items: start; max-width: 1240px; }
@media (min-width: 1000px) { .quote__grid { grid-template-columns: 600px minmax(0, 1fr); gap: 10px; } }
@media (min-width: 1264px) { .quote__grid { margin-inline: calc(50% - 600px); max-width: none; width: 1200px; padding-inline: 0; } }
.quote__intro { display: flex; flex-direction: column; align-items: center; text-align: center; min-height: 595px; padding: 48px 24px 0; background: transparent; border-radius: 0; overflow: hidden; }
.quote__intro h1 { font-size: 36px; line-height: 1.13; margin-bottom: 12px; }
.quote__intro p { max-width: 420px; font-size: 16px; line-height: 28px; color: var(--color-text-muted); margin-bottom: 48px; }
.quote__intro img { width: calc(100% + 48px); max-width: none; height: auto; aspect-ratio: 457 / 201; margin: auto -24px 0; object-fit: cover; object-position: 50% 50%; border-radius: 0; background: none; }
.quote__side { padding: 0 20px; }
.quote__call { margin: 0; text-align: center; font-size: clamp(1.75rem, 1.3rem + 1.4vw, 36px); line-height: 1.13; font-weight: 700; letter-spacing: -0.01em; }
.quote__call a { text-decoration: none; white-space: nowrap; }
.quote__or { display: flex; align-items: center; gap: var(--space-4); margin: 28px 0 34px; font-size: 13px; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--color-text-muted); }
.quote__or::before, .quote__or::after { content: ""; flex: 1; height: 1px; background: var(--color-border); }
.q-form { display: grid; gap: 17px; max-width: 540px; margin-inline: auto; }
.q-row { display: grid; gap: 17px 16px; }
@media (min-width: 560px) { .q-row { grid-template-columns: 1fr 1fr; } }
.q-form .field input:not([type=radio]):not([type=checkbox]), .q-form .field textarea { min-height: 56px; padding: 14px 16px; background: #FBF9F5; border: 1px solid var(--color-stone); border-radius: 8px; font-size: 15px; }
.q-form .field textarea { min-height: 140px; }
.q-form ::placeholder { color: #8C8478; }
.q-row--choices { margin-top: 7px; }
.q-form .field .q-legend { padding: 0; margin-bottom: 14px; font-size: 16px; line-height: 28px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--color-ink); }
.q-form .field .q-radio, .q-form .field .q-check { display: flex; align-items: flex-start; gap: 12px; padding: 1px 0; letter-spacing: 0; text-transform: none; font-weight: var(--fw-regular); font-size: 16px; line-height: 28px; cursor: pointer; }
.q-radio input, .q-check input { accent-color: var(--color-bronze); width: 18px; height: 18px; margin: 5px 0 0; flex-shrink: 0; }
.q-consent { display: grid; gap: 10px; padding-top: 20px; border-top: 1px solid var(--color-border); }
.q-form .q-check span { font-size: 13px; line-height: 20px; color: var(--color-text-muted); }
.q-submit { justify-self: center; min-width: 203px; min-height: 56px; margin-top: 18px; font-size: 16px; }
.q-success-title { font-size: var(--fs-lg); }

/* ---------- Before / after comparison slider (matches the source's image-compare widget:
   after on the left, before on the right, starts at 80%, white 2px bar, blurred circle handle, 400ms ease-out) ---------- */
.ba { --pos: 80%; position: relative; overflow: hidden; aspect-ratio: var(--ba-ratio, 3 / 4); border-radius: var(--radius-md); background: var(--color-parchment); user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: ew-resize; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: none; pointer-events: none; -webkit-user-drag: none; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); transition: clip-path 400ms ease-out; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; transition: left 400ms ease-out; outline: none; }
.ba.is-dragging .ba__before, .ba.is-dragging .ba__handle { transition-duration: 120ms; }
.ba__circle { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; transform: translate(-50%, -50%); display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; background: rgba(21, 19, 15, 0.18); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); box-shadow: 0 0 10px rgba(0, 0, 0, 0.33); }
.ba__circle svg { width: 22px; height: 22px; }
.ba__handle:focus-visible .ba__circle { outline: 2px solid var(--color-gold); outline-offset: 3px; }
.ba__label { position: absolute; top: 14px; padding: 0.3rem 0.7rem; border-radius: var(--radius-pill); background: rgba(21, 19, 15, 0.55); color: var(--color-ivory); font-size: var(--fs-xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.ba__label--after { left: 14px; } .ba__label--before { right: 14px; }
.ba:hover .ba__label, .ba:focus-within .ba__label { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .ba__before, .ba__handle { transition: none; } }

/* ---------- Service pages: "Our Approach" (sizes from the primary source at 1440px) ---------- */
.approach-head { max-width: 840px; }
.approach-head h2 { font-size: clamp(2.25rem, 1.5rem + 2.6vw, 60px); font-weight: 700; }
.approach-head p { font-size: 16px; line-height: 28px; }
.approach { display: grid; grid-template-columns: 1fr; row-gap: 28px; max-width: 1200px; margin-inline: auto; }
@media (min-width: 800px) { .approach { grid-template-columns: 1fr 1fr; } .approach__item:nth-child(odd) { border-right: 1px solid var(--color-border); } }
.approach__item { padding: 40px 40px 40px; transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s; }
/* Hover (matches source): lifts into a light card with a soft shadow; the divider fades out */
.approach__item:hover { position: relative; z-index: 1; background: #FFFDF9; border-color: transparent !important; box-shadow: 0 20px 60px -15px rgba(21, 19, 15, 0.22); }
@media (max-width: 799px) { .approach__item { padding: 28px 8px; border-bottom: 1px solid var(--color-border); } .approach__item:last-child { border-bottom: 0; } }
.approach__icon { width: 56px; height: 56px; color: var(--color-ink); margin-bottom: 24px; }
.approach__item h3 { margin: 0; font-size: 21px; font-weight: var(--fw-semibold); line-height: 1.05; }
.approach__step { display: block; margin-top: 4px; font-size: 14px; color: var(--color-text-muted); }
.approach__item p { margin: 18px 0 0; max-width: 520px; font-size: 16px; line-height: 28px; color: var(--color-text-muted); }

/* Before/after split: 580 × 773 portrait slider, text centred on the right */
.ba-split { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 900px) { .ba-split { grid-template-columns: 600px minmax(0, 1fr); gap: 0; } .ba-split > .ba { margin-left: 10px; } }
.approach-section .container, .container.ba-split { max-width: calc(1200px + 2 * var(--gutter)); }
.ba--tall { width: 100%; max-width: 580px; aspect-ratio: 580 / 773 !important; }
.ba-split__text { text-align: center; }
.ba-split__text h2 { max-width: 12ch; margin: 0 auto var(--space-5); font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem); font-weight: 700; line-height: 1.15; }

/* ---------- Motion: subtle fade only ---------- */
/* Scroll reveal: fade in + rise 24px over 1s (source uses Elementor fadeIn / fadeInUp, 1.25s) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s cubic-bezier(0.22, 0.61, 0.36, 1), transform 1s cubic-bezier(0.22, 0.61, 0.36, 1), background-color 0.3s, border-color 0.3s, box-shadow 0.3s; will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-anim .reveal, .no-js .reveal { opacity: 1; transform: none; transition: none; }
.no-anim *, .no-anim *::before, .no-anim *::after { transition: none !important; }
.no-anim .card:hover .card__media img, .no-anim .gallery figure:hover img, .no-anim .cat:hover img { transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .fade-in { opacity: 1; }
}

/* ---------- Multi-step form (estimator) ---------- */
.stepper { display: flex; gap: var(--space-2); list-style: none; padding: 0; margin: 0 0 var(--space-6); }
.stepper li { flex: 1; height: 3px; background: var(--color-stone); }
.stepper li.is-active, .stepper li.is-done { background: var(--color-deep-gold); }
.step-panel { border: 0; padding: 0; margin: 0; min-width: 0; }
.step-panel legend { font-size: var(--fs-xl); font-weight: var(--fw-semibold); margin-bottom: var(--space-2); padding: 0; }
.step-panel legend:focus { outline: none; }
.step-actions { display: flex; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-5); }
.step-label { font-size: var(--fs-xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-bronze); }

/* ---------- Tables (price guides) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.price-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); background: var(--color-ivory); }
.price-table th, .price-table td { text-align: left; padding: 0.9rem 1rem; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.price-table thead th { background: var(--color-night); color: var(--color-ivory); font-weight: var(--fw-medium); letter-spacing: 0.06em; text-transform: uppercase; font-size: var(--fs-xs); }
.price-table tbody tr:last-child td { border-bottom: 0; }

/* ---------- Before / after ---------- */
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.before-after figure { margin: 0; position: relative; }
.before-after img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-sm); }
.before-after--landscape img { aspect-ratio: 4 / 3; }
.before-after figcaption { position: absolute; top: var(--space-3); left: var(--space-3); padding: 0.25rem 0.6rem; background: var(--color-night); color: var(--color-ivory); font-size: var(--fs-xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; }

/* ---------- Area / neighbourhood list ---------- */
.areas { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.areas li { padding: 0.45rem 0.9rem; border: 1px solid var(--color-border); border-radius: var(--radius-pill); font-size: var(--fs-sm); background: var(--color-ivory); }
.section--alt .areas li { background: #FAF7F1; }

/* ---------- Utilities ---------- */
.mt-4 { margin-top: var(--space-4); } .mt-6 { margin-top: var(--space-6); } .mt-8 { margin-top: var(--space-8); }

/* ---------- Placeholder highlighting (dev aid) ---------- */
[data-lf-missing] { outline: 1px dashed var(--color-error); outline-offset: 2px; }

/* Installer cut-out (transparent PNG/WebP): CTA band + quote card */
.cta-band .container { padding-bottom: 0; }
.cta-band .container > div:first-child { padding-bottom: var(--section-y); }
.cta-band img.cta-band__person { width: auto; max-width: 100%; height: clamp(320px, 30vw, 440px); aspect-ratio: auto; object-fit: contain; border-radius: 0; background: none; justify-self: center; align-self: end; }
@media (max-width: 899px) { .cta-band .container > div:first-child { padding-bottom: 0; } }
.quote__intro img.quote__person { width: auto; max-width: 100%; height: 390px; aspect-ratio: auto; margin: auto auto 0; object-fit: contain; object-position: bottom; background: none; border-radius: 0; }

/* ---------- Load-in animations (values read from the primary source: uicoreFadeInUp = rise 40px + fade)
   Header items: 1s, 0.3s delay. Hero: heading 1.9s, subtext +0.2s, buttons +0.4s. Skipped on .no-anim pages. ---------- */
@keyframes lf-fade-up { from { opacity: 0; transform: translate3d(0, 40px, 0); } to { opacity: 1; transform: none; } }
body:not(.no-anim) .site-header .brand,
body:not(.no-anim) .site-header .nav__list > .nav__item,
body:not(.no-anim) .site-header .header__cta,
body:not(.no-anim) .site-header .menu-toggle { animation: lf-fade-up 1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s both; }
/* The opening section of every page (photo hero, plain title, quote intro, confirm…) */
body:not(.no-anim) main > :first-child h1 { animation: lf-fade-up 1.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0s both; }
body:not(.no-anim) main > :first-child h1 + p { animation: lf-fade-up 1.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s both; }
body:not(.no-anim) main > :first-child .btn-row { animation: lf-fade-up 1.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.4s both; }
@media (prefers-reduced-motion: reduce) {
  .site-header .brand, .site-header .nav__item, .site-header .header__cta, .site-header .menu-toggle,
  main > :first-child h1, main > :first-child h1 + p, main > :first-child .btn-row { animation: none !important; }
}

/* Commercial "Our Process": icon above each step (brand bronze) */
.step--icon { counter-increment: step; }
.step--icon .step__icon { display: block; width: 48px; height: 48px; margin: var(--space-2) 0 var(--space-4); color: var(--color-bronze); }
.step--icon h3 { color: var(--color-bronze); font-weight: var(--fw-semibold); }

.step--icon { border-top: 0; padding-top: 0; }

/* ---------- Contact page (layout of the primary source's /contact) ---------- */
.contact-hero { padding-block: clamp(4rem, 3rem + 5vw, 8rem); }
.contact-hero__grid { display: grid; gap: var(--space-7); align-items: center; max-width: 1150px; }
@media (min-width: 900px) { .contact-hero__grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.contact-hero__info h1 { font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); margin-bottom: var(--space-5); }
.contact-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-lines li { display: flex; align-items: center; gap: 12px; font-size: 1rem; color: var(--color-text-muted); }
.contact-lines svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--color-ink); }
.contact-lines a { text-decoration: none; color: inherit; }
.contact-lines a:hover { color: var(--color-bronze); }
.contact-form { max-width: none; gap: 14px; }
.contact-form .field textarea { min-height: 110px; }
.contact-form__submit { justify-self: end; min-width: 194px; min-height: 54px; border-radius: var(--radius-pill); text-transform: none; letter-spacing: 0.02em; font-size: 1rem; font-weight: var(--fw-semibold); }

/* ==========================================================================
   Dark page theme (body.theme-dark) — used on commercial.html.
   Remaps the brand tokens so every component follows automatically.
   ========================================================================== */
body.theme-dark {
  --color-bg: #15130F;
  --color-bg-alt: #1D1A15;
  --color-bg-dark: #0E0D0A;
  --color-text: #F4EFE6;
  --color-ink: #F4EFE6;
  --color-text-muted: #B8B0A2;
  --color-border: #3A352D;
  --color-stone: #4A443A;
  --color-parchment: #24201A;
  --color-accent: var(--color-gold);
  --color-bronze: #C9A96E;
  background: var(--color-bg); color: var(--color-text);
}
body.theme-dark .topbar { background: #0E0D0A; }
/* Header when solid (after scrolling past the hero) */
body.theme-dark .site-header { background: #15130F; border-bottom-color: #2A261F; box-shadow: 0 6px 24px -18px rgba(0,0,0,0.8); }
body.theme-dark .site-header .brand { color: var(--color-ivory); }
body.theme-dark .site-header .brand__sub { color: var(--color-gold); }
body.theme-dark .site-header .brand__sub::after { background: var(--color-gold); }
body.theme-dark .site-header .brand__mark--dark { display: none; }
body.theme-dark .site-header .brand__mark--light { display: block; }
body.theme-dark .nav__link { color: var(--color-ivory); }
body.theme-dark .nav__link:hover, body.theme-dark .nav__link[aria-current="page"] { color: var(--color-gold); }
body.theme-dark .header__cta { background: var(--color-gold); color: #15130F; }
body.theme-dark .header__cta:hover { background: var(--color-ivory); }
body.theme-dark .menu-toggle { border-color: #3A352D; }
body.theme-dark .menu-toggle span, body.theme-dark .menu-toggle span::before, body.theme-dark .menu-toggle span::after { background: var(--color-ivory); }
body.theme-dark .nav__dropdown { background: #1D1A15; box-shadow: 0 18px 40px -14px rgba(0,0,0,0.7); }
body.theme-dark .nav__dropdown a { color: var(--color-ivory); }
body.theme-dark .nav__dropdown a:hover { color: var(--color-gold); }
/* Buttons */
body.theme-dark .btn--primary { background: var(--color-gold); color: #15130F; }
body.theme-dark .btn--primary:hover { background: var(--color-ivory); color: #15130F; }
body.theme-dark .btn--outline { border-color: rgba(244,239,230,0.6); color: var(--color-ivory); }
body.theme-dark .btn--outline:hover { background: var(--color-ivory); color: #15130F; }
/* Sections, cards, lists */
body.theme-dark .section--dark { background: #0E0D0A; }
body.theme-dark .section--alt { background: var(--color-bg-alt); }
body.theme-dark .checks li::before { border-color: var(--color-gold); }
body.theme-dark .card, body.theme-dark .testimonial { background: #1D1A15; }
body.theme-dark .step--icon .step__icon, body.theme-dark .step--icon h3 { color: var(--color-gold); }
body.theme-dark .step::before { color: var(--color-gold); }
body.theme-dark a { text-decoration-color: var(--color-gold); }
/* Form */
body.theme-dark .q-form .field input:not([type=radio]):not([type=checkbox]),
body.theme-dark .q-form .field textarea { background: #1D1A15; border-color: #4A443A; color: var(--color-ivory); }
body.theme-dark .q-form ::placeholder { color: #8F877A; }
body.theme-dark .q-form .field input:focus, body.theme-dark .q-form .field textarea:focus { border-color: var(--color-gold); box-shadow: 0 0 0 3px rgba(201,169,110,0.2); }
body.theme-dark .q-radio input, body.theme-dark .q-check input { accent-color: var(--color-gold); }
body.theme-dark .form-success svg { color: var(--color-gold); }
/* Closing band */
body.theme-dark .cta-band { background: #1D1A15; border-top-color: #2A261F; }
body.theme-dark .q-radio input, body.theme-dark .q-check input { appearance: none; -webkit-appearance: none; width: 17px; height: 17px; border: 1.5px solid #8F877A; background: transparent; display: inline-grid; place-content: center; cursor: pointer; }
body.theme-dark .q-radio input { border-radius: 50%; }
body.theme-dark .q-check input { border-radius: 3px; }
body.theme-dark .q-radio input::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-gold); transform: scale(0); transition: transform 0.15s; }
body.theme-dark .q-check input::before { content: ""; width: 9px; height: 5px; border: 2px solid #15130F; border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform 0.15s; }
body.theme-dark .q-radio input:checked { border-color: var(--color-gold); }
body.theme-dark .q-radio input:checked::before { transform: scale(1); }
body.theme-dark .q-check input:checked { background: var(--color-gold); border-color: var(--color-gold); }
body.theme-dark .q-check input:checked::before { transform: rotate(-45deg) scale(1); }
body.theme-dark .q-radio input:focus-visible, body.theme-dark .q-check input:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 2px; }

/* Footer: site-builder credit */
.footer__credit { display: inline-flex; align-items: center; gap: 6px; color: var(--color-text-on-dark-muted) !important; opacity: 0.85; transition: opacity 0.2s; }
.footer__credit:hover { opacity: 1; color: var(--color-ivory) !important; }
.footer__credit img { width: 26px; height: 20px; background: none; }
.footer__credit strong { font-weight: var(--fw-semibold); color: var(--color-ivory); letter-spacing: 0.02em; }

/* ==========================================================================
   Mobile hardening
   ========================================================================== */
main { overflow-x: clip; }                                   /* nothing can push the page sideways */
@media (max-width: 640px) { .framed::after { inset: 10px -6px -10px 10px; } }
.svc-card__open, .svc-card__close { width: 44px; height: 44px; }

/* Phones: 16px inputs (stops iOS auto-zoom on focus), equal full-width stacked CTAs */
@media (max-width: 767px) {
  input:not([type=radio]):not([type=checkbox]), select, textarea,
  .q-form .field input:not([type=radio]):not([type=checkbox]), .q-form .field textarea, .field input, .field select, .field textarea { font-size: 16px !important; }
}
@media (max-width: 560px) {
  .btn-row { flex-direction: column; align-items: stretch; width: 100%; max-width: 380px; gap: 12px; }
  .hero .btn-row { margin-inline: auto; }
  .btn-row .btn { width: 100%; }
  .q-submit, .contact-form__submit { width: 100%; justify-self: stretch; }
  .feature-banner .btn { width: 100%; padding-inline: 1.5rem; }
}
/* Touch screens: no sticky hover states */
@media (hover: none) {
  .tiles--hover .tile:hover, .approach__item:hover { background: transparent; box-shadow: none; }
  .tiles--hover .tile:hover { border-color: var(--color-border); }
  .approach__item:nth-child(odd):hover { border-right-color: var(--color-border) !important; }
  .card:hover { box-shadow: none; border-color: var(--color-border); }
  .card:hover .card__media img, .gallery figure:hover img, .cat:hover img { transform: none; }
}
.work-filters { z-index: 30; }
@media (max-width: 959px) { .work-filters__list { background: var(--color-ivory); opacity: 1; } }
/* Grid/flex children may shrink below their content width (prevents overflow on 320px screens) */
.split > *, .grid > *, .form__row > *, .q-row > *, .quote__grid > *, .contact-hero__grid > *, .cta-band .container > *, .ba-split > * { min-width: 0; }
.split { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 359px) { .choice-grid { grid-template-columns: 1fr; } }
.work-filter { min-width: 44px; }
.mobile-nav .btn { display: flex; align-items: center; justify-content: center; text-align: center; padding: 0.75rem 1.5rem; }
/* Phones: link columns in pairs (Company | Services, Quick Access | Service Areas); brand + contact full width */
@media (max-width: 699px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-6) var(--space-5); }
  .footer__grid > .footer__brand, .footer__grid > div:last-child { grid-column: 1 / -1; }
  .site-footer .container { padding-block: var(--space-7) var(--space-5); }
  .footer__bottom { margin-top: var(--space-6); }
}
/* Phones: no top bar (phone number) above the header */
@media (max-width: 767px) {
  .topbar { display: none; }
  .site-header { top: 0; }
}

/* 404 page */
.notfound { padding-block: clamp(4rem, 3rem + 5vw, 7rem) var(--space-6); }
.page-head .notfound__code, .notfound__code { margin: 0 0 var(--space-2); font-size: clamp(4.5rem, 3rem + 7vw, 8rem); font-weight: var(--fw-semibold); line-height: 1; color: var(--color-deep-gold); letter-spacing: 0.02em; }
.notfound__links { list-style: none; padding: 0; margin: var(--space-5) auto 0; max-width: 900px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.notfound__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--color-border); border-radius: var(--radius-pill); text-decoration: none; font-size: var(--fs-sm); transition: border-color var(--dur), color var(--dur); }
.notfound__links a:hover { border-color: var(--color-bronze); color: var(--color-bronze); }
/* Related links (internal linking) */
.related-links { border-top: 1px solid var(--color-border); }
.related-links__title { font-size: var(--fs-lg); margin-bottom: var(--space-4); }
.related-links__grid { display: grid; gap: var(--space-6); }
@media (min-width: 768px) { .related-links__grid { grid-template-columns: 1fr 1fr; } }
.related-links__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.related-links__list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--color-border); border-radius: var(--radius-pill); text-decoration: none; font-size: var(--fs-sm); transition: border-color var(--dur), color var(--dur); }
.related-links__list a:hover { border-color: var(--color-bronze); color: var(--color-bronze); }
