/* ==========================================================================
   C.J. Checkley Wood Flooring
   Palette: deep forest green + chalk + sage. Deliberately unlike the other
   trade demos (cream/brass, brown/clay, black/yellow, navy/red, teal).
   Built phone-first; desktop is the enhancement.
   ========================================================================== */

:root {
  --ink:      #16201C;
  --ink-2:    #44544C;
  --green:    #14402F;
  --green-d:  #0D2C21;
  --green-l:  #1E5A42;
  --chalk:    #F7F6F2;
  --sage:     #E6EDE3;
  --sage-2:   #9BBFA6;
  --bone:     #E8DFCB;
  --line:     #DAD8CE;
  --line-dk:  rgba(232,223,203,.22);
  --white:    #FFFFFF;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gut: 16px;          /* phone side gutter */
  --r:   14px;          /* corner radius */
  --sec: 48px;          /* section vertical rhythm, phone */
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;           /* belt and braces against a stray wide child */
}

/* Images never exceed their column and never get distorted. Every <img> in the
   markup carries real width/height attributes; height:auto keeps the ratio. */
img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-l); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}
h1 { font-size: clamp(2rem, 8.4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 6vw, 2.5rem); }
h3 { font-size: 1.12rem; font-weight: 600; }
p  { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gut); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--green); color: var(--bone); padding: 10px 16px;
}
.skip:focus { left: 8px; top: 8px; }

.eyebrow {
  font-size: .76rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--green-l); margin: 0 0 .7em;
}
.sec-dark .eyebrow { color: var(--sage-2); }

/* ------------------------------- buttons -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em; background: var(--green); color: var(--bone);
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: 14px 22px; border: 1.5px solid var(--green); border-radius: 999px;
  text-decoration: none; cursor: pointer; text-align: center;
}
.btn:hover { background: var(--green-l); border-color: var(--green-l); color: var(--bone); }
.btn-lg { font-size: 1.06rem; padding: 16px 26px; width: 100%; max-width: 420px; }
.btn-sm { padding: 10px 16px; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--green); color: var(--bone); }
.sec-dark .btn-ghost { color: var(--bone); border-color: var(--sage-2); }
.sec-dark .btn-ghost:hover { background: var(--bone); color: var(--green-d); border-color: var(--bone); }

/* ------------------------------- top line ------------------------------- */
.topline {
  background: var(--green-d); color: var(--bone);
  font-size: .8rem; padding: 7px 0;
}
.topline .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topline span { display: none; }
.topline b { color: var(--white); }
.topline a { color: var(--bone); font-weight: 700; text-decoration: none; margin-left: auto; }

/* -------------------------------- header -------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 90;
  background: rgba(247,246,242,.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; gap: 12px;
  min-height: 62px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; flex: none; }
.brand-type { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.06rem; letter-spacing: -.01em; }
.brand-sub {
  font-size: .64rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--green-l);
}

.burger {
  margin-left: auto; width: 42px; height: 42px; flex: none;
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  background: transparent; border: 1px solid var(--line); border-radius: 10px;
  padding: 0 10px; cursor: pointer;
}
.burger span { display: block; height: 2px; background: var(--green); border-radius: 2px; }

.nav { display: none; }
.head-cta { display: none; }

.nav.open {
  display: flex; flex-direction: column;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--chalk); border-bottom: 1px solid var(--line);
  padding: 8px var(--gut) 16px;
}
.nav.open a {
  padding: 13px 2px; border-bottom: 1px solid var(--line);
  text-decoration: none; font-weight: 600; color: var(--ink);
}
.nav.open .nav-call { color: var(--green); border-bottom: 0; }

/* --------------------------------- hero --------------------------------- */
.hero { padding: 28px 0 0; }
.hero-copy .lede { font-size: 1.06rem; color: var(--ink-2); max-width: 46ch; }
.hero h1 { margin-bottom: .45em; }
.hero-fig { margin: 22px 0 0; }
.hero-fig img { border-radius: var(--r); }
.hero-act { margin: 22px 0 0; }
.hero-act-note {
  display: block; margin-top: 10px; font-size: .86rem;
  color: var(--ink-2); font-weight: 600;
}

/* proof strip */
.proof {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden;
}
.proof li { background: var(--white); padding: 16px 14px; }
.proof a { display: block; text-decoration: none; color: inherit; }
.proof b {
  display: block; font-family: var(--serif); font-size: 1.85rem;
  font-weight: 700; color: var(--green); line-height: 1;
}
.proof b small { font-size: .5em; font-weight: 600; }
.proof span { display: block; margin-top: 5px; font-size: .82rem; color: var(--ink-2); line-height: 1.35; }

/* ------------------------------- sections ------------------------------- */
.sec { padding: var(--sec) 0; }
.sec-lede { font-size: 1.02rem; color: var(--ink-2); max-width: 62ch; }
.sec-sage { background: var(--sage); }
.sec-dark { background: var(--green); color: var(--bone); }
.sec-dark h2, .sec-dark h3 { color: var(--white); }
.sec-dark .sec-lede, .sec-dark p { color: rgba(232,223,203,.84); }
.sec-dark a { color: var(--white); }

.stock-note {
  border-left: 3px solid var(--green-l); padding-left: 14px;
  font-size: .92rem; font-style: italic;
}

/* ------------------------------- cards ---------------------------------- */
.cards {
  margin-top: 26px; display: grid; gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 15px 14px;
}
.card h3 { color: var(--green); margin-bottom: .4em; font-size: 1.04rem; }
.card p { margin: 0; font-size: .88rem; line-height: 1.5; color: var(--ink-2); }
.card-call { background: var(--green-d); border-color: var(--green-d); }
.card-call h3 { color: var(--bone); }
.card-call p { color: rgba(232,223,203,.82); margin-bottom: 14px; }
.card-call .btn { background: var(--bone); color: var(--green-d); border-color: var(--bone); }

/* ------------------------------- splits --------------------------------- */
.split { display: grid; gap: 24px; align-items: start; }
.split-fig { margin: 0; }
.split-fig img { border-radius: var(--r); }
.split-fig figcaption {
  margin-top: 8px; font-size: .82rem; color: var(--ink-2); font-style: italic;
}
.sec-dark .split-fig figcaption { color: var(--sage-2); }

.quote-lead {
  font-family: var(--serif); font-size: 1.3rem; line-height: 1.3;
  color: var(--white) !important;
}

/* pull quotes */
.pull {
  margin: 0 0 18px; padding: 0 0 0 16px;
  border-left: 3px solid var(--sage-2);
}
.pull blockquote {
  margin: 0 0 6px; font-family: var(--serif); font-size: 1.04rem;
  line-height: 1.4; color: inherit;
}
.pull-big blockquote { font-size: 1.2rem; }
.pull cite {
  font-style: normal; font-size: .79rem; font-weight: 600;
  letter-spacing: .02em; color: var(--ink-2);
}
.sec-dark .pull cite { color: var(--sage-2); }
.fin-list {
  font-family: var(--serif); font-size: 1.1rem; color: var(--green);
  font-weight: 600;
}

/* -------------------------------- steps --------------------------------- */
.steps {
  list-style: none; counter-reset: s; margin: 26px 0 0; padding: 0;
  display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr);
}
.steps li {
  counter-increment: s; position: relative;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 50px 15px 16px;
}
.steps li::before {
  content: counter(s); position: absolute; left: 15px; top: 15px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green); color: var(--bone);
  font-family: var(--serif); font-weight: 700; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { margin-bottom: .3em; color: var(--green); }
.steps p { margin: 0; font-size: .95rem; color: var(--ink-2); }

/* ------------------------------- gallery -------------------------------- */
.gal {
  margin-top: 24px; display: grid; gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}
.gal figure { margin: 0; }
.gal img {
  border-radius: 10px; width: 100%; aspect-ratio: 4 / 3;
  object-fit: cover; cursor: zoom-in;
}

/* ------------------------------- reviews --------------------------------
   On a phone these are a horizontal scroll-snap rail rather than a stack of
   21 cards: it keeps every review on the page without making the phone
   version four screens longer than the desktop one. From 620px up it becomes
   an ordinary grid. The negative margin bleeds the rail to the screen edge
   while keeping the first card aligned to the gutter — scroll-padding puts it
   back, so the page itself never gains horizontal scroll.
   ------------------------------------------------------------------------ */
.rev-grid {
  margin: 26px calc(var(--gut) * -1) 0;
  padding: 2px var(--gut) 12px;
  display: flex; gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gut);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.rev-grid[hidden] { display: none; }
.rev {
  margin: 0; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px;
  flex: 0 0 76vw; max-width: 320px; scroll-snap-align: start;
}
.rev-swipe {
  margin: 4px 0 0; font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-2);
}
.rev-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.rev-score {
  font-family: var(--serif); font-weight: 700; font-size: 1.3rem;
  color: var(--green); line-height: 1;
}
.rev-score small { font-size: .55em; font-weight: 600; }
.rev-plat {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px;
}
.rev-job { font-size: 1rem; margin-bottom: .45em; color: var(--ink); }
.rev blockquote {
  margin: 0 0 10px; font-size: .95rem; color: var(--ink-2); line-height: 1.55;
}
.rev figcaption { font-size: .76rem; font-weight: 600; color: var(--green-l); }

.rev-act { margin-top: 20px; text-align: center; }
.rev-act .btn { width: 100%; max-width: 420px; }
.rev-links { margin: 14px 0 0; font-size: .9rem; color: var(--ink-2); }

/* -------------------------------- areas --------------------------------- */
.areas {
  list-style: none; margin: 24px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line-dk); border: 1px solid var(--line-dk);
  border-radius: var(--r); overflow: hidden;
}
.areas li {
  background: var(--green-d); padding: 12px 13px;
  font-size: .92rem; font-weight: 600; color: var(--bone);
}
.areas span {
  display: block; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; color: var(--sage-2);
}

/* --------------------------------- CTA ---------------------------------- */
.sec-cta { background: var(--sage); text-align: center; }
.sec-cta .sec-lede { margin: 0 auto 22px; }
.cta-facts {
  list-style: none; margin: 26px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.cta-facts li {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px;
  font-size: .82rem; font-weight: 600; color: var(--green);
}
.cta-facts small { font-weight: 500; color: var(--ink-2); }

/* -------------------------------- footer -------------------------------- */
.site-foot {
  background: var(--green-d); color: rgba(232,223,203,.8);
  padding: 44px 0 100px;            /* room for the fixed call bar on phones */
  font-size: .92rem;
}
.foot-grid { display: grid; gap: 28px; }
.brand-foot { margin-bottom: 14px; }
.brand-foot .brand-name { color: var(--bone); }
.brand-foot .brand-sub { color: var(--sage-2); }
.site-foot h4 {
  font-family: var(--sans); font-size: .74rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--sage-2);
  margin-bottom: 12px;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 9px; }
.site-foot a { color: var(--bone); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.foot-sole { font-size: .82rem; color: var(--sage-2); }
.foot-bot {
  margin-top: 32px; padding-top: 18px;
  border-top: 1px solid var(--line-dk);
  display: grid; gap: 8px; font-size: .78rem; color: var(--sage-2);
}

/* ---------------------------- fixed call bar ---------------------------- */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--green); color: var(--bone);
  padding: 13px 16px; text-decoration: none;
  border-top: 1px solid var(--green-l);
  font-size: .9rem;
}
.call-bar strong { font-size: 1.02rem; color: var(--white); }

/* ------------------------------- lightbox ------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 150; display: none;
  background: rgba(13,44,33,.95);
  align-items: center; justify-content: center; padding: 20px;
}
.lightbox.on { display: flex; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 8px; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.12); color: var(--bone);
  border: 0; border-radius: 999px; width: 44px; height: 44px;
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.lb-close { top: 14px; right: 14px; }
.lb-prev  { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-cap {
  position: absolute; bottom: 18px; left: 0; right: 0; text-align: center;
  color: var(--sage-2); font-size: .82rem; padding: 0 60px;
}

/* ------------------------------ prose page ------------------------------ */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }

/* ==========================================================================
   TABLET / DESKTOP
   ========================================================================== */
@media (min-width: 620px) {
  :root { --gut: 24px; --sec: 72px; }
  body { font-size: 17.5px; }
  .topline span { display: block; }
  .proof { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card { padding: 20px 18px; }
  .card p { font-size: .95rem; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .steps li { padding: 18px 18px 18px 58px; }
  .steps li::before { left: 18px; top: 17px; }
  .rev-swipe { display: none; }
  .rev-grid {
    margin: 26px 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(2, 1fr);
    overflow: visible;
  }
  .rev { flex: none; max-width: none; }
  .areas { grid-template-columns: repeat(3, 1fr); }
  .gal { grid-template-columns: repeat(4, 1fr); }
  .btn-lg { width: auto; }
}

@media (min-width: 900px) {
  :root { --sec: 92px; }
  .burger { display: none; }
  .nav {
    display: flex; align-items: center; gap: 22px;
    margin-left: auto;
  }
  .nav a {
    text-decoration: none; color: var(--ink-2); font-weight: 600;
    font-size: .92rem; padding: 4px 0;
    border-bottom: 2px solid transparent;
  }
  .nav a:hover, .nav a[aria-current="page"] {
    color: var(--green); border-bottom-color: var(--green);
  }
  .nav .nav-call { display: none; }
  .head-cta { display: block; margin-left: 24px; }
  .head-phone {
    display: flex; flex-direction: column; text-decoration: none;
    line-height: 1.1; text-align: right;
  }
  .head-phone .l {
    font-size: .66rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--green-l);
  }
  .head-phone .n { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
  .brand-mark { width: 44px; height: 44px; }
  .brand-name { font-size: 1.2rem; }

  .call-bar { display: none; }
  .site-foot { padding-bottom: 44px; }

  .hero { padding-top: 56px; }
  .hero-grid {
    display: grid; grid-template-columns: 1.02fr 1fr;
    gap: 48px; align-items: center;
  }
  .hero-fig { margin: 0; }
  .hero-fig img { aspect-ratio: 4 / 3.3; object-fit: cover; }

  .cards { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .rev-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .areas { grid-template-columns: repeat(6, 1fr); }

  .split { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .split-rev .split-copy { order: 2; }
  .split-rev .split-fig  { order: 1; }
  .sec-sage .split { margin-top: 32px; }

  .foot-grid { grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
}

@media (min-width: 1100px) {
  .hero h1 { font-size: 3.5rem; }
}
