/* =============================================================
   HERO CAROUSEL — hero-carousel.css
   Willow & Co Gifts homepage hero carousel
   Enqueue after main.css
   ============================================================= */

/* -------------------------------------------------------------
   SONGS PALETTE TOKENS (local to carousel)
   Mirrors songs.css tokens without requiring that sheet
   ------------------------------------------------------------- */
.hero-carousel {
  --hc-songs-bg:       #0D0D1A;
  --hc-songs-bg-alt:   #12122B;
  --hc-songs-gold:     #C9A84C;
  --hc-songs-text:     #E8E0F0;
  --hc-songs-muted:    #8880A0;
  --hc-songs-pink:     #FF2D87;

  /* W&C dark palette */
  --hc-wc-bg:          #33243F;
  --hc-wc-bg-alt:      #2A1C34;
  --hc-wc-text:        #FEFEFE;
  --hc-wc-muted:       #C0989D;
  --hc-wc-accent:      #F4C8A8;
  --hc-wc-primary:     #772647;
  --hc-wc-plum:        #772647;

  /* Shared */
  --hc-transition:     600ms cubic-bezier(0.4, 0, 0.2, 1);
  --hc-slide-height:   min(90vh, 680px);
}

/* -------------------------------------------------------------
   CAROUSEL SHELL
   ------------------------------------------------------------- */
.hero-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hc-track {
  display: flex;
  width: 400%;
  transition: transform var(--hc-transition);
  will-change: transform;
}

/* -------------------------------------------------------------
   SLIDES — SHARED
   ------------------------------------------------------------- */
.hc-slide {
  position: relative;
  width: 25%;
  min-height: var(--hc-slide-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hc-slide__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hc-slide > .container {
  position: relative;
  z-index: 2;
  padding-top: var(--space-xxl, 5rem);
  padding-bottom: var(--space-xxl, 5rem);
}

.hc-slide__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl, 3rem);
  align-items: center;
}

/* -------------------------------------------------------------
   SLIDE BACKGROUNDS
   ------------------------------------------------------------- */

/* Slide 1 — Songs */
.hc-slide--songs .hc-slide__bg {
  background: var(--hc-songs-bg);
  background-image:
    radial-gradient(ellipse at 75% 30%, rgba(255, 45, 135, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 70%, rgba(0, 201, 201, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(201, 168, 76, 0.08) 0%, transparent 40%);
}

/* Slide 2 — Gifts */
.hc-slide--gifts .hc-slide__bg {
  background: var(--hc-wc-bg);
  background-image:
    radial-gradient(ellipse at 80% 20%, rgba(244, 200, 168, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 80%, rgba(119, 38, 71, 0.2) 0%, transparent 50%);
}

/* Slide 3 — Books */
.hc-slide--books .hc-slide__bg {
  background: var(--hc-wc-bg-alt);
  background-image:
    radial-gradient(ellipse at 70% 25%, rgba(192, 152, 157, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 25% 75%, rgba(119, 38, 71, 0.18) 0%, transparent 50%);
}

/* Slide 4 — Bespoke */
.hc-slide--bespoke .hc-slide__bg {
  background: #2A1C34;
  background-image:
    radial-gradient(ellipse at 65% 30%, rgba(244, 200, 168, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse at 30% 70%, rgba(195, 113, 92, 0.12) 0%, transparent 50%);
}

/* -------------------------------------------------------------
   SLIDE CONTENT
   ------------------------------------------------------------- */
.hc-slide__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md, 1.5rem);
}

.hc-eyebrow {
  display: block;
  font-family: var(--font-subhead, 'Cormorant Garamond', serif);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--hc-wc-accent);
  font-style: italic;
}

.hc-eyebrow--songs {
  color: var(--hc-songs-gold);
}

.hc-headline {
  font-family: var(--font-headline, 'Playfair Display', serif);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 500;
  color: var(--hc-wc-text);
  line-height: 1.15;
  margin: 0;
}

.hc-headline em {
  color: var(--hc-wc-accent);
  font-style: italic;
}

.hc-headline--songs {
  color: #FEFEFE;
}

.hc-headline--songs em {
  color: var(--hc-songs-pink);
}

.hc-subhead {
  font-family: var(--font-subhead, 'Cormorant Garamond', serif);
  font-size: 1.05rem;
  color: var(--hc-wc-muted);
  line-height: 1.8;
  max-width: 46ch;
  margin: 0;
}

.hc-subhead--songs {
  color: var(--hc-songs-muted);
}

/* Badge */
.hc-badge {
  display: inline-block;
  font-family: var(--font-subhead, 'Cormorant Garamond', serif);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(244, 200, 168, 0.12);
  color: var(--hc-wc-accent);
  border: 1px solid rgba(244, 200, 168, 0.3);
  align-self: flex-start;
}

/* Buttons */
.hc-btn {
  display: inline-block;
  font-family: var(--font-subhead, 'Cormorant Garamond', serif);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.9rem 2rem;
  border-radius: var(--border-radius, 4px);
  text-decoration: none;
  transition: all 300ms ease;
  align-self: flex-start;
  cursor: pointer;
  border: none;
}

.hc-btn--primary {
  background: var(--hc-wc-primary);
  color: #FEFEFE;
  box-shadow: 0 4px 20px rgba(119, 38, 71, 0.4);
}

.hc-btn--primary:hover {
  background: var(--color-primary-hover, #5E1D38);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(119, 38, 71, 0.5);
  color: #FEFEFE;
}

.hc-btn--ghost {
  background: transparent;
  color: var(--hc-wc-accent);
  border: 1px solid rgba(244, 200, 168, 0.5);
}

.hc-btn--ghost:hover {
  background: rgba(244, 200, 168, 0.1);
  border-color: var(--hc-wc-accent);
  color: var(--hc-wc-accent);
}

.hc-btn--songs {
  background: linear-gradient(135deg, var(--hc-songs-pink), #9B1FFF);
  color: #FEFEFE;
  box-shadow: 0 4px 24px rgba(255, 45, 135, 0.35);
}

.hc-btn--songs:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 45, 135, 0.5);
  color: #FEFEFE;
}

/* -------------------------------------------------------------
   VISUAL PANEL (right column placeholder)
   ------------------------------------------------------------- */
.hc-slide__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hc-visual-placeholder {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4 / 5;
  border-radius: var(--border-radius-lg, 12px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.hc-visual-placeholder--songs {
  background: rgba(255, 45, 135, 0.05);
  border-color: rgba(255, 45, 135, 0.15);
}

.hc-placeholder-icon {
  font-size: 4rem;
  opacity: 0.2;
}

/* Waveform animation — Songs slide */
.hc-waveform {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 80px;
}

.hc-waveform span {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: var(--hc-songs-pink);
  opacity: 0.7;
  animation: hc-wave 1.4s ease-in-out infinite;
}

.hc-waveform span:nth-child(1)  { height: 20px; animation-delay: 0s; }
.hc-waveform span:nth-child(2)  { height: 40px; animation-delay: 0.1s; }
.hc-waveform span:nth-child(3)  { height: 60px; animation-delay: 0.2s; }
.hc-waveform span:nth-child(4)  { height: 50px; animation-delay: 0.3s; }
.hc-waveform span:nth-child(5)  { height: 70px; animation-delay: 0.4s; }
.hc-waveform span:nth-child(6)  { height: 80px; animation-delay: 0.5s; }
.hc-waveform span:nth-child(7)  { height: 65px; animation-delay: 0.6s; }
.hc-waveform span:nth-child(8)  { height: 75px; animation-delay: 0.5s; }
.hc-waveform span:nth-child(9)  { height: 55px; animation-delay: 0.4s; }
.hc-waveform span:nth-child(10) { height: 45px; animation-delay: 0.3s; }
.hc-waveform span:nth-child(11) { height: 60px; animation-delay: 0.2s; }
.hc-waveform span:nth-child(12) { height: 35px; animation-delay: 0.1s; }
.hc-waveform span:nth-child(13) { height: 50px; animation-delay: 0s; }
.hc-waveform span:nth-child(14) { height: 25px; animation-delay: 0.1s; }
.hc-waveform span:nth-child(15) { height: 15px; animation-delay: 0.2s; }

@keyframes hc-wave {
  0%, 100% { transform: scaleY(1);   opacity: 0.7; }
  50%       { transform: scaleY(0.3); opacity: 0.3; }
}

/* -------------------------------------------------------------
   CONTROLS — PREV / NEXT
   ------------------------------------------------------------- */
.hc-controls {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-md, 1.5rem);
  z-index: 10;
}

.hc-prev,
.hc-next {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease;
  padding: 0;
}

.hc-prev:hover,
.hc-next:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FEFEFE;
}

/* -------------------------------------------------------------
   DOTS
   ------------------------------------------------------------- */
.hc-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.hc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 250ms ease;
}

.hc-dot--active,
.hc-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

/* Songs slide dot accent */
.hero-carousel[data-slide="0"] .hc-dot--active {
  background: var(--hc-songs-pink);
  border-color: var(--hc-songs-pink);
  box-shadow: 0 0 8px rgba(255, 45, 135, 0.5);
}

/* -------------------------------------------------------------
   TRUST BAR
   ------------------------------------------------------------- */
.hc-trust {
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: var(--space-sm, 0.75rem) 0;
}

.hc-trust__inner {
  display: flex;
  justify-content: center;
  gap: var(--space-xl, 3rem);
  flex-wrap: wrap;
}

.hc-trust__item {
  font-family: var(--font-subhead, 'Cormorant Garamond', serif);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------- */
@media (max-width: 900px) {
  .hc-slide__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hc-slide__visual {
    display: none;
  }

  .hc-btn,
  .hc-badge {
    align-self: center;
  }

  .hc-subhead {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 600px) {
  .hero-carousel {
    --hc-slide-height: auto;
  }

  .hc-headline {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  .hc-trust__inner {
    gap: var(--space-md, 1.5rem);
  }

  .hc-controls {
    bottom: 2rem;
  }
}
