/* ─── DESIGN TOKENS ──────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --brand:        #6366F1;
  --brand-dark:   #4338CA;
  --brand-light:  #EEF2FF;
  --brand-glow:   rgba(99,102,241,0.18);
  --green:        #10B981;
  --green-light:  #ECFDF5;
  --amber:        #F59E0B;
  --ink:          #0F172A;
  --ink-2:        #334155;
  --muted:        #64748B;
  --border:       #E2E8F0;
  --bg:           #FFFFFF;
  --bg-soft:      #F8FAFC;
  --bg-mid:       #F1F5F9;
  --shadow-sm:    0 1px 4px rgba(15,23,42,0.06);
  --shadow:       0 4px 20px rgba(15,23,42,0.08);
  --shadow-lg:    0 20px 60px rgba(15,23,42,0.12);
  --shadow-brand: 0 8px 32px rgba(99,102,241,0.30);
  --r:            10px;
  --r-lg:         16px;
  --r-xl:         24px;
  --r-2xl:        32px;
  --pill:         999px;
  --max:          1100px;
}

/* ─── BASE ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
h1, h2, h3, h4, p { margin: 0; }
img { display: block; max-width: 100%; }

.shell {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ─── NAVBAR ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand);
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a:hover { color: var(--ink); }

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: none;
  border-radius: var(--r);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(99,102,241,0.38);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-soft);
  transform: translateY(-1px);
}

.btn-lg {
  height: 52px;
  padding: 0 28px;
  font-size: 0.95rem;
  border-radius: var(--r-lg);
}

/* ─── BADGE ──────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--pill);
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-brand {
  background: var(--brand-light);
  color: var(--brand-dark);
  border: 1px solid rgba(99,102,241,0.2);
}

.badge-green {
  background: var(--green-light);
  color: #065F46;
}

.badge-muted {
  background: var(--bg-mid);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* ─── HERO ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
  background: var(--bg);
}

/* dot grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #CBD5E1 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.55;
}

/* gradient blob */
.hero::after {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, rgba(139,92,246,0.08) 50%, transparent 70%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr minmax(340px, 420px);
  gap: 60px;
  align-items: center;
}

/* social proof strip */
.hero-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.proof-avatars {
  display: flex;
}

.proof-avatars span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: -8px;
  color: #fff;
}

.proof-avatars span:first-child { margin-left: 0; background: #6366F1; }
.proof-avatars span:nth-child(2) { background: #8B5CF6; }
.proof-avatars span:nth-child(3) { background: #EC4899; }
.proof-avatars span:nth-child(4) { background: #F59E0B; }

.proof-text {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.proof-text strong {
  color: var(--ink);
}

/* headline */
.hero-copy h1 {
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.gradient-text {
  background: linear-gradient(135deg, var(--brand) 0%, #8B5CF6 60%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  margin-top: 20px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 520px;
}

/* search bar */
.city-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 8px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  transition: border-color 200ms;
}

.city-form:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-glow), var(--shadow);
}

.city-form input {
  flex: 1;
  min-width: 0;
  padding: 0 12px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  color: var(--ink);
}

.city-form input::placeholder { color: var(--muted); }

/* trust pills */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

.trust-pill::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

/* hero right panel */
.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}

.hero-card-header h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.company-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--bg-soft);
  transition: background 150ms;
}

.company-row:last-child { border-bottom: none; }
.company-row:hover { background: var(--bg-soft); }

.company-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}

.company-rank.top { background: var(--brand); color: #fff; }

.company-info { flex: 1; min-width: 0; }

.company-info strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.company-info span {
  font-size: 0.78rem;
  color: var(--muted);
}

.company-score {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green);
}

.mini-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

.mini-card-icon {
  font-size: 1.4rem;
}

.mini-card strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
}

.mini-card span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ─── HOW IT WORKS ───────────────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-sm { padding: 60px 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 14px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.section-sub {
  margin-top: 12px;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
}

.hiw-bg {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hiw-head { margin-bottom: 52px; }

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.steps-row::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(16.666% + 24px);
  right: calc(16.666% + 24px);
  height: 1px;
  border-top: 2px dashed var(--border);
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  padding: 0 24px;
  text-align: center;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  border: 3px solid #fff;
  box-shadow: var(--shadow-brand);
}

.step h3 {
  margin-top: 18px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.step p {
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── CITY GRID ──────────────────────────────────────────────────────────── */
.city-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.city-card {
  position: relative;
  padding: 24px;
  border-radius: var(--r-xl);
  border: 1.5px solid var(--border);
  background: #fff;
  transition: border-color 200ms, transform 200ms, box-shadow 200ms;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}

.city-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), #8B5CF6);
  opacity: 0;
  transition: opacity 200ms;
}

.city-card:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.city-card:hover::before { opacity: 1; }

.city-card-live {
  border-color: var(--brand);
  background: linear-gradient(145deg, #fff, var(--brand-light));
}

.city-card-live::before { opacity: 1; }

.city-card-top h3 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 10px;
}

.city-card-top p {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
}

.city-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.city-card-bottom strong {
  font-size: 0.82rem;
  color: var(--ink-2);
}

.city-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.city-link::after { content: '→'; }

/* ─── BENEFITS (dark section) ────────────────────────────────────────────── */
.benefits-section {
  background: var(--ink);
  padding: 80px 0;
}

.benefits-section .section-label {
  color: #818CF8;
}

.benefits-section .section-label::before {
  background: #818CF8;
}

.benefits-section .section-title {
  color: #fff;
}

.benefits-section .section-sub {
  color: #94A3B8;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.benefit-card {
  padding: 28px;
  border-radius: var(--r-xl);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background 200ms, transform 200ms;
}

.benefit-card:hover {
  background: rgba(255,255,255,0.07);
  transform: translateY(-2px);
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.2rem;
  background: rgba(99,102,241,0.2);
}

.benefit-card h3 {
  margin-top: 16px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.benefit-card p {
  margin-top: 8px;
  font-size: 0.88rem;
  color: #94A3B8;
  line-height: 1.7;
}

/* ─── TRUST / STATS BAR ──────────────────────────────────────────────────── */
.stats-bar {
  background: var(--brand);
  padding: 48px 0;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid rgba(255,255,255,0.2);
}

.stat-item:last-child { border-right: none; }

.stat-item strong {
  display: block;
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.05em;
}

.stat-item span {
  display: block;
  margin-top: 4px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
}

/* ─── SERVICE CATEGORIES ─────────────────────────────────────────────────── */
.services-section { background: var(--bg-soft); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform 200ms, box-shadow 200ms;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.service-img {
  height: 140px;
}

.service-img-driveway {
  background: linear-gradient(135deg, #EEF2FF 0%, #C7D2FE 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.service-img-house {
  background: linear-gradient(135deg, #ECFDF5 0%, #A7F3D0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.service-img-deck {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.service-body {
  padding: 20px 22px 22px;
}

.service-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.service-body p {
  margin-top: 6px;
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── TESTIMONIALS ───────────────────────────────────────────────────────── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  transition: transform 200ms, box-shadow 200ms;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.quote-mark {
  font-size: 2.5rem;
  line-height: 1;
  color: var(--brand);
  font-family: Georgia, serif;
  margin-bottom: 12px;
}

.testimonial-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.author-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.author-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}

.author-loc {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ─── FINAL CTA ──────────────────────────────────────────────────────────── */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #4338CA 0%, var(--brand) 50%, #8B5CF6 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #fff;
  line-height: 1.05;
}

.cta-inner p {
  margin-top: 12px;
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
}

.cta-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 32px auto 0;
  max-width: 520px;
  padding: 8px;
  background: rgba(255,255,255,0.98);
  border-radius: var(--r-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.cta-form input {
  flex: 1;
  min-width: 0;
  padding: 0 12px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.92rem;
  color: var(--ink);
}

.cta-form input::placeholder { color: var(--muted); }

.cta-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  padding: 52px 0 36px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .brand {
  color: #fff;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.85rem;
  color: #64748B;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94A3B8;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: #64748B;
  margin-bottom: 10px;
  transition: color 150ms;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  margin-top: 28px;
  font-size: 0.8rem;
  color: #475569;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }
  .hero-panel { display: none; }

  .stats-inner,
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .city-grid,
  .service-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .shell { width: min(calc(100% - 32px), var(--max)); }

  .nav-links { display: none; }

  .hero { padding: 52px 0 64px; }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 10vw, 3.2rem);
  }

  .steps-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .steps-row::before { display: none; }

  .city-grid,
  .service-grid,
  .testimonial-grid,
  .benefits-grid,
  .stats-inner {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 20px 0;
  }

  .stat-item:last-child { border-bottom: none; }

  .section { padding: 56px 0; }

  .city-form,
  .cta-form {
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--r-lg);
  }

  .city-form input,
  .cta-form input {
    padding: 14px 12px;
  }

  .city-form .btn,
  .cta-form .btn {
    width: 100%;
    height: 48px;
    border-radius: var(--r);
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-brand { grid-column: auto; }

  .city-section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ─── CITY PAGE ──────────────────────────────────────────────────────────── */
.city-page-shell { padding: 48px 0 80px; }

.city-hero-band {
  padding: 40px;
  border-radius: var(--r-2xl);
  background: linear-gradient(135deg, var(--ink) 0%, #1E293B 100%);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.city-hero-band::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.city-hero-band .section-label { color: #818CF8; }
.city-hero-band .section-label::before { background: #818CF8; }

.city-hero-band h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.1;
  color: #fff;
  margin-top: 10px;
}

.city-hero-band p {
  margin-top: 12px;
  color: #94A3B8;
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 520px;
}

.city-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.city-trust-row .trust-pill { color: #94A3B8; }
.city-trust-row .trust-pill::before { background: var(--green); }

.city-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.city-stat-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 180px;
}

.city-stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  padding: 18px 20px;
}

.city-stat-card strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
}

.city-stat-card span {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: #64748B;
}

/* ranking layout */
.city-page-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}

.ranking-stack { display: grid; gap: 16px; }

.ranking-company-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  transition: border-color 200ms, transform 200ms, box-shadow 200ms;
}

.ranking-company-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.ranking-company-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.company-name-block .status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--pill);
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.company-name-block h3 {
  margin-top: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.company-name-block p {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.ranking-company-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.metric-box {
  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.metric-box span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.metric-box strong {
  display: block;
  margin-top: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.ranking-company-note {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}

/* sidebar */
.ranking-sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 88px;
}

.sidebar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.sidebar-card .section-label { margin-bottom: 12px; }

.sidebar-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.sidebar-list li {
  padding: 12px 14px;
  border-radius: var(--r);
  background: var(--bg-soft);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-2);
}

.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sidebar-tags span {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--pill);
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 600;
}

/* benefit strip on city page */
.city-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}

/* placeholder pages */
.placeholder-layout {
  display: grid;
  place-items: center;
  min-height: 70vh;
}

.placeholder-panel {
  max-width: 680px;
  text-align: center;
  padding: 52px 40px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow);
}

.placeholder-panel h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 16px 0 12px;
}

.placeholder-panel p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .city-page-layout { grid-template-columns: 1fr; }
  .ranking-sidebar { position: static; }
  .city-hero-band { grid-template-columns: 1fr; }
  .city-stat-stack { flex-direction: row; }
  .city-benefit-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .city-hero-band { padding: 28px 22px; }
  .ranking-company-head { flex-direction: column; }
  .ranking-company-head .btn { width: 100%; }
  .ranking-company-metrics { grid-template-columns: 1fr 1fr; }
  .city-benefit-grid { grid-template-columns: 1fr; }
  .city-stat-stack { flex-direction: column; }
}

/* ─── SHARED COMPONENTS (new pages) ─────────────────────────────────────── */

/* Quote page hero */
.quote-page-hero {
  padding: 40px 0 36px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

/* Quote form card wrapper */
.quote-form-card {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 40px 40px 44px;
  box-shadow: var(--shadow);
}

/* Label + input stack used on quote & contact forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

/* Consent checkbox row */
.consent-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r);
}

.consent-row p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Success state card */
.form-success {
  text-align: center;
  padding: 48px 32px;
}

.form-success h2 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.form-success p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Small badge/tag for service tags on company cards */
.admin-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--pill);
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--brand-light);
  color: var(--brand-dark);
  border: 1px solid rgba(99,102,241,0.15);
  white-space: nowrap;
}

/* ─── GLOBAL INPUT / SELECT / TEXTAREA CONSISTENCY ───────────────────────── */

.field input, .field select, .field textarea,
.form-group input, .form-group select, .form-group textarea,
.lp-field input, .lp-field select, .lp-field textarea,
.quote-form-card input, .quote-form-card select, .quote-form-card textarea,
.city-form input {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  outline: none;
  box-sizing: border-box;
  transition: border-color 180ms, box-shadow 180ms, background 180ms;
  -webkit-appearance: none;
  appearance: none;
  line-height: 1; /* keeps placeholder vertically centred */
}

/* Textarea overrides */
.field textarea,
.form-group textarea,
.lp-field textarea {
  height: auto;
  padding: 12px 14px;
  line-height: 1.5;
  resize: vertical;
}

/* Select: add chevron, extra right padding */
.field select,
.form-group select,
.lp-field select,
.quote-form-card select {
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236366F1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 14px 14px;
}

/* Hover */
.field select:hover,
.form-group select:hover,
.lp-field select:hover,
.field input:hover,
.form-group input:hover,
.lp-field input:hover {
  border-color: #C7D2FE;
}

/* Focus */
.field select:focus, .field input:focus, .field textarea:focus,
.form-group select:focus, .form-group input:focus, .form-group textarea:focus,
.lp-field select:focus, .lp-field input:focus, .lp-field textarea:focus,
.quote-form-card select:focus, .quote-form-card input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
  background: #fff;
}

/* Placeholder colour */
.field input::placeholder,
.form-group input::placeholder,
.lp-field input::placeholder,
.quote-form-card input::placeholder,
.field textarea::placeholder,
.form-group textarea::placeholder,
.lp-field textarea::placeholder {
  color: #94A3B8;
  font-weight: 400;
}

/* Mobile: bump height + stop iOS zoom */
@media (max-width: 680px) {
  .field input, .field select,
  .form-group input, .form-group select,
  .lp-field input, .lp-field select,
  .quote-form-card input, .quote-form-card select {
    height: 50px;
    font-size: 16px;
  }
}

/* ─── CUSTOM SELECT DROPDOWN ─────────────────────────────────────────────── */

.cs-wrap {
  position: relative;
  display: block;
  width: 100%;
}

/* Hide the native select — value is still used by forms */
.cs-native {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  opacity: 0 !important; pointer-events: none !important;
  overflow: hidden !important;
}

/* The visible trigger button */
.cs-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 46px;
  padding: 0 13px 0 14px;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--ink);
  user-select: none;
  transition: border-color 180ms, box-shadow 180ms, background 180ms, border-radius 100ms;
  box-sizing: border-box;
  width: 100%;
}
.cs-trigger.cs-placeholder { color: #94A3B8; }
.cs-trigger:hover { border-color: #C7D2FE; background: #fff; }
.cs-trigger.cs-open {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
  background: #fff;
  border-bottom-color: transparent;
  border-radius: var(--r) var(--r) 0 0;
}

.cs-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cs-chevron { flex-shrink: 0; transition: transform 200ms cubic-bezier(0.4,0,0.2,1); }
.cs-trigger.cs-open .cs-chevron { transform: rotate(180deg); }

/* Dropdown list */
.cs-list {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  z-index: 500;
  background: #fff;
  border: 1.5px solid var(--brand);
  border-top: none;
  border-radius: 0 0 var(--r) var(--r);
  box-shadow: 0 8px 24px rgba(15,23,42,0.12);
  max-height: 228px;
  overflow-y: auto;
  padding: 4px 0;
  margin: 0;
  list-style: none;
  overscroll-behavior: contain;
}
/* Flip above if no room below */
.cs-list.cs-list-up {
  top: auto;
  bottom: 100%;
  border-top: 1.5px solid var(--brand);
  border-bottom: none;
  border-radius: var(--r) var(--r) 0 0;
}

.cs-option {
  padding: 11px 14px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.88rem;
  color: var(--ink);
  cursor: pointer;
  transition: background 100ms, color 100ms;
  line-height: 1.3;
}
.cs-option:hover { background: var(--brand-light); color: var(--brand-dark); }
.cs-option.cs-selected {
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-light);
}

/* Mobile */
@media (max-width: 680px) {
  .cs-trigger { height: 50px; font-size: 16px; }
  .cs-option  { font-size: 15px; padding: 13px 14px; }
}
