/* ===========================================================
   HOME (index.php) — celular primeiro; layout de computador a partir de 900 px.
   Depende do style.css (cabeçalho com o logo).
   =========================================================== */
.home { color: var(--navy-fundo); background: #fff; }
.home img { max-width: 100%; height: auto; }

/* ---------- Cabeçalho ---------- */
.topo-links { display: flex; align-items: center; gap: 14px; }
.topo-links a { color: #fff; font-size: 13px; font-weight: 500; text-decoration: none; }
.topo-links .topo-botao { padding: 8px 16px; border-radius: 20px; background: var(--azul-destaque); color: var(--navy-fundo); font-weight: 700; }

/* ---------- Botões ---------- */
.botao { display: inline-block; padding: 14px 26px; border-radius: 28px; font-size: 14px; font-weight: 700; text-align: center; text-decoration: none; line-height: 1.3; }
/* Botões: azul do Figma. O texto é azul escuro (e não branco) porque branco sobre esse azul fica difícil de ler. */
.botao-claro, .botao-escuro { background: var(--azul-destaque); color: var(--navy-fundo); }

/* ---------- Estrutura das seções ---------- */
.secao { padding: 44px 20px; }
.secao-bege { background: var(--bege-claro); }
.miolo { max-width: 1080px; margin: 0 auto; }
.estreito { max-width: 640px; }
.centro { text-align: center; }
.home h2 { margin: 0 0 14px; font-size: 26px; line-height: 1.2; font-weight: 700; }
.home .sobretitulo { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.home .secao p { font-size: 15px; line-height: 1.7; }
.home .secao .botao { margin-top: 10px; }
.duas-colunas { display: grid; gap: 24px; align-items: center; }
.imagem-placa { width: 100%; max-width: 481px; justify-self: center; border-radius: 14px; }
.imagem-celular { width: 100%; max-width: 300px; justify-self: center; }

/* ---------- Topo (hero) ---------- */
.hero { background: var(--navy-fundo); color: #fff; }
.hero-texto { padding: 36px 20px 28px; }
.hero h1 { margin: 0 0 14px; font-size: 28px; line-height: 1.15; font-weight: 900; color: var(--areia); }
.hero p { margin: 0 0 20px; font-size: 15px; line-height: 1.65; color: var(--bege-claro); }
.hero-imagem img { display: block; width: 100%; height: 280px; object-fit: cover; object-position: 78% 30%; }

/* ---------- Árvore genealógica ---------- */
.arvore { position: relative; overflow: hidden; background: var(--navy-fundo); color: #fff; }
.home .arvore-fundo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; opacity: 0.5; }
.arvore-texto { position: relative; z-index: 1; }
.arvore-texto p { color: var(--bege-claro); }
.arvore .sobretitulo { color: var(--bege-claro); }
.arvore h2 { color: var(--azul-destaque); }

/* ---------- Depoimentos ---------- */
.depoimentos { display: grid; gap: 14px; margin-top: 20px; }
.depoimento { margin: 0; padding: 22px 22px 18px; border-radius: 16px; background: linear-gradient(140deg, #4d5f78, #34445a); color: #fff; }
.depoimento blockquote { margin: 0 0 14px; font-size: 14px; line-height: 1.65; }
.depoimento figcaption { font-size: 13px; font-weight: 700; opacity: 0.85; }

/* ---------- Benefícios ---------- */
.beneficios { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 22px 0 18px; padding: 0; list-style: none; }
.beneficios li { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; border-radius: 14px; background: #fff; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; line-height: 1.35; box-shadow: 0 1px 3px rgba(13,27,47,0.1); }

/* ---------- Como funciona ---------- */
.como-funciona { position: relative; overflow: hidden; background: #3a3128; color: #fff; }
.home .como-fundo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.como-funciona::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(13,27,47,0.62); }
.como-conteudo { position: relative; z-index: 2; }
.como-conteudo h2 { margin-bottom: 20px; color: var(--bege-claro); }
.passos { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.passos li { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 600; line-height: 1.45; }
.passo-icone { display: flex; flex: 0 0 48px; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1.5px solid rgba(255,255,255,0.7); border-radius: 50%; }

/* ---------- Quem somos / rodapé ---------- */
.institucional { text-align: center; }
.institucional img { width: 200px; margin-bottom: 14px; }
.institucional p { font-weight: 500; }
.rodape-home { padding: 18px 20px; background: var(--navy-fundo); color: rgba(255,255,255,0.7); font-size: 12px; text-align: center; }
.rodape-home p { margin: 0; }

/* ===========================================================
   COMPUTADOR
   =========================================================== */
@media (min-width: 900px) {
    .header { padding-left: max(24px, calc((100vw - 1080px) / 2)); padding-right: max(24px, calc((100vw - 1080px) / 2)); }
    .topo-links { gap: 22px; }
    .topo-links a { font-size: 14px; }
    .secao { padding: 80px 24px; }
    .home h2 { font-size: 34px; }
    .home .secao p { font-size: 16px; }
    .duas-colunas { grid-template-columns: 1fr 1fr; gap: 64px; }
    .duas-colunas.inverter > img { order: 2; }

    .hero-texto { max-width: 720px; margin: 0 auto; padding: 48px 24px 36px; }
    .hero h1 { font-size: 34px; }
    .hero-imagem img { height: 340px; }

    .arvore-texto { max-width: 520px; margin-left: auto; margin-right: max(0px, calc((100% - 1080px) / 2)); }
    .arvore-fundo { opacity: 1; }
    .depoimentos { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .beneficios { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .beneficios li { flex-direction: row; justify-content: center; padding: 22px 16px; font-size: 13px; }
    .passos { grid-template-columns: repeat(3, 1fr); gap: 28px; }
    .passos li { flex-direction: column; text-align: center; }
    .como-conteudo h2 { text-align: center; margin-bottom: 36px; }
    .institucional img { width: 240px; }
}

/* Texto sobre a imagem: só a partir de 1000 px (abaixo disso a placa do QR code ficaria perto demais do texto) */
@media (min-width: 1000px) {
    .hero { position: relative; display: flex; align-items: flex-start; min-height: 600px; }
    .hero-imagem { position: absolute; inset: 0; }
    .hero-imagem img { height: 100%; object-position: right center; }
    /* A placa do QR code fica numa posição proporcional à largura da tela; por isso o texto também é proporcional (e não ancorado no centro) */
    .hero-texto { position: relative; z-index: 1; max-width: min(440px, 31vw); padding: 64px 0 56px; margin: 0 0 0 max(24px, 6vw); }
    .hero h1 { font-size: clamp(30px, 3.1vw, 40px); }
    .hero p { font-size: clamp(15px, 1.3vw, 17px); }
}
