/* Evidence Integration Consulting — site styles
   Palette is drawn from the EIC logo: navy field, slate shield, crimson rule. */

:root {
  --navy-950: #0f171e;
  --navy-900: #1a252f;
  --navy-800: #223240;
  --slate-700: #2e4a62;
  --slate-500: #5d7489;
  --slate-300: #a9b6c2;
  --crimson: #c0392b;
  --crimson-dark: #9f2e23;
  --paper: #f7f5f1;
  --paper-2: #efebe4;
  --white: #ffffff;
  --ink: #18212a;
  --muted: #55616d;
  --line: #ddd7cd;
  --line-dark: rgba(255, 255, 255, 0.14);

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --shadow: 0 1px 2px rgba(15, 23, 30, 0.06), 0 8px 24px rgba(15, 23, 30, 0.07);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--slate-700); text-underline-offset: 3px; }
a:hover { color: var(--crimson); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--navy-900);
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--white); color: var(--ink); padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

:focus-visible { outline: 3px solid var(--crimson); outline-offset: 2px; }

/* ---------- Eyebrow + rule (echoes the logo's crimson rule) ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px; height: 2px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 12px;
  transform: translateY(-2px);
}
.dark .eyebrow { color: #e0685b; }

.lead { font-size: 1.2rem; color: var(--muted); max-width: 46em; }
.dark .lead { color: var(--slate-300); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 0.98rem;
  padding: 14px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
}
.btn-primary { background: var(--crimson); color: var(--white); }
.btn-primary:hover { background: var(--crimson-dark); color: var(--white); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); background: rgba(255, 255, 255, 0.06); }
.btn-outline { border-color: var(--navy-900); color: var(--navy-900); }
.btn-outline:hover { background: var(--navy-900); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(26, 37, 47, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--white); }
.brand svg { width: 34px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; border-left: 1px solid rgba(255,255,255,0.22); padding-left: 14px; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.14em; text-transform: uppercase; }
.brand-sub { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.32em; color: #e0685b; margin-top: 4px; }
.brand:hover { color: var(--white); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: #d5dde4; text-decoration: none;
  font-size: 0.94rem; font-weight: 500;
  padding: 8px 12px; border-radius: 4px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,0.07); }
.nav .btn { margin-left: 10px; padding: 10px 18px; color: var(--white); background: var(--crimson); }
.nav .btn:hover { background: var(--crimson-dark); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid rgba(255,255,255,0.3); border-radius: 4px;
  color: var(--white); padding: 8px 10px; cursor: pointer;
}
.nav-toggle svg { display: block; }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--navy-900);
    padding: 12px var(--gutter) 24px;
    border-bottom: 1px solid var(--line-dark);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; font-size: 1.05rem; }
  .nav .btn { margin: 12px 0 0; justify-content: center; }
}
@media (max-width: 420px) {
  .brand-name { font-size: 0.86rem; letter-spacing: 0.1em; }
  .brand-sub { letter-spacing: 0.24em; }
}

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 112px) 0; }
.dark { background: var(--navy-900); color: #e6ebef; }
.dark h1, .dark h2, .dark h3 { color: var(--white); }
.dark a:not(.btn) { color: var(--white); }
.tint { background: var(--paper-2); }
.white { background: var(--white); }
.section-head { max-width: 760px; margin-bottom: 48px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(80px, 12vw, 150px) 0 clamp(72px, 10vw, 120px);
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,23,30,0.97) 0%, rgba(15,23,30,0.9) 42%, rgba(15,23,30,0.55) 100%);
}
.hero h1 { max-width: 15em; }
.hero .lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); }

.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 80px); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); max-width: 18em; }

.crumbs { font-size: 0.85rem; margin-bottom: 22px; color: var(--slate-300); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.5; }
.crumbs a { color: var(--slate-300) !important; text-decoration: none; }
.crumbs a:hover { color: var(--white) !important; }

/* ---------- Credential strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
  margin-top: 64px;
}
.stat { padding: 26px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.stat-num { font-family: var(--serif); font-size: 2.3rem; font-weight: 600; color: var(--white); line-height: 1.1; }
.stat-label { font-size: 0.9rem; color: var(--slate-300); margin-top: 6px; }
@media (max-width: 820px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-dark); margin-top: 22px; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  position: relative;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.97rem; margin: 0; }
a.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
a.card .card-more { margin-top: auto; padding-top: 18px; }
a.card:hover { border-color: var(--slate-300); box-shadow: var(--shadow); transform: translateY(-2px); }
a.card:hover h3 { color: var(--crimson); }
.card-more { display: inline-block; margin-top: 18px; font-weight: 600; font-size: 0.9rem; color: var(--slate-700); }
.card-more::after { content: " →"; }
.card-icon {
  width: 44px; height: 44px; border-radius: 8px;
  display: grid; place-items: center;
  background: #eef1f4; color: var(--slate-700);
  margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; }

.audience { border-top: 3px solid var(--crimson); }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.flip { grid-template-columns: 0.9fr 1.1fr; }
.split.top { align-items: start; }
@media (max-width: 880px) { .split, .split.flip { grid-template-columns: 1fr; } }
.figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.figure.tall img { aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Lists ---------- */
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 14px; height: 2px; background: var(--crimson);
}
.checks.two-col { columns: 2; column-gap: 40px; }
.checks.two-col li { break-inside: avoid; }
@media (max-width: 680px) { .checks.two-col { columns: 1; } }

/* ---------- Career / dossier card ---------- */
.dossier {
  background: var(--navy-900); color: #dfe5ea;
  border-radius: var(--radius);
  padding: 34px 32px;
  border-top: 4px solid var(--crimson);
}
.dossier h3 { color: var(--white); font-size: 1.05rem; font-family: var(--sans); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 22px; }
.dossier dl { margin: 0; }
.dossier dt { font-weight: 600; color: var(--white); }
.dossier dd { margin: 2px 0 18px; color: var(--slate-300); font-size: 0.93rem; }
.dossier dd:last-child { margin-bottom: 0; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: step; padding-top: 22px; border-top: 2px solid var(--navy-900); }
.step::before {
  content: "0" counter(step);
  display: block; font-family: var(--serif); font-size: 2.4rem; font-weight: 600;
  color: var(--crimson); line-height: 1; margin-bottom: 14px;
}
.step p { color: var(--muted); }
.dark .step { border-top-color: rgba(255,255,255,0.3); }
.dark .step p { color: var(--slate-300); }

/* ---------- Jurisdictions / tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.tags li {
  border: 1px solid var(--line); background: var(--white);
  padding: 8px 14px; border-radius: 999px; font-size: 0.92rem;
}
.dark .tags li { background: transparent; border-color: var(--line-dark); color: #dfe5ea; }

.court-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.court-list li { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.court-list strong { font-weight: 600; }
.court-list span { color: var(--muted); font-size: 0.93rem; text-align: right; }
@media (max-width: 600px) { .court-list li { flex-direction: column; gap: 2px; } .court-list span { text-align: left; } }

/* ---------- Callout ---------- */
.callout {
  border-left: 3px solid var(--crimson);
  background: var(--white);
  padding: 22px 26px;
  margin: 28px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p:last-child { margin: 0; }

/* ---------- Prose (long-form pages) ---------- */
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }

.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .layout-aside { grid-template-columns: 1fr; } }
.aside-sticky { position: sticky; top: 100px; display: grid; gap: 20px; }
.aside-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.aside-box h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 700; margin-bottom: 12px; }
.aside-box ul { list-style: none; padding: 0; margin: 0; }
.aside-box li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
.aside-box li:last-child { border-bottom: 0; }
.aside-box a { text-decoration: none; }
.aside-box a[aria-current="page"] { color: var(--crimson); font-weight: 600; }
.aside-cta { background: var(--navy-900); color: #dfe5ea; border: 0; }
.aside-cta h3 { color: var(--white); }
.aside-cta p { font-size: 0.94rem; color: var(--slate-300); }
.aside-cta .btn { width: 100%; justify-content: center; }
.aside-cta .phone { display: block; text-align: center; margin-top: 12px; color: var(--white); font-weight: 600; text-decoration: none; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  font-family: var(--serif); font-size: 1.18rem; font-weight: 600; color: var(--navy-900);
  padding: 22px 40px 22px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-weight: 400; font-size: 1.6rem; color: var(--crimson);
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 22px; color: var(--muted); max-width: 46em; }
.faq .answer p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy-950); color: #dfe5ea; padding: clamp(56px, 8vw, 88px) 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin: 0 0 8px; }
.cta-band p { margin: 0; color: var(--slate-300); max-width: 40em; }
.cta-band .btn-row { margin-top: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid #c9c2b6; border-radius: var(--radius);
  background: var(--white); color: var(--ink);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--slate-700); outline-offset: 0; border-color: var(--slate-700); }
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
@media (max-width: 640px) { .checkbox-grid { grid-template-columns: 1fr; } }
.checkbox-grid label { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.checkbox-grid input { width: auto; margin-top: 5px; }
.form-note { font-size: 0.88rem; color: var(--muted); }
.hidden { display: none; }

.contact-lines { list-style: none; padding: 0; margin: 0 0 28px; }
.contact-lines li { padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.contact-lines .k { display: block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-300); }
.contact-lines a, .contact-lines .v { color: var(--white); font-size: 1.12rem; font-weight: 500; text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--slate-300); padding: 72px 0 36px; font-size: 0.93rem; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--slate-300); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 0.84rem; color: var(--slate-500); }
.footer-base p { margin: 0; }

/* ---------- Fixes ---------- */
.nav .btn[aria-current="page"] { background: var(--crimson-dark); }
.prose ul.checks { padding-left: 0; }
.field select { height: 51px; }
@media (max-width: 880px) { .form-col { order: -1; } }
