/* ===========================================================
   Edial Finance — "Editorial" theme for the listing page
   Loaded only on listicle.php, after style.css.

   Palette: deep ink-teal / antique brass / warm parchment
   Signature: card-based entries, fine gold rules, small-caps
   labels — an index/editorial feel rather than a spreadsheet.
   =========================================================== */

:root {
  --navy: #16242A;          /* deep ink-teal — headings, header/footer bg */
  --navy-soft: #20343C;
  --gold: #A9842C;          /* antique brass — refined, not bright */
  --gold-soft: #D8BD7C;
  --cream: #F6F1E7;         /* warm parchment page background */
  --paper: #FFFEFB;         /* card surface, slightly warm white */
  --ink: #2B2620;
  --ink-muted: #837A6B;
  --line: #E6DFCD;
  --green: #3C6650;         /* muted forest — success/highlight accent */
  --radius: 8px;
  --shadow: 0 10px 30px rgba(22, 36, 42, 0.08);
}

body { background: var(--cream); }
a:hover { color: var(--gold); }

/* ---------- Header / footer pick up the new ink-teal automatically
   via the variables above; a few extra refinements: ---------- */
.site-header { border-bottom: 1px solid rgba(169, 132, 44, 0.18); }
.header-search__input { background: rgba(255,255,255,0.08); }

/* ---------- City hero ---------- */
.city-hero {
  background: radial-gradient(120% 160% at 15% 0%, #233B43 0%, var(--navy) 55%, #101B20 100%);
  padding: 56px 0 50px;
  position: relative;
}
.city-hero::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(169,132,44,0.5), transparent);
}
.city-hero__eyebrow {
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(216, 189, 124, 0.75); margin: 0 0 14px;
}
.city-hero__eyebrow a { color: var(--gold-soft); }
.city-hero h1 {
  font-weight: 500; letter-spacing: -0.01em;
  position: relative; display: inline-block; padding-bottom: 18px;
}
.city-hero h1::after {
  content: ''; position: absolute; left: 1px; bottom: 0; width: 64px; height: 2px;
  background: var(--gold);
}
.city-hero__sub { font-size: 1rem; line-height: 1.7; margin-top: 18px; }

/* ---------- Listicle: card-based editorial entries ---------- */
.listicle { margin: 0 0 64px; display: flex; flex-direction: column; gap: 18px; }
.listicle__item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 36px;
  box-shadow: 0 1px 2px rgba(22,36,42,0.03);
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.listicle__item:hover {
  box-shadow: var(--shadow);
  border-color: rgba(169, 132, 44, 0.28);
  transform: translateY(-1px);
}
.listicle__item:first-child { padding-top: 32px; }

.listicle__num {
  font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; color: var(--gold);
  min-width: 40px; padding-top: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid rgba(169,132,44,0.35); border-radius: 50%;
  flex-shrink: 0;
}
.listicle__logo { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(22,36,42,0.06); }

.listicle__name { font-size: 1.45rem; font-weight: 500; letter-spacing: -0.005em; margin-bottom: 4px; }
.listicle__meta {
  font-family: var(--font-body); font-style: italic; font-size: 0.85rem; color: var(--ink-muted);
  margin: 0 0 12px; letter-spacing: 0;
}

.listicle__tags { gap: 8px; margin-bottom: 16px; }
.listicle__tag {
  background: transparent; border: 1px solid rgba(60, 102, 80, 0.35); color: var(--green);
  font-family: var(--font-body); font-weight: 600; font-size: 0.7rem; letter-spacing: .06em;
  padding: 4px 11px; border-radius: 20px;
}
.listicle__tag:hover { background: var(--green); color: #fff; border-color: var(--green); }

.listicle__highlights { gap: 8px; margin-bottom: 18px; }
.highlight-chip {
  background: var(--cream); border: 1px solid var(--line); color: var(--ink-muted);
  font-family: var(--font-body); font-size: 0.76rem; padding: 4px 12px; border-radius: 20px;
}
.highlight-chip--yes { background: rgba(60,102,80,0.06); border-color: rgba(60,102,80,0.3); color: var(--green); font-weight: 600; }

.listicle__facts {
  gap: 22px 36px;
  margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line);
}
.fact dt {
  font-family: var(--font-body); font-weight: 600; font-size: 0.7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 7px; opacity: 0.85;
}
.fact dd { font-size: 0.97rem; line-height: 1.5; color: var(--ink); }
.fact__muted { color: var(--ink-muted); font-style: italic; }

.reveal-btn {
  background: var(--navy); color: #F6F1E7; border-radius: 20px; padding: 9px 16px;
  font-weight: 500; letter-spacing: .01em; white-space: nowrap;
}
.reveal-btn:hover { background: var(--gold); color: var(--navy); }
.reveal-btn--ghost { background: transparent; border: 1px solid var(--line); color: var(--navy); }
.reveal-btn--ghost:hover { border-color: var(--gold); background: rgba(169,132,44,0.06); color: var(--navy); }

.reveal-result a { font-family: var(--font-body); font-weight: 600; color: var(--navy); }
.reveal-result .wa-link { color: var(--green); }
.website-result a { font-family: var(--font-body); color: var(--navy); border-bottom: 1px solid var(--line); }
.website-result a:hover { border-color: var(--gold); }

/* city-card only appears here (the wrong-category fallback) — safe to restyle */
.city-card { background: var(--paper); border-color: var(--line); border-radius: var(--radius); }
.city-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.city-card__name { font-family: var(--font-display); font-weight: 500; color: var(--ink); }
.city-card__count { font-family: var(--font-mono); color: var(--ink-muted); }
.empty-note { color: var(--ink-muted); font-style: italic; }

/* ---------- Table of contents: refined index page ---------- */
.toc { border-top: none; position: relative; padding-top: 36px; }
.toc::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--gold) 0, rgba(169,132,44,0.15) 30%, rgba(169,132,44,0.15) 70%, var(--gold) 100%);
}
.toc__title {
  font-style: italic; font-weight: 500; color: var(--ink); font-size: 1.15rem;
  margin-bottom: 22px;
}
.toc__list a { border-bottom: 1px solid var(--line); padding: 11px 2px; color: var(--ink); }
.toc__list a:hover { border-bottom-color: var(--gold); color: var(--navy); }
.toc__num { color: var(--gold); font-weight: 600; }
.toc__name { font-family: var(--font-body); }

/* ---------- Modal ---------- */
.modal__backdrop { background: rgba(22, 36, 42, 0.6); }
.modal__panel { border-radius: 14px; padding: 36px; box-shadow: 0 24px 70px rgba(22,36,42,0.3); }
.modal__panel h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; }
#revealForm input[type="tel"] { border-radius: 24px; padding: 13px 18px; }
#revealForm input[type="tel"]:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(169,132,44,0.12); }
.modal .btn--gold { background: var(--gold); color: #fff; border-radius: 24px; padding: 13px 22px; }
.modal .btn--gold:hover { background: var(--navy); color: #fff; }

@media (max-width: 880px) {
  .listicle__item { padding: 24px 20px; }
}
