/* Shared stylesheet for the referral sites. Palette, type scale and components follow templates/bedbug-warren. */
:root {
  --navy: #0d385a;
  --navy-deep: #082a45;
  --blue: #bfe0fb;
  --soft: #e7f4ff;
  --paper: #f7f9fb;
  --white: #fff;
  --ink: #122637;
  --muted: #4b6070;
  --line: #d8e2ea;
  --gold: #ffb800;
  --gold-dark: #e0a200;
  --red: #c0392b;
  --shadow: 0 12px 34px rgba(7, 39, 64, 0.09);
  --max: 1120px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); font-family: var(--font); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: #0b5c94; }
h1, h2, h3 { color: var(--navy); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6em; }
h1 { font-size: clamp(30px, 6vw, 50px); font-weight: 800; }
h2 { font-size: clamp(25px, 3.6vw, 34px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: 0.35em; }
[id] { scroll-margin-top: 96px; }
::selection { color: var(--white); background: var(--navy); }
:focus-visible { outline: 3px solid #005f99; outline-offset: 3px; box-shadow: 0 0 0 5px #fff; }

.skip-link { position: absolute; left: 12px; top: -60px; padding: 10px 16px; background: var(--navy); color: var(--white); border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }
.shell { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.narrow { max-width: 780px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; color: #27678f; font-size: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .shell { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding-block: 10px; }
.site-name { color: var(--navy); font-weight: 800; font-size: 17px; text-decoration: none; word-break: break-word; }
.header-call { text-align: right; }
.header-call .hours { margin: 4px 0 0; font-size: 14px; color: var(--muted); line-height: 1.35; }

/* Buttons */
.btn {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 8px; row-gap: 0;
  min-height: 52px; padding: 12px 22px; border: 0; border-radius: 10px;
  background: var(--gold); color: var(--navy-deep); font: inherit; font-weight: 800; font-size: 17px; line-height: 1.3; text-align: center;
  text-decoration: none; cursor: pointer; box-shadow: 0 6px 18px rgba(224, 162, 0, 0.28);
}
.btn:hover { background: var(--gold-dark); }
.btn svg { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -3px; margin-right: 8px; }
.btn .num { flex-basis: 100%; white-space: nowrap; font-size: 20px; letter-spacing: 0.01em; }
.btn-small { min-height: 48px; padding: 10px 16px; font-size: 16px; flex-wrap: nowrap; }
.btn-small .num { flex-basis: auto; font-size: 16px; }
.btn-ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); box-shadow: none; }
.btn-ghost:hover { background: var(--soft); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--soft), var(--paper)); padding: 28px 0 40px; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero .intro { font-size: 18px; }
.hero .btn { width: 100%; }
.referral-line, .hours-line { margin: 10px 0 0; font-size: 16px; color: var(--muted); }
.hero figure { margin: 0; }
.hero figure img { border-radius: 16px; box-shadow: var(--shadow); }

/* Sections */
main section.block { padding: 40px 0; }
main section.block.bg-white { background: var(--white); }
main section.block.bg-soft { background: var(--soft); }
.block figure { margin: 0 0 20px; }
.block figure img { border-radius: 14px; }
.block .process-figure { max-width: 560px; }
.facts { background: var(--soft); border-left: 4px solid var(--navy); padding: 14px 18px; border-radius: 0 10px 10px 0; }
.bg-soft .facts { background: var(--white); }

/* Call blocks: light inside the page, dark only for the closing band */
.call-block { margin: 26px 0 0; padding: 20px; background: var(--white); border: 2px solid var(--blue); border-radius: 14px; }
.call-block p { margin: 0 0 12px; }
.call-block .btn { width: 100%; }
.call-block .hours-line, .call-block .referral-line { margin: 10px 0 0; }

/* Components borrowed from the bed bug template (compliant ones only) */
.steps { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 14px; counter-reset: step; }
.steps li { position: relative; margin: 0; padding: 18px 18px 18px 64px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 16px; top: 18px; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.steps li strong { display: block; color: var(--navy); font-size: 18px; margin-bottom: 4px; }
.check-list, .x-list { list-style: none; padding: 0; }
.check-list li, .x-list li { position: relative; padding-left: 34px; margin-bottom: 10px; }
.check-list li::before, .x-list li::before { position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.check-list li::before { content: "\2713"; background: var(--soft); color: var(--navy); border: 1px solid var(--blue); }
.x-list li::before { content: "\2715"; background: #fdecea; color: #a4231a; border: 1px solid #f3c2bd; }
.cards { list-style: none; padding: 0; display: grid; gap: 14px; }
.cards li { margin: 0; padding: 20px; background: var(--white); border-radius: 14px; border-top: 4px solid var(--gold); box-shadow: var(--shadow); }
.cards li strong { display: block; color: var(--navy); font-size: 19px; margin-bottom: 4px; }
.zip-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.zip-list li { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0; }
.zip-list strong { color: var(--navy); font-size: 18px; }
.city-map { margin: 22px 0 0; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.city-map svg { width: 100%; max-height: 420px; }
.city-map figcaption { margin-top: 8px; font-size: 15px; color: var(--muted); }
.not-covered { columns: 2; column-gap: 28px; padding-left: 1.1em; }
.not-covered li { break-inside: avoid; }

/* FAQ accordion (details/summary, no JS; all answers stay in the page for the FAQ schema) */
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 18px; }
.faq-item summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); color: var(--navy); font-size: 22px; font-weight: 700; display: grid; place-items: center; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0; padding: 0 20px 18px; }

/* Closing band (template contact-banner) */
section.block.cta-band { background: linear-gradient(135deg, var(--navy), var(--navy-deep)); padding: 56px 0; }
.cta-band h2 { color: var(--white); font-size: clamp(30px, 5vw, 46px); }
.cta-band .eyebrow { color: var(--blue); }
.cta-band .call-block { background: transparent; border: 0; padding: 0; margin: 0; color: var(--white); }
.cta-band .call-block .hours-line, .cta-band .call-block .referral-line, .cta-band .oh-note { color: #d6e6f3; }

/* Off-hours mode: hidden until hours.js marks the page closed */
.oh-only, .oh-form-only, .oh-notice-only { display: none; }
html.off-hours .tel-only { display: none !important; }
html.off-hours .oh-only { display: block; }
html.off-hours.oh-form .oh-form-only { display: block; }
html.off-hours.oh-form span.oh-form-only { display: inline; }
html.off-hours.oh-notice .oh-notice-only { display: block; }
.oh-note { margin: 8px 0 0; font-size: 16px; }
.status-card { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 14px 16px; background: var(--white); border: 2px solid #f3c2bd; border-radius: 12px; color: var(--ink); font-size: 16px; }
.status-card strong { display: block; color: var(--navy); font-size: 18px; }
.oh-dot { display: inline-block; flex: none; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--red); }
.header-call .oh-compact { margin: 0; font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.3; white-space: nowrap; }
.header-call .oh-compact .oh-dot { margin: 0 7px 0 0; vertical-align: 1px; }
.header-call .oh-compact small { font-size: 14px; font-weight: 400; color: var(--muted); }
.call-bar .bar-closed { margin: 0; text-align: center; font-weight: 700; color: var(--navy); font-size: 16px; }
.leadsmart-panel { margin-top: 12px; background: var(--white); color: var(--ink); border-radius: 12px; padding: 14px; }
.leadsmart-panel[hidden] { display: none; }
.panel-close { float: right; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--muted); }
.panel-close svg { width: 22px; height: 22px; }

/* Plain pages (about, privacy, terms, 404) */
.page-head { background: var(--soft); border-bottom: 1px solid var(--line); padding: 28px 0 24px; }
.page-head h1 { margin: 6px 0 0; }
.breadcrumb { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; color: var(--muted); }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #8aa0b0; }
.date-chip { display: inline-block; margin-top: 12px; padding: 4px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: 15px; color: var(--muted); }
.page { padding: 32px 0 48px; }
.page .narrow { line-height: 1.8; }
.page h2 { font-size: 23px; margin-top: 1.4em; }
.error-code { font-size: clamp(64px, 14vw, 120px); font-weight: 800; line-height: 1; color: var(--blue); margin: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #d6e6f3; padding: 40px 0 120px; }
.site-footer p { margin-bottom: 1em; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; gap: 8px 48px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; padding: 0; margin: 0 0 1em; list-style: none; }
.footer-links li { margin: 0; }
.footer-bottom { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 16px; }
.footer-bottom p { margin: 0; }

/* Sticky mobile call bar: shown once the hero button scrolls away (hours.js); always shown without JS */
.call-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(7, 39, 64, 0.12); transition: transform 0.2s ease; }
.call-bar .btn { width: 100%; min-height: 48px; padding: 8px 14px; font-size: 16px; }
.call-bar .btn .num { font-size: 18px; }
html.js .call-bar.is-hidden { transform: translateY(110%); }

@media (max-width: 767px) {
  .header-call { display: none; }
  .leadsmart-panel:not([hidden]) { position: fixed; inset: 0; z-index: 60; margin: 0; border-radius: 0; overflow-y: auto; padding: 56px 16px 24px; }
  .leadsmart-panel .panel-close { position: absolute; top: 8px; right: 8px; }
  .not-covered { columns: 1; }
}
@media (min-width: 768px) {
  body { font-size: 18px; }
  .call-bar { display: none; }
  .site-footer { padding-bottom: 40px; }
  .site-header { position: sticky; top: 0; z-index: 40; box-shadow: 0 4px 14px rgba(7, 39, 64, 0.06); }
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
  .hero .btn, .call-block .btn { width: auto; }
  main section.block { padding: 72px 0; }
  .zip-list { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps.steps-3, .cards { grid-template-columns: repeat(3, 1fr); }
  .steps.steps-3 li { padding: 64px 18px 18px; }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
  .split figure { margin: 0; }
  .split .steps { grid-template-columns: 1fr; }
  .shell.wide { max-width: var(--max); }
  .footer-grid { grid-template-columns: 1.6fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .call-bar, .header-call, .skip-link, .call-block, .leadsmart-panel { display: none !important; }
  .site-header { position: static; box-shadow: none; }
  body { background: #fff; font-size: 12pt; }
  main a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; word-break: break-all; }
  section.block.cta-band { background: none; }
  .cta-band h2 { color: var(--navy); }
}

/* Second image in a section (shown after the content, centred, with a caption) */
.after-figure { max-width: 720px; margin: 32px auto 0; }
.after-figure img { width: 100%; }
.after-figure figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); text-align: center; }
