/* =========================
   GLOBAL
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

body {
  background: #eef2f7;
  color: #1f2933;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  background: #1e3a5f;
  color: #fff;
}

.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar a {
  color: #fff;
  margin-left: 20px;
  text-decoration: none;
}

.logo {
  font-weight: bold;
  font-size: 1.2rem;
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  min-height: 65vh;
  background: 
    linear-gradient(rgba(30, 58, 95, 0.75), rgba(30, 58, 95, 0.75)),
    url("./img/towtruck.jpg");
  background-size: cover;
  background-position: center 45%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  color: #fff;
  text-align: center;
}

.hero-text h1 {
  margin-bottom: 15px;
}

.subtitle {
  margin: 15px 0;
  font-size: 1.1rem;
}

.checklist {
  list-style: none;
  margin: 15px 0;
}

.checklist li {
  margin-bottom: 8px;
}

.btn-primary {
  display: inline-block;
  background: #3b82f6;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
}

/* =========================
   SERVICES (GRID)
========================= */
.services {
  background: #fff;
  padding: 60px 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.service-card {
  background: #f1f5f9;
  padding: 25px;
  border-radius: 8px;
}

/* =========================
   WHY SELL / CLEAN CARDS
========================= */
.why-sell {
  padding: 50px 0;
}

.services-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  flex: 1 1 280px; /* responsive width */
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
  background: none; /* remove background */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* subtle shadow */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 15px 10px;
}

.card-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-content p {
  font-size: 0.9rem;
  color: #333;
}

/* Responsive: stack cards on mobile */
@media (max-width: 768px) {
  .services-container {
    flex-direction: column;
    align-items: center;
  }
  .service-card {
    width: 100%;
    max-width: 400px;
  }
}

/* =========================
   SERVICES-CARDS (Blue gradient)
========================= */
.services-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.services-container .service-card {
  background: #fff;
  width: 300px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  background: linear-gradient(to bottom, #2b4a70, #1f3653);
  color: white;
  text-align: center;
  padding: 15px 15px 25px 15px;
  border-top: 2px solid #3e6391;
  flex-grow: 1;
}

.card-content h3 {
  margin: 10px 0;
  text-transform: uppercase;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.card-content p {
  font-size: 0.9rem;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.btn-details {
  display: inline-block;
  background: linear-gradient(to bottom, #3b6ea5, #1d4575);
  color: white;
  text-decoration: none;
  padding: 8px 25px;
  border: 1px solid #143257;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: bold;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 2px 3px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-details:hover {
  background: linear-gradient(to bottom, #4a80bd, #255288);
}

/* =========================
   INVENTORY / CARS
========================= */
.inventory {
  background: #fff;
  padding: 60px 0;
}

.car-card {
  background: #f8fafc;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
}

.car-image {
  position: relative;
}

.car-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
}

.price-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: #25d366;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.car-card button,
.whatsapp-btn {
  margin-top: 10px;
  padding: 10px;
  width: 100%;
  background: #25d366;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

.whatsapp-btn:hover {
  background: #1ebe5d;
}

/* =========================
   CONTACT
========================= */
.contact {
  background-image: url("./img/footer.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;

  color: white;
  padding: 100px 0;
  position: relative;
}
}

/* =========================
   FOOTER
========================= */
.footer {
  background-image: url("./img/footer-bg.jpg");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;

  color: #f1f5f9;
  text-align: center;
  padding: 15px;
}


/* =========================
   WHATSAPP FLOATING BUTTON
========================= */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  border: none;
  border-radius: 30px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 1000;
}

.whatsapp-float img {
  width: 26px;
  height: 26px;
}

.whatsapp-text {
  background: white;
  color: #1f2933;
  padding: 6px 10px;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 600px) {
  .whatsapp-text {
    display: none;
  }
}

/* =========================
   WHATSAPP MODAL
========================= */
.whatsapp-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.whatsapp-modal-content {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  width: 100%;
  max-width: 380px;
  position: relative;
}

.whatsapp-modal-content h3 {
  margin-bottom: 15px;
}

.whatsapp-modal-content input,
.whatsapp-modal-content select {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
}

.whatsapp-modal-content button {
  width: 100%;
  background: #25d366;
  color: white;
  border: none;
  padding: 12px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 1.4rem;
  cursor: pointer;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .hero {
    min-height: 50vh;
    background-position: center 40%;
  }
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .services-container {
    flex-direction: column;
    align-items: center;
  }
  .service-card {
    width: 100%;
    max-width: 400px;
  }
}
