@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Roboto:wght@400;500;700&display=swap');

:root {
  /* Brand palette sampled from the official logo (logos/jc-logo-full.png): red #bf1e2e, blue #0f75bc, black #000000. */
  --black: #000000;
  --black-dark: #000000;
  --tint: #f2f2f4;
  --red: #bf1e2e;
  --red-hover: #9a1825;
  --red-dark: #8a1520;
  --blue: #0f75bc;
  --blue-dark: #0b5a91;
  --white: #ffffff;
  --ink: #000000;
  --ink-soft: #4c4f53;
  --paper: #f6f7f8;
  --paper-alt: #ececee;
  --border: #dde0e3;
  --amber-bg: #fff4dc;
  --amber-text: #7a4a05;
  --amber-border: #e8b95a;
  --focus: #0f75bc;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-bottom: 64px; /* room for sticky mobile CTA bar */
  background: var(--paper);
  color: var(--ink);
  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Bebas Neue', system-ui, sans-serif;
  font-weight: 700;
  color: var(--black);
  line-height: 1.15;
  text-wrap: balance;
  text-transform: capitalize;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.75rem); }
h2 { font-size: clamp(1.7rem, 4vw, 3.05rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
p { margin: 0 0 1em; color: var(--ink-soft); max-width: 68ch; }
a { color: var(--black); }
img { max-width: 100%; display: block; }
ul, ol { padding-left: 1.2em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--black); color: #fff;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Preview banner */
.preview-banner {
  background: var(--amber-bg); color: var(--amber-text); text-align: center;
  font-size: 0.82rem; font-weight: 600; padding: 8px 14px; border-bottom: 1px solid var(--amber-border);
}
.placeholder-inline {
  background: var(--amber-bg); color: var(--amber-text); border: 1px dashed var(--amber-border);
  border-radius: 5px; padding: 0 6px; font-size: 0.92em; font-weight: 600;
}
.placeholder-block { font-size: 0.95rem; }
.placeholder-card {
  border: 1.5px dashed var(--amber-border); background: var(--amber-bg); color: var(--amber-text);
  border-radius: var(--radius); padding: 20px; font-size: 0.95rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none;
  font-size: 0.95rem; border: 2px solid transparent; cursor: pointer; transition: transform .12s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); }
.btn-secondary { background: var(--black); color: #fff; }
.btn-secondary:hover { background: var(--black-dark); }
.btn-ghost { background: transparent; color: var(--black); border-color: var(--black); }
.btn-ghost:hover { background: var(--black); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: #fff; color: var(--black); }
.btn-block { width: 100%; }

/* Housecall Pro's own raw embed buttons (portal/booking) carry inline styles from HCP —
   these rules just keep them from looking oversized/misaligned next to our .btn elements. */
.hcp-portal-btn { display: inline-flex; align-items: center; }
.hcp-portal-btn button { font-size: 0.85rem !important; padding: 10px 18px !important; white-space: nowrap; }
.hcp-booking-callout .hcp-button { font-size: 1rem; width: 100%; margin-top: 4px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-row { display: flex; align-items: center; justify-content: space-between; padding-block: 10px; gap: 16px; }
@media (min-width: 900px) { .header-row { padding-block: 12px; } }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: 'Archivo', sans-serif; font-weight: 800; color: var(--black); font-size: 1.15rem; }
.logo-tagline { font-size: 0.72rem; color: var(--ink-soft); font-weight: 600; letter-spacing: .02em; }
.logo-img { height: 52px; width: auto; display: block; }
@media (min-width: 900px) { .logo-img { height: 66px; } }
.footer-logo-badge {
  display: inline-flex; background: #fff; border-radius: 8px; padding: 10px 14px;
  margin-bottom: 14px;
}
.footer-logo-badge img { height: 40px; width: auto; display: block; }
.badge-img { margin-top: 12px; border-radius: 6px; background: #fff; padding: 4px; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-top: 16px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; background: var(--paper-alt); border: 1px solid var(--border); }
.gallery-item img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--paper-alt); }
.gallery-caption { padding: 10px 12px; font-size: 0.85rem; color: var(--ink-soft); }
.gallery-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 10px; }

.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  width: 40px; height: 40px; background: none; border: 1px solid var(--border); border-radius: 8px; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--black); margin: 0 auto; }

.primary-nav { display: none; }
.primary-nav.is-open { display: block; }
.nav-list { list-style: none; margin: 0; padding: 16px 0 0; display: flex; flex-direction: column; gap: 2px; }
.nav-list > li > a {
  display: block; padding: 10px 4px; text-decoration: none; font-weight: 700; color: var(--ink);
  border-bottom: 1px solid var(--border); text-transform: uppercase; font-size: 0.85rem; letter-spacing: .03em;
}
.dropdown-menu { list-style: none; margin: 0; padding: 2px 0 8px 16px; }
.dropdown-menu a {
  display: block; padding: 7px 4px; text-decoration: none; font-weight: 500; color: var(--ink-soft);
  text-transform: none; letter-spacing: normal; font-size: 0.92rem;
}
.dropdown-view-all a { font-weight: 700; color: var(--blue); }
.nav-cta { display: flex; flex-direction: column; gap: 10px; padding: 16px 0; }
.btn-call { display: inline-flex; }
.btn-cta-main { box-shadow: 0 4px 14px rgba(189, 30, 44, .28); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { display: flex !important; align-items: center; gap: 20px; }
  .nav-list { flex-direction: row; padding: 0; gap: 2px; align-items: center; }
  .nav-list > li { position: relative; }
  .nav-list > li > a { border-bottom: none; padding: 7px 8px; border-radius: 8px; font-size: 0.82rem; }
  .nav-list > li > a:hover { background: var(--paper-alt); }
  .has-dropdown > a::after {
    content: ""; display: inline-block; margin-left: 6px; width: 6px; height: 6px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px);
  }
  .dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0; margin-top: 4px;
    background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow);
    padding: 10px; min-width: 230px; z-index: 50;
  }
  .dropdown-menu--wide { column-count: 2; column-gap: 6px; min-width: 440px; }
  .has-dropdown:hover .dropdown-menu, .has-dropdown:focus-within .dropdown-menu { display: block; }
  .dropdown-menu a { padding: 8px 10px; border-radius: 6px; white-space: nowrap; break-inside: avoid; }
  .dropdown-menu a:hover { background: var(--paper-alt); }
  .dropdown-view-all { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 8px; column-span: all; }
  .nav-cta { flex-direction: row; padding: 0; align-items: center; gap: 12px; }
  .nav-cta .btn { white-space: nowrap; }
  .nav-cta .hcp-portal-btn { display: none; }
  .nav-cta .btn-call { padding: 11px 18px; font-size: 0.9rem; }
  .nav-cta .btn-cta-main { padding: 13px 26px; font-size: 1rem; }
}

/* Sticky mobile CTA bar */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  background: var(--black); box-shadow: 0 -2px 10px rgba(0,0,0,.15);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.sticky-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  color: #fff; text-decoration: none; font-weight: 700; font-size: 0.78rem;
  padding: 12px 4px; border-right: 1px solid rgba(255,255,255,.15);
}
.sticky-btn:last-child { border-right: none; }
.sticky-call { background: var(--red); }
@media (min-width: 900px) { .sticky-cta { display: none; } body { padding-bottom: 0; } }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--black) 0%, var(--black-dark) 100%);
  color: #fff; padding: 56px 0 64px;
}
.hero h1, .hero p { color: #fff; }
.hero p.lede { color: #d7e0ec; font-size: 1.1rem; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.trust-chip {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px; padding: 7px 14px; font-size: 0.82rem; font-weight: 600; color: #eef2f7;
}

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--white); }
.section-tint { background: var(--tint); }
.section-head { max-width: 62ch; margin-bottom: 32px; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .08em; font-size: 0.75rem;
  font-weight: 700; color: var(--red); margin-bottom: 8px;
}

/* Grids */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px;
}
.card .icon-wrap { color: var(--red); }
.icon-wrap.icon-heating { color: var(--red); }
.icon-wrap.icon-cooling { color: var(--blue); }
.icon-wrap.icon-both { color: var(--black); }
.card h3 { margin-bottom: 4px; }
.card a.card-link { font-weight: 700; text-decoration: none; color: var(--black); margin-top: auto; }
.card a.card-link:hover { color: var(--red); }

/* Process steps */
.steps { counter-reset: step; display: grid; gap: 24px; }
@media (min-width: 780px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding-top: 8px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px; background: var(--red); color: #fff;
  font-family: 'Archivo', sans-serif; font-weight: 800; margin-bottom: 12px;
}

/* City / service chips list */
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chip-list a {
  display: inline-block; background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 16px; text-decoration: none; font-weight: 600; color: var(--black); font-size: 0.92rem;
}
.chip-list a:hover { border-color: var(--red); color: var(--red); }

/* Breadcrumbs */
.breadcrumbs { padding: 14px 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; font-size: 0.85rem; color: var(--ink-soft); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--border); }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--red); }

/* Service / city page detail blocks */
.detail-block { margin-bottom: 40px; }
.detail-block h2 { margin-bottom: 14px; }
.two-col { display: grid; gap: 32px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.3fr 1fr; align-items: start; } }

.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item h3 { margin-bottom: 6px; font-size: 1.05rem; }

/* Forms */
.lead-form-stack { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.lead-form {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.hcp-booking-callout {
  background: var(--tint); border: 1.5px solid var(--blue); border-radius: var(--radius);
  padding: 22px;
}
.hcp-booking-callout h2 { font-size: 1.3rem; }
.form-divider {
  text-align: center; font-size: 0.78rem; color: var(--ink-soft); text-transform: uppercase;
  letter-spacing: .05em; font-weight: 700; margin: 14px 0 0;
}
.form-intro { font-size: 0.88rem; }
.form-notice {
  background: var(--amber-bg); border: 1px solid var(--amber-border); color: var(--amber-text);
  border-radius: 8px; padding: 10px 12px; font-size: 0.82rem; margin-bottom: 16px;
}
.form-row { margin-bottom: 14px; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 5px; color: var(--ink); }
input, select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  font: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--focus); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 12px; font-weight: 600; font-size: 0.9rem; }
.form-status.is-success { color: #1a7a3c; }
.form-status.is-error { color: var(--red-dark); }

/* Standalone (non-page) full-width forms */
.standalone-form .lead-form-stack { position: static; max-width: 640px; }

/* CTA band */
.cta-band { background: var(--red); color: #fff; padding: 48px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #ffe4df; margin-left: auto; margin-right: auto; }
.cta-band .btn-primary { background: #fff; color: var(--red); }
.cta-band .btn-primary:hover { background: #ffeceb; }

/* Footer */
.site-footer { background: var(--black-dark); color: #cfd9e6; padding: 48px 0 20px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h3 { color: #fff; font-size: 0.95rem; margin-bottom: 10px; }
.site-footer .logo-name { color: #fff; font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: #cfd9e6; text-decoration: none; font-size: 0.9rem; }
.site-footer a:hover { color: #fff; }
.site-footer .placeholder-inline { background: rgba(255,196,0,.15); color: #ffd98a; border-color: rgba(255,196,0,.4); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 16px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.82rem;
}
.footer-bottom a { color: #cfd9e6; }

/* Empty state (reviews, financing) */
.empty-state {
  border: 1.5px dashed var(--border); border-radius: var(--radius); padding: 32px; text-align: center; color: var(--ink-soft);
}

/* Coverage matrix table (used sparingly, e.g. for internal reference) */
.matrix-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; overflow-x: auto; display: block; }
.matrix-table th, .matrix-table td { border: 1px solid var(--border); padding: 6px 10px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover { transition: none; transform: none; }
}

.note-card{background:#f4f6f8;border-left:4px solid var(--blue);padding:14px 16px;border-radius:6px}
