/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #0f0f0f;
  color: #fff;
  line-height: 1.6;
  width: 100%;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 60px;
  background: rgba(0, 0, 0, 0.9);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #333;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
}

.logo span {
  color: #ff0000;
}

nav ul {
  display: flex;
  gap: 25px;
}

nav ul li a {
  color: white;
  transition: 0.3s;
  font-weight: 500;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #ff0000;
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

nav ul li a:hover {
  color: #ff0000;
}

/* Hero Section */
.hero {
  height: 90vh;
  min-height: 700px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  color: #ccc;
}

.hero-buttons {
  display: flex;
  justify-content: center;
}

.btn-hero {
  background: #ff0000;
  color: white;
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 5px;
  transition: all 0.3s;
}

.btn-hero:hover {
  background: #cc0000;
}

.btn-hero i {
  margin-right: 8px;
}

/* Promo Banners */
.promo-banners {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 20px;
}

.promo-banner {
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  min-height: 300px;
  color: white;
  display: flex;
  align-items: flex-end;
  padding: 30px;
}

.promo-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

.promo-main {
  grid-row: span 2;
}

.promo-small {
  min-height: 140px;
}

.promo-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.promo-tag {
  background: #ff0000;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 15px;
}

.promo-banner h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.promo-banner h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.promo-banner p {
  margin-bottom: 20px;
  color: #ccc;
}

.btn-promo {
  display: inline-block;
  background: #ff0000;
  color: white;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: bold;
  transition: all 0.3s;
}

.btn-promo:hover {
  background: #cc0000;
  transform: translateY(-3px);
}

/* Ofertas Especiais */
.ofertas {
  padding: 20px 0;
  margin-bottom: 0;
  background: #1a1a1a;
  position: relative;
}

.section-header-container {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 40px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.section-header h2 {
  font-size: 2rem;
  color: white;
  display: flex;
  align-items: center;
  margin: 0;
}

.section-header h2 i {
  color: #ff0000;
  margin-right: 10px;
}

.see-all {
  color: #ff0000;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s;
}

.see-all:hover {
  color: #cc0000;
  transform: translateX(3px);
}

.see-all i {
  font-size: 0.8rem;
  transition: transform 0.3s;
}

.see-all:hover i {
  transform: translateX(3px);
}

.carousel-wrapper {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 10px;
}

.carousel {
  position: relative;
  display: flex;
  align-items: center;
}

.carousel-container {
  display: flex;

  width: 100%;
  padding: 0;
}

.carousel-slide {
  display: flex;
  gap: 15px;
  padding: 0 10px;
  transition: transform 0.5s ease-in-out;
}

.vehicle-card {
  flex: 0 0 280px;
  background: #0f0f0f;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #333;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

.vehicle-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
  border-color: #ff0000;
}

.vehicle-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #000;
  border-bottom: 2px solid #ff0000;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 0, 0, 0.8);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.carousel-prev {
  left: 5px;
}

.carousel-next {
  right: 5px;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: #ff0000;
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev:disabled,
.carousel-next:disabled {
  background: rgba(255, 0, 0, 0.4);
  cursor: not-allowed;
}

.no-offers {
  width: 100%;
  text-align: center;
  padding: 20px;
  color: #ccc;
}

.vehicle-info {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.vehicle-info h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: white;
  min-height: auto;
}

.vehicle-info p {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.vehicle-info p i {
  margin-right: 8px;
  color: #ff0000;
  font-size: 0.9rem;
}

.price {
  margin: 15px 0;
}

.old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9rem;
  display: block;
}

.current-price {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  color: #ff0000;
}

.btn-vehicle {
  margin-top: auto;
  display: block;
  text-align: center;
  background: #ff0000;
  color: white;
  padding: 10px 0;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s;
}

.btn-vehicle:hover {
  background: #cc0000;
}

/* Formulário de Interesse */
.interest-form {
  padding: 80px 20px;
  background: #0f0f0f;
}

.form-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.form-content {
  text-align: left;
}

.form-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: white;
}

.form-content p {
  color: #ccc;
  margin-bottom: 30px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.interest-form form {
  display: grid;
  gap: 15px;
}

.interest-form input,
.interest-form select,
.interest-form textarea {
  padding: 12px 15px;
  border-radius: 5px;
  border: none;
  background: #1a1a1a;
  color: white;
  font-size: 1rem;
}

.interest-form input::placeholder {
  color: #999;
}

.interest-form textarea {
  resize: vertical;
  min-height: 100px;
}

.interest-form button {
  background: #ff0000;
  color: white;
  padding: 12px 15px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}

.interest-form button:hover {
  background: #cc0000;
}

.interest-form button i {
  margin-left: 8px;
}

.form-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* WhatsApp Fixo */
.whatsapp-fixed {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  color: white;
  padding: 15px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
  z-index: 99;
}

.whatsapp-fixed i {
  font-size: 1.5rem;
}

.whatsapp-fixed span {
  display: none;
}

.whatsapp-fixed:hover {
  background: #128c7e;
  transform: scale(1.05);
}

.whatsapp-fixed:hover span {
  display: inline;
}

.whatsapp-fixed.pulse {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Footer */
footer {
  background: #000;
  color: #fff;
  padding: 60px 20px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-column {
  margin-bottom: 30px;
}

.footer-column h3 {
  color: #ff0000;
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: #ff0000;
}

.footer-column p {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 20px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #1a1a1a;
  border-radius: 50%;
  color: #fff;
  transition: all 0.3s;
}

.social-icons a:hover {
  background: #ff0000;
  color: #fff;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #ccc;
  transition: all 0.3s;
  font-size: 0.95rem;
}

.footer-column ul li a:hover {
  color: #ff0000;
  padding-left: 5px;
}

.contact-info li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: #ccc;
  font-size: 0.95rem;
}

.contact-info i {
  color: #ff0000;
  margin-right: 10px;
  width: 20px;
  text-align: center;
  font-size: 1rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid #333;
  color: #777;
  font-size: 0.9rem;
  text-align: center;
}

.footer-links {
  color: red;
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 10px;
}

.footer-links a {
  color: red;
  transition: all 0.3s;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ff0000;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 5px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  z-index: 1000;
}

.toast-success {
  background-color: #28a745;
}

.toast-error {
  background-color: #dc3545;
}

.toast.show {
  opacity: 1;
}

/* Responsividade */
@media (max-width: 1024px) {
  header {
    padding: 15px 30px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .form-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .form-image {
    display: none;
  }
}

@media (max-width: 768px) {
  header {
    padding: 15px 20px;
    flex-direction: column;
    gap: 15px;
  }

  header nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .hero {
    height: auto;
    min-height: 500px;
    padding: 100px 20px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .promo-banners {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .carousel-wrapper {
    padding: 0 5px;
  }

  .carousel-container {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .carousel-slide {
    gap: 10px;
    padding: 0 5px;
  }

  .vehicle-card {
    flex: 0 0 75%;
    max-width: 280px;
    min-height: 360px;
  }

  .vehicle-card img {
    height: 160px;
    object-fit: contain;
  }

  .carousel-prev,
  .carousel-next {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .carousel-prev {
    left: 2px;
  }

  .carousel-next {
    right: 2px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  /* Ajustes gerais para telas pequenas */
  body {
    width: 100%;
    overflow-x: hidden;
  }

  /* Header mobile */
  header {
    padding: 12px 15px;
    flex-direction: row;
  }

  .logo {
    font-size: 1.4rem;
  }

  nav ul {
    gap: 12px;
    font-size: 0.9rem;
  }

  /* Hero section mobile */
  .hero {
    min-height: 400px;
    padding: 60px 15px;
  }

  .hero h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .btn-hero {
    padding: 12px 30px;
    font-size: 1rem;
  }

  /* Promo banners mobile */
  .promo-banners {
    margin: 20px auto;
    padding: 0 15px;
    gap: 15px;
  }

  .promo-banner {
    min-height: 200px;
    padding: 20px;
  }

  .promo-small {
    min-height: 100px;
  }

  .promo-banner h2 {
    font-size: 1.5rem;
  }

  .promo-banner h3 {
    font-size: 1.2rem;
  }

  /* Ofertas mobile */
  .section-header-container {
    padding: 0 15px;
    margin-bottom: 25px;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .carousel-wrapper {
    padding: 0;
  }

  .carousel-slide {
    gap: 8px;
    padding: 0 5px;
  }

  .vehicle-card {
    flex: 0 0 85%;
    max-width: 260px;
    min-height: 340px;
  }

  .vehicle-card img {
    height: 140px;
  }

  .vehicle-info h3 {
    font-size: 1.1rem;
  }

  .vehicle-info p {
    font-size: 0.85rem;
  }

  .btn-vehicle {
    padding: 8px 0;
    font-size: 0.9rem;
  }

  /* Formulário mobile */
  .interest-form {
    padding: 50px 15px;
  }

  .form-content h2 {
    font-size: 1.5rem;
  }

  /* Footer mobile */
  footer {
    padding: 40px 15px 20px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Garante que nada ultrapasse a largura da tela */
  .container,
  .carousel-wrapper,
  .form-container,
  .footer-container {
    max-width: 100%;
  }

  /* Remove qualquer margem ou padding extra */
  body,
  html {
    margin: 0;
    padding: 0;
    width: 100%;
  }

  /* Ajusta elementos fixos */
  .whatsapp-fixed {
    bottom: 15px;
    right: 15px;
    padding: 10px 12px;
  }

  .whatsapp-fixed i {
    font-size: 1.3rem;
  }
}

/* Adicione isso para telas muito pequenas (menores que 360px) */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  nav ul {
    gap: 8px;
    font-size: 0.8rem;
  }

  .vehicle-card {
    flex: 0 0 90%;
    max-width: 240px;
    min-height: 320px;
  }

  .vehicle-card img {
    height: 130px;
  }

  .vehicle-info h3 {
    font-size: 1rem;
  }
}
