/* =============================================================================
   hero.css — Seção Hero · CasaPar
   Efeito: "Dois Mundos" — esquerda estratégia / direita amor
   Foto: src/assets/hero-bg.jpg (alianças douradas)
   ============================================================================= */


/* ============================================================
   ESTRUTURA BASE DO HERO
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: var(--spacing-3xl);
  position: relative;
  overflow: hidden;
  isolation: isolate; /* cria novo stacking context */
}


/* ============================================================
   CAMADA 1 — FOTO DE FUNDO
   ============================================================ */

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.65) saturate(0.9);
  animation: hero-breathe-in 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}


@keyframes hero-breathe-in {
  from {
    opacity: 0;
    transform: scale(1.08);
    filter: grayscale(8%) sepia(18%) brightness(0.3) saturate(1.1);
  }
  to {
    opacity: 1;
    transform: scale(1.0);
    filter: grayscale(8%) sepia(18%) brightness(0.68) saturate(1.15);
  }
}


/* ============================================================
   CAMADA 2 — OVERLAYS COMPOSTOS
   Efeito: diagonal de 108° divide texto (escuro) do visual (vivo)
   ============================================================ */

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    /* Gradiente diagonal principal — "dois mundos" */
    linear-gradient(
      108deg,
      rgba(8, 7, 6, 1.00)  0%,
      rgba(8, 7, 6, 1.00)  28%,
      rgba(8, 7, 6, 0.94)  38%,
      rgba(8, 7, 6, 0.70)  50%,
      rgba(8, 7, 6, 0.30)  66%,
      rgba(8, 7, 6, 0.10)  80%,
      rgba(8, 7, 6, 0.02) 100%
    ),
    /* Brilho dourado suave onde as alianças aparecem */
    radial-gradient(
      ellipse at 72% 52%,
      rgba(201, 164, 88, 0.14) 0%,
      rgba(201, 164, 88, 0.05) 45%,
      transparent 65%
    ),
    /* Vinheta inferior — ancora o conteúdo no fundo */
    linear-gradient(
      to top,
      rgba(8, 7, 6, 0.92) 0%,
      rgba(8, 7, 6, 0.55) 12%,
      transparent 35%
    ),
    /* Vinheta superior — funde com navbar */
    linear-gradient(
      to bottom,
      rgba(8, 7, 6, 0.75) 0%,
      rgba(8, 7, 6, 0.20) 15%,
      transparent 30%
    );
}




/* ============================================================
   CONTEÚDO DO HERO — acima de todos os overlays
   ============================================================ */

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-narrow);
  width: 100%;
}


/* ---- Tag / Badge ---- */

.hero__tag {
  margin-bottom: var(--spacing-lg);
  /* Entrada escalonada */
  animation: fade-up 0.7s 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}


/* ---- Headline ---- */

.hero__headline {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: 800;
  line-height: 1.0;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-lg);
  letter-spacing: -0.03em;
  animation: fade-up 0.8s 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Palavra em destaque — itálico com sublinhado dourado */
.hero__headline em {
  font-style: italic;
  font-weight: 800;
  color: var(--color-gold);
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
}

.hero__headline em::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-gold), transparent 80%);
  opacity: 0.6;
}


/* ---- Subtítulo ---- */

.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.75;
  color: var(--color-text-primary);
  max-width: 580px;
  margin-bottom: var(--spacing-xl);
  animation: fade-up 0.8s 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}


/* ---- CTAs ---- */

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-xl);
  animation: fade-up 0.8s 0.9s cubic-bezier(0.4, 0, 0.2, 1) both;
}


/* ---- Prova rápida ---- */

.hero__proof {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  animation: fade-up 0.8s 1.1s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero__proof-item {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero__proof-item::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.6;
  flex-shrink: 0;
}


/* ============================================================
   ANIMAÇÕES DE ENTRADA
   ============================================================ */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ============================================================
   RESPONSIVO
   ============================================================ */

@media (max-width: 1280px) {
  .hero__overlay {
    background:
      linear-gradient(
        108deg,
        rgba(8, 7, 6, 1.00)  0%,
        rgba(8, 7, 6, 0.97)  35%,
        rgba(8, 7, 6, 0.72)  50%,
        rgba(8, 7, 6, 0.32)  68%,
        rgba(8, 7, 6, 0.06) 100%
      ),
      radial-gradient(ellipse at 72% 52%, rgba(201, 164, 88, 0.12) 0%, transparent 60%),
      linear-gradient(to top, rgba(8, 7, 6, 0.88) 0%, transparent 30%),
      linear-gradient(to bottom, rgba(8, 7, 6, 0.7) 0%, transparent 25%);
  }
}

@media (max-width: 1024px) {
  .hero {
    padding-top: 120px;
  }

  .hero__headline {
    font-size: var(--text-5xl);
    letter-spacing: -0.025em;
  }

  /* Em tablet, escurece mais — texto é prioridade */
  .hero__overlay {
    background:
      linear-gradient(
        108deg,
        rgba(8, 7, 6, 1.00)  0%,
        rgba(8, 7, 6, 0.98)  40%,
        rgba(8, 7, 6, 0.88)  58%,
        rgba(8, 7, 6, 0.62)  75%,
        rgba(8, 7, 6, 0.38) 100%
      ),
      linear-gradient(to top, rgba(8, 7, 6, 0.85) 0%, transparent 30%),
      linear-gradient(to bottom, rgba(8, 7, 6, 0.7) 0%, transparent 25%);
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 100px;
    min-height: 100svh;
    padding-bottom: var(--spacing-2xl);
  }

  .hero__headline {
    font-size: var(--text-4xl);
    letter-spacing: -0.02em;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__ctas .btn-secondary {
    display: none; /* mobile: só o CTA principal */
  }

  .hero__proof {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  /* Mobile: foto deslocada para esquerda para mostrar a mão */
  .hero__bg-img {
    object-position: 57% center;
  }

  /* Mobile: overlay deslocado à esquerda — alianças aparecem mais */
  .hero__overlay {
    background:
      linear-gradient(
        to right,
        rgba(8, 7, 6, 1.00)  0%,
        rgba(8, 7, 6, 0.92)  25%,
        rgba(8, 7, 6, 0.35)  50%,
        rgba(8, 7, 6, 0.05) 100%
      ),
      linear-gradient(to top, rgba(8, 7, 6, 0.88) 0%, transparent 30%),
      linear-gradient(to bottom, rgba(8, 7, 6, 0.75) 0%, transparent 25%);
  }


}

@media (prefers-reduced-motion: reduce) {
  .hero__tag,
  .hero__headline,
  .hero__subtitle,
  .hero__ctas,
  .hero__proof {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
