/* ============================================================
   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(33,24,57,0.35);color:#141414;box-shadow:0 3px 10px rgba(33,24,57,.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(33,24,57,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 (sitewide city + directory skin) ─────────────────────
   Ownable Best IT MSP identity: navy base + a cyan corner glow + a
   subtle dotted-grid motif, a
   cyan-dot eyebrow, stat "chips" with a cyan top-accent, and a cyan
   bottom rule. Applies to every city listing page and the US/CA
   directory pages (both load this stylesheet). */
section.hero {
  background:
    radial-gradient(900px 440px at 100% -12%, rgba(124,58,237,.30), transparent 60%),
    radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(140deg, #140b2e 0%, #211839 55%, #2a1a4f 100%) !important;
  border-bottom: 3px solid #7c3aed !important;
  color: white;
}
.hero h1,.hero .hero-desc { color: white !important; }

/* Eyebrow: cyan-tinted pill with a leading cyan dot */
.hero .section-label {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  background: rgba(124,58,237,.14) !important;
  border-color: rgba(124,58,237,.42) !important;
  color: #f6f1fe !important;
}
.hero .section-label::before {
  content: "";
  flex: 0 0 auto;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,.25);
}

/* Stat strip -> bordered chips with a cyan top-accent */
.hero-stats { border-top: 1px solid rgba(255,255,255,.16) !important; gap: 14px !important; }
.hero-stats > div {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  border-top: 2px solid #7c3aed;
  border-radius: 12px;
  padding: 13px 18px;
  min-width: 144px;
}
.hero-stat-val { color: white !important; }
.hero-stat-lbl { color: rgba(255,255,255,.72) !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: #211839 !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 */
.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(33,24,57,.10) !important; border-color: rgba(33,24,57,.35) !important; }
.company-name { color: #141414 !important; }
.company-location { color: #6b7280 !important; }
.company-logo { background: #f1f5f9 !important; border-color: #e5e7eb !important; color: #211839 !important; }
.card-rank-num { color: #211839 !important; }
.card-rank-lbl { color: #9ca3af !important; }
.card-rank--ad { color: #7c3aed !important; }
.card-aside { border-left-color: #e5e7eb !important; }
.meta-item svg { color: #211839 !important; }
.meta-val { color: #374151 !important; }
.card-rating .rating-val, .rating-val { color: #141414 !important; }
.card-rating .stars { color: #7c3aed !important; }
.review-count,.review-source { color: #6b7280 !important; }
.tag { background: #f5f0fe !important; color: #211839 !important; border-color: rgba(33,24,57,.15) !important; }
.card-actions .btn-outline { border-color: #e5e7eb !important; color: #374151 !important; }
.card-actions .btn-outline:hover { border-color: #211839 !important; color: #211839 !important; background: #f5f0fe !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(33,24,57,.08) !important; border-color: rgba(33,24,57,.2) !important; color: #211839 !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 accordion (sitewide light-mode skin) ──────────────────
   Replaces the legacy dark-grey collapsed boxes with an on-brand white
   card + cyan left-accent. Accordion behaviour is unchanged (the answer
   stays collapsed until .open); only the look is re-skinned. Applies on
   every light page that uses .faq-item (home, city, reports, about, etc.). */
.faq-section { background: #f8f9fa !important; }
.faq-list { max-width: 840px; }
.faq-item {
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-left: 4px solid #7c3aed !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 14px rgba(33,24,57,.05) !important;
  overflow: hidden !important;
  transition: border-color .2s, box-shadow .2s, transform .2s !important;
}
.faq-item:hover { box-shadow: 0 10px 26px rgba(33,24,57,.10) !important; transform: translateY(-1px); }
.faq-item.open { border-color: rgba(33,24,57,.28) !important; }
.faq-q {
  color: #211839 !important;
  font-weight: 700 !important;
  font-size: 1.04rem !important;
  background: transparent !important;
  padding: 18px 22px !important;
}
.faq-q:hover { color: #6d28d9 !important; }
.faq-icon {
  background: #f5f0fe !important;
  border: 1px solid #ddd0fa !important;
  color: #211839 !important;
}
.faq-item.open .faq-icon { background: #7c3aed !important; border-color: #7c3aed !important; color: #fff !important; }
.faq-a { color: #374151 !important; background: transparent !important; padding: 0 22px 18px !important; border-top: 1px solid #eef1f4 !important; padding-top: 14px !important; }
/* Static (non-accordion) FAQ blocks have no +icon, so always show the answer
   (home, reports, evaluation-process, about). Accordion pages that include a
   .faq-icon keep their click-to-expand behaviour. */
.faq-item:not(:has(.faq-icon)) .faq-q { cursor: default !important; }
.faq-item:not(:has(.faq-icon)) .faq-a { display: block !important; }

/* CTA banner stays crimson */
.cta-banner { background: linear-gradient(135deg, #140b2e 0%, #211839 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 #211839; 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(33,24,57,.3); background: rgba(33,24,57,.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: #211839; }
.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; }


/* ── Footer stays dark so white SVG logo remains visible ── */
.site-footer { background: #211839 !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: #211839 !important; border-color: #211839 !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: #211839 !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;}

/* ── Best 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(124,58,237,.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: #211839;
  background: #7c3aed; padding: 4px 9px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(124,58,237,.35);
}
.claim-spot {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  justify-content: space-between; margin-top: 28px; padding: 20px 24px;
  background: #f6f1fe;
  border: 1px solid #c4e6f9; border-left: 4px solid #7c3aed;
  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: #211839; }
.claim-spot-text span { font-size: .88rem; color: #475569; }
.claim-spot .btn-primary { background: #211839; color: #ffffff; border-color: #211839; flex: 0 0 auto; }
.claim-spot .btn-primary:hover { background: #7c3aed; color: #211839; border-color: #7c3aed; }


/* =======================================================================
   TIM CONTENT-WALL RESTYLE  (below-listings sections)  - added 2026-07-16
   Boxed editorial cards: cloud-gray wall, white rounded cards, cyan heading
   bar. Scoped to the wall sections ONLY. The ranked provider cards
   (.listings-section), the hero, and the navy CTA (.cta-banner / .section--sm)
   are intentionally left untouched. Reversible: delete this whole block.
   ======================================================================= */
:is(section.section, section.city-info, section.market-section,
    section.faq-section, section.sibling-cities) {
  background: #eef1f5 !important;
  padding: 18px 20px !important;
}
:is(section.section, section.city-info, section.market-section,
    section.faq-section, section.sibling-cities) > .container {
  background: #ffffff !important;
  border: 1px solid #e4e7ec !important;
  border-radius: 16px !important;
  padding: 34px clamp(20px, 4vw, 44px) !important;
  box-shadow: 0 3px 16px rgba(33, 24, 57, .06) !important;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}
/* cyan left accent bar on each wall heading */
:is(section.section, section.city-info, section.market-section,
    section.faq-section, section.sibling-cities) h2 {
  border-left: 4px solid #7c3aed;
  padding-left: 16px;
  text-align: left;
}
:is(section.section, section.city-info, section.market-section,
    section.faq-section, section.sibling-cities) .section-label {
  margin-left: 0;
}
/* comfortable rhythm above the first wall card and below the last */
section.listings-section { padding-bottom: 8px; }


/* =======================================================================
   TIM MODERN CITY RE-SKIN  -  2026-07-16.  Visual-only modernization of the
   city listing pages: full-width hero text, modern AI-answer card, modern
   white provider cards with a filled rank badge. Layout is unchanged (cards
   already stack full-width) and NO content or schema is touched. Reversible:
   delete this block.
   ======================================================================= */
/* hero: full-width headline + description (remove dead right-side space) */
section.hero .container{max-width:1180px}
.hero h1{max-width:none !important}
.hero .hero-desc{max-width:none !important}

/* AI answer -> modern "In brief" card (kept, never removed) */
.ai-answer{background:#ffffff !important;border:1px solid #e8e2f3 !important;border-left:4px solid #7c3aed !important;
  border-radius:14px !important;padding:22px 26px !important;box-shadow:0 8px 28px rgba(33,24,57,.07) !important}
.ai-answer p{color:#475569 !important}
.ai-answer .ai-answer-meta{color:#64748b !important}

/* provider cards -> modern wide white cards */
.company-grid{gap:16px !important}
.company-card{background:#ffffff !important;border:1px solid #e8e2f3 !important;border-radius:16px !important;
  padding:24px 26px !important;align-items:flex-start !important;
  box-shadow:0 1px 2px rgba(33,24,57,.04),0 8px 24px rgba(33,24,57,.06) !important}
.company-card:hover{border-color:rgba(124,58,237,.42) !important;transform:translateY(-2px) !important;
  box-shadow:0 20px 48px rgba(33,24,57,.13) !important}

/* rank as a filled navy badge; #1 in cyan */
.card-rank{flex:0 0 48px !important}
.card-rank-num{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;
  background:#211839;color:#ffffff !important;font-size:1.18rem}
.card-rank-num::before{display:none !important}
.company-card:first-of-type .card-rank-num{background:linear-gradient(135deg,#6d28d9,#c026d3)}
.card-rank-lbl{margin-top:6px}
.card-rank--ad .card-rank-num{background:#94a3b8}

/* logo monogram, modern */
.company-logo{border-radius:13px !important;background:#f1f5f9 !important;border:1px solid #e8e2f3 !important;color:#211839 !important}

/* rating bigger + on-brand */
.card-rating .rating-val{font-size:1.5rem !important;color:#1b0f3b !important;line-height:1.05 !important}
.card-rating .stars{color:#f5a524 !important}

/* actions -> modern rounded buttons */
.card-actions .btn{border-radius:10px !important}
.card-actions .btn-primary{background:#7c3aed !important;color:#170d31 !important;border-color:#7c3aed !important}
.card-actions .btn-primary:hover{background:#6d28d9 !important;border-color:#6d28d9 !important}


/* =======================================================================
   TIM MODERN SITE RE-SKIN (listing system: directory, reports, service,
   advertise) - 2026-07-16. Shape-only modern polish (radius/shadow/hover/
   accent). NO background or text-color changes, so no contrast risk.
   Reversible: delete this block.
   ======================================================================= */
.dir-card,.report-card,.benefit-card,.contact-card{
  border-radius:16px !important;
  box-shadow:0 1px 2px rgba(33,24,57,.04),0 8px 24px rgba(33,24,57,.06) !important;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease !important;
}
.dir-card:hover,.report-card:hover,.benefit-card:hover{
  transform:translateY(-3px) !important;
  box-shadow:0 20px 48px rgba(33,24,57,.13) !important;
  border-color:rgba(124,58,237,.42) !important;
}
.dir-grid,.report-grid,.benefit-grid,.apply-grid,.svc-rel-grid{gap:18px !important}
.faq-item,.svc-faq-item{border-radius:12px !important}
.dir-card-arrow{color:#7c3aed !important}

/* ── progressive reveal on long city listings ────────────────────────────────
   Cards past the render cap ship in the HTML and are collapsed with CSS only,
   so the full ranked set stays crawlable and citable on one URL.
   `is-capped` is separate from the `hidden` that filters.js toggles; a card is
   on screen only when it carries neither. */
.company-card.is-capped{display:none !important}

.msp-more-wrap{display:flex;flex-direction:column;align-items:center;gap:10px;
  margin:30px 0 6px;text-align:center}
.msp-more-btn{appearance:none;cursor:pointer;font-family:inherit;font-weight:700;
  font-size:.98rem;line-height:1;padding:15px 34px;border-radius:14px;
  color:#ffffff !important;background:#211839;border:1px solid #211839;
  box-shadow:0 1px 2px rgba(33,24,57,.06),0 8px 22px rgba(33,24,57,.10);
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.msp-more-btn:hover{background:#2c2049;transform:translateY(-2px);
  box-shadow:0 18px 40px rgba(33,24,57,.16)}
.msp-more-btn:focus-visible{outline:3px solid rgba(124,58,237,.55);outline-offset:3px}
.msp-more-count{color:#4d4d4d !important;font-size:.92rem;font-weight:500}

@media (max-width:640px){
  .msp-more-btn{width:100%;padding:16px 20px}
}
