/* =========================================================
   InspectMyCar — Design System
   Brand colors pulled directly from the logo.
   Display type: Big Shoulders Display (stamped, industrial — like a license plate)
   Body type: IBM Plex Sans
   Data/utility type: IBM Plex Mono (used for prices, VIN-style stats)
   ========================================================= */

:root {
  /* --- Brand colors (sampled from logo) --- */
  --navy-900: #081b3d;
  --navy-800: #0a306e;   /* primary brand navy */
  --navy-700: #144490;
  --navy-600: #1c56b3;
  --gold-500: #eea41d;   /* primary brand gold */
  --gold-600: #c9840d;
  --gold-700: #8a5709;   /* AA-contrast gold for small text on light backgrounds */
  --gold-100: #fdf1d9;

  /* --- Status colors (match the real inspection report dots) --- */
  --status-pass: #2f9e58;
  --status-caution: #eea41d;
  --status-alert: #d83a2f;

  /* --- Neutrals --- */
  --paper: #f5f7fb;
  --white: #ffffff;
  --ink-900: #161c2b;
  --ink-700: #2b3346;
  --ink-500: #646e83;
  --line: #e2e6ed;
  --line-strong: #c9d0dc;

  /* --- Type --- */
  --font-display: "Big Shoulders Display", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  /* --- Layout --- */
  --max-width: 1180px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 2px 4px rgba(8, 27, 61, 0.06), 0 12px 28px -8px rgba(8, 27, 61, 0.12);
  --shadow-lift: 0 18px 40px -12px rgba(8, 27, 61, 0.28);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy-900); margin: 0 0 0.4em; line-height: 1.05; letter-spacing: 0.01em; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

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

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

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold-700);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
  display: inline-block;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--navy { background: var(--navy-900); color: #cbd5ea; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--paper { background: var(--white); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lede { font-size: 1.1rem; color: var(--ink-500); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: 0 10px 24px -8px rgba(238, 164, 29, 0.6);
}
.btn-gold:hover { background: var(--gold-600); transform: translateY(-1px); }
.btn-navy {
  background: var(--navy-800);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-700); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); }
.btn-outline-navy {
  background: transparent;
  border-color: var(--navy-800);
  color: var(--navy-800);
}
.btn-outline-navy:hover { background: var(--navy-800); color: var(--white); }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.nav-logo img { height: 38px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a { color: var(--ink-700); padding: 8px 0; position: relative; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy-800); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  background: var(--gold-500);
  border-radius: 3px;
}
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-phone { font-family: var(--font-mono); font-weight: 500; font-size: 0.92rem; color: var(--navy-800); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle svg { width: 26px; height: 26px; color: var(--navy-900); }

.nav-links .mobile-cta { display: none; }

@media (max-width: 880px) {
  .nav-links { position: fixed; top: 78px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 18px; border-bottom: 1px solid var(--line); display: none; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 14px 0; }
  .nav-links .mobile-cta { display: block; border-top: none; padding-top: 10px; }
  .nav-links .mobile-cta a { display: inline-flex; }
  .nav-phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn { display: none; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-900);
  color: #9fb0cc;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-logo {
  display: inline-block;
  background: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.footer-logo img { height: 32px; margin-bottom: 0; display: block; }
.footer-tagline { font-style: italic; color: var(--gold-500); font-weight: 500; }
.footer h4 { color: var(--white); font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 0.94rem; }
.footer a:hover { color: var(--white); }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.85rem; }
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 80px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(238,164,29,0.10), transparent 60%),
    linear-gradient(180deg, #eef2f9 0%, var(--paper) 60%);
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 18px; }
.hero h1 .accent { color: var(--gold-600); }
.hero-sub { font-size: 1.15rem; color: var(--ink-500); max-width: 520px; margin-bottom: 28px; }
.hero-badges { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 32px; }
.hero-badge { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; font-weight: 600; color: var(--ink-700); }
.hero-badge svg { width: 20px; height: 20px; color: var(--status-pass); flex-shrink: 0; }

/* ---- Signature element: the animated "live report card" ---- */
.report-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--line);
  overflow: hidden;
  transform: rotate(1.2deg);
}
.report-card-head {
  background: var(--navy-800);
  background-image: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: var(--white);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.report-card-head .rc-title { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.02em; }
.report-card-head .rc-tag { font-family: var(--font-mono); font-size: 0.72rem; background: rgba(255,255,255,0.16); padding: 4px 10px; border-radius: 999px; }
.report-card-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.report-card-meta div { padding: 14px 16px; border-right: 1px solid var(--line); }
.report-card-meta div:last-child { border-right: none; }
.report-card-meta .rc-label { font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-500); display: block; margin-bottom: 4px; }
.report-card-meta .rc-value { font-weight: 700; font-size: 0.92rem; color: var(--navy-900); }
.report-card-list { padding: 8px 0; }
.rc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 24px;
  border-bottom: 1px solid #f0f2f7;
  opacity: 0;
  transform: translateX(-8px);
  animation: rc-in 0.5s ease forwards;
}
.rc-item:last-child { border-bottom: none; }
.rc-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #d8dde6;
  flex-shrink: 0;
  position: relative;
  transition: background 0.3s ease;
}
.rc-item.is-pass .rc-dot { background: var(--status-pass); animation: rc-pulse 0.5s ease 1; }
.rc-item.is-caution .rc-dot { background: var(--status-caution); animation: rc-pulse 0.5s ease 1; }
.rc-name { font-weight: 600; font-size: 0.94rem; color: var(--ink-700); flex: 1; }
.rc-status { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-500); opacity:0; transition: opacity .25s ease; }
.rc-item.revealed .rc-status { opacity: 1; }
.rc-item.is-pass .rc-status { color: var(--status-pass); }
.rc-item.is-caution .rc-status { color: var(--gold-700); }
.report-card-foot {
  background: var(--paper);
  padding: 16px 24px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-500);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}
@keyframes rc-in { to { opacity: 1; transform: translateX(0); } }
@keyframes rc-pulse { 0% { box-shadow: 0 0 0 0 rgba(0,0,0,0.18);} 100% { box-shadow: 0 0 0 8px rgba(0,0,0,0);} }

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .report-card { transform: none; max-width: 480px; }
}

/* ---------- Value trio (don't buy a lemon) ---------- */
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.trio-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.trio-card .dot-icon { margin-bottom: 16px; }
@media (max-width: 880px) { .trio { grid-template-columns: 1fr; } }

.dot-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dot-icon.pass { background: rgba(47,158,88,0.12); color: var(--status-pass); }
.dot-icon.alert { background: rgba(216,58,47,0.12); color: var(--status-alert); }
.dot-icon.gold { background: var(--gold-100); color: var(--gold-600); }
.dot-icon svg { width: 22px; height: 22px; }

/* ---------- Steps (how it works) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}
.step { position: relative; padding-top: 12px;}
.step-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--line-strong);
  -webkit-text-stroke: 1.5px var(--navy-800);
  color: transparent;
  line-height: 1;
  margin-bottom: 10px;
  display: block;
}
.step h3 { margin-bottom: 8px; font-size: 1.1rem; }
.step p { color: var(--ink-500); font-size: 0.95rem; margin-bottom: 0;}
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Category grid (what we inspect) ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow .2s ease;
}
.cat-card:hover { border-color: var(--navy-700); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.cat-num { font-family: var(--font-mono); color: var(--gold-700); font-size: 0.8rem; font-weight: 600; }
.cat-card h3 { margin: 10px 0 8px; font-size: 1.08rem; }
.cat-card p { font-size: 0.9rem; color: var(--ink-500); margin-bottom: 0; }
@media (max-width: 980px) { .cat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  position: relative;
}
.price-card.featured {
  border: 2px solid var(--gold-500);
  box-shadow: var(--shadow-lift);
  transform: translateY(-8px);
}
.price-flag {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold-500);
  color: var(--navy-900);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 999px;
}
.price-name { font-size: 1.2rem; margin-bottom: 4px; }
.price-desc { color: var(--ink-500); font-size: 0.92rem; margin-bottom: 20px; min-height: 42px; }
.price-amount { font-family: var(--font-mono); font-size: 2.4rem; font-weight: 600; color: var(--navy-900); margin-bottom: 4px; }
.price-amount span { font-size: 1rem; color: var(--ink-500); font-weight: 500; }
.price-note { font-size: 0.78rem; color: var(--ink-500); margin-bottom: 22px; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex: 1; }
.price-features li { display: flex; gap: 10px; font-size: 0.94rem; align-items: flex-start; }
.price-features svg { width: 18px; height: 18px; color: var(--status-pass); flex-shrink: 0; margin-top: 2px; }
@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr; } .price-card.featured { transform: none; } }

.price-disclaimer { text-align: center; font-size: 0.85rem; color: var(--ink-500); margin-top: 28px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  color: var(--white);
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: #cbd5ea; margin-bottom: 0; }
@media (max-width: 760px) { .cta-band { padding: 36px 28px; text-align: center; justify-content: center; } }

/* ---------- Service area ---------- */
.area-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 24px;
  font-weight: 600;
  color: var(--navy-800);
}
.area-list li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 0.95rem; }
@media (max-width: 760px) { .area-list { grid-template-columns: 1fr 1fr; } }

/* ---------- Cards generic ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

/* ---------- Two-col layout helper ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--navy-900);
  cursor: pointer;
  gap: 16px;
}
.faq-q svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.2s ease; color: var(--gold-600); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  color: var(--ink-500);
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding-top: 14px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--navy-900); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink-900);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--navy-700);
  outline: none;
}
.form-note { font-size: 0.82rem; color: var(--ink-500); margin-top: 10px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Misc ---------- */
.tag-list { display: flex; gap: 10px; flex-wrap: wrap; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  background: var(--navy-900);
  color: var(--gold-500);
  padding: 6px 12px;
  border-radius: 999px;
}
.divider { height: 1px; background: var(--line); margin: 0; }
.muted { color: var(--ink-500); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }

.page-hero {
  padding: 64px 0 48px;
  background: linear-gradient(180deg, #eef2f9 0%, var(--paper) 100%);
  text-align: center;
}
.page-hero .eyebrow { justify-content: center; }
.page-hero p.lede { margin: 0 auto; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold-500);
  color: var(--navy-900);
  padding: 10px 16px;
  z-index: 100;
  font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }
