:root {
  --ink: #17212b;
  --muted: #617083;
  --line: #d8dee8;
  --paper: #f6f7f9;
  --white: #ffffff;
  --blue: #173f72;
  --blue-dark: #102b4f;
  --red: #a93434;
  --gold: #c78f2d;
  --green: #1f7a5b;
  --shadow: 0 24px 80px rgba(16, 43, 79, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  background: var(--paper);
}

body,
button,
input,
select,
textarea {
  font: 400 16px/1.5 "Inter", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px clamp(18px, 5vw, 70px);
  border-bottom: 1px solid rgba(216, 222, 232, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.brand,
.site-header nav,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 11px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--blue-dark);
  border-radius: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.site-header nav {
  gap: 20px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-header nav a:hover {
  color: var(--blue);
}

.header-cta,
.primary-button,
.secondary-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 6px;
  font-weight: 800;
}

.header-cta,
.primary-button {
  border: 1px solid var(--red);
  color: #fff;
  background: var(--red);
  padding: 10px 18px;
}

.header-cta:hover,
.primary-button:hover {
  background: #8f2929;
}

.secondary-button {
  border: 1px solid var(--blue);
  color: var(--blue);
  background: #fff;
  padding: 10px 18px;
}

.secondary-button:hover {
  background: #edf4fb;
}

.hero,
.directory-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.64fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 73px);
  padding: clamp(56px, 8vw, 104px) clamp(18px, 6vw, 82px);
  background:
    linear-gradient(115deg, rgba(16, 43, 79, 0.96), rgba(23, 63, 114, 0.88)),
    radial-gradient(circle at 84% 20%, rgba(199, 143, 45, 0.32), transparent 30rem);
  color: #fff;
}

.hero.medical {
  background:
    linear-gradient(115deg, rgba(16, 43, 79, 0.98), rgba(31, 122, 91, 0.78)),
    url("https://images.unsplash.com/photo-1666214280352-db292c05fd80?auto=format&fit=crop&q=75&w=1800"),
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.22), transparent 24rem);
  background-position: center;
  background-size: cover;
}

.hero.funeral {
  background:
    linear-gradient(115deg, rgba(25, 32, 42, 0.98), rgba(23, 63, 114, 0.84)),
    url("https://images.unsplash.com/photo-1600255941018-28bd86ce0ec5?auto=format&fit=crop&q=75&w=1800"),
    radial-gradient(circle at 86% 16%, rgba(199, 143, 45, 0.24), transparent 26rem);
  background-position: center;
  background-size: cover;
}

.hero.inspection {
  background:
    linear-gradient(115deg, rgba(16, 43, 79, 0.98), rgba(169, 52, 52, 0.78)),
    url("https://images.unsplash.com/photo-1704375611931-8438a4e4945d?auto=format&fit=crop&q=75&w=1800"),
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.2), transparent 28rem);
  background-position: center;
  background-size: cover;
}

.hero.urgent-care {
  background:
    linear-gradient(115deg, rgba(16, 43, 79, 0.98), rgba(31, 122, 91, 0.78)),
    url("https://images.unsplash.com/photo-1584432810601-6c7f27d2362b?auto=format&fit=crop&q=75&w=1800");
  background-position: center;
  background-size: cover;
}

.hero.medical-spa {
  background:
    linear-gradient(115deg, rgba(25, 32, 42, 0.98), rgba(169, 52, 52, 0.7)),
    url("https://images.unsplash.com/photo-1761718210089-ba3bb5ccb54f?auto=format&fit=crop&q=75&w=1800");
  background-position: center;
  background-size: cover;
}

.hero.rehab {
  background:
    linear-gradient(115deg, rgba(16, 43, 79, 0.98), rgba(31, 122, 91, 0.72)),
    url("https://images.unsplash.com/photo-1772122028843-9139d23af4fb?auto=format&fit=crop&q=75&w=1800");
  background-position: center;
  background-size: cover;
}

.hero.dental {
  background:
    linear-gradient(115deg, rgba(16, 43, 79, 0.98), rgba(23, 63, 114, 0.72)),
    url("https://images.unsplash.com/photo-1777331903190-341a3dd0441b?auto=format&fit=crop&q=75&w=1800");
  background-position: center;
  background-size: cover;
}

.hero.veterinary {
  background:
    linear-gradient(115deg, rgba(16, 43, 79, 0.98), rgba(31, 122, 91, 0.7)),
    url("https://images.unsplash.com/photo-1770836037289-e00e5f351d11?auto=format&fit=crop&q=75&w=1800");
  background-position: center;
  background-size: cover;
}

.hero.laundromat {
  background:
    linear-gradient(115deg, rgba(16, 43, 79, 0.98), rgba(45, 94, 122, 0.74)),
    url("https://images.unsplash.com/photo-1604335398980-ededcadcc37d?auto=format&fit=crop&q=75&w=1800");
  background-position: center;
  background-size: cover;
}

.hero.car-wash {
  background:
    linear-gradient(115deg, rgba(16, 43, 79, 0.98), rgba(31, 122, 91, 0.68)),
    url("https://images.unsplash.com/photo-1607860108855-64acf2078ed9?auto=format&fit=crop&q=75&w=1800");
  background-position: center;
  background-size: cover;
}

.hero.auto-repair {
  background:
    linear-gradient(115deg, rgba(16, 43, 79, 0.98), rgba(169, 52, 52, 0.72)),
    url("https://images.unsplash.com/photo-1676018366904-c083ed678e60?auto=format&fit=crop&q=75&w=1800");
  background-position: center;
  background-size: cover;
}

.hero.auto-parts {
  background:
    linear-gradient(115deg, rgba(16, 43, 79, 0.98), rgba(64, 85, 108, 0.76)),
    url("https://images.unsplash.com/photo-1600369672770-985fd30004eb?auto=format&fit=crop&q=75&w=1800");
  background-position: center;
  background-size: cover;
}

.hero.locksmith {
  background:
    linear-gradient(115deg, rgba(16, 43, 79, 0.98), rgba(199, 143, 45, 0.62)),
    url("https://images.unsplash.com/photo-1707296916219-4f2d7529a4c5?auto=format&fit=crop&q=75&w=1800");
  background-position: center;
  background-size: cover;
}

.hero.bakery-catering {
  background:
    linear-gradient(115deg, rgba(16, 43, 79, 0.98), rgba(169, 52, 52, 0.68)),
    url("https://images.unsplash.com/photo-1509440159596-0249088772ff?auto=format&fit=crop&q=75&w=1800");
  background-position: center;
  background-size: cover;
}

.hero.food-manufacturing {
  background:
    linear-gradient(115deg, rgba(16, 43, 79, 0.98), rgba(31, 122, 91, 0.7)),
    url("https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?auto=format&fit=crop&q=75&w=1800");
  background-position: center;
  background-size: cover;
}

.hero.pre-packaged-meals {
  background:
    linear-gradient(115deg, rgba(16, 43, 79, 0.98), rgba(199, 143, 45, 0.68)),
    url("https://images.unsplash.com/photo-1543352634-a1c51d9f1fa7?auto=format&fit=crop&q=75&w=1800");
  background-position: center;
  background-size: cover;
}

.hero.meat-processing {
  background:
    linear-gradient(115deg, rgba(16, 43, 79, 0.98), rgba(169, 52, 52, 0.72)),
    url("https://images.unsplash.com/photo-1607623814075-e51df1bdc82f?auto=format&fit=crop&q=75&w=1800");
  background-position: center;
  background-size: cover;
}

.hero.hvac {
  background:
    linear-gradient(115deg, rgba(16, 43, 79, 0.98), rgba(31, 122, 91, 0.7)),
    url("https://images.unsplash.com/photo-1621905252507-b35492cc74b4?auto=format&fit=crop&q=75&w=1800");
  background-position: center;
  background-size: cover;
}

.hero.plumbing {
  background:
    linear-gradient(115deg, rgba(16, 43, 79, 0.98), rgba(45, 94, 122, 0.74)),
    url("https://images.unsplash.com/photo-1607472586893-edb57bdc0e39?auto=format&fit=crop&q=75&w=1800");
  background-position: center;
  background-size: cover;
}

.hero.electrical {
  background:
    linear-gradient(115deg, rgba(16, 43, 79, 0.98), rgba(199, 143, 45, 0.64)),
    url("https://images.unsplash.com/photo-1621905251189-08b45d6a269e?auto=format&fit=crop&q=75&w=1800");
  background-position: center;
  background-size: cover;
}

h1,
h2 {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 880px;
  font-size: clamp(2.75rem, 5.8vw, 5.9rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

h3 {
  margin: 0;
  font-size: 1.08rem;
}

.hero p,
.directory-hero p {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.03rem, 1.5vw, 1.18rem);
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-panel,
.criteria-panel {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.hero-panel span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  margin-top: 12px;
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 4.8rem);
  line-height: 0.95;
}

.criteria-panel h2 {
  font-size: 1.5rem;
}

.criteria-panel ul,
.requirements ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.criteria-panel li,
.requirements li {
  position: relative;
  padding-left: 28px;
}

.criteria-panel li::before,
.requirements li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gold);
}

.preview-links,
.pain-section,
.requirements,
.form-section,
.why-ccc,
.faq,
.page-grid {
  padding: clamp(46px, 7vw, 88px) clamp(18px, 6vw, 82px);
}

.preview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 28px;
  padding-bottom: 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.preview-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue);
  font-weight: 800;
  background: var(--paper);
}

.preview-links a:hover {
  border-color: var(--blue);
  background: #edf4fb;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.55fr);
  gap: 30px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading p,
.requirements p,
.form-copy p,
.why-ccc p,
.pain-grid p,
.page-grid p,
.faq p {
  color: var(--muted);
}

.pain-grid,
.page-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.page-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pain-grid article,
.page-grid article {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.page-grid article span {
  color: var(--red);
  font-weight: 800;
}

.text-link {
  justify-content: flex-start;
  min-height: auto;
  margin-top: 10px;
  color: var(--blue);
}

.requirements {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 0.6fr);
  gap: 36px;
  background: #fff;
}

.requirements ul {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.form-section {
  display: grid;
  grid-template-columns: minmax(270px, 0.45fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: start;
}

.funding-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 7px;
}

.field label,
.consent {
  color: #344255;
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c8d1dd;
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
}

textarea {
  resize: vertical;
}

.wide {
  grid-column: 1 / -1;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-weight: 600;
}

.consent input {
  width: auto;
  margin-top: 5px;
}

.result-panel {
  grid-column: 2;
  min-height: 0;
}

.result-card {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--green);
  border-radius: 8px;
  background: #fff;
}

.result-card.review {
  border-left-color: var(--gold);
}

.result-card.nurture {
  border-left-color: var(--red);
}

.result-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.assistant-copy {
  position: sticky;
  top: 96px;
}

.assistant-progress {
  width: 100%;
  height: 9px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe6ef;
}

.assistant-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
  transition: width 0.25s ease;
}

.assistant-card,
.verdict-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.assistant-topline,
.broker-box div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.assistant-topline span,
.broker-box span,
.estimate-box span {
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.assistant-reset,
.copy-packet {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 11px;
  color: var(--blue);
  font-weight: 800;
  background: var(--paper);
}

.chat-row {
  display: flex;
  margin: 24px 0 20px;
}

.chat-row > div {
  max-width: 760px;
  padding: 18px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
}

.chat-row strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
}

.chat-row p {
  margin: 0;
  color: #344255;
  font-size: 1.05rem;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.choice-grid button {
  min-height: 52px;
  border: 1px solid #c8d1dd;
  border-radius: 6px;
  padding: 12px;
  color: var(--blue-dark);
  font-weight: 800;
  text-align: left;
  background: #fff;
}

.choice-grid button:hover {
  border-color: var(--blue);
  background: #edf4fb;
}

.assistant-text-form {
  display: grid;
  gap: 12px;
}

.assistant-text-form .primary-button {
  width: fit-content;
}

.assistant-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.verdict-card {
  display: grid;
  gap: 18px;
}

.verdict-card.alternative {
  border-top: 6px solid var(--gold);
}

.verdict-card.qualified {
  border-top: 6px solid var(--green);
}

.verdict-status {
  display: flex;
  align-items: center;
  gap: 14px;
}

.verdict-status > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: var(--green);
}

.alternative .verdict-status > span {
  background: var(--gold);
}

.verdict-status p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.verdict-status h3 {
  margin-top: 4px;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.estimate-box,
.broker-box,
.confirmation-box {
  padding: 18px;
  border-radius: 8px;
  background: var(--blue-dark);
}

.estimate-box strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.estimate-box p,
.broker-box p,
.confirmation-box p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.muted-estimate {
  background: #f7f0e4;
}

.muted-estimate p {
  color: #6d5b3c;
}

.gate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gate {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.gate span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: var(--green);
}

.gate.fail span {
  background: var(--red);
}

.gate p {
  margin: 0;
  color: #344255;
  font-weight: 800;
}

.lead-capture {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.lead-capture h4 {
  margin: 0;
  font-size: 1.15rem;
}

.lead-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lead-grid label {
  display: grid;
  gap: 7px;
  color: #344255;
  font-size: 0.9rem;
  font-weight: 800;
}

.lead-grid label:first-child {
  grid-column: 1 / -1;
}

.assistant-consent {
  color: var(--muted);
}

.broker-box {
  color: #fff;
  background: #17212b;
}

.copy-packet {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.subtle-reset {
  justify-self: center;
  color: var(--muted);
  background: transparent;
}

.confirmation-box {
  color: #fff;
  background: var(--green);
}

.confirmation-box strong {
  font-size: 1.2rem;
}

.why-ccc {
  background: var(--blue-dark);
  color: #fff;
}

.why-ccc p {
  max-width: 920px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.faq {
  display: grid;
  gap: 12px;
  max-width: 1120px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.faq summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 800;
}

.faq details p {
  margin: 0;
  padding: 0 20px 20px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.35fr);
  gap: 32px;
  padding: 42px clamp(18px, 6vw, 82px);
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer h2 {
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.site-footer p {
  max-width: 820px;
  color: var(--muted);
}

.site-footer address {
  color: #344255;
  font-style: normal;
  font-weight: 700;
}

.site-footer a {
  color: var(--blue);
}

@media (max-width: 980px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav {
    flex-wrap: wrap;
  }

  .hero,
  .directory-hero,
  .section-heading,
  .requirements,
  .form-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .pain-grid,
  .page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-panel {
    grid-column: 1;
  }

  .assistant-copy {
    position: static;
  }
}

@media (max-width: 680px) {
  .hero,
  .directory-hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(2.25rem, 11vw, 3.2rem);
  }

  .pain-grid,
  .page-grid,
  .funding-form,
  .choice-grid,
  .gate-grid,
  .lead-grid {
    grid-template-columns: 1fr;
  }

  .assistant-card,
  .verdict-card {
    padding: 20px;
  }

  .hero-panel strong {
    font-size: 2.1rem;
  }
}
