/* =========================================================
   PC Paradise – Homepage only
   The hero. (Cards and other shared sections are in sections.css.)
   Requires: tokens.css, base.css, components.css, layout.css, sections.css
   ========================================================= */

/* =========================================================
1. HERO
   ========================================================= */
.hero {
  padding-top: clamp(1.5rem, 0.5rem + 3vw, 3rem);
  padding-bottom: var(--space-7);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

.hero__title {
  margin-bottom: var(--space-5);
  max-width: 11ch;
}

.hero__lead {
  margin-bottom: var(--space-6);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
}

/* Mobile-only GIF container right below "Book a repair" button */
.hero__gif-mobile {
  display: block;
  margin: 0 auto var(--space-6);
  text-align: center;
}

.hero__gif-mobile .hero__gif {
  width: 100%;
  max-width: 90%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.hero__gif--desktop {
  display: none;
  margin-right: 50px;
}

/* Trust badges under the buttons */
.trust-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4) var(--space-5);
  max-width: 34rem;
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.trust-item .icon-circle {
  width: 40px;
  height: 40px;
  font-size: 1rem;
  color: var(--color-navy);
}

.trust-item strong {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  line-height: 1.3;
}

.trust-item small {
  display: block;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

/* Product composition */
.hero__visual {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
}

.hero__visual > img {
  width: 100%;
  height: auto;
}

/* Small floating info cards on the illustration */
.hero-chip {
  position: absolute;
  display: none;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 18px 10px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background-color: var(--color-card);
  box-shadow: var(--shadow-card);
  animation: chip-float 6s ease-in-out infinite;
}

.hero-chip .icon-circle {
  width: 40px;
  height: 38px;
  font-size: 1rem;
}

.hero-chip strong {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  line-height: 1.25;
}

.hero-chip small {
  display: block;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  line-height: 1.3;
}

.hero-chip--top {
  top: 4%;
  left: -2%;
}

.hero-chip--bottom {
  right: 0;
  bottom: 24%;
  animation-delay: -3s;
}

@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

@media (max-width: 575px) {
  .hero__actions .btn {
    flex: 1 1 100%;        /* full-width, easy-to-tap buttons on phones */
  }
}

@media (min-width: 768px) {
  .hero-chip {
    display: flex;
  }
}

@media (min-width: 992px) {
  .hero {
    padding-bottom: var(--space-8);
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    gap: var(--space-5);
  }

  .hero__actions {
    margin-bottom: var(--space-8);
  }

  .hero__gif-mobile {
    display: none;
  }

  .hero__gif--desktop {
    display: block;
    width: 50%;
    max-width:80%;
    margin: -115px 0 0 auto;
  }
}

/* Category section sits close to the hero */
.categories {
  padding-top: var(--space-6);
}