/* Pritchard Brothers Autos — original 2026 theme for a 2019 archive rebuild.
   Clean, trustworthy independent dealer look. No original theme CSS. */
:root {
  --navy: #12233a;
  --navy-deep: #0b1726;
  --navy-mid: #1c3550;
  --paper: #f3efe6;
  --cream: #faf8f3;
  --ink: #1a1d21;
  --muted: #5a6270;
  --line: #d7d0c4;
  --accent: #b31b28;
  --accent-dark: #8e1420;
  --gold: #ac8a42;
  --white: #fff;
  --shadow: 0 12px 32px rgba(18, 35, 58, 0.08);
  --radius: 12px;
  --max: 1140px;
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}
.skip:focus { left: 0.75rem; top: 0.75rem; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Top bar */
.topbar {
  background: var(--navy-deep);
  color: #d5dbe3;
  font-size: 0.85rem;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
}
.topbar a { color: #fff; }
.topbar a:hover { color: #f3d48a; text-decoration: none; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1rem 0 0.85rem;
}
.logo-link { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.logo-link img { height: 64px; width: auto; }
.logo-fallback {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy);
  font-size: 1.15rem;
  line-height: 1.2;
}
.logo-fallback span { display: block; font-weight: 500; font-size: 0.8rem; color: var(--muted); letter-spacing: 0.02em; }
.header-contact { text-align: right; font-size: 0.92rem; color: var(--navy); }
.header-contact .phone-main {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  display: inline-block;
}
.header-contact .phone-main:hover { color: var(--accent-dark); }
.header-contact p { margin: 0.15rem 0 0; color: var(--muted); }

/* Nav */
.nav-bar { background: var(--navy); }
.nav-bar .wrap { display: flex; align-items: center; }
#nav-toggle { position: absolute; left: -999px; }
.nav-toggle {
  display: none;
  color: #fff;
  padding: 0.85rem 0;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.nav-toggle::before { content: "Menu"; }
#nav-toggle:checked + .nav-toggle::before { content: "Close"; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0; width: 100%; }
.site-nav a {
  color: #e8edf3;
  text-decoration: none;
  padding: 0.85rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  display: inline-block;
}
.site-nav a:hover { color: #fff; background: var(--navy-mid); text-decoration: none; }
.site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }

/* Hero */
.hero { position: relative; background: var(--navy-deep); color: #fff; overflow: hidden; }
.hero-slides {
  position: relative;
  min-height: 280px;
  height: min(56vw, 520px);
  background: var(--navy-deep);
}
.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroFade 36s infinite;
}
.hero-slides img:nth-child(1) { animation-delay: 0s; }
.hero-slides img:nth-child(2) { animation-delay: 6s; }
.hero-slides img:nth-child(3) { animation-delay: 12s; }
.hero-slides img:nth-child(4) { animation-delay: 18s; }
.hero-slides img:nth-child(5) { animation-delay: 24s; }
.hero-slides img:nth-child(6) { animation-delay: 30s; }
@keyframes heroFade {
  0% { opacity: 0; }
  3% { opacity: 1; }
  14% { opacity: 1; }
  17% { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slides img { animation: none; opacity: 0; }
  .hero-slides img:first-child { opacity: 1; }
}
.hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(11, 23, 38, 0.88), rgba(11, 23, 38, 0.15) 70%, transparent);
  padding: 4rem 0 1.75rem;
}
.hero-overlay h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  letter-spacing: 0.03em;
  font-weight: 700;
}
.hero-overlay .kicker {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
.hero-overlay p { margin: 0; max-width: 42rem; color: #e4e9ef; }

/* Page title band */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 2.2rem 0;
}
.page-hero h1 { margin: 0 0 0.35rem; font-size: clamp(1.6rem, 2.5vw, 2.2rem); }
.page-hero p { margin: 0; color: #d5dbe3; max-width: 46rem; }

/* Sections */
.section { padding: 3rem 0; }
.section h2, .section-title {
  margin: 0 0 1rem;
  font-size: 1.65rem;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.section-title::after, .footer-col h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--gold);
  margin-top: 0.5rem;
}
.lede { font-size: 1.05rem; color: var(--muted); max-width: 46rem; }
.prose p { margin: 0 0 1rem; max-width: 46rem; }
.prose h2 { margin-top: 2rem; }

.auction-banner {
  background: var(--paper);
  border-left: 4px solid var(--accent);
  padding: 1.1rem 1.25rem;
  margin: 0 0 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.auction-banner strong { color: var(--accent); font-size: 1.15rem; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: 0.7rem 1.15rem;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none !important;
  border: 0;
  cursor: pointer;
  font-size: 0.95rem;
}
.btn:hover { background: var(--accent-dark); }
.btn-ghost {
  background: transparent;
  color: var(--navy) !important;
  border: 1px solid var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: #fff !important; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.25rem; }

/* Inventory cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}
.vehicle-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.vehicle-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(18, 35, 58, 0.14);
  text-decoration: none;
  color: inherit;
}
.vehicle-card .media {
  background: var(--navy-mid);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}
.vehicle-card .media img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-photo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  color: #d5dbe3;
  background:
    linear-gradient(160deg, var(--navy-mid), var(--navy-deep));
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}
.vehicle-card .body { padding: 0.95rem 1rem 1.1rem; flex: 1; display: flex; flex-direction: column; }
.vehicle-card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; color: var(--navy); line-height: 1.3; }
.price { font-size: 1.25rem; font-weight: 800; color: var(--accent); margin: 0 0 0.5rem; }
.specs { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.88rem; }
.specs li { margin: 0.1rem 0; }

/* Inventory list (full) */
.inv-list { display: flex; flex-direction: column; gap: 1.25rem; }
.inv-row {
  display: grid;
  grid-template-columns: 260px 1fr auto;
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}
.inv-row:hover { box-shadow: 0 16px 36px rgba(18, 35, 58, 0.12); text-decoration: none; color: inherit; }
.inv-row .media { aspect-ratio: 16 / 11; background: var(--navy-mid); }
.inv-row .media img, .inv-row .placeholder-photo { width: 100%; height: 100%; object-fit: cover; }
.inv-row .body { padding: 1rem 0.25rem; }
.inv-row h2 { margin: 0 0 0.4rem; font-size: 1.2rem; color: var(--navy); }
.inv-row .price { text-align: right; padding: 1.1rem 1.2rem 0 0; }
.inv-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0.15rem 1rem; margin: 0; }
.inv-meta div { font-size: 0.9rem; color: var(--muted); }
.inv-meta strong { color: var(--ink); font-weight: 650; }

/* Vehicle detail */
.vehicle-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2rem;
  align-items: start;
}
.gallery-stage {
  background: var(--navy-deep);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 240px;
}
.gallery-stage img { width: 100%; height: auto; max-height: 520px; object-fit: contain; margin: 0 auto; background: #0b1726; }
.thumbs { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.7rem; }
.thumbs label { cursor: pointer; display: block; width: 76px; border: 2px solid transparent; border-radius: 6px; overflow: hidden; }
.gallery input { position: absolute; opacity: 0; pointer-events: none; }
.thumbs img { width: 76px; height: 54px; object-fit: cover; }
.facts {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}
.facts h1 { margin: 0 0 0.4rem; font-size: 1.45rem; color: var(--navy); }
.facts dl { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; margin: 1rem 0; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; }
.disclaimer { font-size: 0.82rem; color: var(--muted); margin-top: 1rem; }
.note { font-size: 0.9rem; color: var(--muted); background: var(--paper); padding: 0.8rem 1rem; border-radius: 8px; }

/* Tables */
.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.92rem;
}
table.data th, table.data td {
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0.7rem;
  text-align: left;
  vertical-align: top;
}
table.data th { background: var(--navy); color: #fff; font-weight: 600; }
table.data tr:nth-child(even) td { background: #faf8f3; }
.vin { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85em; }

/* Staff / contact */
.staff-grid, .split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}
.card h2 { margin-top: 0; }
.staff-list { list-style: none; margin: 0; padding: 0; }
.staff-list li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.staff-list li:last-child { border-bottom: 0; }
.staff-list span { display: block; color: var(--muted); font-size: 0.9rem; }
.map-frame { border: 0; width: 100%; height: 360px; border-radius: var(--radius); }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { margin: 0.3rem 0; }

form.simple label { display: block; font-weight: 650; margin: 0.7rem 0 0.25rem; }
form.simple input, form.simple textarea {
  width: 100%;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  background: #fff;
}
form.simple textarea { min-height: 140px; resize: vertical; }
form.simple .btn { margin-top: 1rem; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #d5dbe3;
  padding: 2.6rem 0 1.4rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem 1.5rem;
}
.footer-col h2 {
  color: #fff;
  font-size: 1.05rem;
  margin: 0 0 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-col a { color: #e8edf3; }
.footer-col a:hover { color: #f3d48a; text-decoration: none; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0.3rem 0; }
.partners-blogroll {
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: 1.5rem;
}
.partners-blogroll:empty, .partners-placeholder {
  color: #8b95a3;
  font-size: 0.9rem;
  font-style: italic;
}
.legal {
  border-top: 1px solid #24364d;
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.8rem;
  color: #8b95a3;
}
.legal a { color: #c5ccd6; }
.archive-note {
  background: #ece6da;
  color: #3c4148;
  font-size: 0.82rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
}
.social-row { display: flex; gap: 0.7rem; align-items: center; margin-top: 0.8rem; }
.social-row img { height: 40px; width: auto; }

/* Hours / utilities */
.hours { margin: 0; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

@media (max-width: 860px) {
  .inv-row { grid-template-columns: 1fr; }
  .inv-row .price { text-align: left; padding: 0 1rem 1rem; }
  .inv-row .body { padding: 1rem; }
  .vehicle-layout, .staff-grid, .split { grid-template-columns: 1fr; }
  .header-contact { text-align: left; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    flex-direction: column;
    padding-bottom: 0.5rem;
  }
  #nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav a { border-bottom: 0; border-left: 3px solid transparent; }
  .site-nav a[aria-current="page"] { border-left-color: var(--gold); border-bottom-color: transparent; }
  .logo-link img { height: 52px; }
  .topbar .wrap { flex-direction: column; align-items: flex-start; }
}
