body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #333;
}
header {
  background: #0a2a66;
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
}
header .brand {
  font-size: 1.5rem;
  font-weight: bold;
}
header .dotcom {
  color: orange;
}
header nav a {
  color: #fff;
  margin-left: 1rem;
  text-decoration: none;
}
.hero {
  text-align: center;
  padding: 2rem;
}
.deal-form {
  margin-top: 1rem;
}
.deal-form input {
  padding: 0.5rem;
  width: 250px;
}
.deal-form button {
  background: orange;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
}
.deal-cars {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem;
}
.deal-card {
  border: 1px solid #ccc;
  padding: 1rem;
  width: 200px;
  text-align: center;
  border-radius: 5px;
  background: #f9f9f9;
}
.deal-card img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}
.features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem;
}
.feature {
  text-align: center;
  width: 200px;
}
footer {
  background: #0a2a66;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}
/* Ensure car images scale properly */
.car-img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Make grid responsive */
.deal-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.deal-container .deal {
  flex: 1 1 250px;
  max-width: 300px;
  text-align: center;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .deal-container {
    flex-direction: column;
    align-items: center;
  }
  .deal-container .deal {
    max-width: 90%;
  }
}
/* --- Deals section --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

.deal-section { padding: 32px 0; }
.deal-section h2 {
  font-size: 28px;
  text-align: center;
  margin: 0 0 8px;
  line-height: 1.25;
}
.deal-section p { text-align: center; color: #5b667a; margin: 0 0 18px; }

.deal-form { display: flex; gap: 12px; justify-content: center; margin-bottom: 24px; }
.deal-form input[type="email"] {
  width: 320px; max-width: 80vw;
  padding: 12px 14px; border: 1px solid #d5dbe4; border-radius: 8px; font-size: 16px;
}
.deal-form button {
  padding: 12px 16px; border: none; border-radius: 8px; font-weight: 600;
  background: #ff9d2f; color: #111; cursor: pointer;
}

.deal-cars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.deal-card {
  background: #fff; border: 1px solid #e7ecf3; border-radius: 12px; padding: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
  text-align: left;
}
.deal-card img {
  width: 100%; height: 180px; object-fit: cover; border-radius: 8px;
  display: block; margin-bottom: 10px;
}
.deal-card h3 { font-size: 16px; margin: 4px 0; }
.deal-card p { margin: 0; color: #2d3748; font-weight: 600; }

/* Features row */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 28px 0;
}
.feature { text-align: center; padding: 8px; }
.feature h3 { margin: 8px 0 6px; }
.feature p { margin: 0; color: #5b667a; }

/* Mobile tweaks */
@media (max-width: 768px) {
  .deal-cars { grid-template-columns: 1fr; }
  .features  { grid-template-columns: 1fr; }
  .deal-card img { height: 160px; }
}
/* ====== CAR DEAL CARDS ====== */
.deal-cars {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.deal-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 15px;
  text-align: center;
  width: 250px;
}

.deal-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;  /* keeps ratio without stretching */
  border-radius: 8px;
  margin-bottom: 10px;
}

.deal-card h3 {
  margin: 10px 0 5px;
  font-size: 18px;
  font-weight: bold;
}

.deal-card p {
  font-size: 16px;
  color: #333;
}
/* ===== Features (cards) ===== */
.features {
  padding: 48px 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.feature-card {
  background: #fff;
  border: 1px solid #e5e7eb;           /* light gray */
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.feature-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 10px;
}
.feature-card h3 {
  margin: 8px 0 6px;
  font-size: 18px;
}
.feature-card p {
  margin: 0;
  color: #6b7280;                       /* muted text */
  font-size: 14px;
}

/* Mobile */
@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Home (Deals) ===== */
.deal-hero { text-align:center; padding: 28px 0 8px; }
.deal-hero h2 { font-size: clamp(22px, 4.5vw, 32px); margin: 0 0 6px; }
.deal-hero .sub { color:#5c6370; margin:0 0 14px; }
.deal-form { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.deal-form input{ padding:10px 12px; min-width:260px; border:1px solid #d6dae0; border-radius:6px; }
.deal-form button{ padding:10px 14px; border:0; border-radius:6px; background:#ff9d2b; color:#111; font-weight:600; cursor:pointer; }

.deal-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
  margin: 18px auto 10px;
  max-width: 1080px;
  padding: 0 12px;
}
@media (max-width: 900px){ .deal-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .deal-grid{ grid-template-columns: 1fr; } }

.deal-card{
  background:#fff; border:1px solid #e7eaf0; border-radius:10px;
  box-shadow: 0 2px 8px rgba(16,24,40,0.06);
  overflow:hidden;
}
.deal-card .thumb{
  aspect-ratio: 4/3;      /* keeps a nice box even before the image loads */
  width:100%; overflow:hidden; background:#f4f6f8;
}
.deal-card img{
  width:100%; height:100%; object-fit: cover; display:block;
}
.deal-card h3{ font-size:16px; margin:10px 12px 0; }
.deal-card .price{ margin: 6px 12px 12px; color:#263238; font-weight:600; }

.features{
  display:grid; gap:16px; grid-template-columns: repeat(3, 1fr);
  max-width: 1080px; padding: 14px 12px 26px; margin: 0 auto;
}
.features .feature h3{ margin:0 0 6px; font-size:16px; }
.features .feature p{ margin:0; color:#5c6370; }
@media (max-width: 900px){ .features{ grid-template-columns:1fr; text-align:center; } }
.deal-cars {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.deal-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  width: 250px;
  background: #fff;
}

.deal-card img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .deal-cars {
    flex-direction: column;
    align-items: center;
  }
  .deal-card {
    width: 90%;
  }
}
