/* =====================================================================
   SCROLL HERO — video hikaye anlatımlı, scroll ile senkronize hero bölümü
   index.html içindeki eski .slider (swiper) header'ının yerini alır.
   ===================================================================== */

.scroll-hero {
  position: relative;
  height: 420vh;
  background: #14151a;
}

.scroll-hero-sticky {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.scroll-hero.is-ready .scroll-hero-sticky {
  opacity: 1;
}

.scroll-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scroll-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #14151a;
}

.scroll-hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 17, 16, 0.82) 0%, rgba(15, 17, 16, 0.45) 45%, rgba(15, 17, 16, 0.25) 75%),
    linear-gradient(0deg, rgba(15, 17, 16, 0.75) 0%, rgba(15, 17, 16, 0) 30%);
  z-index: 1;
}

.scroll-hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}

.scroll-hero-content .container {
  position: relative;
}

.scroll-hero-scene {
  position: absolute;
  left: 15px;
  top: 50%;
  width: calc(100% - 30px);
  max-width: 640px;
  transform: translateY(calc(-50% + 22px));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-hero-scene.is-active {
  opacity: 1;
  transform: translateY(-50%);
  pointer-events: auto;
}

.scroll-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ebcfa7;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.scroll-hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 1px;
  background: #ebcfa7;
}

.scroll-hero-scene h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.1rem, 4.4vw, 4rem);
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
}

.scroll-hero-scene h1 span {
  color: #ebcfa7;
}

.scroll-hero-scene p {
  color: #f2f0ea;
  opacity: 0.85;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 30px;
}

.scroll-hero-scene a {
  display: inline-flex;
  align-items: center;
  height: 56px;
  line-height: 1;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0 36px;
  border: 2px solid #ebcfa7;
  box-shadow: 0 0 20px rgba(235, 207, 167, 0.25);
  transition: 0.25s ease-in-out;
}

.scroll-hero-scene a i {
  margin-left: 10px;
}

.scroll-hero-scene a:hover {
  text-decoration: none;
  background: #9f8054;
  border-color: #9f8054;
}

/* PROGRESS BAR */
.scroll-hero-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 3;
}

.scroll-hero-progress-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #9f8054, #ebcfa7);
  transform: scaleX(0);
  transform-origin: left;
}

/* SCROLL CUE */
.scroll-hero-cue {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.5s ease;
}

.scroll-hero-cue i {
  font-size: 14px;
  animation: scroll-hero-bounce 1.6s ease-in-out infinite;
}

.scroll-hero.is-started .scroll-hero-cue {
  opacity: 0;
  pointer-events: none;
}

@keyframes scroll-hero-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* REDUCED MOTION FALLBACK */
.scroll-hero.is-reduced-motion {
  height: 100vh;
}

.scroll-hero.is-reduced-motion .scroll-hero-sticky {
  position: relative;
}

.scroll-hero.is-reduced-motion .scroll-hero-dots,
.scroll-hero.is-reduced-motion .scroll-hero-progress,
.scroll-hero.is-reduced-motion .scroll-hero-cue {
  display: none;
}

.scroll-hero.is-reduced-motion .scroll-hero-scene {
  transition: none;
}

@media (max-width: 991px) {
  .scroll-hero {
    height: 360vh;
  }
  .scroll-hero-scene {
    left: 15px;
  }
}

@media (max-width: 767px) {
  .scroll-hero {
    height: 300vh;
  }
  .scroll-hero-sticky {
    min-height: 520px;
  }
  .scroll-hero-scene p {
    max-width: 100%;
  }
  .scroll-hero-cue {
    bottom: 20px;
  }
}
