/* ============================================================
   HERO — Avatar Studio
   Full-viewport cu video background, overlay, text stânga,
   text ticker animat și scroll indicator.
   ============================================================ */

/* ── Layout de bază ────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  min-height: 100svh; /* safe-area viewport height */
  min-height: 100vh; /* fallback */
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #0a0a0a; /* fundal întunecat cât video/imaginea nu e încărcată */
}

/* ── Media (video + fallback) ──────────────────────────────── */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Imaginea fallback — vizibilă pe mobile sau când video nu redă */
.hero__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Ascunsă implicit, JS / media query o activează */
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

/* Pe mobile: video se redă (muted + playsinline + autoplay funcționează pe mobile modern).
   Fallback-ul SVG placeholder e ascuns — va fi activat doar când există o imagine reală. */
@media (max-width: 768px) {
  .hero__fallback {
    display: none;
  }
}

/* Overlay întunecat pe video */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.45) 60%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

/* ── Conținut (text) ───────────────────────────────────────── */
.hero__content {
  position: relative;
  z-index: var(--z-overlay);
  padding-top: 80px; /* compensare header fix + spațiu respirare */
  padding-bottom: 48px;
  max-width: 860px;
}

/* ── Eyebrow / micro-brand ─────────────────────────────────── */
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.6);
}

.hero__eyebrow-brand {
  color: var(--accent);
  font-weight: 600;
}

.hero__eyebrow-sep {
  color: var(--accent);
  opacity: 0.5;
}

.hero__eyebrow-motto {
  font-style: italic;
  letter-spacing: 0.1em;
}

/* ── Titlu H1 ──────────────────────────────────────────────── */
.hero__title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 24px;
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

/* ── Subtext ───────────────────────────────────────────────── */
.hero__subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
  max-width: 600px;
  margin-bottom: 24px;
}

/* ── Butoane CTA ───────────────────────────────────────────── */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.hero__btn {
  min-width: 200px;
  justify-content: center;
}

/* ── Social proof (grid 2×2) ───────────────────────────────── */
.hero__proof {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 14px 48px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: start;
}

.hero__proof-item {
  display: flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
}

/* Coloana 2 (itemele pare) — separator vizual */
.hero__proof-item:nth-child(even) {
  padding-left: 20px;
  border-left: 1px solid rgba(201, 169, 110, 0.25);
}

/* ── Text ticker animat ────────────────────────────────────── */
.hero__ticker {
  position: absolute;
  bottom: 80px;
  right: var(--gutter);
  z-index: var(--z-overlay);
  text-align: right;
}

.hero__ticker-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  height: 1.6em;
}

.hero__ticker-item {
  position: absolute;
  right: 0;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  pointer-events: none;
}

.hero__ticker-item.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* ── Scroll indicator ──────────────────────────────────────── */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color var(--transition);
  animation: hero-scroll-bounce 2s ease-in-out infinite;
}

.hero__scroll:hover {
  color: var(--accent);
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.4));
}

@keyframes hero-scroll-bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero__content {
    padding-top: 100px;
    padding-bottom: 60px;
    max-width: 100%;
  }

  .hero__title {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  .hero__actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero__btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero__ticker {
    bottom: 60px;
    right: var(--gutter);
    left: var(--gutter);
    text-align: center;
  }

  .hero__ticker-item {
    right: auto;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    white-space: normal;
    text-align: center;
  }

  .hero__ticker-item.is-active {
    transform: translateX(-50%) translateY(0);
  }

  .hero__proof {
    gap: 12px 24px;
  }

  .hero__proof-item {
    font-size: 0.72rem;
  }
}

/* ── Ghost btn pe hero (fundal video întunecat) ────────────── */
.hero .btn--ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.hero .btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
}

@media (max-width: 480px) {
  .hero__eyebrow {
    flex-wrap: wrap;
    gap: 6px;
  }

  /* Ascunde separatorii • ca să nu rămână orfani pe linie separată */
  .hero__proof-item--sep {
    display: none;
  }

  /* Fiecare item de proof pe rând propriu, cu liniuță scurtă */
  .hero__proof {
    flex-direction: column;
    gap: 6px;
  }

  .hero__scroll {
    display: none; /* ascuns pe ecrane foarte mici */
  }
}
