/* Lepton WordPress theme — main stylesheet
 * Brand colors (from brand board):
 *   Navy #10195D, Orange #EC8609, Charcoal #74716A, Cream #ECE9D8, Stone #847366
 * Typography: Montserrat (display) + Inter (body)
 *
 * Per-practice accents are applied via body.practice-<slug> classes,
 * which the theme adds automatically based on the post's Practice taxonomy.
 */

:root {
  /* Brand core */
  --navy: #10195D;
  --navy-deep: #0a0f3d;
  --navy-soft: #2a3478;
  --orange: #EC8609;
  --orange-deep: #c46e00;
  --orange-soft: #f5a548;
  --charcoal: #74716A;
  --stone: #847366;
  --cream: #ECE9D8;
  --cream-deep: #ddd9c3;
  --cream-light: #f5f2e6;

  /* Semantic tokens */
  --bg-page: var(--cream);
  --bg-paper: var(--cream-light);
  --bg-deep: var(--navy);
  --ink: #1a1f3d;
  --ink-soft: #3d4361;
  --muted: #6b6f80;
  --on-dark: var(--cream-light);
  --line: #c8c0a8;
  --line-soft: #d8d2bc;

  /* Default accent (orange — overridden per practice below) */
  --accent: var(--orange);
  --accent-deep: var(--orange-deep);
  --accent-soft: var(--orange-soft);

  --max-width: 1280px;
  --container-pad: 48px;
  --transition-base: 0.25s cubic-bezier(.2,.7,.3,1);
}

/* Per-practice accent overrides */
body.practice-actuarial-solutions { --accent: var(--navy); --accent-deep: var(--navy-deep); --accent-soft: var(--navy-soft); }
body.practice-sustainable-finance { --accent: var(--orange); --accent-deep: var(--orange-deep); --accent-soft: var(--orange-soft); }
body.practice-data-analytics      { --accent: #5A6B7D; --accent-deep: #3f4d5d; --accent-soft: #8d9aaa; }
body.practice-healthcare-policy   { --accent: #B85C2F; --accent-deep: #8a4220; --accent-soft: #d68c63; }
body.practice-esg-practice        { --accent: var(--stone); --accent-deep: #5d5147; --accent-soft: #a99988; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-page);
  color: var(--ink);
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#page { flex: 1; display: flex; flex-direction: column; }
#main { flex: 1; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.43 0 0 0 0 0.4 0 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

section { position: relative; z-index: 2; }

/* ====== HEADER / NAV ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: rgba(236, 233, 216, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.site-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: var(--navy);
  text-transform: uppercase;
}
.site-brand img { width: 40px; height: 40px; object-fit: contain; }

.primary-menu {
  display: flex;
  gap: 4px;
  list-style: none;
  flex: 1;
  justify-content: center;
}
.primary-menu li { position: relative; }
.primary-menu a {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 100px;
  transition: color 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Montserrat', sans-serif;
}
.primary-menu a:hover { color: var(--navy); background: rgba(16, 25, 93, 0.06); }
.primary-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 240px;
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  box-shadow: 0 12px 36px -12px rgba(16, 25, 93, 0.18);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 200;
  list-style: none;
}
.primary-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.primary-menu .sub-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 13.5px;
  border-radius: 4px;
}
.primary-menu .sub-menu a:hover { background: var(--cream-deep); color: var(--navy); }

.nav-utils {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav-cta {
  padding: 10px 22px;
  background: var(--navy);
  color: var(--cream-light);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.2s;
  font-family: 'Montserrat', sans-serif;
}
.nav-cta:hover { background: var(--orange); color: white; transform: translateY(-1px); }

.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s;
}
.search-toggle:hover { background: var(--cream-deep); color: var(--navy); }

/* ====== BREADCRUMBS ====== */
.breadcrumbs {
  padding: 24px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li:not(:last-child)::after { content: '/'; color: var(--line); margin-left: 8px; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs li:last-child { color: var(--ink); }

/* ====== PAGE HEADER ====== */
.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line-soft);
}
.page-header h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 1100px;
  color: var(--navy);
}
.page-header h1 em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}
.page-header .lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 720px;
}

/* ====== SECTION HEAD ====== */
.section-head {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 48px;
  margin-bottom: 60px;
  align-items: start;
}
.section-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 12px;
  border-top: 2px solid var(--accent);
  width: fit-content;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
}
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 900px;
  color: var(--navy);
}
.section-title em { font-style: normal; color: var(--accent); font-weight: 600; }

/* ====== EYEBROW ====== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 24px;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--accent);
}

/* ====== BUTTONS ====== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
}
.btn-primary { background: var(--navy); color: var(--cream-light); }
.btn-primary:hover { background: var(--orange); color: white; transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--cream-light); }
.btn .arrow { transition: transform var(--transition-base); }
.btn:hover .arrow { transform: translateX(4px); }

/* ====== CARD ====== */
.card {
  background: var(--cream-light);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 32px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 16px 40px -16px rgba(16, 25, 93, 0.12);
}

/* ====== LISTING ====== */
.listing { border-top: 2px solid var(--navy); margin-top: 32px; }
.listing-row {
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
  display: grid;
  grid-template-columns: 80px 1fr 2fr auto;
  gap: 40px;
  align-items: start;
  transition: background 0.3s;
  text-decoration: none;
  color: inherit;
}
.listing-row:hover { background: linear-gradient(90deg, transparent, rgba(236,134,9,0.05) 50%, transparent); }
.listing-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  padding-top: 6px;
}
.listing-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--navy);
  transition: color 0.3s, transform 0.3s;
}
.listing-row:hover .listing-title { color: var(--accent); transform: translateX(4px); }
.listing-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  padding-top: 8px;
  max-width: 540px;
}
.listing-arrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  color: var(--navy);
  padding-top: 4px;
  transition: transform 0.3s, color 0.3s;
}
.listing-row:hover .listing-arrow { color: var(--accent); transform: translate(4px, -4px); }

/* ====== CHIPS ====== */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
}
.chip-filled { background: var(--cream-deep); border-color: var(--cream-deep); color: var(--ink-soft); }
.chip-status-live { background: #4a7c4f; color: var(--cream-light); border-color: #4a7c4f; }
.chip-status-beta { background: var(--orange); color: white; border-color: var(--orange); }
.chip-status-in-development { background: var(--navy); color: var(--cream-light); border-color: var(--navy); }
.chip-status-roadmap { background: var(--cream-deep); color: var(--muted); border-color: var(--line); }

/* ====== ARTICLE BODY ====== */
.article-body {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 auto;
}
.article-body p { margin-bottom: 24px; }
.article-body p:first-of-type::first-letter {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 64px;
  line-height: 0.85;
  float: left;
  padding: 8px 14px 0 0;
  color: var(--accent);
}
.article-body h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 28px;
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.article-body a { color: var(--accent); border-bottom: 1px solid var(--accent); }
.article-body a:hover { opacity: 0.7; }

.citation-block {
  margin: 32px 0;
  padding: 24px 28px;
  background: var(--cream-light);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.citation-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
}

/* ====== FOOTER ====== */
.site-footer {
  background: var(--navy);
  color: var(--cream-light);
  padding: 80px 0 32px;
  position: relative;
  z-index: 2;
  margin-top: 100px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.footer-brand .site-brand { color: var(--cream-light); margin-bottom: 16px; }
.footer-brand .site-brand img { background: var(--cream-light); border-radius: 50%; padding: 4px; }
.footer-tagline {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 17px;
  color: rgba(236, 233, 216, 0.78);
  max-width: 320px;
  line-height: 1.5;
  margin-bottom: 24px;
}
.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(236, 233, 216, 0.78);
  font-size: 13.5px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(236, 233, 216, 0.15);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: rgba(236, 233, 216, 0.55);
}

/* ====== HERO (homepage) ====== */
.hero {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -200px;
  top: 15%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(236, 134, 9, 0.28), rgba(236, 134, 9, 0.08) 45%, transparent 70%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 360px; gap: 80px; align-items: end; }
.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: clamp(52px, 8vw, 110px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 40px;
  color: var(--navy);
}
.hero h1 em { font-style: normal; color: var(--orange); font-weight: 600; }
.hero h1 .outlined {
  -webkit-text-stroke: 2px var(--navy);
  color: transparent;
  font-weight: 600;
}
.hero-lede {
  max-width: 560px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 40px;
}
.hero-stat {
  border-left: 2px solid var(--orange);
  padding-left: 32px;
  padding-bottom: 8px;
}
.hero-stat-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  color: var(--orange);
  letter-spacing: -0.025em;
}
.hero-stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
}
.mbe-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
}
.mbe-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  background: var(--bg-paper);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--ink-soft);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  letter-spacing: 0.04em;
}

/* ====== EXPERT PORTRAITS ====== */
.expert-portrait {
  aspect-ratio: 4/5;
  border-radius: 4px;
  background: linear-gradient(135deg, #1e2a6e, #10195D 70%);
  margin-bottom: 24px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.expert-portrait .initials {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 96px;
  color: rgba(236, 233, 216, 0.95);
  letter-spacing: -0.02em;
}
.expert-portrait img { width: 100%; height: 100%; object-fit: cover; }

/* ====== CTA SECTION ====== */
.cta-section {
  padding: 120px 0;
  background: var(--navy);
  color: var(--cream-light);
  position: relative;
  overflow: hidden;
}
.cta-section::after {
  content: '';
  position: absolute;
  left: -100px;
  bottom: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 134, 9, 0.25), transparent 70%);
  filter: blur(40px);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 32px;
}
.cta-section h2 em { font-style: normal; color: var(--orange); }

/* ====== RESPONSIVE ====== */
@media (max-width: 1100px) {
  .primary-menu { gap: 0; }
  .primary-menu a { padding: 8px 10px; font-size: 13px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 880px) {
  .site-header { padding: 16px 24px; gap: 16px; }
  .primary-menu { display: none; }
  :root { --container-pad: 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
  .listing-row { grid-template-columns: 40px 1fr auto; gap: 16px; padding: 24px 0; }
  .listing-desc { grid-column: 1 / -1; padding-left: 56px; padding-top: 0; max-width: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
