/* Hero — Studio Kayara */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Carousel Slides */
.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease-in-out-smooth);
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 8s var(--ease-in-out-smooth) forwards;
}

@keyframes kenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

/* Reset animation for new active slide */
.hero__slide.is-active img {
  animation: kenBurns 8s var(--ease-in-out-smooth) forwards;
}

/* Overlay — multi-layered for depth */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 2;
}

/* Subtle vignette on hero */
.hero__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(44, 42, 37, 0.3) 100%
  );
}

/* Content */
.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: 0 var(--container-padding);
}

.hero__tag {
  font-family: var(--font-body);
  font-size: var(--text-h5);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-blush);
  margin-bottom: var(--space-xl);
  opacity: 0;
  transform: translateY(24px);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-hero);
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.05;
  margin-bottom: var(--space-lg);
  opacity: 0;
  transform: translateY(32px);
}

/* Decorative lines flanking the subtitle */
.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-body-lg);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  opacity: 0;
  transform: translateY(24px);
  position: relative;
  display: inline-block;
}

.hero__cta {
  opacity: 0;
  transform: translateY(20px);
}

/* Entrance Animations — staggered with organic easing */
.hero.is-loaded .hero__tag {
  animation: heroReveal 1s var(--ease-out-expo) forwards 0.3s;
}

.hero.is-loaded .hero__title {
  animation: heroReveal 1s var(--ease-out-expo) forwards 0.5s;
}

.hero.is-loaded .hero__subtitle {
  animation: heroReveal 1s var(--ease-out-expo) forwards 0.7s;
}

.hero.is-loaded .hero__cta {
  animation: heroReveal 1s var(--ease-out-expo) forwards 0.9s;
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Carousel Indicators — refined thin bars */
.hero__indicators {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 12px;
}

.hero__indicator {
  width: 48px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  padding: 8px 0;
  background-clip: content-box;
  transition: background-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

.hero__indicator::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-white);
  transition: width 0s linear;
}

.hero__indicator.is-active::after {
  width: 100%;
  transition: width 6s linear;
}

.hero__indicator.is-active {
  background-color: rgba(255, 255, 255, 0.35);
}

.hero__indicator:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

/* Scroll Indicator */
.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.hero__scroll svg {
  width: 16px;
  height: 16px;
  animation: scrollFloat 2.5s var(--ease-in-out-smooth) infinite;
}

@keyframes scrollFloat {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(6px); opacity: 1; }
}
