/*
 * Compact — citywide-compact-usa — site.css
 * Base layer: reset, typography, buttons, header/nav, sticky call bar,
 * breadcrumb, forms, FAQ accordion, cookie/skip-link, footer.
 * Design intent: ultra-fast-scrolling, single-column, mobile-first. Every
 * brand color below is a CSS custom property injected by templateHead.ejs
 * from site.theme.* — never a hardcoded palette hex value here.
 */

/* Inter is loaded via <link> in templateHead.ejs (preconnect + swap) rather
 * than @import here, so the font request starts as early as possible — this
 * design's whole point is a fast first paint. */

:root {
  /* Neutral tokens (palette-independent) */
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-faint: #64748b;
  --line: #e5e9f0;
  --line-soft: #eef1f6;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-tint: #eef2ff;

  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 18px;
  --shadow-s: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-m: 0 10px 28px rgba(15, 23, 42, 0.10);

  /* Layout: single, narrow, centered column — the design's core constraint */
  --container: 700px;
  --container-wide: 1040px;
  --callbar-h: 46px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--callbar-h);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

img, svg, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; }
address { font-style: normal; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--wide { max-width: var(--container-wide); }

/* ============ Skip link ============ */
.skipLink {
  position: fixed;
  top: calc(var(--callbar-h) + 6px);
  left: 10px;
  z-index: 500;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-s);
  transform: translateY(-140%);
  transition: transform 0.15s ease;
  font-weight: 600;
  font-size: 14px;
}
.skipLink:focus { transform: translateY(0); }

/* ============ Sticky call bar (signature element) ============ */
.callbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 400;
  height: var(--callbar-h);
  display: flex;
  align-items: stretch;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.callbar__main {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: #fff;
  padding: 0 10px;
  min-width: 0;
}
.callbar__main svg { flex: 0 0 auto; width: 16px; height: 16px; }
.callbar__main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.callbar__aside {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
}
.callbar__link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}
.callbar__link:hover { background: rgba(255, 255, 255, 0.22); }

/* ============ Header / nav ============ */
.site-header {
  position: relative;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}
.site-header__logo img { height: 36px; width: auto; }

.nav__list {
  display: none;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: var(--radius-s);
}
.nav__link:hover { color: var(--primary); background: var(--bg-soft); }
.nav__link svg { width: 14px; height: 14px; }

.nav__cta {
  display: none;
}

.nav__dropdown { position: relative; }
.nav__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  max-width: 320px;
  max-height: 60vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-m);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 120;
}
.nav__dropdown:hover .nav__panel,
.nav__dropdown:focus-within .nav__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__panelGrid { display: grid; gap: 2px; }
.nav__panelItem {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius-s);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.nav__panelItem:hover { background: var(--bg-soft); color: var(--primary); }

.navToggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: #fff;
}
.navToggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.navToggle.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.navToggle.is-active span:nth-child(2) { opacity: 0; }
.navToggle.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav overlay */
.mnav {
  position: fixed;
  inset: 0;
  z-index: 350;
  background: rgba(15, 23, 42, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}
.mnav.is-active { opacity: 1; visibility: visible; }
.mnav__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(340px, 88vw);
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}
.mnav.is-active .mnav__panel { transform: translateX(0); }
.mnav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.mnav__head img { height: 30px; }
.mnav__close {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff;
}
.mnav__links { padding: 8px 8px 16px; display: flex; flex-direction: column; }
.mnav__links > a {
  padding: 12px 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.mnav__accBtn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left;
  padding: 12px 10px;
  font-weight: 600; font-size: 15px; color: var(--ink);
  background: none; border: none; border-bottom: 1px solid var(--line-soft);
}
.mnav__accBtn svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.mnav__accBtn.is-active svg { transform: rotate(180deg); }
.mnav__accContent {
  display: none;
  padding: 4px 10px 10px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.mnav__accContent.is-active { display: block; }
.mnav__accContent > a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.mnav__foot { margin-top: auto; padding: 14px 16px; border-top: 1px solid var(--line); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-m);
  font-weight: 700;
  font-size: 14.5px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-s); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-m); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--outline { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: var(--bg-soft); }
.btn--block { width: 100%; }
.btn--sm { padding: 8px 14px; font-size: 13px; }

/* ============ Chips / badges ============ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 12.5px;
  font-weight: 700;
}
.chip__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ============ Breadcrumb (compact text line) ============ */
.crumbs { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.crumbs__inner { padding: 8px 20px; }
.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.crumbs__item { display: flex; align-items: center; gap: 4px; }
.crumbs__item:not(:first-child)::before { content: "\203A"; color: var(--ink-faint); margin-right: 4px; }
.crumbs__link { color: var(--ink-faint); font-weight: 600; }
.crumbs__link:hover { color: var(--primary); }
.crumbs__current { color: var(--ink); font-weight: 700; }

/* ============ Sections (shared scaffolding) ============ */
.section { padding: 34px 0; }
.section--alt { background: var(--bg-soft); }
.section--tight { padding: 20px 0; }
.section__head { margin-bottom: 18px; }
.section__head--center { text-align: center; }
.section__eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}
.section__title {
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section__sub {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
}
.section__head--center .section__sub { margin-left: auto; margin-right: auto; }
.divider { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ============ Prose (tight line-length, scannable) ============ */
.prose { max-width: 62ch; margin: 0 auto; }
.prose p { font-size: 15px; line-height: 1.75; color: var(--ink-soft); }
.prose p + p { margin-top: 14px; }

/* ============ Forms (lead card) ============ */
.lead-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 20px;
  box-shadow: var(--shadow-m);
}
.lead-card__title { font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.lead-card__sub { font-size: 13px; color: var(--ink-faint); margin-bottom: 16px; }
.lead-card__field { margin-bottom: 12px; }
.lead-card__field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 5px;
}
.lead-card input, .lead-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
}
.lead-card textarea { min-height: 80px; resize: vertical; }
.lead-card input:focus, .lead-card textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}
.lead-card__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-card__msg { margin-top: 10px; font-size: 13px; min-height: 1.4em; }
.lead-card__msg--ok { color: #15803d; font-weight: 700; }
.lead-card__msg--err { color: #b91c1c; font-weight: 600; }

.lead-embed { border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-m); }
.lead-embed__frame iframe { width: 100%; height: 100%; border: none; }

/* ============ Map ============ */
.map-card { border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-m); }
.map-card__badge {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; font-size: 13px; font-weight: 700; color: var(--ink-soft);
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
}
.map-card__code { color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }

/* ============ FAQ (native details/summary) ============ */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: #fff;
  padding: 4px 14px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 26px 12px 0;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 10px;
  font-size: 20px;
  color: var(--primary);
  font-weight: 400;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item__a { padding: 0 0 14px; font-size: 14px; line-height: 1.65; color: var(--ink-soft); }

/* ============ Stats / metrics ============ */
.stats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.stat {
  flex: 1 1 auto;
  min-width: 96px;
  text-align: center;
  padding: 12px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.stat__value { font-size: 19px; font-weight: 800; color: var(--primary); }
.stat__label { font-size: 11.5px; font-weight: 600; color: var(--ink-faint); margin-top: 2px; }

/* ============ CTA banner ============ */
.cta-banner {
  background: var(--dark);
  color: #fff;
  padding: 30px 0;
  text-align: center;
}
.cta-banner h2 { font-size: clamp(19px, 3.4vw, 24px); font-weight: 800; margin-bottom: 8px; }
.cta-banner p { font-size: 14.5px; color: rgba(255, 255, 255, 0.78); max-width: 56ch; margin: 0 auto 18px; }
.cta-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.btn--outline-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn--outline-white:hover { background: rgba(255, 255, 255, 0.1); }

/* ============ Footer ============ */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, 0.82); }
.site-footer a { color: rgba(255, 255, 255, 0.82); }
.site-footer__cta {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  text-align: center;
}
.site-footer__ctaTitle { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.site-footer__ctaText { font-size: 13.5px; color: rgba(255, 255, 255, 0.68); margin-bottom: 14px; max-width: 52ch; margin-left: auto; margin-right: auto; }
.site-footer__grid { display: grid; gap: 24px; padding: 28px 0; }
.site-footer__colTitle { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: #fff; margin-bottom: 12px; }
.site-footer__list { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.site-footer__list a:hover { color: #fff; }
.site-footer__brandTitle { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.site-footer__brandText { font-size: 13px; color: rgba(255, 255, 255, 0.62); line-height: 1.6; }
.site-footer__contactItem { display: flex; gap: 10px; font-size: 13.5px; margin-bottom: 10px; align-items: flex-start; }
.site-footer__contactItem svg { width: 15px; height: 15px; margin-top: 3px; flex: 0 0 auto; color: var(--accent); }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}
.site-footer__bottomLinks { display: flex; gap: 14px; }

/* Social icons (used in footer only in this design) */
.social { display: flex; gap: 8px; }
.social__icon {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.social__icon:hover { background: rgba(255, 255, 255, 0.2); }
.social__svg { width: 15px; height: 15px; fill: currentColor; }
.footer-social { display: flex; gap: 12px; font-size: 12.5px; }

/* ============ Cookie consent ============ */
.cookieConsent {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 380;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-m);
}
.cookieConsent__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  max-width: var(--container);
}
.cookieConsent__text { font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.85); flex: 1 1 220px; }
.cookieConsent__text a { color: #fff; text-decoration: underline; }
.cookieConsent__btn {
  padding: 8px 16px;
  border-radius: var(--radius-s);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border: none;
  flex: 0 0 auto;
}

/* ============ Legal pages ============ */
.legal h2 { font-size: 16px; font-weight: 800; margin: 22px 0 8px; color: var(--ink); }
.legal h2:first-child { margin-top: 0; }
.legal p { font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); }
.legal a { color: var(--primary); text-decoration: underline; }

/* ============ Blog ============ */
.blog-grid { display: grid; gap: 12px; }
.blog-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 16px;
  background: #fff;
}
.blog-card__title { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.blog-card__title a:hover { color: var(--primary); }
.blog-card__excerpt { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }
.blog-card__cta { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--primary); }

.blog-post__meta { font-size: 13px; color: var(--ink-faint); font-weight: 600; margin-bottom: 14px; }
.blog-post__intro { font-size: 15.5px; line-height: 1.75; color: var(--ink); margin-bottom: 20px; font-weight: 500; }
.blog-post__section { margin-bottom: 22px; }
.blog-post__sectionTitle { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.blog-post__sectionText { font-size: 15px; line-height: 1.75; color: var(--ink-soft); }
.takeaways {
  margin: 24px 0;
  padding: 16px 18px;
  border-radius: var(--radius-m);
  background: var(--bg-tint);
  border: 1px solid var(--line);
}
.takeaways h2 { font-size: 15px; font-weight: 800; margin-bottom: 10px; color: var(--ink); }
.takeaways ul { padding-left: 18px; list-style: disc; }
.takeaways li { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 4px; }

/* ============ Empty state ============ */
.empty-state { text-align: center; color: var(--ink-faint); padding: 24px 0; font-size: 14px; }

/* ============ Custom embed slot ============ */
.custom-embed { padding: 20px 0; }
