/* IM Motors — independent site, styled to match the original look and feel */

:root {
  --red: #ed1c24;
  --red-dark: #af0e14;
  --dark: #222222;
  --gray-900: #313131;
  --gray-700: #3a3a3a;
  --gray-500: #6c757d;
  --gray-200: #dee2e6;
  --gray-100: #f8f9fa;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.5;
}

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

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

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

/* Top bar */
.topbar {
  background: var(--dark);
  color: #ccc;
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  padding-bottom: 6px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #ddd; }
.topbar .hours { color: #999; }

/* Header */
header.site-header {
  border-bottom: 3px solid var(--red);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 56px; width: auto; }
.brand-text { display: flex; flex-direction: column; }
.brand-text strong { font-size: 1.35rem; color: var(--gray-900); letter-spacing: 0.5px; }
.brand-text span { font-size: 0.8rem; color: var(--gray-500); }

.phone-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--gray-900);
}
.phone-cta .icon { color: var(--red); }
.phone-cta a { color: var(--gray-900); font-size: 1.1rem; }
.phone-cta a:hover { color: var(--red); }

/* Nav */
nav.main-nav {
  background: var(--red);
}
nav.main-nav .container { display: flex; align-items: center; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  padding: 12px 0;
  cursor: pointer;
}
.nav-list {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav-list li { position: relative; }
.nav-list > li > a {
  display: block;
  color: var(--white);
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}
.nav-list > li > a:hover,
.nav-list > li.active > a {
  background: var(--red-dark);
  text-decoration: none;
}

/* Hero */
.hero {
  position: relative;
  background: var(--dark) center/cover no-repeat;
  color: var(--white);
  padding: 90px 0;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.65));
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: 2.3rem; margin: 0 0 12px; }
.hero p { font-size: 1.1rem; color: #eee; max-width: 640px; margin: 0 auto 24px; }

.btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { background: var(--red-dark); color: var(--white); text-decoration: none; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--dark); }

/* Page header (non-home pages) */
.page-header {
  background: var(--gray-900);
  color: var(--white);
  padding: 36px 0;
  text-align: center;
}
.page-header h1 { margin: 0 0 6px; font-size: 1.8rem; }
.page-header p { margin: 0; color: #ccc; }

/* Feature cards */
.features { padding: 60px 0; background: var(--gray-100); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 24px;
  text-align: center;
}
.card .icon-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
}
.card h3 { margin: 0 0 10px; color: var(--gray-900); }
.card p { color: var(--gray-500); margin: 0 0 16px; font-size: 0.95rem; }

/* Sections */
section.block { padding: 60px 0; }
section.block.alt { background: var(--gray-100); }
.block h2 {
  font-size: 1.6rem;
  color: var(--gray-900);
  margin: 0 0 10px;
  border-left: 5px solid var(--red);
  padding-left: 14px;
}
.block .lead { color: var(--gray-500); margin-bottom: 30px; }

/* Vehicle grid */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.vehicle-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.vehicle-card:hover { transform: translateY(-3px); }
.vehicle-card img { width: 100%; height: 190px; object-fit: cover; background: var(--gray-200); }
.vehicle-card .body { padding: 16px; }
.vehicle-card h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--gray-900); }
.vehicle-card .price { color: var(--red); font-weight: 700; font-size: 1.15rem; margin: 8px 0; }
.vehicle-card .meta { color: var(--gray-500); font-size: 0.85rem; margin-bottom: 12px; }
.vehicle-card a.btn { display: block; text-align: center; padding: 10px; }

.empty-note {
  text-align: center;
  color: var(--gray-500);
  padding: 40px 20px;
  border: 1px dashed var(--gray-200);
  border-radius: var(--radius);
}

/* Vehicle detail */
.vdp-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}
.vdp-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
.vdp-price { font-size: 1.8rem; color: var(--red); font-weight: 800; margin: 6px 0 18px; }
.vdp-specs { list-style: none; padding: 0; margin: 0 0 24px; }
.vdp-specs li {
  display: flex; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid var(--gray-200);
  font-size: 0.95rem;
}
.vdp-specs li span:first-child { color: var(--gray-500); }

/* Forms */
form.styled {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  max-width: 720px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-row.single { grid-template-columns: 1fr; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
}
.field textarea { resize: vertical; min-height: 100px; }
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-bottom: 20px;
}
.consent input { margin-top: 4px; }

.form-note {
  background: #fff8e1;
  border: 1px solid #ffe082;
  color: #6b5300;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.confirm-msg {
  display: none;
  background: #e9f9ee;
  border: 1px solid #b6e6c5;
  color: #1e7a3c;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Info blocks: hours / directions */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 8px 0; border-bottom: 1px solid var(--gray-200); }
.hours-table td:last-child { text-align: right; color: var(--gray-500); }
.map-frame { width: 100%; height: 320px; border: 0; border-radius: var(--radius); }

/* Staff / testimonials */
.staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.staff-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
}
.staff-card .avatar {
  width: 90px; height: 90px; border-radius: 50%;
  background: var(--gray-200);
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-500); font-size: 1.8rem; font-weight: 700;
}
.testimonial {
  background: var(--white);
  border-left: 4px solid var(--red);
  box-shadow: var(--shadow);
  padding: 22px 26px;
  margin-bottom: 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.testimonial p { margin: 0 0 10px; color: var(--gray-700); font-style: italic; }
.testimonial .who { font-weight: 700; color: var(--gray-900); font-style: normal; }

/* Loan calculator */
.calc-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  max-width: 480px;
}
.calc-result {
  margin-top: 20px;
  padding: 18px;
  background: var(--gray-100);
  border-radius: var(--radius);
  text-align: center;
}
.calc-result .amount { font-size: 1.8rem; font-weight: 800; color: var(--red); }
.calc-result .label { color: var(--gray-500); font-size: 0.85rem; }

/* Footer */
footer.site-footer {
  background: var(--dark);
  color: #ccc;
  padding: 40px 0 20px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 24px;
}
.footer-grid h4 { color: var(--white); margin: 0 0 12px; font-size: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 0.9rem; }
.footer-grid a { color: #bbb; }
.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 16px;
  text-align: center;
  font-size: 0.82rem;
  color: #888;
}

/* Responsive */
@media (max-width: 860px) {
  .card-grid, .staff-grid { grid-template-columns: 1fr; }
  .vdp-grid, .info-grid, .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  .nav-list.open { display: flex; }
  nav.main-nav .container { flex-direction: column; align-items: stretch; }
  .hero { padding: 60px 0; }
  .hero h1 { font-size: 1.7rem; }
}
