/* ==========================================================================
   R&D Floors: site styles
   Palette: dark walnut, cream/off-white, oak + honey accents, espresso/oak
   buttons. Warm wood tones only. Type: Fraunces (headings) + Instrument Sans (body).
   Edit the variables below to retune.
   ========================================================================== */
:root {
  --walnut-deep: #22160d;
  --walnut: #3b2618;
  --walnut-mid: #5a3a22;
  --oak: #b9844f;
  --oak-light: #d9b98c;
  --honey: #c99a5e;
  --cream: #f6efe3;
  --cream-2: #efe6d6;
  --paper: #fbf8f2;
  --espresso: #2a1b10;
  --bronze: #8a5a2b;      /* deep honey for small text on cream (AA) */
  --ink: #2a211b;
  --muted: #6b5d50;
  --soft: #8a7a69;
  --line: #e4d8c6;
  --line-dark: rgba(217, 185, 140, .22);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif;

  --wrap: 1200px;
  --r: 2px;
  --shadow: 0 30px 60px -45px rgba(34, 22, 13, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--walnut-mid); }
a:hover { color: var(--bronze); }
:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 350;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  line-height: 1.12;
  letter-spacing: -.012em;
  margin: 0 0 .6em;
  color: var(--walnut);
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.7rem); font-weight: 300; line-height: 1.06; }
h2 { font-size: clamp(2rem, 3.4vw, 2.85rem); }
h3 { font-size: 1.35rem; font-weight: 400; letter-spacing: 0; }
p { margin: 0 0 1.15em; }

.wrap { width: min(var(--wrap), 100% - 3.5rem); margin-inline: auto; }
.section { padding: clamp(5.5rem, 11vw, 9.5rem) 0; }
.lede { font-size: 1.14rem; color: var(--muted); max-width: 36rem; }

/* Section label: restrained, letterspaced, deep bronze */
.kicker {
  font-family: var(--sans);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--bronze);
  margin: 0 0 1.4rem;
}
.kicker-light { color: var(--oak-light); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--paper); color: var(--walnut); padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Buttons: espresso (cream text, oak hover) or oak (walnut text), rounded -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 500; font-size: .98rem; letter-spacing: .01em;
  padding: .9rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.btn-espresso { background: var(--espresso); color: var(--cream); }
.btn-espresso:hover { background: var(--oak); color: var(--walnut-deep); }
.btn-oak { background: var(--oak); color: var(--walnut-deep); }
.btn-oak:hover { background: var(--oak-light); color: var(--walnut-deep); }
.btn-large { padding: 1.05rem 2.3rem; font-size: 1.02rem; }
.btn-small { padding: .55rem 1.15rem; font-size: .9rem; }
.text-link { font-weight: 500; color: var(--walnut); text-decoration: none; border-bottom: 1px solid var(--oak); padding-bottom: 3px; }
.text-link:hover { color: var(--bronze); border-color: var(--bronze); }

/* Header ------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 84px; }
.brand { display: flex; align-items: center; gap: .85rem; color: var(--walnut); text-decoration: none; }
.brand img { width: 52px; height: 52px; }
.brand-name { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 400; line-height: 1; letter-spacing: .005em; }
.brand-tag { display: block; font-size: .64rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--soft); margin-top: .4rem; }
.nav { display: flex; align-items: center; gap: 2.1rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .93rem; }
.nav a:not(.btn):not(.nav-phone) { padding: .3rem 0; border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav a:not(.btn):not(.nav-phone):hover { border-bottom-color: var(--oak); }
.nav-phone { display: inline-flex; align-items: center; gap: .45rem; color: var(--walnut) !important; white-space: nowrap; }
.nav-phone .ico { width: 14px; height: 14px; color: var(--oak); }
.nav .short { display: none; }
.brand-name, .nav .btn { white-space: nowrap; }
@media (max-width: 1000px) { .nav a:not(.btn):not(.nav-phone) { display: none; } }
@media (max-width: 560px) {
  .site-header .wrap { gap: .6rem; min-height: 66px; }
  .brand-tag { display: none; }
  .brand-name { font-size: 1.3rem; }
  .brand img { width: 42px; height: 42px; }
  .brand { gap: .55rem; }
  .nav { gap: .5rem; }
  .nav-phone { padding: .48rem .85rem; border: 1px solid var(--oak); border-radius: 999px; font-size: .88rem; }
  .nav .full { display: none; }
  .nav .short { display: inline; }
}
@media (max-width: 420px) {
  .nav-phone .ico { display: none; }
  .brand-name { font-size: 1.18rem; }
  .brand img { width: 38px; height: 38px; }
  .nav-phone, .nav .btn-small { padding: .48rem .75rem; font-size: .86rem; }
}

/* Hero: walnut tint over oak floor, centered, one CTA ---------------------- */
.hero {
  color: var(--cream);
  background:
    radial-gradient(ellipse at 50% 40%, rgba(34,22,13,.62) 0%, rgba(34,22,13,.84) 70%),
    linear-gradient(180deg, rgba(34,22,13,.55), rgba(34,22,13,.75)),
    url("floor.webp?v=5") center / cover,
    var(--walnut);
  text-align: center;
}
.hero-inner { min-height: min(86vh, 760px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 7rem 0 6rem; }
.hero-label { font-size: .72rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: rgba(246,239,227,.68); margin: 0 0 2rem; }
.hero h1 { color: #fbf6ec; max-width: 16ch; margin: 0 auto .5em; }
.hero-lede { font-size: 1.12rem; line-height: 1.8; max-width: 36rem; margin: 0 auto; color: rgba(246,239,227,.82); }
.hero-actions { margin-top: 2.8rem; }
.hero-note { margin: 1.6rem 0 0; font-size: .86rem; letter-spacing: .02em; color: rgba(246,239,227,.6); }

/* Stats band --------------------------------------------------------------- */
.stats { background: var(--cream); border-bottom: 1px solid var(--line); }
.stats-list { list-style: none; margin: 0; padding: 3.4rem 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-list li { text-align: center; padding: 0 1rem; border-left: 1px solid var(--line); }
.stats-list li:first-child { border-left: 0; }
.stats-list strong { display: block; font-family: var(--serif); font-weight: 300; font-size: 2.6rem; line-height: 1.1; color: var(--walnut); font-variation-settings: "SOFT" 0, "WONK" 0; }
.stats-list span { display: block; margin-top: .55rem; font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }

/* About -------------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 7.5rem); align-items: center; }
.about-copy p:not(.kicker):not(.about-quote) { color: var(--muted); }
.about-quote {
  margin: 2.6rem 0 0; padding: 1.8rem 0 0;
  border-top: 1px solid var(--line);
  font-family: var(--serif); font-weight: 300; font-size: 1.45rem; line-height: 1.45; color: var(--walnut);
  font-variation-settings: "SOFT" 0, "WONK" 0;
}
.framed { margin: 0 1.4rem 0 0; }
.frame { position: relative; }
.frame::before {
  content: ""; position: absolute; inset: 1.4rem -1.4rem -1.4rem 1.4rem;
  border: 1px solid var(--oak-light); z-index: 0;
}
.frame .ph-photo { position: relative; z-index: 1; }
.framed figcaption { margin-top: 2.4rem; font-size: .85rem; color: var(--soft); }

/* Photo placeholder blocks */
.ph-photo {
  position: relative; overflow: hidden;
  border-radius: var(--r);
  background: url("floor.webp?v=5") var(--px, 0) var(--py, 0) / 900px auto, var(--oak);
  min-height: 200px;
}
.ph-photo::after { content: ""; position: absolute; inset: 0; background: var(--wash, rgba(34,22,13,.18)); }
.ph-badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 1;
  padding: .3rem .7rem;
  background: rgba(251,248,242,.92); color: var(--muted);
  font-size: .62rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
.ph-about { min-height: 520px; --px: -120px; --py: -40px; --wash: rgba(34,22,13,.35); }
.ph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Services: hairline spec list --------------------------------------------- */
.services { background: var(--cream); }
.services-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 8vw, 7rem); align-items: start; }
.services-head { position: sticky; top: 130px; }
.services-head .lede { margin-bottom: 2rem; }
.spec-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--oak-light); }
.spec { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: 2.1rem 0; border-bottom: 1px solid var(--line); }
.spec-num { font-family: var(--serif); font-weight: 300; font-size: 1.05rem; line-height: 1.9; color: var(--oak); letter-spacing: .06em; }
.spec h3 { margin: 0 0 .45rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .9rem; }
.spec p { margin: 0; color: var(--muted); font-size: 1rem; }
.spec-tag { font-family: var(--sans); font-size: .62rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); }

/* Gallery ------------------------------------------------------------------ */
.gallery-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 3rem; margin-bottom: 3.5rem; }
.gallery-head h2 { margin-bottom: 0; }
.gallery-head .lede { margin: 0; max-width: 24rem; font-size: 1.02rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 2.2rem 1.6rem; }
.shot { margin: 0; display: flex; flex-direction: column; }
.shot .ph-photo { flex: 1; min-height: 0; }
.shot figcaption { margin-top: .8rem; font-size: .84rem; color: var(--muted); letter-spacing: .01em; }
.gallery-grid .tall { grid-row: span 2; }
.gallery-grid .wide { grid-column: span 2; }
.g1 { --px: 0; --py: 0; --wash: rgba(34,22,13,.22); }
.g2 { --px: -300px; --py: -160px; --wash: rgba(34,22,13,.38); }
.g3 { --px: -520px; --py: -60px; --wash: rgba(34,22,13,.12); }
.g4 { --px: -140px; --py: -320px; --wash: rgba(34,22,13,.45); }
.g5 { --px: -640px; --py: -240px; --wash: rgba(34,22,13,.25); }
.g6 { --px: -60px; --py: -420px; --wash: rgba(34,22,13,.3); }

/* Testimonials ------------------------------------------------------------- */
.testimonials { background: var(--cream); border-top: 1px solid var(--line); }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 3.5rem; border-top: 1px solid var(--oak-light); }
.quote { margin: 0; padding: 2.4rem 2.2rem 0 0; }
.quote + .quote { padding-left: 2.2rem; border-left: 1px solid var(--line); }
.quote blockquote { margin: 0 0 1.4rem; font-family: var(--serif); font-weight: 300; font-size: 1.22rem; line-height: 1.55; color: var(--walnut); font-variation-settings: "SOFT" 0, "WONK" 0; }
.quote figcaption { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }

/* Service area: walnut with faint contour lines ---------------------------- */
.area { background: url("topo.svg?v=5") center / 800px 600px, var(--walnut-deep); color: var(--cream); }
.area h2 { color: #fbf6ec; }
.area .lede { color: rgba(246,239,227,.72); }
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 7rem); align-items: center; }
.towns { list-style: none; padding: 0; margin: 2.2rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.towns li { padding: .38rem 1rem; border-radius: 999px; border: 1px solid var(--line-dark); font-size: .88rem; color: rgba(246,239,227,.82); }
.towns li.primary { border-color: var(--oak-light); color: #fbf6ec; }
.area-note { margin-top: 1.8rem; font-size: .95rem; color: rgba(246,239,227,.6); }
.area-card { background: var(--paper); padding: 2.4rem; box-shadow: 0 40px 70px -40px rgba(0,0,0,.7); }
.area-card svg { width: 100%; height: auto; display: block; }

/* Consultation ------------------------------------------------------------- */
.consult-head { max-width: 40rem; margin: 0 auto 3.8rem; text-align: center; }
.consult-head .lede { margin-inline: auto; }
.consult-card {
  display: grid; grid-template-columns: .78fr 1.22fr;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.consult-side { background: var(--cream); padding: clamp(2rem, 4.5vw, 3.2rem); border-right: 1px solid var(--line); }
.consult-side h3 { margin-bottom: 1.6rem; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.2rem 1fr; column-gap: .4rem; padding-bottom: 1.3rem; }
.steps li::before {
  content: counter(s, upper-roman); grid-row: span 2;
  font-family: var(--serif); font-weight: 300; font-size: 1rem; line-height: 1.75; color: var(--oak);
}
.steps strong { font-weight: 600; color: var(--walnut); font-size: .98rem; }
.steps span { font-size: .93rem; color: var(--muted); }
.limited { margin: 1rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: .93rem; color: var(--muted); }
.call-line { margin: 1.6rem 0 0; font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }
.call-line a { display: inline-block; margin-top: .4rem; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; letter-spacing: 0; text-transform: none; color: var(--walnut); text-decoration: none; }
.call-line a:hover { color: var(--bronze); }
.consult-form { padding: clamp(2rem, 4.5vw, 3.2rem); }
.consult-form h3 { margin-bottom: .3rem; }
.form-intro { color: var(--muted); font-size: .95rem; margin-bottom: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.4rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field.full { grid-column: 1 / -1; }
label { font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  width: 100%; padding: .8rem .95rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
input::placeholder, textarea::placeholder { color: #a99a89; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' fill='none' stroke='%238a7a69' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.6rem;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; background-color: #fff; border-color: var(--oak); box-shadow: 0 0 0 3px rgba(185,132,79,.18); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.form-foot p { margin: 0; font-size: .84rem; color: var(--soft); flex: 1 1 14rem; }

/* Footer ------------------------------------------------------------------- */
.site-footer { background: var(--walnut-deep); color: rgba(246,239,227,.66); padding: 5rem 0 2.4rem; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; }
.site-footer h4 { font-family: var(--sans); font-size: .68rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: rgba(246,239,227,.48); margin: .4rem 0 1.2rem; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: #fff; border-bottom: 1px solid var(--oak); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.brand-footer { color: var(--cream); margin-bottom: 1.4rem; }
.brand-footer:hover { border-bottom: 0 !important; }
.brand-footer .brand-tag { color: rgba(246,239,227,.5); }
.site-footer p { max-width: 24rem; }
.footer-bottom { margin-top: 4rem; padding-top: 1.6rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .8rem; color: rgba(246,239,227,.45); }
.footer-bottom--solo { margin-top: 0; border-top: 0; padding-top: 0; }

/* Thank-you page ----------------------------------------------------------- */
.thanks { min-height: 68vh; display: grid; place-items: center; text-align: center; background: var(--cream); }
.thanks .lede { margin-inline: auto; }
.back-home { margin-top: 2.4rem; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 980px) {
  .about-grid, .services-grid, .area-grid { grid-template-columns: 1fr; }
  .services-head { position: static; }
  .consult-card { grid-template-columns: 1fr; }
  .consult-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats-list { grid-template-columns: 1fr 1fr; row-gap: 2.4rem; }
  .stats-list li:nth-child(3) { border-left: 0; }
  .quote-grid { grid-template-columns: 1fr; }
  .quote, .quote + .quote { padding: 2rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .ph-about { min-height: 380px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { width: min(var(--wrap), 100% - 2.75rem); }
  .hero-inner { min-height: 0; padding: 6rem 0 5rem; }
  .hero-actions .btn { width: 100%; }
  .stats-list { padding: 2.8rem 0; }
  .stats-list strong { font-size: 2.2rem; }
  .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; row-gap: 2rem; }
  .gallery-grid .tall { grid-row: span 1; }
  .gallery-grid .wide { grid-column: span 1; }
  .form-foot .btn { width: 100%; }
  .spec { grid-template-columns: 3rem 1fr; padding: 1.7rem 0; }
  .area-card { padding: 1.4rem; }
}

/* Plank parallax layer ------------------------------------------------------
   Faint plank seams + grain behind the light sections. assets/parallax.js
   drifts each layer slightly as you scroll (off for reduced motion). */
.about, .services, .gallery, .testimonials, .consult { position: relative; overflow: hidden; overflow: clip; isolation: isolate; }
.plx {
  position: absolute; inset: -140px -180px; z-index: -1; pointer-events: none;
  background: url("planks.svg?v=5") 0 0 / 1200px 360px repeat;
  opacity: .045;
  will-change: transform;
}
.services .plx, .testimonials .plx { background-position: 430px 100px; }
@media (max-width: 640px) { .plx { opacity: .035; inset: -80px -100px; } }
@media (prefers-reduced-motion: reduce) { .plx { will-change: auto; transform: none !important; } }
