/* ============================================
   HERO — card gigante com imagem de fundo,
   header interno e conteúdo em camadas.
   ============================================ */

.hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 2 * var(--frame-pad));
  height: calc(100dvh - 2 * var(--frame-pad));
  display: flex;
}

.hero__card {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-radius: clamp(18px, 2vw, 32px);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), var(--shadow-inset-top);
  background: #111;
}

/* ===== Background image layer ===== */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 1.2s var(--ease-apple);
}

/* placeholder quando sem imagem */
.hero__bg:not([src]),
.hero__bg[src=""] {
  background:
    radial-gradient(60% 60% at 50% 40%, rgba(225, 29, 42, 0.35), transparent 65%),
    radial-gradient(80% 80% at 80% 80%, rgba(225, 29, 42, 0.18), transparent 65%),
    linear-gradient(160deg, #1c1c1c 0%, #0b0b0b 100%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 6, 6, 0.78) 0%, rgba(6, 6, 6, 0.42) 30%, rgba(6, 6, 6, 0.52) 62%, rgba(6, 6, 6, 0.88) 100%);
}

/* ===== Content wrapper ===== */
.hero__content {
  position: relative;
  z-index: 3;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* ===== Intro (título + subtítulo) — canto superior esquerdo abaixo do header ===== */
.hero__intro {
  padding: clamp(0.5rem, 1.5vh, 1.5rem) clamp(1.75rem, 4vw, 3.5rem) 0;
  max-width: 820px;
  min-height: 0;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, min(7vw, 9.5vh), 6.25rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #fff;
  text-wrap: balance;
}

.hero__title-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero__subtitle {
  margin-top: clamp(0.6rem, 1.4vh, 1.125rem);
  font-size: clamp(0.9rem, min(1vw + 0.55rem, 1.7vh + 0.3rem), 1.15rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: -0.005em;
  max-width: 46ch;
}

/* ===== Spacer para empurrar o bottom para baixo ===== */
.hero__spacer {
  flex: 1;
  min-height: clamp(0.75rem, 3vh, 5rem);
}

/* ===== Bottom (descrição + CTAs à esquerda / avatars + scroll à direita) ===== */
.hero__bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: clamp(1.25rem, 4vw, 3rem);
  padding:
    clamp(0.75rem, 2vh, 2.5rem)
    clamp(1.75rem, 4vw, 3.5rem)
    clamp(1rem, 2.5vh, 2.75rem);
  min-height: 0;
}

.hero__bottom-left {
  max-width: 480px;
  min-width: 0;
}

.hero__description {
  font-size: clamp(0.85rem, min(0.9vw + 0.55rem, 1.4vh + 0.35rem), 1rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: -0.005em;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: clamp(0.75rem, 1.8vh, 1.5rem);
}

.hero__ctas .btn {
  padding: 0.875rem 1.625rem;
  font-size: 0.9375rem;
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

/* ===== Bottom-right: social + scroll indicator ===== */
.hero__bottom-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.25rem;
}

.hero__social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero__avatars {
  display: inline-flex;
}

.hero__avatars img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  object-fit: cover;
  margin-left: -12px;
  box-shadow: var(--shadow-sm);
  background: #1a1a1a;
}

.hero__avatars img:first-child { margin-left: 0; }

.hero__social-text {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.25;
}

.hero__social-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

/* Scroll indicator */
.hero__scroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(46px, 6vh, 60px);
  height: clamp(46px, 6vh, 60px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    background var(--duration-base) var(--ease-apple),
    transform var(--duration-base) var(--ease-apple),
    border-color var(--duration-base) var(--ease-apple);
}

.hero__scroll:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-3px);
}

.hero__scroll svg {
  width: 20px;
  height: 20px;
  animation: float 3s var(--ease-apple) infinite;
}

/* ===== Responsive ===== */
@media (max-width: 1079px) {
  .hero__intro {
    padding-right: clamp(1.5rem, 4vw, 2rem);
  }
}

@media (max-width: 767px) {
  .hero__bottom {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.75rem;
  }

  .hero__bottom-right {
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }

  .hero__scroll {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 520px) {
  .hero__intro {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hero__bottom {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

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

  .hero__ctas .btn {
    width: 100%;
  }

  .hero__scroll {
    display: none;
  }

  .hero__avatars img {
    width: 32px;
    height: 32px;
    margin-left: -10px;
  }
}
