/**
 * iNKPPL Design System — Hero Component
 * Variants: --bento, --fullwidth, --compact
 */

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.hero__image {
  position: relative;
  overflow: hidden;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero:hover .hero__image img {
  transform: scale(1.03);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
}

.hero__title {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-black);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--space-2);
}

/* Bento: 2-column grid */
.hero--bento {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-3);
  border-radius: 0;
}

.hero--bento .hero__main {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 400px;
}

.hero--bento .hero__side {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hero--bento .hero__side-item {
  flex: 1;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 0;
}

/* Fullwidth: single image, tall */
.hero--fullwidth {
  min-height: 70vh;
  min-height: 70dvh;
  display: flex;
  align-items: flex-end;
}

.hero--fullwidth .hero__image {
  position: absolute;
  inset: 0;
}

.hero--fullwidth .hero__content {
  padding: var(--space-8) var(--space-6);
  width: 100%;
  max-width: 720px;
}

/* Compact: shorter, for listings */
.hero--compact {
  min-height: 280px;
  display: flex;
  align-items: flex-end;
}

.hero--compact .hero__image {
  position: absolute;
  inset: 0;
}

.hero--compact .hero__content {
  padding: var(--space-6) var(--space-4);
  width: 100%;
}

.hero--compact .hero__title {
  font-size: var(--text-3xl);
}

/* Responsive */
@media (max-width: 767px) {
  .hero--bento {
    grid-template-columns: 1fr;
  }

  .hero--bento .hero__main {
    min-height: 280px;
  }

  .hero--bento .hero__side {
    flex-direction: row;
  }

  .hero--bento .hero__side-item {
    min-height: 140px;
  }

  .hero--fullwidth {
    min-height: 50vh;
    min-height: 50dvh;
  }

  .hero__title {
    font-size: var(--text-3xl);
  }
}
