/* Flooring It — tokens pulled from Brandon's own job photos (porch IMG_2838, walnut boards IMG_3556) */
:root {
  --paper: #faf5ec;
  --ink: #241a10;
  --walnut: #33220f;
  --amber: #b4691f;
  --amber-deep: #8a4a12;
  --brand-red: #b13a2a; /* sampled from the FLOORING IT wordmark on Brandon's business card */
  --line: #e6dcc8;
  --muted: #6d5c44;
  --white: #fffdf8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  /* Brandon's own wide-plank floor (IMG_3570), washed down to a whisper, as the paper */
  background-color: var(--paper);
  background-image: linear-gradient(rgba(250, 245, 236, 0.82), rgba(250, 245, 236, 0.82)), url('img/bg-wood.jpg');
  background-size: auto, 560px;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3, .wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

img { max-width: 100%; display: block; }

a { color: var(--amber-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--walnut); color: var(--white);
  padding: 0.6rem 1rem; z-index: 10; border-radius: 0 0 4px 0;
}
.skip-link:focus { left: 0; }

/* Header */
header.site {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.wordmark { font-size: 1.5rem; font-weight: 700; color: var(--walnut); text-decoration: none; }
.wordmark span { color: var(--brand-red); }
.site-logo { display: block; }
.site-logo img { height: 96px; width: auto; mix-blend-mode: multiply; }
header.site { align-items: center; }
.head-phone { font-weight: 600; text-decoration: none; white-space: nowrap; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; padding: 3.5rem 0 3rem; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); color: var(--walnut); }
.hero .sub { margin: 1.2rem 0 1.8rem; font-size: 1.15rem; color: var(--muted); max-width: 30rem; }
.hero .sub strong { color: var(--ink); }
.hero-photo img { border-radius: 4px; box-shadow: 0 18px 50px rgba(51, 34, 15, 0.28); width: 100%; max-height: 33rem; object-fit: cover; object-position: 50% 60%; }
.hero-photo figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.6rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 650;
  padding: 0.85rem 1.5rem; border-radius: 4px; font-size: 1.05rem;
  border: 2px solid var(--walnut);
}
.btn-primary { background: var(--walnut); color: var(--white); }
.btn-primary:hover { background: var(--ink); }
.btn-ghost { color: var(--walnut); background: transparent; }
.btn-ghost:hover { background: rgba(51, 34, 15, 0.07); }
.hero .fine { margin-top: 1rem; font-size: 0.9rem; color: var(--muted); }

/* Services strip */
.services { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.4rem 0; }
.services ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; justify-content: center; }
.services li { font-family: 'Fraunces', Georgia, serif; font-size: 1.05rem; color: var(--walnut); }
.services li + li::before { content: "·"; color: var(--amber); margin-right: 1rem; }

/* Sections */
section { padding: 3.6rem 0; }
.kicker { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 700; color: var(--brand-red); margin-bottom: 0.5rem; }
.hero .kicker { margin-bottom: 0.9rem; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); color: var(--walnut); margin-bottom: 0.7rem; }
.lede { color: var(--muted); max-width: 38rem; margin-bottom: 2.2rem; font-size: 1.1rem; }

/* The record — gallery */
.record-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.record-grid figure:first-child { grid-column: 1 / -1; }
.record-grid figure { display: flex; flex-direction: column; }
.record-grid img { border-radius: 3px; width: 100%; height: auto; object-fit: cover; aspect-ratio: 4 / 3; }
.record-grid figure:first-child img { aspect-ratio: 21 / 9; }
.record-grid figcaption { font-size: 0.9rem; color: var(--muted); padding-top: 0.45rem; }

/* The sanding line — before/after pairs */
.sanding { background: var(--walnut); color: var(--paper); }
.sanding h2 { color: var(--paper); }
.sanding .lede { color: #c9b696; }
.sanding .kicker { color: #d9a45f; }
.pairs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.pair { position: relative; }
.pair .duo { display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.pair .duo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.pair .duo .after { clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%); margin-left: -8%; }
.pair .duo::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 46.5%; width: 3px;
  background: var(--amber); transform: skewX(-3.5deg);
}
.pair h3 { font-size: 1.15rem; margin-top: 0.8rem; }
.pair .tags { display: flex; justify-content: space-between; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: #c9b696; margin-top: 0.3rem; }

/* Decks */
.deck-duo { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.1rem; align-items: start; }
.deck-duo img { border-radius: 3px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.deck-duo figcaption { font-size: 0.9rem; color: var(--muted); padding-top: 0.45rem; }

/* Who */
.who { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center; border-top: 1px solid var(--line); }
.who img { border-radius: 4px; }
.who p { max-width: 32rem; margin-bottom: 1rem; }
.who .area { font-family: 'Fraunces', Georgia, serif; color: var(--walnut); font-size: 1.1rem; }

/* Quote form */
.quote { background: var(--white); border-top: 1px solid var(--line); }
form { max-width: 34rem; }
label { display: block; font-weight: 600; margin: 1.1rem 0 0.3rem; }
input, textarea {
  width: 100%; padding: 0.75rem; font: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
}
textarea { min-height: 7rem; resize: vertical; }
form button {
  margin-top: 1.4rem; cursor: pointer; font: inherit; font-weight: 650;
  background: var(--walnut); color: var(--white); border: 2px solid var(--walnut);
  padding: 0.85rem 1.6rem; border-radius: 4px; font-size: 1.05rem;
}
form button:hover { background: var(--ink); }
.quote .or { margin-top: 1.2rem; font-size: 0.95rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 2.2rem 0 2.8rem; font-size: 0.92rem; color: var(--muted); }
footer .nap { color: var(--ink); font-weight: 600; }
footer nav { margin-top: 0.6rem; }
footer nav a { margin-right: 1.2rem; }
footer .credit { margin-top: 1rem; font-size: 0.85rem; }

/* Simple pages (thanks, privacy, terms) */
.page { max-width: 40rem; padding: 4rem 0; }
.page h1 { font-size: 2rem; color: var(--walnut); margin-bottom: 1rem; }
.page p, .page li { margin-bottom: 0.9rem; color: var(--ink); }
.page ul { padding-left: 1.2rem; }
.draft-note { background: #f3e8d5; border: 1px solid var(--line); padding: 0.6rem 0.9rem; border-radius: 4px; font-size: 0.88rem; color: var(--muted); margin-bottom: 1.6rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 2rem; }
  .hero-photo { order: -1; }
  .record-grid { grid-template-columns: 1fr 1fr; }
  .pairs { grid-template-columns: 1fr; max-width: 26rem; margin: 0 auto; }
  .deck-duo { grid-template-columns: 1fr; }
  .who { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .record-grid { grid-template-columns: 1fr; }
  .record-grid img { aspect-ratio: 4 / 3; }
  header.site { flex-direction: column; gap: 0.2rem; align-items: flex-start; }
  .site-logo img { height: 76px; }
}
