/* ============================================================
   Alderson Automotive — styles
   Palette pulled straight from the shop logo.
   ============================================================ */
:root {
  --yellow: #FDDB05;
  --yellow-deep: #EAC900;
  --navy: #1E2B72;
  --navy-dark: #141D52;
  --ink: #131A3D;
  --red: #E01E24;
  --white: #FFFFFF;
  --smoke: #F4F5F8;
  --line: #DDE0EA;

  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-plate: "Barlow Condensed", "Arial Narrow", sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(19, 26, 61, 0.12);
  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.05; margin: 0 0 0.4em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); text-transform: uppercase; letter-spacing: 0.01em; }

.eyebrow {
  font-family: var(--font-plate);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.95rem;
  color: var(--red);
  margin-bottom: 10px;
}

/* Hazard stripe divider — the garage-floor accent */
.hazard {
  height: 14px;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow) 0 22px,
    var(--navy) 22px 44px
  );
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 15px 26px;
  border-radius: 10px;
  border: 3px solid var(--navy);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(19,26,61,0.25); }
.btn:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-dark); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-red { background: var(--red); border-color: var(--red); color: var(--white); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.nav-inner {
  display: flex; align-items: center; gap: 18px;
  padding: 10px 20px; max-width: var(--maxw); margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.nav-logo img { width: 46px; height: auto; border-radius: 6px; }
.nav-logo span {
  font-family: var(--font-display);
  font-size: 1.05rem; line-height: 1.1;
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav-links a {
  color: var(--white); text-decoration: none;
  font-family: var(--font-plate); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 1.02rem;
  padding: 8px 12px; border-radius: 8px;
}
.nav-links a:hover, .nav-links a:focus-visible { background: rgba(255,255,255,0.14); outline: none; }
.nav-links .nav-cta { background: var(--yellow); color: var(--navy); font-weight: 700; }
.nav-links .nav-cta:hover { background: var(--yellow-deep); }
.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 2px solid rgba(255,255,255,0.5); border-radius: 8px;
  color: var(--white); font-size: 1.3rem; padding: 4px 12px; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { background: var(--yellow); overflow: hidden; position: relative; }
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px;
  align-items: center; padding: 64px 20px 72px;
  max-width: var(--maxw); margin: 0 auto;
}
.hero h1 {
  color: var(--navy);
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  text-transform: uppercase;
}
.hero h1 .accent { color: var(--red); }
.hero p.lede { font-size: 1.2rem; max-width: 34em; color: var(--ink); font-weight: 500; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-car { position: relative; }
.hero-car img { width: 100%; max-width: 560px; margin: 0 auto; filter: drop-shadow(0 14px 22px rgba(19,26,61,0.22)); }
@media (max-width: 880px) { .hero-car { order: -1; } .hero-car img { max-width: 420px; } }
.hero-badges { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.badge {
  background: var(--white); border: 2px solid var(--navy); border-radius: 999px;
  font-family: var(--font-plate); font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 6px 14px; font-size: 0.95rem; color: var(--navy);
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 38px; }
.bg-smoke { background: var(--smoke); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h2 { color: var(--yellow); }

/* ---------- Services ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 18px;
}
.svc {
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 0; overflow: hidden; transition: border-color 0.15s ease, transform 0.15s ease;
}
.svc:hover { border-color: var(--navy); transform: translateY(-3px); }
.svc summary {
  list-style: none; cursor: pointer; padding: 20px;
  display: flex; align-items: center; gap: 14px;
}
.svc summary::-webkit-details-marker { display: none; }
.svc summary:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; border-radius: var(--radius); }
.svc-icon {
  flex: 0 0 46px; height: 46px; border-radius: 10px;
  background: var(--yellow); color: var(--navy);
  display: grid; place-items: center; font-size: 1.4rem;
}
.svc h3 { font-size: 1rem; text-transform: uppercase; margin: 0; }
.svc .svc-tag { font-family: var(--font-plate); font-weight: 600; color: var(--red); font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; }
.svc-body { padding: 0 20px 20px; color: #3C4265; border-top: 1px dashed var(--line); }
.svc-body p { margin: 14px 0 0; }
.svc-price {
  margin-top: 12px; font-family: var(--font-plate); font-weight: 700;
  color: var(--navy); letter-spacing: 0.04em; font-size: 1.05rem;
}
.svc[open] { border-color: var(--navy); }
.svc .chev { margin-left: auto; color: var(--navy); transition: transform 0.2s ease; }
.svc[open] .chev { transform: rotate(180deg); }

/* ---------- Inventory ---------- */
.toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 14px; margin-bottom: 26px;
}
.toolbar label {
  font-family: var(--font-plate); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 0.85rem; color: var(--navy);
  display: flex; flex-direction: column; gap: 4px;
}
.toolbar select, .toolbar input {
  font-family: var(--font-body); font-size: 1rem; padding: 9px 12px;
  border: 2px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink);
  min-width: 140px;
}
.toolbar select:focus-visible, .toolbar input:focus-visible { outline: 3px solid var(--yellow); border-color: var(--navy); }
.toolbar .count { margin-left: auto; font-family: var(--font-plate); font-weight: 600; color: #565D82; text-transform: uppercase; letter-spacing: 0.06em; }

.cars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.car-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 2px solid var(--line); box-shadow: none; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex; flex-direction: column; text-align: left; padding: 0; font: inherit; color: inherit;
}
.car-card:hover, .car-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--navy); outline: none; }
.car-photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--smoke); position: relative; }
.car-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.car-photo img.fit-contain { object-fit: contain; padding: 10px; }
.car-card:hover .car-photo img { transform: scale(1.04); }
.photo-count {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(19,26,61,0.8); color: var(--white);
  font-family: var(--font-plate); font-weight: 600; font-size: 0.85rem;
  padding: 3px 10px; border-radius: 999px; letter-spacing: 0.05em;
}
.car-info { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.car-title { font-family: var(--font-display); font-size: 1.08rem; text-transform: uppercase; }
.spec-strip { display: flex; flex-wrap: wrap; gap: 6px; }
.spec {
  font-family: var(--font-plate); font-weight: 600; font-size: 0.88rem;
  letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--smoke); border-radius: 6px; padding: 4px 9px; color: #3C4265;
}

/* License-plate price tag — the signature element */
.plate {
  margin-top: auto; align-self: flex-start;
  background: linear-gradient(180deg, #FFFFFF 0%, #EEF0F6 100%);
  border: 3px solid var(--navy); border-radius: 8px;
  padding: 4px 14px 7px; position: relative;
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 rgba(19,26,61,0.25);
}
.plate::before, .plate::after {
  content: ""; position: absolute; top: 5px; width: 7px; height: 7px;
  border-radius: 50%; background: #C6CBDD; box-shadow: inset 0 1px 1px rgba(0,0,0,0.35);
}
.plate::before { left: 8px; }
.plate::after { right: 8px; }
.plate-top {
  font-family: var(--font-plate); font-weight: 700; font-size: 0.62rem;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--red); text-align: center;
}
.plate-price {
  font-family: var(--font-plate); font-weight: 700; font-size: 1.55rem;
  letter-spacing: 0.06em; color: var(--navy); text-align: center; line-height: 1;
}

.show-more-wrap { grid-column: 1 / -1; text-align: center; padding: 8px 0; }

.inv-note { margin-top: 26px; color: #565D82; font-size: 0.95rem; }
.empty-state {
  border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 48px 24px; text-align: center; color: #565D82; grid-column: 1 / -1;
}

/* ---------- Car modal ---------- */
dialog.car-modal {
  border: none; border-radius: 18px; padding: 0;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
dialog.car-modal::backdrop { background: rgba(19, 26, 61, 0.65); backdrop-filter: blur(3px); }
.modal-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; }
.gallery { background: var(--ink); position: relative; }
.gallery-main { aspect-ratio: 4 / 3; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: var(--ink); }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.92); border: none; border-radius: 50%;
  width: 42px; height: 42px; font-size: 1.2rem; cursor: pointer; color: var(--navy);
}
.gallery-nav:hover { background: var(--yellow); }
.gallery-prev { left: 10px; } .gallery-next { right: 10px; }
.thumbs { display: flex; gap: 6px; padding: 10px; overflow-x: auto; }
.thumbs button { border: 2px solid transparent; border-radius: 8px; padding: 0; overflow: hidden; cursor: pointer; background: none; flex: 0 0 64px; }
.thumbs button.active { border-color: var(--yellow); }
.thumbs img { width: 64px; height: 48px; object-fit: cover; }
.modal-info { padding: 26px 26px 24px; overflow-y: auto; }
.modal-info h3 { font-size: 1.4rem; text-transform: uppercase; }
.modal-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 16px 0; }
.mspec { border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.mspec .k { font-family: var(--font-plate); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: #565D82; }
.mspec .v { font-weight: 600; }
.modal-desc { color: #3C4265; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.modal-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: var(--white); border: 2px solid var(--navy); border-radius: 50%;
  width: 38px; height: 38px; font-size: 1.1rem; cursor: pointer; color: var(--navy);
}
.modal-close:hover { background: var(--yellow); }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; }
.why { border-left: 4px solid var(--yellow); padding-left: 16px; }
.why h3 { font-size: 1rem; text-transform: uppercase; color: var(--white); }
.why p { color: #C6CCE8; margin: 6px 0 0; font-size: 0.98rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.contact-card { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-card h3 { text-transform: uppercase; font-size: 1rem; }
.contact-line { display: flex; gap: 12px; align-items: baseline; margin: 12px 0; }
.contact-line .ico { color: var(--red); font-size: 1.1rem; }
.contact-line a { font-weight: 600; }
.hours { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.hours td { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.hours td:last-child { text-align: right; font-weight: 600; }

form.contact-form { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-family: var(--font-plate); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; color: var(--navy); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; padding: 12px 14px;
  border: 2px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--yellow); border-color: var(--navy);
}
.form-status { margin-top: 14px; font-weight: 600; display: none; }
.form-status.ok { display: block; color: #0E7C3A; }
.form-status.err { display: block; color: var(--red); }

/* ---------- Footer ---------- */
footer { background: var(--navy-dark); color: #C6CCE8; padding: 34px 0; font-size: 0.95rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
footer a { color: var(--yellow); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero-inner, .modal-grid, .contact-grid { grid-template-columns: 1fr; }
  .gallery-main { aspect-ratio: 16 / 10; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy); flex-direction: column; align-items: stretch;
    padding: 10px 16px 16px; gap: 4px; box-shadow: 0 12px 20px rgba(0,0,0,0.3);
  }
  .nav-links.open { display: flex; }
  .form-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
