/* Phase 1 additions — keeps existing palette (--bg, --brand, --brand-2, --text). */

/* --- Trust row under hero CTAs --- */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(68, 194, 185, 0.06);
  border: 1px solid rgba(68, 194, 185, 0.2);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.trust-row .trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust-row .trust-item strong { color: var(--text); font-weight: 600; }
.trust-row .trust-rating {
  color: var(--brand-light);
  font-weight: 600;
}

/* --- Sticky mobile bottom bar --- */
.sticky-mobile-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: rgba(10,13,17,0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(68, 194, 185, 0.3);
  padding: 8px;
  gap: 8px;
}
.sticky-mobile-bar a {
  flex: 1 1 0;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
}
.sticky-mobile-bar .smb-call {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--bg-tertiary);
}
.sticky-mobile-bar .smb-quote {
  /* Same darker endpoint as .btn.accent so white text passes WCAG AA. */
  background: linear-gradient(135deg, var(--brand), #147f78);
  color: #fff;
}
@media (max-width: 768px) {
  .sticky-mobile-bar { display: flex; }
  body { padding-bottom: 72px; }
}

/* --- Multi-step form --- */
.quote-page {
  padding-top: 32px;
}
.step-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 0.9rem;
}
.step-progress .step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.step-progress .step .num {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--bg-tertiary);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
}
.step-progress .step.active .num,
.step-progress .step.done .num {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
}
.step-progress .step.active { color: var(--text); font-weight: 600; }
.step-progress .step.done { color: var(--brand-light); }
.step-progress .bar {
  flex: 1 1 auto;
  height: 2px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  overflow: hidden;
}
.step-progress .bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: width 0.3s ease;
}

.quote-form-step { display: none; }
.quote-form-step.active { display: block; }
.quote-form-step h2 { margin-top: 0; }

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) { .field-grid { grid-template-columns: 1fr; } }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field label { font-weight: 500; font-size: 0.9rem; }
.field .help { color: var(--muted); font-size: 0.8rem; }
.field-radio,
.field-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.field-radio label,
.field-checks label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--bg-tertiary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--bg-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
.field-radio input[type="radio"],
.field-radio input[type="checkbox"],
.field-checks input[type="radio"],
.field-checks input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: auto;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  accent-color: var(--brand-2);
}
/* Override the global input:invalid rule from style.css for radio/checkbox — never show "error" border. */
.field-radio input:invalid,
.field-checks input:invalid,
.field-consent input:invalid {
  border-color: transparent !important;
}
.field-radio label:hover,
.field-checks label:hover { border-color: var(--brand-2); }
.field-radio label:has(input:checked),
.field-checks label:has(input:checked) {
  border-color: var(--brand-2);
  background: rgba(68, 194, 185, 0.1);
  color: var(--brand-light);
}

.field-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--bg-tertiary);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.field-consent input { width: auto; margin-top: 4px; }

.step-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}
.step-nav .btn { min-width: 140px; }
.step-nav .btn-back {
  background: transparent;
  border: 1px solid var(--bg-tertiary);
  color: var(--text);
}

/* --- Page hero (smaller than homepage) --- */
.page-hero {
  padding: 80px 0 40px;
  background: linear-gradient(135deg, #071015 0%, #0a1318 100%);
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 16px;
  font-weight: 800;
  line-height: 1.15;
}
.page-hero .lede {
  max-width: 720px;
  margin: 0 auto 24px;
  color: var(--text-secondary);
  font-size: 1.1rem;
}
.page-hero .actions { justify-content: center; }

/* --- Breadcrumbs --- */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 16px 0 0;
}
.breadcrumbs a { color: var(--text-secondary); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-2); }
.breadcrumbs .sep { margin: 0 6px; opacity: 0.5; }

/* --- City page sections --- */
.local-callouts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.local-callouts .callout {
  padding: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--bg-tertiary);
  border-radius: var(--radius);
}
.local-callouts h3 { margin: 0 0 8px; color: var(--brand-light); font-size: 1rem; }
.local-callouts p { margin: 0; color: var(--text-secondary); font-size: 0.9rem; }

.neighborhood-list {
  columns: 2;
  column-gap: 32px;
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.neighborhood-list li {
  padding: 6px 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  break-inside: avoid;
}
@media (max-width: 600px) { .neighborhood-list { columns: 1; } }

/* --- FAQ --- */
.faq-list { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.faq-list details {
  background: var(--bg-secondary);
  border: 1px solid var(--bg-tertiary);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: var(--transition);
}
.faq-list details[open] { border-color: var(--brand-2); }
.faq-list summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-list summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--brand-2);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p {
  color: var(--text-secondary);
  margin-top: 8px;
  margin-bottom: 0;
}

/* --- Lite header (used on interior pages) --- */
.site-lite { padding: 16px 0; border-bottom: 1px solid var(--bg-tertiary); }
.site-lite .wrap { display: flex; align-items: center; justify-content: space-between; }
.site-lite .brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text); font-weight: 800;
}
.site-lite .brand img { width: 32px; height: 32px; }
.site-lite .lite-nav { display: flex; gap: 16px; align-items: center; }
.site-lite .lite-nav a {
  text-decoration: none; color: var(--text-secondary); font-weight: 500; font-size: 0.95rem;
}
.site-lite .lite-nav a:hover { color: var(--brand-2); }
@media (max-width: 700px) {
  .site-lite .lite-nav a:not(.btn) { display: none; }
}

/* --- City links footer --- */
.cities-served {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px 16px;
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.cities-served a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; }
.cities-served a:hover { color: var(--brand-2); }

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  #intro { display: none !important; }
  .pulse { animation: none !important; }
  .fade-in { opacity: 1 !important; transform: none !important; }
}

/* --- Form errors --- */
.field-error {
  color: var(--error);
  font-size: 0.8rem;
  margin-top: 4px;
  min-height: 1em;
}
.field input:invalid:not(:placeholder-shown):not(:focus),
.field select:invalid:not(:focus),
.field textarea:invalid:not(:placeholder-shown):not(:focus) {
  border-color: var(--error);
}

/* Hide honeypot */
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
