/* Wood Floor Brigade — built to THEIR brand sheet (sent by Iris 2026-09-14):
   yellow #FFD613, black #181714, orange #FD6A2C, blue #0093D5, gray #454A4D;
   type Gothic A1 (Extra Bold + Regular). Their headline face, BN Times Gothic,
   is a paid font we don't have — Gothic A1 Extra Bold stands in for it.
   Yellow is FLAT (the brand sheet has no gradient). Orange and blue are NOT
   used: the live woodfloorbrigade.com uses neither, and a full-width band of
   them read wrong (Sean 2026-09-14). If they come back, follow the sheet —
   short bars at the END of a yellow section band — never a full-width row.
   Contrast: yellow on black ~11:1. Yellow TEXT on white fails — on light
   surfaces use black text with a yellow underline or yellow marker. */
:root {
  --gold: #FFD613;
  --ink: #181714;
  --ink-soft: #454A4D;
  --paper: #ffffff;
  --paper-warm: #faf8f4;
  --line: #e6e2da;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
/* Guard: the MainStreet embed injects its own form into .form-card inside
   .hero__grid; grid children default min-width:auto and refuse to shrink,
   which pushes the document wider than a 390px screen (measured on the
   Shore build). `clip`, NEVER `hidden` — non-visible overflow-x makes body
   a scroll container and silently kills the sticky header. */
html, body { overflow-x: clip; }
/* Sticky topbar+header overlay anchor targets; keep #estimate jumps clear. */
html { scroll-padding-top: 130px; }
body { font-family: 'Gothic A1', 'Helvetica Neue', Arial, sans-serif; color: var(--ink); background: var(--paper); line-height: 1.6; }
h1, h2, .display, .brand-word, .statstrip__num { font-family: 'Gothic A1', 'Helvetica Neue', Arial, sans-serif; font-weight: 800; letter-spacing: -.01em; }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
.measure { max-width: 46rem; }
.note { font-size: .85rem; color: var(--ink-soft); }
.lede { font-size: clamp(1rem, 1.6vw, 1.13rem); color: var(--ink-soft); max-width: 58ch; }

.topbar { background: var(--ink); color: #fff; font-size: .85rem; border-bottom: 1px solid #33312d; }
.topbar .wrap { display: flex; justify-content: space-between; padding-top: .4rem; padding-bottom: .4rem; }
.topbar a { color: var(--gold); text-decoration: none; font-weight: 600; white-space: nowrap; }

.site-header { position: sticky; top: 0; z-index: 60; background: var(--ink); border-bottom: 3px solid var(--gold); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: .5rem; padding-bottom: .5rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; }
.brand img { height: 64px; width: auto; }
.brand-lockup { display: flex; flex-direction: column; line-height: 1.05; }
.brand-word { font-weight: 800; font-size: 1.05rem; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.brand-under { font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.nav-links { display: flex; gap: 1.1rem; list-style: none; align-items: center; }
.nav-links a { color: var(--gold); text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.nav-links a[aria-current="page"] { color: #fff; }
.nav-cta { background: var(--gold); color: var(--ink) !important; padding: .55rem 1.1rem; border-radius: 3px; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--gold); margin: 4px 0; border-radius: 2px; }

.crumbs { font-size: .82rem; color: var(--ink-soft); padding: .8rem 0 0; }
.crumbs a { color: var(--ink-soft); }

/* Homepage hero: full-bleed staircase photo behind a 105° ink scrim, copy
   left, white form card right (Shore pattern in the WFB ink palette). */
.hero { position: relative; color: var(--ink); background: var(--gold); }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(24,23,20,.94) 0%, rgba(24,23,20,.80) 45%, rgba(24,23,20,.28) 100%);
}
/* padding-block only: the `padding: X 0` shorthand zeroed .wrap's side gutter, so on phones the hero copy and form sat flush to the screen edge. */
.hero__inner { position: relative; z-index: 1; padding-top: clamp(2.6rem, 6vw, 4.5rem); padding-bottom: clamp(2.6rem, 6vw, 4.5rem); }
/* align-items: start — the loaded estimate form is much taller than the copy; centering pushed the headline halfway down the hero. */
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.hero h1 { color: var(--ink); }
.hero .lede { color: var(--ink); max-width: 34rem; margin: .9rem 0 0; font-size: 1.05rem; }
.hero__points { list-style: none; margin: 1.4rem 0 1.6rem; display: grid; gap: .7rem; }
.hero__points li { display: flex; gap: .65rem; align-items: flex-start; font-size: .98rem; color: var(--ink); }
.hero__points svg { flex: 0 0 auto; margin-top: .3rem; color: var(--ink); }
.hero__actions { display: flex; gap: 1.1rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }
.hero__tel { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.form-card { background: #fff; color: var(--ink); border-radius: 3px; border-top: 6px solid var(--ink); padding: clamp(1.3rem, 2.5vw, 1.9rem); box-shadow: 0 14px 40px rgba(24,23,20,.22); }
.form-card h2 { font-size: 1.35rem; margin-bottom: .3rem; }
.form-card__sub { color: var(--ink-soft); font-size: .95rem; margin-bottom: .9rem; }
.form-card #mainstreet-form { margin-top: 0; }
.form-card__fallback { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-soft); }

@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  /* Single column puts copy over the photo's lighter right side — flatten
     the scrim so white text never lands on a pale tread. */
  .hero__media::after { background: rgba(24,23,20,.9); }
}

/* Stat strip under the hero */
.statstrip { background: var(--paper-warm); border-bottom: 1px solid var(--line); }
.statstrip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-top: 1.4rem; padding-bottom: 1.4rem; text-align: center; }
.statstrip__num { display: block; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; line-height: 1.15; color: var(--ink); }
.statstrip__label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--ink-soft); margin-top: .2rem; }

.kicker { text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; font-weight: 700; color: var(--ink); margin-bottom: .5rem; }
.kicker::before { content: ""; display: inline-block; width: 1.6em; height: .45em; margin-right: .6em; vertical-align: .08em; background: var(--gold); }
.hero .kicker::before { background: var(--ink); }
.section-dark .kicker { color: var(--gold); }
.hero .kicker { color: var(--ink); }
.display { font-size: clamp(1.75rem, 4.2vw, 2.75rem); line-height: 1.12; font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); margin: 0 0 .8rem; font-weight: 800; }
h3 { font-size: 1.08rem; margin: .6rem 0 .3rem; }

section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-dark { background: var(--ink); color: #fff; }
.section-dark h2 { color: #fff; }
.section-dark .lede { color: #d5d1c8; }
.section-dark a { color: var(--gold); }
.section-roomy { padding: 4.5rem 0; }
.band { padding: 0 0 2rem; }

.btn { display: inline-block; padding: .8rem 1.5rem; border-radius: 3px; font-weight: 700; text-decoration: none; font-size: .95rem; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-line { border: 2px solid var(--ink); color: var(--ink); }
.btn-line--light { border-color: #fff; color: #fff; }

.endline { font-weight: 600; }
.aside-rule { border-left: 6px solid var(--gold); padding: .3rem 0 .3rem 1.1rem; }
.steps { margin: 1rem 0 1rem 1.3rem; }
.steps li { margin: .45rem 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.card { background: var(--paper-warm); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; text-decoration: none; color: var(--ink); }
.card img { aspect-ratio: 3 / 2; height: auto; width: 100%; object-fit: cover; }
.card--feature, .card--wide { grid-column: span 2; }
.card--feature img, .card--wide img { aspect-ratio: 16 / 9; }
.card h3, .card p { padding: 0 1rem; }
.card h3 { padding-top: .8rem; }
.card p { padding-bottom: 1rem; font-size: .9rem; color: var(--ink-soft); }

/* Natural aspect ratios in photo bands; fixed crops live only on homepage cards. */
.photo-grid { columns: 3 260px; column-gap: .8rem; margin-top: 1rem; }
.photo-grid img { border-radius: 3px; height: auto; width: 100%; margin-bottom: .8rem; break-inside: avoid; }

.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-top: 1.2rem; align-items: start; }
.review-card { background: #fff; color: var(--ink); border-radius: 3px; padding: 1.2rem; font-size: .93rem; }
.review-card footer { margin-top: .7rem; color: var(--ink-soft); }
.stars { color: var(--gold); letter-spacing: .25em; font-size: 1.05rem; }
.section-dark .note { color: #cfcbc2; margin-top: 1rem; }

details { border: 1px solid var(--line); border-radius: 3px; padding: .8rem 1rem; margin: .6rem 0; background: var(--paper-warm); }
summary { font-weight: 700; cursor: pointer; }
details p { margin-top: .6rem; }

.cost-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.cost-table th, .cost-table td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); }
.cost-table thead th { background: var(--ink); color: var(--gold); }
.cost-table tbody tr:nth-child(even) { background: var(--paper-warm); }

/* The embed injects its own markup — cap everything so it can never push
   the page wider than the viewport (mandatory guard, see html overflow). */
#mainstreet-form { margin-top: 1.2rem; max-width: min(640px, 100%); }
#mainstreet-form * { max-width: 100%; box-sizing: border-box; }
.form-card #mainstreet-form { max-width: 100%; }
.hero__grid > *, .cards > *, .footgrid > * { min-width: 0; }
.ms-form__loading { padding: 1.2rem; background: var(--paper-warm); border: 1px dashed var(--line); border-radius: 3px; color: var(--ink-soft); }
.consent-note { font-size: .78rem; color: var(--ink-soft); max-width: 640px; margin-top: .8rem; }

.site-footer { background: var(--ink); color: #d9d5cc; font-size: .92rem; }
.site-footer a { color: var(--gold); text-decoration: none; }
.footgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.6rem; padding-top: 2.4rem; padding-bottom: 1.6rem; }
.footer-heading { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: #fff; margin-bottom: .4rem; }
.footer-logo { width: 96px; height: auto; margin-bottom: .7rem; }
.subfoot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid #33312d; padding-top: .9rem; padding-bottom: 1.1rem; font-size: .8rem; color: #a8a49b; }

/* a11y */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--gold); padding: .75rem 1.2rem; z-index: 1000; text-decoration: none; font-weight: 700; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.topbar :focus-visible, .site-header :focus-visible, .section-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }

/* Mobile call bar. Sits at bottom:0 — the MainStreet chat widget is OFF for
   this tenant (contractors.chat_mode='disabled', 2026-09-14, Sean: the site
   already has this floating CTA). If chat is ever turned back on, its bubble
   lands on the Free Estimate cell and eats taps: move this bar back up to
   bottom:66px and body padding-bottom back to 136px. */
.callbar { display: none; }

@media (max-width: 1090px) {
  .brand-under { display: none; }
  .brand img { height: 54px; }
}
/* 1139px, not 1000px: the nav gained "Hardwood Floors" + "LVP" (2026-09-14) and needs ~1140px on one line. */
@media (max-width: 1139px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); flex-direction: column; padding: 1rem 1.25rem 1.4rem; gap: .9rem; border-bottom: 3px solid var(--gold); }
  .nav-links.open { display: flex; }
  .site-header .wrap { position: relative; }
  .brand img { height: 50px; }
  .topbar .wrap { font-size: .78rem; }
}
@media (max-width: 720px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
    background: #fff; border: 1px solid var(--line); border-radius: 3px;
    margin: 0 .6rem; box-shadow: 0 4px 18px rgba(24,23,20,.25); overflow: hidden;
    transition: opacity .25s ease, transform .25s ease;
  }
  /* Hidden while the hero's own CTA row is on screen (main.js toggles this)
     so two call CTAs never stack; no JS = always visible. */
  .callbar--hero-visible { opacity: 0; transform: translateY(8px); pointer-events: none; }
  .callbar a { padding: .95rem .5rem; text-align: center; font-weight: 700; text-decoration: none; font-size: .97rem; display: flex; align-items: center; justify-content: center; min-height: 52px; color: var(--ink); }
  .callbar a:last-child { background: var(--gold); color: var(--ink); border-left: 1px solid var(--line); }
  body { padding-bottom: 72px; } /* ~57 bar + clearance */
  /* 24px-minimum tap targets without changing desktop layout */
  .site-footer a, .crumbs a, .subfoot a { display: inline-block; padding: .35rem 0; }
}
@media (max-width: 560px) {
  .card--feature, .card--wide { grid-column: auto; }
  .topbar .wrap > span { display: none; }
  .topbar .wrap { justify-content: center; }
  .statstrip__grid { grid-template-columns: repeat(2, 1fr); gap: 1rem .6rem; }
}
