/* ==========================================================
   QUICK REBRAND: colors also come from config.js (primaryColor /
   accentColor). These are the defaults if JS is off.
   ========================================================== */
:root {
  --brand: #14532d;
  --accent: #e9a23b;
  --brand-dark: color-mix(in srgb, var(--brand) 70%, #000);
  --brand-soft: color-mix(in srgb, var(--brand) 9%, #fff);
  --ink: #1c2321;
  --muted: #5b6662;
  --line: #e3e8e5;
  --bg-alt: #f6f5f1;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 33, 24, .10);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}
.site-shell {
  height: 100%;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  scroll-padding-bottom: 16px;
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; z-index: 999; background: #fff; padding: 8px 12px; }
.small { font-size: .88rem; }
.muted { color: var(--muted); }
.center { text-align: center; margin-top: 2rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--brand); margin-bottom: .6rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font: 600 1rem/1.2 var(--font); padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,0,0,.15); }
.btn:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-accent { background: var(--accent); color: #1d1606; }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.7); }
.btn-lg { padding: 1.05rem 1.7rem; font-size: 1.06rem; }
.btn-sm { padding: .6rem 1.05rem; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-avatar { border-radius: 50%; background: #fff; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font: 700 .97rem var(--font); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* Top bar + header */
.topbar { background: var(--brand-dark); color: #e9f1ec; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.logo { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.logo-img { height: 42px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-family: var(--font-head); font-size: 1.22rem; }
.logo-text small { color: var(--muted); font-size: .76rem; }
.nav { display: flex; align-items: center; gap: 1.2rem; }
.nav-links { list-style: none; display: flex; gap: 1.3rem; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--brand); }
.nav-phone a { color: var(--brand); }
.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; cursor: pointer; padding: 9px; }
.nav-toggle span { display: block; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; object-position: center 40%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,24,16,.88) 0%, rgba(10,24,16,.70) 45%, rgba(10,24,16,.25) 100%); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; gap: 3rem; align-items: center; padding: 5.5rem 0 6rem; }
.hero .eyebrow { color: var(--accent); }
.hero .lead { font-size: 1.15rem; max-width: 38em; color: #eef3ef; }
.hl { color: var(--accent); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1rem; }
.trust-line { font-size: .92rem; color: #d9e6dd; margin: 0; }
.trust-line.dark { color: var(--muted); margin-top: .8rem; }

.pat-card { background: #fff; color: var(--ink); border-radius: 18px; padding: 1.3rem; box-shadow: 0 25px 60px rgba(0,0,0,.35); max-width: 400px; justify-self: end; width: 100%; }
.pat-card-head { display: flex; gap: .75rem; align-items: center; margin-bottom: 1rem; }
.pat-card-head img { border-radius: 50%; }
.pat-card-head strong { display: block; }
.online { font-size: .8rem; color: #16a34a; font-weight: 600; }
.bubble { padding: .8rem 1rem; border-radius: 16px; margin-bottom: .7rem; font-size: .96rem; max-width: 92%; }
.bubble.bot { background: var(--brand-soft); border-bottom-left-radius: 4px; }
.bubble.user { background: var(--brand); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: .4rem 0 1rem; }
.quick button { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: .6rem; font: 600 .9rem var(--font); cursor: pointer; color: var(--ink); }
.quick button:hover { border-color: var(--brand); color: var(--brand); }

/* Trust strip. A left gutter keeps the stats clear of Pat's greeting
   bubble when this bar is at the bottom of the view. */
.strip { background: var(--brand); color: #fff; }
.strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  padding: 1.15rem 1.5rem 1.2rem 16.75rem;
  gap: .6rem;
}
.strip-inner div { display: flex; flex-direction: column; min-width: 0; }
.strip-inner strong { font-family: var(--font-head); font-size: 1.45rem; }
.strip-inner span { font-size: .85rem; opacity: .9; }

/* Sections */
.section { padding: 5rem 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.8rem; }
.section-head p { color: var(--muted); }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: .97rem; flex: 1; }
.card-cta { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 25%, #fff); }
.card-cta .card-body { justify-content: center; text-align: center; align-items: center; }
.card-cta img { width: 64px; height: 64px; aspect-ratio: auto; margin-bottom: .8rem; }
.card-cta p { flex: 0; }
.card-cta .small { margin: .7rem 0 0; }

/* Why */
.why-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; }
.why-img { position: relative; }
.why-img img { border-radius: 18px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.badge-float { position: absolute; right: -18px; bottom: 28px; background: var(--accent); color: #1d1606; padding: 1rem 1.2rem; border-radius: 14px; box-shadow: var(--shadow); max-width: 190px; font-size: .9rem; line-height: 1.3; }
.badge-float strong { display: block; font-family: var(--font-head); font-size: 1.9rem; }
.checks { list-style: none; padding: 0; margin: 1.4rem 0 2rem; }
.checks li { position: relative; padding-left: 2.1rem; margin-bottom: 1rem; color: var(--muted); }
.checks li strong { color: var(--ink); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: .05rem; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: var(--brand); color: #fff; font-size: .8rem; display: grid; place-items: center; font-weight: 700; }

/* Pricing table */
.table-wrap { max-width: 860px; margin: 0 auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table caption { caption-side: top; text-align: left; padding: 1rem 1.3rem; font-size: .9rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.tag { display: inline-block; background: #fff4df; color: #8a5a00; border: 1px solid #f2d39a; font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; padding: .2rem .55rem; border-radius: 6px; margin-right: .4rem; }
.price-table th, .price-table td { padding: .9rem 1.3rem; text-align: left; border-bottom: 1px solid var(--line); }
.price-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: #fafbfa; }
.price-table td:last-child { font-weight: 700; color: var(--brand); white-space: nowrap; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover { background: var(--brand-soft); }
.fineprint { max-width: 860px; margin: 1rem auto 0; font-size: .82rem; color: var(--muted); text-align: center; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; counter-reset: s; }
.steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem 1.6rem 1.6rem; text-align: center; }
.step-num { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); width: 34px; height: 34px; border-radius: 50%; background: var(--accent); font-weight: 800; display: grid; place-items: center; }
.step-ico { width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%; }
.step-ico.emoji { display: grid; place-items: center; font-size: 1.7rem; background: var(--brand-soft); }
.steps p { color: var(--muted); font-size: .97rem; margin: 0; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.review { margin: 0; background: #fff; border-radius: var(--radius); padding: 1.6rem; box-shadow: 0 4px 16px rgba(0,0,0,.05); display: flex; flex-direction: column; }
.stars { color: #f5a623; letter-spacing: 2px; margin-bottom: .6rem; }
.review blockquote { margin: 0 0 1rem; flex: 1; }
.review figcaption { font-size: .9rem; color: var(--muted); }

/* Area */
.area-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.towns { list-style: none; padding: 0; margin: 1.2rem 0 1.8rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.towns li { background: var(--brand-soft); color: var(--brand-dark); border-radius: 999px; padding: .35rem .9rem; font-size: .9rem; font-weight: 600; }
.map { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.map svg { width: 100%; height: 100%; display: block; }

/* Final CTA */
.final-cta { background: var(--brand); color: #fff; padding: 3rem 0; }
.final-inner { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.final-inner img { border-radius: 50%; background: #fff; }
.final-inner > div:nth-child(2) { flex: 1; min-width: 240px; }
.final-inner h2 { margin-bottom: .2rem; }
.final-inner p { margin: 0; opacity: .9; }
.final-btns { display: flex; gap: .8rem; flex-wrap: wrap; }

/* Footer */
.site-footer { background: #101a15; color: #b9c5bf; padding: 3.5rem 0 1.5rem; font-size: .94rem; }
.site-footer a { color: #e9f1ec; }
.site-footer strong { color: #fff; display: block; margin-bottom: .6rem; }
.footer-name { font-family: var(--font-head); font-size: 1.25rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.footer-bottom { border-top: 1px solid #24302a; margin-top: 2.5rem; padding-top: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; }
.footer-demo { display: block; margin-top: .45rem; color: #8a9a93; font-size: .8rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.demo-note { opacity: .75; }

/* Our chat launcher (hidden when real Botpress bubble is ready) */
.chat-launcher { position: fixed; left: 20px; right: auto; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: .6rem; background: var(--brand); color: #fff; border: 0; border-radius: 999px; padding: .45rem 1.1rem .45rem .45rem; box-shadow: 0 12px 28px rgba(0,0,0,.25); cursor: pointer; font: 700 .95rem var(--font); text-align: left; }
.chat-launcher img { border-radius: 50%; background: #fff; }
.chat-launcher small { display: block; font-weight: 500; font-size: .76rem; opacity: .85; }
.chat-launcher:hover { background: var(--brand-dark); }
body.bot-ready .chat-launcher, body.bot-ready .chat-fallback { display: none !important; }

/* Fallback panel */
.chat-fallback { position: fixed; left: 20px; right: auto; bottom: 16px; z-index: 70; width: min(360px, calc(100vw - 32px)); background: #fff; border-radius: 18px; box-shadow: 0 25px 60px rgba(0,0,0,.3); overflow: hidden; opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s; }
.chat-fallback.open { opacity: 1; transform: none; }
.fb-head { display: flex; align-items: center; gap: .7rem; background: var(--brand); color: #fff; padding: .9rem 1rem; }
.fb-head img { border-radius: 50%; background: #fff; }
.fb-head div { flex: 1; line-height: 1.2; }
.fb-head span { display: block; font-size: .8rem; opacity: .85; }
.fb-close { background: none; border: 0; color: #fff; font-size: 1.7rem; cursor: pointer; line-height: 1; }
.fb-body { padding: 1rem; }
.fb-dev { font-size: .75rem; color: var(--muted); margin: .8rem 0 0; border-top: 1px dashed var(--line); padding-top: .6rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav-links { gap: 1rem; }
  .nav-phone { display: none; }
  .cards, .reviews { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; padding: 4rem 0; }
  .pat-card { justify-self: start; }
  .why-inner { gap: 2.5rem; }
}
@media (max-width: 860px) {
  .strip-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.25rem;
    padding: 1.15rem 1.5rem 1.25rem 16.75rem;
  }
  .nav-toggle { display: block; order: 2; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 20px 1rem; box-shadow: 0 10px 20px rgba(0,0,0,.08); }
  .nav-links a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .nav-phone { display: block; }
  body.nav-open .nav-links { display: flex; }
  .nav { gap: .5rem; }
  .why-inner, .area-inner { grid-template-columns: 1fr; }
  .why-img { max-width: 460px; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar-inner span { display: none; }
  .topbar-inner { justify-content: center; }
  .logo-text small { display: none; }
  .logo-text strong { font-size: 1.05rem; }
  .header-cta { display: none; }
  .hero-inner { padding: 3rem 0 3.5rem; }
  .hero-shade { background: linear-gradient(180deg, rgba(10,24,16,.82), rgba(10,24,16,.72)); }
  .hero-ctas .btn { width: 100%; }
  /* Bottom padding lifts the stats above Pat's greeting bubble and launcher
     on a phone, where a 16rem left gutter will not fit. */
  .strip-inner { grid-template-columns: repeat(2, 1fr); gap: .85rem 1.2rem; padding: 1.1rem 1rem 11rem; }
  .section { padding: 3.5rem 0; }
  .cards, .reviews { grid-template-columns: 1fr; }
  .badge-float { right: 10px; }
  .price-table th:nth-child(2), .price-table td:nth-child(2) { display: none; }
  .price-table th, .price-table td { padding: .8rem 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .final-btns, .final-btns .btn { width: 100%; }
  .chat-launcher span { display: none; }
  .chat-launcher { left: 14px; right: auto; bottom: 8px; padding: .35rem; }
  .chat-launcher img { width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  html, .site-shell { scroll-behavior: auto !important; }
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ================= compare.html ================= */
.compare-hero { background: var(--brand); color: #fff; padding: 4rem 0 3.5rem; text-align: center; }
.compare-hero .eyebrow { color: var(--accent); }
.compare-hero p { max-width: 720px; margin: 0 auto; color: #e3ece6; font-size: 1.1rem; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.compare-col { border-radius: 18px; padding: 1.6rem; }
.compare-col h2 { font-size: 1.6rem; display: flex; align-items: center; gap: .6rem; }
.col-old { background: #f3f3f3; border: 2px dashed #c9c9c9; }
.col-new { background: var(--brand-soft); border: 2px solid var(--brand); }
.label-pill { font: 700 .72rem var(--font); text-transform: uppercase; letter-spacing: .08em; padding: .25rem .6rem; border-radius: 999px; }
.pill-old { background: #ddd; color: #555; }
.pill-new { background: var(--brand); color: #fff; }
.old-form { background: #fff; border: 1px solid #ddd; border-radius: 6px; padding: 1.3rem; font-family: Arial, sans-serif; }
.old-form h3 { font-family: Arial, sans-serif; font-size: 1.1rem; }
.old-form label { display: block; font-size: .85rem; color: #444; margin: .7rem 0 .25rem; }
.old-form input, .old-form textarea { width: 100%; padding: .55rem; border: 1px solid #bbb; border-radius: 3px; font: inherit; font-size: .95rem; }
.old-form textarea { min-height: 90px; resize: vertical; }
.old-form button { margin-top: 1rem; background: #777; color: #fff; border: 0; padding: .6rem 1.4rem; border-radius: 3px; font: inherit; cursor: pointer; }
.form-note { margin-top: .8rem; background: #fffbe6; border: 1px solid #eedc82; padding: .6rem .8rem; font-size: .9rem; border-radius: 4px; }
.pain, .gain { list-style: none; padding: 0; margin: 1.3rem 0 0; }
.pain li, .gain li { padding-left: 1.8rem; position: relative; margin-bottom: .6rem; font-size: .96rem; }
.pain li::before { content: "✕"; position: absolute; left: 0; color: #c0392b; font-weight: 800; }
.gain li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.mock-chat { background: #fff; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.mock-chat .fb-head { border-radius: 0; }
.mock-body { padding: 1rem; max-height: none; }
.mock-body .bubble { font-size: .92rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: -.2rem 0 .8rem; }
.chips span { border: 1.5px solid var(--brand); color: var(--brand); border-radius: 999px; padding: .25rem .7rem; font-size: .82rem; font-weight: 600; }
.estimate-box { background: #fff8ea; border: 1px solid #f0d49b; border-radius: 12px; padding: .8rem 1rem; margin-bottom: .7rem; font-size: .92rem; }
.estimate-box strong.big { display: block; font-size: 1.5rem; color: var(--brand); font-family: var(--font-head); }
.lead-card { background: #fff; border-radius: 14px; border-left: 5px solid var(--accent); padding: 1.1rem 1.3rem; margin-top: 1.4rem; box-shadow: 0 6px 18px rgba(0,0,0,.07); font-size: .93rem; }
.lead-card h3 { font-size: 1.05rem; font-family: var(--font); display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.lead-card dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 0; }
.lead-card dt { color: var(--muted); }
.lead-card dd { margin: 0; font-weight: 600; }
.why-lost { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.why-lost div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.why-lost h3 { font-size: 1.15rem; }
.why-lost p { color: var(--muted); margin: 0; font-size: .96rem; }
@media (max-width: 860px) {
  .compare-grid, .why-lost { grid-template-columns: 1fr; }
  .compare-col { padding: 1rem; }
  .lead-card dl { grid-template-columns: 1fr; gap: 0; }
  .lead-card dd { margin-bottom: .4rem; }
}
