/* ═══════════════════════════════════════════════════════
   HERO.CSS — Full Viewport Hero with Parallax
═══════════════════════════════════════════════════════ */

.hero {
  position: relative;
  z-index: 1;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  padding-top: 72px; /* keep location line clear of fixed nav when headlines are taller (e.g. DE, NO) */
  padding-bottom: max(24px, env(safe-area-inset-bottom, 0px) + 16px);
  background-color: var(--ivory, #F5F0E8);
}

/* Media stack — image + top/mid tint; bottom blend is ::after + intro overlap */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: translateZ(0);
}

/* Fixed ivory wash at the hero base — height in vh so it never climbs into the headline */
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: var(--hero-blend-height);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(245, 240, 232, 0.10) 22%,
    rgba(245, 240, 232, 0.32) 45%,
    rgba(245, 240, 232, 0.58) 65%,
    rgba(245, 240, 232, 0.82) 85%,
    var(--ivory, #F5F0E8) 100%
  );
}

/* Parallax container — mask travels with the image so scroll never exposes a seam */
.hero-bg {
  position: absolute;
  inset: -22% 0;
  z-index: 0;
  overflow: hidden;
  will-change: transform;
  transform: translateY(calc(var(--scroll-offset, 0) * 1px));
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 62%,
    rgba(0, 0, 0, 0.94) 72%,
    rgba(0, 0, 0, 0.78) 82%,
    rgba(0, 0, 0, 0.52) 91%,
    rgba(0, 0, 0, 0.24) 97%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 62%,
    rgba(0, 0, 0, 0.94) 72%,
    rgba(0, 0, 0, 0.78) 82%,
    rgba(0, 0, 0, 0.52) 91%,
    rgba(0, 0, 0, 0.24) 97%,
    transparent 100%
  );
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transform: scale(1.04);
  transform-origin: center center;
}

/* Video background */
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

/* Fallback: if video fails, poster image fills the space */
.hero-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

/* Dark tint — strong at centre (text), clear at base (ivory blend) */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 92% 52% at 50% 46%,
      rgba(20, 16, 11, 0.54) 0%,
      rgba(20, 16, 11, 0.40) 38%,
      rgba(20, 16, 11, 0.16) 66%,
      transparent 84%
    ),
    linear-gradient(
      to bottom,
      rgba(20, 16, 11, 0.66) 0%,
      rgba(20, 16, 11, 0.32) 24%,
      rgba(20, 16, 11, 0.10) 42%,
      transparent 56%
    );
}

/* ─── Hero content ─── */
.hero-content {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  max-width: 1200px;
  width: 100%;
  min-height: 0;
  padding: 0 clamp(32px, 7vw, 120px);
  /* Generous spacing between every layer — this IS the luxury */
  gap: clamp(20px, 3.5vw, 52px);
}

/* ─── Location Wayfinder ─── */
.hero-location {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.36em;
  line-height: 1.5;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  text-shadow: 0 2px 20px rgba(20, 16, 11, 0.45), 0 1px 5px rgba(20, 16, 11, 0.35);
}

.hero-location::before,
.hero-location::after {
  display: none;
}

/* ─── Editorial Headline ─── */
/*
  Awwwards luxury benchmark: Singita, Six Senses, Aman all run
  display headlines at 120–160px. The type IS the hero.
*/
.hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(72px, 11.5vw, 150px);
  font-weight: 300;
  line-height: 0.92;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 32px rgba(20, 16, 11, 0.42), 0 2px 8px rgba(20, 16, 11, 0.32);
}

/* "Indian Ocean" — italic gold, the emotional centre */
.hero-headline em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold, #C4A35A);
  text-shadow: 0 3px 24px rgba(20, 16, 11, 0.5), 0 1px 6px rgba(20, 16, 11, 0.4);
}

/* ─── Sub copy ─── */
.hero-sub-group {
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-block;
}

.hero-sub-line {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(20, 16, 11, 0.55), 0 1px 5px rgba(20, 16, 11, 0.45);
}

.hero-sub-detail { display: none; }

/* ─── Hero footer group ─── */
.hero-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 3vw, 40px);
}

/* ─── CTA Buttons ─── */
.hero-price {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-green, #2a5c45);
  margin-bottom: 20px;
  text-align: center;
}
.hero-price strong {
  color: var(--color-green, #2a5c45);
  font-weight: 700;
}
.hero-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: nowrap;
}
@media (max-width: 479px) {
  .hero-buttons { flex-direction: column; align-items: center; gap: 10px; }
}

.hero-buttons .btn { flex-shrink: 0; }

/* ─── Scroll Indicator ─── */
.hero-scroll {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: clamp(28px, 5vh, 48px);
  color: rgba(245, 240, 232, 0.5);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: opacity 0.5s ease;
}

.hero-scroll.hidden { opacity: 0; pointer-events: none; }

.scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(
    to bottom,
    rgba(245, 240, 232, 0.6) 0%,
    rgba(245, 240, 232, 0)   100%
  );
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.65);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* ─── Entrance animations ─── */
.hero-content [data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-content [data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}
