/**
 * @file
 * Hero component styles.
 */

.hero {
  padding: 74px var(--page-gutter) 84px;
}

.hero--cream {
  background: var(--color-background);
}

.hero--warm {
  background: var(--color-background-alt);
}

.hero--white {
  background: var(--color-surface);
}

/* ── Split layout ── */
.hero--image_right .hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}

/* ── Centered layout ── */
.hero--centered .hero__inner {
  text-align: center;
  max-width: 820px;
}

.hero--centered .hero__description {
  margin-inline: auto;
}

.hero--centered .hero__actions {
  justify-content: center;
}

/* ── Content ── */
.hero__title {
  margin-top: var(--space-2xl);
  font-size: var(--font-size-display);
  line-height: var(--line-height-heading-tight);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-display);
}

.hero__description {
  margin-top: var(--space-2xl);
  font-size: var(--font-size-body-lg);
  line-height: var(--line-height-body);
  color: var(--color-text-secondary);
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: var(--space-base);
  margin-top: var(--space-5xl);
  flex-wrap: wrap;
}

/* ── Visual ── */
.hero__visual {
  position: relative;
}

.hero__image {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 28px;
}

/* ── Floating badges ── */
.hero__badges {
  min-height: 1px;
}

.hero__floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--color-surface);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(28, 20, 17, 0.12);
  z-index: 1;
}

/* ── Badge positions (relative to .hero__visual) ── */
.hero__floating-badge--top-left {
  left: -16px;
  top: 44px;
  animation: hero-float 5s ease-in-out infinite;
}

.hero__floating-badge--middle-right {
  right: -8px;
  top: 180px;
  animation: hero-float 6.5s ease-in-out infinite;
}

.hero__floating-badge--bottom-left {
  left: -6px;
  bottom: 34px;
  animation: hero-float 5.8s ease-in-out infinite;
}

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

.hero__floating-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--color-background-warm);
  display: grid;
  place-items: center;
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  font-size: 14px;
}

.hero__floating-badge--gold .hero__floating-icon {
  background: var(--color-background-gold);
  color: var(--color-accent-dark);
}

.hero__floating-label {
  font-size: 13.5px;
  font-weight: var(--font-weight-semibold);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero--image_right .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-4xl);
  }

  .hero__image {
    height: 280px;
  }

}

@media (max-width: 768px) {
  .hero {
    padding: 26px var(--page-gutter-mobile) 30px;
  }

  .hero__title {
    margin-top: var(--space-base);
  }

  .hero__description {
    margin-top: var(--space-base);
  }

  .hero__actions {
    flex-direction: column;
    margin-top: var(--space-xl);
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__image {
    height: 230px;
    border-radius: var(--radius-lg);
    margin-top: var(--space-2xl);
  }
}
