/* ===== Custom Properties ===== */
:root {
  --c-paper: #f4f0e7;
  --c-surface: #faf7f0;
  --c-ink: #1b1a16;
  --c-secondary: #3a3832;
  --c-muted: #8c8678;
  --c-tan: #e3dbcb;
  --c-orange: #f15a1d;
  --c-orange-h: #d4490e;
  --c-blue: #0054a5;
  --c-blue-b: #1668e0;
  --c-green: #17b06a;

  --f-serif: 'Fraunces', Georgia, serif;
  --f-sans: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --f-mono: 'SF Mono', 'Fira Code', monospace;

  --fs-eyebrow: 0.74rem;
  --fs-body: 1.125rem;
  --lh-body: 1.7;

  --max-w: 72rem;
  --pad-section: 5rem;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 18px; scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-ink);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ===== Skip Link ===== */
.skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
  background: var(--c-orange);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  z-index: 1000;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  width: auto; height: auto;
  overflow: visible;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-tan);
  backdrop-filter: blur(8px);
  background: rgba(250, 247, 240, 0.92);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--f-serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--c-ink);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-nav a {
  font-size: 0.875rem;
  color: var(--c-secondary);
  transition: color 0.2s;
  font-weight: 500;
}
.site-nav a:hover { color: var(--c-ink); }
.site-nav a.btn {
  font-size: 0.8125rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.625rem 1.5rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  font-family: var(--f-sans);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--c-orange);
  color: #fff;
}
.btn-primary:hover {
  background: var(--c-orange-h);
  box-shadow: 0 4px 16px rgba(241, 90, 29, 0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--c-secondary);
  border: 1.5px solid var(--c-tan);
}
.btn-ghost:hover {
  border-color: var(--c-muted);
  color: var(--c-ink);
}
.btn-sm {
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
}
.arr {
  display: inline-block;
  transition: transform 0.2s;
  font-size: 1.1em;
  line-height: 1;
}
.btn:hover .arr,
.arr-link:hover .arr { transform: translateX(3px); }

/* ===== Eyebrow ===== */
.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

/* ===== Hero ===== */
.hero {
  padding: 6rem 2rem 4rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-inner { max-width: 48rem; }
.hero .eyebrow { margin-bottom: 1rem; }
.hero h1 {
  font-family: var(--f-serif);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--c-ink);
  margin-bottom: 1.5rem;
}
.hero h1 strong {
  color: var(--c-orange);
  font-style: italic;
}
.hero .lede {
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--c-secondary);
  margin-bottom: 2rem;
  max-width: 40rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ===== Sections ===== */
.section {
  padding: var(--pad-section) 2rem;
}
.section-head {
  max-width: var(--max-w);
  margin: 0 auto 3rem;
}
.section-head h2 {
  font-family: var(--f-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  margin-bottom: 0.75rem;
}
.section-head .lede {
  font-size: 1.125rem;
  color: var(--c-secondary);
  max-width: 40rem;
  line-height: 1.65;
}

/* Section band (blue bg) */
.section-band {
  background: var(--c-blue);
  color: #fff;
}
.section-band .section-head { margin-bottom: 3rem; }
.section-band h2 { color: #fff; }
.section-band .lede { color: rgba(255,255,255,0.8); }
.section-band .eyebrow { color: rgba(255,255,255,0.55); }

/* Section tint (cream surface) */
.section-tint {
  background: var(--c-surface);
}

/* ===== Services Grid ===== */
.svc-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.svc {
  padding: 2rem;
  border-radius: 12px;
  background: var(--c-surface);
  border: 1px solid var(--c-tan);
  transition: transform 0.2s, box-shadow 0.2s;
}
.svc:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(27, 26, 22, 0.06);
}
.section-band .svc {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}
.svc h3 {
  font-family: var(--f-serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
  color: var(--c-ink);
}
.section-band .svc h3 { color: #fff; }
.svc p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--c-secondary);
}
.section-band .svc p { color: rgba(255,255,255,0.75); }

/* ===== Props (ul inside section-band) ===== */
.props {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 3rem;
}
.props li {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}
.props li strong {
  color: #fff;
  font-weight: 600;
}

/* ===== Guide Grid ===== */
.guide-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.guide-card {
  padding: 2rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--c-tan);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(27, 26, 22, 0.07);
}
.guide-card h3 {
  font-family: var(--f-serif);
  font-size: 1.1875rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}
.guide-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--c-secondary);
  flex: 1;
}
.arr-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-orange);
  transition: color 0.2s;
}
.arr-link:hover { color: var(--c-orange-h); }

/* ===== Quotes ===== */
.quotes {
  max-width: var(--max-w);
  margin: 0 auto;
}
.quotes blockquote {
  font-family: var(--f-serif);
  font-size: 1.375rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  border-left: 3px solid var(--c-tan);
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.quotes figcaption {
  font-size: 0.875rem;
  color: var(--c-muted);
  margin-top: 0.5rem;
  padding-left: 1.5rem;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 48rem;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--c-tan);
}
.faq-item summary {
  padding: 1.25rem 0;
  cursor: pointer;
  font-family: var(--f-serif);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--c-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  content: '\2212';
}
.faq-item[open] summary {
  border-bottom: none;
}
.faq-a {
  padding-bottom: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--c-secondary);
}

/* ===== CTA Band ===== */
.cta-band {
  background: var(--c-orange);
  color: #fff;
  text-align: center;
  padding: 4rem 2rem;
}
.cta-band h2 {
  font-family: var(--f-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin-bottom: 0.75rem;
}
.cta-band p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
.cta-band .btn-primary {
  background: #fff;
  color: var(--c-orange);
}
.cta-band .btn-primary:hover {
  background: var(--c-surface);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--c-ink);
  color: rgba(255,255,255,0.6);
  padding: 4rem 2rem 3rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}
.f-payoff {
  font-family: var(--f-serif);
  font-size: 1.125rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1rem;
}
.f-cta {
  margin-top: 1.5rem;
}
.f-cta .btn-primary {
  background: var(--c-orange);
  color: #fff;
  font-size: 0.8125rem;
}
.f-cta .btn-primary:hover {
  background: var(--c-orange-h);
}
.f-nav {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.f-nav a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.f-nav a:hover { color: #fff; }
.f-meta {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
}

/* ===== Guide Pages (Prose) ===== */
.page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 2rem;
}
.crumb {
  font-size: 0.8125rem;
  color: var(--c-muted);
  margin-bottom: 2rem;
  letter-spacing: 0.04em;
}
.crumb a { color: var(--c-muted); }
.crumb a:hover { color: var(--c-ink); }
.prose {
  max-width: 44rem;
}
.prose-intro {
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--c-secondary);
  margin-bottom: 2.5rem;
}
.prose h1 {
  font-family: var(--f-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.prose h2 {
  font-family: var(--f-serif);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-top: 3rem;
  margin-bottom: 0.75rem;
}
.prose h3 {
  font-family: var(--f-serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.prose p {
  margin-bottom: 1.25rem;
  line-height: var(--lh-body);
  color: var(--c-secondary);
}
.prose a {
  color: var(--c-orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--c-orange-h); }
.prose ul, .prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li {
  margin-bottom: 0.5rem;
  line-height: var(--lh-body);
  color: var(--c-secondary);
}
.prose code {
  font-family: var(--f-mono);
  font-size: 0.875em;
  background: var(--c-tan);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--c-ink);
}
.prose-cta {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--c-surface);
  border: 1px solid var(--c-tan);
  border-radius: 12px;
  text-align: center;
}
.prose-cta h3 {
  font-family: var(--f-serif);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.prose-cta p {
  font-size: 0.9375rem;
  color: var(--c-secondary);
  margin-bottom: 1rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  :root { --pad-section: 3rem; }

  .header-inner { padding: 0 1.25rem; }
  .site-nav { gap: 1rem; }
  .site-nav a:not(.btn) { font-size: 0.8125rem; }

  .hero { padding: 3.5rem 1.25rem 2.5rem; }
  .hero .lede { font-size: 1.0625rem; }

  .section { padding: var(--pad-section) 1.25rem; }

  .svc-grid { grid-template-columns: 1fr; gap: 1rem; }
  .guide-grid { grid-template-columns: 1fr; }
  .props { grid-template-columns: 1fr; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .quotes blockquote { font-size: 1.125rem; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .site-nav .btn { display: none; }
}


/* QC-FIX: Mobile overflow */
@media (max-width: 768px) {
  .site-nav a:not(.btn) { display: none; }
  .site-nav .btn { display: inline-flex; }
  .header-inner { display: flex; justify-content: space-between; align-items: center; }
  .brand { font-size: 1.1rem; }
}

/* QC-FIX: Contrast .btn-primary */
.btn-primary { color: #fff; }

/* QC-FIX: Contrast .eyebrow */
.eyebrow { color: #6b6350; }

/* QC-FIX: Contrast - darken orange so white text passes 4.5:1 */
.btn-primary {
  background-color: #c0400a;
  color: #fff;
}

/* QC-FIX: Contrast - darken orange text on white/light bg */
.arr-link {
  color: #c0400a;
}

/* QC-FIX: Contrast - darken orange on cream bg */
h1 strong {
  color: #c0400a;
}
/* === A11Y CONTRAST FIX === */
h1 strong { color: #c0400a !important; }
.cta-band p { color: #ffffff !important; }
.f-meta { color: #b8b6b2 !important; }

a.btn.btn-primary,
.btn-primary,
.cta-band .btn-primary,
.f-cta .btn-primary,
.site-nav a.btn,
.btn-sm,
p .btn-primary {
  background-color: #c0400a !important;
  color: #ffffff !important;
  border-color: #c0400a !important;
}

/* === A11Y CONTRAST FIX v2: darken cta-band bg so white text passes 4.5:1 === */
.cta-band { background-color: #c0400a !important; }
