* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  
}

/* ── SCROLL SUAVE ── */
html {
  scroll-behavior: smooth;
}

body {
  background: #f4f4f4;
  color: #111;
}

nav a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 58px;
  line-height: 1.1;
}

.hero-text p {
  margin-top: 20px;
  font-size: 18px;
  color: #cfcfcf;
}

.hero-text button {
  margin-top: 30px;
  background: #ff2b2b;
  color: white;
  border: none;
  padding: 16px 28px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: 0.3s;
}

.hero-text button:hover {
  background: #d91f1f;
}

.hero-image {
  flex: 1;
}

.hero-image img {
  width: 100%;
  border-radius: 20px;
}

/* CARS */

.cars {
  width: 84%;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-bottom: 80px;
}

.card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  transition: 0.3s;
  box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
  background: white;
}

.card-content h2 {
  font-size: 24px;
}

.card-content p {
  margin-top: 10px;
  color: #777;
}

.card-content h3 {
  margin-top: 20px;
  color: #ff2b2b;
  font-size: 28px;
}

.card-content button {
  width: 100%;
  margin-top: 20px;
  height: 50px;
  border: none;
  border-radius: 12px;
  background: #ff2b2b;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.card-content button:hover {
  background: #222;
}

/* RESPONSIVO */

@media(max-width: 900px) {

  .hero {
    flex-direction: column;
  }

  .hero-text h1 {
    font-size: 42px;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .cars {
    grid-template-columns: 1fr;
  }

  nav {
    display: none;
  }

  .range-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .range-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 15px;
    color: #555;
  }

  .range-top strong {
    color: #ff2b2b;
    font-size: 16px;
  }

  .range-slider {
    width: 100%;
    appearance: none;
    height: 8px;
    border-radius: 20px;
    background: #e4e4e4;
    outline: none;
  }

  .range-slider::-webkit-slider-thumb {
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ff2b2b;
    cursor: pointer;
    border: 4px solid white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  }

  .range-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ff2b2b;
    cursor: pointer;
    border: none;
  }

}


