* {
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

.hero {
  background: rgba(186, 210, 238, 1);
  padding: 60px 40px;
  border-radius: 0 0 40px 40px;
  margin: 0 20px 20px;
}

.hero-container {
  max-width: calc(100% - 40px);
  margin: 0 auto;
  display: flex;
  gap: 8%;
}

/* LEFT SIDE */
.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.side-btn {
  width: 250px;
  height: 100px;
  padding: 30px 40px;
  border-radius: 40px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background 0.3s ease, color 0.3s ease, transform 0.25s ease;;
}

.side-btn.active {
  width: 450px;
  height: 150px;
  margin-left: -100px;
  background: #000;
  padding: 38px 46px;
  border: 20px solid #fff;
  border-left: none;
  color: #fff;
  font-size: 24px;
}

/* RIGHT SIDE */
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}


.cards-wrapper {
  display: flex;
  gap: 35px;
}

.card {
  width: 270px;
  height: 440px;
  border-radius: 30px;
  overflow: hidden;
  background: #fff;
  text-align: center;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-title {
  margin-top: 20px;
  font-weight: 700;
  width: 270px;
  height: 40px;
  text-align: center;
}

/* BUTTON */
.quote-btn {
  margin-top: 40px;
  padding: 14px 40px;
  border-radius: 30px;
  border: none;
  background: #000;
  color: #fff;
  cursor: pointer;
}

/* LARGE DESKTOP (≤1400px) */
@media (max-width: 1400px) {
  .side-btn.active {
    width: 400px;
    height: 140px;
    font-size: 22px;
  }

  .cards-wrapper {
    gap: 30px;
  }
}

/* LAPTOP (≤1200px) */
@media (max-width: 1200px) {
  .hero-container {
    gap: 5%;
  }

  .side-btn {
    width: 220px;
    height: 90px;
    font-size: 15px;
  }

  .side-btn.active {
    width: 360px;
    height: 130px;
    font-size: 20px;
    margin-left: -70px;
  }

  .card {
    width: 240px;
    height: 400px;
  }

  .card-title {
    width: 240px;
  }
}

/* TABLET LANDSCAPE (≤992px) */
@media (max-width: 992px) {
  .hero-container {
    flex-direction: column;
    gap: 40px;
  }

  .hero-sidebar {
    flex-direction: row;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .side-btn {
    min-width: 200px;
    height: 80px;
    font-size: 14px;
    border-radius: 30px;
  }

  .side-btn.active {
    width: 240px;
    height: 100px;
    margin-left: 0;
    font-size: 18px;
    border: 10px solid #fff;
  }

  .cards-wrapper {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ================= TABLET PORTRAIT (≤768px) ================= */
@media (max-width: 768px) {

  .hero-sidebar {
    justify-content: center;
  }

  .cards-wrapper {
    gap: 25px;
    justify-content: center;
  }

  .card {
    width: 220px;
    height: 360px;
  }

  .card-title {
    width: 220px;
    font-size: 14px;
  }
}

/* MOBILE (≤576px) */
@media (max-width: 576px) {
  .hero-sidebar {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .side-btn,
  .side-btn.active {
    width: 100%;
    max-width: 320px;
    height: auto;
    padding: 18px;
    font-size: 16px;
    margin-left: 0;
    border-radius: 20px;
    border: none;
  }

  .cards-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 100%;
    max-width: 320px;
    height: 420px;
  }

  .card-title {
    width: 100%;
    max-width: 320px;
    font-size: 15px;
  }

  .quote-btn {
    width: 100%;
    max-width: 320px;
  }
}

/* SMALL MOBILE (≤400px) */
@media (max-width: 400px) {
  .hero {
    padding: 30px 15px;
  }

  .card {
    height: 380px;
  }

  .side-btn {
    font-size: 14px;
  }
}

/* ===== iPAD / TABLET FIX (1024px) ===== */
@media (max-width: 1100px) {
  .hero-container {
    flex-direction: column;
    align-items: center;
  }

  .hero-sidebar {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
  }

  .side-btn,
  .side-btn.active {
    width: 240px;
    height: 90px;
    margin-left: 0;
    font-size: 16px;
    border-radius: 30px;
  }

  .side-btn.active {
    border: 10px solid #fff;
  }

  .cards-wrapper {
    margin-top: 10px;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
  }
}

/* ===== NEST HUB MAX / COMPACT DESKTOP FIX ===== */
@media (max-width: 1320px) {
  .hero-container {
    max-width: 100%;
    justify-content: center;
    gap: 40px;
  }

  /* Sidebar */
  .hero-sidebar {
    gap: 30px;
  }

  .side-btn {
    width: 220px;
    height: 85px;
    font-size: 15px;
  }

  .side-btn.active {
    width: 300px;
    height: 110px;
    margin-left: 0;
    font-size: 18px;
    border: 12px solid #fff;
  }

  /* Cards */
  .cards-wrapper {
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    max-width: 820px;
  }

  .card {
    width: 240px;
    height: 380px;
  }

  .card-title {
    width: 240px;
    font-size: 14px;
  }
}
