/* Dr. Duct — hunter green, varsity wordmark, clean and legible */
:root {
  --green: #1B4332;
  --green-dark: #10291F;
  --gold: #C9A227;
  --gold-text: #8A6D12;
  --ink: #16241D;
  --ink-2: #3C4A42;
  --ink-3: #5A6860;
  --muted: #7A867F;
  --line: #D5DCD7;
  --field: #C9D2CB;
  --ground: #F4F5F1;
  --tint: #E8EDE9;
  --white: #FFFFFF;
  --error-bg: #FBEDEA;
  --error: #8A2A1A;
  --display: 'Graduate', Georgia, serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --label: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--green); }
h1, h2, h3 { text-wrap: balance; }
button { font: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.narrow { max-width: 860px; }
.stack { display: flex; flex-direction: column; gap: 32px; }

/* Header */
.topbar { background: var(--green); color: var(--white); }
.topbar-inner { min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-block: 12px; }
.wordmark { font-family: var(--display); font-size: 30px; letter-spacing: .04em; color: var(--white); text-decoration: none; line-height: 1; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; font-weight: 600; font-size: 15px; }
.nav a { color: #DCE6DF; text-decoration: none; }
.nav a:hover { color: var(--white); }
.nav .nav-phone { background: var(--white); color: var(--green); padding: 10px 16px; border-radius: 6px; font-weight: 700; }
@media (max-width: 760px) { .nav a:not(.nav-phone) { display: none; } }

/* Hero */
.hero { background: var(--green); color: var(--white); padding-block: 40px 72px; }
.hero-inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.hero-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; padding-top: 24px; }
.eyebrow { font-family: var(--label); font-weight: 700; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }
.eyebrow-gold { color: var(--gold); }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(34px, 5vw, 52px); line-height: 1.05; }
.hero-lede { margin: 0; font-size: 20px; line-height: 1.5; color: #DCE6DF; max-width: 30em; }
.hero-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; color: #DCE6DF; }
.hero-price strong { font-family: var(--display); font-weight: 400; font-size: 44px; color: var(--white); }
.hero-promise { display: flex; gap: 12px; align-items: center; border-top: 1px solid rgba(255,255,255,.18); padding-top: 20px; max-width: 30em; font-size: 17px; line-height: 1.4; }
.hero-promise svg { flex: none; }

/* Request card */
.card { flex: 1 1 460px; min-width: 0; background: var(--white); color: var(--ink); border-radius: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.28); padding: 28px; scroll-margin-top: 16px; }
@media (max-width: 480px) { .card { padding: 20px; } }
#request-form { display: flex; flex-direction: column; gap: 18px; }
.card-head h2, .done h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--green); }
.card-head p { margin: 4px 0 0; font-size: 15px; color: var(--ink-3); }
.group { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lbl { display: flex; flex-direction: column; gap: 6px; font-family: var(--label); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding: 0; }
legend.lbl { margin-bottom: 8px; }
.hint { font-size: 13px; color: var(--muted); }
.hint.center { text-align: center; }
.hp { position: absolute; left: -9999px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: 15px; font-weight: 600; cursor: pointer; border: 1.5px solid var(--field); background: var(--white); color: var(--ink); }
.chip[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: var(--white); }

.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-nav { display: flex; align-items: center; gap: 4px; }
.cal-nav button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--green); font-size: 26px; cursor: pointer; border-radius: 6px; }
.cal-nav button:disabled { color: var(--field); cursor: default; }
#cal-month { font-weight: 700; min-width: 128px; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.dow { font-family: var(--label); font-weight: 700; font-size: 12px; letter-spacing: .08em; color: var(--muted); padding: 4px 0; }
.day { min-height: 40px; border-radius: 6px; font-size: 15px; font-weight: 600; cursor: pointer; background: var(--ground); color: var(--ink); border: 1.5px solid #E1E6E2; padding: 0; }
.day:disabled { background: transparent; color: #B3BDB6; border-color: transparent; cursor: default; text-decoration: line-through; }
.day[aria-pressed="true"] { background: var(--green); color: var(--white); border-color: var(--green); }

.windows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.win { min-height: 56px; border-radius: 8px; font-size: 15px; cursor: pointer; padding: 8px 4px; border: 1.5px solid var(--field); background: var(--white); color: var(--ink); display: flex; flex-direction: column; align-items: center; }
.win small { font-size: 13px; opacity: .8; }
.win[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: var(--white); }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 480px) { .two { grid-template-columns: minmax(0, 1fr); } }
.fld { width: 100%; border: 1.5px solid var(--field); border-radius: 6px; padding: 12px 14px; font: inherit; font-size: 16px; letter-spacing: normal; text-transform: none; font-weight: 400; color: var(--ink); background: var(--white); }
.fld:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(27,67,50,.18); }
textarea.fld { resize: vertical; }
.optin { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.optin input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green); flex: none; }
.err { background: var(--error-bg); color: var(--error); border-radius: 6px; padding: 10px 14px; font-size: 14px; font-weight: 600; }

.btn-primary { min-height: 54px; border: 0; border-radius: 6px; background: var(--green); color: var(--white); font-size: 18px; font-weight: 700; cursor: pointer; padding: 0 28px; }
.btn-primary:hover { background: var(--green-dark); }
.btn-primary:disabled { opacity: .7; cursor: wait; }
.btn-link { display: inline-flex; align-items: center; text-decoration: none; color: var(--white); }
.btn-link:hover { color: var(--white); }
.btn-outline { margin-top: 8px; min-height: 44px; padding: 0 20px; border: 1.5px solid var(--green); background: var(--white); color: var(--green); border-radius: 6px; font-weight: 700; cursor: pointer; }
.done { display: flex; flex-direction: column; gap: 14px; padding: 40px 8px; text-align: center; align-items: center; }
.done p { margin: 0; font-size: 17px; max-width: 26em; }

/* Trust strip */
.trust { background: var(--white); border-bottom: 1px solid #E1E6E2; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.trust-item { padding: 26px 20px; display: flex; gap: 12px; align-items: center; font-weight: 600; line-height: 1.3; }
.trust-item svg { flex: none; }
.trust-year { font-family: var(--display); font-size: 26px; color: var(--green); }

/* Sections */
.section { padding-block: 88px; }
.section-tint { background: var(--tint); }
.section-green { background: var(--green); color: var(--white); }
.section-last { padding-top: 0; }
@media (max-width: 600px) { .section { padding-block: 64px; } .section-last { padding-top: 0; } }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 40em; }
.section h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(28px, 4vw, 38px); line-height: 1.1; color: var(--green); }
.section-green h2 { color: var(--white); }
.body-lg { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 34em; }
.section-green .body-lg { color: #DCE6DF; }

.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.svc { background: var(--white); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.svc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.svc h3 { margin: 0; font-size: 22px; font-weight: 700; }
.svc-price { font-family: var(--display); font-size: 20px; color: var(--green); white-space: nowrap; }
.svc-quote { font-size: 15px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.svc p { margin: 0; line-height: 1.55; color: #45534B; }

.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split-top { align-items: flex-start; }
.split-main { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.compare { flex: 1 1 360px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cmp { background: var(--white); border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 8px; line-height: 1.45; }
.cmp-good { background: var(--green); color: var(--white); }
.cmp-tag { font-family: var(--label); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.cmp-tag.bad { color: var(--error); }
.cmp-tag.good { color: var(--gold); }

.hoa-list { flex: 1 1 460px; min-width: 0; list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--green); }
.hoa-list li { padding: 20px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.hoa-list strong { font-size: 18px; }
.hoa-list span { color: #45534B; }

.towns { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.towns li { border: 1px solid rgba(255,255,255,.32); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 15px; }

.faq { border-top: 2px solid var(--green); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; font-size: 19px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; color: var(--green); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: 0 0 20px; font-size: 17px; line-height: 1.6; color: #45534B; max-width: 40em; }

.cta { background: var(--tint); border-radius: 12px; padding: 44px 36px; display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.cta h2 { font-size: 30px; }
.cta p { margin: 6px 0 0; font-size: 17px; color: var(--ink-2); }
@media (max-width: 480px) { .cta { padding: 32px 20px; } }

.footer { background: var(--green-dark); color: #B9C7BE; padding-block: 40px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; font-size: 15px; line-height: 1.6; }
.footer .wordmark { font-size: 24px; }
.footer a { color: #DCE6DF; }
.equip { margin: 0; font-family: var(--label); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
