body {
  font-family: Arial, sans-serif;
  background: #f8f9fa;
  margin: 0;
  padding: 20px;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  overflow: hidden;
  text-align: center;
  padding: 15px;
}

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

.card h2 {
  margin: 10px 0;
}

.card p {
  color: #555;
}

.botao-whatsapp {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 15px;
  background: #25d366;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.card-detalhe {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  
  padding: 20px;
}

.card-detalhe img {
  max-width: 400px;
  border-radius: 10px;
}

.card-detalhe .info {
  flex: 1;
  min-width: 250px;
}

#carrosCarousel .carousel-item {
  height: 800px; /* altura do carrossel */
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 10px;
  margin-top: 100px;
}

/* Fundo escuro sobre as imagens */
#carrosCarousel .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}

/* Centralização e estilo do texto */
.carousel-caption {
  position: absolute;
  bottom: -50px; /* valor padrão é ~20px, aumente pra descer mais */
  top: auto; /* garante que não vai ser limitado pelo topo */
  transform: translateY(-50%);
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

/* Imagens de fundo */
#slide1 {
  background-image: url("../images/A3.jpg");
}

#slide2 {
  background-image: url("../images/download.jpg");
}

#slide3 {
  background-image: url("../images/download.jpg");
}

/* ======= DETALHES DO CARRO ======= */

.card-detalhe {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 25px;
  max-width: 800px;
  margin: 40px auto;
}

.card-detalhe:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-detalhe img {
  width: 100%;
  max-width: 600px;
  height: 380px; /* altura fixa para manter proporção no desktop */
  object-fit: cover; /* mantém o enquadramento da imagem */
  border-radius: 12px;
}

.card-detalhe .info {
  flex: 1;
  min-width: 250px;
}

.card-detalhe h2 {
  font-size: 1.8rem;
  color: #111;
  margin-bottom: 10px;
}

.card-detalhe p {
  font-size: 1.1rem;
  color: #444;
  margin: 5px 0;
}

.card-detalhe strong {
  color: #000;
}

/* Botões */
.botao-whatsapp {
  display: inline-block;
  background-color: #25D366;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
  transition: background 0.3s ease;
}

.botao-whatsapp:hover {
  background-color: #1ebe5a;
}

.card-detalhe a[href*="index.html"] {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  transition: background 0.3s ease;
}

.card-detalhe a[href*="index.html"]:hover {
  background-color: #0056b3;
}

#carouselCarro {
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
}



#carouselCarro img {
  border: #000 1px solid;
  border-radius: 15px;
  object-fit: cover;
  width: 100%;
  height: 380px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
}

.top-gap {
  margin-top: 100px; /* Ajuste conforme necessário */
}


/* Responsividade */
@media (max-width: 768px) {
  .card-detalhe {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .card-detalhe img {
    margin: 0 0 20px 0;
  }

  #meuCarrossel {
    height: 350px; /* diminui a altura */
  }

  #carrosCarousel .carousel-item {
    height: 600px;
  }

  #meuCarrossel .carousel-caption h1 {
    font-size: 1.4rem; /* diminui o título */
  }

  #meuCarrossel .carousel-caption p {
    font-size: 0.9rem; /* diminui o texto */
  }

  #meuCarrossel .carousel-caption .btn {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
}
