:root {
  --bg: #f4f7fb;
  --ink: #1a2836;
  --muted: #5c6c7c;
  --line: rgba(26, 40, 54, 0.12);
  --accent: #c9841a;
  --accent-2: #167a9c;
  --on-accent: #1a1408;
  --panel: #fff;
  --soft: #e7f3f8;
  --display: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Source Sans 3", "Segoe UI", sans-serif;
  --lede-font: var(--body);
  --radius: 18px;
  --shadow: 0 24px 50px rgba(23, 40, 58, 0.08);
  --max: 1120px;
  color-scheme: light;
}

[hidden] { display: none !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; margin: 0; overflow-wrap: break-word; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.7rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip {
  position: absolute; left: 12px; top: -40px; background: var(--accent); color: var(--on-accent);
  padding: 8px 12px; z-index: 80;
}
.skip:focus { top: 8px; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.lock { overflow: hidden; }

.agency {
  position: sticky; top: 0; z-index: 40;
  display: flex; gap: 16px; align-items: center; justify-content: space-between;
  padding: 10px 22px;
  background: #14120e; color: #f4efe6;
  border-bottom: 1px solid rgba(228, 177, 90, 0.45);
  font-family: "Outfit", "Avenir Next", sans-serif;
  font-size: 0.92rem;
}
.agency p { margin: 0; }
.agency strong { font-weight: 600; }
.agency-btn, .icon-btn, .btn, .chip, .chat-launcher, .quick, .chat-form button, .open {
  cursor: pointer;
}
.agency-btn {
  flex: none;
  border: 1px solid rgba(228, 177, 90, 0.7);
  background: transparent; color: #f6e2bc;
  border-radius: 999px; padding: 7px 14px;
  font-family: inherit;
}
.agency-btn:hover { background: rgba(228, 177, 90, 0.14); }

.top, .hero, .trust, .services, .process, .area, .quote, .foot {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 18px 0 8px;
}
.brand, .hub-brand { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.mark {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px; background: var(--ink); color: var(--bg);
  font-family: var(--display); font-weight: 650; letter-spacing: 0.04em; font-size: 0.95rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--display); font-size: 1.02rem; letter-spacing: -0.02em; }
.brand-text em { font-style: normal; color: var(--muted); font-size: 0.86rem; }
.top-nav { display: flex; gap: 18px; }
.top-nav a { text-decoration: none; color: var(--muted); font-size: 0.95rem; }
.top-nav a:hover { color: var(--ink); }
.call {
  display: flex; gap: 8px; align-items: center; text-decoration: none;
  padding: 8px 12px 8px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
}
.call svg { width: 18px; height: 18px; }
.call span { display: flex; flex-direction: column; line-height: 1.1; }
.call small { color: var(--muted); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.call strong, .call span { font-weight: 650; font-variant-numeric: tabular-nums; }

.hero { position: relative; }
.hero-copy { position: relative; z-index: 1; max-width: 36rem; min-width: 0; }
.kicker, .eyebrow, .ticket-kicker, .chat-kicker {
  font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 12px; font-weight: 650;
}
.lede { font-family: var(--lede-font); font-size: 1.18rem; color: var(--muted); margin-top: 16px; max-width: 46rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; border-radius: 999px; padding: 13px 18px; border: 1px solid transparent;
  font-family: var(--display); letter-spacing: -0.01em;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-block { width: 100%; }
.rating-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  padding: 8px 12px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 0.98rem;
}
.stars { width: 16px; height: 16px; fill: var(--accent); flex: none; }
.rating-badge .stars { fill: var(--accent); }

.emblem {
  width: 56px; height: 56px; flex: none; color: var(--accent-2);
  display: grid; place-items: center;
  background: var(--soft); border-radius: 16px;
}
.emblem-svg { width: 56px; height: 56px; display: block; }
.brand-text strong { max-width: 15rem; }
.real-logo { display: block; height: 58px; width: auto; }
.real-logo-foot { height: 46px; margin-bottom: 8px; }
.logo-pill {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 18px; padding: 6px 10px;
  box-shadow: 0 10px 28px rgba(30, 58, 47, 0.1);
}
.logo-pill img { display: block; height: 68px; width: auto; }
.logo-pill-foot { margin-bottom: 8px; }
.logo-pill-foot img { height: 56px; }
body[data-theme="dental"] .top {
  background: #e7f6f6;
  border-radius: 18px;
  padding: 8px 12px 8px 8px;
  margin-top: 12px;
  width: min(var(--max), calc(100% - 40px));
}

.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-shade { position: absolute; inset: 0; pointer-events: none; }
.float-badge {
  position: absolute; z-index: 2; top: 16px; right: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #1a2836; border-radius: 999px;
  padding: 9px 13px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  font-weight: 650; letter-spacing: -0.01em;
}
.float-badge .stars { fill: #e2a008; width: 15px; height: 15px; }

.hero-bleed {
  width: 100%; min-height: calc(100svh - 132px); display: grid; align-items: end;
  margin: 10px 0 0; border-radius: 0; overflow: hidden;
}
.hero-bleed .hero-media { position: absolute; inset: 0; }
.hero-bleed .hero-shade {
  background: linear-gradient(90deg, var(--hero-scrim) 0 42%, color-mix(in srgb, var(--hero-scrim) 88%, transparent) 52%, transparent 68%);
}
.hero-bleed .hero-copy {
  padding: 48px 88px 40px 0;
  margin-left: max(20px, calc((100% - var(--max)) / 2));
  width: min(34rem, calc(100% - 120px));
}
body[data-theme="hvac"] { --hero-scrim: rgba(243, 246, 250, 0.94); }
body[data-theme="plumbing"] { --hero-scrim: rgba(7, 20, 34, 0.9); }
body[data-theme="electrical"] { --hero-scrim: rgba(12, 13, 16, 0.9); }
body[data-theme="landscape"] { --hero-scrim: rgba(246, 241, 231, 0.92); }
body[data-theme="clinic"] { --hero-scrim: rgba(247, 243, 236, 0.92); }
body[data-theme="dental"] { --hero-scrim: rgba(247, 246, 243, 0.94); }
body[data-theme="auto"] { --hero-scrim: rgba(14, 15, 18, 0.9); }

.hero-frame, .hero-frame-reverse {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px; align-items: center; padding: 28px 0 36px;
  min-height: calc(100svh - 148px); overflow: hidden; background: transparent;
}
.hero-frame-reverse .hero-copy { order: -1; }
.hero-frame .hero-media, .hero-frame-reverse .hero-media {
  position: relative; min-width: 0; width: 100%; height: min(68vh, 560px);
  border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); align-self: center;
}
.hero-frame .hero-media img, .hero-frame-reverse .hero-media img,
.hero-banner .hero-media img, .hero-bleed .hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-frame .hero-shade, .hero-frame-reverse .hero-shade { display: none; }
.hero-frame .hero-copy, .hero-frame-reverse .hero-copy { padding: 8px 0; max-width: none; }
.hero-frame h1, .hero-frame-reverse h1 { font-size: clamp(2.3rem, 3.6vw, 3.7rem); }

.hero-banner {
  display: flex; flex-direction: column; justify-content: flex-start; gap: 28px;
  min-height: calc(100svh - 148px); overflow: hidden; background: transparent; padding: 18px 0 32px;
}
.hero-banner .hero-media {
  position: relative; width: 100%; height: min(50vh, 460px); min-height: 280px;
  border-radius: 28px; overflow: hidden; box-shadow: var(--shadow);
}
.hero-banner .hero-shade { background: linear-gradient(to top, rgba(0, 0, 0, 0.28), transparent 42%); }
.hero-banner .hero-copy { padding: 0; max-width: 40rem; }
[data-layout="stack"] .hero-banner { text-align: center; }
[data-layout="stack"] .hero-banner .hero-copy { margin-inline: auto; }
[data-layout="stack"] .hero-banner .hero-actions { justify-content: center; }

.trust {
  margin-top: 28px; display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: color-mix(in srgb, var(--panel) 88%, transparent);
}
.trust div { padding: 14px 16px; }
.trust div + div { border-left: 1px solid var(--line); }
.trust span { display: block; color: var(--muted); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.trust strong { font-weight: 650; }
.trust a { text-underline-offset: 3px; }

.services, .process, .area, .quote { padding: 72px 0 0; }
.section-head { max-width: 680px; margin-bottom: 26px; }
.section-head h2 { margin-top: 6px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.service-card {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 18px 20px; min-height: 150px;
}
.svc-icon { width: 28px; height: 28px; color: var(--accent); display: block; }
.svc-icon svg { width: 28px; height: 28px; display: block; }
.service-card { min-height: 0; }
.service-card h3 { font-size: 1.2rem; margin: 10px 0 0; }
.service-card p, .steps p, .area p, .quote-copy p { color: var(--muted); margin-top: 8px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { padding-top: 8px; }
.steps span { font-family: var(--display); font-size: 2rem; color: var(--accent); letter-spacing: -0.04em; }
.steps h3 { font-size: 1.3rem; margin-top: 8px; }

.area {
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 24px; align-items: stretch;
}
.area-card {
  --area-bg: #fbfaf6;
  --area-ink: #14202b;
  --area-muted: #243444;
  --area-line: rgba(20, 32, 43, 0.16);
  --area-rule: var(--accent);
  --area-btn: #14202b;
  --area-btn-ink: #fbfaf6;
  position: relative; overflow: hidden;
  border-radius: 22px; padding: 26px 24px 22px;
  background: var(--area-bg); color: var(--area-ink);
  border: 1px solid var(--area-line);
  box-shadow: 0 18px 44px rgba(16, 24, 32, 0.1);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 280px;
}
.area-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--area-rule); z-index: 1;
}
.area-grid { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--area-rule); opacity: 0.28; pointer-events: none; }
.area-card > :not(.area-grid) { position: relative; z-index: 1; }
.area-card .area-kicker {
  margin: 0 0 8px; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--area-muted); font-weight: 700;
}
.area-card .area-place { margin: 0; font-family: var(--display); font-size: clamp(2.1rem, 4vw, 3.15rem); letter-spacing: -0.04em; line-height: 0.95; color: var(--area-ink); }
.area-card .area-metro { margin: 4px 0 0; color: var(--area-muted); font-size: 1.02rem; }
.area-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 16px; }
.area-tags li {
  border: 1px solid var(--area-line); border-radius: 999px; padding: 5px 10px;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--area-ink); background: transparent;
}
.area-card .btn-area {
  margin-top: 4px; align-self: flex-start;
  background: var(--area-btn); color: var(--area-btn-ink); border-color: transparent;
}

.quote {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: start;
  padding-bottom: 72px;
}
.quote-form {
  display: grid; gap: 12px; background: var(--panel); border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px); padding: 18px; box-shadow: var(--shadow);
}
.quote-form label { display: grid; gap: 6px; font-size: 0.92rem; color: var(--muted); }
.quote-form label span { font-weight: 400; }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 12px 12px;
}
.form-error { color: #9d2c2c; }
.fine { color: var(--muted); font-size: 0.9rem; margin-top: 12px; }

.foot {
  display: flex; justify-content: space-between; gap: 24px;
  border-top: 1px solid var(--line); padding: 28px 0 48px; width: min(var(--max), calc(100% - 40px));
}
.foot .mark { margin-bottom: 8px; }
.foot a { display: block; margin-top: 4px; }
.listed { color: var(--muted); font-size: 0.92rem; }

.chat { position: fixed; right: 18px; bottom: 18px; z-index: 50; }
.chat-launcher {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 16px;
  background: var(--ink); color: var(--bg); box-shadow: var(--shadow);
  font-family: var(--display);
}
.chat-launcher svg { width: 18px; height: 18px; }
.chat-panel {
  position: absolute; right: 0; bottom: 62px; width: min(380px, calc(100vw - 24px));
  background: var(--panel); color: var(--ink); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column; max-height: min(640px, calc(100vh - 120px));
}
.chat-head, .modal-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 14px 14px 10px; }
.chat-head h2, .modal-head h2 { font-size: 1.15rem; letter-spacing: -0.02em; }
.icon-btn { border: 0; background: transparent; font-size: 1.4rem; line-height: 1; color: inherit; padding: 0 4px; }
.chat-log { padding: 0 14px; overflow: auto; display: flex; flex-direction: column; gap: 8px; min-height: 180px; max-height: 320px; }
.msg { border-radius: 14px; padding: 10px 12px; font-size: 0.96rem; }
.msg-bot { background: var(--soft); }
.msg-user { background: var(--ink); color: var(--bg); margin-left: 32px; }
.msg a { text-underline-offset: 2px; }
.quick-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; }
.quick { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 10px; font-size: 0.82rem; }
.chat-form { display: flex; gap: 8px; padding: 0 12px 12px; }
.chat-form input { flex: 1; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); padding: 10px 12px; }
.chat-form button { border: 0; border-radius: 12px; background: var(--accent); color: var(--on-accent); padding: 0 14px; font-family: var(--display); }

.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 18px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 9, 7, 0.62); }
.modal-panel {
  position: relative; width: min(920px, 100%);
  background: #16130f; color: #f6f1e8; border-radius: 22px;
  border: 1px solid rgba(228, 177, 90, 0.35); padding: 8px 8px 18px;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  max-height: calc(100vh - 36px); overflow: auto;
}
.modal-panel h2, .modal-panel h3 { font-family: "Fraunces", Palatino, serif; font-weight: 520; }
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 10px; }
.tier { border: 1px solid rgba(246, 241, 232, 0.12); border-radius: 16px; padding: 14px; background: #201c17; }
.tier.is-fit { border-color: #e4b15a; box-shadow: inset 0 0 0 1px #e4b15a; }
.fit { color: #e4b15a; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.fit-quiet { color: #b7ab9a; }
.tier-price { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 0; }
.tier-price strong { font-family: "Fraunces", Palatino, serif; font-size: 2.4rem; font-weight: 560; letter-spacing: -0.04em; }
.tier-reg { color: #b7ab9a; text-decoration: line-through; }
.tier-detail { color: #ddd4c6; margin-top: 8px; }
.offer-points { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 14px 10px 0; margin: 0; }
.offer-points li { border: 1px solid rgba(246, 241, 232, 0.16); border-radius: 999px; padding: 6px 10px; font-size: 0.9rem; }
.offer-note { color: #d9c7a2; padding: 12px 12px 0; }
.toast {
  position: fixed; left: 16px; bottom: 16px; z-index: 65;
  max-width: min(420px, calc(100% - 32px));
  background: #14120e; color: #f6f1e8; border-radius: 16px; padding: 14px 16px;
  border: 1px solid rgba(228, 177, 90, 0.5); box-shadow: var(--shadow);
}

/* Themes */
body[data-theme="hvac"] {
  --bg: #f3f6fa; --ink: #1a2836; --muted: #526475; --panel: #fff;
  --line: rgba(26, 40, 54, 0.12); --accent: #d0891d; --accent-2: #147a9a;
  --on-accent: #1c1406; --soft: #e5f4f8;
  --display: "Outfit", "Avenir Next", sans-serif;
  --body: "Source Sans 3", "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(126, 196, 224, 0.45), transparent 60%),
    radial-gradient(700px 380px at -10% 10%, rgba(208, 137, 29, 0.16), transparent 55%),
    var(--bg);
}
body[data-theme="hvac"] .service-card { box-shadow: 0 1px 0 rgba(20, 122, 154, 0.25) inset; }

body[data-theme="plumbing"] {
  --bg: #071422; --ink: #f3f7fb; --muted: #b7c6d6; --panel: #10243f;
  --line: rgba(232, 220, 206, 0.16); --accent: #e0a06d; --accent-2: #7ddec0;
  --on-accent: #1a120c; --soft: #163154;
  --display: "Sora", "Avenir Next", sans-serif;
  --body: "Source Sans 3", "Segoe UI", sans-serif;
  color-scheme: dark;
  background:
    radial-gradient(800px 480px at 100% 0%, rgba(125, 222, 192, 0.14), transparent 50%),
    radial-gradient(680px 420px at 0% 100%, rgba(224, 160, 109, 0.16), transparent 46%),
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 56px 56px, 56px 56px, auto;
}
body[data-theme="plumbing"] .mark { background: #e0a06d; color: #1a120c; }
body[data-theme="plumbing"] .service-card { background: linear-gradient(180deg, rgba(224,160,109,0.08), transparent 42%), var(--panel); }
body[data-theme="plumbing"] .steps { gap: 0; }
body[data-theme="plumbing"] .steps li { padding: 18px 18px 8px 0; border-top: 1px solid var(--line); }
body[data-theme="plumbing"] .area-card { --area-rule: #9a6238; --area-bg: #f7f1ea; --area-ink: #1a120c; --area-muted: #3a2a22; --area-btn: #1a120c; --area-btn-ink: #f7f1ea; }
body[data-theme="plumbing"] .form-error { color: #ffb4b4; }

body[data-theme="electrical"] {
  --bg: #121417; --ink: #f4f1ea; --muted: #c9c2b4; --panel: #1c1f24;
  --line: rgba(240, 193, 77, 0.28); --accent: #f0c14d; --accent-2: #f0c14d;
  --on-accent: #1a1404; --soft: #2a2618;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Segoe UI", sans-serif;
  color-scheme: dark;
  background:
    linear-gradient(135deg, rgba(240, 193, 77, 0.08) 0 1px, transparent 1px 14px),
    radial-gradient(600px 300px at 90% 0%, rgba(240, 193, 77, 0.12), transparent 60%),
    var(--bg);
}
body[data-theme="electrical"] h1 { text-transform: uppercase; font-weight: 600; letter-spacing: 0.01em; line-height: 0.92; }
body[data-theme="electrical"] .mark { border-radius: 4px; background: #f0c14d; color: #1a1404; }
body[data-theme="electrical"] .service-card { border-radius: 4px; }
body[data-theme="electrical"] .service-card::before {
  content: ""; position: absolute; inset: 7px; border: 1px solid rgba(240, 193, 77, 0.35); pointer-events: none;
}
body[data-theme="electrical"] .ticket, body[data-theme="electrical"] .quote-form, body[data-theme="electrical"] .btn { border-radius: 4px; }
body[data-theme="electrical"] .kicker { letter-spacing: 0.18em; }
body[data-theme="electrical"] .area-card {
  --area-bg: #181b20; --area-ink: #f7f4ee; --area-muted: #e4ddd0;
  --area-line: rgba(240, 193, 77, 0.55); --area-rule: #f0c14d;
  --area-btn: #f0c14d; --area-btn-ink: #1a1404;
  border-radius: 8px; box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
}
body[data-theme="electrical"] .form-error { color: #ffb4b4; }

body[data-theme="landscape"] {
  --bg: #f6f1e7; --ink: #1e3a2f; --muted: #5d6b5f; --panel: #fbf8f2;
  --line: rgba(30, 58, 47, 0.16); --accent: #1e3a2f; --accent-2: #5c4522;
  --on-accent: #f6f1e7; --soft: #efe6d6;
  --display: "Fraunces", "Iowan Old Style", Palatino, serif;
  --body: "Outfit", "Avenir Next", sans-serif;
  --lede-font: "Fraunces", Palatino, serif;
  background:
    radial-gradient(900px 400px at 0% 0%, rgba(30, 58, 47, 0.06), transparent 50%),
    var(--bg);
}
body[data-theme="landscape"] h1 { font-weight: 520; font-style: italic; letter-spacing: -0.035em; }
body[data-theme="landscape"] .mark { background: #1e3a2f; color: #f6f1e7; border-radius: 50%; }
body[data-theme="landscape"] .service-grid { display: block; }
body[data-theme="landscape"] .service-card {
  display: grid; grid-template-columns: 72px 1fr; column-gap: 8px;
  background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; min-height: 0; padding: 18px 0;
}
body[data-theme="landscape"] .service-card h3, body[data-theme="landscape"] .service-card p { grid-column: 2; }
body[data-theme="landscape"] .service-card .svc-icon { grid-row: 1 / span 2; align-self: center; }
body[data-theme="landscape"] .steps span { font-family: "Fraunces", Palatino, serif; font-style: italic; font-size: 2.4rem; }
body[data-theme="landscape"] .area-card { --area-rule: #1e3a2f; --area-bg: #fbf8f2; --area-ink: #14261c; --area-muted: #2c4034; --area-btn: #1e3a2f; --area-btn-ink: #f6f1e7; }

body[data-theme="clinic"] {
  --bg: #f7f3ec; --ink: #2c3330; --muted: #5e6a64; --panel: #fffdf9;
  --line: rgba(44, 51, 48, 0.12); --accent: #3f6b4e; --accent-2: #5c4630;
  --on-accent: #f7f3ec; --soft: #e7efe8;
  --display: "Fraunces", Palatino, serif;
  --body: "Source Sans 3", "Segoe UI", sans-serif;
  background:
    radial-gradient(700px 380px at 100% 0%, rgba(110, 143, 120, 0.25), transparent 60%),
    radial-gradient(500px 300px at 0% 20%, rgba(231, 220, 200, 0.8), transparent 60%),
    var(--bg);
}
body[data-theme="clinic"] .service-card, body[data-theme="clinic"] .ticket, body[data-theme="clinic"] .quote-form { border-radius: 28px; }
body[data-theme="clinic"] .mark { border-radius: 50%; background: #6e8f78; color: #14211a; }
body[data-theme="clinic"] .btn { border-radius: 16px; }
body[data-theme="clinic"] .area-card { --area-rule: #3f6b4e; --area-bg: #fbf8f3; --area-ink: #1c2622; --area-muted: #2e3d36; --area-btn: #24382c; --area-btn-ink: #f7f3ec; border-radius: 28px; }

body[data-theme="dental"] {
  --bg: #f7f6f3; --ink: #16324f; --muted: #4d6278; --panel: #ffffff;
  --line: rgba(22, 50, 79, 0.12);   --accent: #0d6a6a; --accent-2: #16324f;
  --on-accent: #f4fffe; --soft: #e7f4f4;
  --display: "Outfit", "Avenir Next", sans-serif;
  --body: "Source Sans 3", "Segoe UI", sans-serif;
  --lede-font: "Fraunces", Palatino, serif;
  background-color: #f7f6f3;
  background-image: linear-gradient(180deg, #fbfaf7, #f3f7f7 40%, #f7f6f3);
}
body[data-theme="dental"] h1 { font-weight: 560; letter-spacing: -0.04em; }
body[data-theme="dental"] .lede { font-style: italic; color: #3e5870; }
body[data-theme="dental"] .mark { background: #16324f; color: #f7f6f3; border-radius: 14px; }
body[data-theme="dental"] .service-card { border-top: 3px solid #1f8a8a; }
body[data-theme="dental"] .area-card { --area-rule: #0d6a6a; --area-bg: #f7f6f3; --area-ink: #10283d; --area-muted: #1e3d58; --area-btn: #10283d; --area-btn-ink: #f7f6f3; }
body[data-theme="dental"] .kicker { color: #0d6a6a; }

body[data-theme="auto"] {
  --bg: #14161b; --ink: #f4efe9; --muted: #d0c4bc; --panel: #22262e;
  --line: rgba(226, 84, 58, 0.4); --accent: #e4543a; --accent-2: #ffb088;
  --on-accent: #1a0c09; --soft: #3a241f;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Source Sans 3", "Segoe UI", sans-serif;
  color-scheme: dark;
  background:
    repeating-linear-gradient(-12deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 14px),
    radial-gradient(700px 320px at 80% -10%, rgba(228, 84, 58, 0.28), transparent 55%),
    var(--bg);
}
body[data-theme="auto"] h1 { text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.92; font-weight: 600; }
body[data-theme="auto"] .mark { background: #e4543a; color: #1a0c09; border-radius: 6px; }
body[data-theme="auto"] .service-card { border-radius: 8px; background: linear-gradient(180deg, rgba(228,84,58,0.14), transparent 40%), var(--panel); }
body[data-theme="auto"] .service-card .idx { font-size: 1.5rem; }
body[data-theme="auto"] .ticket, body[data-theme="auto"] .btn, body[data-theme="auto"] .quote-form { border-radius: 8px; }
body[data-theme="auto"] .area-card {
  --area-bg: #181b20; --area-ink: #f7f4ee; --area-muted: #e6ddd4;
  --area-line: rgba(228, 84, 58, 0.7); --area-rule: #e4543a;
  --area-btn: #f4efe9; --area-btn-ink: #14161b;
  border-radius: 8px; box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
}
body[data-theme="auto"] .form-error { color: #ffb4b4; }
body[data-theme="auto"] .hero-stats { border-color: rgba(228, 84, 58, 0.45); }
[data-layout="band"] .trust,
[data-layout="stack"] .trust,
[data-layout="split"] .rating-badge,
[data-layout="split-reverse"] .rating-badge,
[data-layout="band"] .rating-badge,
[data-layout="stack"] .rating-badge { display: none; }
[data-layout="band"] .hero-stats a { color: var(--ink); font-weight: 650; text-decoration: none; padding: 0; }

[data-rhythm="b"] main { display: flex; flex-direction: column; }
[data-rhythm="b"] .hero { order: 0; }
[data-rhythm="b"] .trust { order: 1; }
[data-rhythm="b"] .process { order: 2; }
[data-rhythm="b"] .services { order: 3; }
[data-rhythm="b"] .quote { order: 4; }
[data-rhythm="b"] .area { order: 5; }
[data-rhythm="c"] main { display: flex; flex-direction: column; }
[data-rhythm="c"] .hero { order: 0; }
[data-rhythm="c"] .trust { order: 1; }
[data-rhythm="c"] .area { order: 2; }
[data-rhythm="c"] .services { order: 3; }
[data-rhythm="c"] .process { order: 4; }
[data-rhythm="c"] .quote { order: 5; }
main { width: 100%; }

/* Index */
body[data-theme="hub"] {
  --bg: #0e0d0b; --ink: #f6f1e8; --muted: #c9bfb2; --panel: #171511;
  --line: rgba(246, 241, 232, 0.12); --accent: #e4b15a; --accent-2: #e4b15a;
  --on-accent: #1a1408; --soft: #2a241c;
  --display: "Fraunces", Palatino, serif;
  --body: "Outfit", "Avenir Next", sans-serif;
  color-scheme: dark;
  background:
    radial-gradient(800px 400px at 90% -10%, rgba(228, 177, 90, 0.16), transparent 50%),
    var(--bg);
}
.hub-top, .hub-hero, .systems, .filters, .grid, .hub-foot, .empty {
  width: min(1180px, calc(100% - 36px)); margin-inline: auto;
}
.hub-top { display: flex; justify-content: space-between; align-items: center; padding: 22px 0 8px; }
.hub-brand { color: inherit; text-decoration: none; font-family: "Outfit", sans-serif; letter-spacing: -0.02em; }
.hub-brand .mark { background: #e4b15a; color: #1a1408; }
.hub-top p { color: var(--muted); font-size: 0.92rem; }
.hub-hero { padding: 28px 0 10px; }
.hub-hero h1 { max-width: 11em; }
.hub-metrics { display: grid; grid-template-columns: repeat(4, max-content); gap: 28px; margin: 26px 0 0; }
.hub-metrics dt { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.hub-metrics dd { margin: 4px 0 0; font-family: "Fraunces", Palatino, serif; font-size: 1.8rem; }
.systems { padding: 18px 0 6px; }
.systems h2 { font-size: 1.1rem; margin-bottom: 10px; }
.systems ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 16px; padding: 0; margin: 0; color: var(--muted); font-size: 0.92rem; }
.systems li { display: flex; align-items: center; gap: 8px; }
.systems span { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
[data-swatch="hvac"] span { background: linear-gradient(135deg, #d7eef6, #d0891d); }
[data-swatch="plumbing"] span { background: linear-gradient(135deg, #14315a, #e0a06d); }
[data-swatch="electrical"] span { background: linear-gradient(135deg, #121417, #f0c14d); }
[data-swatch="landscape"] span { background: linear-gradient(135deg, #1e3a2f, #f6f1e7); }
[data-swatch="clinic"] span { background: linear-gradient(135deg, #6e8f78, #1f8a8a); }
[data-swatch="auto"] span { background: linear-gradient(135deg, #22262e, #e4543a); }
.filters { padding: 18px 0; display: grid; gap: 10px; position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); z-index: 5; }
.search { display: grid; gap: 6px; color: var(--muted); font-size: 0.85rem; }
.search input {
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  border-radius: 12px; padding: 12px 14px; width: min(520px, 100%);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 2px; max-width: 100%; }
.chip {
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  border-radius: 999px; padding: 7px 12px; white-space: nowrap; font-family: "Outfit", sans-serif; font-size: 0.9rem;
}
.chip.is-on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.showing { color: var(--muted); font-size: 0.9rem; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding-bottom: 28px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 0 0 14px;
  display: flex; flex-direction: column; gap: 8px; overflow: hidden;
}
.card-shot { display: block; height: 156px; }
.card-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-top, .card h2, .card-place, .card-rating, .status, .pain, .card-site { padding-inline: 16px; }
.card-top { padding-top: 12px; }
.card-top, .card-foot { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.card-foot { margin-top: auto; padding: 4px 16px 0; }
.card-top p, .card-place, .pain, .card-site { color: var(--muted); }
.card h2 { font-size: 1.55rem; }
.card h2 a { text-decoration: none; }
.card h2 a:hover { color: var(--accent); }
.card-rating { display: flex; align-items: center; gap: 6px; }
.tier-pill { border: 1px solid rgba(228, 177, 90, 0.5); color: #f0d7a4; border-radius: 999px; padding: 4px 8px; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.status { color: #f0d7a4; font-size: 0.92rem; }
.card-site { font-size: 0.86rem; word-break: break-all; }
.open {
  text-decoration: none; background: var(--accent); color: var(--on-accent);
  border-radius: 999px; padding: 8px 12px; font-family: "Outfit", sans-serif;
}
.card-phone { font-variant-numeric: tabular-nums; }
.hub-foot { color: var(--muted); padding: 8px 0 40px; font-size: 0.92rem; }
.empty { color: var(--muted); padding-bottom: 40px; }

@media (max-width: 900px) {
  .top-nav { display: none; }
  .trust, .grid, .hub-metrics { grid-template-columns: 1fr 1fr; }
  .hero-frame, .hero-frame-reverse, .hero-banner { grid-template-columns: 1fr; min-height: 0; display: flex; flex-direction: column; }
  .hero-frame .hero-media, .hero-frame-reverse .hero-media, .hero-banner .hero-media { order: -1; width: 100%; height: 220px; min-height: 220px; }
  .hero-frame-reverse .hero-copy { order: 0; }
  .hero-bleed {
    min-height: 0; display: flex; flex-direction: column; align-items: stretch;
    background: var(--bg); overflow: visible;
  }
  .hero-bleed .hero-media { position: relative; inset: auto; height: 230px; }
  .hero-bleed .hero-shade { display: none; }
  .hero-bleed .hero-copy {
    margin: 0 20px; width: auto; max-width: none;
    padding: 22px 0 96px; background: transparent;
  }
  .hero-frame .hero-copy, .hero-frame-reverse .hero-copy, .hero-banner .hero-copy { padding: 20px 0 96px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .area, .quote, .foot, .hub-top { display: flex; flex-direction: column; }
  .trust div + div { border-left: 0; border-top: 1px solid var(--line); }
  .service-grid, .steps, .tier-grid { grid-template-columns: 1fr; }
  body[data-theme="landscape"] .service-grid { display: block; }
  .brand { min-width: 0; }
  .call { flex: none; }
}
@media (max-width: 720px) {
  .agency { flex-direction: column; align-items: flex-start; gap: 8px; }
  .top { align-items: center; flex-wrap: nowrap; gap: 10px; }
  .call { margin-left: auto; flex: none; }
  .brand, .brand-logo { min-width: 0; flex: 1; }
  .real-logo { height: auto; max-height: 44px; max-width: min(168px, 52vw); }
  .hero-frame h1, .hero-frame-reverse h1, .hero-banner h1 { font-size: clamp(2rem, 9vw, 2.7rem); }
  .trust, .grid { grid-template-columns: 1fr; }
  .hub-metrics { grid-template-columns: 1fr 1fr; }
  .brand-text strong { max-width: 11rem; }
  .real-logo { height: 46px; }
  .logo-pill img { height: 54px; }
  h1 { font-size: clamp(2.15rem, 10vw, 3rem); }
  .hero { padding-top: 18px; }
  .services, .process, .area, .quote { padding-top: 40px; }
  .chat-launcher span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .chat-launcher { padding: 14px; border-radius: 50%; }
  .call small { display: none; }
  .hub-hero { padding-top: 12px; }
  .hub-hero .lede { font-size: 1rem; }
  .hub-metrics dd { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
