/* ============================================================
   Matthew's Stop and Look Auto Sales — site styles
   Zero dependencies: no frameworks, no external fonts.
   Brand: the STOP sign. Stop-sign red + white + asphalt black.
   ============================================================ */

:root {
  --dark-900: #121316;
  --dark-800: #1a1c21;
  --dark-700: #24272e;
  --gray-100: #eef0f4;
  --brand-600: #c1121f;   /* stop-sign red */
  --brand-700: #9d0e19;   /* hover red */
  --brand-bright: #ff4d55; /* red that pops on dark backgrounds */
  --brand-soft: #ff959b;   /* readable red for small text on dark */
  --red-600: #c1121f;
  --gold: #f5b301;         /* review stars only */
  --ink: #1b2430;
  --ink-soft: #55617a;
  --line: #dde3ee;
  --bg: #f4f6fb;
  --card: #ffffff;
  --green-600: #1e9e5a;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(18, 19, 22, 0.08);
  --shadow-lift: 0 12px 28px rgba(18, 19, 22, 0.16);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* overflow-x: clip (not hidden) prevents sideways scroll WITHOUT turning the
   page into a scroll container, which would break the sticky header. */
html, body { overflow-x: clip; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- Custom icon system (inline SVG sprite, stroke icons) ---------- */

.svg-i {
  width: 24px; height: 24px; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.svg-i.sm { width: 16px; height: 16px; vertical-align: -3px; display: inline-block; }
.trust-item .icon { color: var(--brand-600); }
.call-btn .svg-i { width: 17px; height: 17px; }
.btn .svg-i { width: 18px; height: 18px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 6px; border: 0; cursor: pointer;
  font-size: 16px; font-weight: 700; font-family: var(--font);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-primary { background: var(--brand-600); color: #fff; }
.btn-primary:hover { background: var(--brand-700); }
.btn-dark { background: var(--dark-800); color: #fff; }
.btn-outline {
  background: transparent; color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
}
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-ghost { background: var(--gray-100); color: var(--dark-800); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- Top bar + header ---------- */

.topbar {
  background: var(--dark-900); color: #cfd8e8;
  font-size: 13px; padding: 7px 0;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.topbar a { color: var(--brand-soft); font-weight: 700; }
.topbar .hours { opacity: 0.9; }

.site-header {
  background: var(--dark-800); color: #fff;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
/* Header spans the full viewport width (rest of the site stays boxed at 1160px). */
.site-header .container {
  max-width: none; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 116px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 86px; width: auto; flex: 0 0 auto;
  filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.45)); }
.brand-name { font-weight: 800; font-size: 19px; line-height: 1.2; }
.brand-name small {
  display: block; font-weight: 600; font-size: 11.5px;
  color: #9fb0ca; letter-spacing: 0.4px; text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a {
  color: #d5deed; font-weight: 600; font-size: 15px; white-space: nowrap;
  padding: 6px 2px; border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover, .main-nav a.active { color: #fff; border-color: var(--brand-600); }
.main-nav .nav-apply {
  background: var(--brand-600); color: #fff; font-weight: 700;
  padding: 10px 20px; border-radius: 6px; border-bottom: 0;
}
.main-nav .nav-apply:hover { background: var(--brand-700); color: #fff; }

.header-cta { display: flex; align-items: center; gap: 12px; }
.call-btn {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--brand-600); color: #fff;
  font-weight: 800; padding: 10px 18px; border-radius: 6px; font-size: 15px;
  transition: background 0.15s ease;
}
.call-btn:hover { background: var(--brand-700); }
.sms-btn {
  background: transparent; border: 2px solid rgba(255, 255, 255, 0.4); color: #fff;
}
.sms-btn:hover { background: rgba(255, 255, 255, 0.08); }

.nav-toggle {
  display: none; background: none; border: 0; color: #fff;
  font-size: 26px; cursor: pointer; padding: 4px 8px;
}

/* ---------- Hero ---------- */

.hero {
  /* Fallback (also shows while the video loads / if it can't play) */
  background:
    url("/assets/hero-car.jpg") center / cover no-repeat,
    linear-gradient(160deg, var(--dark-900) 0%, var(--dark-700) 100%);
  color: #fff; padding: 72px 0 96px; position: relative; overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 0; pointer-events: none;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(193, 18, 31, 0.35), transparent 60%),
    linear-gradient(105deg, rgba(18, 19, 22, 0.95) 0%, rgba(18, 19, 22, 0.83) 45%, rgba(18, 19, 22, 0.42) 100%);
}
.hero .container {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.25fr) auto;
  gap: 40px; align-items: center;
}
.hero-sign {
  width: 300px; height: auto; justify-self: end;
  filter: drop-shadow(0 26px 50px rgba(0, 0, 0, 0.65));
  animation: sign-slam 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

/* Page-load snap zoom: the sign slams in oversized, overshoots
   slightly small, then settles — like a stamp hitting the page. */
@keyframes sign-slam {
  0%   { opacity: 0; transform: scale(2.9); }
  55%  { opacity: 1; transform: scale(0.94); }
  78%  { transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-sign { animation: none; }
}
.hero-kicker {
  display: inline-block; background: rgba(193, 18, 31, 0.22);
  color: var(--brand-soft); border: 1px solid rgba(255, 77, 85, 0.45);
  font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 6px; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(34px, 5.2vw, 56px); line-height: 1.08;
  font-weight: 900; letter-spacing: -1px; max-width: 720px;
}
.hero h1 em { color: var(--brand-bright); font-style: normal; }
.hero p.lead {
  margin-top: 16px; font-size: clamp(16px, 2vw, 19px);
  color: #c2cddf; max-width: 560px;
}
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Quick search card overlapping hero bottom */
.quick-search {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow-lift); padding: 22px;
  margin-top: -52px; position: relative; z-index: 5;
  display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 12px;
  align-items: end;
}
.quick-search label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.6px; color: var(--ink-soft); display: block; margin-bottom: 5px;
}
.quick-search select, .quick-search input {
  width: 100%; padding: 11px 12px; border: 1.5px solid var(--line);
  border-radius: 6px; font-size: 15px; font-family: var(--font);
  background: #fff; color: var(--ink);
}

/* ---------- Quick actions (big dealer buttons) ---------- */

.quick-actions { padding: 26px 0 0; }
.qa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.qa-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--brand-600); color: #fff; font-weight: 800; font-size: 17px;
  padding: 22px 18px; border-radius: 6px; box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.qa-btn:hover { background: var(--brand-700); transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.qa-btn .svg-i { width: 24px; height: 24px; }

/* ---------- Trust strip ---------- */

.trust-strip { padding: 34px 0 6px; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.trust-item {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; display: flex; gap: 13px; align-items: center;
}
.trust-item .icon {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 8px;
  background: var(--gray-100); display: grid; place-items: center;
  font-size: 21px;
}
.trust-item strong { display: block; font-size: 15px; }
.trust-item span { font-size: 13px; color: var(--ink-soft); }

/* ---------- Sections ---------- */

.section { padding: 56px 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 16px; margin-bottom: 26px; flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; letter-spacing: -0.6px;
}
.section-head p { color: var(--ink-soft); margin-top: 6px; max-width: 540px; }

.insta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  align-items: start;
  justify-items: center;
}

/* ---------- Vehicle cards ---------- */

.vehicle-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 20px;
}
.vehicle-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.vehicle-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.vehicle-photo {
  aspect-ratio: 4 / 3; background: linear-gradient(145deg, #dfe6f2, #c6d2e6);
  position: relative; overflow: hidden;
}
.vehicle-photo img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-photo .tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--red-600); color: #fff; font-size: 12px; font-weight: 800;
  padding: 5px 11px; border-radius: 6px; letter-spacing: 0.4px;
}
.vehicle-photo .tag.sold { background: var(--ink); }
.vehicle-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.vehicle-title { font-size: 17px; font-weight: 800; line-height: 1.25; }
.vehicle-sub { color: var(--ink-soft); font-size: 13.5px; margin-top: 3px; }
.vehicle-meta {
  display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 14px;
}
.chip {
  background: var(--gray-100); color: var(--dark-800);
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 6px;
}
.vehicle-foot {
  margin-top: auto; display: flex; align-items: center;
  justify-content: space-between; gap: 10px;
}
.price { font-size: 21px; font-weight: 900; color: var(--dark-800); }
.price small { display: block; font-size: 11.5px; font-weight: 600; color: var(--green-600); }

/* ---------- Financing banner ---------- */

.finance-banner {
  background:
    radial-gradient(800px 300px at 10% 120%, rgba(193, 18, 31, 0.30), transparent 60%),
    linear-gradient(140deg, var(--dark-800), var(--dark-900));
  border-radius: 12px; color: #fff; padding: 44px;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 30px; align-items: center;
}
.finance-banner h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 900; letter-spacing: -0.5px; }
.finance-banner p { color: #c2cddf; margin-top: 10px; }
.finance-banner ul { list-style: none; margin-top: 16px; display: grid; gap: 9px; }
.finance-banner li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.finance-banner li::before {
  content: "✓"; color: var(--brand-soft); font-weight: 900;
  background: rgba(193, 18, 31, 0.3); border-radius: 50%;
  width: 24px; height: 24px; display: grid; place-items: center; font-size: 13px;
  flex: 0 0 24px;
}
.finance-cta { text-align: center; display: grid; gap: 12px; justify-items: center; }
.finance-cta .big { font-size: 42px; font-weight: 900; color: var(--brand-bright); line-height: 1; }

/* ---------- Reviews ---------- */

.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px;
}
.stars { color: var(--gold); font-size: 17px; letter-spacing: 2px; }
.review-card p { margin: 12px 0 14px; color: var(--ink-soft); font-size: 15px; }
.review-card strong { font-size: 14px; }

/* ---------- Visit / contact ---------- */

.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.visit-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px;
}
.visit-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.info-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row .k { flex: 0 0 110px; font-weight: 700; color: var(--ink-soft); font-size: 14px; }
.info-row .v { font-weight: 600; }
.map-frame {
  border: 0; width: 100%; height: 100%; min-height: 320px;
  border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ---------- Inventory page ---------- */

.page-hero {
  background: linear-gradient(150deg, var(--dark-900), var(--dark-700));
  color: #fff; padding: 44px 0;
}
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; letter-spacing: -0.7px; }
.page-hero p { color: #c2cddf; margin-top: 8px; max-width: 640px; }

.inventory-layout {
  display: grid; grid-template-columns: 260px 1fr; gap: 26px; align-items: start;
  padding: 34px 0 60px;
}
.filters {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; position: sticky; top: 132px;
}
.filters h3 { font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.filter-group { margin-bottom: 16px; }
.filter-group label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.6px; color: var(--ink-soft); display: block; margin-bottom: 6px;
}
.filter-group select, .filter-group input {
  width: 100%; padding: 10px 11px; border: 1.5px solid var(--line);
  border-radius: 6px; font-size: 14.5px; font-family: var(--font); background: #fff;
}
.results-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px; gap: 12px; flex-wrap: wrap;
}
.results-bar .count { font-weight: 700; color: var(--ink-soft); font-size: 14.5px; }
.results-bar select {
  padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 6px;
  font-size: 14px; font-family: var(--font); background: #fff;
}
.empty-state {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 48px 24px; text-align: center; color: var(--ink-soft);
}
.empty-state strong { display: block; font-size: 18px; color: var(--ink); margin-bottom: 6px; }

/* ---------- Vehicle detail page ---------- */

.vdp-layout {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px;
  padding: 34px 0 60px; align-items: start;
}
.gallery-main {
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(145deg, #dfe6f2, #c6d2e6); box-shadow: var(--shadow);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 12px;
}
.gallery-thumbs button {
  aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; padding: 0; background: #dfe6f2;
}
.gallery-thumbs button.active { border-color: var(--brand-600); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.vdp-panel {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px;
}
.vdp-back { display: inline-block; margin: 26px 0 -12px; font-weight: 700; color: var(--dark-800); }
.vdp-back:hover { text-decoration: underline; }
.vdp-price-label {
  font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink-soft); margin-top: 16px;
}
.vdp-inquiry { margin-top: 24px; max-width: none; }
.vdp-inquiry .form-grid { gap: 12px; }
.vdp-panel h1 { font-size: 26px; font-weight: 900; letter-spacing: -0.5px; line-height: 1.15; }
.vdp-sub { color: var(--ink-soft); margin-top: 6px; font-size: 14.5px; }
.vdp-price { font-size: 36px; font-weight: 900; color: var(--dark-800); margin: 2px 0 4px; }
.vdp-payment { color: var(--green-600); font-weight: 700; font-size: 14.5px; margin-bottom: 18px; }
.vdp-actions { display: grid; gap: 10px; margin-bottom: 22px; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.spec-table td:first-child { color: var(--ink-soft); font-weight: 700; width: 42%; }
.spec-table tr:last-child td { border-bottom: 0; }

.vdp-desc {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px; margin-top: 24px;
}
.vdp-desc h2 { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.feature-list {
  list-style: none; display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 8px; margin-top: 14px;
}
.feature-list li { display: flex; gap: 8px; align-items: center; font-size: 14.5px; }
.feature-list li::before { content: "✓"; color: var(--green-600); font-weight: 900; }

/* Payment calculator */
.calc {
  background: var(--gray-100); border-radius: 8px; padding: 18px; margin-top: 20px;
}
.calc h3 { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-grid label { font-size: 12px; font-weight: 700; color: var(--ink-soft); display: block; margin-bottom: 4px; }
.calc-grid input, .calc-grid select {
  width: 100%; padding: 9px 10px; border: 1.5px solid var(--line);
  border-radius: 6px; font-size: 14px; font-family: var(--font); background: #fff;
}
.calc-result { margin-top: 14px; font-size: 15px; }
.calc-result strong { font-size: 24px; color: var(--dark-800); }
.calc-note { font-size: 11.5px; color: var(--ink-soft); margin-top: 8px; }

/* ---------- Forms ---------- */

.form-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 30px; max-width: 720px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-card label { font-size: 13px; font-weight: 700; display: block; margin-bottom: 6px; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; padding: 12px 13px; border: 1.5px solid var(--line);
  border-radius: 6px; font-size: 15px; font-family: var(--font); background: #fff;
}
.form-card textarea { resize: vertical; min-height: 100px; }
.form-note {
  font-size: 13px; color: var(--ink-soft); background: var(--gray-100);
  border-radius: 6px; padding: 12px 14px; margin: 16px 0;
}
/* ---- Form thank-you state ---- */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 32px;
  animation: tyFadeUp .4s ease both;
}
.form-success.visible { display: flex; }

.ty-ring {
  width: 72px; height: 72px; border-radius: 50%;
  background: #c0392b;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  animation: tyPop .45s .1s cubic-bezier(.34,1.56,.64,1) both;
}
.ty-ring svg {
  width: 34px; height: 34px;
  stroke: #fff; fill: none;
  stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 50; stroke-dashoffset: 50;
  animation: tyDraw .4s .45s ease forwards;
}
.form-success h3 {
  font-size: 22px; font-weight: 900; color: #1a1a1a;
  margin: 0 0 8px;
  animation: tyFadeUp .35s .3s ease both;
}
.form-success p {
  font-size: 14px; color: #666; margin: 0 0 24px; max-width: 320px; line-height: 1.6;
  animation: tyFadeUp .35s .38s ease both;
}
.form-success a.ty-cta {
  display: inline-block;
  background: #c0392b; color: #fff;
  font-weight: 800; font-size: 16px;
  padding: 13px 30px; border-radius: 8px;
  text-decoration: none;
  animation: tyFadeUp .35s .46s ease both;
}
@keyframes tyFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes tyPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
@keyframes tyDraw { to { stroke-dashoffset: 0; } }

/* ---------- Form validation ---------- */
.field-error {
  font-size: 12px; color: #c0392b; font-weight: 600;
  margin-top: 5px; display: none;
}
.field-error.visible { display: block; }
.form-card input.invalid,
.form-card select.invalid,
.form-card textarea.invalid {
  border-color: #c0392b !important;
  background: #fff8f8 !important;
  outline: none;
}
.form-card input.invalid:focus,
.form-card select.invalid:focus,
.form-card textarea.invalid:focus {
  box-shadow: 0 0 0 3px rgba(192,57,43,.15);
}
.form-submit-error {
  background: #fff0f0; border: 1.5px solid #c0392b; border-radius: 8px;
  color: #c0392b; font-size: 13.5px; font-weight: 700;
  padding: 12px 16px; margin-top: 14px; display: none;
}
.form-submit-error.visible { display: block; }

/* ---------- Credit application ---------- */

.form-section { margin: 26px 0 8px; padding-top: 22px; border-top: 2px solid var(--gray-100); }
.form-section h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.form-section-heading { font-size: 17px; font-weight: 800; margin: 28px 0 12px; padding-top: 22px; border-top: 2px solid var(--gray-100); color: var(--ink); }
.form-section .hint { color: var(--ink-soft); font-size: 13.5px; margin-bottom: 14px; }
.form-card input[readonly] { background: var(--gray-100); color: var(--ink-soft); }
.consent {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--gray-100); border-radius: 6px; padding: 14px 16px;
  margin-top: 14px; font-size: 13px; color: var(--ink-soft); cursor: pointer;
}
.consent input { margin-top: 3px; width: 16px; height: 16px; flex: 0 0 auto; }
.consent strong { color: var(--ink); }
.notice-panel {
  display: none; background: var(--gray-100); border: 2px solid var(--brand-600);
  border-radius: 6px; padding: 18px 20px; margin-top: 18px;
}
.notice-panel.show { display: block; }
.notice-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--dark-900); color: #9fb0ca; margin-top: 40px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 0.8fr 0.9fr auto; gap: 34px;
  padding: 52px 0 40px;
}
.footer-nap { text-align: left; }
.footer-nap .nap-name { display: block; color: #fff; font-size: 16px; margin-top: 14px; }
.footer-nap address { font-style: normal; font-size: 14px; margin-top: 8px; line-height: 1.5; }
.footer-nap .nap-phone { display: inline-block; margin-top: 8px; color: #fff; font-weight: 700; font-size: 15px; }
.nap-hours { list-style: none; margin-top: 12px; display: grid; gap: 4px; font-size: 13px; max-width: 240px; }
.nap-hours li { display: flex; justify-content: space-between; gap: 16px; }
.nap-hours li span:first-child { color: #7f92b0; }
.footer-social { justify-self: end; text-align: right; }
.footer-social .social-row { justify-content: flex-end; }
@media (max-width: 960px) { .footer-social { justify-self: start; text-align: left; } .footer-social .social-row { justify-content: flex-start; } }
.footer-bottom a { text-decoration: underline; }
.site-footer h4 {
  color: #fff; font-size: 14px; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 14px;
}
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a:hover { color: #fff; }
.footer-about p { font-size: 14px; margin-top: 12px; max-width: 300px; }
.footer-logo {
  height: 130px; width: auto;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.55));
}
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-btn {
  width: 40px; height: 40px; border-radius: 6px; background: var(--brand-600);
  display: grid; place-items: center; color: #fff; transition: background 0.15s ease;
}
.social-btn:hover { background: var(--brand-700); }
.social-btn .svg-i { width: 20px; height: 20px; }
.footer-review p { font-size: 13.5px; margin: 10px 0 12px; color: #9fb0ca; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0; font-size: 13px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--dark-800); flex-direction: column; align-items: stretch;
    padding: 12px 20px 20px; gap: 4px; box-shadow: 0 14px 24px rgba(0,0,0,0.3);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-toggle { display: block; }
  .header-cta .btn { display: none; }
  .qa-grid { grid-template-columns: repeat(2, 1fr); }
  .hero .container { grid-template-columns: 1fr; gap: 22px; }
  .hero-sign { width: 170px; height: auto; justify-self: start; order: -1; }
  .quick-search { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .finance-banner { grid-template-columns: 1fr; padding: 30px; }
  .review-grid { grid-template-columns: 1fr; }
  .visit-grid { grid-template-columns: 1fr; }
  .inventory-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .vdp-layout { grid-template-columns: 1fr; }
  .vdp-panel { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .brand-logo { height: 60px; }
  .brand-name { display: none; }
  .site-header .container { min-height: 80px; gap: 10px; padding: 0 18px; }
  .sms-btn { display: none; }
  .call-btn { padding: 9px 13px; font-size: 14px; }
  .hero { padding: 46px 0 76px; }
  .hero-sign { display: none; }
  .hero-actions .btn { padding: 12px 20px; font-size: 15px; }
  .finance-banner { padding: 24px 20px; }
  .qa-btn { font-size: 15px; padding: 17px 14px; }
}

@media (max-width: 560px) {
  .qa-grid { grid-template-columns: 1fr; }
  .quick-search { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .hours { display: none; }
}

/* ---------- home utility cards (visit + trade-in) ---------- */
.trust-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .trust-grid-3 { grid-template-columns: 1fr; } }
.util-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 860px) { .util-grid { grid-template-columns: 1fr; } }
.util-card {
  background: var(--card, #fff); border: 1px solid var(--line, #e6e9f0);
  border-radius: 14px; padding: 26px 26px 24px; box-shadow: var(--shadow, 0 1px 3px rgba(10,15,30,.06));
  display: flex; flex-direction: column; gap: 12px;
}
.util-head { display: flex; align-items: center; gap: 12px; }
.util-head h3 { font-size: 20px; margin: 0; }
.util-head .icon {
  width: 42px; height: 42px; border-radius: 10px; flex: 0 0 auto;
  display: grid; place-items: center; background: rgba(193,18,31,.1); color: var(--brand-600, #c1121f);
}
.util-head .icon .svg-i { width: 22px; height: 22px; }
.util-card p { color: var(--ink-soft); margin: 0; }
.util-card address { font-style: normal; font-weight: 700; }
.util-card .info-row { display: flex; justify-content: space-between; font-size: 14px; border-top: 1px dashed var(--line, #e6e9f0); padding-top: 8px; }
.util-card .info-row .k { color: var(--ink-soft); }
.util-list { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 14.5px; display: grid; gap: 6px; }
.util-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }

/* header Apply For Credit: secondary CTA next to phone */
.apply-btn {
  display: inline-flex; align-items: center; white-space: nowrap;
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.35);
  font-weight: 700; padding: 8px 16px; border-radius: 6px; font-size: 15px;
  transition: border-color .15s ease, background .15s ease;
}
.apply-btn:hover { border-color: var(--brand-600); background: rgba(193,18,31,.15); }
@media (min-width: 961px) { .main-nav .nav-apply-mobile { display: none; } }
@media (max-width: 960px) { .apply-btn { display: none; } }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--card, #fff); border: 1px solid var(--line, #e6e9f0);
  border-radius: 12px; padding: 0 20px; box-shadow: var(--shadow, 0 1px 3px rgba(10,15,30,.05));
}
.faq-item summary {
  cursor: pointer; font-weight: 700; font-size: 16px; padding: 18px 0;
  list-style: none; position: relative; padding-right: 34px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 800; color: var(--brand-600, #c1121f);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: var(--ink-soft); padding: 0 0 18px; margin: 0; }
