/* =========================================================
   BestLocalX.com ... Main Stylesheet
   Design: clean research/intelligence aesthetic
   Matches homepage mockup: navy hero, city cards, industry grid
   ========================================================= */

/* ── Reset & Base ─────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-height);
}

a { color: var(--color-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ── Typography ───────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Layout ───────────────────────────────────────────────────────────────── */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header / Nav ─────────────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}

.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Logo */
.site-logo a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-navy);
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.site-logo a::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background: var(--color-blue);
  border-radius: 50%;
  flex-shrink: 0;
}

.site-logo span:first-child { color: var(--color-navy); font-weight: 700; }
.site-logo span:last-child  { color: var(--color-blue); }

/* Primary nav */
.site-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

/* Nav items */
.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
  cursor: pointer;
}

.nav-link:hover { color: var(--color-blue); text-decoration: none; }
.nav-link.is-active { color: var(--color-blue); }

/* Dropdown arrow on items with children */
.nav-item--has-dropdown > .nav-link::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 5px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform 0.2s;
}

.nav-item--has-dropdown.is-dropdown-open > .nav-link::after {
  transform: rotate(180deg);
}

/* Dropdown panel */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: 0.5rem 0;
  z-index: 500;
}

/* Bridge gap between trigger and dropdown to prevent close on mouse travel */
.nav-item--has-dropdown::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 8px;
  background: transparent;
  pointer-events: auto;
}

.nav-item--has-dropdown.is-dropdown-open .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.1s, color 0.1s;
}

.nav-dropdown a:hover {
  background: var(--color-bg-soft);
  color: var(--color-blue);
  text-decoration: none;
}

.nav-dropdown .dropdown-divider {
  height: 1px;
  background: var(--color-border-light);
  margin: 0.35rem 0;
}

/* Nav right side */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 1rem;
}

/* CTA button in nav */
.nav-cta {
  display: inline-block;
  padding: 0.45rem 1rem;
  background: var(--color-blue);
  color: #fff !important;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s;
}

.nav-cta:hover { background: var(--color-blue-hover); }

/* Search icon button */
.nav-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--color-text-muted);
  line-height: 1;
  transition: color 0.15s;
}
.nav-search-btn:hover { color: var(--color-blue); }
.nav-search-btn svg { display: block; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-text);
}

.nav-hamburger span:not(.nav-hamburger__label) {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-hamburger__label {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: currentColor;
  margin-top: 2px;
}

/* ── Hero Section ─────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-navy-deep) 0%, var(--color-navy) 50%, #1a3a6e 100%);
  overflow: hidden;
}

/* City skyline silhouette via SVG background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 400'%3E%3Cpath fill='rgba(255,255,255,0.03)' d='M0,400 L0,280 L40,280 L40,240 L60,240 L60,260 L80,260 L80,200 L100,200 L100,220 L120,220 L120,180 L140,180 L140,200 L160,200 L160,160 L180,160 L180,180 L200,180 L200,240 L240,240 L240,200 L260,200 L260,220 L280,220 L280,160 L300,160 L300,120 L320,120 L320,140 L340,140 L340,100 L360,100 L360,80 L380,80 L380,100 L400,100 L400,140 L420,140 L420,120 L440,120 L440,160 L460,160 L460,140 L480,140 L480,180 L500,180 L500,200 L540,200 L540,160 L560,160 L560,120 L580,120 L580,100 L600,100 L600,80 L620,80 L620,100 L640,100 L640,120 L660,120 L660,140 L680,140 L680,160 L700,160 L700,200 L720,200 L720,180 L740,180 L740,160 L760,160 L760,140 L800,140 L800,180 L820,180 L820,200 L840,200 L840,160 L880,160 L880,120 L900,120 L900,100 L920,100 L920,140 L940,140 L940,160 L960,160 L960,180 L1000,180 L1000,200 L1020,200 L1020,180 L1040,180 L1040,160 L1060,160 L1060,180 L1080,180 L1080,200 L1100,200 L1100,220 L1120,220 L1120,200 L1140,200 L1140,220 L1160,220 L1160,240 L1200,240 L1200,260 L1220,260 L1220,280 L1240,280 L1240,300 L1280,300 L1280,280 L1320,280 L1320,300 L1360,300 L1360,320 L1400,320 L1400,280 L1440,280 L1440,400 Z'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: bottom;
  opacity: 0.6;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11,31,62,0.2) 0%, rgba(11,31,62,0.1) 60%, rgba(11,31,62,0.4) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.hero__content {
  max-width: 680px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-blue-light);
  margin-bottom: 1rem;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1rem;
}

.hero__title em {
  font-style: normal;
  color: var(--color-blue-light);
  font-weight: 400;
}

.hero__subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Hero search form */
.hero-search {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  flex-wrap: wrap;
}

.hero-search__field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 160px;
  padding: 0.5rem 0.75rem;
  border-right: 1px solid var(--color-border);
}

.hero-search__field:last-of-type { border-right: none; }

.hero-search__icon {
  color: var(--color-blue);
  flex-shrink: 0;
}

.hero-search__input {
  border: none;
  outline: none;
  font-size: 0.9rem;
  color: var(--color-text);
  width: 100%;
  background: transparent;
}

.hero-search__input::placeholder { color: var(--color-text-muted); }

.hero-search__select {
  border: none;
  outline: none;
  font-size: 0.9rem;
  color: var(--color-text);
  background: transparent;
  cursor: pointer;
  width: 100%;
}

.hero-search__btn {
  flex-shrink: 0;
  padding: 0.65rem 1.4rem;
  background: var(--color-blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.hero-search__btn:hover { background: var(--color-blue-hover); }

/* ── Hero Stats bar ───────────────────────────────────────────────────────── */

.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 1.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hero-stat {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}

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

.hero-stat__icon {
  color: var(--color-blue-light);
  flex-shrink: 0;
}

.hero-stat__text {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.3;
}

.hero-stat__text strong { display: block; color: #fff; font-size: 0.85rem; }

/* ── Section shared styles ────────────────────────────────────────────────── */

.section {
  padding: 3.5rem 0;
}

.section--soft { background: var(--color-bg-soft); }
.section--navy { background: var(--color-bg-navy); }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-header h2 { font-size: 1.4rem; font-weight: 300; color: var(--color-text); }
.section-header--light h2 { color: #fff; }

.view-all-link {
  font-size: 0.85rem;
  color: var(--color-blue);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 500;
}

.view-all-link:hover { text-decoration: underline; }
.view-all-link--light { color: rgba(255,255,255,0.7); }

/* ── Popular Cities ───────────────────────────────────────────────────────── */

.cities-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.city-card {
  display: block;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  text-decoration: none;
  background: linear-gradient(135deg, #1a3a6e, #0b1f3e);
  transition: transform 0.2s, box-shadow 0.2s;
}

.city-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.15);
  text-decoration: none;
}

.city-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.city-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,31,62,0.9) 0%, rgba(11,31,62,0.3) 100%);
}

.city-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
}

.city-card__name {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  display: block;
}

.city-card__state {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  display: block;
  margin-top: 0.15rem;
}

.city-card__tag {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.55);
}

/* City card placeholder colors by index */
.city-card--0 { background: linear-gradient(135deg, #1a4a8a, #0d2d5e); }
.city-card--1 { background: linear-gradient(135deg, #1e3a5f, #0b2040); }
.city-card--2 { background: linear-gradient(135deg, #13376b, #0a1e3d); }
.city-card--3 { background: linear-gradient(135deg, #1b3060, #0c1e45); }
.city-card--4 { background: linear-gradient(135deg, #0e2a5a, #071829); }
.city-card--5 { background: linear-gradient(135deg, #162b50, #091825); }

/* ── Popular Industries ───────────────────────────────────────────────────── */

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
}

.industry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.4rem 0.75rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.industry-card:hover {
  border-color: var(--color-blue);
  box-shadow: 0 4px 16px rgba(29,89,248,0.1);
  transform: translateY(-2px);
  text-decoration: none;
}

.industry-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue);
}

.industry-card__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
}

/* ── Intelligence Reports Banner ──────────────────────────────────────────── */

.reports-banner {
  background: var(--color-navy);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.reports-banner__left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

.reports-banner__icon {
  width: 52px;
  height: 52px;
  background: rgba(74,124,247,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue-light);
  flex-shrink: 0;
}

.reports-banner__text h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.reports-banner__text p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin: 0;
}

.reports-banner__stats {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.reports-banner__stat {
  text-align: center;
}

.reports-banner__stat-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.reports-banner__stat-label {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.15rem;
}

.reports-banner__cta {
  flex-shrink: 0;
}

/* ── Button styles ────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-blue);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-blue-hover);
  color: #fff;
  text-decoration: none;
}

.btn--outline {
  background: transparent;
  color: var(--color-blue);
  border: 1.5px solid var(--color-blue);
}
.btn--outline:hover {
  background: var(--color-blue);
  color: #fff;
  text-decoration: none;
}

.btn--white {
  background: #fff;
  color: var(--color-navy);
}
.btn--white:hover {
  background: var(--color-bg-soft);
  color: var(--color-navy);
  text-decoration: none;
}

.btn--sm { padding: 0.45rem 1rem; font-size: 0.82rem; }
.btn--lg { padding: 0.85rem 1.8rem; font-size: 1rem; }

/* ── Cards ────────────────────────────────────────────────────────────────── */

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.card__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 0.5rem;
}

.card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.card__title a {
  color: inherit;
  text-decoration: none;
}
.card__title a:hover { color: var(--color-blue); text-decoration: none; }

.card__meta {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.card__excerpt {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Report card */
.report-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.report-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); border-color: var(--color-blue-light); }

.report-card__type {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-blue);
}

.report-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
  text-decoration: none;
}

.report-card__title:hover { color: var(--color-blue); }

.report-card__date {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* ── Featured Items Grid ──────────────────────────────────────────────────── */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

/* ── Breadcrumbs ──────────────────────────────────────────────────────────── */

.breadcrumbs {
  padding: 0.75rem 0;
  margin-bottom: 1rem;
}

.breadcrumbs__list {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  flex-wrap: wrap;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.breadcrumbs__item a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.breadcrumbs__item a:hover { color: var(--color-blue); }

.breadcrumbs__item::after {
  content: '/';
  color: var(--color-text-light);
}

.breadcrumbs__item:last-child::after { display: none; }
.breadcrumbs__item:last-child { color: var(--color-text); }

/* ── Page Hero (interior pages) ───────────────────────────────────────────── */

.page-hero {
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
  padding: 2.5rem 0 2rem;
}

.page-hero--navy {
  background: var(--color-navy);
  border-bottom: none;
}

.page-hero--navy .breadcrumbs__item,
.page-hero--navy .breadcrumbs__item a,
.page-hero--navy .breadcrumbs__item::after { color: rgba(255,255,255,0.5); }

.page-hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 0.5rem;
}

.page-hero--navy .page-hero__eyebrow { color: var(--color-blue-light); }

.page-hero__title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.page-hero--navy .page-hero__title { color: #fff; }

.page-hero__desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 640px;
  line-height: 1.6;
}

.page-hero--navy .page-hero__desc { color: rgba(255,255,255,0.7); }

.page-hero__meta {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.page-hero__meta-item {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.page-hero--navy .page-hero__meta-item { color: rgba(255,255,255,0.55); }

/* ── Content body ─────────────────────────────────────────────────────────── */

.content-body {
  padding: 2.5rem 0 3rem;
}

.prose {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
  max-width: 720px;
}

.prose h2 { margin: 2rem 0 0.75rem; font-size: 1.4rem; }
.prose h3 { margin: 1.5rem 0 0.5rem; font-size: 1.15rem; }
.prose p  { margin-bottom: 1.1rem; }
.prose ul, .prose ol { margin: 0.75rem 0 1rem 1.5rem; }
.prose li { margin-bottom: 0.35rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose a  { color: var(--color-blue); }
.prose strong { font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--color-blue);
  padding: 0.75rem 1.25rem;
  margin: 1.25rem 0;
  background: var(--color-bg-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose blockquote p { color: var(--color-text-muted); margin: 0; font-style: italic; }

/* ── Comparison table ─────────────────────────────────────────────────────── */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.comparison-table th {
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 0.65rem 1rem;
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
}

.comparison-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: top;
}

.comparison-table tr:hover td { background: var(--color-bg-soft); }

.comparison-table td:first-child { font-weight: 600; }

/* ── Provider profiles ────────────────────────────────────────────────────── */

.provider-list { display: flex; flex-direction: column; gap: 1.25rem; }

.provider-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
}

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

.provider-card__name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

.provider-card__name a { color: inherit; text-decoration: none; }
.provider-card__name a:hover { color: var(--color-blue); }

.provider-card__meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.provider-card__best-for {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-blue);
  background: rgba(29,89,248,0.08);
  border-radius: 20px;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.5rem;
}

.provider-card__notes {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ── Glossary ─────────────────────────────────────────────────────────────── */

.glossary-alpha {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 2rem;
}

.glossary-alpha__letter {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: all 0.15s;
}

.glossary-alpha__letter:hover,
.glossary-alpha__letter.is-active {
  background: var(--color-blue);
  color: #fff;
  border-color: var(--color-blue);
  text-decoration: none;
}

.glossary-group { margin-bottom: 2.5rem; }

.glossary-group__heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-navy);
  border-bottom: 2px solid var(--color-blue);
  padding-bottom: 0.35rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.glossary-list {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.glossary-list__item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--color-border-light);
}

.glossary-list__term {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  text-decoration: none;
  min-width: 180px;
  flex-shrink: 0;
}

.glossary-list__term:hover { color: var(--color-blue); }

.glossary-list__def {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* ── FAQ ──────────────────────────────────────────────────────────────────── */

.faq-list { display: flex; flex-direction: column; gap: 0; }

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  list-style: none;
  user-select: none;
}

.faq-item__question::-webkit-details-marker { display: none; }

.faq-item__question::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--color-blue);
  flex-shrink: 0;
  transition: transform 0.2s;
}

details[open] .faq-item__question::after {
  transform: rotate(45deg);
}

.faq-item__answer {
  padding: 0 0 1.1rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ── Directory ────────────────────────────────────────────────────────────── */

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.listing-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s;
  display: block;
}

.listing-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  border-color: var(--color-blue-light);
  text-decoration: none;
}

.listing-card__name {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.3rem;
}

.listing-card__meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.listing-card__notes {
  font-size: 0.83rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* ── Tags / Badges ────────────────────────────────────────────────────────── */

.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tag--blue  { background: rgba(29,89,248,0.1); color: var(--color-blue); }
.tag--navy  { background: rgba(11,31,62,0.08); color: var(--color-navy); }
.tag--green { background: rgba(22,163,74,0.1); color: var(--color-success); }
.tag--amber { background: rgba(245,158,11,0.1); color: var(--color-accent); }

/* ── Methodology callout ──────────────────────────────────────────────────── */

.methodology-note {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 1.5rem 0;
}

.methodology-note strong { color: var(--color-text); font-weight: 600; }

/* ── Sponsor CTA ──────────────────────────────────────────────────────────── */

.sponsor-cta {
  background: linear-gradient(135deg, var(--color-navy) 0%, #1a3a6e 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}

.sponsor-cta h3 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.sponsor-cta p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* ── Datasets preview ─────────────────────────────────────────────────────── */

.dataset-preview {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.dataset-preview__header {
  background: var(--color-navy);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dataset-preview__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.dataset-preview__badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-blue-light);
  background: rgba(74,124,247,0.15);
  border-radius: 20px;
  padding: 0.2rem 0.6rem;
}

.dataset-preview__fields {
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dataset-field {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.6rem;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.65);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand {}

.footer-brand__logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-brand__desc {
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 240px;
}

.footer-section__heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.75rem;
}

.footer-links { display: flex; flex-direction: column; gap: 0.45rem; }

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom__copy {
  font-size: 0.8rem;
}

.footer-bottom__disclaimer {
  font-size: 0.75rem;
  max-width: 540px;
  opacity: 0.7;
  line-height: 1.4;
}

/* ── Utility ──────────────────────────────────────────────────────────────── */

.text-muted { color: var(--color-text-muted); }
.text-blue  { color: var(--color-blue); }
.text-white { color: #fff; }
.text-sm    { font-size: 0.875rem; }
.text-xs    { font-size: 0.75rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.divider {
  height: 1px;
  background: var(--color-border);
  margin: 2rem 0;
}

.inline-flex { display: inline-flex; align-items: center; gap: 0.4rem; }

/* ── Error page ───────────────────────────────────────────────────────────── */

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.error-page__code {
  font-size: 5rem;
  font-weight: 200;
  color: var(--color-border);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-page__title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.error-page__desc  { color: var(--color-text-muted); margin-bottom: 2rem; }

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-hamburger { display: flex; margin-left: auto; }
  .nav-actions   { display: none; }

  .site-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow-y: auto;
    padding: 1rem 0 2rem;
    border-top: 1px solid var(--color-border);
    z-index: 999;
  }

  .site-nav.is-open { display: flex; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .nav-item { border-bottom: 1px solid var(--color-border-light); }

  .nav-link {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Mobile dropdown: always visible inside open mobile nav */
  .nav-dropdown {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    background: var(--color-bg-soft);
  }

  .nav-dropdown a {
    padding: 0.65rem 2rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--color-border-light);
  }

  .nav-item--has-dropdown::after { display: none; }
  .nav-item--has-dropdown > .nav-link::after { display: none; }

  .hero-stats { flex-wrap: wrap; }
  .hero-stat  { flex: 1 1 45%; }

  .hero-search { flex-direction: column; }
  .hero-search__field { border-right: none; border-bottom: 1px solid var(--color-border); width: 100%; }
  .hero-search__btn   { width: 100%; justify-content: center; }

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

  .reports-banner { flex-direction: column; }
  .reports-banner__stats { justify-content: center; }

  .industries-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }

  .provider-card { grid-template-columns: 1fr; }

  .comparison-table { font-size: 0.82rem; }
  .comparison-table th, .comparison-table td { padding: 0.5rem 0.65rem; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .cities-scroll { grid-template-columns: repeat(2, 1fr); }
  .glossary-list__item { flex-direction: column; gap: 0.2rem; }
  .glossary-list__term { min-width: unset; }
  .hero-stat { flex: 1 1 100%; }
  .hero-stats { border-radius: 0; margin-left: -1.5rem; margin-right: -1.5rem; }

  .footer-brand__logo       { font-size: 2.2rem; }
  .footer-brand__desc       { font-size: 1.7rem; max-width: none; }
  .footer-section__heading  { font-size: 1.44rem; }
  .footer-links             { gap: 0.9rem; }
  .footer-links a           { font-size: 1.7rem; }
  .footer-bottom__copy      { font-size: 1.6rem; }
  .footer-bottom__disclaimer { font-size: 1.5rem; }
}
