:root {
  --ink: #171717;
  --muted: #666;
  --line: #dedede;
  --surface: #fff;
  --accent: #c80000;
  --accent-dark: #9f0000;
  --gold: #f2c45b;
  --dark: #090909;
  --shadow: 0 8px 24px rgba(0, 0, 0, .13);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Arial Narrow", Arial, "Segoe UI", sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.btn {
  border-radius: 4px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  padding: .72rem 1.15rem;
}

.btn-sm { padding: .42rem .72rem; }

.btn-primary {
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: var(--accent-dark);
  --bs-btn-hover-border-color: var(--accent-dark);
  box-shadow: 0 8px 18px rgba(200, 0, 0, .2);
}

.btn-outline-primary {
  --bs-btn-color: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: var(--accent);
  --bs-btn-hover-border-color: var(--accent);
  background: rgba(255, 255, 255, .58);
}

.btn-outline-secondary {
  --bs-btn-color: #333;
  --bs-btn-border-color: #cfcfcf;
  --bs-btn-hover-bg: #111;
  --bs-btn-hover-border-color: #111;
}

.front-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 110px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #d8d8d8;
  box-shadow: 0 3px 14px rgba(0, 0, 0, .06);
}

.front-nav .container { position: relative; min-height: 108px; }
.brand-logo { position: relative; z-index: 2; margin-right: 44px; padding: 0; }
.brand-logo img { width: 162px; height: 162px; object-fit: contain; margin: 6px 0 -58px; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .2)); }
.front-nav .nav-link {
  color: #111;
  font-size: .91rem;
  font-weight: 850;
  margin: 0 7px;
  text-transform: uppercase;
}
.front-nav .nav-link:hover,
.front-nav .nav-link:first-child { color: var(--accent); }
.front-contact { display: flex; align-items: center; gap: 22px; margin-left: 20px; }
.front-phone { color: #111; font-size: 1.14rem; font-weight: 950; white-space: nowrap; }
.front-phone i { margin-right: 8px; }
.navbar-toggler { border: 1px solid #ccc; border-radius: 4px; }

.prius-hero {
  min-height: 440px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .76) 35%, rgba(255, 255, 255, .05) 62%),
    url('https://images.unsplash.com/photo-1533473359331-0135ef1b58bf?auto=format&fit=crop&w=1800&q=85') center right/cover;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(320px, 470px) 1fr;
  gap: 24px;
  align-items: center;
  min-height: 440px;
}

.hero-copy h1 {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: clamp(2.6rem, 5vw, 4.15rem);
  font-weight: 950;
  line-height: .98;
  text-transform: uppercase;
}

.hero-copy h1 span { display: block; color: #1d1d1d; }
.hero-copy p { max-width: 500px; margin: 0 0 24px; color: #262626; font-size: 1.08rem; line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-brand { display: flex; justify-content: center; align-items: center; min-height: 320px; }
.hero-logo { width: min(330px, 38vw); height: auto; filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .24)); }

.trust-strip {
  background: linear-gradient(90deg, #b80000, #d00000, #b80000);
  color: #fff;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 100px;
}
.trust-grid article {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 26px;
  border-right: 1px solid rgba(255, 255, 255, .28);
}
.trust-grid article:last-child { border-right: 0; }
.trust-grid i { color: var(--gold); font-size: 2.9rem; }
.trust-grid strong { display: block; font-weight: 950; text-transform: uppercase; }
.trust-grid span { display: block; color: rgba(255, 255, 255, .92); line-height: 1.25; }

.home-search-band {
  padding: 28px 0 6px;
  background: #f6f6f6;
}

.home-search-panel {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 18px;
  align-items: stretch;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .08);
  padding: 18px;
}

.home-search-head {
  display: grid;
  align-content: center;
  border-right: 1px solid #e6e6e6;
  padding-right: 18px;
}

.home-search-head span {
  color: var(--accent);
  font-size: .82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.home-search-head strong {
  color: #111;
  font-size: 1.5rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.front-section { padding: 36px 0; }
.section-title-center { margin-bottom: 22px; text-align: center; }
.section-title-center h2,
.section-head h1,
.section-head h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 950;
  text-transform: uppercase;
}
.section-title-center h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  margin: 6px auto 0;
  background: var(--accent);
}
.section-title-center p,
.section-head p { margin: 8px 0 0; color: var(--muted); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}
.showcase-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vehicle-card {
  overflow: hidden;
  border: 1px solid #e1e1e1;
  border-radius: 5px;
  background: #fff;
  box-shadow: var(--shadow);
}
.vehicle-photo {
  position: relative;
  display: grid;
  place-items: center;
  height: 150px;
  overflow: hidden;
  background: #eef0f2;
  color: #999;
}
.vehicle-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.vehicle-card:hover .vehicle-photo img { transform: scale(1.04); }
.vehicle-photo i { font-size: 3rem; }
.year-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 52px;
  padding: 6px 9px;
  background: var(--accent);
  color: #fff;
  border-radius: 0 4px 0 4px;
  font-weight: 950;
  text-align: center;
}
.vehicle-card-body { padding: 14px; }
.card-title-row { display: flex; justify-content: space-between; gap: 12px; align-items: end; }
.vehicle-card h3 {
  margin: 0;
  font-size: .95rem;
  font-weight: 950;
  text-transform: uppercase;
}
.vehicle-card p {
  margin: 4px 0 0;
  color: #777;
  font-size: .82rem;
}
.favorite-dot { color: #999; font-size: 1.25rem; }
.favorite-dot:hover { color: var(--accent); }
.negotiable-price {
  display: block;
  margin-top: 8px;
  color: var(--accent);
  font-size: .88rem;
  font-weight: 950;
}
.card-actions { display: flex; gap: 8px; margin-top: 12px; }
.card-actions .btn { flex: 1; }

.confidence-band {
  background:
    linear-gradient(90deg, rgba(6, 6, 6, .96), rgba(8, 8, 8, .9)),
    url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1800&q=80') center/cover;
  color: #fff;
  padding: 34px 0;
}
.confidence-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(420px, 1.8fr) minmax(220px, .8fr);
  gap: 28px;
  align-items: center;
}
.confidence-copy span { color: var(--gold); font-weight: 950; text-transform: uppercase; }
.confidence-copy h2 {
  margin: 10px 0 12px;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 950;
  text-transform: uppercase;
}
.confidence-copy p { color: rgba(255, 255, 255, .82); margin: 0; }
.confidence-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.confidence-items article { display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: center; }
.confidence-items i {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.8rem;
}
.confidence-items strong { display: block; color: var(--gold); text-transform: uppercase; }
.confidence-items span { display: block; color: rgba(255, 255, 255, .82); font-size: .9rem; }
.confidence-contact { display: grid; gap: 12px; justify-items: end; }
.confidence-contact span { color: rgba(255, 255, 255, .74); }
.confidence-contact a:last-child { color: #fff; font-size: 1.45rem; font-weight: 950; }

.front-footer {
  margin: 0;
  padding: 22px 0;
  background: #fff;
  border-top: 1px solid var(--line);
  color: #333;
}
.front-footer span:first-child { font-weight: 950; }
.front-footer a { color: #333; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.front-main {
  flex: 1 0 auto;
}

.front-footer {
  flex-shrink: 0;
}

.front-search,
.front-panel,
.details-grid > div:last-child,
.compare-table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.front-search { display: grid; grid-template-columns: repeat(auto-fit, minmax(156px, 1fr)); gap: 12px; padding: 18px; }
.home-search-panel .front-search {
  border: 0;
  box-shadow: none;
  padding: 0;
}
.home-search-panel .front-search .btn {
  min-height: 44px;
}
.front-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.front-panel { padding: 20px; }
.details-grid { display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(320px, .76fr); gap: 26px; align-items: start; }
.details-grid > div:last-child { padding: 22px; }
.details-grid h1 { font-size: clamp(1.7rem, 3vw, 2.7rem); font-weight: 950; text-transform: uppercase; }
.details-grid .negotiable-price { font-size: 1.35rem; }
.detail-main-image { display: grid; place-items: center; min-height: 460px; background: #e9edf3; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.vehicle-slider { position: relative; }
.detail-main-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-main-image i { font-size: 5rem; color: #8a94a6; }
.slider-control { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .68); color: #fff; }
.slider-control:hover { background: var(--accent); }
.slider-prev { left: 14px; }
.slider-next { right: 14px; }
.thumb-row { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.vehicle-thumb-button { border: 2px solid transparent; background: transparent; border-radius: 6px; padding: 0; flex: 0 0 auto; }
.vehicle-thumb-button.active { border-color: var(--accent); }
.thumb-row img { width: 112px; height: 78px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); display: block; }
.spec-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.spec-table div { background: #f7f7f7; border: 1px solid #ececec; border-radius: 4px; padding: 11px; }
.spec-table span,
.finance-result span { display: block; color: var(--muted); font-size: .82rem; font-weight: 800; }
.spec-table strong,
.finance-result strong { display: block; font-size: 1rem; margin-top: 2px; }
.feature-list { columns: 2; padding-left: 18px; }
.compare-table th,
.compare-table td { min-width: 180px; padding: 14px; }
.finance-result { display: grid; gap: 14px; }
.badge.text-bg-light { background: rgba(200, 0, 0, .08) !important; color: var(--accent) !important; border: 1px solid rgba(200, 0, 0, .16); }

@media (max-width: 1200px) {
  .front-contact { gap: 12px; }
  .front-phone { font-size: 1rem; }
  .front-nav .nav-link { margin: 0 3px; }
  .showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
  .front-nav { min-height: auto; }
  .front-nav .container { min-height: 78px; }
  .brand-logo img { width: 82px; height: 82px; margin: 0; }
  .front-contact { align-items: flex-start; flex-direction: column; margin: 12px 0 0; }
  .front-nav .navbar-nav { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
  .front-nav .nav-link { margin: 0; }
  .hero-grid { grid-template-columns: 1fr; padding: 48px 12px; }
  .hero-brand { justify-content: flex-start; min-height: auto; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-search-panel { grid-template-columns: 1fr; }
  .home-search-head { border-right: 0; border-bottom: 1px solid #e6e6e6; padding: 0 0 14px; }
  .confidence-grid,
  .front-columns,
  .details-grid { grid-template-columns: 1fr; }
  .confidence-contact { justify-items: start; }
}

@media (max-width: 640px) {
  .prius-hero { background-position: center; }
  .hero-copy h1 { font-size: 2.65rem; }
  .hero-logo { width: 190px; }
  .trust-grid,
  .showcase-grid,
  .vehicle-grid,
  .confidence-items,
  .spec-table { grid-template-columns: 1fr; }
  .trust-grid article { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .24); }
  .vehicle-photo { height: 205px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .confidence-items article { grid-template-columns: 62px 1fr; }
  .feature-list { columns: 1; }
}
