/* Coddfather's PreOwned Autos — mobile-first styles */
:root {
  --navy-950: #071018;
  --navy-900: #0b1a26;
  --navy-800: #122536;
  --navy-700: #1a3348;
  --navy-600: #25455e;
  --gold-500: #c9a84c;
  --gold-400: #d4b85e;
  --gold-300: #e8d48b;
  --gold-700: #8a6f28;
  --gold-800: #6b5520;
  --cream: #f4efe4;
  --cream-100: #faf7f1;
  --cream-200: #ebe4d4;
  --ink: #12171c;
  --muted: #5a6570;
  --line: #d9d2c5;
  --line-dark: #2a3d4d;
  --white: #ffffff;
  --success: #1f7a4d;
  --success-bg: #e8f5ee;
  --danger: #9b2c2c;
  --danger-bg: #fdeeee;
  --warn-bg: #f8efd6;
  --warn-ink: #5c4308;
  --shadow: 0 10px 30px rgba(7, 16, 24, 0.12);
  --shadow-lg: 0 20px 50px rgba(7, 16, 24, 0.22);
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 4.25rem;
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", Roboto, sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream-100);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-800); }
a:hover { color: var(--gold-700); }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy-900);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.15rem, 6vw, 3.75rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.35rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--gold-500);
  color: var(--navy-950);
  padding: 0.5rem 1rem;
  z-index: 1000;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.container-narrow { width: min(100% - 2rem, 760px); margin-inline: auto; }

/* Header */
.site-header {
  background: var(--navy-950);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.logo:hover { color: inherit; }
.logo-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-word {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cream-100);
}
.logo-sub {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-400);
  font-weight: 600;
  margin-top: 0.2rem;
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid var(--line-dark);
  color: var(--cream);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 2px;
}
.site-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-h);
  background: var(--navy-900);
  padding: 0.75rem 1rem 1.1rem;
  border-bottom: 1px solid var(--line-dark);
}
.site-nav.is-open { display: flex; }
.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-sm);
}
.site-nav a:hover { color: var(--gold-300); background: rgba(255,255,255,0.04); }
.site-nav a[aria-current="page"] { color: var(--gold-300); }
.header-phone {
  display: none;
  color: var(--gold-300);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}
.header-phone:hover { color: var(--gold-400); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: var(--gold-500);
  color: var(--navy-950);
  border-color: var(--gold-500);
}
.btn-gold:hover { background: var(--gold-400); color: var(--navy-950); }
.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: rgba(232, 212, 139, 0.55);
}
.btn-outline:hover { border-color: var(--gold-300); color: var(--gold-300); }
.btn-outline-dark {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--navy-900);
}
.btn-outline-dark:hover { background: var(--navy-900); color: var(--cream); }
.btn-navy {
  background: var(--navy-900);
  color: var(--cream);
  border-color: var(--navy-900);
}
.btn-navy:hover { background: var(--navy-700); color: var(--cream); }
.btn-block { width: 100%; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }

/* Hero */
.hero {
  background:
    radial-gradient(ellipse 80% 70% at 80% 10%, rgba(201, 168, 76, 0.18), transparent 50%),
    linear-gradient(165deg, var(--navy-950) 0%, var(--navy-800) 60%, #163044 100%);
  color: var(--cream);
  padding: 3rem 0 3.4rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-700), var(--gold-400), var(--gold-700));
}
.hero-kicker {
  display: inline-block;
  color: var(--gold-400);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 0.85rem;
}
.hero h1 { color: var(--cream-100); margin-bottom: 0.6rem; max-width: 16ch; }
.hero-lead {
  font-size: 1.15rem;
  color: rgba(244, 239, 228, 0.86);
  max-width: 38rem;
  margin-bottom: 0;
}
.hero-areas {
  margin-top: 1.25rem;
  color: var(--gold-300);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* Trust bar */
.trust-bar {
  background: var(--navy-900);
  color: var(--cream-200);
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line-dark);
}
.trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}
.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.trust-list svg { flex-shrink: 0; margin-top: 0.15rem; color: var(--gold-400); }

/* Sections */
.section { padding: 3.2rem 0; }
.section-muted { background: var(--cream); }
.section-navy {
  background: var(--navy-900);
  color: var(--cream);
}
.section-navy h2, .section-navy h3 { color: var(--cream-100); }
.section-intro { color: var(--muted); max-width: 40rem; margin-bottom: 1.75rem; }
.section-navy .section-intro { color: rgba(244, 239, 228, 0.75); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.2rem;
  box-shadow: 0 2px 8px rgba(7,16,24,0.04);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-400);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
}
.step h3 { margin-bottom: 0.3rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.areas-grid, .split {
  display: grid;
  gap: 1rem;
}
.area-card, .panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
}
.area-card h3 { font-size: 1.45rem; margin-bottom: 0.35rem; }
.area-card p { margin: 0; color: var(--muted); }

.financing-cta {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

/* Inventory cards */
.vehicle-grid {
  display: grid;
  gap: 1.15rem;
}
.vehicle-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(7,16,24,0.05);
  transition: transform 0.15s, box-shadow 0.15s;
}
a.vehicle-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: inherit;
}
.vehicle-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, var(--navy-800), var(--accent, var(--navy-700)));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.vehicle-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vehicle-photo svg.car-silhouette {
  width: 78%;
  height: auto;
  opacity: 0.92;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.35));
}
.example-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  background: var(--gold-500);
  color: var(--navy-950);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.5rem;
  border-radius: 4px;
  z-index: 1;
}
.location-chip {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  background: rgba(7, 16, 24, 0.78);
  color: var(--cream);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}
.vehicle-body { padding: 1rem 1.05rem 1.15rem; flex: 1; display: flex; flex-direction: column; }
.vehicle-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--navy-900);
}
.vehicle-meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.85rem; }
.vehicle-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}
.vehicle-price {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy-900);
}
.vehicle-payment {
  font-size: 0.88rem;
  color: var(--muted);
  text-align: right;
}
.vehicle-payment strong { color: var(--navy-800); display: block; font-size: 0.98rem; }

/* Filters */
.inventory-layout { display: grid; gap: 1.25rem; }
.filters {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}
.filters h2 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.filter-group { margin-bottom: 0.85rem; }
.filter-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.filters select, .filters input, .form-field input, .form-field select, .form-field textarea {
  width: 100%;
  font: inherit;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream-100);
  color: var(--ink);
}
.filter-actions { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.inventory-count { color: var(--muted); margin: 0 0 1rem; font-size: 0.95rem; }
.empty-state {
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--muted);
}

/* Detail */
.detail-grid { display: grid; gap: 1.5rem; }
.detail-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.detail-photo .vehicle-photo { aspect-ratio: 16 / 9; border-radius: 0; }
.spec-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1rem;
}
.spec-list li {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
}
.spec-list span { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.payment-note { font-size: 0.88rem; color: var(--muted); }

.feature-list { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0 0 1rem; list-style: none; }
.feature-list li {
  background: var(--navy-900);
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
}

/* Forms */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 2px 10px rgba(7,16,24,0.05);
}
.form-section { margin: 0 0 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: 0; margin-bottom: 0.5rem; }
.form-section h2 { font-size: 1.4rem; margin-bottom: 0.35rem; }
.form-section p.hint { color: var(--muted); font-size: 0.92rem; margin-bottom: 1rem; }
.form-grid { display: grid; gap: 0.9rem; }
.form-field label, .checkbox-field {
  font-weight: 600;
  font-size: 0.95rem;
}
.form-field .req { color: var(--danger); }
.form-field .help { display: block; font-weight: 400; font-size: 0.82rem; color: var(--muted); margin-top: 0.25rem; }
.checkbox-field {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.92rem;
  line-height: 1.5;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
}
.checkbox-field input { margin-top: 0.25rem; width: 1.15rem; height: 1.15rem; flex-shrink: 0; accent-color: var(--navy-900); }
.placeholder-flag {
  display: inline-block;
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.25rem;
}
.callout {
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
}
.callout-warn { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid #e4d19a; }
.callout-info { background: #e8eef4; color: var(--navy-800); border: 1px solid #c9d6e2; }
.form-status {
  display: none;
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
}
.form-status.is-success { display: block; background: var(--success-bg); color: var(--success); }
.form-status.is-error { display: block; background: var(--danger-bg); color: var(--danger); }
.hidden { display: none !important; }
.honeypot { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Legal */
.legal-page { padding: 2.5rem 0 3.5rem; }
.legal-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal-page h2 { font-size: 1.45rem; margin-top: 1.75rem; }
.legal-page p, .legal-page li { color: #333a42; }

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--navy-950);
  color: rgba(244, 239, 228, 0.78);
  padding: 2.4rem 0 1.5rem;
  border-top: 3px solid var(--gold-500);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}
.site-footer h2, .site-footer h3 {
  color: var(--cream-100);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.site-footer a { color: var(--gold-300); text-decoration: none; }
.site-footer a:hover { color: var(--gold-400); text-decoration: underline; }
.footer-brand .logo-word { font-size: 1.5rem; }
.footer-legal {
  border-top: 1px solid var(--line-dark);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(244, 239, 228, 0.55);
}
.disclaimer { font-size: 0.8rem; color: rgba(244, 239, 228, 0.5); max-width: 50rem; }

/* Thanks */
.thanks-card {
  max-width: 36rem;
  margin: 3rem auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.thanks-card h1 { font-size: 2.2rem; }

@media (min-width: 640px) {
  .trust-list { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .areas-grid { grid-template-columns: repeat(3, 1fr); }
  .vehicle-grid { grid-template-columns: 1fr 1fr; }
  .form-grid-2 { grid-template-columns: 1fr 1fr; }
  .financing-cta { grid-template-columns: 1.4fr 1fr; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    padding: 0;
    border: 0;
  }
  .site-nav a { padding: 0.45rem 0.7rem; }
  .site-nav .btn { margin-left: 0.4rem; padding: 0.55rem 1.05rem; font-size: 0.92rem; }
  .header-phone.is-set { display: inline; margin-left: auto; margin-right: 0.75rem; }
  .hero { padding: 4.5rem 0 4.75rem; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .vehicle-grid { grid-template-columns: repeat(3, 1fr); }
  .inventory-page .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
  .inventory-layout { grid-template-columns: 240px 1fr; align-items: start; }
  .filters { position: sticky; top: calc(var(--header-h) + 1rem); }
  .detail-grid { grid-template-columns: 1.2fr 0.9fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .form-card { padding: 1.75rem 1.85rem; }
}

@media (min-width: 1100px) {
  .inventory-page .vehicle-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-list-long {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem 1.25rem;
  max-height: 22rem;
  overflow: auto;
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}
.feature-list-long li {
  background: transparent;
  color: inherit;
  font-size: 0.88rem;
  font-weight: 400;
  padding: 0.1rem 0;
  border-radius: 0;
}
@media (min-width: 640px) {
  .feature-list-long { grid-template-columns: 1fr 1fr; }
}
