/* Family Car Sales — public website. Clean black-and-white style; color comes from the car photos. */
:root {
  --bg: #F9F9F9; --card: #FFFFFF; --ink: #1F1D1E; --charcoal: #232122; --muted: #6B6869; --line: #E5E3E4;
  --soft: #EFEEEE; --gold: #E3A812; --ok: #1E7B3A; --radius: 16px; --wrap: 1240px;
  --shadow: 0 10px 30px rgba(31, 29, 30, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.08; margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px;
  border-radius: 999px; border: 1.5px solid var(--ink); background: var(--ink); color: #fff;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.outline { background: transparent; color: var(--ink); }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn.block { width: 100%; }
.btn .arrow { font-size: 18px; line-height: 1; }

/* Top bar + header */
.topbar { background: var(--ink); color: #fff; font-size: 13px; }
.topbar .wrap { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; padding-top: 7px; padding-bottom: 7px; }
.topbar a { text-decoration: none; }
.header { position: sticky; top: 0; z-index: 40; background: rgba(249, 249, 249, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 16px; height: 76px; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }
.logo img { height: 46px; width: auto; }
.search { flex: 1; max-width: 520px; position: relative; border-radius: 999px; padding: 1.5px; background: linear-gradient(90deg, #cfcfcf, #1F1D1E 50%, #cfcfcf); }
.search input {
  width: 100%; border: 0; border-radius: 999px; padding: 13px 20px 13px 46px; font: inherit; background: #fff; color: var(--ink);
}
.search input:focus { outline: none; }
.search svg { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.nav { display: flex; gap: 28px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-weight: 600; }
.nav .drop { position: relative; }
.nav .drop-menu {
  position: absolute; top: 100%; left: -16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px;
  min-width: 170px; box-shadow: var(--shadow); display: none;
}
.nav .drop:hover .drop-menu, .nav .drop:focus-within .drop-menu { display: block; }
.nav .drop-menu a { display: block; padding: 8px 12px; border-radius: 8px; font-weight: 500; }
.nav .drop-menu a:hover { background: var(--soft); }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }

/* Sections */
.section { padding: 80px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.big { font-size: clamp(34px, 5.2vw, 60px); font-weight: 700; }
.lead { font-size: 18px; color: var(--muted); max-width: 680px; margin: 14px 0 0; }

/* Hero */
.hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: end; color: #fff; overflow: hidden; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 25%, rgba(0,0,0,.72)); }
.hero .wrap { position: relative; z-index: 1; padding-top: 140px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(41px, 7vw, 87px); font-weight: 700; max-width: 900px; }
.hero p { font-size: 19px; max-width: 560px; margin: 16px 0 28px; color: rgba(255,255,255,.9); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Quick search */
.quick { margin-top: -40px; position: relative; z-index: 2; }
.quick form {
  background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 18px; display: grid;
  grid-template-columns: repeat(4, 1fr) auto; gap: 12px; align-items: end;
}
label.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.field select, .field input {
  font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%;
}

/* Browse by style */
.styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.style-tile { text-decoration: none; text-align: center; }
.style-tile .tile { background: var(--soft); border-radius: var(--radius); aspect-ratio: 4 / 3; display: grid; place-items: center; transition: transform .15s; padding: 18px; }
.style-tile:hover .tile { transform: translateY(-3px); }
.style-tile svg { width: 100%; height: auto; color: var(--ink); }
.style-tile img { width: 70%; }
.style-tile b { display: block; margin-top: 10px; }

/* Welcome + values */
.welcome { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.welcome img { border-radius: var(--radius); }
.welcome p { color: var(--muted); font-size: 17px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.value h3 { font-size: 26px; margin-bottom: 8px; }
.value p { margin: 0; color: var(--muted); }

/* Shortcut cards */
.shortcuts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.shortcut {
  background: #fff; border: 1px solid var(--line); border-top: 3px solid transparent; border-radius: var(--radius); padding: 24px;
  text-decoration: none; display: flex; flex-direction: column; gap: 10px; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.shortcut:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-top-color: var(--ink); }
.shortcut .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; }
.shortcut .icon svg { width: 24px; height: 24px; }
.shortcut h3 { font-size: 20px; }
.shortcut p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.shortcut .go { font-weight: 700; }

/* Car cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .photo { position: relative; aspect-ratio: 4 / 3; background: var(--soft); }
.card .photo img { width: 100%; height: 100%; object-fit: cover; }
.card .photo .none { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.badge-sold { position: absolute; top: 12px; left: 12px; background: #B42318; color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .06em; padding: 5px 12px; border-radius: 999px; }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card .miles { font-size: 13px; color: var(--muted); }
.card .title { font-size: 19px; }
.card .photo picture, .gallery .main picture { display: contents; }
.card .trim { color: var(--muted); font-size: 15px; min-height: 22px; }
.card .row { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 14px; }
.card .price { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); display: inline-block; }
.card .btn { margin-top: auto; padding: 12px 18px; }

/* Dark carousel section */
.dark { background: var(--charcoal); color: #fff; }
.dark .lead { color: rgba(255,255,255,.7); }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; }
@media (min-width: 900px) { .carousel { grid-auto-columns: calc((100% - 60px) / 4); } }
.arrows { display: flex; gap: 10px; }
.arrow-btn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; color: inherit; font-size: 20px; cursor: pointer; }
.dark .card { color: var(--ink); border: 0; }

/* Reviews */
.rating-line { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 16px; font-weight: 600; }
.stars { color: var(--gold); letter-spacing: 2px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.review blockquote { margin: 0; font-size: 16px; flex: 1; }
.review .who { border-top: 1px solid var(--line); padding-top: 14px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.review-carousel { grid-auto-columns: minmax(280px, 1fr); }
@media (min-width: 900px) { .review-carousel { grid-auto-columns: calc((100% - 40px) / 3); } }

/* Makes */
.makes { display: flex; flex-wrap: wrap; gap: 10px; }
.makes a { text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-weight: 600; }
.makes a span { color: var(--muted); font-weight: 500; margin-left: 6px; }

/* Location */
.location { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.location iframe { width: 100%; height: 100%; min-height: 420px; border: 0; border-radius: var(--radius); background: var(--soft); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.panel h3 { font-size: 26px; }
.open-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #E8F5EC; color: var(--ok); }
.open-badge.closed { background: var(--soft); color: var(--muted); }
.open-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours td { padding: 4px 0; }
.hours td:last-child { text-align: right; }
.hours tr.today { font-weight: 700; }
.panel .buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.panel .buttons .btn { padding: 12px 14px; }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,.85); padding: 56px 0 96px; margin-top: 80px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer img { height: 52px; width: auto; }
.footer h4 { color: #fff; margin: 0 0 12px; font-size: 15px; }
.footer a { text-decoration: none; display: block; padding: 3px 0; }
.footer a:hover { color: #fff; }
.footer .legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-top: 20px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Floating "Get in touch" */
.touch { position: fixed; right: 18px; bottom: 18px; z-index: 50; }
.touch > .btn { box-shadow: 0 6px 22px rgba(0,0,0,.28); border-color: rgba(255,255,255,.85); }
.touch-menu { position: absolute; right: 0; bottom: 64px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; box-shadow: var(--shadow); width: 240px; display: none; }
.touch.open .touch-menu { display: block; }
.touch-menu a { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.touch-menu a:hover { background: var(--soft); }
.touch-menu small { display: block; color: var(--muted); font-weight: 500; }

/* Inventory page */
.page-head { padding: 40px 0 24px; }
.page-head h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 700; }
.inv { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; position: sticky; top: 96px; }
.filters .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toggle { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.toggle input { width: 20px; height: 20px; accent-color: var(--ink); }
.inv-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.inv-bar select { font: inherit; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; background: #fff; }
.filter-toggle { display: none; }
.empty { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 48px 24px; text-align: center; }

/* Car detail page */
.detail { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; padding-top: 28px; }
.gallery .main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--soft); aspect-ratio: 4 / 3; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .main button { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); font-size: 20px; cursor: pointer; }
.gallery .main .prev { left: 12px; } .gallery .main .next { right: 12px; }
.gallery .count { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,.65); color: #fff; font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; background: var(--soft); }
.thumbs button.on { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy-box { position: sticky; top: 96px; }
.detail .gallery { order: -1; }
.buy-box h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; }
.buy-box .price { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 4px; }
.specs { width: 100%; border-collapse: collapse; }
.specs td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs td:first-child { color: var(--muted); width: 45%; }
.prose { white-space: pre-wrap; color: var(--ink); }
.breadcrumb { font-size: 14px; color: var(--muted); padding-top: 20px; }
.breadcrumb a { text-decoration: none; }

/* Simple pages */
.text-page { max-width: 820px; }
.text-page p, .text-page li { color: var(--muted); font-size: 17px; }

/* Phones and tablets */
@media (max-width: 980px) {
  .nav, .search { display: none; }
  .menu-btn { display: block; }
  .header .wrap { height: 66px; justify-content: space-between; }
  .header .call-mini { display: inline-flex; }
  .quick form { grid-template-columns: 1fr 1fr; }
  .quick form .btn { grid-column: 1 / -1; }
  .welcome, .location, .detail, .inv { grid-template-columns: 1fr; }
  .values, .shortcuts { grid-template-columns: 1fr 1fr; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: grid; }
  .filter-toggle { display: inline-flex; }
  .buy-box { position: static; }
  .section { padding: 56px 0; }
}
@media (max-width: 560px) {
  .values, .shortcuts, .footer .cols { grid-template-columns: 1fr; }
  .hero { min-height: 560px; }
  .topbar .wrap span.hide-sm { display: none; }
}
.header .call-mini { display: none; padding: 10px 14px; }
