/* ============================================
   Mid-Michigan Trauma Cleanup — Design System
   Brand-agnostic, compassionate, professional
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0f1a2e;
  --navy-light: #1a2d4a;
  --navy-mid: #243b5a;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --blue-dark: #1d4ed8;
  --blue-subtle: #dbeafe;
  --teal: #059669;
  --teal-light: #10b981;
  --teal-subtle: #d1fae5;
  --amber: #d97706;
  --amber-light: #f59e0b;
  --white: #ffffff;
  --off-white: #e8edf4;
  --gray-50: #f1f5f9;
  --gray-100: #e2e8f0;
  --gray-200: #cbd5e1;
  --gray-300: #94a3b8;
  --gray-400: #64748b;
  --gray-500: #475569;
  --gray-600: #334155;
  --gray-700: #1e293b;
  --max-width: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--gray-500);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--blue-dark); }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- Typography --- */
h1, h2, h3, h4 { line-height: 1.25; color: var(--gray-700); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

/* --- Navigation --- */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.header-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 32px; max-width: 1400px; margin: 0 auto;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.1rem; font-weight: 700; color: var(--navy);
}
.logo img { width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0; }
.logo-text { line-height: 1.2; }
.logo-text .brand { display: block; color: var(--navy); font-size: 1.1rem; }
.logo-text .tagline { display: block; font-size: 0.65rem; font-weight: 400; color: var(--gray-300); letter-spacing: 0.04em; text-transform: uppercase; }

nav { display: flex; align-items: center; gap: 2px; }
nav a {
  color: var(--gray-400); font-weight: 500; font-size: 0.85rem;
  padding: 8px 10px; border-radius: var(--radius-sm);
  transition: all 0.15s; white-space: nowrap;
}
nav a:hover { background: var(--gray-50); color: var(--navy); text-decoration: none; }
.phone-cta {
  background: var(--blue) !important; color: var(--white) !important;
  padding: 10px 18px !important; border-radius: var(--radius-sm);
  font-weight: 600; margin-left: 4px; font-size: 0.85rem !important;
  box-shadow: var(--shadow); white-space: nowrap;
}
.phone-cta:hover { background: var(--blue-dark) !important; color: var(--white) !important; text-decoration: none !important; }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--navy); padding: 4px; }

/* --- Hero Section --- */
.hero {
  min-height: 85vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: 80px;
  background: var(--navy);
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.2;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15,26,46,0.97) 0%,
    rgba(15,26,46,0.85) 40%,
    rgba(26,45,74,0.7) 100%
  );
  z-index: 1;
}
.hero-grid {
  position: relative; z-index: 2;
  max-width: var(--max-width); margin: 0 auto; padding: 60px 24px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  width: 100%;
}
.hero-text { max-width: 600px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(37,99,235,0.25);
  padding: 8px 18px; border-radius: 50px;
  font-size: 0.8rem; font-weight: 500;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}
.hero-badge-dot {
  width: 6px; height: 6px; background: var(--teal-light);
  border-radius: 50%; animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 { color: var(--white); font-size: 3.2rem; margin-bottom: 1.25rem; line-height: 1.1; }
.hero h1 span { color: var(--blue-light); }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.7); margin-bottom: 2rem; line-height: 1.8; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px; margin-top: 2.5rem;
}
.hero-stat { text-align: left; }
.hero-stat strong {
  display: block; font-size: 1.8rem; color: var(--white); font-weight: 700;
}
.hero-stat span {
  font-size: 0.78rem; color: rgba(255,255,255,0.45);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.hero-visual-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 36px;
  backdrop-filter: blur(8px);
}
.hero-visual-card .icon-row {
  display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap;
}
.hero-visual-card .icon-tag {
  display: flex; align-items: center; gap: 6px;
  background: rgba(37,99,235,0.12);
  border: 1px solid rgba(37,99,235,0.2);
  padding: 6px 14px; border-radius: 6px;
  font-size: 0.78rem; color: rgba(255,255,255,0.8);
}
.hero-visual-card .icon-tag svg { flex-shrink: 0; }
.hero-visual-card .trust-text {
  font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.6;
}
.hero-visual-card .trust-text strong { color: rgba(255,255,255,0.9); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  border: none; transition: all 0.2s; text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--blue); color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--blue-dark); color: var(--white); box-shadow: var(--shadow-lg); }
.btn-outline-light {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.2);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-large { padding: 16px 32px; font-size: 1rem; }

/* --- Sections --- */
section { padding: 90px 24px; }
.section-alt { background: var(--off-white); }
section + section { border-top: 1px solid var(--gray-50); }
.section-alt + .section-alt { border-top: 1px solid rgba(0,0,0,0.04); }
.section-header { text-align: center; max-width: 650px; margin: 0 auto 3.5rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--gray-300); font-size: 1.05rem; }

/* --- Trust Bar --- */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding: 28px 0;
}
.trust-bar-inner {
  display: flex; justify-content: center; align-items: center;
  gap: 48px; flex-wrap: wrap;
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  color: var(--gray-400); font-size: 0.85rem; font-weight: 500;
}

/* --- Services Grid --- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; max-width: var(--max-width); margin: 0 auto;
}
.service-card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--blue-subtle);
}
.service-card .icon-wrap {
  width: 44px; height: 44px;
  background: var(--blue-subtle);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  color: var(--blue);
}
.service-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.service-card p { color: var(--gray-300); font-size: 0.9rem; margin-bottom: 0; }

/* Color variants for service cards */
.service-card:nth-child(2)::before { background: #7c3aed; }
.service-card:nth-child(2) .icon-wrap { background: #ede9fe; color: #7c3aed; }
.service-card:nth-child(3)::before { background: var(--teal); }
.service-card:nth-child(3) .icon-wrap { background: var(--teal-subtle); color: var(--teal); }
.service-card:nth-child(4)::before { background: #0891b2; }
.service-card:nth-child(4) .icon-wrap { background: #cffafe; color: #0891b2; }
.service-card:nth-child(5)::before { background: var(--amber); }
.service-card:nth-child(5) .icon-wrap { background: #fef3c7; color: var(--amber); }
.service-card:nth-child(6)::before { background: #dc2626; }
.service-card:nth-child(6) .icon-wrap { background: #fee2e2; color: #dc2626; }

/* --- Process Timeline --- */
.process-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 16px; max-width: var(--max-width); margin: 0 auto;
  position: relative;
}
.process-grid::before {
  content: ''; position: absolute; top: 40px; left: 10%; right: 10%;
  height: 2px; background: linear-gradient(to right, var(--blue), var(--teal));
  z-index: 0;
}
.process-card {
  text-align: center; position: relative; z-index: 1;
  padding: 0 8px;
}
.process-card .step-circle {
  width: 80px; height: 80px;
  background: var(--white);
  border: 2px solid var(--blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem; font-weight: 700; color: var(--blue);
  transition: all 0.3s;
}
.process-card:hover .step-circle {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 0 0 8px var(--blue-subtle);
}
.process-card h3 { font-size: 0.9rem; margin-bottom: 0.25rem; }
.process-card p { font-size: 0.8rem; color: var(--gray-300); margin: 0; }

/* --- Stats --- */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; max-width: var(--max-width); margin: 0 auto;
}
.stat-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 20px;
  border: 1px solid var(--gray-100);
  transition: all 0.2s;
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-card .stat-number {
  font-size: 2.8rem; font-weight: 800; color: var(--blue);
  line-height: 1; margin-bottom: 0.5rem;
}
.stat-card p { font-size: 0.9rem; color: var(--gray-300); margin: 0; }

/* --- Area Grid --- */
.area-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; max-width: var(--max-width); margin: 0 auto;
}
.area-card {
  background: var(--white); border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--gray-100);
  transition: all 0.2s;
  text-align: center;
}
.area-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); }
.area-card h3 { font-size: 1.1rem; margin-bottom: 0.25rem; color: var(--navy); }
.area-card p { font-size: 0.85rem; color: var(--gray-300); margin: 0; line-height: 1.5; }

/* --- Testimonials --- */
.testimonial-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; max-width: var(--max-width); margin: 0 auto;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--gray-100);
  position: relative;
}
.testimonial-card::before {
  content: '"'; position: absolute; top: 16px; left: 24px;
  font-size: 4rem; color: var(--gray-100); line-height: 1;
  font-family: Georgia, serif;
}
.testimonial-card p { font-size: 0.95rem; color: var(--gray-400); font-style: italic; padding-top: 16px; }
.testimonial-card .attribution {
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--gray-50);
  font-size: 0.85rem; font-weight: 600; color: var(--gray-600); font-style: normal;
}
.testimonial-card .attribution span { font-weight: 400; color: var(--gray-300); }

/* --- CTA Section --- */
.cta-section {
  background: var(--navy);
  color: var(--white); text-align: center; padding: 80px 24px;
}
.cta-section h2 { color: var(--white); font-size: 2.5rem; }
.cta-section p { color: rgba(255,255,255,0.65); max-width: 550px; margin: 0 auto 2rem; font-size: 1.05rem; }
.cta-phone {
  font-size: 2.2rem; font-weight: 700; color: var(--white);
  display: block; margin-bottom: 1rem; letter-spacing: -0.02em;
}
.cta-phone:hover { color: var(--blue-light); text-decoration: none; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-cta {
  background: var(--blue); color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-cta:hover { background: var(--blue-dark); color: var(--white); box-shadow: var(--shadow-lg); }
.btn-cta-secondary {
  background: rgba(255,255,255,0.1); color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-cta-secondary:hover { background: rgba(255,255,255,0.15); color: var(--white); }

/* --- Content Pages --- */
.page-hero {
  background: var(--navy);
  padding: 120px 24px 60px;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: 2.5rem; margin-bottom: 0.5rem; }
.page-hero p { color: rgba(255,255,255,0.6); max-width: 550px; margin: 0 auto; }
.content-section { padding: 80px 24px; }
.content-grid {
  max-width: 800px; margin: 0 auto;
}
.content-grid h2 { margin-top: 2.5rem; }
.content-grid p { color: var(--gray-400); }
.content-grid ul, .content-grid ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.content-grid li { margin-bottom: 0.5rem; color: var(--gray-400); }
.highlight-box {
  background: var(--off-white);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px; margin: 1.5rem 0;
}
.highlight-box p { margin: 0; font-size: 0.95rem; }
.highlight-box strong { color: var(--gray-600); }

/* --- Contact Grid --- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; max-width: var(--max-width); margin: 0 auto;
}
.contact-info h3 { margin-bottom: 0.5rem; }
.contact-info > p { color: var(--gray-300); max-width: 400px; }
.contact-details { margin-top: 2rem; }
.contact-detail {
  display: flex; gap: 14px; align-items: center;
  margin-bottom: 20px;
}
.contact-detail .icon-box {
  width: 44px; height: 44px;
  background: var(--blue-subtle);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}
.contact-detail strong { display: block; color: var(--gray-600); font-size: 0.9rem; }
.contact-detail span { font-size: 0.85rem; color: var(--gray-300); }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 14px 16px; border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm); font-size: 0.95rem;
  font-family: var(--font); transition: all 0.2s;
  background: var(--off-white);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none; border-color: var(--blue); background: var(--white);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}
.contact-form textarea { min-height: 130px; resize: vertical; }

/* --- FAQ --- */
.faq-list { max-width: 750px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-question {
  padding: 18px 22px; font-weight: 600; font-size: 0.95rem;
  color: var(--gray-600);
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; background: var(--white);
  transition: background 0.15s;
  gap: 16px;
}
.faq-question:hover { background: var(--off-white); }
.faq-question::after {
  content: '+'; font-size: 1.3rem; color: var(--blue);
  flex-shrink: 0; transition: transform 0.2s;
}
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer {
  padding: 0 22px; max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 400px; padding: 0 22px 18px;
}
.faq-answer p { color: var(--gray-300); font-size: 0.9rem; }

/* --- Footer --- */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 56px 24px 24px;
}
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; margin-bottom: 32px;
}
footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 1rem; }
footer p { font-size: 0.85rem; color: rgba(255,255,255,0.45); line-height: 1.7; }
footer a { color: rgba(255,255,255,0.55); font-size: 0.85rem; }
footer a:hover { color: var(--white); }
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px; text-align: center;
  max-width: var(--max-width); margin: 0 auto;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.3); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid::before { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual-card { display: none; }
  .hero-text { max-width: 100%; text-align: center; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero h1 { font-size: 2.5rem; }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 14px 20px; }
  .logo-text .brand { font-size: 1rem; }
  .logo-text .tagline { font-size: 0.6rem; }
  nav a { font-size: 0.8rem; padding: 8px 8px; }
  .phone-cta { font-size: 0.8rem !important; padding: 8px 14px !important; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  section { padding: 60px 24px; }
  .hero { min-height: 70vh; padding-top: 70px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero-grid { padding: 40px 24px; }
  .hero-stats { gap: 24px; }
  .hero-stat strong { font-size: 1.4rem; }

  nav { display: none; }
  nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-100);
    padding: 12px 16px; gap: 4px;
  }
  nav.open .phone-cta { margin-left: 0; margin-top: 4px; }
  .mobile-toggle { display: block; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; gap: 24px; }
  .area-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .cta-phone { font-size: 1.5rem; }
  .page-hero { padding: 100px 24px 40px; }
  .page-hero h1 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
}