/* FloorCraft Hardwood Flooring — shared styles
   Palette is drawn from real wood stain colours (Golden Oak, Jacobean,
   Special Walnut) rather than an abstract brand palette. */

:root {
  --ink:        #17120E;
  --espresso:   #241A13;
  --walnut:     #6B4A2F;
  --oak:        #C4894A;
  --oak-deep:   #A06A32;
  --bone:       #FFFFFF;
  --sand:       #F4F0E9;
  --rule:       #E2DBD0;
  --muted:      #6E655C;

  --measure: 66ch;
  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --band: clamp(3.5rem, 8vw, 7rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.62;
  font-synthesis-weight: none;
}

h1, h2, h3 { margin: 0; line-height: 1.06; letter-spacing: -.022em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.5rem); }
h3 { font-size: clamp(1.12rem, 1rem + .5vw, 1.35rem); line-height: 1.18; }
p  { margin: 0 0 1rem; max-width: var(--measure); }
a  { color: inherit; }

:focus-visible {
  outline: 3px solid var(--oak);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: var(--pad); }
.band { padding-block: var(--band); }
.band--sand { background: var(--sand); }
.band--dark { background: var(--espresso); color: #F0E9DF; }
.band--dark h2, .band--dark h3 { color: #FFF; }
.band--dark p { color: #D9CFC2; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--ink); color: #fff; padding: .7rem 1rem;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */
.masthead {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--rule);
}
.masthead__in {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 68px; flex-wrap: wrap;
}
.brand {
  font-weight: 800; font-size: 1.16rem; letter-spacing: -.03em;
  text-decoration: none; margin-right: auto;
}
.brand span { color: var(--oak); }
.nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: .94rem;
  color: var(--muted); padding-block: .35rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--oak); }
.tel { font-weight: 700; text-decoration: none; white-space: nowrap; }
.tel:hover { color: var(--oak-deep); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: .82rem 1.5rem;
  font-weight: 700; font-size: .97rem; text-decoration: none;
  border: 2px solid var(--ink); border-radius: 2px;
  background: var(--ink); color: #fff; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--oak-deep); border-color: var(--oak-deep); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.band--dark .btn, .hero .btn { background: var(--oak); border-color: var(--oak); color: var(--espresso); }
.band--dark .btn:hover, .hero .btn:hover { background: #fff; border-color: #fff; color: var(--espresso); }
.band--dark .btn--ghost, .hero .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.band--dark .btn--ghost:hover, .hero .btn--ghost:hover { background: #fff; color: var(--espresso); border-color: #fff; }
.btnrow { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.9rem; }

/* ---------- hero ---------- */
.hero { background: var(--espresso); color: #F0E9DF; padding-block: clamp(3.2rem, 7vw, 6rem); }
.hero p.lede { color: #D9CFC2; font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); max-width: 54ch; }
.hero h1 { color: #fff; max-width: 19ch; }
.hero .kicker {
  color: var(--oak); font-weight: 700; font-size: .9rem;
  margin-bottom: 1rem; letter-spacing: .01em;
}
.facts {
  display: flex; flex-wrap: wrap; gap: 0 2.2rem;
  margin-top: 2.6rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.18);
  font-size: .93rem; color: #CDC2B4;
}
.facts b { color: #fff; font-weight: 700; }

/* ---------- plank rows (services) ---------- */
.planks { border-top: 1px solid var(--rule); margin-top: 2.4rem; }
.plank {
  display: grid; grid-template-columns: 1fr auto; gap: .6rem 2rem;
  align-items: start;
  padding: 1.65rem 1.5rem 1.65rem 1.35rem;
  border-bottom: 1px solid var(--rule);
  border-left: 6px solid var(--edge, var(--oak));
  text-decoration: none;
  transition: background .15s ease;
}
.plank:hover { background: var(--sand); }
.plank__body { grid-column: 1; }
.plank p { margin: .45rem 0 0; color: var(--muted); font-size: .97rem; max-width: 58ch; }
.plank__spec {
  margin: .7rem 0 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: .4rem .5rem;
  font-size: .82rem; color: var(--walnut); font-weight: 600;
}
.plank__spec li { border: 1px solid var(--rule); border-radius: 2px; padding: .18rem .5rem; }
.plank__go { grid-column: 2; align-self: center; font-weight: 700; color: var(--oak-deep); white-space: nowrap; font-size: .93rem; }

/* ---------- stain swatches (the signature element) ---------- */
.stains { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 0; margin-top: 2.2rem; }
.stain { padding: 5.5rem .75rem .8rem; color: #fff; font-size: .82rem; font-weight: 600; line-height: 1.25; }
.stain.is-light { color: var(--ink); }

/* ---------- steps ---------- */
.steps { counter-reset: s; display: grid; gap: 1.6rem; margin-top: 2.4rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step { counter-increment: s; padding-top: 1.1rem; border-top: 3px solid var(--ink); }
.step::before { content: counter(s); display: block; font-weight: 800; font-size: 1.05rem; color: var(--oak-deep); margin-bottom: .5rem; }
.step p { font-size: .96rem; color: var(--muted); margin: .4rem 0 0; }
.band--dark .step { border-top-color: var(--oak); }
.band--dark .step p { color: #CDC2B4; }

/* ---------- generic two-col ---------- */
.split { display: grid; gap: clamp(1.8rem, 4vw, 3.4rem); grid-template-columns: 1fr; }
@media (min-width: 850px) { .split { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }
.split--intro { align-items: start; }

.ticks { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.ticks li { padding: .55rem 0 .55rem 1.5rem; border-bottom: 1px solid var(--rule); position: relative; font-size: .97rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 8px; height: 8px; background: var(--oak); }
.band--dark .ticks li { border-bottom-color: rgba(255,255,255,.15); }

/* ---------- reviews ---------- */
.reviews { display: grid; gap: 1.5rem; margin-top: 2.4rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.review { border-left: 3px solid var(--oak); padding: .2rem 0 .2rem 1.15rem; }
.review blockquote { margin: 0; font-size: .96rem; }
.review cite { display: block; margin-top: .8rem; font-style: normal; font-size: .86rem; color: var(--muted); }
.stars { color: var(--oak-deep); letter-spacing: .12em; font-size: .85rem; }

/* ---------- towns ---------- */
.towns { list-style: none; margin: 1.8rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.towns li { border: 1px solid var(--rule); border-radius: 2px; padding: .32rem .7rem; font-size: .9rem; background: #fff; }

/* ---------- brands ---------- */
.brands { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; padding: 0; list-style: none; }
.brands li { font-weight: 700; font-size: .92rem; color: var(--walnut); border: 1px solid var(--rule); border-radius: 2px; padding: .38rem .8rem; background: #fff; }

/* ---------- form ---------- */
.form { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-top: 2rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--wide { grid-column: 1 / -1; }
label { font-weight: 600; font-size: .9rem; }
input, select, textarea {
  font: inherit; font-size: .97rem; padding: .68rem .75rem;
  border: 1px solid #C9C0B4; border-radius: 2px; background: #fff; color: var(--ink);
  width: 100%;
}
textarea { min-height: 110px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.formnote { font-size: .88rem; color: var(--muted); margin-top: 1rem; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #C8BEB2; padding-block: 3.2rem 2.2rem; font-size: .93rem; }
.foot a { color: #fff; }
.foot h4 { margin: 0 0 .7rem; color: #fff; font-size: .95rem; letter-spacing: -.01em; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .42rem; }
.foot__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.foot__base { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .86rem; }

.crumbs { font-size: .87rem; color: var(--muted); padding-top: 1.4rem; }
.crumbs a { color: var(--muted); }

/* ---------- mobile ---------- */
@media (max-width: 720px) {
  .masthead__in { gap: .5rem .9rem; padding-block: .6rem; }
  .nav { gap: .35rem .9rem; order: 3; width: 100%; }
  .nav a { font-size: .88rem; padding-block: .15rem; }
  .brand { font-size: 1.05rem; margin-right: auto; }
  .masthead .btn { padding: .55rem .9rem; font-size: .88rem; }
  .plank { grid-template-columns: 1fr; padding: 1.35rem 1rem 1.35rem 1.1rem; }
  .plank__go { grid-column: 1; margin-top: .8rem; }
  .facts { gap: .3rem 1.4rem; }
  .stain { padding-top: 3.5rem; }
}
@media (max-width: 420px) {
  .masthead .btn { display: none; }
}

/* ---------- hero with image ---------- */
.hero__grid { display: grid; gap: clamp(1.8rem, 4vw, 3rem); align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); } }
.hero__shot { margin: 0; }
.hero__shot img {
  width: 100%; height: auto; display: block; aspect-ratio: 4 / 3;
  object-fit: cover; border-radius: 2px;
}

/* ---------- work gallery ---------- */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 2.4rem; }
.shot { margin: 0; position: relative; }
.shot img {
  width: 100%; height: auto; display: block; aspect-ratio: 4 / 3;
  object-fit: cover; border-radius: 2px; background: var(--sand);
}
.shot figcaption {
  margin-top: .55rem; font-size: .88rem; color: var(--muted);
}
.shot__tag {
  position: absolute; top: .6rem; left: .6rem;
  background: rgba(23,18,14,.82); color: #fff;
  font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  padding: .22rem .55rem; border-radius: 2px;
}

/* ---------- review marquee ---------- */
.marquee { overflow: hidden; margin-top: 2.4rem; position: relative; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 8%; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(90deg, var(--bone), transparent); }
.marquee::after  { right: 0; background: linear-gradient(270deg, var(--bone), transparent); }
.band--sand .marquee::before { background: linear-gradient(90deg, var(--sand), transparent); }
.band--sand .marquee::after  { background: linear-gradient(270deg, var(--sand), transparent); }

.marquee__track {
  display: flex; gap: 1.25rem; width: max-content;
  animation: floorcraft-slide 52s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes floorcraft-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.marquee .review {
  flex: 0 0 min(340px, 78vw);
  background: #fff; border: 1px solid var(--rule); border-left: 3px solid var(--oak);
  border-radius: 0; padding: 1.1rem 1.15rem;
}
.band--sand .marquee .review { background: #fff; }

@media (prefers-reduced-motion: reduce) {
  .marquee { overflow: visible; }
  .marquee::before, .marquee::after { display: none; }
  .marquee__track { animation: none; width: auto; flex-wrap: wrap; }
  .marquee .review { flex: 1 1 260px; }
}

@media (min-width: 900px) {
  .hero__grid h1 { font-size: clamp(2.1rem, 1rem + 2.5vw, 3.05rem); max-width: 15ch; }
}

/* photos from site are portrait phone shots — frame them accordingly */
.hero__shot img { aspect-ratio: 4 / 5; }
.shot img { aspect-ratio: 4 / 5; }
@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

/* ---------- logo mark ---------- */
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand img { width: 38px; height: 38px; display: block; }
.brand__name { font-weight: 800; letter-spacing: -.03em; }
.brand__name b { color: var(--oak-deep); font-weight: 800; }
.brand span { color: inherit; }
.foot__logo { width: 56px; height: 56px; display: block; margin-bottom: .8rem; }
@media (max-width: 720px) { .brand img { width: 32px; height: 32px; } }

/* ==================== v2 layout ==================== */

/* full-bleed photo hero */
.hero--photo {
  position: relative; background: var(--espresso);
  padding-block: clamp(5rem, 13vw, 9.5rem);
  isolation: isolate; overflow: hidden;
}
.hero--photo::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: var(--shot); background-size: cover; background-position: center 62%;
}
.hero--photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(28,20,14,.93) 0%, rgba(28,20,14,.82) 46%, rgba(28,20,14,.42) 100%);
}
.hero--photo .wrap { position: relative; }
.hero--photo h1 { color: #fff; max-width: 17ch; }
.hero--photo .lede { color: #E6DCCF; max-width: 50ch; }
.hero--photo .kicker { color: var(--oak); }

/* service tiles */
.tiles {
  display: grid; gap: 14px; margin-top: 2.4rem;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
}
.tile {
  position: relative; display: block; min-height: 218px;
  border-radius: 2px; overflow: hidden; text-decoration: none;
  background: var(--walnut) var(--shot) center/cover no-repeat;
  isolation: isolate;
}
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(23,18,14,.86) 0%, rgba(23,18,14,.28) 58%, rgba(23,18,14,.12) 100%);
  transition: background .2s ease;
}
.tile:hover::after { background: linear-gradient(0deg, rgba(23,18,14,.9) 0%, rgba(23,18,14,.5) 70%, rgba(23,18,14,.3) 100%); }
.tile--swatch { background-image: none; }
.tile__label {
  position: absolute; z-index: 1; left: 1rem; right: 1rem; bottom: .95rem; color: #fff;
}
.tile__label strong { display: block; font-size: 1.06rem; font-weight: 800; letter-spacing: -.02em; }
.tile__label span { display: block; font-size: .84rem; color: #D6C9B9; margin-top: .2rem; }

/* alternating feature block */
.feature { display: grid; gap: clamp(1.6rem, 4vw, 3.2rem); align-items: center; }
@media (min-width: 880px) { .feature { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .feature--flip .feature__media { order: 2; } }
.feature__media img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px;
}

/* pull-quote over dark */
.pullquote { text-align: left; max-width: 46ch; }
.pullquote blockquote { margin: 0; font-size: clamp(1.15rem, 1rem + .8vw, 1.6rem); line-height: 1.42; color: #fff; font-weight: 500; }
.pullquote cite { display: block; margin-top: 1.1rem; font-style: normal; font-size: .92rem; color: var(--oak); }

/* photo behind the dark pull-quote band */
.band--dark[style*="--shot"] { position: relative; isolation: isolate; overflow: hidden; }
.band--dark[style*="--shot"]::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: var(--shot); background-size: cover; background-position: center 60%;
}
.band--dark[style*="--shot"]::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(95deg, rgba(28,20,14,.94) 0%, rgba(28,20,14,.84) 52%, rgba(28,20,14,.5) 100%);
}

/* three tiles per row, and give the photo-less tiles a plank texture
   so they read as designed rather than as a missing image */
.tiles { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.tile--swatch {
  background-image: repeating-linear-gradient(
    93deg,
    var(--p1) 0 62px, rgba(255,255,255,.07) 62px 64px,
    var(--p2) 64px 132px, rgba(255,255,255,.07) 132px 134px,
    var(--p3) 134px 196px, rgba(255,255,255,.07) 196px 198px);
}
.tile--swatch::after {
  background: linear-gradient(0deg, rgba(23,18,14,.88) 0%, rgba(23,18,14,.42) 62%, rgba(23,18,14,.22) 100%);
}
