:root {
  --linen: #f9f7f2;
  --surface: #ffffff;
  --emerald: #143d33;
  --emerald-d: #0d2a23;
  --emerald-soft: #eaf2ee;
  --copper: #c2542d;
  --copper-d: #9d4120;
  --copper-soft: #fdf0ea;
  --ink: #171d1b;
  --body: #313b38;
  --muted: #5a6662;
  --line: #ddd7c8;
  --line-2: #c5bdb0;
  --radius: 10px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-sans); color: var(--body); background: var(--linen);
  font-size: 16px; line-height: 1.64; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-display); color: var(--ink); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 0.7rem;
}
h1 { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.48rem, 2.4vw, 2.02rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
a { color: var(--emerald); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.num { font-variant-numeric: tabular-nums; }

/* Top Emerald Bar + Header */
.top-strip {
  background: var(--emerald); color: #d8e8e1; font-size: 0.8rem; font-weight: 500;
  padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.top-strip-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(249, 247, 242, 0.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 66px; }
.wordmark {
  font-family: var(--font-display); font-weight: 800; font-size: 1.28rem;
  color: var(--emerald); letter-spacing: -0.03em; white-space: nowrap; text-decoration: none;
}
.wordmark:hover { text-decoration: none; }
.wordmark span { color: var(--copper); }
.hnav { display: flex; align-items: center; gap: 20px; }
.hnav a { color: var(--body); font-size: 0.9rem; font-weight: 600; }
.hnav a:hover, .hnav a[aria-current="page"] { color: var(--copper); text-decoration: none; }
.hact { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.menu-btn {
  display: none; background: #fff; border: 1.5px solid var(--line-2); border-radius: 7px;
  padding: 7px 12px; font-family: var(--font-sans); font-size: 0.84rem; font-weight: 700; color: var(--emerald); cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 8px;
  font-family: var(--font-sans); font-weight: 700; font-size: 0.94rem;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.15;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-copper { background: var(--copper); color: #fff; }
.btn-copper:hover { background: var(--copper-d); color: #fff; }
.btn-emerald { background: var(--emerald); color: #fff; }
.btn-emerald:hover { background: var(--emerald-d); color: #fff; }
.btn-outline { background: #fff; color: var(--emerald); border-color: var(--emerald); }
.btn-outline:hover { background: var(--emerald-soft); color: var(--emerald); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 0.84rem; }
.btn-full { width: 100%; }

/* Split Hero */
.hero {
  background: linear-gradient(180deg, #f3efe6 0%, var(--linen) 100%);
  padding: clamp(26px, 4vw, 50px) 0 clamp(32px, 4.5vw, 54px);
  border-bottom: 1px solid var(--line);
}
.hero-split {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(24px, 3.6vw, 44px); align-items: start;
}
.kicker {
  display: inline-block; font-size: 0.77rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--copper); margin-bottom: 10px;
}
.hero-lead { font-size: clamp(1rem, 1.25vw, 1.12rem); color: var(--body); max-width: 54ch; margin: 0 0 16px; }
.trust-bar {
  font-size: 0.9rem; font-weight: 600; color: var(--emerald-d);
  background: var(--emerald-soft); border-left: 3.5px solid var(--emerald);
  padding: 10px 14px; border-radius: 0 8px 8px 0; margin: 0 0 22px; max-width: 52ch;
}
.hero-links { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.stats-4 {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px; list-style: none; padding: 0; margin: 0;
}
.stats-4 li {
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--emerald);
  border-radius: 8px; padding: 12px 14px;
}
.stats-4 strong {
  display: block; font-family: var(--font-display); font-size: clamp(1.12rem, 1.5vw, 1.32rem);
  font-weight: 800; color: var(--emerald); line-height: 1.15;
}
.stats-4 span { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 3px; line-height: 1.35; }

/* Interactive Replacement Cost & Removal Estimator Card */
.calc-card {
  background: #fff; border: 1.5px solid var(--line-2); border-top: 4px solid var(--copper);
  border-radius: 12px; padding: clamp(18px, 2.4vw, 26px);
  box-shadow: 0 14px 36px rgba(20, 61, 51, 0.08);
}
.calc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.calc-head h2 { font-size: 1.18rem; margin: 0; color: var(--emerald); }
.calc-badge {
  font-size: 0.75rem; font-weight: 700; color: var(--emerald); background: var(--emerald-soft);
  padding: 4px 9px; border-radius: 99px; white-space: nowrap;
}
.c-group { margin-bottom: 14px; }
.c-lbl { display: block; font-size: 0.82rem; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.c-doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.c-door-btn {
  text-align: left; padding: 9px 10px; border: 1.5px solid var(--line-2); border-radius: 8px;
  background: #fff; cursor: pointer; font-family: var(--font-sans); transition: all .15s ease;
}
.c-door-btn b { display: block; font-size: 0.84rem; color: var(--ink); line-height: 1.25; }
.c-door-btn small { display: block; font-size: 0.74rem; color: var(--muted); margin-top: 2px; }
.c-door-btn:hover, .c-door-btn[aria-pressed="true"] {
  border-color: var(--emerald); background: var(--emerald-soft);
}
.c-door-btn[aria-pressed="true"] b { color: var(--emerald-d); }
.c-select {
  width: 100%; min-height: 42px; padding: 8px 11px; border: 1.5px solid var(--line-2);
  border-radius: 8px; font-family: var(--font-sans); font-size: 0.92rem; color: var(--ink); background: #fff;
}
.c-pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.c-pill {
  padding: 8px 10px; border: 1.5px solid var(--line-2); border-radius: 7px; background: #fff;
  font-family: var(--font-sans); font-size: 0.82rem; font-weight: 600; color: var(--ink); cursor: pointer; text-align: left;
}
.c-pill:hover, .c-pill[aria-pressed="true"] { border-color: var(--copper); background: var(--copper-soft); color: var(--copper-d); }
.c-checks { display: grid; gap: 7px; margin-bottom: 14px; }
.c-chk {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--linen);
  font-size: 0.83rem; cursor: pointer;
}
.c-chk-l { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.c-chk input { width: 17px; height: 17px; accent-color: var(--emerald); flex-shrink: 0; }
.c-chk-p { font-size: 0.78rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.c-result {
  background: var(--emerald); color: #fff; border-radius: 10px; padding: 15px 16px; margin-bottom: 13px;
}
.c-res-k { font-size: 0.73rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #a7cfc0; }
.c-res-main { font-family: var(--font-display); font-size: clamp(1.5rem, 2.5vw, 1.92rem); font-weight: 800; color: #fff; line-height: 1.15; margin: 4px 0 6px; }
.c-res-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; font-size: 0.8rem; color: #d8e8e1; border-top: 1px solid rgba(255,255,255,0.16); padding-top: 8px; }
.c-res-grid b { color: #fff; }
.c-note { font-size: 0.79rem; color: var(--muted); text-align: center; margin: 9px 0 0; }

/* Contact Panel inside Estimator & Quick Quote */
.q-price-box {
  background: var(--copper-soft); border-left: 4px solid var(--copper);
  border-radius: 0 8px 8px 0; padding: 12px 14px; margin-bottom: 13px;
}
.q-price-k { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--copper-d); }
.q-price-big { font-family: var(--font-display); font-size: 1.38rem; font-weight: 800; color: var(--emerald); margin: 2px 0; }
.q-price-sub { font-size: 0.82rem; color: var(--body); }
.f-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.f-field { margin-bottom: 8px; }
.f-field.full { grid-column: 1 / -1; }
.f-field label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.f-field input, .f-field select, .f-field textarea {
  width: 100%; min-height: 42px; padding: 8px 11px; border: 1.5px solid var(--line-2);
  border-radius: 7px; font-family: var(--font-sans); font-size: 0.96rem; color: var(--ink); background: #fff;
}
.f-field input:focus, .f-field select:focus, .f-field textarea:focus { outline: none; border-color: var(--emerald); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent {
  display: flex; align-items: flex-start; gap: 9px; padding: 10px 11px;
  border: 1px solid var(--line); border-radius: 7px; background: var(--linen);
  font-size: 0.8rem; color: var(--body); margin: 4px 0 10px; line-height: 1.42;
}
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--emerald); flex-shrink: 0; }
.q-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.q-back { background: transparent; border: 0; color: var(--muted); font-family: var(--font-sans); font-size: 0.86rem; font-weight: 700; cursor: pointer; padding: 8px 4px; }
.q-err { color: #b91c1c; font-size: 0.84rem; font-weight: 700; min-height: 1.2em; margin: 5px 0 0; }

/* Sections */
.sec { padding: clamp(40px, 5.5vw, 66px) 0; background: #fff; }
.sec.alt { background: var(--linen); }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-head { max-width: 720px; margin-bottom: 26px; }
.sec-head p { color: var(--muted); margin: 0; }

/* Door Photo Cards */
.door-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.dcard {
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff;
  display: flex; flex-direction: column;
}
.dcard-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--linen); border-bottom: 1px solid var(--line); }
.dcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.dcard:hover .dcard-img img { transform: scale(1.03); }
.dcard-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.dcard-t { font-family: var(--font-display); font-size: 1.06rem; font-weight: 700; color: var(--emerald); margin: 0 0 3px; }
.dcard-p { font-weight: 800; font-size: 0.92rem; color: var(--copper); margin: 0 0 8px; }
.dcard-d { font-size: 0.88rem; color: var(--muted); margin: 0 0 13px; line-height: 1.5; }
.dcard-actions { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dcard-pick { background: none; border: 0; padding: 0; color: var(--emerald); font-weight: 700; font-size: 0.85rem; cursor: pointer; }
.dcard-pick:hover { text-decoration: underline; }
.dcard-link { font-size: 0.84rem; font-weight: 600; color: var(--muted); }

/* Tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--emerald-soft); font-weight: 700; color: var(--emerald-d); font-size: 0.84rem; }
tr:last-child td { border-bottom: 0; }
.price-cell { font-weight: 800; color: var(--emerald); white-space: nowrap; }

/* 4-Tap Visual Matcher */
.q-shell {
  max-width: 780px; margin: 0 auto; background: #fff; border: 1.5px solid var(--line-2);
  border-radius: 12px; padding: clamp(20px, 3vw, 30px);
}
.q-prog-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.q-prog { flex: 1; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.q-prog i { display: block; height: 100%; background: var(--copper); transition: width .2s ease; }
.q-step-lbl { font-size: 0.8rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.q-step { display: none; }
.q-step.on { display: block; }
.q-help { font-size: 0.9rem; color: var(--muted); margin: 0 0 14px; }
.q-pic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.q-pic-btn {
  text-align: left; padding: 0; border: 1.5px solid var(--line-2); border-radius: 8px;
  background: #fff; overflow: hidden; cursor: pointer; font-family: var(--font-sans);
}
.q-pic-btn:hover, .q-pic-btn.picked { border-color: var(--emerald); box-shadow: inset 0 0 0 1px var(--emerald); }
.q-pic-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--linen); }
.q-pic-img img { width: 100%; height: 100%; object-fit: cover; }
.q-pic-t { display: block; padding: 8px 10px; font-weight: 700; font-size: 0.84rem; color: var(--ink); line-height: 1.25; }
.q-pic-t small { display: block; font-weight: 500; font-size: 0.76rem; color: var(--copper); margin-top: 2px; }
.q-opt-list { display: grid; gap: 8px; }
.q-opt {
  width: 100%; text-align: left; padding: 12px 14px; border: 1.5px solid var(--line-2);
  border-radius: 8px; background: #fff; cursor: pointer; font-family: var(--font-sans);
  font-size: 0.92rem; font-weight: 700; color: var(--ink);
}
.q-opt:hover, .q-opt.picked { border-color: var(--emerald); background: var(--emerald-soft); }
.q-opt small { display: block; font-weight: 400; color: var(--muted); font-size: 0.82rem; margin-top: 2px; }

/* Cards, Prose, Callouts, Chips, FAQ */
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.gcard {
  display: flex; flex-direction: column; gap: 7px; padding: 20px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--body);
}
.gcard:hover { border-color: var(--emerald); text-decoration: none; }
.gcard b { font-family: var(--font-display); font-size: 1.05rem; color: var(--emerald); }
.gcard span { font-size: 0.89rem; color: var(--muted); }
.gmore { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 0.85rem; color: var(--copper) !important; }
.fact-card { border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; background: #fff; }
.fact-card h3 { color: var(--emerald); margin-bottom: 6px; }
.fact-card p:last-child { margin-bottom: 0; }
.note-box {
  border-left: 4px solid var(--copper); background: var(--copper-soft);
  padding: 15px 18px; border-radius: 0 8px 8px 0; margin: 22px 0; color: var(--ink);
}
.info-box {
  border-left: 4px solid var(--emerald); background: var(--emerald-soft);
  padding: 15px 18px; border-radius: 0 8px 8px 0; margin: 22px 0; color: var(--ink);
}
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.83rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.prose h2 { margin-top: 1.85rem; color: var(--emerald); }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 1.2rem; }
.prose li { margin-bottom: 0.48rem; }
.media-fig { margin: 22px 0; }
.media-fig img { width: 100%; max-height: 440px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.media-fig figcaption { font-size: 0.83rem; color: var(--muted); margin-top: 7px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.chips a {
  display: inline-flex; padding: 7px 13px; border: 1px solid var(--line-2); border-radius: 7px;
  color: var(--emerald); font-weight: 600; font-size: 0.86rem; background: #fff;
}
.chips a:hover { border-color: var(--copper); color: var(--copper); text-decoration: none; }

/* FAQ */
.faq-list { max-width: 840px; border-top: 1px solid var(--line); }
details.faq { border-bottom: 1px solid var(--line); padding: 15px 0; }
details.faq summary {
  font-family: var(--font-display); font-weight: 700; color: var(--emerald); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; font-size: 1.35rem; color: var(--copper); font-weight: 600; flex: none; }
details.faq[open] summary::after { content: '−'; }
details.faq p { margin: 10px 0 0; font-size: 0.95rem; color: var(--body); }

/* Thanks Photo Uploader */
.more-card { max-width: 660px; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 24px; background: #fff; }
.more-up {
  display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 24px 16px;
  border: 2px dashed var(--line-2); border-radius: 10px; background: var(--linen);
  text-align: center; cursor: pointer; margin-bottom: 16px;
}
.more-up:hover { border-color: var(--emerald); }
.more-up b { color: var(--emerald); }
.more-up span { font-size: 0.84rem; color: var(--muted); }
.more-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.more-th { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.more-th img { width: 100%; height: 100%; object-fit: cover; }
.more-th button {
  position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 50%;
  border: 0; background: rgba(20, 61, 51, 0.86); color: #fff; font-size: 16px; cursor: pointer;
}
.more-st { font-size: 0.85rem; color: var(--muted); margin: 10px 0 0; }
.more-ok { padding: 14px 16px; background: var(--emerald-soft); border: 1px solid #a7cfc0; color: var(--emerald-d); border-radius: 8px; font-weight: 700; }

/* CTA Band & Footer */
.qband {
  background: var(--emerald); color: #fff; border-radius: 12px;
  padding: clamp(24px, 3.8vw, 36px); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.qband h2 { color: #fff; margin: 0 0 6px; }
.qband p { color: #d4e5de; margin: 0; max-width: 54ch; }
.foot { background: var(--emerald-d); color: #c7d9d2; padding: 48px 0 30px; font-size: 0.89rem; }
.foot .wordmark { color: #fff; }
.foot .wordmark span { color: #ee8964; }
.foot-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 28px; }
.foot h4 { font-family: var(--font-sans); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: #fff; margin-bottom: 11px; }
.foot a { display: block; color: #c7d9d2; margin-bottom: 7px; }
.foot a:hover { color: #fff; }
.foot-legal {
  border-top: 1px solid rgba(255,255,255,0.14); padding-top: 18px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.82rem; color: #9db8ae;
}
.foot-legal a { display: inline; color: #d8e8e1; }

@media (max-width: 960px) {
  .hero-split { grid-template-columns: 1fr; }
  .door-grid, .cards-3, .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hnav {
    display: none; position: absolute; left: 0; right: 0; top: 66px; background: var(--linen);
    border-bottom: 1px solid var(--line); padding: 16px 20px; flex-direction: column; align-items: flex-start; gap: 14px;
  }
  .hnav.open { display: flex; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 640px) {
  .door-grid, .cards-3, .cards-2, .foot-grid, .f-grid, .c-doors, .c-pills, .q-pic-grid { grid-template-columns: 1fr; }
  .q-pic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .wordmark { font-size: 1.1rem; }
  .hdr .btn-sm { padding: 0 11px; font-size: 0.79rem; }
  .top-strip-hide { display: none; }
}
