/* =============================================================================
   Hero Section — full-width photo + left-aligned headline + CTA
   ============================================================================= */
.hero {
  position: relative;
  /* Full viewport width — slides behind the sidebar intentionally */
  width: 100vw;
  margin-left: calc(-1 * var(--sidebar-width-collapsed, 64px));
  height: calc(100vh - var(--header-height));
  min-height: 520px;
  max-height: 780px;
  overflow: hidden;
  background: var(--color-bg-dark);
}

/* When sidebar is expanded */
.page-body.sidebar-open .hero {
  margin-left: calc(-1 * var(--sidebar-width-expanded, 240px));
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  /* contain ensures full image is visible, no cropping */
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  /* Dark bg fills letterbox areas */
  background-color: #0a0a0a;
}

/* Dark gradient — heavier on the left so text is readable */
.hero__slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,.72) 0%,
    rgba(0,0,0,.45) 50%,
    rgba(0,0,0,.10) 100%
  );
}

.hero__slide.active { opacity: 1; }

/* Content — offset by sidebar width so text is never hidden behind sidebar */
.hero__content {
  position: absolute;
  bottom: var(--space-12);
  /* Push text right so it clears the sidebar */
  left: calc(var(--sidebar-width-collapsed, 64px) + var(--space-10));
  z-index: 2;
  color: #fff;
  max-width: 560px;
  transition: left .2s cubic-bezier(.4,0,.2,1);
}

/* When sidebar expanded, push text further right */
.page-body.sidebar-open .hero__content {
  left: calc(var(--sidebar-width-expanded, 240px) + var(--space-10));
}

.hero__headline {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
  color: #fff;
}

.hero__subheadline {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-6);
  opacity: 0.88;
  line-height: 1.5;
}

/* CTA pill — matches the "ABOUT CAYA MUSIC" button in screenshot */
.hero__cta {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.55);
  color: #fff;
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.hero__cta:hover {
  background: rgba(255,255,255,.30);
  border-color: #fff;
  color: #fff;
}

/* Dots */
.hero__dots {
  position: absolute;
  bottom: var(--space-6);
  right: var(--space-8);
  display: flex;
  gap: var(--space-2);
  z-index: 3;
}

.hero__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.hero__dot.active {
  background: #fff;
  transform: scale(1.4);
}

/* Arrows — offset to stay within the visible area (right of sidebar) */
.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: var(--font-size-xl);
  transition: background var(--transition-fast);
}
.hero__arrow:hover { background: rgba(255,255,255,.28); }

/* Prev arrow: must clear the sidebar (64px) + small gap */
.hero__arrow--prev {
  left: calc(var(--sidebar-width-collapsed, 64px) + var(--space-3));
  transition: left .2s cubic-bezier(.4,0,.2,1);
}
/* When sidebar is expanded */
.page-body.sidebar-open .hero__arrow--prev {
  left: calc(var(--sidebar-width-expanded, 240px) + var(--space-3));
}
.hero__arrow--next { right: var(--space-5); }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero__content {
    left: calc(var(--sidebar-width-collapsed, 64px) + var(--space-6));
    bottom: var(--space-8);
    max-width: 90%;
  }
  .page-body.sidebar-open .hero__content {
    left: calc(var(--sidebar-width-expanded, 240px) + var(--space-6));
  }
  .hero__headline { font-size: clamp(1.8rem, 6vw, 2.6rem); }
}

@media (max-width: 480px) {
  .hero__content {
    left: calc(var(--sidebar-width-collapsed, 64px) + var(--space-4));
    bottom: var(--space-6);
  }
  .hero__arrow { display: none; }
}
