/* ============================================================
   TIAGO RIBEIRO · PERSONAL BROKER — LANDING PAGE
   Paleta: preto / dourado / branco
   Tipografia: Playfair Display (títulos) + Inter (corpo)
   Mobile-first, responsivo
   ============================================================ */

/* ------------------------------------------------------------
   1. VARIÁVEIS E RESET
   ------------------------------------------------------------ */
:root {
  --preto: #0a0a0a;
  --preto-suave: #141414;
  --preto-card: #1c1b18;
  --dourado: #c9a227;
  --dourado-claro: #e2c468;
  --branco: #ffffff;
  --off-white: #f7f5f0;
  --cinza-texto: #c9c6bf;
  --cinza-escuro: #4a4a4a;

  --fonte-titulo: "Playfair Display", Georgia, serif;
  --fonte-corpo: "Inter", -apple-system, Segoe UI, sans-serif;

  --largura-max: 1140px;
  --largura-narrow: 760px;

  --transicao: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fonte-corpo);
  font-weight: 300;
  line-height: 1.7;
  color: var(--off-white);
  background-color: var(--preto);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ------------------------------------------------------------
   2. LAYOUT GERAL
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--largura-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: var(--largura-narrow);
}

.section {
  padding: 72px 0;
}

.section--dark {
  background-color: var(--preto);
  color: var(--off-white);
}

.section--light {
  background-color: var(--off-white);
  color: var(--preto);
}

.section--gold {
  background-color: var(--dourado);
  color: var(--preto);
}

.section__title {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  line-height: 1.25;
  margin-bottom: 24px;
}

.section__title--center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section__text {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.8;
  font-weight: 300;
}

.section--light .section__text {
  color: #2b2b2b;
}

/* ------------------------------------------------------------
   3. ANIMAÇÃO FADE-IN AO ROLAR
   ------------------------------------------------------------ */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------------------
   4. BOTÕES
   ------------------------------------------------------------ */
.btn {
  display: inline-block;
  font-family: var(--fonte-corpo);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px 32px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--transicao), color var(--transicao), border-color var(--transicao), transform var(--transicao);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background-color: var(--dourado);
  color: var(--preto);
}

.btn--primary:hover {
  background-color: var(--dourado-claro);
}

.btn--dark {
  background-color: var(--preto);
  color: var(--dourado);
  border-color: var(--preto);
}

.btn--dark:hover {
  background-color: transparent;
  color: var(--preto);
}

.btn--outline {
  background-color: transparent;
  color: var(--off-white);
  border-color: var(--cinza-texto);
}

.btn--outline:hover {
  border-color: var(--branco);
  color: var(--branco);
}

.btn--lg {
  width: 100%;
  font-size: 1.05rem;
  padding: 18px 32px;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.8rem;
}

@media (min-width: 600px) {
  .btn--lg {
    width: auto;
  }
}

/* ------------------------------------------------------------
   5. SEÇÃO 1 — HERO / TOPO
   ------------------------------------------------------------ */
.hero {
  background-color: var(--preto);
  background-image: radial-gradient(circle at 50% 0%, var(--preto-suave) 0%, var(--preto) 65%);
  padding: 24px 0 32px;
  text-align: center;
}

.hero__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

@media (min-width: 768px) {
  .hero__container {
    gap: 28px;
  }
}

.hero__logo {
  width: 100%;
}

.hero__logo-img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;
}

@media (min-width: 480px) {
  .hero__logo-img {
    max-width: 460px;
  }
}

@media (min-width: 768px) {
  .hero__logo-img {
    max-width: 480px;
  }
}

/* Logo, headline, sub-headline e vídeo compartilham o mesmo "trilho"
   central (--largura-narrow), o mesmo usado nas demais seções. O
   width:100% garante que a caixa da headline preencha o trilho da
   mesma forma que o video-wrapper, alinhando as bordas dos blocos. */
.hero__headline {
  width: 100%;
  max-width: var(--largura-narrow);
}

/* Bloco de 3 linhas estilo "Canva": cada linha com peso/tamanho/cor
   próprios, mas com entrelinha justa pra parecerem um bloco único.
   Usa a fonte sans-serif do corpo (mais condensada e impactante que a
   serifada nesse formato). As linhas 2 e 3 ficam a 60% do tamanho da
   linha 1 — proporção calibrada para que as larguras das linhas
   fiquem próximas, formando um retângulo equilibrado. */
.hero__headline-linha1,
.hero__headline-linha2,
.hero__headline-linha3 {
  display: block;
  font-family: var(--fonte-corpo);
  line-height: 1.1;
  text-wrap: balance;
}

.hero__headline-linha1 {
  font-weight: 700;
  color: var(--branco);
  font-size: clamp(2rem, 10.2vw, 4.5rem);
}

.hero__headline-linha2 {
  font-weight: 500;
  color: var(--branco);
  font-size: clamp(1.2rem, 6.1vw, 2.7rem);
  margin-top: 0.15em;
}

/* Linha 3 = o golpe da headline: dourado e bold pra destacar.
   Tamanho um pouco maior que a linha 2 (62% vs 60% da linha 1) porque
   o texto tem menos caracteres — compensa pra fechar a mesma largura. */
.hero__headline-linha3 {
  font-weight: 700;
  color: var(--dourado);
  font-size: clamp(1.25rem, 6.4vw, 2.8rem);
  margin-top: 0.1em;
}

.hero__subheadline {
  width: 100%;
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 300;
  color: var(--cinza-texto);
  max-width: var(--largura-narrow);
  text-wrap: pretty;
}

@media (min-width: 768px) {
  .hero__subheadline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.7;
  }
}

/* Vídeo VSL — wrapper com proporção 16:9 responsiva */
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: var(--largura-narrow);
  padding-top: 56.25%; /* 16:9 */
  background-color: var(--preto-card);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 8px;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ------------------------------------------------------------
   6. SEÇÃO 2 — O PROBLEMA
   ------------------------------------------------------------ */
.section--light .section__title {
  color: var(--preto);
}

.highlight-phrase {
  margin-top: 28px;
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  color: var(--preto);
  border-left: 4px solid var(--dourado);
  padding-left: 18px;
}

/* ------------------------------------------------------------
   7. SEÇÃO 3 — OS 3 PILARES
   ------------------------------------------------------------ */
.pilares-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 48px;
}

@media (min-width: 768px) {
  .pilares-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.pilar-card {
  background-color: var(--preto-card);
  border: 1px solid rgba(201, 162, 39, 0.18);
  border-radius: 10px;
  padding: 40px 28px;
  text-align: center;
  transition: transform var(--transicao), border-color var(--transicao);
}

.pilar-card:hover {
  transform: translateY(-6px);
  border-color: var(--dourado);
}

/* Placeholder de ícone: troque o SVG dentro de .pilar-card__icon */
.pilar-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  color: var(--dourado);
}

.pilar-card__icon svg {
  width: 100%;
  height: 100%;
}

.pilar-card__title {
  font-family: var(--fonte-titulo);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--branco);
}

.pilar-card__text {
  font-size: 0.98rem;
  color: var(--cinza-texto);
  line-height: 1.75;
}

/* ------------------------------------------------------------
   8. SEÇÃO 4 — QUEBRA DE OBJEÇÃO (faixa dourada)
   ------------------------------------------------------------ */
.section--gold {
  text-align: center;
  padding: 64px 0;
}

.objecao__text {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 20px;
}

.objecao__text strong {
  font-weight: 700;
}

.section--gold .btn {
  margin-top: 12px;
}

/* ------------------------------------------------------------
   9. SEÇÃO 5 — QUEM SOU EU
   ------------------------------------------------------------ */
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 768px) {
  .sobre-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
  }
}

/* Foto em preto e branco: o filtro grayscale mantém a identidade visual */
.sobre__foto img {
  width: 100%;
  border-radius: 10px;
  filter: grayscale(100%);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.sobre__creci {
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--dourado);
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 8px;
  margin-top: -12px;
}

.sobre__credencial {
  font-style: italic;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--dourado-claro);
  margin-bottom: 20px;
}

/* ------------------------------------------------------------
   10. SEÇÃO 6 — PROVA SOCIAL
   ------------------------------------------------------------ */
.depoimentos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 48px;
}

@media (min-width: 768px) {
  .depoimentos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.depoimento-card {
  background-color: var(--preto-card);
  border-top: 3px solid var(--dourado);
  border-radius: 6px;
  padding: 32px 26px;
}

.depoimento-card__texto {
  font-style: italic;
  font-size: 0.98rem;
  color: var(--cinza-texto);
  margin-bottom: 18px;
}

.depoimento-card__autor {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dourado-claro);
  letter-spacing: 0.03em;
}

/* ------------------------------------------------------------
   11. SEÇÃO 7 — FAQ (acordeão)
   ------------------------------------------------------------ */
.faq-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.faq-item__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--fonte-corpo);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 600;
  color: var(--preto);
  padding: 20px 0;
}

.faq-item__icon {
  flex-shrink: 0;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--dourado);
  transition: transform var(--transicao);
}

.faq-item__question[aria-expanded="true"] .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding var(--transicao);
}

.faq-item__answer p {
  padding-bottom: 20px;
  color: #3a3a3a;
  font-size: 0.98rem;
  line-height: 1.75;
  max-width: 640px;
}

.faq-cta {
  margin-top: 48px;
  text-align: center;
}

/* ------------------------------------------------------------
   12. SEÇÃO 8 — CTA FINAL + FORMULÁRIO
   ------------------------------------------------------------ */
.escassez {
  text-align: center;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--dourado-claro);
  font-weight: 500;
  margin-bottom: 24px;
}

.cta-final__botao {
  text-align: center;
  margin-bottom: 48px;
}

/* Embed do formulário Tally */
.tally-embed {
  margin-bottom: 32px;
}

/* Card branco flutuante sobre o fundo escuro da seção: o fundo branco
   do Tally ganha um respiro (padding) e cantos arredondados, com
   borda dourada sutil e sombra suave para se destacar do preto. */
.tally-embed__card {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background-color: var(--branco);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  padding: 20px;
}

@media (min-width: 768px) {
  .tally-embed__card {
    padding: 28px;
  }
}

.tally-embed__card iframe {
  display: block;
  width: 100%;
  border: none;
}

.microcopy {
  text-align: center;
  font-size: 0.85rem;
  color: var(--cinza-texto);
}

/* ------------------------------------------------------------
   13. RODAPÉ
   ------------------------------------------------------------ */
.footer {
  background-color: var(--preto);
  border-top: 1px solid rgba(201, 162, 39, 0.18);
  padding: 32px 0 calc(32px + env(safe-area-inset-bottom, 0px));
}

.footer__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--cinza-texto);
}

@media (min-width: 600px) {
  .footer__container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__links {
  display: flex;
  gap: 20px;
}

.footer__links a {
  color: var(--cinza-texto);
  transition: color var(--transicao);
}

.footer__links a:hover {
  color: var(--dourado);
}

/* ------------------------------------------------------------
   14. BANNER DE COOKIES (LGPD)
   ------------------------------------------------------------ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(10, 10, 10, 0.97);
  border-top: 1px solid var(--dourado);
  padding: 20px 24px calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner__content {
  max-width: var(--largura-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.cookie-banner__content p {
  font-size: 0.85rem;
  color: var(--cinza-texto);
  max-width: 640px;
}

.cookie-banner__content a {
  color: var(--dourado);
  text-decoration: underline;
}

.cookie-banner__botoes {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .cookie-banner__content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ------------------------------------------------------------
   15. AJUSTES RESPONSIVOS GERAIS
   ------------------------------------------------------------ */
@media (min-width: 768px) {
  .section {
    padding: 100px 0;
  }

  .hero {
    padding: 56px 0 88px;
  }
}
