/* Bob's Upholstery — single-page site. Static, no build step.
   Palette: workwear indigo on white, thread-orange for the call action.
   Motif: stitch lines (dashed rules) between sections. */

@font-face {
  font-family: "Bitter";
  src: url("fonts/bitter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: oklch(0.24 0.02 248);
  --ink-soft: oklch(0.38 0.03 248);
  --bg: oklch(1 0 0);
  --indigo: oklch(0.41 0.09 248);
  --indigo-deep: oklch(0.32 0.08 248);
  --indigo-tint: oklch(0.96 0.012 248);
  --thread: oklch(0.62 0.15 50);
  --thread-deep: oklch(0.52 0.14 50);
  --line: oklch(0.85 0.015 248);

  --font-display: "Bitter", Georgia, "Times New Roman", serif;
  --font-body: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step-0: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.4rem + 1vw, 2.1rem);
  --step-3: clamp(2.1rem, 1.7rem + 2.2vw, 3.2rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 3rem;
  --space-5: clamp(3.5rem, 3rem + 3vw, 6rem);

  --measure: 66ch;
  --wide: 68rem;

  --z-sticky: 10;
  --z-skip: 20;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  text-wrap: balance;
  margin: 0 0 var(--space-2);
}

h1 { font-size: var(--step-3); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: var(--step-2); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 600; }

p { margin: 0 0 var(--space-2); max-width: var(--measure); text-wrap: pretty; }
ul { margin: 0 0 var(--space-2); padding-left: 1.2em; }
li { margin-bottom: 0.35em; }

a { color: var(--indigo); text-underline-offset: 0.15em; }
a:hover { color: var(--indigo-deep); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: var(--z-skip);
  background: var(--ink); color: #fff; padding: 0.6em 1em;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--wide); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }

/* Stitch line: the section separator system. */
.stitch { border: none; border-top: 3px dashed var(--thread); width: 6rem; margin: 0 0 var(--space-3); }
section { padding-block: var(--space-5); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  padding-block: 0.65rem;
}
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.site-header nav { display: flex; align-items: center; gap: var(--space-3); }
.nav-link { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.nav-link:hover, .nav-link:focus { color: var(--indigo); text-decoration: underline; }
@media (max-width: 46rem) { .nav-link { display: none; } }
.header-call {
  display: inline-block;
  background: var(--indigo); color: #fff;
  font-weight: 600; text-decoration: none;
  padding: 0.5em 1em; border-radius: 6px;
  white-space: nowrap;
}
.header-call:hover, .header-call:focus { background: var(--indigo-deep); color: #fff; }

/* ---------- Hero ---------- */

.hero { background: var(--indigo); color: #fff; padding-block: clamp(2.25rem, 5vw, 4.5rem); }
.hero h1 { color: #fff; max-width: 21ch; }
.hero .kicker { font-weight: 600; letter-spacing: 0.01em; margin-bottom: var(--space-1); color: oklch(0.86 0.05 248); }
.hero .promise { font-size: var(--step-1); line-height: 1.45; max-width: 34ch; color: oklch(0.93 0.02 248); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }

.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 0.8em 1.4em; border-radius: 8px; font-size: 1.05rem;
  border: 2px solid transparent;
}
.btn-call { background: var(--thread); color: oklch(0.18 0.03 50); }
.btn-call:hover, .btn-call:focus { background: var(--thread-deep); color: #fff; }
.btn-email { background: transparent; color: #fff; border-color: oklch(0.75 0.05 248); }
.btn-email:hover, .btn-email:focus { border-color: #fff; color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .promise, .hero-actions {
    animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  }
  .hero .promise { animation-delay: 0.08s; }
  .hero-actions { animation-delay: 0.16s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- Trust bar ---------- */

.trust { background: var(--indigo-deep); color: #fff; padding-block: var(--space-2); }
.trust .wrap { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); align-items: baseline; }
/* One typeface for the whole row. The old version set only <strong> in the display face,
   so each item switched font mid-sentence and the row read as a mistake. */
.trust p { margin: 0; max-width: none; font-family: var(--font-display); }
.trust-item { font-size: 1.05rem; color: oklch(0.88 0.025 248); }
.trust-rating { font-size: 1.15rem; }
.trust-rating strong { font-size: 1.5rem; font-weight: 700; }
.trust a { color: #fff; text-underline-offset: 0.2em; }
.trust .stars { color: var(--thread); font-size: 1.2rem; }

/* ---------- Work tiles ---------- */

.materials {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: var(--space-2);
  margin-bottom: var(--space-3);
}
.materials b { font-family: var(--font-display); color: var(--indigo-deep); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: var(--space-2); max-width: none; }
.tile {
  border: 2px solid var(--line); border-radius: 10px;
  padding: var(--space-2) var(--space-3);
}
.tile h3 { margin-bottom: 0.3em; }
.tile p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Not-taken list ---------- */

.not-take { background: var(--indigo-tint); }
.not-take .cols { columns: 2; column-gap: var(--space-4); max-width: 52rem; }
.not-take li { break-inside: avoid; font-weight: 600; }
.not-take .why { color: var(--ink-soft); font-weight: 400; }
@media (max-width: 40rem) { .not-take .cols { columns: 1; } }

.archive-link { margin-top: var(--space-3); margin-bottom: 0; font-size: 0.98rem; }

/* ---------- Archive page ---------- */

.archive-head { background: var(--indigo); color: #fff; padding-block: clamp(2rem, 4vw, 3.5rem); }
.archive-head h1 { color: #fff; max-width: 20ch; }
.archive-head .kicker { color: oklch(0.86 0.05 248); margin-bottom: var(--space-1); font-weight: 600; }
.archive-head .kicker a { color: oklch(0.86 0.05 248); }
.archive-head .promise { font-size: var(--step-1); line-height: 1.45; max-width: 46ch; color: oklch(0.93 0.02 248); }
.archive-head .promise strong { color: #fff; }
.archive-head a.btn-call { color: oklch(0.18 0.03 50); }

/* ---------- Quote steps ---------- */

.steps { list-style: none; padding: 0; counter-reset: step; max-width: var(--measure); }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 2.4rem 1fr; gap: var(--space-2);
  margin-bottom: var(--space-3); align-items: start;
}
.steps li::before {
  content: counter(step);
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  color: #fff; background: var(--indigo);
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center;
}
.steps h3 { margin-bottom: 0.2em; }
.steps p { margin: 0; }

/* ---------- Gallery ---------- */

.gallery-more { margin-top: var(--space-4); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-3) var(--space-2); }
.gallery-grid figure { margin: 0; }
.gallery-grid img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; background: var(--indigo-tint); }
.gallery-grid figcaption { margin-top: var(--space-1); color: var(--ink-soft); font-size: 0.92rem; text-wrap: pretty; }

/* Before / after pair. Both frames are cropped to the same 4:5 at build time so the
   two images sit at matching scale; the browser must not letterbox or stretch them. */
.ba-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-3);
  max-width: 44rem;
}
.ba-pair figure { margin: 0; }
.ba-pair img {
  width: 100%; height: auto; display: block;
  border-radius: 10px;
  background: var(--indigo-tint);
}
.ba-pair figcaption {
  margin-top: var(--space-1);
  color: var(--ink-soft);
  font-size: 0.95rem;
  text-wrap: pretty;
}
/* The counter stool job pairs a portrait phone video with a 4:5 photo. The video
   keeps its native 9:16 frame; capping its width stops it towering over the photo
   on desktop and filling the whole screen on mobile. No autoplay: the poster
   carries the layout and the user opts in to motion, which also keeps
   prefers-reduced-motion users safe without any script. */
.stool-pair video {
  width: 100%; height: auto; display: block;
  max-width: 22rem;
  margin-inline: auto;
  border-radius: 10px;
  background: var(--indigo-tint);
}

.ba-label {
  font-family: var(--font-display);
  color: var(--thread-deep);
  margin-right: 0.4em;
}

.btn-email-solid { background: #fff; color: var(--indigo); }
.btn-email-solid:hover, .btn-email-solid:focus { background: oklch(0.92 0.02 248); color: var(--indigo-deep); }

/* ---------- Reviews ---------- */

.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-3); }
blockquote {
  margin: 0; padding: 0 0 0 var(--space-2);
  border-left: 3px solid var(--indigo);
  font-size: 1.02rem;
}
blockquote footer { color: var(--ink-soft); margin-top: var(--space-1); font-size: 0.95rem; }

/* ---------- FAQ ---------- */

.faq details {
  border-bottom: 1px solid var(--line);
  padding-block: var(--space-2);
  max-width: var(--measure);
}
.faq summary {
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
  cursor: pointer; list-style-position: outside;
}
.faq summary:hover { color: var(--indigo); }
.faq details p { margin-top: var(--space-1); margin-bottom: 0; }

/* ---------- Contact / footer ---------- */

.contact { background: var(--indigo); color: #fff; }
.contact h2 { color: #fff; }
/* Plain links on the indigo panel go white. Buttons must NOT: `.contact a` outranks
   `.btn-call` / `.btn-email-solid` on specificity, which painted the email button's
   label white on its own white background (invisible until :hover raised the
   specificity again) and overrode the call button's dark label. */
.contact a:not(.btn) { color: #fff; }
.contact .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-3); }
.contact address { font-style: normal; line-height: 1.7; }
.contact .btn-call { margin-top: var(--space-2); }

.site-footer { background: var(--indigo-deep); color: oklch(0.85 0.03 248); font-size: 0.9rem; padding-block: var(--space-2); }
.site-footer a { color: #fff; }
.site-footer .credit { font-size: 0.8rem; color: oklch(0.72 0.03 248); margin-top: 0.3em; }
.site-footer .credit a { color: oklch(0.85 0.03 248); }

/* ---------- Mobile sticky call bar ---------- */

.callbar { display: none; }
@media (max-width: 46rem) {
  .callbar {
    display: block; position: fixed; inset: auto 0 0 0; z-index: var(--z-sticky);
    background: var(--thread); text-align: center;
    padding: 0.85em 1em calc(0.85em + env(safe-area-inset-bottom));
    font-weight: 700; font-size: 1.1rem;
    color: oklch(0.18 0.03 50); text-decoration: none;
    box-shadow: 0 -2px 8px oklch(0 0 0 / 0.18);
  }
  body { padding-bottom: 3.6rem; }
  .hero { padding-block: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
