/**
 * Reusable bento-mosaic hero — split copy + image tile grid.
 * Enqueue only when using partials/hero-bento-mosaic.php.
 *
 * @package Innov8th
 */

.bento-hero {
  position: relative;
  padding: 8rem 0 3.5rem;
  overflow: visible;
}

@media (min-width: 993px) {
  .bento-hero {
    padding-top: 9rem;
  }
}

.bento-hero__blur,
.bento-hero__blur2,
.bento-hero__blur3 {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
}

.bento-hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.bento-hero__copy {
  max-width: 36rem;
}

.bento-hero__title {
  margin: 0 0 1.15rem;
  font-size: clamp(2.35rem, 5vw, 4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  text-transform: none;
}

.bento-hero__intro {
  margin: 0 0 1.75rem;
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.6;
}

.bento-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}


.bento-hero__mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.bento-hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 280px;
}

.bento-hero__visual-image {
  display: block;
  width: min(100%, 540px);
  max-height: min(52vh, 520px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.35));
  animation: bentoHeroVisualFloat 5s ease-in-out infinite;
  will-change: transform;
}

@keyframes bentoHeroVisualFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bento-hero__visual-image {
    animation: none;
    will-change: auto;
  }
}

@media (min-width: 993px) {
  .bento-hero__visual {
    min-height: 420px;
    justify-content: flex-end;
  }

  .bento-hero__visual-image {
    width: min(100%, 620px);
    max-height: min(58vh, 560px);
  }
}

@media (max-width: 992px) {
  .bento-hero__visual {
    margin-top: 1.25rem;
  }

  .bento-hero__visual-image {
    width: min(100%, 480px);
    margin: 0 auto;
  }
}

.bento-hero__tile {
  --bento-hero-accent: #662192;
  position: relative;
  display: block;
  min-height: 150px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(178, 85, 255, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  text-decoration: none;
  transition: transform 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}

.bento-hero__tile:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(255, 0, 184, 0.65);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38);
}

@media (min-width: 769px) {
  .bento-hero__mosaic {
    grid-template-columns: 1.1fr 0.9fr 0.9fr;
    grid-template-rows: repeat(2, minmax(150px, 1fr));
    min-height: 420px;
  }

  .bento-hero__tile:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
    min-height: 100%;
  }

  .bento-hero__tile:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .bento-hero__tile:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
  }

  .bento-hero__tile:nth-child(4) {
    grid-column: 2 / span 2;
    grid-row: 2;
  }
}

.bento-hero__tile-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 500ms ease;
}

.bento-hero__tile:hover .bento-hero__tile-image {
  transform: scale(1.1);
}

.bento-hero__tile-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 4, 18, 0.05) 0%, rgba(8, 4, 18, 0.92) 100%),
    linear-gradient(135deg, color-mix(in srgb, var(--bento-hero-accent) 50%, transparent) 0%, transparent 65%);
}

.bento-hero__tile-index {
  position: absolute;
  top: 0.75rem;
  left: 0.85rem;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.22);
}

.bento-hero__tile-label {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.85rem;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 992px) {
  .bento-hero__layout {
    grid-template-columns: 1fr;
  }

  .bento-hero__mosaic {
    min-height: 320px;
  }
}

@media (max-width: 600px) {
  .bento-hero {
    padding-top: 7rem;
    padding-bottom: 2.5rem;
  }

  .bento-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .bento-hero__actions .cta {
    text-align: center;
  }
}
