/* Advantage Motors: lot blue, paint-line yellow, asphalt.
   One typeface (Archivo) at two widths; the windshield-marker face is only for prices. */

@font-face {
  font-family: "Archivo";
  src: url(fonts/archivo.woff2) format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url(fonts/montserrat.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Marker";
  src: url(fonts/marker.woff2) format("woff2");
  font-display: swap;
}

:root {
  --blue: #1646B8;
  --blue-deep: #0E2F7A;
  --yellow: #FFC72C;
  --ink: #1D2128;
  --concrete: #EEF0F3;
  --line: #D3D8DF;
  --muted: #5A6270;
  --red: #C8102E;
  --white: #FFFFFF;
  --focus: #FF9E00;
  --wide: 125%;
  --radius: 6px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1.0625rem/1.55 "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--ink); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }

/* Type scale: 1.25 ratio, expanded headings */
.h1, .hero-title, .vehicle-title, .h2, .h3, .card-title, .footer-h, .logo-a {
  font-stretch: var(--wide);
  letter-spacing: -.01em;
}
.h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.02; }
.h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; line-height: 1.08; }
.h3 { font-size: 1.15rem; font-weight: 750; line-height: 1.2; margin-bottom: .6em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; margin-top: .6em; }

/* Notice bar and masthead */
.notice { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 18px; background: var(--yellow); color: var(--ink); text-align: center; font-size: .9rem; font-weight: 600; padding: 7px var(--gutter); }
.masthead { background: var(--blue); color: var(--white); }
.masthead-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.logo:hover { color: inherit; }
/* The real Advantage Motors mark: the AM monogram and a Montserrat wordmark. */
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.logo-mark { width: 46px; height: 33px; fill: url(#am-silver); flex: none; }
.logo-words { display: flex; flex-direction: column; align-items: center; line-height: 1; font-family: "Montserrat", sans-serif; font-stretch: 100%; }
.logo-a { font-weight: 600; font-size: 1.12rem; letter-spacing: .05em; text-transform: uppercase; }
.logo-m { font-weight: 600; font-size: .66rem; letter-spacing: .42em; margin-right: -.42em; text-transform: uppercase; margin-top: 4px; }
.mainnav { display: flex; gap: 6px; margin-left: auto; }
.mainnav a { color: var(--white); text-decoration: none; font-weight: 600; padding: 10px 14px; border-radius: var(--radius); white-space: nowrap; }
.mainnav a:hover { background: rgba(255,255,255,.12); }
.mainnav a[aria-current] { box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 0; }
.callbtn {
  display: inline-flex; align-items: center; gap: 8px; background: var(--yellow); color: var(--ink);
  font-weight: 750; text-decoration: none; padding: 11px 16px; border-radius: var(--radius); white-space: nowrap;
}
.callbtn:hover { color: var(--ink); background: #ffd65c; }

@media (max-width: 1080px) {
  .callbtn span { display: none; }
  .callbtn::after { content: "Call"; }
}
@media (max-width: 900px) {
  .masthead-row { flex-wrap: wrap; gap: 0 12px; min-height: 0; padding-top: 12px; }
  .logo-a { font-size: .98rem; }
  .logo-mark { width: 38px; height: 27px; }
  .callbtn { margin-left: auto; padding: 10px 12px; }
  .mainnav { order: 3; width: calc(100% + 14px); margin: 6px -7px 0; gap: 0; }
  .mainnav a { padding: 10px 7px 12px; font-size: min(1rem, 4.1vw); }
  .nav-long { display: none; }
}
@media (max-width: 520px) { .mainnav { justify-content: space-between; } }
@media (min-width: 901px) { .nav-short { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  padding: 14px 20px; min-height: 48px; border-radius: var(--radius); border: 2px solid transparent;
}
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #ffd65c; color: var(--ink); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-deep); color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn-line { border-color: var(--ink); color: var(--ink); background: var(--white); }
.btn-line:hover { background: var(--concrete); color: var(--ink); }
.btn-danger { background: var(--white); border-color: var(--red); color: var(--red); }
.btn-danger:hover { background: var(--red); color: var(--white); }
.btn-wide { width: 100%; }

/* The price sticker, hand-lettered like a windshield price */
.tag {
  display: inline-block; font-family: "Marker", "Archivo", sans-serif; font-weight: 400;
  background: var(--yellow); color: var(--ink); line-height: 1; padding: .22em .42em .16em;
  transform: rotate(-3deg); box-shadow: 3px 3px 0 var(--ink); white-space: nowrap;
}
.tag-call { font-size: .8em; }

/* Hero */
.hero { background: var(--blue); color: var(--white); padding: clamp(28px, 5vw, 64px) 0 0; }
.hero-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 56px); align-items: end; }
.hero-copy { padding-bottom: clamp(40px, 6vw, 88px); }
.hero-title { font-size: clamp(2.4rem, 6.2vw, 4.6rem); font-weight: 850; line-height: .98; letter-spacing: -.02em; }
.hero-text { font-size: 1.2rem; max-width: 34ch; margin: 1em 0 1.4em; opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-where { margin: 1.6em 0 0; font-size: .95rem; }
.hero-where a { color: var(--white); }
.hero-car { position: relative; display: block; color: var(--ink); text-decoration: none; margin-bottom: -56px; }
.hero-car img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; background: var(--blue-deep); }
.hero-car .tag { position: absolute; left: -14px; bottom: 74px; font-size: clamp(2rem, 4.4vw, 3.4rem); }
.hero-car-label {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  background: var(--white); padding: 14px 18px; border: 2px solid var(--ink); border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius); font-weight: 600; color: var(--muted);
}
.hero-car-name { color: var(--ink); font-weight: 800; font-stretch: var(--wide); font-size: 1.1rem; }
.hero-car:hover .hero-car-name { text-decoration: underline; }
@media (prefers-reduced-motion: no-preference) {
  .hero-car .tag { animation: slap .45s cubic-bezier(.2, 1.6, .4, 1) .25s both; }
  @keyframes slap { from { transform: rotate(-14deg) scale(1.6); opacity: 0; } to { transform: rotate(-3deg) scale(1); opacity: 1; } }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 8px; }
  .hero-car .tag { left: 10px; }
}

/* Quick filters */
.quick { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 88px; }
.chip {
  display: inline-block; padding: 9px 16px; border: 2px solid var(--ink); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 650;
}
.chip:hover { background: var(--ink); color: var(--white); }
.quick:not(:has(.chip)) { display: none; }

/* Sections and grid */
.section { padding: clamp(36px, 5vw, 64px) var(--gutter); }
.section-tight { padding-top: 12px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.more { font-weight: 700; white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 40px 28px; }
.empty { background: var(--concrete); padding: 28px; border-radius: var(--radius); font-size: 1.1rem; }
.empty p:last-child { margin: 0; }

/* Cards */
.card-link { display: block; color: var(--ink); text-decoration: none; }
.card-photo { position: relative; }
.card-photo img, .nophoto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--concrete); }
.nophoto { display: grid; place-items: center; color: var(--muted); font-weight: 600; }
.card-photo .tag { position: absolute; left: 12px; bottom: -14px; font-size: 1.6rem; }
.card-body { padding-top: 26px; }
.card-title { font-size: 1.22rem; font-weight: 800; line-height: 1.15; }
.card-link:hover .card-title { text-decoration: underline; text-decoration-thickness: 2px; }
.card-trim { color: var(--muted); margin: 2px 0 0; font-weight: 500; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 10px; font-size: .95rem; color: var(--muted); }
.facts li:not(:last-child)::after { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--line); margin: 0 10px; vertical-align: middle; }
.stamp {
  position: absolute; top: 14px; right: 14px; transform: rotate(4deg);
  font-weight: 850; font-stretch: var(--wide); text-transform: uppercase; letter-spacing: .06em; font-size: 1.05rem;
  color: var(--white); background: var(--red); padding: 4px 12px; border-radius: 3px;
}
.stamp-pending { background: var(--ink); font-size: .85rem; }
.is-sold .card-photo img { filter: grayscale(.85); opacity: .75; }
.is-sold .tag { background: var(--concrete); text-decoration: line-through; }

/* Financing and trade-in offers on the home page */
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; }
.offer { display: block; color: var(--ink); text-decoration: none; background: var(--concrete); padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); border-top: 6px solid var(--yellow); }
.offer p { margin: 8px 0 14px; max-width: 46ch; }
.offer .more { text-decoration: underline; }
.offer:hover .more { text-decoration-thickness: 2px; }
@media (max-width: 760px) { .offers { grid-template-columns: 1fr; } }

/* Visit */
.visit { background: var(--concrete); }
.visit-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 56px); padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); align-items: center; }
.visit-addr { font-size: 1.25rem; font-weight: 650; margin: 1em 0; }
.hours li { padding: 2px 0; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.map { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--line); border: 2px solid var(--ink); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-wide { aspect-ratio: 21 / 9; }
@media (max-width: 860px) {
  .visit-grid { grid-template-columns: 1fr; }
  .map-wide { aspect-ratio: 4 / 3; }
}

/* Page heads and filters */
.pagehead { padding-top: clamp(32px, 5vw, 56px); padding-bottom: 20px; }
.filters {
  display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 12px; align-items: end;
  padding-top: 18px; padding-bottom: 28px; border-bottom: 2px solid var(--ink); margin-bottom: 28px;
}
.filter-actions { display: flex; align-items: center; gap: 14px; }
.clear { font-weight: 650; }
@media (max-width: 900px) { .filters { grid-template-columns: 1fr 1fr; } .filter-actions { grid-column: 1 / -1; } }
.js .filters .filter-actions .btn { display: none; }
.js .filters .filter-actions:not(:has(.clear)) { display: none; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; min-width: 0; }
.field > span:first-child { font-weight: 700; font-size: .95rem; }
.field small { font-weight: 500; color: var(--muted); }
input, select, textarea {
  font: inherit; font-size: max(16px, 1rem); color: var(--ink); background: var(--white);
  border: 2px solid #B9C0CA; border-radius: var(--radius); padding: 11px 12px; min-height: 48px; width: 100%;
}
textarea { resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231D2128' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 38px; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 3px solid rgba(22,70,184,.25); outline-offset: 0; }
.filters .field { margin: 0; }
.has-error input, .has-error textarea { border-color: var(--red); }
.err { color: var(--red); font-style: normal; font-weight: 600; font-size: .95rem; display: block; margin: -8px 0 14px; }
.field .err { margin: 0; }
.hint { color: var(--muted); font-size: .95rem; margin: -6px 0 18px; }
.field .hint { margin: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.two .field { margin-bottom: 10px; }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; gap: 0; } }
.choices .field { justify-content: flex-end; }
.three { display: grid; grid-template-columns: 5.5em 1fr 1fr; gap: 14px; }
.three .field { margin-bottom: 10px; }
@media (max-width: 420px) { .three { grid-template-columns: 1fr 1fr; } .three .field:first-child { grid-column: 1 / -1; } }
.has-error select { border-color: var(--red); }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 18px; font-weight: 600; cursor: pointer; }
.consent input { appearance: auto; width: 22px; height: 22px; min-height: 0; padding: 0; margin: 1px 0 0; flex: none; accent-color: var(--blue); }
.consent.has-error { color: var(--red); }
.consent + .err { margin-top: -10px; }
.form-sub { margin: 10px 0 14px; }
input[type="file"] { padding: 10px; }
.hp { position: absolute; left: -5000px; }

/* Vehicle page */
.crumbs { padding-top: 20px; padding-bottom: 14px; font-size: .95rem; color: var(--muted); }
.crumbs a { font-weight: 600; }
.vehicle { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px clamp(24px, 4vw, 56px); grid-template-areas: "gallery side" "body side"; align-items: start; }
.gallery { grid-area: gallery; min-width: 0; }
.vehicle-side { grid-area: side; position: sticky; top: 16px; }
.vehicle-body { grid-area: body; max-width: 70ch; }
@media (max-width: 900px) {
  .vehicle { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gallery" "side" "body"; }
  .vehicle-side { position: static; }
  .gallery { margin: 0 calc(var(--gutter) * -1); }
}
.gallery-main {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: var(--radius); background: var(--concrete); scroll-behavior: smooth;
}
.gallery-main::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.slide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.nophoto-big { aspect-ratio: 4 / 3; width: 100%; }
@media (max-width: 900px) { .gallery-main { border-radius: 0; } }
.gallery-nav { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 10px 0; }
.gbtn { font: inherit; font-size: 1.8rem; line-height: 1; width: 48px; height: 44px; border: 2px solid var(--ink); background: var(--white); border-radius: var(--radius); cursor: pointer; color: var(--ink); }
.gbtn:hover { background: var(--concrete); }
.gcount { font-weight: 650; min-width: 5em; text-align: center; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.thumb img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; opacity: .7; }
.thumb.is-on img, .thumb:hover img { opacity: 1; outline: 3px solid var(--blue); outline-offset: -3px; }
@media (max-width: 900px) { .thumbs { display: none; } }
.status { display: inline-block; font-weight: 800; padding: 4px 12px; border-radius: 3px; margin-bottom: 12px; color: var(--white); }
.status-sold { background: var(--red); }
.status-pending { background: var(--ink); }
.status-hidden { background: var(--muted); }
.vehicle-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 850; line-height: 1.02; }
.vt-year { color: var(--blue); }
.vt-trim { display: block; font-size: .55em; font-weight: 600; font-stretch: 100%; color: var(--muted); margin-top: .35em; letter-spacing: 0; }
.vehicle-price { margin: 22px 0 6px; }
.vehicle-price .tag { font-size: clamp(2.2rem, 4vw, 3rem); }
.price-note { color: var(--muted); font-size: .9rem; margin: 14px 0 0; }
.keyfacts { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); margin: 18px 0 22px; }
.keyfacts li { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 1.05rem; }
.keyfacts span { display: block; font-weight: 500; font-size: .85rem; color: var(--muted); }
.vehicle-actions { display: grid; gap: 10px; }
.vehicle-more { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 16px 0 0; font-weight: 650; }
.visit-small { color: var(--muted); font-size: .95rem; margin-top: 16px; }
.sold-note { background: var(--concrete); padding: 16px; border-radius: var(--radius); }
.block { padding: 28px 0 8px; border-top: 2px solid var(--ink); margin-top: 8px; }
.features { columns: 2 220px; column-gap: 28px; }
.features li { padding: 6px 0 6px 24px; position: relative; break-inside: avoid; }
.features li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 6px; border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg); }
.specs { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); column-gap: 28px; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 650; text-align: right; overflow-wrap: anywhere; }
.stickybar { display: none; }
@media (max-width: 900px) {
  .stickybar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--white); border-top: 2px solid var(--ink);
  }
  body:has(.stickybar) .footer { padding-bottom: 96px; }
}

/* About and contact */
.about-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.about-copy > p { font-size: 1.15rem; max-width: 60ch; }
.about-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; margin-top: 28px; padding-top: 24px; border-top: 2px solid var(--ink); }
.bigphone { font-size: 1.35rem; font-weight: 800; font-stretch: var(--wide); white-space: nowrap; }
.contact-card { background: var(--concrete); padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); border-top: 6px solid var(--yellow); }
.contact-card .h2 { margin-bottom: 18px; }
.about-car { font-weight: 650; margin-top: -8px; }
.sent p { font-size: 1.1rem; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--ink); color: #D9DDE3; margin-top: clamp(40px, 6vw, 80px); padding: 48px 0 24px; font-size: .98rem; }
.footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: 32px; }
.logo-footer { margin-bottom: 18px; color: var(--white); }
.footer-h { font-size: 1rem; font-weight: 800; margin-bottom: 12px; color: var(--white); }
.footer-links li { padding: 3px 0; }
.footer-fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 32px; padding-top: 18px; border-top: 1px solid #3A404B; font-size: .88rem; color: #A9B0BA; }
.footer-fine p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.notfound { padding-bottom: 40px; }
.credits li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.credit-car { display: inline-block; min-width: 13em; font-weight: 700; text-transform: capitalize; }
main:has(> .visit:last-child) + .footer { margin-top: 0; }
.hero-car-label span:last-child { white-space: nowrap; }
