:root {
  --ink: #0f1720;
  --muted: #607080;
  --line: #d9e2ea;
  --paper: #ffffff;
  --soft: #f3f6f8;
  --charcoal: #101820;
  --graphite: #1f2b36;
  --blue: #0866a8;
  --cyan: #29a7d9;
  --red: #d51f2a;
  --yellow: #f7c948;
  --green: #16815a;
  --shadow: 0 24px 70px rgba(9, 24, 39, 0.18);
  --soft-shadow: 0 16px 42px rgba(18, 35, 50, 0.10);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(15, 23, 32, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 23, 32, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  line-height: 1.55;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.topbar {
  background: var(--charcoal);
  color: #ecf3f8;
  font-size: 0.91rem;
  border-bottom: 3px solid var(--red);
}

.topbar .wrap,
.nav .wrap,
.section,
.footer .wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar .wrap {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar a { text-decoration: none; font-weight: 850; color: #fff; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(15, 23, 32, 0.10);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(15, 23, 32, 0.06);
}

.nav .wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  min-width: 250px;
}

.brand-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--red), #9c111a 55%, var(--charcoal) 56%);
  color: #fff;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: 0 12px 28px rgba(213, 31, 42, 0.24);
}

.brand strong { display: block; font-size: 1.08rem; line-height: 1.05; }
.brand span { display: block; color: var(--muted); font-size: 0.84rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 850;
  font-size: 0.93rem;
}

.nav-links a {
  text-decoration: none;
  color: #263645;
  padding: 10px 11px;
  border-radius: 8px;
}

.nav-links a:hover {
  background: #eef4f8;
  color: var(--blue);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 900;
}

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 13px 19px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(213, 31, 42, 0.26);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover,
button.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(213, 31, 42, 0.31);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.94);
  color: var(--charcoal);
  border-color: rgba(255,255,255,0.55);
  box-shadow: 0 16px 36px rgba(6, 20, 35, 0.22);
}

.btn.dark {
  background: var(--charcoal);
  box-shadow: 0 16px 34px rgba(15, 23, 32, 0.22);
}

.hero {
  min-height: 735px;
  position: relative;
  isolation: isolate;
  color: #fff;
  overflow: hidden;
  background: var(--charcoal);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(102deg, rgba(8, 17, 26, 0.98) 0%, rgba(13, 35, 55, 0.90) 42%, rgba(12, 39, 62, 0.30) 72%, rgba(12, 39, 62, 0.08) 100%),
    url("../images/collision-center-hero.png") center right / cover no-repeat;
  z-index: -3;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -48px -10%;
  height: 160px;
  background: var(--paper);
  transform: rotate(-2.2deg);
  transform-origin: left bottom;
  z-index: -1;
}

.hero-accent {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

.hero-accent::before,
.hero-accent::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.20);
  transform: skewX(-14deg);
}

.hero-accent::before {
  width: 360px;
  height: 82px;
  left: -80px;
  top: 135px;
  border-left: 12px solid var(--red);
}

.hero-accent::after {
  width: 520px;
  height: 110px;
  right: -200px;
  bottom: 160px;
  border-right: 12px solid var(--cyan);
}

.hero .section {
  padding: 92px 0 150px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: end;
}

.hero-copy {
  max-width: 810px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--yellow);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.8rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: currentColor;
  border-radius: 999px;
}

h1, h2, h3 { line-height: 1.06; margin: 0 0 16px; letter-spacing: 0; }
h1 { font-size: clamp(2.7rem, 5.3vw, 5.8rem); max-width: 850px; }
h2 { font-size: clamp(2rem, 3.2vw, 3.35rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 16px; }

.hero p {
  max-width: 660px;
  font-size: 1.19rem;
  color: #e8f0f7;
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-metrics {
  display: grid;
  gap: 12px;
  align-self: stretch;
}

.metric-card {
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 18px;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.20);
}

.metric-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.metric-card span {
  color: #d9e6ef;
  font-weight: 750;
  font-size: 0.92rem;
}

.damage-type-bar {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.damage-type-bar span {
  color: #fff;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 850;
  font-size: 0.9rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--charcoal);
  border: 1px solid rgba(15, 23, 32, 0.08);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: -72px;
  position: relative;
  z-index: 3;
}

.trust-strip div {
  background: #fff;
  padding: 24px 22px;
  border-right: 1px solid var(--line);
  position: relative;
}

.trust-strip div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--yellow), var(--cyan));
}

.trust-strip div:last-child { border-right: 0; }
.trust-strip strong { display: block; font-size: 1.08rem; }
.trust-strip span { color: var(--muted); font-size: 0.94rem; }

.section { padding: 88px 0; }
.section.tight { padding: 54px 0; }

.section.soft {
  background:
    radial-gradient(circle at 14% 0%, rgba(41, 167, 217, 0.10), transparent 32%),
    linear-gradient(180deg, #f6f8fa 0%, #eef3f6 100%);
  width: 100%;
  max-width: none;
}

.section.soft > .inner,
.section.band > .inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section.band {
  background:
    linear-gradient(135deg, rgba(213, 31, 42, 0.22), transparent 36%),
    linear-gradient(90deg, #101820 0%, #172532 100%);
  color: #fff;
  width: 100%;
  max-width: none;
  position: relative;
  overflow: hidden;
}

.section.band::after {
  content: "";
  position: absolute;
  right: -90px;
  top: 24px;
  width: 340px;
  height: 86px;
  border: 1px solid rgba(255,255,255,0.17);
  border-right: 12px solid var(--red);
  transform: skewX(-14deg);
}

.section.band p { color: #dfe9f1; }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 46px;
  align-items: center;
}

.grid-3,
.grid-4,
.grid-2 {
  display: grid;
  gap: 18px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  border: 1px solid rgba(15, 23, 32, 0.09);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.96);
  padding: 25px;
  box-shadow: var(--soft-shadow);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0;
  transition: opacity 160ms ease;
}

.card:hover::after { opacity: 1; }
.card h3 { font-size: 1.18rem; }
.card p, .lead, li { color: var(--muted); }

.card .icon,
.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--charcoal);
  color: #fff;
  font-weight: 950;
  margin-bottom: 17px;
  box-shadow: 10px 10px 0 rgba(213, 31, 42, 0.12);
}

.feature-list {
  display: grid;
  gap: 11px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 11px;
}

.feature-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  margin-top: 0.48em;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(22, 129, 90, 0.12);
}

.answer-box {
  border: 1px solid rgba(15, 23, 32, 0.10);
  border-left: 7px solid var(--red);
  background:
    linear-gradient(135deg, rgba(41, 167, 217, 0.10), transparent 42%),
    #fff;
  padding: 26px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.answer-box h3 { font-size: 1.45rem; }

.service-pill-grid,
.brand-grid,
.area-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.pill {
  border: 1px solid rgba(15, 23, 32, 0.10);
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  color: #243447;
  text-decoration: none;
  font-size: 0.92rem;
  box-shadow: 0 8px 22px rgba(20, 36, 52, 0.06);
}

.process { counter-reset: step; }

.process .card {
  padding-top: 64px;
}

.process .card::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 20px;
  left: 22px;
  color: var(--red);
  font-weight: 950;
  font-size: 1.25rem;
}

.quote-panel {
  background:
    linear-gradient(135deg, rgba(41, 167, 217, 0.10), transparent 36%),
    #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-grid .full { grid-column: 1 / -1; }

label {
  display: grid;
  gap: 6px;
  color: #2f3b4a;
  font-weight: 850;
  font-size: 0.9rem;
}

input, textarea, select {
  width: 100%;
  border: 1px solid #c8d3dd;
  border-radius: 8px;
  padding: 12px 13px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(41, 167, 217, 0.25);
  border-color: var(--cyan);
}

textarea { min-height: 126px; resize: vertical; }
.note { color: var(--muted); font-size: 0.9rem; }

.page-hero {
  background:
    linear-gradient(135deg, rgba(213, 31, 42, 0.23), transparent 34%),
    linear-gradient(90deg, #101820, #172532);
  color: #fff;
  padding: 78px 0;
  overflow: hidden;
  position: relative;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: 28px;
  width: 430px;
  height: 92px;
  border: 1px solid rgba(255,255,255,0.18);
  border-right: 12px solid var(--cyan);
  transform: skewX(-14deg);
}

.page-hero .section { padding: 0; position: relative; z-index: 1; }
.page-hero p { color: #dce8f4; max-width: 790px; font-size: 1.14rem; }

.faq details {
  border: 1px solid rgba(15, 23, 32, 0.10);
  border-radius: 8px;
  background: #fff;
  padding: 19px 21px;
  box-shadow: 0 8px 28px rgba(18, 39, 64, 0.06);
}

.faq details + details { margin-top: 12px; }
.faq summary { cursor: pointer; font-weight: 950; }
.faq p { margin-top: 12px; }

.footer {
  background:
    linear-gradient(135deg, rgba(213, 31, 42, 0.16), transparent 34%),
    #08121b;
  color: #fff;
  padding: 58px 0 28px;
}

.footer a { color: #fff; text-decoration: none; }
.footer p, .footer li { color: #cbd7e5; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.copyright { border-top: 1px solid rgba(255,255,255,0.16); margin-top: 34px; padding-top: 20px; color: #b9c7d7; }

.sticky-call { display: none; }

@media (max-width: 980px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: inline-flex; }
  .hero .section { grid-template-columns: 1fr; padding: 74px 0 118px; }
  .hero-metrics { grid-template-columns: repeat(3, 1fr); }
  .split, .grid-3, .grid-4, .grid-2, .footer-grid, .trust-strip { grid-template-columns: 1fr; }
  .trust-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-strip div:last-child { border-bottom: 0; }
  .hero { min-height: auto; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar .wrap { justify-content: center; text-align: center; }
  .brand { min-width: 0; }
  .brand strong { font-size: 0.98rem; }
  .brand span span { display: none; }
  .hero::before {
    background:
      linear-gradient(90deg, rgba(8, 17, 26, 0.98), rgba(13, 35, 55, 0.76)),
      url("../images/collision-center-hero.png") center / cover no-repeat;
  }
  .hero-metrics { grid-template-columns: 1fr; }
  .section { padding: 62px 0; }
  .trust-strip { margin-top: -42px; }
  .sticky-call {
    display: grid;
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 50;
  }
  body { padding-bottom: 76px; }
}
