/* ═══════════════════════════════════════════════════
   Eureka Matrix Solutions LLC — Shared Design System
   ═══════════════════════════════════════════════════ */

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

:root {
  --navy:   #042C53;
  --blue:   #185FA5;
  --mid:    #378ADD;
  --sky:    #B5D4F4;
  --ice:    #E6F1FB;
  --amber:  #EF9F27;
  --ink:    #2C2C2A;
  --stone:  #5F5E5A;
  --ash:    #B4B2A9;
  --mist:   #D3D1C7;
  --cloud:  #F1EFE8;
  --white:  #ffffff;
  --max:    1120px;
}

body { font-family: 'Inter', Arial, sans-serif; background: var(--white); color: var(--ink); line-height: 1.6; }

/* ── NAV ─────────────────────────────────────────────── */
#nav-placeholder { background: var(--navy); height: 64px; position: sticky; top: 0; z-index: 100; }

nav {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.nav-brand svg { width: 44px; height: 44px; flex-shrink: 0; overflow: visible; }
.nav-wordmark { display: flex; flex-direction: column; line-height: 1; }
.nav-wordmark .w1 { font-size: 15px; font-weight: 500; color: #fff; letter-spacing: 0.5px; }
.nav-wordmark .w2 { font-size: 15px; font-weight: 500; color: var(--sky); letter-spacing: 3px; margin-top: 2px; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--sky); text-decoration: none; font-size: 14px; font-weight: 400; opacity: 0.85; transition: opacity .2s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; color: #fff; }
.nav-cta { background: var(--amber); color: var(--navy); font-size: 13px; font-weight: 600; padding: 9px 20px; border-radius: 6px; text-decoration: none; white-space: nowrap; transition: filter .2s; }
.nav-cta:hover { filter: brightness(1.08); }

/* ── FOOTER ──────────────────────────────────────────── */
footer {
  background: var(--navy);
  padding: 40px 48px 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}
.ft-brand { display: flex; align-items: center; gap: 12px; }
.ft-brand svg { width: 32px; height: 32px; overflow: visible; }
.ft-name { font-size: 13px; font-weight: 500; color: var(--sky); }
.ft-tagline { font-size: 11px; color: var(--ash); margin-top: 3px; }
.ft-right { font-size: 12px; color: var(--ash); text-align: right; line-height: 1.6; }
.ft-right a { color: var(--sky); text-decoration: none; }
.ft-right a:hover { color: #fff; }

/* ── LAYOUT ──────────────────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 48px; }
.section     { padding: 80px 0; }
.section-sm  { padding: 52px 0; }
.section-alt   { background: var(--ice); }
.section-cloud { background: var(--cloud); }
.section-dark  { background: var(--navy); color: #fff; }

/* ── TYPOGRAPHY ──────────────────────────────────────── */
.eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 3px;
  color: var(--amber); text-transform: uppercase; margin-bottom: 16px;
  display: block;
}
.section-dark .eyebrow { color: var(--amber); }

.section-title {
  font-size: 34px; font-weight: 500; color: var(--navy);
  line-height: 1.2; margin-bottom: 16px;
}
.section-dark .section-title { color: #fff; }

.section-subtitle {
  font-size: 16px; color: var(--stone); line-height: 1.7; max-width: 640px;
}
.section-dark .section-subtitle { color: var(--sky); opacity: 0.82; }

.center { text-align: center; }
.center .section-subtitle { margin: 0 auto; }

/* ── GRIDS ───────────────────────────────────────────── */
.grid-2    { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3    { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4    { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

/* ── SPLIT LAYOUTS ───────────────────────────────────── */
.split     { display: grid; grid-template-columns: 1fr 1fr;     gap: 64px; align-items: start; }
.split-3-2 { display: grid; grid-template-columns: 3fr 2fr;     gap: 64px; align-items: start; }
.split-2-3 { display: grid; grid-template-columns: 2fr 3fr;     gap: 64px; align-items: start; }

/* ── CARDS ───────────────────────────────────────────── */
.card {
  background: var(--ice); border: 1px solid var(--sky);
  border-radius: 10px; padding: 28px 24px;
}
.card h3 { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.card p  { font-size: 14px; color: var(--stone); line-height: 1.6; }

.card-accent {
  background: var(--ice); border: 1px solid var(--sky);
  border-left: 4px solid var(--blue); border-radius: 8px; padding: 22px 20px;
}
.card-accent.amber { border-left-color: var(--amber); }
.card-accent h3 { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.card-accent p  { font-size: 13px; color: var(--stone); line-height: 1.55; }

/* ── CAPABILITY CARDS (clickable) ────────────────────── */
.cap-card {
  background: var(--ice); border: 1px solid var(--sky);
  border-left: 4px solid var(--blue); border-radius: 8px;
  padding: 24px 20px; text-decoration: none; display: block;
  transition: border-color .2s, box-shadow .2s;
}
.cap-card:hover { border-color: var(--mid); box-shadow: 0 4px 16px rgba(4,44,83,.08); }
.cap-card h3 { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.cap-card p  { font-size: 13px; color: var(--stone); line-height: 1.55; }
.cap-card .learn { font-size: 12px; font-weight: 500; color: var(--blue); margin-top: 12px; display: block; }

/* ── STAT CARDS (dark bg) ────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 40px; }
.stat-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(181,212,244,.2);
  border-radius: 10px; padding: 28px 20px; text-align: center;
}
.stat-card .stat-num   { font-size: 40px; font-weight: 600; color: var(--amber); line-height: 1; margin-bottom: 10px; }
.stat-card .stat-label { font-size: 13px; color: var(--sky); line-height: 1.5; }

/* ── RESULT HIGHLIGHTS ───────────────────────────────── */
.result-highlights {
  background: var(--navy); border-radius: 12px; padding: 40px 48px;
  display: flex; gap: 48px; flex-wrap: wrap; justify-content: space-around;
  margin: 48px 0;
}
.result-item { text-align: center; }
.result-item .rnum  { font-size: 44px; font-weight: 600; color: var(--amber); line-height: 1; }
.result-item .rlabel { font-size: 13px; color: var(--sky); margin-top: 8px; line-height: 1.45; max-width: 160px; }

/* ── APPROACH STEPS ──────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 24px; margin-top: 32px; }
.step  { display: flex; gap: 20px; align-items: flex-start; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--mid); color: #fff;
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.step-body h4 { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.step-body p  { font-size: 14px; color: var(--stone); line-height: 1.65; }

/* ── CASE STUDY CARDS ────────────────────────────────── */
.cs-card {
  background: var(--white); border: 1px solid var(--mist);
  border-radius: 10px; overflow: hidden;
  text-decoration: none; display: block; transition: box-shadow .2s;
}
.cs-card:hover { box-shadow: 0 6px 24px rgba(4,44,83,.1); }
.cs-card-tag {
  background: var(--navy); padding: 10px 20px;
  font-size: 10px; font-weight: 600; color: var(--amber);
  letter-spacing: 2.5px; text-transform: uppercase;
}
.cs-card-body { padding: 24px 24px 20px; }
.cs-card-body h3 { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 10px; line-height: 1.4; }
.cs-card-body p  { font-size: 14px; color: var(--stone); line-height: 1.65; margin-bottom: 20px; }
.cs-card-stats { display: flex; gap: 24px; flex-wrap: wrap; padding: 16px 24px; background: var(--ice); border-top: 1px solid var(--sky); }
.cs-stat strong { display: block; font-size: 20px; font-weight: 600; color: var(--blue); }
.cs-stat span   { font-size: 12px; color: var(--stone); }
.cs-read { display: block; padding: 12px 24px; font-size: 13px; font-weight: 500; color: var(--blue); border-top: 1px solid var(--mist); }

/* ── PAGE HERO (inner pages) ─────────────────────────── */
.page-hero { background: var(--navy); padding: 72px 0 64px; }
.breadcrumb { font-size: 13px; color: var(--sky); opacity: 0.65; margin-bottom: 24px; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { opacity: 1; }
.page-hero h1 {
  font-size: 44px; font-weight: 500; color: #fff;
  line-height: 1.15; margin-bottom: 20px;
}
.page-hero h1 em { font-style: normal; color: var(--sky); }
.page-hero-sub { font-size: 17px; color: var(--sky); opacity: 0.82; max-width: 580px; line-height: 1.7; }

/* ── CONTEXT BAR (CS pages) ──────────────────────────── */
.context-bar { background: var(--ice); border-bottom: 1px solid var(--sky); padding: 24px 0; }
.context-grid { display: flex; gap: 48px; flex-wrap: wrap; }
.context-item label { font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--stone); display: block; margin-bottom: 4px; }
.context-item span  { font-size: 14px; font-weight: 500; color: var(--navy); }

/* ── CTA BAND ────────────────────────────────────────── */
.cta-band { background: var(--amber); padding: 72px 0; text-align: center; }
.cta-band h2 { font-size: 32px; font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.cta-band p  { font-size: 16px; color: var(--navy); opacity: 0.75; margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ── BUTTONS ─────────────────────────────────────────── */
.btn-primary { background: var(--amber); color: var(--navy); font-size: 14px; font-weight: 600; padding: 14px 28px; border-radius: 8px; text-decoration: none; display: inline-block; transition: filter .2s; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost   { border: 1px solid rgba(181,212,244,.4); color: var(--sky); font-size: 14px; font-weight: 400; padding: 14px 28px; border-radius: 8px; text-decoration: none; display: inline-block; transition: border-color .2s, color .2s; }
.btn-ghost:hover { border-color: var(--sky); color: #fff; }
.btn-navy    { background: var(--navy); color: #fff; font-size: 14px; font-weight: 600; padding: 14px 32px; border-radius: 8px; text-decoration: none; display: inline-block; transition: filter .2s; }
.btn-navy:hover { filter: brightness(1.2); }
.btn-outline { border: 1.5px solid var(--blue); color: var(--blue); font-size: 14px; font-weight: 500; padding: 12px 24px; border-radius: 8px; text-decoration: none; display: inline-block; transition: background .2s, color .2s; }
.btn-outline:hover { background: var(--blue); color: #fff; }

/* ── CHIPS ───────────────────────────────────────────── */
.chip  { display: inline-flex; align-items: center; background: var(--ice); border: 1px solid var(--sky); border-radius: 100px; padding: 4px 12px; font-size: 12px; font-weight: 500; color: var(--blue); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* ── TRUST BAR ───────────────────────────────────────── */
.trust-bar {
  background: var(--ice); border-top: 1px solid var(--sky);
  padding: 18px 48px; display: flex; align-items: center; gap: 40px;
}
.trust-bar .label { font-size: 11px; font-weight: 500; color: var(--stone); letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap; }
.trust-list { display: flex; gap: 36px; flex-wrap: wrap; }
.trust-item { font-size: 13px; font-weight: 500; color: var(--blue); }

/* ── UTILITIES ───────────────────────────────────────── */
.mt-8  { margin-top: 8px; }  .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; } .mt-40 { margin-top: 40px; } .mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.divider { border: none; border-top: 1px solid var(--mist); }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  nav, .trust-bar { padding: 0 24px; }
  .nav-links { display: none; }
  .container { padding: 0 24px; }
  .grid-2, .grid-3, .grid-4, .split, .split-3-2, .split-2-3 { grid-template-columns: 1fr; gap: 24px; }
  .page-hero h1 { font-size: 30px; }
  .section-title { font-size: 26px; }
  .result-highlights { padding: 28px 24px; gap: 28px; }
  .result-item .rnum { font-size: 34px; }
  .trust-bar { flex-wrap: wrap; gap: 12px; padding: 16px 24px; }
}
