:root {
  --color-primary: #1a2028;
  --color-primary_dark: #10151b;
  --color-accent: #b87333;
  --color-accent_dark: #96601f;
  --color-accent_soft: #f3e7d3;
  --color-light: #f8f6f3;
  --color-card: #ffffff;
  --color-ink: #1c232c;
  --color-heading: #141a21;
  --color-muted: #5f6a76;
  --color-border: #e4ded4;
  --color-white: #ffffff;
  --color-success: #2e7d4f;
  --color-danger: #b3372f;
}

/* ============================================================
   SITE GENERATOR — design system
   Fonts are FIXED across all sites: Sora (headings) + Inter (body).
   All colors come from :root variables emitted from site.yaml `colors:`.
   Never hardcode a theme hex below — use var(--color-*).
   ============================================================ */

:root {
  color-scheme: light;
  --font-heading: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.10);
  --maxw: 1180px;
  --maxw-narrow: 760px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-white);
  line-height: 1.65;
  font-size: 1rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.18;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); font-weight: 700; margin-bottom: 0.6em; }
h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4em; }

p { margin-bottom: 1em; }
a { color: var(--color-accent); }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: var(--maxw-narrow); }
.center { text-align: center; }

.kicker {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--color-accent); margin-bottom: 0.7em;
}

.section { padding: 72px 0; }
.section-alt { background: var(--color-light); }
.section-sub { color: var(--color-muted); max-width: 640px; margin-bottom: 2em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 0.85em 1.7em; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--color-accent); color: var(--color-white); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--color-accent_dark); color: var(--color-white); }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-border); }
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn-outline-light { background: transparent; color: var(--color-white); border-color: rgba(255,255,255,0.45); }
.btn-outline-light:hover { border-color: var(--color-white); color: var(--color-white); }
.btn-lg { font-size: 1.08rem; padding: 0.95em 2em; }
.btn-sm { font-size: 0.88rem; padding: 0.6em 1.2em; }
.btn-block { width: 100%; }
.text-link { font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- Offer banner ---------- */
.offer-banner {
  background: var(--color-accent); color: var(--color-white);
  text-align: center; font-size: 0.85rem; font-weight: 600;
  padding: 8px 16px; letter-spacing: 0.02em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner { display: flex; align-items: center; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  background: var(--color-primary); color: var(--color-accent);
  font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-family: var(--font-heading); color: var(--color-primary); font-size: 1.02rem; }
.logo-text small { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-muted); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav-dropdown-btn {
  font-weight: 600; font-size: 0.93rem; color: var(--color-ink); text-decoration: none;
  padding: 8px 12px; border-radius: var(--radius-sm); background: none; border: none;
  cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 5px;
}
.nav > a:hover, .nav-dropdown-btn:hover { color: var(--color-accent); background: var(--color-light); }
.nav-dropdown { position: relative; }
.nav-dropdown .chev { transition: transform 0.15s ease; }
.nav-dropdown.open .chev { transform: rotate(180deg); }
.drop-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px;
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; z-index: 120;
}
.nav-dropdown.open .drop-menu { display: block; }
.drop-menu a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--color-ink); text-decoration: none; font-size: 0.93rem; font-weight: 500; }
.drop-menu a:hover { background: var(--color-light); color: var(--color-accent); }

.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone { text-decoration: none; text-align: right; line-height: 1.25; }
.header-phone small { display: block; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-muted); }
.header-phone strong { color: var(--color-primary); font-size: 1.02rem; }

.menu-toggle { display: none; background: none; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--color-ink); margin: 5px 0; border-radius: 2px; }
.mobile-nav { display: none; }

.mobile-callbar { display: none; }

/* ---------- Hero (background image + overlay) ---------- */
.hero {
  position: relative; background: var(--color-primary);
  background-image: var(--hero-bg);
  background-size: cover; background-position: center;
  color: var(--color-white); overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--color-primary_dark) 20%, rgba(16,21,27,0.82) 45%, rgba(16,21,27,0.35) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
  padding-top: 72px; padding-bottom: 72px;
}
.hero .kicker { color: var(--color-accent); }
.hero h1 { color: var(--color-white); margin-bottom: 0.5em; }
.hero-sub { color: rgba(255,255,255,0.85); font-size: 1.12rem; max-width: 520px; }
.hero-ctas { margin: 1.6em 0 1.2em; }
.trust-strip { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 1.2em; }
.trust-strip li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 600; color: rgba(255,255,255,0.92); }
.check-badge {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--color-accent); color: var(--color-white);
  display: inline-flex; align-items: center; justify-content: center;
}
.check-badge svg { display: block; }

.hero-form {
  background: var(--color-white); color: var(--color-ink);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 28px;
}
.hero-form h2 { font-size: 1.35rem; margin-bottom: 0.25em; }
.form-sub { color: var(--color-muted); font-size: 0.92rem; margin-bottom: 1.2em; }

/* ---------- Quote form (stacked: 1 field per line) ---------- */
.quote-form .field { margin-bottom: 14px; }
.quote-form label { display: block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 6px; }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--color-ink);
  background: var(--color-white); border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm); padding: 12px 14px;
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
  outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent_soft);
}
.honeypot { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.85rem; color: var(--color-muted); margin-top: 12px; margin-bottom: 0; }

/* ---------- Trust band ---------- */
.trust-band { background: var(--color-primary_dark); color: rgba(255,255,255,0.9); padding: 20px 0; }
.trust-band-inner { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: center; align-items: center; }
.badge-item { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 600; }
.badge-item .badge-icon {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--color-accent_soft); color: var(--color-accent_dark);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
}

/* ---------- Cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin: 2em 0; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm); margin-bottom: 16px;
  background: var(--color-accent_soft); color: var(--color-accent_dark);
  display: flex; align-items: center; justify-content: center;
}
.card h3 { margin-bottom: 0.4em; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--color-accent); }
.card p { color: var(--color-muted); font-size: 0.95rem; flex: 1; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin: 2.2em 0; }
.process-card {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow);
  position: relative;
}
.process-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-accent); color: var(--color-white);
  font-family: var(--font-heading); font-weight: 800; font-size: 1rem; margin-bottom: 14px;
}
.process-card h3 { font-size: 1.02rem; }
.process-card p { font-size: 0.9rem; color: var(--color-muted); margin-bottom: 0; }
.process-detailed { grid-template-columns: 1fr; max-width: 720px; margin-left: auto; margin-right: auto; }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin: 2em 0; }
.review-card {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.stars { color: var(--color-accent); letter-spacing: 2px; margin-bottom: 10px; font-size: 1.05rem; }
.review-card blockquote { font-size: 0.97rem; margin-bottom: 14px; }
.review-card cite { font-style: normal; font-size: 0.86rem; color: var(--color-muted); font-weight: 600; }
.reviews-note { font-size: 0.85rem; color: var(--color-muted); }

/* ---------- Pricing table ---------- */
.table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--color-border); border-radius: var(--radius); }
.pricing-table { width: 100%; border-collapse: collapse; background: var(--color-card); font-size: 0.95rem; }
.pricing-table th, .pricing-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--color-border); }
.pricing-table thead th { background: var(--color-primary); color: var(--color-white); font-family: var(--font-heading); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.pricing-table tbody tr:last-child td { border-bottom: none; }
.pricing-table td.range { font-weight: 700; color: var(--color-accent_dark); white-space: nowrap; }
.pricing-note { font-size: 0.88rem; color: var(--color-muted); }

/* ---------- FAQ accordion ---------- */
.faq-list { margin: 1.6em 0; }
.faq-item {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 18px 20px; font-weight: 700; font-size: 1.02rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; font-size: 1.4rem; font-weight: 400; color: var(--color-accent);
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 20px 20px; color: var(--color-muted); }
.faq-item .faq-a p:last-child { margin-bottom: 0; }

/* ---------- Areas ---------- */
.areas-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 24px; margin: 1.6em 0; }
.areas-list a { color: var(--color-ink); text-decoration: none; font-weight: 600; padding: 10px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); display: block; background: var(--color-card); }
.areas-list a:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ---------- Check list ---------- */
.check-list { list-style: none; margin: 1.4em 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--color-primary); color: var(--color-white); padding: 56px 0; }
.page-hero h1 { color: var(--color-white); }
.page-hero .page-sub { color: rgba(255,255,255,0.82); max-width: 640px; }
.breadcrumbs { font-size: 0.86rem; margin-bottom: 1em; color: rgba(255,255,255,0.65); }
.breadcrumbs a { color: var(--color-accent); text-decoration: none; }

/* ---------- Prose ---------- */
.prose h2 { margin-top: 1.8em; }
.prose ul, .prose ol { margin: 1em 0 1em 1.4em; }
.prose li { margin-bottom: 0.5em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-form-card { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }

/* ---------- Quiz ---------- */
.quiz { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.quiz-progress { height: 6px; background: var(--color-light); border-radius: 3px; margin-bottom: 18px; overflow: hidden; }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--color-accent); border-radius: 3px; transition: width 0.25s ease; }
.quiz-count { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); }
.quiz-options { display: grid; gap: 10px; margin-top: 18px; }
.quiz-options button {
  text-align: left; font: inherit; padding: 14px 18px; cursor: pointer;
  background: var(--color-white); border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm); transition: border-color 0.12s ease, background 0.12s ease;
}
.quiz-options button:hover { border-color: var(--color-accent); background: var(--color-accent_soft); }
.quiz-result { margin-top: 8px; }

/* ---------- ZIP checker ---------- */
.zip-form { display: flex; gap: 10px; max-width: 440px; margin: 1.4em auto; }
.zip-form input {
  flex: 1; font: inherit; padding: 12px 16px;
  border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
}
.zip-form input:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent_soft); }
.zip-result { font-weight: 700; min-height: 1.6em; }
.zip-result.ok { color: var(--color-success); }
.zip-result.no { color: var(--color-danger); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--color-primary); color: var(--color-white); padding: 64px 0; text-align: center; }
.cta-band h2 { color: var(--color-white); }
.cta-band p { color: rgba(255,255,255,0.82); max-width: 560px; margin: 0 auto 1.6em; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-primary); color: rgba(255,255,255,0.78); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-brand strong { font-family: var(--font-heading); color: var(--color-white); font-size: 1.1rem; display: block; margin-bottom: 10px; }
.footer-brand p { font-size: 0.92rem; }
.footer-phone { color: var(--color-accent); font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.footer-email a { color: rgba(255,255,255,0.78); font-size: 0.9rem; }
.footer-col h3 { color: var(--color-white); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: rgba(255,255,255,0.72); text-decoration: none; font-size: 0.93rem; }
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 0.85rem; color: rgba(255,255,255,0.55);
}
.footer-bottom a { color: rgba(255,255,255,0.72); text-decoration: none; }
.footer-tagline { color: var(--color-accent); font-weight: 600; }

/* ---------- Branded scrollbar ---------- */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--color-primary_dark); }
::-webkit-scrollbar-thumb { background: var(--color-accent); border-radius: 6px; border: 2px solid var(--color-primary_dark); }
::-webkit-scrollbar-thumb:hover { background: var(--color-accent_dark); }
html { scrollbar-width: thin; scrollbar-color: var(--color-accent) var(--color-primary_dark); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding-top: 52px; padding-bottom: 52px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav {
    display: none; flex-direction: column; gap: 2px;
    padding: 12px 20px 20px; border-top: 1px solid var(--color-border);
    background: var(--color-white); max-height: 70vh; overflow-y: auto;
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav > a { padding: 12px 4px; font-weight: 700; color: var(--color-ink); text-decoration: none; border-bottom: 1px solid var(--color-light); }
  .mobile-nav .drop .menu { display: none; padding-left: 16px; }
  .mobile-nav .drop.open .menu { display: block; }
  .mobile-nav .drop .menu a { display: block; padding: 10px 4px; color: var(--color-muted); text-decoration: none; font-weight: 500; }
  .drop-btn {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    background: none; border: none; border-bottom: 1px solid var(--color-light);
    padding: 12px 4px; font: inherit; font-weight: 700; color: var(--color-ink); cursor: pointer;
  }
  .mobile-phone { color: var(--color-accent); font-weight: 800; font-size: 1.1rem; padding: 14px 4px; text-decoration: none; }
  .mobile-callbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 110;
    background: var(--color-primary_dark);
  }
  .mobile-callbar a {
    flex: 1; text-align: center; padding: 15px 8px; font-weight: 800; text-decoration: none;
    font-size: 0.95rem;
  }
  .callbar-call { color: var(--color-white); }
  .callbar-estimate { background: var(--color-accent); color: var(--color-white); }
  body { padding-bottom: 54px; }
  .zip-form { flex-direction: column; }
  .zip-form .btn { width: 100%; }
  .quiz { padding: 22px 18px; }
  .section { padding: 52px 0; }
}
@media (max-width: 560px) {
  .process-grid { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }
}
