/* Public site — Archivo throughout; condensed heavy weights for display */
:root {
  --ink: #17221c; --ink-2: #44514a; --muted: #6b7770; --line: #dbe2dc; --panel: #eef2ee; --bg: #fff;
  --ok: #1d7a43; --err: #b42318; --radius: 6px;
  --display: 'Archivo', system-ui, sans-serif;
  --body: var(--display);          /* body text font (themes swap these two) */
  --card: #fff; --head-bg: #fff; --field: #fff; --field-line: #b9c4bc;
  --on-brand: #fff;                /* text on the main color */
  --hero-bg: var(--panel); --map-bg: #dfe7e0; --month-off: #9aa69e;
  --foot-bg: var(--ink); --foot-ink: #c9d3cc; --foot-strong: #fff; --foot-muted: #8d9a92; --foot-line: #33413a;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; } /* no double-tap zoom on phones (1.0.3) */
a, button, input, select, textarea, label, summary { touch-action: manipulation; }
body { margin: 0; font: 400 17px/1.6 var(--body); font-stretch: 100%; color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.mt { margin-top: 28px; }
.r { text-align: right; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }

h1, h2, h3, .h2, .h3 { font-family: var(--display); font-stretch: 72%; font-weight: 850; line-height: 1.02; letter-spacing: -0.01em; margin: 0 0 .4em; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.2vw, 74px); }
h2, .h2 { font-size: clamp(30px, 3.8vw, 44px); }
.h3, h3 { font-size: 26px; font-stretch: 80%; }
.lede { font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 60ch; margin: 0 0 1em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 16px/1 var(--display); font-stretch: 90%; padding: 13px 20px; border-radius: var(--radius); border: 2px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.btn:disabled { opacity: .55; cursor: progress; }
.btn-lg { font-size: 18px; padding: 16px 26px; }
.btn-brand { background: var(--brand); color: var(--on-brand); }
.btn-brand:hover { background: var(--brand-dark); color: var(--on-brand); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--ink); color: var(--bg); }
.btn-ghost-light { border-color: color-mix(in srgb, var(--on-brand) 55%, transparent); color: var(--on-brand); }
.btn-ghost-light:hover { background: var(--on-brand); color: var(--brand); }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-link { background: none; border: 0; color: var(--ink-2); text-decoration: underline; padding: 13px 8px; font-weight: 500; }

/* Header */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--head-bg); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 850; font-stretch: 75%; font-size: 24px; letter-spacing: -0.01em; margin-right: auto; }
.brand img { height: 40px; width: auto; }
.brand-mark { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, var(--accent) 0 28%, var(--brand) 29% 100%); flex: none; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: var(--radius); font-weight: 500; }
.nav a:not(.btn):hover, .nav a[aria-current] { background: var(--panel); }
.nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--brand); }
.nav .nav-phone { font-weight: 700 !important; color: var(--brand) !important; }
.nav .btn { margin-left: 8px; }
.menu-btn { display: none; font: 600 16px var(--body); color: var(--ink); background: var(--panel); border: 0; padding: 10px 14px; border-radius: var(--radius); }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .brand { font-size: 20px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--head-bg); flex-direction: column; align-items: stretch; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(23,34,28,.08); }
  .nav-open .nav { display: flex; }
  .nav .btn { margin: 8px 0 0; }
}

/* Hero: map is the subject */
.hero { background: var(--hero-bg); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; padding: 56px 0; }
.hero-copy h1 { margin-bottom: .3em; }
.check { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: 18px; margin: 28px 0 22px; box-shadow: 6px 6px 0 var(--accent); }
.check label { display: block; font-weight: 800; font-stretch: 85%; font-size: 20px; margin-bottom: 10px; }
.check-row { display: flex; gap: 8px; }
.check-row input { flex: 1; min-width: 0; }
.check-result { margin: 10px 0 0; min-height: 1.6em; font-weight: 600; }
.check-result.ok { color: var(--ok); }
.check-result.no { color: var(--err); }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-2); font-weight: 600; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ''; width: 10px; height: 10px; background: var(--brand); border-radius: 2px; transform: rotate(45deg); }
.hero-map { position: relative; }
.map { height: 460px; border-radius: var(--radius); border: 2px solid var(--ink); background: var(--map-bg); z-index: 1; }
.map-key { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-2); }
.map-key span { color: var(--muted); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; padding: 36px 0; } .map { height: 320px; } }

/* Inputs */
input, select, textarea { font: 400 17px/1.4 var(--body); color: var(--ink); background: var(--field); border: 1.5px solid var(--field-line); border-radius: var(--radius); padding: 12px 14px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
label { display: block; font-weight: 600; font-size: 15px; }
label > input, label > select, label > textarea { margin-top: 6px; font-weight: 400; }

/* Bands */
.band { padding: 64px 0; }
.band-tight { padding: 32px 0 64px; }
.band-alt { background: var(--panel); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.sec-head h2 { margin: 0; }
.sec-head a { font-weight: 600; }
.page-head { background: var(--panel); border-bottom: 1px solid var(--line); padding: 48px 0 32px; }
.page-head-tight { padding: 36px 0 20px; }
.page-head .lede { margin-bottom: 0; }
.back { display: inline-block; margin-bottom: 12px; font-weight: 600; }
.back::before { content: '‹ '; }

/* Price board */
.board { border-top: 3px solid var(--ink); }
.board-row { display: grid; grid-template-columns: minmax(0, 1fr) 170px 150px; gap: 20px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.board-row:has(> :nth-child(2):last-child) { grid-template-columns: minmax(0, 1fr) 170px; }
.board-head { padding: 10px 0; font-size: 14px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--ink); }
.board-svc strong { font-size: 20px; font-stretch: 88%; font-weight: 750; }
.board-svc p { margin: 4px 0 0; color: var(--ink-2); max-width: 62ch; }
.board-price { font-size: 26px; font-weight: 850; font-stretch: 75%; line-height: 1.1; font-variant-numeric: tabular-nums; }
.board-price .from { font-size: 14px; font-weight: 500; font-stretch: 100%; color: var(--muted); }
.board-price small { display: block; font-size: 13px; font-weight: 500; font-stretch: 100%; color: var(--muted); margin-top: 4px; }
.freq { display: inline-block; font-size: 14px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--brand-tint); color: var(--brand-dark); }
.freq-one-time { background: var(--panel); color: var(--ink-2); }
.board-note { color: var(--muted); margin-top: 16px; max-width: 70ch; }
.inline-cta { margin-top: 32px; }
@media (max-width: 640px) {
  .board-row, .board-row:has(> :nth-child(2):last-child) { grid-template-columns: 1fr auto; }
  .board-row .board-svc { grid-column: 1 / -1; }
  .board-head { display: none; }
  .board-price { text-align: right; }
}

/* Pest field guide */
.pest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.pest { display: block; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--ink); }
.pest:hover { border-color: var(--ink); }
.pest strong { display: block; font-size: 19px; font-stretch: 85%; line-height: 1.15; margin: 2px 0 12px; }
.pest-cat { font-size: 13px; color: var(--muted); }
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; max-width: 360px; }
.months .m { font-size: 11px; font-weight: 700; text-align: center; padding: 5px 0 3px; background: var(--panel); color: var(--month-off); border-radius: 2px; position: relative; }
.months .m.on { background: var(--brand); color: var(--on-brand); }
.months .m.now { box-shadow: inset 0 -3px 0 var(--accent); }
.months .m.now::after { content: ''; position: absolute; left: 50%; top: -6px; transform: translateX(-50%); border: 4px solid transparent; border-top-color: var(--accent); }
.months-sm .m { font-size: 10px; padding: 3px 0 2px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { font: 600 15px var(--body); color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 99px; padding: 7px 14px; cursor: pointer; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.guide { border-top: 3px solid var(--ink); }
.guide-row { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.guide-row:hover .guide-name strong { text-decoration: underline; }
.guide-name strong { font-size: 19px; font-stretch: 85%; display: block; line-height: 1.2; }
.guide-name span { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .guide-row { grid-template-columns: 1fr; gap: 8px; } }
.pest-meta { display: flex; flex-wrap: wrap; gap: 20px 40px; margin-top: 20px; }
.pest-meta .k, .inv-parties .k { display: block; font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.risk { font-weight: 700; }
.prose h2 { font-size: 30px; margin-top: 1.4em; }
.prose p, .prose li { max-width: 66ch; }
.legal h2 { font-size: 24px; }
.legal h3 { font-size: 19px; margin-top: 1.2em; }
.legal li { margin-bottom: 6px; }
.sms-note { margin: 6px 0 0 30px; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.review { margin: 0; padding-left: 18px; border-left: 4px solid var(--accent); }
.review blockquote { margin: 8px 0 10px; font-size: 18px; line-height: 1.55; }
.review figcaption { color: var(--muted); font-weight: 600; }
.stars { color: var(--accent); letter-spacing: 2px; }
.stars .dim { color: var(--line); }

/* CTA band */
.cta-band { background: var(--brand); color: var(--on-brand); padding: 56px 0; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-in h2 { margin: 0; color: var(--on-brand); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Cards, forms, notices */
.card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 24px; }
.form { display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.two-col { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.contact-info .big { font-size: 32px; font-weight: 850; font-stretch: 75%; margin: 0 0 8px; }
.form-msg { margin: 0; min-height: 1.5em; font-weight: 600; }
.form-msg.ok { color: var(--ok); }
.form-msg.err, .form-msg:not(.ok):not(:empty) { color: var(--err); }
.notice { background: var(--accent-tint); border-left: 4px solid var(--accent); padding: 14px 16px; border-radius: var(--radius); margin-bottom: 20px; }
.notice-ok { background: var(--brand-tint); border-color: var(--brand); }
.note { background: var(--panel); padding: 12px 14px; border-radius: var(--radius); }
.status-pill { display: inline-block; font-weight: 700; font-size: 14px; padding: 4px 12px; border-radius: 99px; background: var(--panel); margin: 12px 0 0; }
.st-accepted, .st-paid { background: var(--brand); color: var(--on-brand); }
.st-pending, .st-sent, .st-partial { background: var(--accent); color: var(--ink); }
.st-declined, .st-void { background: #f3d6d3; color: var(--err); }
.faqs details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faqs summary { font-weight: 700; cursor: pointer; font-size: 18px; }
.faqs details p { margin: 10px 0 0; color: var(--ink-2); }

/* Quote rows (quote + invoice) */
.qrow { display: grid; grid-template-columns: minmax(0, 1fr) 140px 120px; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.qrow small { display: block; color: var(--muted); font-size: 14px; }
.qhead { font-size: 14px; color: var(--muted); font-weight: 700; border-bottom-color: var(--ink); }
.qtotal { font-size: 22px; font-weight: 850; font-stretch: 80%; border-bottom: 0; border-top: 2px solid var(--ink); }
.quote-actions { display: flex; gap: 12px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.invoice .inv-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.invoice .inv-head .status-pill { margin: 0; }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; font-size: 15px; }
@media (max-width: 560px) { .qrow { grid-template-columns: minmax(0, 1fr) auto; } .qrow > :nth-child(2) { display: none; } }

/* Quote wizard */
.quote-app { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .quote-app { grid-template-columns: 1fr; } }
.steps { list-style: none; padding: 0; margin: 0 0 24px; display: flex; gap: 4px; counter-reset: s; }
.steps li { flex: 1; font-size: 14px; font-weight: 600; color: var(--muted); padding-top: 10px; border-top: 4px solid var(--line); counter-increment: s; }
.steps li::before { content: counter(s) '. '; }
.steps li.done { color: var(--ink-2); border-color: var(--brand); }
.steps li.cur { color: var(--ink); border-color: var(--accent); }
@media (max-width: 560px) { .steps li span { display: none; } }
.step h2 { font-size: 32px; }
.step-actions { display: flex; gap: 12px; align-items: center; margin-top: 24px; }
.qmap { height: 260px; border-radius: var(--radius); border: 1.5px solid var(--line); margin-top: 12px; z-index: 1; }
.svc-pick { display: grid; gap: 8px; }
.svc-opt { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; font-weight: 400; }
.svc-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.svc-opt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); }
.svc-opt strong { font-size: 17px; display: block; }
.svc-opt small { color: var(--ink-2); font-size: 14px; display: block; margin-top: 2px; }
.svc-opt .price { font-weight: 800; font-stretch: 80%; font-size: 18px; white-space: nowrap; }
.slot-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.slot-day { flex: none; scroll-snap-align: start; font: 600 15px var(--body); color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 10px 14px; cursor: pointer; text-align: center; min-width: 92px; }
.slot-day[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.slot-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-top: 12px; }
.slot-time { font: 600 16px var(--body); color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px; cursor: pointer; }
.slot-time[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.summary { position: sticky; top: 88px; background: var(--panel); border-radius: var(--radius); padding: 20px; border: 2px solid var(--ink); }
.summary h3 { font-size: 22px; margin-bottom: 12px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 15px; }
.sum-row span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum-total { border-top: 2px solid var(--ink); margin-top: 8px; padding-top: 10px; font-weight: 850; font-size: 22px; font-stretch: 80%; }
.sum-sub { color: var(--muted); font-size: 14px; }
.inline-msg { padding: 10px 12px; border-radius: var(--radius); margin-top: 10px; font-weight: 600; }
.inline-msg.ok { background: var(--brand-tint); color: var(--brand-dark); }
.inline-msg.warn { background: var(--accent-tint); }
.inline-msg.err { background: #fbe4e1; color: var(--err); }
.done-box { text-align: left; }

/* Portal */
.portal-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .portal-grid { grid-template-columns: 1fr; } }
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.list li:last-child { border-bottom: 0; }
.stack > * + * { margin-top: 20px; }
.report-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.report-photos img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; }
dialog { color: var(--ink); background: var(--card); border: 0; border-radius: var(--radius); padding: 0; width: min(640px, 100% - 24px); max-height: 90vh; }
dialog::backdrop { background: rgba(23,34,28,.5); }
.dlg-in { padding: 24px; }
.dlg-close { float: right; }

/* Footer */
.foot { background: var(--foot-bg); color: var(--foot-ink); padding: 48px 0 24px; margin-top: 0; }
.foot a { color: var(--foot-strong); }
.foot .muted { color: var(--foot-muted); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid p { margin: 0 0 6px; }
.foot-name { font-size: 26px; font-weight: 850; font-stretch: 75%; color: var(--foot-strong); margin-bottom: 6px; }
.foot-h { font-weight: 700; color: var(--foot-strong); margin-bottom: 8px; }
.foot-bottom { border-top: 1px solid var(--foot-line); margin-top: 36px; padding-top: 16px; font-size: 14px; color: var(--foot-muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-legal a { color: inherit; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* Leaflet labels */
.zone-label { color: #17221c; background: #fff; border: 1.5px solid var(--ink); border-radius: 4px; font: 700 13px var(--display); padding: 2px 6px; box-shadow: none; }

@media print { .topbar, .foot, .no-print, #payBtn { display: none !important; } .card { border: 0; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
