/* BuildEstimate — warm construction theme */
:root {
  --ink: #232a33;
  --muted: #6b7280;
  --paper: #faf8f3;
  --card: #ffffff;
  --line: #e8e2d6;
  --accent: #d97706;
  --accent-dark: #b45309;
  --teal: #0f766e;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--paper); color: var(--ink); line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* header */
/* header — white sticky, Brick&Bolt-inspired */
#site-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 14px rgba(0,0,0,.08); }
.header-inner {
  max-width: 1140px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 20px;
}
.logo { color: var(--ink); font-size: 1.35rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.logo span { color: var(--accent); }
#site-header nav { display: flex; gap: 2px; }
#site-header nav a {
  color: #475569; text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: .95rem; font-weight: 600;
}
#site-header nav a:hover { background: #fef3c7; color: var(--accent-dark); }
#site-header nav a.active { background: var(--accent); color: #fff; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.market-toggle { display: flex; background: #f1f5f9; border-radius: 999px; padding: 3px; }
.market-toggle button {
  border: 0; background: transparent; color: #64748b; font-size: .85rem; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
}
.market-toggle button.on { background: var(--accent); color: #fff; font-weight: 700; }
.btn-pill-sm { padding: 9px 22px; font-size: .9rem; white-space: nowrap; }

/* hero */
.hero {
  background: linear-gradient(135deg, #1c222b 0%, #334155 100%);
  color: #fff; padding: 64px 0 56px;
}
.hero h1 { font-size: 2.4rem; line-height: 1.2; margin-bottom: 12px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p.lead { color: #cbd5e1; font-size: 1.1rem; max-width: 640px; margin-bottom: 28px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }

/* quick estimator card */
.est-card {
  background: var(--card); color: var(--ink); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 12px 32px rgba(0,0,0,.25);
}
.est-card h3 { margin-bottom: 14px; font-size: 1.1rem; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 4px; color: var(--muted); }
.field input, .field select {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 1rem;
}
.est-result {
  margin-top: 14px; background: #fef3c7; border: 1px solid #fcd34d; border-radius: 10px; padding: 14px;
}
.est-result .big { font-size: 1.5rem; font-weight: 800; color: #92400e; }
.est-result .small { font-size: .8rem; color: var(--muted); }

/* buttons */
.btn {
  display: inline-block; background: var(--accent); color: #fff; border: 0; cursor: pointer;
  padding: 12px 26px; border-radius: 999px; font-size: 1rem; font-weight: 700; text-decoration: none;
}
.btn:hover { background: var(--accent-dark); }
.btn.ghost { background: transparent; border: 2px solid var(--accent); color: var(--accent-dark); }
.btn.block { display: block; width: 100%; text-align: center; }
.btn-outline { background: transparent; border: 2px solid var(--accent); color: var(--accent-dark); border-radius: 999px; }
.btn-outline:hover { background: var(--accent); color: #fff; }

/* trust stats strip (hero) */
.trust-stats {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  margin-top: 26px; color: #cbd5e1; font-size: .92rem; font-weight: 600;
}
.trust-stats i { color: var(--accent); font-style: normal; font-size: .65rem; }

/* sections */
section.block { padding: 52px 0; }
section.block h2 { font-size: 1.7rem; margin-bottom: 8px; }
section.block .sub { color: var(--muted); margin-bottom: 28px; max-width: 680px; }

/* design cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .15s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.1); }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body .tag {
  align-self: flex-start; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  background: #fef3c7; color: #92400e; padding: 3px 10px; border-radius: 999px;
}
.card-body h3 { font-size: 1.2rem; }
.card-body .specs { font-size: .88rem; color: var(--muted); }
.cost-line { font-size: 1.05rem; font-weight: 800; color: var(--teal); }
.cost-line small { display: block; font-weight: 400; font-size: .78rem; color: var(--muted); }
.card-body .btn { margin-top: auto; text-align: center; padding: 10px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step .n {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; margin-bottom: 12px;
}

/* tables */
.cost-table { width: 100%; border-collapse: collapse; margin: 16px 0 28px; font-size: .95rem; background: var(--card); }
.cost-table th, .cost-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.cost-table th { background: #1c222b; color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .4px; }
.cost-table th:first-child { border-radius: 10px 0 0 0; }
.cost-table th:last-child { border-radius: 0 10px 0 0; }
.cost-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cost-table tfoot td { border-top: 2px solid var(--ink); }

/* design detail */
.design-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; margin: 32px 0; }
.design-hero img { border-radius: var(--radius); border: 1px solid var(--line); }
.plan-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 24px 0; overflow-x: auto; }
.plan-box svg { width: 100%; height: auto; }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.pill { background: #eef2f7; border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: .88rem; }
.feat-list { margin: 12px 0 12px 20px; }
.cost-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 20px 0; }
.cost-panel { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 20px; }
.cost-panel.hl { border-color: var(--accent); }
.cost-panel h4 { margin-bottom: 6px; }
.cost-panel .big { font-size: 1.6rem; font-weight: 800; color: var(--teal); }

/* calculator form */
.calc-grid { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; }
.calc-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 76px; }
.calc-form h3 { margin-bottom: 14px; }
.rate-edit { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 14px; }
.rate-edit h4 { font-size: .95rem; margin-bottom: 8px; }
.rate-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 8px; align-items: end; }
.rate-row label { font-size: .75rem; color: var(--muted); display: block; }
.rate-row input { width: 100%; padding: 7px 9px; border: 1.5px solid var(--line); border-radius: 7px; font-size: .9rem; }
.result-head { background: #1c222b; color: #fff; border-radius: var(--radius); padding: 26px; margin-bottom: 24px; }
.result-head .big { font-size: 2rem; font-weight: 800; color: #fbbf24; }
.result-head .meta { color: #cbd5e1; font-size: .9rem; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mt { margin-top: 16px; }

/* footer — dark 4-column, Brick&Bolt-inspired */
#site-footer { background: #fff; margin-top: 40px; }
.footer-cta { text-align: center; padding: 48px 20px; border-top: 1px solid var(--line); }
.footer-cta h3 { font-size: 1.6rem; margin-bottom: 6px; }
.footer-cta p { color: var(--muted); margin-bottom: 20px; }
.footer-main { background: #161b22; color: #cbd5e1; }
.footer-grid {
  max-width: 1140px; margin: 0 auto; padding: 44px 20px 30px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px;
}
#site-footer .logo { color: #fff; }
.footer-grid h4 {
  color: #fff; font-size: .85rem; text-transform: uppercase;
  letter-spacing: .8px; margin-bottom: 14px;
}
.footer-grid a.f-link {
  display: block; color: #94a3b8; text-decoration: none;
  margin-bottom: 9px; font-size: .93rem;
}
.footer-grid a.f-link:hover { color: #fff; }
.footer-grid p { font-size: .9rem; color: #94a3b8; }
.social-row { display: flex; gap: 10px; margin-top: 14px; }
.social-row span {
  width: 36px; height: 36px; border-radius: 50%; background: #2a3340; color: #cbd5e1;
  display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; font-weight: 700;
}
.disclaimer {
  max-width: 1140px; margin: 0 auto; padding: 16px 20px; font-size: .82rem; color: #64748b;
  border-top: 1px solid #2a3340; background: #161b22;
}
.footer-bottom { background: #10141a; }
.footer-bottom .copy { text-align: center; font-size: .82rem; color: #64748b; padding: 16px 20px; }

.prose { max-width: 760px; }
.prose h3 { margin: 26px 0 8px; }
.prose p, .prose li { margin-bottom: 10px; }
.prose ul { margin-left: 20px; }

/* tap-to-choose option groups — no typing needed */
.opt-group { margin-bottom: 16px; }
.opt-group > label {
  display: block; font-size: .78rem; font-weight: 700; color: var(--muted);
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px;
}
.opt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.opt-grid button, .opt-cards button {
  border: 2px solid var(--line); background: #fff; border-radius: 10px;
  padding: 10px 6px; cursor: pointer; font-size: .95rem; font-weight: 700; color: var(--ink);
  transition: border-color .12s, background .12s;
}
.opt-grid button small { display: block; font-weight: 400; color: var(--muted); font-size: .72rem; }
.opt-grid button:hover, .opt-cards button:hover { border-color: #f59e0b; }
.opt-grid button.on, .opt-cards button.on { border-color: var(--accent); background: #fef3c7; color: #92400e; }
.opt-grid button.on small, .opt-cards button.on span { color: #92400e; }
.opt-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.opt-cards button span { display: block; font-weight: 400; font-size: .75rem; color: var(--muted); margin-top: 2px; }
.opt-cards.tiers { grid-template-columns: 1fr; }
.opt-cards.tiers button { text-align: left; padding: 12px 14px; }
.opt-cards.tiers button strong { font-size: 1rem; }
.opt-cards.tiers button .rate { float: right; font-size: .85rem; color: var(--teal); }

@media (max-width: 860px) {
  .hero-grid, .design-hero, .calc-grid, .cost-panels { grid-template-columns: 1fr; }
  .cards, .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  #site-header nav { display: none; }
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .calc-form { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
