/* Illinois River Flooring — site styles. */
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/Fraunces-VariableFont_SOFT%2CWONK%2Copsz%2Cwght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/Fraunces-Italic-VariableFont_SOFT%2CWONK%2Copsz%2Cwght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: block;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/SourceSans3-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/SourceSans3-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: italic;
  font-display: block;
}

:root {
  --forest: #1B4130;
  --cream: #F7F0E4;
  --paper: #FBF3E6;
  --ink: #221C16;
  --brass: #B08D57;
  --oak: #C48A4A;
  --linen: #E8DFD0;
  --walnut: #3A2A1C;
  --rule: #D4C6B0;
  --warm: #F1E6D4;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  font-variation-settings: "wght" 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--forest); text-decoration: none; }
a:hover { color: var(--walnut); }

.wrap {
  width: min(var(--wrap), calc(100% - 64px));
  margin: 0 auto;
}

.grain { position: relative; }
.grain::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.14;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.2  0 0 0 0 0.14  0 0 0 0 0.08  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}
.grain > * { position: relative; z-index: 1; }

/* Referral banner — overlays the top of the hero, exact supplied wording, no uppercase transform */
.refer {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 40;
  background: rgba(27, 65, 48, 0.92);
  color: var(--cream);
  font-size: 14px;
  letter-spacing: 0.01em;
  text-align: center;
  padding: 9px 24px;
  line-height: 1.4;
  font-variation-settings: "wght" 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  background: var(--forest);
  color: var(--cream);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-variation-settings: "wght" 620;
  border: 1px solid var(--forest);
  line-height: 1;
}
.btn:hover { background: var(--walnut); border-color: var(--walnut); color: var(--cream); }
.btn.light {
  background: var(--cream);
  color: var(--forest);
  border-color: var(--cream);
}
.btn.light:hover { background: var(--paper); color: var(--forest); }
.btn.ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn.ghost:hover { background: rgba(247,240,228,0.12); color: var(--cream); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  color: var(--forest);
  display: flex;
  flex-direction: column;
  isolate: isolate;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 68% 50%;
  z-index: 0;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Soft cream wash on the left so dark type stays readable; the living room and floor stay clear on the right */
  background:
    linear-gradient(90deg, rgba(247,240,228,0.82) 0%, rgba(247,240,228,0.62) 28%, rgba(247,240,228,0.18) 48%, rgba(247,240,228,0) 64%),
    linear-gradient(180deg, rgba(247,240,228,0.35) 0%, rgba(247,240,228,0) 22%);
}
.hero > header {
  position: relative;
  z-index: 5;
  background: transparent;
  padding-top: 52px;
}
.hero .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--forest);
}
.brand img { width: 44px; height: 44px; }
.brand .name {
  font-family: Fraunces, serif;
  font-size: 18px;
  font-variation-settings: "opsz" 18, "SOFT" 20, "WONK" .3, "wght" 550;
  font-weight: 550;
  display: block;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.brand .descriptor {
  display: block;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--walnut);
  font-variation-settings: "wght" 600;
  margin-top: 3px;
}
nav.mini { display: flex; gap: 22px; }
nav.mini a {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  font-variation-settings: "wght" 580;
}
nav.mini a:hover { color: var(--walnut); }

.hero-copy {
  position: relative;
  z-index: 4;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0 80px;
  max-width: none;
}
.hero-copy h1 {
  font-family: Fraunces, serif;
  font-size: clamp(52px, 7vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144, "SOFT" 46, "WONK" .45, "wght" 500;
  font-weight: 500;
  margin: 0 0 32px;
  max-width: 11ch;
  color: var(--forest);
  text-shadow: 0 1px 0 rgba(247,240,228,0.35);
}

/* Lede lives just under the full-screen photo, not over it */
.lede-band {
  background: var(--cream);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--rule);
}
.lede-band .lede {
  margin: 0;
  max-width: 38em;
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink);
}

/* Proof row */
.proof {
  background: var(--forest);
  color: var(--cream);
  padding: 36px 0;
}
.proof ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 32px;
}
.proof li {
  padding-left: 16px;
  border-left: 2px solid var(--brass);
  font-size: 16px;
  line-height: 1.35;
}

/* Section typography */
section { padding: 96px 0; }
h2 {
  font-family: Fraunces, serif;
  font-size: 48px;
  line-height: 1.05;
  margin: 0 0 10px;
  color: var(--forest);
  font-variation-settings: "opsz" 48, "SOFT" 28, "WONK" .3, "wght" 550;
  font-weight: 550;
  letter-spacing: -0.02em;
}
.sub { margin: 0 0 40px; color: #4a433c; }
.needed { font-style: italic; color: #5c534a; }
h3 {
  font-family: Fraunces, serif;
  font-size: 28px;
  margin: 0 0 6px;
  color: var(--forest);
  font-variation-settings: "opsz" 28, "SOFT" 25, "WONK" .3, "wght" 550;
  font-weight: 550;
}

/* Photos */
.pic {
  position: relative;
  margin: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
}
.pic .frame {
  position: relative;
  overflow: hidden;
  background: #e4d8c6;
  flex: 1 1 auto;
  min-height: inherit;
}
.pic .frame img,
.pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
  position: absolute;
  inset: 0;
}
.pic figcaption { flex: 0 0 auto; }

/* Services */
.services { background: var(--linen); }
.svc-hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  gap: 20px;
  margin-bottom: 20px;
  align-items: stretch;
}
.svc-hero-grid .pic-lg, .svc-hero-grid .pic-lg .frame { min-height: 640px; }
.svc-hero-grid .pic-tall, .svc-hero-grid .pic-tall .frame { min-height: 640px; }
.svc-hero-grid .pic-tall img { object-position: 50% 60%; }
.svc-hero-grid .pic-lg img { object-position: 50% 70%; }
.svc-low-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.svc-low-grid .pic, .svc-low-grid .pic .frame { min-height: 480px; }
.svc-low-grid .pic figcaption {
  max-width: 36em;
}
.pic figcaption {
  padding: 16px 2px 0;
}
.pic figcaption h3 { margin-bottom: 4px; }
.pic figcaption p { margin: 0; }

/* Process */
.how { background: var(--cream); }
.steps { display: flex; flex-direction: column; gap: 56px; }
.step {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}
.step:nth-child(even) { grid-template-columns: 1.15fr 0.85fr; }
.step:nth-child(even) .step-copy { order: 2; }
.step .pic, .step .pic .frame { min-height: 420px; }
.step .pic img { object-position: 50% 50%; }
.num {
  font-family: Fraunces, serif;
  font-size: 56px;
  color: var(--brass);
  font-variation-settings: "opsz" 56, "SOFT" 40, "WONK" .5, "wght" 450;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

/* Gallery */
.work { background: var(--linen); }
.gallery {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-rows: 520px;
  gap: 16px;
}
.gallery .pic.tall {
  grid-row: auto;
  min-height: 0;
}
.gallery .pic { min-height: 0; height: 100%; }
.gallery .pic .frame { height: 100%; min-height: 100%; }
.gallery .pic.tall img { object-position: 50% 40%; }

/* Service area */
.area { background: var(--warm); }
.towns {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}
.towns li {
  font-family: Fraunces, serif;
  font-size: 26px;
  color: var(--forest);
  font-variation-settings: "opsz" 26, "SOFT" 20, "WONK" .25, "wght" 500;
}
.note { color: #5c534a; margin: 0; font-size: 16px; }

/* Quote */
.quote {
  background: var(--forest);
  color: var(--cream);
}
.quote h2, .quote h3 { color: var(--cream); }
.quote .sub { color: rgba(247,240,228,0.85); }
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 12px;
}
.quote label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 14px 0 6px;
  font-variation-settings: "wght" 600;
  color: rgba(247,240,228,0.8);
}
.quote input, .quote select, .quote textarea {
  width: 100%;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(247,240,228,0.28);
  color: var(--cream);
  font: inherit;
  padding: 10px 12px;
}
.quote .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.promise {
  margin: 40px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(247,240,228,0.22);
  font-size: 15px;
  max-width: 36em;
}

footer {
  background: var(--walnut);
  color: var(--cream);
  padding: 48px 0 40px;
}
footer .name {
  font-family: Fraunces, serif;
  font-size: 22px;
  font-variation-settings: "opsz" 22, "SOFT" 20, "WONK" .3, "wght" 550;
  margin-bottom: 8px;
}
footer p { margin: 0 0 16px; }
footer a { color: inherit; }
footer .legal { font-size: 12px; opacity: 0.75; }

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
  a { transition: color 0.2s ease; }
}

@media (max-width: 800px) {
  .wrap { width: calc(100% - 40px); }
  nav.mini { display: none; }
  .hero { min-height: 100svh; min-height: 100dvh; }
  .hero-photo { object-position: 78% 50%; }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(247,240,228,0.72) 0%, rgba(247,240,228,0.45) 22%, rgba(247,240,228,0.08) 42%, rgba(247,240,228,0) 55%),
      linear-gradient(0deg, rgba(247,240,228,0.55) 0%, rgba(247,240,228,0.12) 28%, rgba(247,240,228,0) 48%);
  }
  .refer { font-size: 12px; padding: 8px 14px; line-height: 1.4; }
  .hero > header { padding-top: 88px; }
  .hero .bar { flex-wrap: wrap; gap: 10px; padding: 8px 0 0; }
  .brand { flex: 1 1 auto; }
  .brand .descriptor { display: none; }
  .brand .name { white-space: nowrap; font-size: 16px; }
  .brand img { width: 36px; height: 36px; }
  header .btn { width: 100%; flex: 1 0 100%; font-size: 13px; }
  .hero-copy { padding: 12px 0 88px; justify-content: flex-end; }
  .hero-copy h1 { font-size: 48px; max-width: 12ch; }
  .hero .btn { width: 100%; }
  .lede-band { padding: 36px 0 32px; }
  .lede-band .lede { font-size: 18px; }
  .proof ul { grid-template-columns: 1fr 1fr; gap: 18px 16px; }
  section { padding: 56px 0; }
  h2 { font-size: 36px; }
  .svc-hero-grid,
  .svc-low-grid,
  .step,
  .step:nth-child(even),
  .quote-grid { grid-template-columns: 1fr; }
  .step:nth-child(even) .step-copy { order: 0; }
  .svc-hero-grid .pic-lg, .svc-hero-grid .pic-lg .frame,
  .svc-hero-grid .pic-tall, .svc-hero-grid .pic-tall .frame,
  .svc-low-grid .pic, .svc-low-grid .pic .frame,
  .step .pic, .step .pic .frame { min-height: 360px; }
  .gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .gallery .pic, .gallery .pic .frame { min-height: 320px; }
  .gallery .pic.tall, .gallery .pic.tall .frame { grid-row: auto; min-height: 460px; }
  .quote .actions .btn { width: 100%; }
}

.gallery .pic:nth-child(2) img { object-position: 50% 80%; }
.gallery .pic:nth-child(3) img { object-position: 50% 85%; }
.svc-hero-grid .pic-lg img { object-position: 50% 82%; }
