/* CarCheck: same look as carcheck.com (white page, red and black logo,
   Arial text, gray condensed navigation), cleaned up to work on phones. */

:root {
  --red: #ff0000;        /* logo red, used for large elements */
  --red-text: #cc0000;   /* darker red for text, as on the old site */
  --black: #000000;
  --text: #1a1a1a;
  --muted: #555555;
  --nav: #767676;        /* old site's gray buttons, darkened to be readable */
  --line: #dddddd;
  --panel: #f6f6f6;
  --width: 720px;
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a { color: var(--red-text); }
a:hover { color: var(--black); }

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

/* ---- header ------------------------------------------------------------ */

.site-header { text-align: center; }

.logo-link { display: inline-block; }
.logo-link img { display: block; width: 228px; height: auto; max-width: 100%; }

.tagline {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--muted);
}

/* ---- navigation (old site: gray condensed buttons, black on hover) ------ */

.site-nav ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
}

.site-nav a {
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.2px;
  color: var(--nav);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--black); }

.site-nav .free { color: var(--red); }

/* ---- home page --------------------------------------------------------- */

.car-animation {
  display: block;
  margin: 8px auto 0;
  width: 450px;
  max-width: 100%;
  height: auto;
}

.slogan {
  text-align: center;
  font-weight: bold;
  font-size: 20px;
  margin: 18px 0 0;
}

/* ---- content ----------------------------------------------------------- */

main { margin-top: 28px; }

h1 { font-size: 24px; margin: 0 0 12px; }
h2 { font-size: 20px; margin: 28px 0 10px; }

.closing {
  text-align: center;
  font-weight: bold;
  font-style: italic;
  color: var(--red-text);
  margin-top: 28px;
}

.partner-box {
  margin-top: 32px;
  font-size: 15px;
}
.partner-box h2 { font-size: 17px; margin-top: 0; }

.button-link {
  display: inline-block;
  margin-top: 6px;
  padding: 10px 18px;
  background: var(--red);
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
}
.button-link:hover { background: var(--black); color: #ffffff; }

.archive figure { margin: 16px 0 0; }
.archive img { max-width: 100%; height: auto; border: 1px solid var(--line); }
.archive figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ---- VIN box ----------------------------------------------------------- */

.vin-box {
  margin-top: 28px;
  padding: 20px;
  border: 2px solid var(--black);
  border-radius: 6px;
}

.vin-box h2 { margin: 0 0 4px; font-size: 22px; }
.vin-box p { margin: 0 0 12px; }

.vin-row { display: flex; gap: 8px; flex-wrap: wrap; }

.vin-row input {
  flex: 1 1 260px;
  min-width: 0;
  padding: 11px 12px;
  font-size: 18px;
  font-family: "Courier New", monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid #888888;
  border-radius: 4px;
}

.vin-row button {
  flex: 0 0 auto;
  padding: 11px 22px;
  font-size: 17px;
  font-weight: bold;
  color: #ffffff;
  background: var(--red);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
.vin-row button:hover { background: var(--black); }

[aria-busy="true"] button { opacity: 0.6; cursor: wait; }

.vin-status { margin: 10px 0 0; min-height: 1.5em; font-size: 15px; }
.vin-status.is-error { color: var(--red-text); font-weight: bold; }

/* ---- CarCheck Vehicle Report ------------------------------------------- */

.report {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.report-head { padding: 16px 20px; background: var(--panel); border-bottom: 3px solid var(--red); }
.report-brand { margin: 0; font-weight: bold; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--red-text); }
.report-vehicle { margin: 2px 0 4px; font-size: 24px; }
.report-meta { margin: 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }

.report-section { padding: 16px 20px; border-top: 1px solid var(--line); }
.report-head + .report-section,
.report-warning + .report-section { border-top: 0; }
.report-section h3 { margin: 0 0 10px; font-size: 18px; }

.report-source { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.report-note { font-size: 14px; color: var(--muted); }

.report-warning {
  margin: 12px 20px 0;
  padding: 10px 12px;
  background: #fff4f4;
  border-left: 4px solid var(--red);
  font-size: 14px;
}

.spec-list {
  display: grid;
  grid-template-columns: minmax(120px, 38%) 1fr;
  gap: 4px 16px;
  margin: 0;
}
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; font-weight: bold; overflow-wrap: anywhere; }

.report-specs { margin-top: 12px; }
.report-specs summary,
.recall summary { cursor: pointer; color: var(--red-text); font-weight: bold; }
.report-specs[open] summary { margin-bottom: 10px; }
.report-specs .spec-list dd { font-weight: normal; }

.salvage-clear,
.salvage-found { margin: 0; }
.salvage-found strong { color: var(--red-text); }

.recall-count { font-weight: bold; margin: 0 0 4px; }
.recall-list { margin-top: 8px; }
.recall { border-top: 1px solid var(--line); padding: 8px 0; }
.recall summary { display: flex; gap: 12px; color: var(--text); font-weight: normal; }
.recall-date { flex: 0 0 96px; color: var(--muted); font-size: 14px; padding-top: 1px; }
.recall-component { font-weight: bold; }
.recall p { font-size: 14px; margin: 8px 0 0; }

.more-checks { list-style: none; margin: 0; padding: 0; }
.more-checks li { padding: 8px 0; border-top: 1px solid var(--line); }
.more-checks li:first-child { border-top: 0; padding-top: 0; }
.more-checks a { font-weight: bold; }
.more-checks span { display: block; font-size: 14px; color: var(--muted); }

.report-vin-copy { margin: 12px 0 0; font-size: 14px; }
.report-vin-copy code { font-size: 15px; }

.copy-button {
  margin-left: 6px;
  padding: 3px 10px;
  font-size: 13px;
  border: 1px solid #888888;
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
}

/* ---- footer ------------------------------------------------------------ */

.site-footer {
  margin-top: 48px;
  text-align: center;
  font-size: 14px;
}
.site-footer .phone { font-size: 18px; font-weight: bold; }
.site-footer .copyright { margin-top: 14px; font-size: 12px; }

@media (max-width: 520px) {
  .slogan { font-size: 18px; }
  .report-vehicle { font-size: 21px; }
  .spec-list { grid-template-columns: 1fr; gap: 0; }
  .spec-list dd { margin-bottom: 6px; }
  .recall summary { flex-direction: column; gap: 0; }
  .recall-date { flex: none; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
