/* ===== Hero Base Styles ===== */
.hero {
  position: relative;
  min-height: 100vh;
  background: url("/images/whiteBmwBackground2.webp") no-repeat center center /
    cover;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 4rem 1.5rem 2rem;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 90%;
  margin-top: 6rem;
  color: #fff;
  text-align: center;
}

.hero-content h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.6);
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.75rem;
}

/* ===== Responsive Breakpoints ===== */

/* === Smartphone: max-width: 767px === */
@media only screen and (max-width: 767px) {
  .hero {
    padding: 3rem 1rem 1.5rem;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
  }

  .hero-content {
    margin-top: 7rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.5rem;
    line-height: 1.5;
  }

  .hero-content .optional {
    display: none;
  }
}

/* === Tablet: 768px–1023px === */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
  .hero {
    padding: 5rem 3rem 3rem;
  }

  .hero-content {
    max-width: 700px;
    margin-top: 4rem;
    text-align: left;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }
}

/* === Desktop: min-width: 1024px === */
@media only screen and (min-width: 1024px) {
  .hero {
    padding: 8rem 8rem 5rem;
  }

  .hero-content {
    max-width: 750px;
    margin-top: 2rem;
    text-align: left;
  }

  .hero-content h1 {
    font-size: 3.5rem;
  }

  .hero-content p {
    font-size: 1.25rem;
  }
}
