/* ============================================================
   LIGHT-LISTING.CSS — Light-mode theme for city MSP listing pages
   Depends on: global.css, listing.css (link AFTER both)
   Extracted from the Atlanta listing page so every city page shares
   one source of truth. Re-maps the dark design tokens to light,
   adds the extra listing components, and keeps the footer dark so
   the white logo stays visible.
   ============================================================ */

/* ── Component styles ── */
.company-blurb{font-size:0.85rem;line-height:1.55;color:#374151;margin:14px 0 4px;padding:14px 0 0;border-top:1px solid #e5e7eb;}
.blurb-source{display:block;font-size:0.7rem;color:#9ca3af;margin-top:8px;letter-spacing:0.01em;}

/* Sibling-cities strip */
.sibling-cities{background:#f4f5f7;border-top:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb;padding:48px 0;}
.sibling-cities h2{font-size:1.3rem;color:#141414;margin-bottom:8px;font-family:'Manrope',sans-serif;}
.sibling-cities-sub{font-size:0.9rem;color:#6b7280;margin-bottom:24px;}
.sibling-cities-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;}
.sibling-city{background:#fff;border:1px solid #e5e7eb;border-radius:var(--radius);padding:14px 16px;text-decoration:none;color:#374151;transition:border-color 0.2s,color 0.2s,box-shadow 0.2s;display:flex;justify-content:space-between;align-items:center;font-size:0.9rem;}
.sibling-city:hover{border-color:rgba(10,37,64,0.35);color:#141414;box-shadow:0 3px 10px rgba(10,37,64,.08);}
.sibling-city-meta{font-size:0.72rem;color:#9ca3af;}
@media (max-width:768px){.sibling-cities-grid{grid-template-columns:repeat(2,1fr);}}

/* Linkified neighborhood chips */
a.chip{text-decoration:none;transition:border-color 0.2s,color 0.2s;}
a.chip:hover{border-color:rgba(10,37,64,0.4);color:#141414 !important;}

/* City-info H3 subheads */
.city-info-main h3{font-size:1.05rem;color:#141414;font-family:'Manrope',sans-serif;font-weight:700;margin:24px 0 8px;line-height:1.3;}
.city-info-main h3:first-of-type{margin-top:20px;}
.city-info-main p{margin-top:0;}

/* Hero eyebrow date */
.hero-eyebrow-year{display:inline-block;margin-left:8px;font-size:0.78rem;color:rgba(255,255,255,.6);font-weight:500;}

/* ══════════════════════════════════════
   LIGHT THEME
   ══════════════════════════════════════ */

/* CSS variable overrides */
:root {
  --dark-2: #f4f5f7;
  --dark-3: #ebedf0;
  --text-dim: #374151;
  --text-muted: #6b7280;
  --border: #e5e7eb;
}

/* Page background + default text color (dark, so bare inherited text is readable) */
body { background: #f8f9fa !important; color: #374151 !important; }

/* Hero: crimson gradient */
section.hero {
  background: linear-gradient(140deg, #07182b 0%, #0a2540 55%, #14365c 100%) !important;
  color: white;
}
.hero h1,.hero .hero-desc { color: white !important; }
.hero-stat-val { color: white !important; }
.hero-stat-lbl { color: rgba(255,255,255,.72) !important; }
.hero .section-label {
  background: rgba(255,255,255,.14) !important;
  border-color: rgba(255,255,255,.25) !important;
  color: white !important;
}

/* Nav stays dark — no override needed */

/* Filter bar */
.filter-bar { background: white !important; border-bottom: 1px solid #e5e7eb !important; box-shadow: 0 2px 6px rgba(0,0,0,.05) !important; }
.filter-label { color: #6b7280 !important; }
.filter-count { color: #6b7280 !important; }
.filter-select { background-color: #f8f9fa !important; border-color: #e5e7eb !important; color: #141414 !important; }
.filter-reset { color: #0a2540 !important; }

/* Listings section */
.listings-section { background: #f8f9fa !important; }
.listings-title { color: #141414 !important; }
.listings-subtitle { color: #6b7280 !important; }

/* Company ranked rows (light) — navy/cyan accents (no CST-pink crimson-light) */
.company-card { background: white !important; border-color: #e5e7eb !important; box-shadow: 0 2px 8px rgba(0,0,0,.06) !important; }
.company-card:hover { box-shadow: 0 8px 24px rgba(10,37,64,.10) !important; border-color: rgba(10,37,64,.35) !important; }
.company-name { color: #141414 !important; }
.company-location { color: #6b7280 !important; }
.company-logo { background: #f1f5f9 !important; border-color: #e5e7eb !important; color: #0a2540 !important; }
.card-rank-num { color: #0a2540 !important; }
.card-rank-lbl { color: #9ca3af !important; }
.card-rank--ad { color: #0ea5e9 !important; }
.card-aside { border-left-color: #e5e7eb !important; }
.meta-item svg { color: #0a2540 !important; }
.meta-val { color: #374151 !important; }
.card-rating .rating-val, .rating-val { color: #141414 !important; }
.card-rating .stars { color: #0ea5e9 !important; }
.review-count,.review-source { color: #6b7280 !important; }
.tag { background: #e6f4fb !important; color: #0a2540 !important; border-color: rgba(10,37,64,.15) !important; }
.card-actions .btn-outline { border-color: #e5e7eb !important; color: #374151 !important; }
.card-actions .btn-outline:hover { border-color: #0a2540 !important; color: #0a2540 !important; background: #e6f4fb !important; }

/* Content sections */
section.section { background: white !important; }

/* Generic .card inside sections */
.card { background: white !important; border: 1px solid #e5e7eb !important; box-shadow: 0 2px 6px rgba(0,0,0,.05) !important; color: #374151 !important; }
.card h4, .card h3 { color: #141414 !important; }
.card p, .card li { color: #374151 !important; }

/* Section labels, titles, subs */
.section-label { background: rgba(10,37,64,.08) !important; border-color: rgba(10,37,64,.2) !important; color: #0a2540 !important; }
.section-title { color: #141414 !important; }
.section-sub { color: #6b7280 !important; }

/* Catch all inline color:var(--white) on content elements */
[style*="color:var(--white)"] { color: #141414 !important; }

/* City info section */
.city-info { background: white !important; }
.city-info-main h2 { color: #141414 !important; }
.city-info-main p { color: #374151 !important; }
.city-stat { border-color: #e5e7eb !important; background: #f8f9fa !important; }
.city-stat-val { color: #141414 !important; }
.city-stat-lbl { color: #6b7280 !important; }

/* Chips */
.chip { background: #f8f9fa !important; border: 1px solid #e5e7eb !important; color: #374151 !important; }
.chips-title { color: #6b7280 !important; font-weight: 600; }

/* Market section */
.market-section { background: #f8f9fa !important; }
.market-card { background: white !important; border-color: #e5e7eb !important; box-shadow: 0 2px 8px rgba(0,0,0,.06) !important; }
.market-card h3 { color: #141414 !important; }
.market-list-item { border-bottom-color: #e5e7eb !important; }
.market-list-item .key { color: #374151 !important; }
.market-list-item .val { color: #141414 !important; font-weight: 600; }

/* FAQ section */
.faq-section { background: #f8f9fa !important; }
.faq-item { border-bottom-color: #e5e7eb !important; }
.faq-q { color: #141414 !important; background: transparent !important; }
.faq-q:hover { color: #0a2540 !important; }
.faq-icon { color: #0a2540 !important; }
.faq-a { color: #374151 !important; background: white !important; padding: 16px !important; border-top: 1px solid #e5e7eb !important; }

/* CTA banner stays crimson */
.cta-banner { background: linear-gradient(135deg, #07182b 0%, #0a2540 100%) !important; }
.cta-banner h2 { color: white !important; }
.cta-banner p { color: rgba(255,255,255,.85) !important; }

/* No-results state */
.no-results h3 { color: #141414 !important; }
.no-results p, .no-results svg { color: #6b7280 !important; stroke: #6b7280; }

/* Submarket card */
.submarket-card { background: #f8f9fa; border: 1px solid #e5e7eb; border-left: 3px solid #0a2540; border-radius: var(--radius); padding: 14px 16px; }
.submarket-card-name { font-family: 'Manrope', sans-serif; font-weight: 700; color: #141414; font-size: 0.88rem; margin-bottom: 4px; }
.submarket-card p { font-size: 0.8rem; color: #6b7280; margin: 0; line-height: 1.5; }

/* Pricing tier cards */
.pricing-tier { background: white; border: 1px solid #e5e7eb; border-radius: var(--radius); padding: 18px 14px; text-align: center; }
.pricing-tier.highlight { border-color: rgba(10,37,64,.3); background: rgba(10,37,64,.03); }
.pricing-tier-label { font-family: 'Manrope', sans-serif; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #6b7280; margin-bottom: 8px; }
.pricing-tier.highlight .pricing-tier-label { color: #0a2540; }
.pricing-tier-val { font-family: 'Manrope', sans-serif; font-size: 1.15rem; font-weight: 800; color: #141414; margin-bottom: 3px; }
.pricing-tier-sub { font-size: 0.72rem; color: #9ca3af; }

@media (max-width:640px) {
  .pricing-tiers-grid { grid-template-columns: repeat(2,1fr) !important; }
  .submarket-grid { grid-template-columns: 1fr !important; }
}

/* ── Section background rhythm ─────────────────────────────────
   Sections that were dark (var(--dark)) get light gray to alternate
   with white sections, so the page isn't one long white block.
── */
section.section[style*="background:var(--dark)"] {
  background: #f8f9fa !important;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}
section.section[style*="background:var(--dark-2)"] {
  background: #f4f5f7 !important;
}
/* Inner containers that referenced dark-2 / dark-3 */
[style*="background:var(--dark-2)"] { background: white !important; }
[style*="background:var(--dark-3)"] { background: #f8f9fa !important; }

/* Ensure crimson-light renders on light backgrounds */
:root { --crimson-light: #c23b6e; }

/* ── Footer stays dark so white SVG logo remains visible ── */
.site-footer { background: #141414 !important; }
footer.site-footer p,
footer.site-footer a { color: rgba(255,255,255,.65) !important; }
footer.site-footer h4, footer.site-footer h3 { color: #fff !important; }
footer.site-footer .footer-bottom { border-top-color: rgba(255,255,255,.12) !important; }
.footer-logo { opacity: 1 !important; }

/* ══════════════════════════════════════════════════════════════════
   READABILITY FIXES — prevent light-on-light text
   The dark theme colors <strong> with --text (#e5e5e5) and the filter
   count + modal with --white (#fff); on the light page those render
   near-white/invisible. Remap the base text var and patch the rest.
   ══════════════════════════════════════════════════════════════════ */
:root { --text: #1f2937; }                              /* was near-white */
.filter-count strong { color: #141414 !important; }     /* the "N providers found" number */
.hero strong, .cta-banner strong { color: #fff !important; }  /* keep bold white on crimson */

/* Contact modal in light mode (listing pages) */
.modal-box { background: #fff !important; border-color: #e5e7eb !important; }
.modal-box h3 { color: #141414 !important; }
.modal-box .modal-sub { color: #6b7280 !important; }
.modal-close { background: #f4f5f7 !important; border-color: #e5e7eb !important; color: #6b7280 !important; }
.modal-close:hover { background: #0a2540 !important; border-color: #0a2540 !important; color: #fff !important; }
.form-group label { color: #6b7280 !important; }
.form-group input,
.form-group textarea,
.form-group select { background: #f8f9fa !important; border-color: #e5e7eb !important; color: #141414 !important; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { background: #fff !important; border-color: #0a2540 !important; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #9ca3af !important; }
.form-success h4 { color: #141414 !important; }
.form-success p { color: #6b7280 !important; }

/* Bare headings inherit white from the dark theme; default them dark and keep
   white only on the crimson hero / CTA. */
h2, h3, h4, h5, h6 { color: #141414; }
.hero h1, .hero h2, .hero h3,
.cta-banner h1, .cta-banner h2, .cta-banner h3 { color: #fff !important; }
.modal-heading { color: #141414 !important; }   /* hand-built modal title variant */
/* Outline buttons: dark on light, white on crimson surfaces */
.btn-outline { color: #374151 !important; border-color: #e5e7eb !important; }
.hero .btn-outline, .cta-banner .btn-outline { color: #fff !important; border-color: rgba(255,255,255,.5) !important; }
.hero .btn-outline:hover, .cta-banner .btn-outline:hover { background: rgba(255,255,255,.12) !important; }

/* coming-soon sibling metros: not yet built, shown as muted non-links
   (mirrors the index "Launching soon" cards: readable name, muted status). */
.sibling-city--soon{background:#fbfbfc;border-style:dashed;color:#6b7280;cursor:default;box-shadow:none;}
.sibling-city--soon:hover{border-color:#e5e7eb;color:#6b7280;box-shadow:none;}
.sibling-city--soon .sibling-city-meta{color:#9ca3af;font-weight:600;}

/* ── Top IT MSP: paid top-spot (featured) placements + claim CTA ───────────── */
.company-card { position: relative; }
.company-card--featured {
  border-color: var(--cyan);
  box-shadow: 0 6px 20px rgba(14,165,233,.18);
}
.card-sponsored {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: .64rem;
  letter-spacing: .05em; text-transform: uppercase; color: #0a2540;
  background: #0ea5e9; padding: 4px 9px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(14,165,233,.35);
}
.claim-spot {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  justify-content: space-between; margin-top: 28px; padding: 20px 24px;
  background: #eaf6fd;
  border: 1px solid #c4e6f9; border-left: 4px solid #0ea5e9;
  border-radius: 14px; color: #1f2937;
}
.claim-spot-text { display: flex; flex-direction: column; gap: 3px; }
.claim-spot-text strong { font-family: 'Manrope', sans-serif; font-size: 1.02rem; color: #0a2540; }
.claim-spot-text span { font-size: .88rem; color: #475569; }
.claim-spot .btn-primary { background: #0a2540; color: #ffffff; border-color: #0a2540; flex: 0 0 auto; }
.claim-spot .btn-primary:hover { background: #0ea5e9; color: #0a2540; border-color: #0ea5e9; }
