/* ══════════════════════════════════════════════════════════════════════
   Corsa Capital Insights — Shared Site Stylesheet
   Used by: index.html (Insights Hub) and all /insights/*.html articles.
   report.html keeps its own self-contained styles (untouched, still live).
   Edit brand colors/fonts here once and every page that links this file
   picks up the change.
   ══════════════════════════════════════════════════════════════════════ */

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

:root {
  --navy:    #0E2340;
  --navy2:   #1B3A5C;
  --navy3:   #2B5080;
  --gold:    #C9A84C;
  --gold2:   #E8C96A;
  --cream:   #F5F0E8;
  --offwhite:#FAFAF8;
  --text:    #1A1A1A;
  --muted:   #5A6478;
  --border:  #DDD8CE;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--offwhite);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ── NAV (shared across Insights Hub + articles) ─────────────────── */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(14,35,64,0.97);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  border-bottom: 1px solid rgba(201,168,76,0.2);
}
.nav-brand { display: flex; align-items: center; }
.nav-brand a { display: flex; align-items: center; text-decoration: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 0.83rem;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: var(--gold);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 22px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold2); }
.nav-mobile-hide { }
@media (max-width: 860px) {
  .nav-links a.nav-hide-mobile { display: none; }
}

/* ── GENERIC SECTION SCAFFOLDING ──────────────────────────────────── */
section { padding: 88px 48px; }
.container { max-width: 1040px; margin: 0 auto; }
.container-narrow { max-width: 760px; margin: 0 auto; }
.section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 20px;
}
.section-body {
  font-size: 1rem;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.85;
}
.gold-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border: none;
  margin: 0;
  opacity: 0.4;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 16px 40px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--gold2); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 16px 32px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 2px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.6); color: #fff; }

/* ── FOOTER (shared) ──────────────────────────────────────────────── */
footer.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 40px 48px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto 24px;
}
.footer-brand { display: flex; align-items: center; }
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  max-width: 1040px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── ARTICLE / INSIGHT PAGE TEMPLATE ──────────────────────────────── */
.article-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy2) 60%, #1a4570 100%);
  padding: 148px 24px 64px;
  text-align: center;
}
.article-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.article-eyebrow span { color: rgba(255,255,255,0.4); font-weight: 400; margin: 0 8px; }
.article-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  max-width: 780px;
  margin: 0 auto 20px;
}
.article-dek {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.68);
  max-width: 620px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.75;
}
.article-body { padding: 64px 24px 40px; }
.article-body p {
  font-size: 1.02rem;
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 24px;
}
.article-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  margin: 48px 0 20px;
  line-height: 1.3;
}
.article-body ul, .article-body ol {
  margin: 0 0 24px 20px;
}
.article-body li {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 10px;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 8px 0 36px;
}
.stat-pill {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 18px 16px;
  text-align: center;
}
.stat-pill .num {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--navy2);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-pill .lbl {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
}
.pull-quote {
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 24px;
  margin: 36px 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--navy);
  line-height: 1.6;
}
.source-list {
  margin: 0 0 24px 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.source-list li {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
}
.source-list li::before {
  content: '—';
  position: absolute; left: 0;
  color: var(--gold);
}
.source-list a { color: var(--navy2); text-decoration: underline; text-decoration-color: var(--border); }
.article-meta-bar {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 28px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}
.cta-band {
  background: var(--navy);
  text-align: center;
  padding: 64px 24px;
}
.cta-band h3 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.cta-band p {
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  margin: 0 auto 28px;
  font-size: 0.92rem;
}

/* ── ARTICLE TABLES (e.g. vendor/provider scorecards) ─────────────── */
.article-table-wrap {
  overflow-x: auto;
  margin: 8px 0 36px;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.article-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.article-table th, .article-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}
.article-table thead th {
  background: var(--navy);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--gold);
}
.article-table tbody tr:nth-child(even) { background: var(--cream); }
.article-table tbody tr:last-child td { border-bottom: none; }
.article-table td:first-child, .article-table th:first-child { font-weight: 600; color: var(--navy); }
.article-table .stars { color: var(--gold); letter-spacing: 1px; white-space: nowrap; }
.article-table caption {
  caption-side: top;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 14px 0;
}
.table-footnote {
  font-size: 0.76rem;
  color: var(--muted);
  margin: -20px 0 36px;
  line-height: 1.6;
}

/* ── CALLOUT BOX (e.g. key takeaways) ─────────────────────────────── */
.callout-box {
  background: var(--cream);
  border-left: 3px solid var(--gold);
  border-radius: 2px;
  padding: 28px 28px 20px;
  margin: 36px 0;
}
.callout-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}
.callout-box ul { margin: 0 0 8px 20px; }
.callout-box li {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  nav.site-nav { padding: 0 20px; }
  section { padding: 64px 20px; }
  .footer-top { flex-direction: column; align-items: flex-start; text-align: left; }
}
