/**
 * Demo homepage — cinema hero bridge (shared rules live in assets/css/index.css).
 */

.wdh-page--cinema-hero {
  --site-header-height: var(--wdh-header-h, 76px);
}

.wdh-page--cinema-hero.homepage-redesign,
.wdh-page--cinema-hero.homepage-redesign:not(.scrolled),
.wdh-page--cinema-hero.homepage-redesign.scrolled {
  background: var(--wdh-bg, #f6f1ea);
}

.wdh-page--cinema-hero.homepage-redesign .hero-inventory--cinema.section {
  background: var(--wdh-bg, #f6f1ea) !important;
}

.wdh-page--cinema-hero #wdh-main {
  position: relative;
  z-index: 2;
  background: var(--wdh-bg, #fffbf6);
}

.wdh-page--cinema-hero .wdh-stats {
  margin-top: 0;
  padding-top: clamp(2rem, 4vw, 2.75rem);
}

/* Transparent demo header at top — no bottom edge over hero */
.wdh-page--hero-header .wdh-header.is-at-top:not(.wdh-header--mega-open) {
  border-bottom: none !important;
  box-shadow: none !important;
}

/* Scroll morph — hero shrinks and rounds while scrolling (premium card reveal) */
.wdh-page--cinema-hero #hero.hero-inventory--cinema {
  --wdh-hero-morph: 0;
  --wdh-hero-morph-radius: clamp(18px, 3vw, 32px);
  --wdh-hero-morph-shrink: 0.088;
  overflow: hidden;
  transition: background-color 0.35s ease;
}

.wdh-page--cinema-hero #hero .hero-inventory-shell.hero-inventory-shell--full {
  border-radius: calc(var(--wdh-hero-morph) * var(--wdh-hero-morph-radius));
  transform:
    translateY(calc(var(--wdh-hero-morph) * 10px))
    scale(calc(1 - var(--wdh-hero-morph) * var(--wdh-hero-morph-shrink)));
  transform-origin: 50% 0;
  overflow: hidden;
  will-change: transform, border-radius, box-shadow;
  box-shadow:
    0 calc(6px + var(--wdh-hero-morph) * 18px)
    calc(16px + var(--wdh-hero-morph) * 36px)
    rgba(26, 18, 11, calc(0.04 + var(--wdh-hero-morph) * 0.1));
}

@media (max-width: 991px) {
  .wdh-page--cinema-hero #hero.hero-inventory--cinema {
    --wdh-hero-morph-radius: 20px;
    --wdh-hero-morph-shrink: 0.055;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wdh-page--cinema-hero #hero .hero-inventory-shell.hero-inventory-shell--full {
    transform: none;
    border-radius: 0;
    box-shadow: none;
    outline: none;
  }
}
