/* ==========================================================================
   Hero — Full-viewport cinematic hero, 5 stacked layers
   Centered layout — matches preloader end state for seamless transition
   ========================================================================== */

/* ── Container ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  color: #fff;
}

/* Subpage hero — shorter variant */
.hero--page {
  height: 70vh;
  height: 70svh;
}

/* ── Layer 1: Video / Fallback Background ────────────────────────────────── */
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      155deg,
      #1a1410 0%,
      #12100e 35%,
      #0d0d0d 100%
    );
}

.hero-video-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Layer 2: Dark Overlay (40%) ─────────────────────────────────────────── */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.40);
  pointer-events: none;
}

/* ── Layer 3: Vignette ───────────────────────────────────────────────────── */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(
    ellipse at center,
    transparent 30%,
    rgba(0, 0, 0, 0.65) 100%
  );
  pointer-events: none;
}

/* ── Layer 4: Depth / Parallax-ready ─────────────────────────────────────── */
.hero-depth {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  will-change: transform;
}

/* ── Layer 5: Content — CENTERED ─────────────────────────────────────────── */
.hero-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ── Subpage hero — more breathing room ─────────────────────────────────── */
.hero--page .hero-content {
  gap: var(--space-3);
}

/* ── Eyebrow inside hero ────────────────────────────────────────────────── */
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  color: var(--color-accent);
}

/* ── Headline — uppercase, wide-tracked ──────────────────────────────────── */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0;
}

/* ── Accent Line ─────────────────────────────────────────────────────────── */
.hero-line {
  width: 220px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #C9A98A, #8ABBC9, #C9A98A, transparent);
  margin: var(--space-4) 0 var(--space-3);
}

/* ── Tagline — uppercase tracked ─────────────────────────────────────────── */
.hero-tagline {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-8);
}

/* ── Body Text (subpage hero) ────────────────────────────────────────────── */
.hero-body {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  max-width: 600px;
  margin-bottom: var(--space-4);
}

/* ── CTA Row — centered ──────────────────────────────────────────────────── */
.hero-ctas {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}

/* Homepage: 3 buttons need to be compact to fit in one row */
@media (max-width: 767px) {
  .page-home .hero-ctas {
    gap: var(--space-2);
  }
  .page-home .hero-ctas .btn-glass {
    padding: var(--space-2) var(--space-3);
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    min-height: 40px;
  }
  /* Ensure accent button colors apply on mobile */
  .page-home .hero-ctas .hero-btn-accent[data-accent="model"] {
    background: #B8860B !important;
    border-color: rgba(184, 134, 11, 0.90) !important;
    color: #fff !important;
  }
  .page-home .hero-ctas .hero-btn-accent[data-accent="ugc"] {
    background: #C97B8A !important;
    border-color: rgba(201, 123, 138, 0.90) !important;
    color: #fff !important;
  }
  .page-home .hero-ctas .hero-btn-accent[data-accent="ent"] {
    background: #8B6BAE !important;
    border-color: rgba(139, 107, 174, 0.90) !important;
    color: #fff !important;
  }
}

/* Inner pages: 2 buttons — consistent sizing */
@media (max-width: 767px) {
  .hero--page .hero-ctas {
    gap: var(--space-3);
  }
  .hero--page .hero-ctas .btn-primary,
  .hero--page .hero-ctas .btn-glass {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-xs);
    letter-spacing: 0.08em;
    min-height: 44px;
  }
}

/* ── Scroll Hint — centered, near bottom ─────────────────────────────────── */
.scroll-hint {
  position: absolute;
  bottom: 8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  color: rgba(255, 255, 255, 0.35);
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
  transition: color var(--duration-fast) ease;
}

/* On mobile, hide scroll-hint on subpages to avoid overlapping CTAs */
@media (max-width: 768px) {
  .hero--page .scroll-hint {
    display: none;
  }
}

.scroll-hint:hover {
  color: rgba(255, 255, 255, 0.65);
}

.scroll-hint span {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.scroll-hint svg {
  animation: heroBounce 2s var(--ease-out) infinite;
}

@keyframes heroBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ==========================================================================
   HERO ENTRANCE — preloader fades out, then these elements appear
   Headline, line, tagline are always visible (preloader covers them).
   Only CTAs, scroll-hint, and nav animate in via .hero-ready.
   ========================================================================== */

.hero-ctas,
.scroll-hint {
  opacity: 0;
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}

.scroll-hint {
  /* override the transform from positioning */
  transform: translateX(-50%) translateY(12px);
}

.hero.hero-ready .hero-ctas {
  opacity: 1;
  transition-delay: 100ms;
}

.hero.hero-ready .scroll-hint {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  transition-delay: 300ms;
}

/* ── Mobile headline — all pages ─────────────────────────────────────────── */
@media (max-width: 480px) {
  .page-home .hero-headline {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
    letter-spacing: 0.08em;
    word-spacing: 0.15em;
  }
  .hero--page .hero-headline {
    font-size: clamp(1.4rem, 6vw, 2rem);
    letter-spacing: 0.06em;
  }
}

/* ==========================================================================
   HOMEPAGE HERO — Warm khaki aura (matches preloader/intro aesthetic)
   ========================================================================== */

.page-home .hero-video-bg {
  background:
    radial-gradient(ellipse 50% 50% at 48% 42%, rgba(225,205,170,0.90) 0%, transparent 65%),
    radial-gradient(ellipse 55% 55% at 22% 25%, rgba(210,185,140,0.65) 0%, transparent 70%),
    radial-gradient(ellipse 50% 55% at 78% 50%, rgba(230,210,178,0.60) 0%, transparent 68%),
    radial-gradient(ellipse 45% 45% at 30% 75%, rgba(200,180,150,0.50) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 65% 20%, rgba(240,225,200,0.45) 0%, transparent 60%),
    radial-gradient(ellipse 90% 90% at 50% 50%, #F5EBDA 0%, #E8D8BF 100%);
}

.page-home .hero-overlay {
  background: rgba(0, 0, 0, 0.06);
}

.page-home .hero-vignette {
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(200, 180, 150, 0.20) 100%
  );
}

.page-home .hero {
  color: var(--color-noir, #1A1118);
}

.page-home .hero-headline {
  color: var(--color-noir, #1A1118);
  font-size: clamp(2.5rem, 7vw, 6rem);
}

.page-home .hero-line {
  background: linear-gradient(90deg, transparent, rgba(26,17,24,0.30), rgba(26,17,24,0.50), rgba(26,17,24,0.30), transparent);
}

.page-home .hero-tagline {
  color: rgba(26, 17, 24, 0.55);
}

.page-home .scroll-hint {
  color: rgba(26, 17, 24, 0.35);
}

/* ── Reduced Motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-ctas,
  .scroll-hint {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    transition: none;
  }
  .scroll-hint svg {
    animation: none;
  }
}
