/* ==========================================================================
   hero.css — home page hero section
   Self-contained, includes its own responsive rules.
   ========================================================================== */

.tp-hero {
  position: relative;
  overflow: hidden;
  background: #fcfbf7;
  /* tighter banner — override the generic .tp-section spacing */
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* ---- Left column / copy ---- */
.tp-hero__content {
  max-width: 560px;
}

.tp-hero__title {
  margin: 1.1rem 0 0;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--tp-text);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.tp-hero__title .is-green {
  color: var(--tp-green);
}

.tp-hero__lead {
  margin: 1.1rem 0 0;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--tp-muted);
  max-width: 30em;
}

.tp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

/* ---- Social proof ---- */
.tp-hero__proof {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2rem;
}

.tp-avatars {
  display: flex;
  align-items: center;
}

.tp-avatars img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--tp-white);
  margin-left: -10px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.tp-avatars img:first-child {
  margin-left: 0;
}

.tp-hero__rating {
  font-size: 0.9rem;
  line-height: 1.35;
}

.tp-hero__stars {
  display: inline-flex;
  gap: 1px;
  vertical-align: -2px;
}

.tp-hero__stars img {
  width: 15px;
  height: 15px;
}

.tp-hero__rating strong {
  font-weight: 600;
  color: var(--tp-text);
}

.tp-hero__rating span {
  display: block;
  color: var(--tp-muted);
  font-size: 0.82rem;
}

/* ---- Right column / illustration ---- */
.tp-hero__media {
  position: relative;
}

.tp-hero__img {
  width: 100%;
  height: auto;
  display: block;
}

/* Floating "Smart Tools" card */
.tp-hero__card {
  position: absolute;
  top: 14%;
  right: 2%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  background: var(--tp-white);
  border-radius: 0.75rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.tp-hero__card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 0.55rem;
  background-image: var(--tp-green-gradient);
}

.tp-hero__card-icon img {
  width: 20px;
  height: 20px;
}

.tp-hero__card-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--tp-text);
  line-height: 1.1;
}

.tp-hero__card-text span {
  font-size: 0.76rem;
  color: var(--tp-muted);
}

/* ==========================================================================
   Responsive — hero
   ========================================================================== */
@media (max-width: 991.98px) {
  .tp-hero__content {
    max-width: none;
    text-align: center;
    margin: 0 auto;
  }

  .tp-hero__lead {
    margin-left: auto;
    margin-right: auto;
  }

  .tp-hero__actions {
    justify-content: center;
  }

  /* social proof: avatars on top, then stars, then 4.8/5 — all centered */
  .tp-hero__proof {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
  }

  .tp-hero__rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
  }

  .tp-hero__stars {
    justify-content: center;
  }

  .tp-hero__media {
    margin-top: 2.5rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 575.98px) {
  .tp-hero__title {
    font-size: 1.65rem;
    line-height: 1.22;
  }

  .tp-hero__lead {
    font-size: 0.98rem;
  }

  .tp-hero__actions {
    margin-top: 1.4rem;
    flex-wrap: nowrap;
    gap: 0.6rem;
  }

  /* keep both hero buttons on a single line */
  .tp-hero__actions .tp-btn {
    flex: 1 1 0;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .tp-hero__actions .tp-btn__icon {
    width: 15px;
    height: 15px;
  }

  .tp-hero__proof {
    margin-top: 1.6rem;
  }

  .tp-hero__media {
    margin-top: 2rem;
  }

  .tp-hero__card {
    top: 6%;
    right: 3%;
    padding: 0.45rem 0.65rem;
    gap: 0.5rem;
  }

  .tp-hero__card-icon {
    width: 30px;
    height: 30px;
  }

  .tp-hero__card-text strong {
    font-size: 0.8rem;
  }

  .tp-hero__card-text span {
    font-size: 0.7rem;
  }
}
