/* =========================================================
   Case study page — shared styles (matches prototype theme)
   ========================================================= */
:root {
  --navy: #0B1F3E;
  --navy-2: #12294D;
  --navy-3: #1A335C;
  --ink: #0B1F3E;
  --white: #FFFFFF;
  --off: #F7F8FA;
  --orange: #F5843C;
  --blue: #1F8CE5;
  --muted: rgba(11,31,62,0.62);
  --muted-dark: rgba(255,255,255,0.72);
  --line: rgba(11,31,62,0.10);
  --line-dark: rgba(255,255,255,0.12);
  --radius: 14px;
  --sans: 'Poppins', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.cs-narrow { max-width: 860px; }
@media (max-width: 640px) { .container { padding: 0 20px; } }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid var(--line-dark);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; color: var(--white);
  max-width: 1180px; margin: 0 auto; padding: 0 32px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 40px; width: auto; display: block; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 14.5px; color: var(--white); font-weight: 400;
  transition: color .2s;
}
.nav-links a:hover { color: var(--orange); }
.nav-cta {
  padding: 10px 20px; background: transparent; color: var(--white) !important;
  border: 1px solid var(--white); font-weight: 500; font-size: 14px;
}
.nav-cta:hover { background: var(--white); color: var(--navy) !important; }
@media (max-width: 900px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- HERO ---------- */
.cs-hero {
  background:
    radial-gradient(ellipse 900px 500px at 15% 20%, rgba(31,140,229,0.16) 0%, transparent 60%),
    var(--navy);
  color: var(--white);
  padding: 40px 0 80px;
  position: relative;
}
.cs-breadcrumb {
  font-size: 13px; color: rgba(255,255,255,0.6);
  padding-bottom: 40px;
}
.cs-breadcrumb a { color: rgba(255,255,255,0.6); transition: color .2s; }
.cs-breadcrumb a:hover { color: var(--orange); }
.cs-breadcrumb .sep { margin: 0 10px; opacity: 0.5; }
.cs-breadcrumb .current { color: var(--white); font-weight: 500; }

.cs-hero-inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 60px;
  align-items: end;
}
@media (max-width: 860px) { .cs-hero-inner { grid-template-columns: 1fr; gap: 32px; } }
.cs-tag {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
.cs-title {
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.05; letter-spacing: -0.025em; font-weight: 700;
  color: var(--white); margin-bottom: 24px;
}
.cs-lede {
  font-size: 17px; color: rgba(255,255,255,0.82);
  line-height: 1.6; max-width: 62ch;
}
.cs-hero-metric {
  background: linear-gradient(160deg, rgba(31,140,229,0.12) 0%, rgba(11,31,62,0.4) 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 0 30px rgba(255,255,255,0.15), 0 12px 36px rgba(0,0,0,0.3);
}
.cs-eyebrow {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
}
.cs-metric {
  font-size: clamp(56px, 6vw, 84px); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1;
  color: var(--orange); margin-bottom: 12px;
}
.cs-metric-label {
  font-size: 15px; color: rgba(255,255,255,0.85);
  line-height: 1.4; font-weight: 500;
}

/* ---------- CONTENT SECTIONS ---------- */
.cs-section { padding: 60px 0; }
.cs-section + .cs-section { padding-top: 0; }
.cs-light { background: var(--off); color: var(--ink); }
.cs-dark  { background: var(--navy); color: var(--white); }

.cs-section-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.cs-section-eyebrow.orange { color: var(--orange); }
.cs-section-eyebrow.center { text-align: center; }

.cs-h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.15; letter-spacing: -0.02em; font-weight: 700;
  margin-bottom: 24px;
}
.cs-h2.white  { color: var(--white); }
.cs-h2.center { text-align: center; margin-left: auto; margin-right: auto; max-width: 26ch; }
.cs-h3 {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700; letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.cs-h3.white { color: var(--white); }

/* Table for business application */
.cs-table-wrap { margin-top: 24px; overflow-x: auto; }
.cs-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  overflow: hidden;
  font-size: 15px;
}
.cs-table th, .cs-table td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  line-height: 1.55;
}
.cs-table thead th {
  background: rgba(31,140,229,0.15);
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cs-table tbody tr:last-child td { border-bottom: none; }
.cs-table td:first-child { color: var(--orange); font-weight: 600; white-space: nowrap; }
.cs-light .cs-table {
  background: var(--white);
  border-color: var(--line);
}
.cs-light .cs-table th, .cs-light .cs-table td {
  color: var(--ink);
  border-bottom-color: var(--line);
}
.cs-light .cs-table thead th {
  background: var(--off);
  color: var(--ink);
}

/* Light-variant mini cards (on light sections) */
.cs-mini-card.cs-mini-light {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(11,31,62,0.06);
}
.cs-mini-card.cs-mini-light h4 { color: var(--ink); }
.cs-mini-card.cs-mini-light p  { color: var(--muted); }

.cs-section p {
  font-size: 17px; line-height: 1.7;
  margin-bottom: 18px;
  color: var(--muted);
}
.cs-section p.white-muted { color: rgba(255,255,255,0.85); }
.cs-section p strong { color: var(--ink); font-weight: 600; }
.cs-dark  p strong  { color: var(--white); }
.cs-list {
  margin: 12px 0 24px 0;
  padding-left: 0;
  list-style: none;
}
.cs-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}
.cs-list li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--orange);
}
.cs-list li strong { color: var(--ink); font-weight: 600; }
.cs-dark .cs-list li { color: rgba(255,255,255,0.82); }
.cs-dark .cs-list li strong { color: var(--white); }

/* 3-column mini cards inside approach */
.cs-grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 40px;
}
/* if the grid has exactly 4 cards, lay them out 2x2 instead of 3+1 */
.cs-grid-3:has(> :nth-child(4)):not(:has(> :nth-child(5))) {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 860px) {
  .cs-grid-3,
  .cs-grid-3:has(> :nth-child(4)):not(:has(> :nth-child(5))) {
    grid-template-columns: 1fr;
  }
}
.cs-mini-card {
  background: var(--navy-2);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 0 30px rgba(255,255,255,0.10), 0 12px 36px rgba(0,0,0,0.25);
}
.cs-mini-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--orange); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; margin-bottom: 16px;
}
.cs-mini-card h4 {
  font-size: 17px; font-weight: 700; color: var(--white);
  margin-bottom: 8px; letter-spacing: -0.01em;
}
.cs-mini-card p {
  font-size: 14.5px; color: rgba(255,255,255,0.72);
  line-height: 1.55; margin-bottom: 0;
}

/* Outcomes grid */
.cs-outcomes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin: 40px 0 56px;
}
/* center the row when there are fewer than 3 outcomes */
.cs-outcomes:has(> :nth-child(2)):not(:has(> :nth-child(3))) {
  grid-template-columns: repeat(2, minmax(0, 360px));
  justify-content: center;
}
.cs-outcomes:not(:has(> :nth-child(2))) {
  grid-template-columns: minmax(0, 360px);
  justify-content: center;
}
@media (max-width: 860px) {
  .cs-outcomes,
  .cs-outcomes:has(> :nth-child(2)):not(:has(> :nth-child(3))),
  .cs-outcomes:not(:has(> :nth-child(2))) {
    grid-template-columns: 1fr;
  }
}
.cs-outcome {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(11,31,62,0.06);
}
.cs-outcome-metric {
  font-size: clamp(25px, 4vw, 25px); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1;
  color: var(--ink); margin-bottom: 12px;
}
.cs-outcome-label {
  font-size: 14.5px; color: var(--muted); line-height: 1.45;
}

/* Pull-quote */
.cs-quote {
  max-width: 780px; margin: 40px auto 0;
  padding: 40px 44px;
  background: var(--white);
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(11,31,62,0.06);
}
.cs-quote p {
  font-size: 20px; font-weight: 500; line-height: 1.5;
  color: var(--ink); margin-bottom: 16px; font-style: italic;
}
.cs-quote-author {
  font-size: 14px; color: var(--muted); font-weight: 600;
}

/* CTA */
.cs-cta-wrap {
  position: relative;
  background: var(--navy);
  overflow: hidden;
}
.cs-cta-plexus {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.65;
}
.cs-cta {
  position: relative;
  z-index: 1;
  background: transparent;
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}
.cs-cta h2 {
  font-size: clamp(28px, 3.5vw, 44px); font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.cs-cta p { color: var(--orange); font-size: 18px; font-weight: 600; margin-bottom: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 4px;
  font-size: 15px; font-weight: 500;
  transition: background .2s, color .2s;
  cursor: pointer; border: none;
  font-family: var(--sans);
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: #1a75c1; }

/* Footer */
footer {
  background: var(--navy); color: var(--white); padding: 80px 0 40px;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px;
  padding-bottom: 50px; border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; } }
.footer-brand { margin-bottom: 14px; }
.footer-brand img { height: 60px; width: auto; display: block; }
.footer-tag { color: var(--muted-dark); font-size: 15px; max-width: 34ch; }
.footer-col h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--orange); margin-bottom: 20px; font-weight: 600; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14.5px; color: var(--white); opacity: 0.85; }
.footer-col a:hover { opacity: 1; color: var(--orange); }
.footer-bottom {
  padding-top: 28px; display: flex; justify-content: space-between;
  font-size: 13px; color: var(--muted-dark); flex-wrap: wrap; gap: 12px;
}
