/* ============================================================
   Covering Broadway — Flooring & Window Coverings, Red Lodge MT
   Design system: "Mountain Modern" — sunlit Montana great rooms.
   Linen canvas, espresso ink, honey-oak/cognac accent, espresso
   dark bands, Poppins display / Nunito Sans body.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Nunito+Sans:opsz,wght@6..12,300;6..12,400;6..12,600;6..12,700&display=swap');

:root {
  /* --- Warm ink + surfaces (Covering Broadway brand) --- */
  --ink: #241a12;
  --ink-2: #4d3f33;
  --muted: #86786a;
  --bg: #fdfaf4;          /* linen white */
  --bg-alt: #f3eadc;      /* oatmeal linen sections */
  --bg-dark: #221912;     /* espresso — nav / footer / dark bands */
  --bg-dark-2: #2f241a;

  /* --- Brand gold accent ---
     --red* names kept so every rule recolors from here.
     --red        deep gold: text / icons / borders on white (AA on white)
     --red-bright bright gold: FILLS (buttons/announce/chips) with dark text
     --red-soft   warm gold tint background */
  --red: #8f5e26;
  --red-dark: #74491a;
  --red-bright: #c98f45;
  --red-soft: #f4e6d2;
  --gold-soft-hi: #e8c896;

  /* --- Lines --- */
  --line: #e8dccb;
  --line-2: #dbcbb4;
  --line-dark: rgba(255,255,255,.14);

  --ring: rgba(143,94,38,.32);
  --danger: #c0392f;
  --danger-ring: rgba(192,57,47,.22);

  /* --- Legacy aliases so existing inline styles resolve --- */
  --gold: var(--red);
  --gold-soft: var(--red);
  --gold-bright: var(--red-dark);
  --brass: var(--red);
  --brass-soft: var(--red);
  --brass-bright: var(--red-dark);
  --fg: var(--ink);
  --fg-muted: var(--muted);
  --stone-700: var(--ink-2);
  --border: var(--line);
  --bg-surface: var(--bg);
  --surface: var(--bg);

  /* --- Type --- */
  --font-display: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-statement: var(--font-display);

  /* --- Spacing rhythm --- */
  --space-section: clamp(4rem, 8vw, 7.5rem);
  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --radius: 6px;
  --radius-sm: 4px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(36,26,18,.06), 0 2px 8px rgba(36,26,18,.05);
  --shadow-md: 0 10px 30px rgba(36,26,18,.10), 0 3px 10px rgba(36,26,18,.06);
  --shadow-lg: 0 30px 70px rgba(36,26,18,.18);

  --ease: cubic-bezier(.2,.7,.25,1);
}

/* ----------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }

::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }

/* ----------------------------------------------------------- Layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
main > section { padding-block: var(--space-section); }
main > section:first-child { padding-top: 0; }

/* ----------------------------------------------------------- Typography */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; color: var(--ink); letter-spacing: -.01em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--red);
}
.center .eyebrow, .section-head.center .eyebrow { text-align: center; }

.section-head { max-width: 680px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-title, .section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-top: .8rem;
}
.lead {
  font-weight: 400;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-2);
  margin-top: 1rem;
  max-width: 62ch;
}
.center .lead, .section-head.center .lead { margin-inline: auto; }

/* ----------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display);
  font-size: .92rem; font-weight: 600; letter-spacing: .01em;
  padding: .9rem 1.7rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn[hidden] { display: none; }
.btn-sm { font-size: .82rem; padding: .62rem 1.15rem; }
.btn-sm svg { width: 15px; height: 15px; }

.btn-primary { background: linear-gradient(180deg, var(--red-bright), #b47a35); color: #1f1409; box-shadow: 0 6px 18px rgba(143,94,38,.28); }
.btn-primary:hover { background: linear-gradient(180deg, #d69e55, var(--red-bright)); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(143,94,38,.4); }

.btn-outline-light { border-color: rgba(255,255,255,.65); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }

.btn-ghost { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--red); transform: translateY(-2px); }

.link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: .92rem;
  color: var(--red);
  transition: gap .2s var(--ease), color .2s var(--ease);
}
.link svg { width: 17px; height: 17px; }
.link:hover { color: var(--red-dark); gap: .8rem; }

/* ----------------------------------------------------------- Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ===========================================================
   Chrome — announce / topbar / header
   =========================================================== */
.announce { background: linear-gradient(90deg, var(--red-bright), #d6a262 55%, var(--red-bright)); color: #1c1409; }
.announce .container { display: flex; justify-content: center; }
.announce p {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .5rem 0; text-align: center;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 500; letter-spacing: .02em;
}
.announce svg { width: 14px; height: 14px; flex: none; color: #1c1409; }
.announce strong { font-weight: 700; }
.announce .dot { opacity: .55; }

.topbar { background: var(--bg-alt); color: var(--ink-2); border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: .8rem; }
.tb-left { display: flex; align-items: center; gap: .9rem; padding: .5rem 0; flex-wrap: wrap; }
.tb-left a { display: inline-flex; align-items: center; gap: .45rem; transition: color .2s var(--ease); }
.tb-left a:hover { color: var(--red-dark); }
.tb-left svg { width: 15px; height: 15px; color: var(--red); }
.tb-left .sep { color: var(--muted); opacity: .6; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 250, 244, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.header.scrolled { box-shadow: 0 10px 30px rgba(33, 28, 24, .10); }
.header.scrolled .nav { padding-block: .6rem; }
.header.scrolled .brand img { height: 46px; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; padding-block: 1.05rem; transition: padding .3s var(--ease); }

.brand { order: 1; display: inline-flex; align-items: center; gap: .75rem; flex-shrink: 0; min-width: 0; }
.brand img { height: 56px; width: auto; transition: height .3s var(--ease); }
.wordmark { display: flex; flex-direction: column; line-height: 1.04; min-width: 0; }
.wordmark b { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: .01em; color: var(--ink); }
.wordmark span { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--red); font-weight: 600; }

.nav-links {
  display: flex; align-items: center; justify-content: center; gap: .35rem;
  order: 3; flex-basis: 100%;
  margin-top: .55rem; padding-top: .55rem;
  border-top: 1px solid var(--line);
}
.nav-item { position: relative; }
.nav-link {
  position: relative;
  display: inline-flex; align-items: center; gap: .28rem;
  padding: .5rem .56rem; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-size: .82rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2);
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.nav-link svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav-link:hover { color: var(--red-dark); }
.nav-link.active { color: var(--red-dark); }
.nav-link::after {
  content: ""; position: absolute; left: .56rem; right: .56rem; bottom: .14rem; height: 2px;
  background: var(--red); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.has-menu:hover .nav-link svg { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + .45rem); left: 0;
  min-width: 220px; padding: .45rem;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.has-menu:hover .dropdown, .has-menu:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: .6rem .75rem; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: .92rem; color: var(--ink-2); transition: background .16s, color .16s; }
.dropdown a:hover { background: var(--red-soft); color: var(--red); }

.nav-actions { order: 2; margin-left: auto; display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.nav-actions .btn { padding: .6rem .95rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.nav-toggle { display: none; padding: .5rem; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

/* ===========================================================
   Home hero — full-bleed photo + bold headline
   =========================================================== */
.hero { position: relative; padding: 0; isolation: isolate; background: var(--bg-dark); }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.hero-slide { position: absolute; inset: 0; opacity: 0; will-change: opacity, transform; animation: heroCycle 24s var(--ease) infinite; }
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: -8s; }
.hero-slide:nth-child(3) { animation-delay: -16s; }
@keyframes heroCycle {
  0% { opacity: 0; transform: scale(1.04); } 4% { opacity: 1; }
  30% { opacity: 1; } 36% { opacity: 0; } 100% { opacity: 0; transform: scale(1.14); }
}
@media (prefers-reduced-motion: reduce) { .hero-slide { animation: none; transform: scale(1.04); } .hero-slide:nth-child(1) { opacity: 1; } }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,20,12,.6), rgba(30,20,12,0) 32%),
              linear-gradient(90deg, rgba(30,20,12,.82) 0%, rgba(30,20,12,.5) 45%, rgba(30,20,12,.12) 100%),
              linear-gradient(0deg, rgba(30,20,12,.62), rgba(30,20,12,0) 45%);
}

/* Full-screen hero: it slides up behind the announce bar, topbar and header
   (site.js sets --chrome-h to their height), then fills the rest of the screen. */
.hero { margin-top: calc(-1 * var(--chrome-h, 0px)); }
.hero-inner {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: calc(var(--chrome-h, 0px) + clamp(2.5rem, 6vh, 4.5rem)) clamp(3rem, 7vh, 5rem);
  max-width: 760px; color: #fff;
}

/* Home chrome sits transparent over the hero photo until the page scrolls. */
body[data-page="home"] .announce, body[data-page="home"] .topbar { position: relative; z-index: 51; }
body[data-page="home"] .topbar { background: transparent; color: rgba(255,255,255,.86); border-bottom-color: rgba(255,255,255,.16); }
body[data-page="home"] .topbar svg, body[data-page="home"] .tb-left a:hover { color: var(--gold-soft-hi); }
body[data-page="home"] .header:not(.scrolled) { background: transparent; backdrop-filter: none; border-bottom-color: rgba(255,255,255,.16); }
body[data-page="home"] .header:not(.scrolled) .wordmark b,
body[data-page="home"] .header:not(.scrolled) .nav-link,
body[data-page="home"] .header:not(.scrolled) .nav-toggle { color: #fff; }
body[data-page="home"] .header:not(.scrolled) .wordmark span,
body[data-page="home"] .header:not(.scrolled) .nav-link:hover { color: var(--gold-soft-hi); }
body[data-page="home"] .header:not(.scrolled) .nav-link::after { background: var(--gold-soft-hi); }
body[data-page="home"] .header:not(.scrolled) .nav-links { border-top-color: rgba(255,255,255,.16); }
body[data-page="home"] .header { transition: box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease); }
.hero .badge {
  display: inline-flex; align-items: center; gap: .55rem; align-self: flex-start;
  padding: .45rem 1rem; border-radius: var(--radius-pill);
  background: var(--red); font-family: var(--font-display);
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: #fff;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 4.2rem);
  font-weight: 800; line-height: 1.06; letter-spacing: -.02em; color: #fff; margin-top: 0;
}
.hero h1 em { font-style: normal; color: var(--red-bright); }
.hero p.hero-sub { font-family: var(--font-body); font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: rgba(255,255,255,.88); font-weight: 400; margin-top: 1.4rem; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.4rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3.2rem); margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.2); }
.hero-stats .stat b { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 3vw, 2.6rem); color: #fff; display: block; line-height: 1; }
.hero-stats .stat span { font-family: var(--font-display); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-top: .55rem; display: block; font-weight: 500; }

/* staged hero entrance on load */
.hero-inner > * { animation: heroUp .9s var(--ease) both; }
.hero h1 { animation-delay: .08s; }
.hero p.hero-sub { animation-delay: .24s; }
.hero-cta { animation-delay: .38s; }
.hero-stats { animation-delay: .52s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* short laptop screens: tighten the stack so the stats still land above the fold */
@media (max-height: 820px) and (min-width: 721px) {
  .hero-inner { padding-block: calc(var(--chrome-h, 0px) + 1.25rem) 1.5rem; }
  .hero p.hero-sub { margin-top: 1rem; }
  .hero-cta { margin-top: 1.6rem; }
  .hero h1 { font-size: clamp(2.3rem, min(4.6vw, 6.6vh), 4.2rem); }
  .hero-stats { margin-top: 1.8rem; padding-top: 1.3rem; }
}

/* ===========================================================
   Explore grid (home) + Floor grid — label BELOW the image
   =========================================================== */
.explore-grid, .floors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); margin-top: 3rem; }
#explore .section-head { margin-bottom: 1rem; }

.floor-card {
  position: relative; display: flex; flex-direction: column; width: 100%; text-align: left;
  background: none; border: none; color: inherit;
}
.floor-card img {
  width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover;
  border-radius: var(--radius);
  transition: transform .5s var(--ease), box-shadow .3s var(--ease), filter .3s var(--ease);
  box-shadow: var(--shadow-sm);
}
.floor-card:hover img { transform: translateY(-5px) scale(1.02); box-shadow: var(--shadow-md); }
.floor-card .label {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 1rem;
}
.floor-card .label h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--ink); transition: color .2s var(--ease); }
.floor-card:hover .label h3 { color: var(--red); }
.floor-card .label-text p { font-size: .9rem; color: var(--muted); margin-top: .1rem; }
.floor-card .arrow {
  flex: none; width: 40px; height: 40px; border-radius: var(--radius-pill);
  display: grid; place-items: center; color: var(--red);
  border: 2px solid var(--line-2); transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.floor-card .arrow svg { width: 18px; height: 18px; }
.floor-card:hover .arrow { background: var(--red); border-color: var(--red); color: #fff; }

/* -----------------------------------------------------------
   Home — the Explore section lays its own hardwood floor. The
   section is tall, the stage sticks, site.js drops planks as the
   page scrolls, then the cards fade in on the finished floor.
   ----------------------------------------------------------- */
/* scroll room is min-height, not padding: a sticky child is confined to the content box */
.lay { padding: 0; min-height: 210vh; position: relative; }
.lay-stage {
  position: sticky; top: 0; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; isolation: isolate;
  padding-block: clamp(5rem, 9vh, 7rem) clamp(3rem, 6vh, 4.5rem);
  background: #fff; /* bare white until the planks go down */
}
.lay-floor { position: absolute; inset: 0; z-index: 0; display: flex; flex-direction: column; }
.lay-row { display: flex; flex: 1; min-height: 0; }
.plank {
  position: relative; flex: 0 0 var(--w); height: 100%;
  background: url(images/plank.jpg) var(--gx) 0 / auto 100% repeat-x;
  filter: brightness(var(--b, 1));
  box-shadow: inset 0 1px 0 rgba(255,236,205,.14), inset 0 -2px 0 rgba(10,5,0,.7), inset 1px 0 0 rgba(255,236,205,.08), inset -2px 0 0 rgba(10,5,0,.6);
  opacity: 0;
  transform: translate(-28px, -70px) scale(1.06);
  transition: transform .5s cubic-bezier(.3,.9,.3,1), opacity .2s linear, box-shadow .5s;
}
.plank.flip { background-image: url(images/plank-b.jpg); }
.plank.laid { opacity: 1; transform: none; }
.plank.laid::before { /* a plank still in the air throws a shadow on the subfloor */
  content: none;
}
.plank:not(.laid) { box-shadow: 0 30px 28px rgba(30,15,0,.3); }
.lay-stage::before { /* once the floor is down, shade it so the copy reads */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,10,2,.42), rgba(20,10,2,.18));
  opacity: 0; transition: opacity .8s var(--ease);
}
.lay.is-laid .lay-stage::before { opacity: 1; }
.lay-content {
  position: relative; z-index: 2;
  opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease) .15s, transform .7s var(--ease) .15s;
}
.lay.is-laid .lay-content { opacity: 1; transform: none; }
.lay-content .section-title, .lay-content .lead { color: #fff; text-shadow: 0 2px 14px rgba(20,10,0,.45); }
.lay-content .lead { color: rgba(255,255,255,.88); }
.lay-content .eyebrow { color: var(--gold-soft-hi); }
.lay-content .explore-grid { margin-top: 2.4rem; }
.lay-content .floor-card { background: var(--bg); padding: .7rem .7rem 0; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lay-content .floor-card img { border-radius: var(--radius-sm); }
.lay-content .floor-card .label { padding: .9rem .4rem 1rem; }
.lay-progress {
  position: absolute; right: var(--gutter); bottom: 1.4rem; z-index: 2;
  font-family: var(--font-display); font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); transition: opacity .4s;
}
.lay-progress span { color: var(--ink); font-size: 1.4rem; letter-spacing: 0; margin-right: .3rem; }
.lay.is-laid .lay-progress { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .lay { min-height: 0; }
  .lay-stage { position: relative; min-height: 0; }
  .plank, .plank:not(.laid) { opacity: 1; transform: none; transition: none; box-shadow: inset 0 1px 0 rgba(255,236,205,.16), inset 0 -1px 0 rgba(20,10,2,.5); }
  .lay-stage::before { opacity: 1; }
  .lay-content { opacity: 1; transform: none; }
  .lay-progress { display: none; }
}
/* phones: the cards stack taller than the screen, so don't pin; lay the floor as the section scrolls in */
@media (max-width: 900px) {
  .lay { min-height: 0; }
  .lay-stage { position: relative; min-height: 0; }
}

/* explicit "Learn more" trigger on the flooring page cards */
.floor-learn {
  display: inline-flex; align-items: center; gap: .4rem; flex: none; white-space: nowrap;
  font-family: var(--font-display); font-size: .88rem; font-weight: 600; color: var(--red);
  transition: gap .2s var(--ease), color .2s var(--ease);
}
.floor-learn svg { width: 16px; height: 16px; }
.floor-learn:hover { color: var(--red-dark); gap: .6rem; }

/* ===========================================================
   Brands marquee
   =========================================================== */
.brands { background: var(--bg); }
.brands .sub { text-align: center; font-family: var(--font-display); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2rem; font-weight: 600; }
.marquee {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  border-block: 1px solid var(--line); padding-block: 1.8rem;
}
.marquee-track { display: flex; align-items: center; gap: clamp(2.5rem, 6vw, 5rem); width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track a { display: inline-flex; align-items: center; flex: none; }
.marquee-track img { height: 40px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .55; transition: opacity .3s var(--ease), filter .3s var(--ease); }
.marquee-track img:hover, .marquee-track a:focus-visible img { opacity: 1; filter: grayscale(0); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; } }

/* ===========================================================
   CTA band (dark)
   =========================================================== */
.cta-band { position: relative; text-align: center; background: var(--bg-dark); color: #fff; }
.cta-band .eyebrow { color: var(--red-bright); }
.cta-band h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; margin-top: .8rem; color: #fff; }
.cta-band p { color: rgba(255,255,255,.78); max-width: 56ch; margin: 1rem auto 0; font-size: 1.08rem; }
.cta-band .btns { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.cta-band .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.12); color: #fff; transform: translateY(-2px); }

/* ===========================================================
   Page hero (interior)
   =========================================================== */
.page-hero {
  position: relative; isolation: isolate;
  padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  background: var(--bg-alt); border-bottom: 1px solid var(--line);
}
/* "main > section:first-child { padding-top: 0 }" outranks .page-hero, so the
   image-less heroes need their top padding restated at higher specificity. */
main > section.page-hero:not(.has-image):first-child { padding-top: clamp(3.5rem, 8vw, 6rem); }
.page-hero.has-image { padding-top: clamp(6rem, 12vw, 9rem); padding-bottom: clamp(5rem, 10vw, 7.5rem); border-bottom: none; }
.page-hero.has-image > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero.has-image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(30,20,12,.8), rgba(30,20,12,.42) 60%, rgba(30,20,12,.12)); }
.page-hero.has-image, .page-hero.has-image h1, .page-hero.has-image > .container > p { color: #fff; }
.page-hero.has-image .eyebrow { color: var(--gold-soft-hi); }
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; letter-spacing: -.02em; margin-top: .8rem; max-width: 22ch; }
.page-hero > .container > p { color: var(--ink-2); font-size: clamp(1.05rem, 1.6vw, 1.2rem); margin-top: 1rem; max-width: 62ch; }

/* ===========================================================
   Feature row (about / window)
   =========================================================== */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.feature-media { position: relative; }
.feature-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-md); }
.feature-media::before { content: ""; position: absolute; left: -14px; bottom: -14px; width: 60%; height: 60%; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); z-index: -1; }
.feature-row h2 { margin-top: .8rem; }
.feature-row .lead { color: var(--ink-2); }

.brand-pills { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.brand-pill { display: inline-flex; align-items: center; gap: .38rem; padding: .55rem 1.15rem; border-radius: var(--radius-pill); border: 2px solid var(--line-2); color: var(--ink); font-family: var(--font-display); font-size: .9rem; font-weight: 600; transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease); }
.brand-pill svg { width: 12px; height: 12px; color: var(--muted); }
.brand-pill.is-link:hover, .brand-pill.is-link:focus-visible { color: var(--red-dark); border-color: var(--red); background: var(--red-soft); transform: translateY(-2px); }
.brand-pill.is-link:hover svg { color: var(--red-dark); }

.support-note { margin-top: 1.6rem; color: var(--ink-2); max-width: 54ch; }
.support-list { display: grid; gap: .7rem; margin-top: 1.6rem; }
.support-list li { display: flex; align-items: flex-start; gap: .7rem; color: var(--ink-2); }
.support-list svg { width: 20px; height: 20px; color: var(--red); flex: none; margin-top: .2rem; }

/* ===========================================================
   Services grid — numbered like the Pierce promise
   =========================================================== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); counter-reset: svc; }
.service-card {
  position: relative; overflow: hidden;
  padding: 2.4rem 2rem 2rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  counter-increment: svc;
}
.service-card::before {
  content: "0" counter(svc);
  position: absolute; top: .2rem; right: 1rem;
  font-family: var(--font-display); font-weight: 800; font-size: 4.5rem;
  color: var(--red); opacity: .1; line-height: 1;
  transition: transform .35s var(--ease), opacity .35s var(--ease), color .35s var(--ease);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.service-card:hover::before { opacity: .18; transform: translateY(2px) scale(1.06); }
.service-icon { width: 52px; height: 52px; border-radius: var(--radius); display: grid; place-items: center; margin-bottom: 1.2rem; color: var(--red); background: var(--red-soft); }
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.35rem; font-weight: 700; }
.service-card p { color: var(--ink-2); margin-top: .6rem; margin-bottom: 1.2rem; }

/* ===========================================================
   Inspiration gallery — caption beneath
   =========================================================== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 1.8rem); }
.gallery-grid figure { display: flex; flex-direction: column; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .3s var(--ease); }
.gallery-grid figure:hover img { transform: translateY(-4px) scale(1.02); box-shadow: var(--shadow-md); }
.gallery-grid figcaption { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--ink); margin-top: .8rem; }

/* ===========================================================
   Promos — value grid + price card
   =========================================================== */
.value { background: var(--bg); }
.value-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.value-grid h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; margin-top: .8rem; }
.value-grid .lead { color: var(--ink-2); }
.local-tag { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.6rem; padding: .5rem 1rem; border-radius: var(--radius-pill); border: 2px solid var(--line-2); font-family: var(--font-display); font-size: .85rem; font-weight: 600; color: var(--ink); }
.local-tag svg { color: var(--red); }

.value-card { padding: 2rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.value-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.4rem; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.price-row:first-of-type { border-top: none; }
.pname { color: var(--ink-2); font-weight: 600; font-family: var(--font-display); }
.pprice { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; color: var(--red); }
.pprice small { font-family: var(--font-body); font-size: .8rem; font-weight: 600; color: var(--muted); }
.value-card .note { font-size: .85rem; color: var(--muted); margin-top: 1rem; line-height: 1.5; }

/* ===========================================================
   All products page
   =========================================================== */
.prod-intro { background: var(--bg-alt); }
.prod-intro-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: start; }
.prod-intro .lead { color: var(--ink-2); }
.cat-jump {
  display: flex; flex-wrap: wrap; gap: .55rem;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.4rem; box-shadow: var(--shadow-sm);
}
.cat-jump-label { width: 100%; font-family: var(--font-display); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: .3rem; }
.cat-jump a {
  padding: .45rem .9rem; border-radius: var(--radius-pill);
  border: 1px solid var(--line-2); background: var(--bg);
  font-family: var(--font-display); font-size: .82rem; font-weight: 600; color: var(--ink-2);
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.cat-jump a:hover { color: var(--red-dark); border-color: var(--red); background: var(--red-soft); }

.prod-cat { padding-block: clamp(2.6rem, 5vw, 4rem) !important; scroll-margin-top: 120px; }
.prod-cat + .prod-cat { border-top: 1px solid var(--line); }
.prod-cat-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.prod-cat-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: .35rem; }
.prod-cat-head p { color: var(--ink-2); margin-top: .6rem; max-width: 60ch; }
.prod-count { flex: none; font-family: var(--font-display); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; white-space: nowrap; padding-bottom: .3rem; }

.vtile-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.vtile {
  display: flex; flex-direction: column; gap: .35rem;
  padding: 1.05rem 1.15rem;
  background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--line-2);
  border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.vtile-name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--ink); }
.vtile-go { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; color: var(--muted); }
.vtile-go svg { width: 12px; height: 12px; }
a.vtile:hover, a.vtile:focus-visible { border-color: var(--red); border-left-color: var(--red); box-shadow: var(--shadow-md); transform: translateY(-2px); }
a.vtile:hover .vtile-go, a.vtile:focus-visible .vtile-go { color: var(--red-dark); }
.vtile.is-static { background: var(--bg-alt); border-style: dashed; }

@media (max-width: 900px) {
  .prod-intro-grid { grid-template-columns: 1fr; }
  .prod-cat-head { flex-direction: column; align-items: flex-start; }
}

/* ===========================================================
   Vendor directory — grouped by product type (flooring page)
   =========================================================== */
.vendors { background: var(--bg-alt); }
.vendors .section-head { margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.vendor-grid {
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: start;
}
.vendor-group {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
/* long lists take two grid columns and split internally, so rows stay even */
.vendor-group.is-wide { grid-column: span 2; }
.vendor-group.is-wide .vendor-list { display: block; columns: 2; column-gap: 1.5rem; }
.vendor-group.is-wide .vendor-list li { break-inside: avoid; }
.vendor-group h3 {
  font-size: .82rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--red); padding-bottom: .9rem; margin-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}
.vendor-list { display: grid; gap: .1rem; }
.vendor-list li { line-height: 1.5; }
.vendor-list a, .vendor-list span {
  display: block; padding: .38rem 0;
  color: var(--ink-2); font-size: .95rem; text-decoration: none;
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.vendor-list a:hover, .vendor-list a:focus-visible { color: var(--red-dark); padding-left: .35rem; }
.vendor-list a::after { content: ' \2197'; font-size: .78em; color: var(--muted); }
.vendor-list a:hover::after { color: var(--red-dark); }
.vendor-list span { color: var(--muted); }
.vendors .note { font-size: .92rem; color: var(--ink-2); }
.vendors .note a { color: var(--red-dark); font-weight: 600; }

@media (max-width: 760px) {
  .vendor-group.is-wide { grid-column: auto; }
  .vendor-group.is-wide .vendor-list { columns: 1; }
}
@media (max-width: 560px) {
  .vendor-group { padding: 1.3rem 1.2rem; }
}

/* ===========================================================
   Contact — estimate form
   =========================================================== */
.estimate { background: var(--bg); }
.estimate-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.estimate-info h2 { margin-top: .8rem; }
.estimate-info .lead { color: var(--ink-2); }
/* grid items default to min-width:auto, which let the contact column push
   the page wider than the phone screen */
.estimate-grid > * { min-width: 0; }
.contact-list { display: grid; gap: 1.3rem; margin-top: 2rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.ci { flex: none; width: 46px; height: 46px; border-radius: var(--radius); display: grid; place-items: center; color: var(--red); background: var(--red-soft); }
.ci svg { width: 22px; height: 22px; }
.ct { display: flex; flex-direction: column; min-width: 0; }
.ct b { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.ct span, .ct a { color: var(--ink-2); }
.ct a:hover { color: var(--red); }

.form-card { padding: clamp(1.6rem, 3vw, 2.6rem); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-display); font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: .45rem; }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink);
  padding: .8rem .9rem; border-radius: var(--radius-sm);
  background: #fffdf9; border: 1px solid var(--line-2);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f5e26' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px; padding-right: 2.4rem; }
.field input::placeholder, .field textarea::placeholder { color: #a8a29a; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 3px var(--ring); }
.error-msg { font-size: .8rem; color: var(--danger); margin-top: .4rem; display: none; }
.field.invalid input, .field.invalid select { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-ring); }
.field.invalid .error-msg { display: block; }
.form-card .btn-primary { width: 100%; margin-top: .4rem; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 1rem; text-align: center; }

.form-success { display: none; text-align: center; padding: 1rem; }
.form-success.show { display: block; }
.form-success .check { width: 64px; height: 64px; margin: 0 auto 1.2rem; border-radius: var(--radius-pill); display: grid; place-items: center; color: #1c1409; background: var(--red-bright); }
.form-success .check svg { width: 32px; height: 32px; }
.form-success h3 { font-size: 1.6rem; font-weight: 700; }
.form-success p { color: var(--ink-2); margin-top: .6rem; }

/* ===========================================================
   Footer (dark)
   =========================================================== */
.footer { background: var(--bg-dark); color: rgba(255,255,255,.72); border-top: 3px solid var(--red); padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2.5rem; }
.footer .brand { margin-bottom: 1.1rem; }
.footer .wordmark b { color: #fff; }
.f-about { color: rgba(255,255,255,.6); font-size: .95rem; max-width: 36ch; }
.footer h4 { font-family: var(--font-display); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1.1rem; }
.footer-grid ul { display: grid; gap: .65rem; }
.footer-grid a { color: rgba(255,255,255,.62); font-size: .95rem; transition: color .2s; }
.footer-grid a:hover { color: var(--red-bright); }
.f-line { display: flex; gap: .6rem; align-items: flex-start; color: rgba(255,255,255,.62); font-size: .92rem; }
.f-line svg { width: 18px; height: 18px; color: var(--red-bright); flex: none; margin-top: .15rem; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.1); }
.copy { font-size: .85rem; color: rgba(255,255,255,.5); }
.copy a:hover { color: #fff; }
.pay-icons { display: flex; gap: .6rem; align-items: center; }
.pay-icons img { height: 26px; width: auto; opacity: .9; background: #fff; border-radius: 3px; padding: 2px 4px; }

/* ===========================================================
   Mobile drawer
   =========================================================== */
.scrim, .modal-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(30,20,12,.55); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s; }
.scrim.open, .modal-scrim.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(88vw, 360px); padding: 1.4rem; background: #fff; border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .35s var(--ease); overflow-y: auto; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.drawer-head .wordmark b { color: var(--ink); }
.drawer-close { padding: .4rem; color: var(--ink); }
.drawer-close svg { width: 26px; height: 26px; }
.drawer nav { display: grid; gap: .1rem; }
.drawer nav a, .drawer summary { display: block; padding: .85rem .4rem; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink); border-bottom: 1px solid var(--line); transition: color .2s; }
.drawer nav a:hover, .drawer summary:hover, .drawer nav a.active { color: var(--red); }
.drawer details summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
.drawer details summary::-webkit-details-marker { display: none; }
.drawer summary svg { width: 18px; height: 18px; transition: transform .25s; }
.drawer details[open] summary svg { transform: rotate(180deg); }
.submenu { display: grid; gap: .1rem; padding: .3rem 0 .3rem .8rem; }
.submenu a { font-size: .95rem; border-bottom: none; padding: .5rem .4rem; color: var(--ink-2); }
.drawer > .btn { margin-top: 1.4rem; }

/* ===========================================================
   Floor detail modal — content laid on the material swatch
   =========================================================== */
.floor-modal {
  position: fixed; top: 50%; left: 50%; z-index: 100;
  transform: translate(-50%, -46%); transform-origin: center;
  width: min(92vw, 960px); max-height: 90vh; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr);
  gap: clamp(1.1rem, 2.2vw, 1.8rem); padding: clamp(1.2rem, 2.4vw, 2rem);
  align-items: stretch;
  background-color: var(--bg-dark);
  background-size: cover; background-position: center;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.floor-modal.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }
.fm-close { position: absolute; top: .9rem; right: .9rem; z-index: 3; width: 40px; height: 40px; border-radius: var(--radius-pill); display: grid; place-items: center; color: var(--ink); background: #fff; box-shadow: var(--shadow-sm); transition: background .2s, color .2s; }
.fm-close:hover { background: var(--red); color: #fff; }
.fm-close svg { width: 20px; height: 20px; }
.fm-media { position: relative; overflow: hidden; min-height: 0; border-radius: var(--radius-sm); box-shadow: 0 16px 34px rgba(0,0,0,.4); border: 3px solid #fff; }
.fm-media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.fm-body { padding: clamp(1.5rem, 2.6vw, 2.2rem); min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); }
.fm-body .eyebrow { color: var(--red); }
.fm-body h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; margin-top: .5rem; color: var(--ink); }
.fm-desc { color: var(--ink-2); margin-top: 1rem; }
.fm-features { display: grid; gap: .7rem; margin-top: 1.4rem; }
.fm-features li { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink); font-size: .95rem; }
.fm-features svg { width: 20px; height: 20px; color: var(--red); flex: none; margin-top: .15rem; }
.fm-vendors { margin-top: 1.4rem; }
.fm-vendors-label { display: block; font-family: var(--font-display); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: .55rem; }
.fm-brand { display: inline-flex; align-items: center; gap: .3rem; margin: 0 .4rem .4rem 0; padding: .32rem .7rem; border-radius: var(--radius-pill); border: 1px solid var(--line-2); background: #fff; font-family: var(--font-display); font-size: .8rem; font-weight: 600; color: var(--ink); transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease); }
.fm-brand svg { width: 11px; height: 11px; color: var(--muted); }
.fm-brand.is-link:hover, .fm-brand.is-link:focus-visible { color: var(--red-dark); border-color: var(--red); background: var(--red-soft); }
.fm-brand.is-link:hover svg { color: var(--red-dark); }
.fm-allprod { display: inline-block; margin-top: .5rem; font-family: var(--font-display); font-size: .8rem; font-weight: 700; color: var(--red-dark); border-bottom: 2px solid var(--red-soft); }
.fm-allprod:hover { border-bottom-color: var(--red); }
.fm-price { margin-top: 1.2rem; padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--red-soft); border: 1px solid var(--red); color: var(--red-dark); font-family: var(--font-body); font-weight: 600; font-size: .88rem; line-height: 1.5; }
/* the CTA row sticks to the bottom of the scrolling body so the estimate
   button is always fully visible, however long the brand list gets */
.fm-cta {
  position: sticky; bottom: calc(clamp(1.5rem, 2.6vw, 2.2rem) * -1);
  z-index: 2; display: flex; gap: .7rem; flex-wrap: wrap;
  margin: 1.8rem calc(clamp(1.5rem, 2.6vw, 2.2rem) * -1) 0;
  padding: 1rem clamp(1.5rem, 2.6vw, 2.2rem);
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -14px 18px -14px rgba(36,26,18,.22);
}
.fm-cta .btn { padding: .68rem 1rem; font-size: .84rem; }
.fm-switch { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1.7rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.fm-switch-label { width: 100%; margin-bottom: .3rem; font-family: var(--font-display); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.fm-chip { padding: .42rem .9rem; border-radius: var(--radius-pill); border: 1px solid var(--line-2); color: var(--ink-2); font-family: var(--font-display); font-size: .85rem; font-weight: 600; transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease); }
.fm-chip:hover { color: var(--red); border-color: var(--red); background: var(--red-soft); }
.fm-chip.is-current { background: var(--red-bright); color: #1c1409; border-color: var(--red-bright); cursor: default; }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 1000px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-actions { margin-left: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 820px) {
  .explore-grid, .floors-grid, .services-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-row, .value-grid, .estimate-grid { grid-template-columns: 1fr; }
  .feature-row .feature-media { order: -1; }
  /* stacked: image on top, body scrolls under it so the sticky CTA pins to the
     real bottom edge of the popup */
  .floor-modal { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); max-height: 92vh; overflow: hidden; }
  .fm-body { overflow-y: auto; }
  .fm-media img { min-height: 200px; max-height: 38vh; }
}
@media (max-width: 560px) {
  /* the wordmark is what pushed the page wider than the screen; the logo
     carries the name on its own here */
  .header .wordmark { display: none; }
  .header .brand { flex-shrink: 1; }
  .explore-grid, .floors-grid, .services-grid, .gallery-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.4rem 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
}


/* =========================================================
   Inspiration gallery, staff picture editing
   ========================================================= */
.gallery-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: clamp(1.2rem, 2.4vw, 1.8rem); }
.gallery-note { color: var(--muted); font-size: .92rem; margin: 0; }
.gallery-note.is-bad { color: var(--danger); }
.gallery-tools { display: flex; flex-wrap: wrap; gap: .6rem; }

.gallery-grid figure { position: relative; }
/* author display rules beat the UA [hidden] rule, so restate it here */
.gallery-grid figure[hidden] { display: none; }
.gallery-editing .gallery-grid figure img { outline: 2px dashed var(--line-2); outline-offset: 4px; }
.gallery-editing .gallery-grid figure:hover img { transform: none; box-shadow: var(--shadow-sm); }

.gal-del { position: absolute; top: .6rem; right: .6rem; width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--radius-pill); background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); transition: background .2s var(--ease), color .2s var(--ease); }
.gal-del:hover { background: var(--danger); color: #fff; }
.gal-del svg { width: 16px; height: 16px; }

.gal-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; aspect-ratio: 4 / 3; width: 100%; border: 2px dashed var(--line-2); border-radius: var(--radius); background: var(--bg-alt); color: var(--ink-2); font-family: var(--font-display); font-size: .92rem; font-weight: 600; transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease); }
.gal-add:hover { border-color: var(--red); color: var(--red-dark); background: var(--red-soft); }
.gal-add svg { width: 26px; height: 26px; }

.gal-dialog {
  position: fixed; top: 50%; left: 50%; z-index: 100;
  transform: translate(-50%, -46%);
  width: min(92vw, 420px); padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.gal-dialog.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }
.gal-dialog h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; color: var(--ink); }
.gal-dialog-sub { color: var(--muted); font-size: .9rem; margin-top: .35rem; }
.gal-label { display: block; font-family: var(--font-display); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 1.2rem 0 .45rem; }
.gal-input { width: 100%; padding: .7rem .9rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; font-family: var(--font-body); font-size: .95rem; color: var(--ink); }
.gal-input:focus-visible { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--ring); }
.gal-error { margin-top: .7rem; color: var(--danger); font-size: .85rem; }
.gal-dialog-cta { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.6rem; }
