/* ============================================================
   HowMuchToPaint.com — shared design system
   Southeast Homeworks · interior painting lead-gen site
   ============================================================ */

:root {
  --bg:        #e5ded2;   /* warm sand background */
  --paper:     #ffffff;   /* cards / surfaces */
  --ink:       #1a1a1a;   /* primary text */
  --muted:     #777777;   /* secondary text */
  --faint:     #aaaaaa;   /* tertiary text */
  --accent:    #c48853;   /* terracotta */
  --accent-dk: #a9713f;   /* darker terracotta for hovers */
  --line:      #e8e3dc;   /* hairline borders */
  --line-soft: #f0ece7;   /* softer borders */
  --serif:     'Georgia', 'Times New Roman', serif;
  --sans:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --maxw:      1080px;
  --radius:    6px;
  --shadow:    0 2px 24px rgba(0,0,0,0.09);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(229, 222, 210, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
}
.brand-mark {
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.brand-sub {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--ink);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
}
.nav-links a.nav-cta:hover { background: var(--accent-dk); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, opacity 0.15s, transform 0.1s;
  text-align: center;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); color: #fff; }
.btn-outline { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-lg { font-size: 1.02rem; padding: 16px 34px; }

/* ---------- Section scaffolding ---------- */
section { padding: 72px 0; }
.section-tight { padding: 48px 0; }

.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--serif);
  font-weight: normal;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 14px;
}
.section-lead {
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.7;
}
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero {
  padding: 92px 0 84px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: normal;
  font-size: 3rem;
  line-height: 1.12;
  letter-spacing: 0.005em;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  font-size: 1.12rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 520px;
}
.hero-sub .accent { color: var(--accent); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-note::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #6fae7b;
  display: inline-block;
}

/* Hero visual card */
.hero-card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
.hero-card .hc-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faint);
  margin-bottom: 10px;
}
.hero-card .hc-range {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--accent);
  margin-bottom: 6px;
}
.hero-card .hc-desc { font-size: 0.85rem; color: var(--muted); margin-bottom: 22px; }
.hc-bars { display: flex; flex-direction: column; gap: 12px; }
.hc-bar-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; color: var(--muted); }
.hc-bar { height: 8px; border-radius: 4px; background: var(--line-soft); flex: 1; margin: 0 14px; position: relative; overflow: hidden; }
.hc-bar span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: 4px; opacity: 0.85; }

/* ---------- Steps / how it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 44px;
}
.step-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 1px 12px rgba(0,0,0,0.05);
}
.step-num {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--accent);
  width: 46px; height: 46px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.step-card h3 { font-family: var(--serif); font-weight: normal; font-size: 1.2rem; margin-bottom: 8px; }
.step-card p { font-size: 0.92rem; color: var(--muted); line-height: 1.65; }

/* ---------- Feature / trust grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 44px;
}
.feature h3 {
  font-family: var(--serif);
  font-weight: normal;
  font-size: 1.15rem;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.feature h3 .tick {
  color: var(--accent);
  font-size: 1.1rem;
}
.feature p { font-size: 0.92rem; color: var(--muted); line-height: 1.65; }

/* ---------- Band (accent call-to-action) ---------- */
.band {
  background: var(--ink);
  color: #f4efe8;
}
.band .section-title { color: #fff; }
.band .section-lead { color: #cfc7bb; }
.band .btn-outline { border-color: var(--accent); color: #f4d9c0; }
.band .btn-outline:hover { background: var(--accent); color: #fff; }

/* ---------- Split / about ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.stat-row { display: flex; gap: 40px; margin-top: 28px; flex-wrap: wrap; }
.stat .num { font-family: var(--serif); font-size: 2.1rem; color: var(--accent); }
.stat .lbl { font-size: 0.82rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Google review badge ---------- */
.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 10px 22px 10px 18px;
  box-shadow: 0 1px 10px rgba(0,0,0,0.05);
  transition: box-shadow 0.15s, transform 0.1s;
}
a.google-badge:hover { box-shadow: 0 3px 16px rgba(0,0,0,0.10); transform: translateY(-1px); }
.google-badge .g-logo { width: 22px; height: 22px; flex-shrink: 0; }
.google-badge .g-meta { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.google-badge .g-top { display: flex; align-items: center; gap: 8px; }
.google-badge .g-rating { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); font-weight: 600; }
.google-badge .g-stars { color: #fbbc05; letter-spacing: 1px; font-size: 0.92rem; }
.google-badge .g-count { font-size: 0.78rem; color: var(--muted); }
.badge-wrap { margin-top: 26px; display: flex; justify-content: center; }

/* ---------- Reviews ---------- */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.review {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 1px 12px rgba(0,0,0,0.05);
}
.review .stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 12px; }
.review p { font-family: var(--serif); font-size: 1rem; line-height: 1.6; color: var(--ink); margin-bottom: 14px; }
.review .who { font-size: 0.85rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 40px auto 0; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq-item h3 { font-family: var(--serif); font-weight: normal; font-size: 1.12rem; margin-bottom: 8px; }
.faq-item p { font-size: 0.93rem; color: var(--muted); line-height: 1.7; }

/* ---------- Service area ---------- */
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 26px;
}
.area-chip {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 0.88rem;
  color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #1a1a1a;
  color: #b8b0a4;
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer .brand-mark { color: #fff; }
.site-footer h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  font-weight: 600;
}
.site-footer a, .site-footer p { font-size: 0.9rem; color: #b8b0a4; line-height: 2; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #857e73;
}

/* ============================================================
   Content pages (SEO guides + location pages)
   Used by /guides/* and /areas/* — built from _template.html
   ============================================================ */

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 22px 0 0;
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li:not(:last-child)::after { content: '›'; color: var(--faint); }
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { color: var(--accent-dk); }
.breadcrumb li[aria-current] { color: var(--muted); }

/* ---------- Article header ---------- */
.article-head { padding: 24px 0 8px; }
.article-head h1 {
  font-family: var(--serif);
  font-weight: normal;
  font-size: 2.6rem;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 820px;
}
.article-head h1 .accent { color: var(--accent); }
.article-meta { font-size: 0.85rem; color: var(--faint); display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Prose (article body) ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: 8px 0 8px; }
.article-wrap { max-width: 820px; }
.prose > p, .prose > ul, .prose > ol, .prose > .callout, .prose > .cost-table-wrap { margin-bottom: 20px; }
.prose p { font-size: 1.05rem; line-height: 1.75; color: var(--ink); }
.prose .lead { font-size: 1.18rem; line-height: 1.7; color: var(--ink); margin-bottom: 28px; }
.prose h2 {
  font-family: var(--serif);
  font-weight: normal;
  font-size: 1.7rem;
  line-height: 1.25;
  margin: 40px 0 14px;
  color: var(--ink);
}
.prose h3 {
  font-family: var(--serif);
  font-weight: normal;
  font-size: 1.28rem;
  margin: 28px 0 10px;
  color: var(--ink);
}
.prose ul, .prose ol { padding-left: 24px; }
.prose li { font-size: 1.03rem; line-height: 1.7; color: var(--ink); margin-bottom: 8px; }
.prose a { color: var(--accent-dk); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--accent); }
.prose strong { color: var(--ink); }
.prose em { color: var(--muted); }

/* ---------- Cost table ---------- */
.cost-table-wrap { overflow-x: auto; }
.cost-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 12px rgba(0,0,0,0.05);
  font-size: 0.96rem;
}
.cost-table caption { text-align: left; font-size: 0.82rem; color: var(--faint); padding: 0 0 10px; }
.cost-table th, .cost-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.cost-table thead th { background: #efe9df; font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.cost-table tbody tr:last-child td { border-bottom: none; }
.cost-table td.price { font-family: var(--serif); color: var(--accent-dk); white-space: nowrap; }

/* ---------- Callout (key answer / tip) ---------- */
.callout {
  background: var(--paper);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: 0 1px 10px rgba(0,0,0,0.04);
}
.callout p { font-size: 1rem; margin: 0; }
.callout .callout-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 600; margin-bottom: 6px; }

/* ---------- Inline calculator CTA card ---------- */
.calc-cta {
  background: var(--ink);
  color: #f4efe8;
  border-radius: var(--radius);
  padding: 34px 32px;
  margin: 36px auto;
  max-width: 760px;
  text-align: center;
}
.calc-cta h3 { font-family: var(--serif); font-weight: normal; font-size: 1.5rem; color: #fff; margin-bottom: 8px; }
.calc-cta p { color: #cfc7bb; font-size: 0.98rem; margin-bottom: 20px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ---------- Before / after image pair ---------- */
.beforeafter { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px auto 24px; }
.beforeafter figure { margin: 0; }
.beforeafter img { width: 100%; border-radius: var(--radius); box-shadow: 0 1px 12px rgba(0,0,0,0.08); aspect-ratio: 4 / 3; object-fit: cover; background: var(--line-soft); }
.beforeafter figcaption { font-size: 0.78rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 8px; }

/* ---------- Local proof / mini review ---------- */
.local-proof {
  background: #efe9df;
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 28px 0;
}
.local-proof .stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 10px; }
.local-proof p { font-family: var(--serif); font-size: 1.08rem; line-height: 1.6; margin-bottom: 10px; }
.local-proof .who { font-size: 0.85rem; color: var(--muted); }

/* ---------- OWNER-FILL placeholder (never ship these visible) ---------- */
.owner-fill {
  display: block;
  border: 1.5px dashed var(--accent);
  background: rgba(196, 136, 83, 0.08);
  color: var(--accent-dk);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.5;
}
.owner-fill::before { content: '✎ FILL IN: '; font-weight: 700; letter-spacing: 0.03em; }

/* ---------- Related links ---------- */
.related { max-width: 760px; margin: 44px auto 0; }
.related h2 { font-family: var(--serif); font-weight: normal; font-size: 1.4rem; margin-bottom: 16px; }
.related-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.related-list a {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 0.95rem;
  color: var(--ink);
  transition: box-shadow 0.15s, transform 0.1s;
}
.related-list a:hover { box-shadow: 0 3px 16px rgba(0,0,0,0.08); transform: translateY(-1px); color: var(--accent-dk); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 2.3rem; }
  .steps, .features, .reviews { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-head h1 { font-size: 2rem; }
  .beforeafter, .related-list { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-links a.nav-cta { text-align: center; margin-top: 12px; border-bottom: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 520px) {
  .hero h1 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 18px; }
}
