/* ==========================================================================
   Big D Floors
   Palette, type scale and layout tokens live at the top — change them here.
   ========================================================================== */

:root {
  --ink:        #17110B;   /* near-black brown, body text */
  --espresso:   #241811;
  --char:       #141009;   /* darkest, hero + dark bands */
  --paper:      #F6F1E7;   /* page ground */
  --paper-2:    #EFE7D8;   /* alternate band */
  --card:       #FFFCF6;
  --line:       #E2D7C3;
  --muted:      #6E5E4B;
  --gold:       #E0A458;
  --gold-deep:  #B57A32;
  --green:      #1D3A2A;
  --green-lt:   #A6C2B0;

  --display: 'Barlow Condensed', 'DejaVu Sans Condensed', 'Arial Narrow', Helvetica, sans-serif;
  --serif:   'Instrument Serif', Georgia, 'Times New Roman', serif;
  --body:    'Source Sans 3', system-ui, -apple-system, Segoe UI, sans-serif;
  --mono:    ui-monospace, SFMono-Regular, Menlo, monospace;

  --pad: 20px;
  --maxw: 1240px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 84px;             /* sticky call bar */
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }
::selection { background: var(--gold); color: var(--char); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--char); color: var(--paper); padding: 12px 18px; text-decoration: none; }
.skip:focus { left: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ─────────────────────────── reveal on scroll ────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ───────────────────────────── rail bar ──────────────────────────────── */
.railbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px max(var(--pad), calc(50vw - var(--maxw)/2 + var(--pad)));
  background: rgba(20,16,9,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(224,164,88,.28);
  transform: translateY(-100%);
  transition: transform .35s var(--ease);
}
.railbar.show { transform: none; }
.railbar-name { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: .02em; text-transform: uppercase; color: var(--paper); }
.railbar-call {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: 20px; text-transform: uppercase;
  color: var(--char); background: var(--gold); text-decoration: none;
  padding: 8px 16px; border-radius: 3px; min-height: 44px;
}
.railbar-call:hover { color: var(--char); filter: brightness(1.07); }

/* ─────────────────────────────── hero ────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding: 16px var(--pad) 34px;
  color: var(--paper);
  background: var(--char);
  overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,7,4,.80) 0%, rgba(10,7,4,.30) 32%, rgba(10,7,4,.55) 66%, rgba(10,7,4,.94) 100%),
    linear-gradient(85deg, rgba(10,7,4,.72) 0%, rgba(10,7,4,.12) 62%);
}

.hero-top, .hero-body { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; }
.hero-toplink { display: none; }

.brand { display: flex; align-items: center; gap: 12px; }
.mark {
  display: flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; flex: none;
  background: var(--gold); color: var(--char);
  font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1;
  border-radius: 4px;
}
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: .96; text-transform: uppercase; }
.brand-sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }

.hero-body { margin-top: auto; display: flex; flex-direction: column; gap: 30px; }
.hero-lead { max-width: 20ch; }
.hero h1 {
  font-size: clamp(56px, 15vw, 104px);
  line-height: .88; letter-spacing: -.005em;
  margin: 10px 0 16px; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.lede { font-size: clamp(18px, 4.6vw, 22px); color: #E9DFCE; max-width: 30ch; margin-bottom: 24px; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-vitals { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: rgba(246,241,231,.18); border-top: 1px solid rgba(246,241,231,.18); }
.vital { background: rgba(20,16,9,.55); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.vital-k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); }
.vital-v { font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.1; text-transform: uppercase; color: var(--paper); }

/* ───────────────────────────── buttons ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 22px;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(20px, 5.2vw, 24px);
  letter-spacing: .015em; text-transform: uppercase; text-decoration: none;
  white-space: nowrap; border: 0; border-radius: 3px; cursor: pointer;
  transition: transform .12s var(--ease), filter .15s var(--ease), background .15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--char); }
.btn-gold:hover { color: var(--char); filter: brightness(1.07); }
.btn-line { background: transparent; color: var(--paper); border: 1.5px solid rgba(246,241,231,.5); font-weight: 600; }
.btn-line:hover { color: var(--char); background: var(--paper); border-color: var(--paper); }
.btn-block { width: 100%; }
.btn-xl { min-height: 66px; padding: 0 30px; font-size: clamp(24px, 6vw, 34px); }
.ico { width: 21px; height: 21px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ───────────────────────────── sections ──────────────────────────────── */
.band { padding: 64px 0 72px; }
.band-tight { padding-top: 8px; }
.band-paper { background: var(--paper); }
.band-dark { background: var(--char); color: var(--paper); }
.band-green { background: var(--green); color: #EAF0E9; }

.sec-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 30px; }
.num {
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em;
  color: var(--gold-deep); padding-top: 8px;
  border-top: 2px solid var(--gold); min-width: 34px;
}
.num-light { color: var(--gold); }
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .19em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.kicker-light { color: var(--gold); }
.kicker-green { color: var(--green-lt); }
.sec-head h2, .leadsafe h2 { font-size: clamp(36px, 8.5vw, 62px); line-height: .92; letter-spacing: -.005em; }
.sec-head-light h2 { color: var(--paper); }

.more { margin-top: 26px; font-size: 17px; }
.more a { font-weight: 600; }

/* ───────────────────────────── gallery ───────────────────────────────── */
.gal {
  display: grid; gap: 10px;
  grid-template-columns: repeat(2, minmax(0,1fr));
  padding: 0 var(--pad);
  max-width: 1600px; margin: 0 auto;
}
.g { margin: 0; position: relative; overflow: hidden; background: var(--espresso); }
.g img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .8s var(--ease); }
.g:hover img { transform: scale(1.04); }
.g figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 12px 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(10,7,4,.82));
}
.g-wide { grid-column: span 2; }
.g-wide img { aspect-ratio: 16/9; }

/* ───────────────────────────── services ──────────────────────────────── */
.svc-grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
.svc { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; }
.svc-photo { overflow: hidden; background: var(--espresso); border-radius: 2px; }
.svc-photo img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.svc-body { display: flex; flex-direction: column; gap: 6px; }
.svc-idx { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--gold-deep); }
.svc h3 { font-size: clamp(22px, 5.6vw, 28px); line-height: 1.02; }
.svc p { color: var(--muted); font-size: 16.5px; line-height: 1.5; }

/* ───────────────────────────── stains ────────────────────────────────── */
.stains-band .sec-head { border-color: var(--gold); }
.stain-layout { display: grid; gap: 18px; }
.stain-stage { margin: 0; position: relative; overflow: hidden; background: #241811; border-radius: 2px; }
.stain-stage img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }
.stain-stage figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(10,7,4,.86));
}
.stain-stage figcaption b { color: var(--gold); font-weight: 700; }

.stain-list { display: grid; gap: 8px; }
.stain {
  display: flex; align-items: center; gap: 12px;
  min-height: 62px; padding: 8px 12px; width: 100%;
  background: rgba(246,241,231,.05); border: 1px solid rgba(246,241,231,.16);
  border-radius: 2px; cursor: pointer; text-align: left;
  font-family: var(--body); color: var(--paper);
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.stain:hover { background: rgba(246,241,231,.11); border-color: rgba(224,164,88,.6); }
.stain.is-on { background: rgba(224,164,88,.14); border-color: var(--gold); }
.chip { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--c); box-shadow: inset 0 -3px 7px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.14); }
.stain-t { display: flex; flex-direction: column; line-height: 1.25; }
.stain-t b { font-family: var(--display); font-weight: 600; font-size: 21px; text-transform: uppercase; letter-spacing: .01em; }
.stain-t i { font-style: normal; font-size: 13.5px; color: #B8AA95; }
.stain-note { margin-top: 8px; font-size: 15px; color: #B8AA95; }

/* ───────────────────────────── lead-safe ─────────────────────────────── */
.leadsafe { padding: 62px 0; }
.leadsafe-grid { display: grid; gap: 18px; }
.bignum {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(96px, 30vw, 190px); line-height: .78;
  color: transparent; -webkit-text-stroke: 2px rgba(166,194,176,.55);
  letter-spacing: -.02em;
}
.leadsafe h2 { color: #F1F6F0; margin-bottom: 12px; }
.leadsafe p:last-child { font-size: 19px; color: #D8E3D9; max-width: 62ch; text-wrap: pretty; }

/* ────────────────────────────── quote ────────────────────────────────── */
.quote { margin: 0; position: relative; padding: 8px 0 0; max-width: 24ch; }
.qmark { display: block; font-family: var(--serif); font-size: 110px; line-height: .6; color: var(--gold); }
.quote blockquote { margin: 0; }
.quote p {
  font-family: var(--serif); font-size: clamp(28px, 7vw, 46px);
  line-height: 1.14; color: var(--ink); max-width: 22ch;
}
.quote figcaption { grid-column: 2; margin-top: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ─────────────────────────── service area ────────────────────────────── */
.area-grid { display: grid; gap: 30px; }
.area-home { border-left: 2px solid var(--gold); padding-left: 16px; }
.area-pin { display: block; width: 26px; height: 26px; margin-bottom: 10px; }
.area-pin svg { width: 100%; height: 100%; fill: none; stroke: var(--gold-deep); stroke-width: 1.8; }
.area-towns { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 9vw, 52px); line-height: .92; text-transform: uppercase; }
.area-sub { color: var(--muted); margin-top: 8px; }
.counties { list-style: none; margin: 6px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px 12px; }
.counties li { font-family: var(--display); font-weight: 600; font-size: 21px; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.fineprint { font-size: 15.5px; color: var(--muted); }

/* ─────────────────────────────── CTA ─────────────────────────────────── */
.cta { position: relative; padding: 76px 0 84px; color: var(--paper); overflow: hidden; background: var(--char); }
.cta-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,7,4,.90), rgba(10,7,4,.80)); }
.cta .wrap { position: relative; z-index: 2; }
.cta-h { font-size: clamp(38px, 10vw, 76px); line-height: .92; margin: 6px 0 26px; }
.cta-sub { margin-top: 16px; color: #C8BAA4; font-size: 16.5px; }

/* ────────────────────────────── footer ───────────────────────────────── */
.foot { background: var(--char); color: var(--paper); padding: 54px 0 34px; border-top: 1px solid rgba(246,241,231,.12); }
.foot-grid { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.foot-label { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.foot-col a, .foot-col span:not(.foot-label) { color: #E4DACA; font-size: 16px; word-break: break-word; text-decoration: none; }
.foot-col a:hover { color: var(--gold); }
.foot-big { font-family: var(--display); font-weight: 700; font-size: 30px !important; text-transform: uppercase; color: var(--paper) !important; }
.wordmark {
  margin: 42px 0 18px;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(46px, 15vw, 168px); line-height: .8; letter-spacing: -.01em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(246,241,231,.22);
  white-space: nowrap;
}
.legal { font-size: 13px; color: #8A7A63; border-top: 1px solid rgba(246,241,231,.12); padding-top: 16px; }

/* ───────────────────────────── call bar ──────────────────────────────── */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  background: rgba(20,16,9,.96); border-top: 1px solid rgba(224,164,88,.35);
  backdrop-filter: blur(8px);
}
.callbar .btn { max-width: 620px; margin: 0 auto; display: flex; }

/* ══════════════════════════════ TABLET ═══════════════════════════════ */
@media (min-width: 700px) {
  :root { --pad: 34px; }
  body { font-size: 19px; }
  .band { padding: 90px 0 100px; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 34px 30px; }
  .svc { grid-template-columns: 1fr; gap: 14px; }
  .svc-photo img { aspect-ratio: 5/4; }
  .gal { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
  .g-wide { grid-column: span 2; }
  .g-tall { grid-row: span 2; }
  .g-tall img { aspect-ratio: auto; height: 100%; }
  .hero-vitals { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .foot-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .quote { max-width: none; }
}

/* ══════════════════════════════ DESKTOP ══════════════════════════════ */
@media (min-width: 1024px) {
  :root { --pad: 48px; }
  body { padding-bottom: 0; }
  .callbar { display: none; }
  .hero-toplink { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 24px; text-transform: uppercase; color: var(--paper); text-decoration: none; letter-spacing: .01em; }
  .hero-toplink:hover { color: var(--gold); }

  .hero { padding-bottom: 30px; }
  .hero-body { gap: 34px; }
  .hero-lead { max-width: none; }
  .hero h1 { font-size: clamp(62px, 6.5vw, 98px); }
  .lede { font-size: 22px; max-width: 40ch; }
  /* credentials run as a full-width rail along the bottom of the hero */
  .hero-vitals {
    grid-template-columns: repeat(4, minmax(0,1fr));
    background: none; gap: 0;
    border-top: 1px solid rgba(246,241,231,.22);
  }
  .vital { background: none; padding: 14px 22px 2px 0; }
  .vital + .vital { padding-left: 22px; border-left: 1px solid rgba(246,241,231,.16); }
  .vital-v { font-size: 21px; }

  /* editorial two-column section heads */
  .sec-head { gap: 40px; margin-bottom: 44px; }
  .num { min-width: 60px; font-size: 13px; }

  .svc-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 26px; }
  .svc:nth-child(odd) { padding-top: 34px; }   /* stagger */

  .stain-layout { grid-template-columns: 1.55fr 1fr; gap: 30px; align-items: start; }
  .stain-stage img { aspect-ratio: 4/3; }
  .stain-list { gap: 9px; }

  .leadsafe-grid { grid-template-columns: minmax(0,270px) 1fr; gap: 76px; align-items: center; }
  .bignum { font-size: 112px; }

  .area-grid { grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: start; }

  .quote { display: grid; grid-template-columns: 90px 1fr; gap: 20px; align-items: start; }
  .qmark { font-size: 150px; }
  .quote p { font-size: 52px; max-width: 20ch; }
}

@media (min-width: 1500px) {
  .hero h1 { font-size: 96px; }
}
