/* ================================================================
   SCROLL HERO — Canvas-driven frame animation
   ================================================================ */

/* Fix: sticky requires no overflow:hidden on ancestors */
body#index #wrapper,
body#index main {
  overflow: visible !important;
}

/* Full bleed: nuke ALL spacing between header and hero */
body#index #notifications {
  display: none !important;
}

body#index .luxury-breadcrumb {
  display: none !important;
}

body#index #wrapper {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body#index #wrapper > .container {
  max-width: 100% !important;
  padding-top: 0 !important;
}

/* Hero breaks out of container */
.scroll-hero {
  position: relative;
  height: 300vh;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.scroll-hero__sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #2d2418;
}

.scroll-hero__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Text overlay — matches existing hero design */
.scroll-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  text-align: center;
  padding: 1.5rem;
  background: radial-gradient(ellipse at center, rgba(45,36,24,0.45) 0%, rgba(45,36,24,0.15) 70%);
}

.scroll-hero__overlay .hero__inner {
  pointer-events: auto;
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.scroll-hero__overlay .hero__title {
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}

.scroll-hero__overlay .hero__subtitle {
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}

/* Scroll indicator */
.scroll-hero__progress {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 3;
  pointer-events: none;
}

.scroll-hero__progress-bar {
  width: 48px;
  height: 2px;
  background: rgba(255,255,255,0.15);
  border-radius: 1px;
  overflow: hidden;
}

.scroll-hero__progress-fill {
  height: 100%;
  width: 0%;
  background: #b8960c;
  border-radius: 1px;
  transition: width 0.05s linear;
}

/* Loading overlay */
.scroll-hero__loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #2d2418;
  z-index: 10;
  transition: opacity 0.5s ease;
}

.scroll-hero__loader-text {
  color: #b8960c;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-body, 'Newsreader', Georgia, serif);
}

.scroll-hero__loader-bar {
  width: 100px;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 1px;
  margin-top: 0.75rem;
  overflow: hidden;
}

.scroll-hero__loader-fill {
  height: 100%;
  width: 0%;
  background: #b8960c;
  transition: width 0.15s linear;
}

/* Fallback: no-JS shows gradient hero */
.no-js .scroll-hero {
  height: auto;
}
.no-js .scroll-hero__sticky {
  position: relative;
  height: auto;
  padding: 6rem 1.5rem;
  background: linear-gradient(150deg, #2d2418 0%, #4a3826 40%, #8b7355 100%);
}
.no-js .scroll-hero__canvas,
.no-js .scroll-hero__loader,
.no-js .scroll-hero__progress {
  display: none;
}

@media (max-width: 767px) {
  .scroll-hero {
    height: 250vh;
  }
}
