/* =========================================================================
   COLLISION FUNDING GROUP — Design System
   caraccidentlegalfunding.com
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand colors */
  --blue: #1e40af;
  --blue-dark: #1e3a8a;
  --blue-light: #3b82f6;
  --red: #DC2626;
  --red-dark: #b91c1c;

  /* Neutrals */
  --ink: #0a0e1a;
  --ink-soft: #1f2937;
  --slate: #475569;
  --slate-light: #64748b;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --cream: #fafaf7;
  --paper: #ffffff;

  /* Typography */
  --serif: 'Fraunces', 'Georgia', serif;
  --sans: 'Inter', system-ui, sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 14, 26, 0.04), 0 1px 3px rgba(10, 14, 26, 0.06);
  --shadow: 0 4px 12px rgba(10, 14, 26, 0.06), 0 1px 3px rgba(10, 14, 26, 0.04);
  --shadow-lg: 0 20px 40px -12px rgba(10, 14, 26, 0.12), 0 8px 16px -8px rgba(10, 14, 26, 0.08);
  --shadow-blue: 0 8px 24px -8px rgba(30, 64, 175, 0.4);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--blue-dark); }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); margin-bottom: var(--space-md); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-bottom: var(--space-sm); }
p { margin-bottom: var(--space-sm); }
.lede { font-size: 1.25rem; line-height: 1.55; color: var(--slate); }

/* Layout primitives */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-md); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--space-md); }
.section { padding: var(--space-3xl) 0; }
.section-sm { padding: var(--space-2xl) 0; }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: var(--space-sm);
  display: block;
}

/* ============== HEADER / NAV ============== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--space-md);
  max-width: var(--container);
  margin: 0 auto;
}
.logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-mark {
  width: 28px;
  height: 28px;
  background: var(--blue);
  border-radius: 6px;
  position: relative;
  flex-shrink: 0;
}
.logo-mark::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 2px solid white;
  border-radius: 2px;
  transform: rotate(45deg);
}
.logo:hover { color: var(--blue); }
.nav-links { display: flex; gap: 2rem; align-items: center; list-style: none; }
.nav-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}
.nav-links a:hover { color: var(--blue); }
.nav-cta {
  background: var(--red);
  color: white !important;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--red-dark); color: white !important; transform: translateY(-1px); }
.menu-toggle { display: none; }

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--sans);
}
.btn-primary {
  background: var(--red);
  color: white;
  box-shadow: 0 4px 12px -4px rgba(220, 38, 38, 0.4);
}
.btn-primary:hover {
  background: var(--red-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(220, 38, 38, 0.5);
}
.btn-secondary {
  background: var(--blue);
  color: white;
}
.btn-secondary:hover {
  background: var(--blue-dark);
  color: white;
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: white;
}
.btn-arrow::after {
  content: '→';
  margin-left: 0.25rem;
  transition: transform 0.2s;
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ============== HERO ============== */
.hero {
  position: relative;
  padding: var(--space-2xl) 0 var(--space-3xl);
  background: linear-gradient(180deg, var(--cream) 0%, white 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(30, 64, 175, 0.08) 0%, transparent 60%);
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 {
  margin-bottom: var(--space-md);
}
.hero h1 em {
  font-style: italic;
  color: var(--blue);
  font-weight: 500;
}
.hero-lede {
  font-size: 1.25rem;
  color: var(--slate);
  margin-bottom: var(--space-lg);
  line-height: 1.5;
  max-width: 540px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: var(--space-lg); }
.hero-trust {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
  color: var(--slate);
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-trust-item::before {
  content: '✓';
  color: var(--blue);
  font-weight: 700;
}

/* Hero stats card */
.hero-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  position: relative;
}
.hero-card-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  font-weight: 600;
  margin-bottom: var(--space-md);
}
.hero-card-stat {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.hero-card-stat span { color: var(--blue); }
.hero-card-desc { color: var(--slate); margin-bottom: var(--space-md); }
.hero-card-divider { height: 1px; background: var(--line); margin: var(--space-md) 0; }
.hero-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.95rem;
}
.hero-card-row strong { color: var(--ink); font-weight: 600; }
.hero-card-row span { color: var(--slate); }

/* ============== TRUST BAR ============== */
.trust-bar {
  background: var(--ink);
  color: white;
  padding: var(--space-md) 0;
}
.trust-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  text-align: center;
}
.trust-stat {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.25rem;
}
.trust-stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============== SECTION HEADER ============== */
.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
}
.section-head .lede { margin-top: var(--space-sm); }

/* ============== CARDS GRID ============== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-lg);
  transition: all 0.3s ease;
}
.card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(30, 64, 175, 0.08);
  color: var(--blue);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-size: 1.4rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--slate); margin-bottom: 0; font-size: 0.97rem; }

/* ============== STEPS ============== */
.steps-section { background: var(--cream); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  position: relative;
}
.step {
  background: white;
  padding: var(--space-lg);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  position: relative;
}
.step-num {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 600;
  color: var(--blue);
  line-height: 1;
  margin-bottom: var(--space-sm);
  opacity: 0.85;
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.step p { color: var(--slate); font-size: 0.95rem; margin-bottom: 0; }

/* ============== SPLIT (text + visual) ============== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.split-list { list-style: none; margin-top: var(--space-md); }
.split-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.split-list li:last-child { border-bottom: none; }
.split-list strong {
  color: var(--ink);
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--serif);
  font-size: 1.1rem;
}
.split-list span { color: var(--slate); font-size: 0.95rem; }
.split-check {
  color: var(--blue);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.15rem;
  font-size: 1.1rem;
}

/* Visual: comparison block */
.compare {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.compare-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  padding: 1.1rem var(--space-md);
  border-bottom: 1px solid var(--line);
  align-items: center;
  font-size: 0.95rem;
}
.compare-row:last-child { border-bottom: none; }
.compare-head {
  background: var(--ink);
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.compare-head > div:first-child { color: rgba(255,255,255,0.7); font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 0.9rem; }
.compare-cell-yes { color: var(--blue); font-weight: 600; }
.compare-cell-no { color: var(--slate-light); }
.compare-row > div:first-child { font-weight: 500; color: var(--ink); }

/* ============== CTA BAND ============== */
.cta-band {
  background: var(--blue);
  background-image: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: white;
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
}
.cta-band-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  position: relative;
}
.cta-band h2 { color: white; margin-bottom: 0.5rem; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 0; font-size: 1.1rem; }
.cta-band-actions { display: flex; gap: 1rem; justify-content: flex-end; flex-wrap: wrap; }
.cta-band .btn-primary { background: white; color: var(--blue-dark); }
.cta-band .btn-primary:hover { background: var(--cream); color: var(--blue-dark); }
.cta-band .btn-outline { color: white; border-color: rgba(255,255,255,0.4); }
.cta-band .btn-outline:hover { background: white; color: var(--blue-dark); border-color: white; }

/* ============== FAQ ============== */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: var(--space-md) 0;
}
.faq-q {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  list-style: none;
  padding: 0.5rem 0;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--blue);
  transition: transform 0.2s;
  flex-shrink: 0;
}
details[open] .faq-q::after { transform: rotate(45deg); }
.faq-a {
  color: var(--slate);
  padding: var(--space-sm) 0 0;
  line-height: 1.7;
}

/* ============== FOOTER ============== */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: var(--space-2xl) 0 var(--space-md);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.footer-brand .logo { color: white; margin-bottom: var(--space-sm); }
.footer-brand p { color: rgba(255,255,255,0.65); max-width: 320px; font-size: 0.92rem; }
.footer-col h4 {
  color: white;
  font-family: var(--sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
  font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 0.92rem; }
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}
.disclaimer {
  background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--red);
  padding: var(--space-sm) var(--space-md);
  margin-top: var(--space-md);
  font-size: 0.83rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ============== INTERIOR PAGE HEADER ============== */
.page-hero {
  background: linear-gradient(180deg, var(--cream) 0%, white 100%);
  padding: var(--space-2xl) 0 var(--space-xl);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.page-hero .eyebrow { justify-content: center; }
.page-hero h1 { max-width: 800px; margin: 0 auto var(--space-md); }
.page-hero .lede { max-width: 700px; margin: 0 auto; }

/* ============== FORM ============== */
.form-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: white;
  padding: var(--space-lg);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.form-step {
  font-family: var(--sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.form-grid-full { grid-column: 1 / -1; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}
.form-field input,
.form-field select,
.form-field textarea {
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 1rem;
  background: white;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}
.form-field textarea { min-height: 110px; resize: vertical; font-family: var(--sans); }
.form-divider {
  margin: var(--space-lg) 0 var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
}
.form-divider h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.form-note {
  font-size: 0.85rem;
  color: var(--slate);
  margin-top: var(--space-md);
  padding: var(--space-sm);
  background: var(--line-soft);
  border-radius: var(--radius-sm);
  line-height: 1.5;
}
.form-submit { margin-top: var(--space-md); width: 100%; justify-content: center; }

/* ============== CONTACT ============== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-2xl);
  align-items: start;
}
.contact-info-card {
  background: var(--ink);
  color: white;
  padding: var(--space-lg);
  border-radius: var(--radius);
}
.contact-info-card h3 { color: white; }
.contact-info-card p { color: rgba(255,255,255,0.7); margin-bottom: var(--space-md); }
.contact-method {
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.contact-method:last-child { border-bottom: none; }
.contact-method-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.4rem;
}
.contact-method-value {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: white;
  font-weight: 500;
}
.contact-method-sub { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-top: 0.25rem; }

/* ============== HOW IT WORKS DETAIL ============== */
.process-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--line);
}
.process-detail:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.process-detail-num {
  font-family: var(--serif);
  font-size: 5rem;
  font-weight: 600;
  color: var(--blue);
  line-height: 0.9;
  opacity: 0.9;
}
.process-detail-content h3 { font-size: 1.7rem; margin-bottom: var(--space-sm); }
.process-detail-content p { color: var(--slate); }
.process-detail-content ul { color: var(--slate); padding-left: 1.25rem; margin: var(--space-sm) 0; }
.process-detail-content li { margin-bottom: 0.4rem; }
.process-detail-time {
  display: inline-block;
  background: rgba(30, 64, 175, 0.08);
  color: var(--blue);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: var(--space-sm);
}

/* ============== RESPONSIVE ============== */
@media (max-width: 900px) {
  .hero-grid, .split, .cta-band-inner, .contact-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-bar-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
  .form-grid { grid-template-columns: 1fr; }
  .process-detail { grid-template-columns: 1fr; gap: var(--space-sm); }
  .process-detail-num { font-size: 3.5rem; }
  .cta-band-actions { justify-content: flex-start; }
  .compare-row { grid-template-columns: 1.5fr 1fr 1fr; padding: 0.9rem 1rem; font-size: 0.85rem; }
  .section { padding: var(--space-2xl) 0; }
}

@media (max-width: 640px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: white; flex-direction: column; padding: var(--space-md); border-bottom: 1px solid var(--line); gap: 1rem; }
  .nav-links.open { display: flex; }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
  }
  .menu-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-bar-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}

/* Reveal animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-grid > * { animation: fadeUp 0.8s ease-out backwards; }
.hero-grid > *:nth-child(2) { animation-delay: 0.15s; }
