/* ============================================
   AreaIQ by Hart — Stylesheet v0.2
   ============================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand colors (matched to Hart brand) */
  --color-primary:       #c8102e;
  --color-primary-light: #e03040;
  --color-primary-dark:  #a00d24;
  --color-text:          #1a0808;
  --color-text-muted:    #6b5555;

  /* Surfaces and borders */
  --color-bg:     #fafafa;
  --color-card:   #ffffff;
  --color-border: #e8e0e0;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;

  /* Misc */
  --radius: 0.5rem;
  --shadow: 0 1px 3px rgba(26, 8, 8, 0.08);
  --shadow-md: 0 4px 12px rgba(26, 8, 8, 0.10);
}

/* ---------- Base reset ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================
   HEADER
   Two-column: brand left, contact right
   ============================================ */
header {
  background-color: var(--color-card);
  border-bottom: 2px solid var(--color-primary);
  padding: var(--space-sm) var(--space-lg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.header-brand-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.brand-logo {
  height: 2.25rem;
  width: auto;
  flex-shrink: 0;
}

.header-title-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

header h1 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

header h1 .brand-by {
  color: var(--color-text-muted);
  font-weight: 400;
  font-size: 1rem;
}

.header-tagline {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color:#7A6F6F
}

.header-contact {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.header-phone {
  font-weight: 700;
  font-size: 0.9375rem;
  color: #ffffff;              /* White text */
  background-color: #000000;  /* Black background */
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid #000000;  /* Black border */
  border-radius: var(--radius);
  padding: 0.25rem 0.75rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.header-phone:hover {
  background-color: #ffffff;
  color: #222222;
}

/* ============================================
   HERO — headline + search + how-it-works
   Full-width with soft branded background
   ============================================ */
.hero-wrapper {
  background: linear-gradient(180deg, #fff0f2 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-xl) var(--space-lg);
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-content {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.hero-headline {
  font-size: 3.875rem;
  font-weight: 900;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.hero-headline em {
  color: var(--color-primary);
  font-style: italic;
}

.hero-subtext {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================
   SEARCH SECTION (inside hero)
   ============================================ */
#search-section {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-lg);
}

#search-section label {
  display: block;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

/* Input + button side by side */
.search-input-row {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

#address-input {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  font-size: 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  transition: border-color 0.15s ease;
}

#address-input:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: -1px;
  border-color: var(--color-primary);
}

#search-button {
  padding: var(--space-sm) var(--space-lg);
  font-size: 1rem;
  font-weight: 700;
  color: white;
  background-color: var(--color-primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 6px rgba(200, 16, 46, 0.25);
}

#search-button:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(200, 16, 46, 0.3);
}

#search-button:active {
  transform: translateY(0);
}

.search-secondary-action {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-align: center;
}

.search-secondary-action a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.search-secondary-action a:hover {
  text-decoration: underline;
}

/* ============================================
   HOW IT WORKS — 3-step strip inside hero
   ============================================ */
.how-it-works {
  display: flex;
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.hiw-step {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.hiw-num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: white;
  font-weight: 700;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hiw-text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  padding-top: 0.3rem;
}

/* ============================================
   MAIN — results area
   ============================================ */
main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
}

/* ============================================
   RESULTS SECTION
   ============================================ */
#results-section {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
  min-height: 200px;
}

.results-intro {
  max-width: 800px;
  margin-bottom: var(--space-sm);
  line-height: 1.6;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.placeholder {
  color: var(--color-text-muted);
  text-align: center;
  font-style: italic;
  font-size: 1rem;
}

/* ============================================
   STATUS MESSAGES
   ============================================ */
.message {
  padding: var(--space-sm);
  border-radius: var(--radius);
  margin-bottom: var(--space-sm);
  font-size: 0.9375rem;
}

.message-loading {
  background-color: #f5f5f5;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.message-error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ============================================
   RESULT GRID — key/value display
   ============================================ */
.result-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--space-xs) var(--space-md);
  font-size: 0.9375rem;
}

.result-grid dt {
  font-weight: 600;
  color: var(--color-text-muted);
}

.result-grid dd {
  color: var(--color-text);
  word-break: break-word;
}

/* ============================================
   FEATURE BLOCKS — each module section
   ============================================ */
.feature-block {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.feature-block h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.feature-description {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-bottom: var(--space-md);
}

.data-source {
  margin-top: var(--space-sm);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ============================================
   MAP CONTAINER
   ============================================ */
.map-container {
  width: 100%;
  height: 320px;
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

/* ============================================
   COMMUTE FORM
   ============================================ */
.commute-form {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.commute-input {
  flex: 1;
  padding: var(--space-sm);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
}

.commute-input:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: -1px;
  border-color: var(--color-primary);
}

.commute-button {
  padding: var(--space-sm) var(--space-md);
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background-color: var(--color-primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.15s ease;
  white-space: nowrap;
}

.commute-button:hover {
  background-color: var(--color-primary-light);
}

.commute-summary {
  background-color: var(--color-bg);
  border-radius: var(--radius);
  padding: var(--space-md);
  margin-top: var(--space-sm);
}

.commute-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--color-border);
}

.commute-row:last-of-type {
  border-bottom: none;
}

.commute-label {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.commute-time {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.commute-delta-row {
  justify-content: center;
  padding-top: var(--space-sm);
}

.commute-delta {
  background-color: var(--color-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.commute-distance {
  text-align: center;
  margin-top: var(--space-sm);
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* ============================================
   SCHOOL LINKS & DISCLAIMER
   ============================================ */
.school-links {
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
}

.school-links-label {
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
  font-size: 0.9375rem;
}

.school-link-button {
  display: inline-block;
  margin-right: var(--space-sm);
  margin-bottom: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background-color: var(--color-card);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.school-link-button:hover {
  background-color: var(--color-primary);
  color: white;
}

.school-disclaimer {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-style: italic;
  line-height: 1.5;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-sm);
  padding: var(--space-sm);
  background-color: var(--color-bg);
  border-radius: var(--radius);
  border-left: 3px solid var(--color-primary);
}

/* ============================================
   TAX CALCULATOR
   ============================================ */
.tax-source-inline {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.tax-calculator {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background-color: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.tax-calculator-label {
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
  font-size: 0.9375rem;
}

.tax-calculator-form {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.tax-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.tax-input-prefix {
  position: absolute;
  left: var(--space-sm);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-muted);
  pointer-events: none;
}

.tax-input {
  width: 100%;
  padding: var(--space-sm) var(--space-sm) var(--space-sm) calc(var(--space-sm) + 1.25rem);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
}

.tax-input:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: -1px;
  border-color: var(--color-primary);
}

.tax-button {
  padding: var(--space-sm) var(--space-md);
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background-color: var(--color-primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.15s ease;
  white-space: nowrap;
}

.tax-button:hover {
  background-color: var(--color-primary-light);
}

.tax-calculation {
  margin-top: var(--space-sm);
  padding: var(--space-md);
  background-color: var(--color-card);
  border-radius: var(--radius);
  border-left: 3px solid var(--color-primary);
}

.tax-calc-headline {
  font-size: 1.0625rem;
  margin-bottom: var(--space-xs);
}

.tax-calc-headline strong {
  color: var(--color-primary);
  font-size: 1.25rem;
}

.tax-calc-detail {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.tax-calc-formula {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-family: 'Courier New', monospace;
  margin-top: var(--space-xs);
  padding-top: var(--space-xs);
  border-top: 1px solid var(--color-border);
}

/* ============================================
   VENUE TABS & CARDS
   ============================================ */
.venue-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.venue-tab {
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.venue-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.venue-tab-active {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.venue-tab-active:hover {
  color: white;
}

.venue-results {
  margin-bottom: var(--space-md);
}

.venue-card {
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-sm);
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}

.venue-card:hover {
  border-color: var(--color-primary);
}

.venue-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--color-text);
}

.venue-meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.venue-meta a {
  color: var(--color-primary);
  text-decoration: none;
}

.venue-meta a:hover {
  text-decoration: underline;
}

.venue-link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.venue-link:hover {
  text-decoration: underline;
}

/* Venue loading spinner */
.venue-loading {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.venue-spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2.5px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: venue-spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes venue-spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   DEVELOPMENT TRENDS
   ============================================ */
.dev-summary {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-border);
  background-color: var(--color-bg);
}

.dev-summary-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
}

.dev-summary-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-sm);
}

.dev-stat-big {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.dev-stat-context {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.dev-interp-high_growth     { border-left-color: var(--color-primary); }
.dev-interp-high_growth .dev-stat-big { color: var(--color-primary); }
.dev-interp-moderate_growth { border-left-color: #2d8659; }
.dev-interp-moderate_growth .dev-stat-big { color: #2d8659; }
.dev-interp-stable          { border-left-color: var(--color-border); }
.dev-interp-declining       { border-left-color: #b8632a; }
.dev-interp-declining .dev-stat-big { color: #b8632a; }

.dev-chart {
  margin-bottom: var(--space-md);
}

.dev-bar-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
  font-size: 0.9375rem;
}

.dev-bar-year {
  width: 3rem;
  font-weight: 600;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.dev-bar-track {
  flex: 1;
  height: 1.5rem;
  background-color: var(--color-bg);
  border-radius: var(--radius);
  overflow: hidden;
}

.dev-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  transition: width 0.3s ease;
}

.dev-bar-value {
  width: 5rem;
  text-align: right;
  font-weight: 600;
  color: var(--color-text);
  flex-shrink: 0;
}

/* ============================================
   COMPARE PAGE — inputs, table, share
   ============================================ */
.compare-intro {
  margin-bottom: var(--space-md);
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.site-nav {
  margin-top: var(--space-sm);
  font-size: 0.875rem;
}

.nav-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.nav-link:hover {
  text-decoration: underline;
}

.compare-input-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.compare-input-label {
  width: 4rem;
  font-weight: 600;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  flex-shrink: 0;
}

.compare-input {
  flex: 1;
  padding: var(--space-sm);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
}

.compare-input:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: -1px;
  border-color: var(--color-primary);
}

.compare-remove-button {
  width: 2rem;
  height: 2rem;
  background-color: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text-muted);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.compare-remove-button:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.compare-add-button {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  padding: var(--space-xs) 0;
  margin-bottom: var(--space-md);
  text-align: left;
}

.compare-add-button:hover {
  text-decoration: underline;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-md);
}

.compare-row-label-header,
.compare-col-header {
  text-align: left;
  padding: var(--space-sm);
  font-weight: 700;
  color: var(--color-text);
  background-color: var(--color-bg);
  border-bottom: 2px solid var(--color-border);
}

.compare-col-header {
  text-align: center;
}

.compare-col-city {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.compare-col-address {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.compare-row-label {
  text-align: left;
  padding: var(--space-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  width: 35%;
}

.compare-cell {
  text-align: center;
  padding: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
  color: var(--color-text);
}

.compare-cell-best {
  background-color: rgba(200, 16, 46, 0.08);
  color: var(--color-primary);
  font-weight: 700;
}

.compare-checkmark {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  line-height: 1rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  background-color: var(--color-primary);
  border-radius: 50%;
  margin-right: 0.25rem;
  vertical-align: middle;
}

#compare-search-button {
  width: 100%;
  margin-top: var(--space-md);
  padding: var(--space-md);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 4px rgba(200, 16, 46, 0.15);
  transition: all 0.15s ease;
}

#compare-search-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(200, 16, 46, 0.25);
}

#compare-share-section {
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  background-color: transparent;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
}

#compare-share-section h2,
#compare-share-section .share-heading {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-sm) 0;
}

#compare-share-section .share-row {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

#compare-share-input {
  flex: 1;
  padding: var(--space-sm);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
}

#compare-share-button {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  background-color: transparent;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s ease;
}

#compare-share-button:hover {
  background-color: var(--color-primary);
  color: white;
}

/* ============================================
   LEAD CAPTURE FORM
   ============================================ */
.lead-capture-block {
  background-color: var(--color-bg);
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  border-radius: var(--radius);
  border-top: 3px solid var(--color-primary);
}

.lead-capture-block h2 {
  color: var(--color-primary);
  font-size: 1.375rem;
  text-align: center;
  margin-bottom: var(--space-md);
}

.lead-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.lead-cta-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  text-align: center;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.lead-cta-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.1);
}

.lead-cta-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.lead-cta-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.lead-cta-description {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-sm) 0;
  line-height: 1.5;
  flex-grow: 1;
}

.lead-cta-button {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9375rem;
  font-weight: 700;
  color: white;
  background-color: var(--color-primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.15s ease;
  width: 100%;
}

.lead-cta-button:hover {
  background-color: var(--color-primary-light);
}

.lead-cta-button-secondary {
  background-color: var(--color-card);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.lead-cta-button-secondary:hover {
  background-color: var(--color-primary);
  color: white;
}

.lead-form {
  margin-top: var(--space-md);
}

.lead-form-heading {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.lead-field {
  margin-bottom: var(--space-md);
}

.lead-field-row {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: 0;
}

.lead-field-row .lead-field {
  flex: 1;
}

.lead-label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-text);
  margin-bottom: 0.375rem;
}

.lead-required { color: var(--color-primary); font-weight: 700; }
.lead-optional  { color: var(--color-text-muted); font-weight: 400; font-size: 0.8125rem; }

.lead-input {
  width: 100%;
  padding: var(--space-sm);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  background-color: var(--color-card);
  transition: border-color 0.15s ease;
}

.lead-input:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: -1px;
  border-color: var(--color-primary);
}

.lead-textarea {
  resize: vertical;
  min-height: 4rem;
  font-family: inherit;
  line-height: 1.5;
}

.lead-button-row {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  align-items: center;
}

.lead-cancel-button {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background-color: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s ease;
}

.lead-cancel-button:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text);
}

.lead-submit-button {
  flex: 1;
  width: 100%;
  padding: var(--space-md);
  margin-top: var(--space-sm);
  font-size: 1.0625rem;
  font-weight: 700;
  color: white;
  background-color: var(--color-primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(200, 16, 46, 0.2);
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
}

.lead-submit-button:hover:not(:disabled) {
  background-color: var(--color-primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(200, 16, 46, 0.3);
}

.lead-submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.lead-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: venue-spin 0.8s linear infinite;
  display: inline-block;
}

.lead-privacy-note {
  margin-top: var(--space-sm);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.5;
}

.lead-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background-color: var(--color-card);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-primary);
  text-align: center;
}

.lead-success-icon {
  width: 3rem;
  height: 3rem;
  line-height: 3rem;
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  background-color: var(--color-primary);
  border-radius: 50%;
}

.lead-success-message {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  max-width: 32rem;
}

/* ============================================
   AGENT BIO SECTION
   Full-width, always visible below results
   ============================================ */
.agent-bio-section {
  background-color: var(--color-card);
  border-top: 1px solid var(--color-border);
  padding: var(--space-xl) var(--space-lg);
}

.agent-bio-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.agent-photo {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-primary);
  flex-shrink: 0;
}

.agent-bio-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.agent-ready {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-text);
}

.agent-description {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.agent-cta-button {
  display: inline-block;
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  font-size: 1rem;
  font-weight: 700;
  color: white;
  background-color: var(--color-primary);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.1s ease;
  align-self: flex-start;
  box-shadow: 0 2px 6px rgba(200, 16, 46, 0.25);
}

.agent-cta-button:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-1px);
}

/* ─── FOOTER ────────────────────────────────────────────────────────────────── */
footer.site-footer{
  background:linear-gradient(180deg,#FFFFFF 0%,#F7F4F4 100%);
  border-top:1px solid rgba(26,8,8,.10);
  padding:0;
  color:var(--text);
  padding-bottom:88px;
}
footer.site-footer, footer.site-footer *{font-weight:500;}
footer.site-footer .ft-name{font-weight:850;}
footer.site-footer .ft-link{font-weight:800;}
.ft-wrap{max-width:1180px;margin:0 auto;padding:34px 24px 28px;}
.ft-top{display:grid;grid-template-columns:minmax(260px,1.25fr) minmax(220px,.85fr);gap:26px;align-items:start;}
.ft-brand{display:flex;gap:14px;align-items:center;}
.ft-avatar{width:54px;height:54px;border-radius:16px;object-fit:cover;border:1px solid rgba(26,8,8,.12);box-shadow:0 8px 22px rgba(26,8,8,.10);flex-shrink:0;}
.ft-name{font-size:18px;line-height:1.2;font-weight:850;color:var(--black);letter-spacing:-.03em;}
.ft-sub{margin-top:3px;font-size:13px;line-height:1.45;color:var(--dim);font-weight:500;}
.ft-copy{margin-top:18px;max-width:620px;font-size:13px;line-height:1.75;color:#514242;}
.ft-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;}
.ft-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 14px;
  border-radius:999px;
  font-size:13px;
  font-weight:800;
  text-decoration:none;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease;
}
.ft-link.primary{background:var(--black);color:#000000;border:1px solid var(--black);box-shadow:0 8px 18px rgba(26,8,8,.16);}
.ft-link.secondary{background:#fff;color:var(--black);border:1px solid rgba(26,8,8,.14);}
.ft-link:hover{transform:translateY(-1px);box-shadow:0 10px 22px rgba(26,8,8,.12);}
.ft-divider{height:1px;background:linear-gradient(90deg,rgba(200,16,46,.32),rgba(26,8,8,.08),transparent);margin:28px 0 18px;}
.ft-bottom{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;color:var(--dim);font-size:11px;line-height:1.7;}
.ft-disclaimer{max-width:780px;}
.ft-meta{white-space:nowrap;color:rgba(42,16,16,.64);}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 600px) {
  .compare-table { font-size: 0.8125rem; }
  .compare-row-label { width: auto; font-size: 0.8125rem; }
  .compare-cell { padding: var(--space-xs); font-size: 0.8125rem; }
  .compare-col-city { font-size: 0.875rem; }
  .compare-col-address { font-size: 0.6875rem; }
  .lead-cta-grid { grid-template-columns: 1fr; }
  .lead-cta-card { padding: var(--space-md); }
}

@media (max-width: 480px) {
  /* Header */
  header { padding: var(--space-sm); }
  .header-inner { flex-wrap: wrap; gap: var(--space-sm); }
  .brand-logo { height: 1.75rem; }
  header h1 { font-size: 1.125rem; }

  /* Hero */
  .hero-wrapper { padding: var(--space-lg) var(--space-sm); }
  .hero-headline { font-size: 1.5rem; }

  /* Search */
  .search-input-row { flex-direction: column; }
  #search-button { width: 100%; }
  #search-section { padding: var(--space-md); }

  /* How it works */
  .how-it-works { flex-direction: column; gap: var(--space-sm); }

  /* Main */
  main { padding: var(--space-md) var(--space-sm); }
  #results-section { padding: var(--space-md); }

  /* Map */
  .map-container { height: 240px; }

  /* Commute */
  .commute-form { flex-direction: column; }

  /* Tax */
  .tax-calculator-form { flex-direction: column; }

  /* Schools */
  .school-link-button { display: block; margin-right: 0; text-align: center; }

  /* Dev trends */
  .dev-bar-year  { width: 2.5rem; font-size: 0.875rem; }
  .dev-bar-value { width: 4rem; font-size: 0.875rem; }

  /* Venue tabs */
  .venue-tab { flex: 1 1 auto; text-align: center; }

  /* Lead form */
  .lead-field-row { flex-direction: column; gap: 0; }
  .lead-field-row .lead-field { margin-bottom: var(--space-md); }
  .lead-button-row { flex-direction: column-reverse; }
  .lead-submit-button, .lead-cancel-button { width: 100%; }

  /* Agent bio */
  .agent-bio-inner { flex-direction: column; text-align: center; gap: var(--space-md); }
  .agent-cta-button { align-self: center; }
}
