/* RE Hero Widget */

.rehero {
  --accent: #FB6F56;
  --fade-duration: 600ms;
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.rehero-bg {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.rehero-icon {
  position: absolute;
  width: 12vw;
  max-width: 400px;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -75%) scale(0.9);
  opacity: 0;
  transition: opacity var(--fade-duration) ease, transform var(--fade-duration) ease;
}

.rehero-icon.active {
  opacity: 0.8;
  transform: translate(-50%, -75%) scale(1);
}

.rehero-icon img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.rehero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.rehero-re {
  font-size: 3.75vw;
  font-weight: 500;
  color: #CAC8C8;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  font-family: 'Unbounded', sans-serif;
}

.rehero-word {
  font-size: 3.75vw;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity var(--fade-duration) ease, color var(--fade-duration) ease;
  height: 1.2em;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Unbounded', sans-serif;
}

.rehero-word.active {
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .rehero-re,
  .rehero-word {
    font-size: 50px;
  }
  
  .rehero-word {
    height: 60px;
    min-width: 350px;
  }
  
  .rehero-content {
    min-width: 350px;
  }
  
  .rehero-icon {
    width: 35vw;
    transform: translate(-50%, -75%) scale(0.9);
  }
  
  .rehero-icon.active {
    transform: translate(-50%, -75%) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rehero-icon,
  .rehero-word {
    transition: none !important;
  }
}