/* ============================================================
   Preferred Finishing — styles
   Furniture touch-up, refinishing & restoration.
   Brand colors are injected as CSS vars by renderer.js from
   data/site.json (site.colors). Defaults below are fallbacks.
   Palette: refined "restoration craftsman" — espresso charcoal
   + warm brass/amber on off-white paper, with the business
   card's barn-red kept as the single CTA accent.
   ============================================================ */

:root {
  --navy:  #2a2622;   /* espresso charcoal — nav brand, footer, stats bar   */
  --green: #6b5836;   /* antique bronze — primary brand, rules, buttons     */
  --mint:  #d0a94f;   /* warm brass/amber — accents, highlights             */
  --orange:#a23b2b;   /* barn red — primary CTA (the card's stripe)         */
  --wash:  #f2ece1;   /* warm cream                                         */
  --bg:    #f8f5ef;   /* off-white paper                                    */
  --border:#e6ddcc;
  --muted: #6e6656;
  --ink:   #2a2622;

  --shadow-sm: 0 1px 2px rgba(42,38,34,.06), 0 1px 3px rgba(42,38,34,.10);
  --shadow-md: 0 4px 12px rgba(42,38,34,.10), 0 2px 4px rgba(42,38,34,.08);
  --shadow-lg: 0 12px 32px rgba(42,38,34,.18);
  --radius: 12px;
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }

/* ── Navigation ───────────────────────────────────────────── */
#site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,248,243,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; color: var(--navy); letter-spacing: -.5px; }
.nav-brand img { height: 34px; width: auto; object-fit: contain; border-radius: 6px; }
.nav-wordmark { height: 40px !important; width: auto; border-radius: 0 !important; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 8px; }
.nav-link {
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: #423b31;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
.nav-link:hover { background: var(--wash); color: var(--green); }
.nav-link.nav-cta { background: var(--orange); color: #fff; }
.nav-link.nav-cta:hover { background: #8a3123; color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, #3b352d 0%, #221f1b 100%);
  padding: 72px 24px 64px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% -10%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(208,169,79,.26), transparent 70%);
  pointer-events: none;
}
.hero-logo { height: 260px; width: auto; object-fit: contain; margin-bottom: 28px; border-radius: 16px; }
.hero-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--mint); margin-bottom: 14px; }
.hero h1 { font-size: 60px; font-weight: 900; color: #fff; line-height: 1.02; margin-bottom: 20px; letter-spacing: -2px; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--mint); }
.hero-sub { font-size: 16px; color: var(--wash); line-height: 1.7; margin-bottom: 30px; max-width: 520px; }

.hero-btns { display: flex; gap: 12px; justify-content: center; margin-bottom: 26px; flex-wrap: wrap; position: relative; z-index: 1; }
.btn {
  border: none;
  border-radius: 9px;
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(162,59,43,.34); }
.btn-primary:hover { background: #8a3123; box-shadow: 0 8px 22px rgba(162,59,43,.45); transform: translateY(-1px); }
.btn-secondary { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn-secondary:hover { background: rgba(255,255,255,.20); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.24); }

.trust-row { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; position: relative; z-index: 1; }
.trust-item { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #fff; font-weight: 600; }
.trust-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); flex-shrink: 0; box-shadow: 0 0 0 3px rgba(208,169,79,.30); }

/* ── Stats bar ────────────────────────────────────────────── */
.stats { background: var(--navy); padding: 22px 24px; display: flex; justify-content: center; gap: 8px 48px; flex-wrap: wrap; }
.stat { text-align: center; min-width: 110px; }
.stat-num { font-size: 22px; font-weight: 900; color: var(--mint); letter-spacing: -.5px; }
.stat-lbl { font-size: 10px; color: #c7b083; margin-top: 3px; letter-spacing: 1.2px; text-transform: uppercase; }

/* ── Section scaffolding ──────────────────────────────────── */
.section { padding: 64px 24px; }
.section--alt { background: #fffdf7; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-rule { width: 32px; height: 3px; background: var(--green); border-radius: 2px; margin: 0 auto 14px; }
.section-head h2 { font-size: 30px; font-weight: 900; color: var(--ink); letter-spacing: -1px; margin-bottom: 8px; }
.section-head p { font-size: 14px; color: var(--muted); }

/* ── Services ─────────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.svc {
  background: #fffdf7;
  border-radius: var(--radius);
  padding: 26px 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--mint); }
.svc-icon { font-size: 32px; margin-bottom: 14px; line-height: 1; }
.svc h3 { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.svc p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── Gallery ──────────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: #fffdf7;
  aspect-ratio: 4 / 3;
  transition: transform .18s ease, box-shadow .18s ease;
}
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 14px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(to top, rgba(34,31,27,.80), transparent);
}
@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
}

/* Before/after cards */
.ba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.ba-card {
  background: #fffdf7;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.ba-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.ba-half { position: relative; aspect-ratio: 1 / 1; background: #efe9dd; overflow: hidden; }
.ba-half img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-tag {
  position: absolute; top: 8px; left: 8px;
  font-size: 10px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  padding: 3px 9px; border-radius: 6px; color: #fff;
}
.ba-half.before .ba-tag { background: rgba(162,59,43,.92); }
.ba-half.after  .ba-tag { background: rgba(107,88,54,.95); }
.ba-cap { padding: 13px 14px; font-size: 13px; font-weight: 700; color: var(--ink); text-align: center; line-height: 1.4; }

/* ── Reviews ──────────────────────────────────────────────── */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.review {
  background: #fffdf7;
  border-radius: var(--radius);
  padding: 24px 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.review-stars { color: #d0a94f; font-size: 18px; letter-spacing: 2px; margin-bottom: 10px; }
.review-text { font-size: 14px; color: var(--ink); line-height: 1.6; font-style: italic; margin-bottom: 12px; }
.review-who { font-size: 13px; font-weight: 700; color: var(--muted); margin-top: auto; }

/* ── How it works ─────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step { padding: 24px 22px; border-left: 3px solid var(--green); background: var(--bg); border-radius: 0 var(--radius) var(--radius) 0; }
.step-num { font-size: 11px; font-weight: 800; color: var(--green); letter-spacing: 2px; margin-bottom: 10px; }
.step h3 { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 7px; }
.step p { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ── Quote form ───────────────────────────────────────────── */
.quote-form .section-inner { max-width: 620px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 700; color: #423b31; display: block; margin-bottom: 6px; letter-spacing: .5px; }
.field label .req { color: var(--orange); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(107,88,54,.20);
}
.field textarea { resize: vertical; min-height: 90px; }
.photo-add { display: inline-flex; align-items: center; gap: 7px; background: #fff; color: var(--green); border: 1.5px dashed var(--green); border-radius: 9px; padding: 11px 18px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background .15s ease, opacity .15s ease; }
.photo-add:hover { background: var(--wash); }
.photo-add:disabled { opacity: .5; cursor: default; }
.photo-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.photo-thumb { position: relative; width: 76px; height: 76px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb__del { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border: none; border-radius: 50%; background: rgba(42,38,34,.78); color: #fff; font-size: 11px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.photo-thumb__del:hover { background: var(--navy); }
.form-submit { background: var(--green); color: #fff; border: none; border-radius: 9px; padding: 15px 32px; font-size: 15px; font-weight: 800; cursor: pointer; width: 100%; transition: background .15s ease, transform .15s ease; }
.form-submit:hover { background: #574627; transform: translateY(-1px); }
.form-submit:disabled { opacity: .65; cursor: default; transform: none; }
.form-note { font-size: 11px; color: var(--muted); text-align: center; margin-top: 4px; }
.form-msg { border-radius: 9px; padding: 16px 18px; font-size: 14px; font-weight: 600; margin-top: 4px; }
.form-msg.success { background: var(--wash); color: var(--green); border: 1px solid var(--mint); display: none; }
.form-msg.error { background: #fdecec; color: #b42318; border: 1px solid #f3c0bb; display: none; }

/* ── CTA band ─────────────────────────────────────────────── */
.cta-band { background: linear-gradient(160deg, #3b352d 0%, #221f1b 100%); padding: 40px 24px; }
.cta-inner { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.cta-band h2 { font-size: 24px; font-weight: 900; color: #fff; letter-spacing: -.5px; }
.cta-band p { font-size: 14px; color: var(--wash); margin-top: 5px; }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Generic text block ───────────────────────────────────── */
.block-text .section-inner { max-width: 720px; }
.block-text h2 { font-size: 26px; font-weight: 900; color: var(--ink); margin-bottom: 14px; letter-spacing: -.5px; }
.block-text p { font-size: 15px; color: #423b31; line-height: 1.75; margin-bottom: 14px; }

/* ── Footer ───────────────────────────────────────────────── */
#site-footer { background: var(--navy); padding: 36px 24px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-logo { height: 50px; width: auto; background: #fff; border-radius: 8px; padding: 5px 11px; }
.footer-info { font-size: 12px; color: #c7b083; text-align: center; line-height: 1.9; }
.footer-info a { color: var(--mint); text-decoration: none; font-weight: 700; }
.footer-tagline { font-size: 13px; font-weight: 800; color: var(--mint); }

/* ── Scroll reveal ────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.fade-in.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fffdf7;
    border-bottom: 1px solid var(--border);
    padding: 10px 16px 16px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 14px; }
  .nav-wordmark { height: 32px !important; }
  .hero h1 { font-size: 40px; }
  .hero-logo { height: 208px; }
  .section { padding: 48px 20px; }
  .section-head h2 { font-size: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .footer-inner { flex-direction: column; text-align: center; }
}
