/* Onyx Web Fix — black + bronze/caramel.
   Dark is the brand default; light is a warm bone/black inversion of the same palette.
   Every accent resolves from --bronze (surfaces, borders, icons) and --bronze-ink (text-safe). */

:root {
  /* Dark = default identity */
  --ink: #f2ece1;
  --paper: #0b0b0c;
  --paper-raised: #16151a;
  --bronze: #d9a760;
  --bronze-ink: #e3b478;
  --bronze-dim: rgba(217, 167, 96, 0.14);
  --muted: #a09788;
  --line: #2b2823;
  --ok: #7cbf94;
  --danger: #f2b8b5;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 32px rgba(0, 0, 0, 0.45);
  --serif: Charter, "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

/* Light mode is opt-in via the toggle — warm bone paper, near-black ink, deeper bronze
   so accent text stays above 4.5:1 on white. */
:root[data-theme="light"] {
  --ink: #15120e;
  --paper: #faf7f1;
  --paper-raised: #ffffff;
  --bronze: #a8712a;
  --bronze-ink: #8a5a24;
  --bronze-dim: rgba(168, 113, 42, 0.10);
  --muted: #6b6255;
  --line: #e4ddd0;
  --ok: #3f6b4f;
  --danger: #b3261e;
  --shadow: 0 1px 2px rgba(21, 18, 14, 0.05), 0 8px 24px rgba(21, 18, 14, 0.07);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --ink: #f2ece1;
  --paper: #0b0b0c;
  --paper-raised: #16151a;
  --bronze: #d9a760;
  --bronze-ink: #e3b478;
  --bronze-dim: rgba(217, 167, 96, 0.14);
  --muted: #a09788;
  --line: #2b2823;
  --ok: #7cbf94;
  --danger: #f2b8b5;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 32px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--bronze-ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze-ink);
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}
.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand span { color: var(--bronze); }
.header-controls { display: flex; align-items: center; gap: 10px; }
.pill-btn {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pill-btn:hover { border-color: var(--bronze); color: var(--bronze-ink); }
.pill-btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 2px;
}

/* Skip link — visible only once focused by keyboard */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--paper-raised);
  color: var(--ink);
  border: 1px solid var(--bronze);
  border-radius: 0 0 6px 0;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.skip-link:focus { left: 0; }
.brand-link { text-decoration: none; color: var(--ink); }

/* Hero — soft bronze light source behind the headline */
.hero {
  padding: 84px 0 60px;
  position: relative;
  overflow: hidden;
}
/* Single-column hero. Deliberately unillustrated: the portfolio section below carries real
   photography, and inventing decorative UI here read as a broken skeleton-loading state. */
/* Centered hero (chosen 2026-07-21). With no imagery beside it, left-aligning left an
   obviously empty right third; centering uses the full measure and reads deliberate.
   Constrain THIS inner column, never .hero-grid — that shares the .wrap element, and a
   max-width there fights the page gutter and misaligns the hero against the sections below. */
.hero-copy { max-width: 62ch; margin-left: auto; margin-right: auto; text-align: center; }

/* Credibility strip — plain facts, no fake chrome. Carries the space the headline leaves. */
.hero-facts {
  list-style: none;
  margin: 34px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 30px;
}
.hero-facts li {
  font-size: 14px;
  color: var(--muted);
  padding-left: 20px;
  position: relative;
}
.hero-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bronze);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% 0 auto -10%;
  height: 520px;
  background: radial-gradient(48% 60% at 22% 58%, var(--bronze-dim), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); margin-top: 14px; }
.hero .lede { font-size: 18px; color: var(--muted); max-width: 52ch; margin: 18px auto 0; }
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }
.btn {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
/* Fixed (non-theme-flipping) caramel fill with near-black text — 6.7:1, and it reads
   identically on black or bone, so the CTA never has to flip with the theme. */
.btn-primary { background: #c9903f; color: #14110c; }
.btn-primary:hover { background: #dca24d; }
.btn-secondary { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-secondary:hover { border-color: var(--bronze); color: var(--bronze-ink); }

/* Pricing — "work order tags" */
.pricing { padding: 40px 0 64px; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 28px; }
.tag {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
}
/* The perforation sits on the header row itself, not at a hardcoded offset — the old
   `top: 56px` was shorter than the 34px serif price, so the line cut through the number.
   Negative margins full-bleed it to the card edges past the .tag padding. */
.tag-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 -28px;
  padding: 0 28px 20px;
  border-bottom: 1px dashed var(--line);
}
.tag-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tag-price { font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--bronze-ink); }
.tag-body { padding-top: 24px; }
.tag-body h3 { font-size: 20px; margin-bottom: 8px; }
.tag-body p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.tag ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tag li { font-size: 14px; padding-left: 22px; position: relative; }
.tag li::before { content: "✓"; position: absolute; left: 0; color: var(--bronze-ink); font-weight: 700; }

/* How it works */
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 8px; }
.section .section-sub { color: var(--muted); font-size: 15px; max-width: 60ch; margin-top: 8px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-top: 32px; }
.step-num { font-family: var(--serif); font-size: 28px; color: var(--bronze); font-weight: 700; }
.step h3 { font-size: 17px; margin: 10px 0 6px; }
.step p { color: var(--muted); font-size: 14px; }

/* Trust */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 28px; }
.trust-item { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 10px; padding: 22px 20px; }
.trust-icon {
  width: 26px; height: 26px;
  color: var(--bronze);
  margin-bottom: 12px;
  display: block;
}
.trust-item h3 { font-size: 15px; margin-bottom: 6px; }
.trust-item p { font-size: 13.5px; color: var(--muted); }

/* Portfolio */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 28px; }
.portfolio-card {
  display: block;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.portfolio-card:hover { transform: translateY(-2px); border-color: var(--bronze); }
.portfolio-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--paper); }
.portfolio-body { padding: 20px 22px 24px; }
.portfolio-body h3 { font-size: 19px; margin-bottom: 6px; }
.portfolio-body p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.portfolio-link { font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--bronze-ink); text-transform: uppercase; letter-spacing: 0.04em; }

/* FAQ */
.faq-list { margin-top: 24px; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { font-family: var(--serif); font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); color: var(--bronze); flex-shrink: 0; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); font-size: 14.5px; margin-top: 10px; max-width: 62ch; }

/* Intake form */
.contact-line { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.contact-line a { font-weight: 600; }
.footer-contact a { font-size: 13px; }
/* Honeypot: off-screen rather than display:none — some bots skip hidden inputs, but they
   almost always fill anything present in the DOM that looks like a real field. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 12px; padding: 32px; box-shadow: var(--shadow); margin-top: 28px; position: relative; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
label { font-size: 13px; font-weight: 700; }
input, textarea, select {
  font-family: var(--sans);
  font-size: 15px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}
input:focus, textarea:focus { border-color: var(--bronze); }
textarea { resize: vertical; min-height: 80px; }
.radio-group { display: flex; gap: 16px; flex-wrap: wrap; }
.radio-option { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 400; }
.radio-option input { width: auto; accent-color: var(--bronze); }
#form-status { margin-top: 14px; font-size: 14px; }
#form-status.success { color: var(--ok); }
#form-status.error { color: var(--danger); }

/* Legal pages (privacy / terms) — long-form prose, narrower measure for readability */
.legal { border-top: none; padding-top: 44px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin: 10px 0 0; }
.legal h2 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin: 38px 0 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.legal p { margin-bottom: 14px; font-size: 15.5px; color: var(--ink); }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { font-size: 15.5px; margin-bottom: 8px; }
.legal-updated { font-family: var(--mono); font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 28px !important; }
.legal-back { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

.form-consent { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.field-hint { font-size: 12.5px; color: var(--muted); }
input[type="file"] {
  padding: 10px;
  background: var(--paper);
  cursor: pointer;
  font-size: 14px;
}
input[type="file"]::file-selector-button {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  margin-right: 12px;
  padding: 7px 14px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  color: var(--ink);
  cursor: pointer;
}
input[type="file"]::file-selector-button:hover { border-color: var(--bronze); }
.file-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.file-list li { font-size: 12.5px; color: var(--muted); padding-left: 16px; position: relative; }
.file-list li::before { content: "•"; position: absolute; left: 2px; color: var(--bronze); }
.file-list li.file-bad { color: var(--danger); }
.file-list li.file-bad::before { content: "×"; color: var(--danger); }
.footer-links a { color: var(--muted); font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: var(--bronze-ink); text-decoration: underline; }

/* Footer */
footer { padding: 40px 0 56px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; }
footer p { color: var(--muted); font-size: 13px; }

@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
  .hero { padding: 56px 0 48px; }
  .hero-facts { flex-direction: column; gap: 10px; margin-top: 28px; }
}

/* Respect users who've asked the OS to reduce motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .portfolio-card:hover { transform: none; }
}

/* ---- Intake: live total, review step, payment panel ------------------------------
   Added 2026-07-21. The customer picks their own tier, sees the running total, then
   confirms a read-back of their own answers before anything is written to the CRM. */

.form-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 20px;
  padding: 14px 16px;
  background: var(--bronze-dim);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 15px;
  color: var(--muted);
}
.form-total strong {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--bronze-ink);
  line-height: 1;
}

.review-title {
  font-family: var(--serif);
  font-size: 20px;
  margin: 0 0 14px;
}

.review-list {
  margin: 0 0 22px;
  padding: 4px 0 0;
  border-top: 1px solid var(--line);
}
.review-list dt {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 14px;
}
.review-list dd {
  margin: 3px 0 0;
  font-size: 15.5px;
  /* Long URLs and pasted text must not push the panel sideways on a phone. */
  overflow-wrap: anywhere;
}
.review-list dt:last-of-type + dd,
.review-list dd:last-child {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#pay-panel {
  margin-top: 22px;
  padding: 22px;
  background: var(--paper-raised);
  border: 1px solid var(--bronze);
  border-radius: 8px;
}
.pay-lede { margin: 0 0 16px; font-size: 16px; }
.pay-note { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }

@media (max-width: 460px) {
  .form-total { flex-direction: column; align-items: flex-start; gap: 4px; }
  .review-actions .btn { width: 100%; text-align: center; }
}
