/* --- CONFIGURAÇÕES GLOBAIS E VARIÁVEIS --- */
:root {
    --cor-fundo: #fdfaf7;
    --cor-ouro: #b39274;
    --cor-ouro-claro: #c2a891;
    --cor-branco: #ffffff;
    --sombra: rgba(166, 133, 102, 0.1);
    --cor-texto: #4a4542;
    --cor-suave: #888;

    /* Altura reservada do cabeçalho fixo, usada para o scroll não ficar por baixo do menu */
    --altura-cabecalho: 96px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-color: var(--cor-ouro-claro) var(--cor-fundo);
    scrollbar-width: thin;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--cor-fundo);
    color: var(--cor-texto);
    line-height: 1.6;
    opacity: 0;
    animation: surgirPagina 0.7s ease forwards;
}

@keyframes surgirPagina {
    to { opacity: 1; }
}

::selection {
    background: var(--cor-ouro);
    color: var(--cor-branco);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--cor-fundo);
}

::-webkit-scrollbar-thumb {
    background: var(--cor-ouro-claro);
    border-radius: 10px;
    border: 2px solid var(--cor-fundo);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cor-ouro);
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--cor-texto);
    line-height: 1.2;
}

h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

/* --- BARRA DE PROGRESSO DE LEITURA --- */
.barra-progresso {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--cor-ouro), var(--cor-ouro-claro));
    z-index: 2500;
    transition: width 0.1s ease-out;
}

.container-principal {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* --- CABEÇALHO E MENU --- */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px 8%;
    border-bottom: 1px solid rgba(166, 133, 102, 0.1);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease, padding 0.3s ease;
}

header.rolado {
    box-shadow: 0 10px 30px var(--sombra);
    padding-top: 14px;
    padding-bottom: 14px;
}

.container-navegacao {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logotipo h1 {
    font-family: 'Cormorant Garamond';
    color: var(--cor-ouro);
    font-size: 1.8rem;
}

.botao-aba {
    border: none;
    background: none;
    margin: 0 10px;
    padding: 6px 2px;
    cursor: pointer;
    color: var(--cor-suave);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
}

.botao-aba:hover {
    color: var(--cor-ouro);
}

.botao-aba.selecionado {
    color: var(--cor-ouro);
    font-weight: 600;
}

.botao-aba::after {
    content: "";
    width: 100%;
    height: 2px;
    background: var(--cor-ouro);
    position: absolute;
    bottom: -5px;
    left: 0;
    opacity: 0;
    transform: scaleX(0.6);
    transform-origin: center;
    transition: opacity 0.3s, transform 0.3s;
}

.botao-aba.selecionado::after {
    opacity: 1;
    transform: scaleX(1);
}

/* --- COMPONENTES REUTILIZÁVEIS --- */
.etiqueta {
    background: #f0e6dd;
    color: var(--cor-ouro);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

/* --- SEÇÃO INICIAL (HERO) --- */
.destaque {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70vh;
    min-height: 70dvh; /* evita "pulo" de altura quando a barra do navegador some/aparece no celular */
    gap: 50px;
}

.texto-destaque {
    max-width: 500px;
}

.texto-destaque h2 {
    font-size: clamp(2.4rem, 4vw + 1.4rem, 3.8rem);
    margin-bottom: 20px;
    line-height: 1.1;
}

.texto-destaque strong {
    color: var(--cor-ouro);
    font-style: italic;
}

.imagem-destaque {
    position: relative;
    perspective: 1000px;
    animation: flutuar 6s ease-in-out infinite;
}

.imagem-destaque::before {
    content: "";
    position: absolute;
    inset: -25px;
    background: radial-gradient(circle at 30% 30%, rgba(179, 146, 116, 0.35), transparent 70%);
    filter: blur(35px);
    z-index: -1;
    border-radius: 50%;
}

.imagem-destaque img {
    width: 100%;
    max-width: 420px;
    border-radius: 20px;
    box-shadow: 30px 30px 60px var(--sombra);
    transition: transform 0.2s ease-out, box-shadow 0.4s;
    transform-style: preserve-3d;
    display: block;
}

.imagem-destaque img:hover {
    box-shadow: 35px 35px 70px rgba(179, 146, 116, 0.3);
}

@keyframes flutuar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@media (max-width: 900px) {
    .imagem-destaque {
        animation: none;
    }
}

/* --- SEÇÃO DE SESSÕES --- */
.imagem-sessao-grande {
    width: 100%;
    max-width: 900px; /* Aumentado para dar o destaque solicitado */
    border-radius: 20px;
    box-shadow: 20px 20px 40px var(--sombra);
    display: block;
}

.rodape-sessao {
    margin-top: 40px;
    border-top: 1px solid rgba(166, 133, 102, 0.1);
    padding-top: 30px;
}

.chamada-direta {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chamada-direta p {
    font-weight: 600;
    color: var(--cor-ouro);
    margin: 0;
}

.botao-whatsapp-sessao {
    background: #25d366;
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    width: fit-content;
    transition: 0.3s;
}

.botao-whatsapp-sessao:hover {
    background: #20ba5a;
    transform: translateY(-2px);
}

.info-detalhe {
    font-size: 0.8rem;
    color: var(--cor-suave);
    margin-top: 5px;
}

.botao-ouro {
    background: var(--cor-ouro);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.2s ease-out, box-shadow 0.4s, background 0.4s;
    box-shadow: 0 10px 20px var(--sombra);
    margin-top: 30px;
    position: relative;
    overflow: hidden;
    animation: respirarBotao 3.5s ease-in-out infinite;
}

.botao-ouro::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
}

.botao-ouro:hover::before {
    left: 125%;
}

@keyframes respirarBotao {
    0%, 100% { box-shadow: 0 10px 20px var(--sombra); }
    50% { box-shadow: 0 14px 32px rgba(179, 146, 116, 0.4); }
}

.frase-contato {
    font-style: italic;
    max-width: 600px;
    margin: 0 auto 20px;
    color: var(--cor-ouro);
    font-size: 1.1rem;
    line-height: 1.4;
}

.contato-sub { font-size: 0.9rem; color: var(--cor-suave); margin-bottom: 25px; }

.botao-ouro:hover {
    background: var(--cor-ouro-claro);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px var(--sombra);
    animation-play-state: paused;
}

.subtitulo {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--cor-ouro);
}

/* --- SEÇÃO SOBRE --- */
.sobre {
    display: flex;
    gap: 40px;
    align-items: center;
}

.sobre img {
    width: 100%;
    max-width: 350px;
    border-radius: 15px;
    box-shadow: 20px 20px 40px var(--sombra);
    display: block;
}

.sobre-detalhes h4 {
    margin-top: 20px;
    font-family: 'Cormorant Garamond';
    font-size: 1.4rem;
    color: var(--cor-ouro);
}

/* Parágrafos em itálico para depoimentos ou frases marcantes,
   destacados como citações elegantes (pull-quotes) */
.enfase {
    font-style: italic;
    color: var(--cor-ouro);
    position: relative;
    margin: 25px 0;
    padding: 18px 20px 18px 55px;
    background: rgba(179, 146, 106, 0.06);
    border-left: 3px solid var(--cor-ouro);
    border-radius: 4px;
    font-size: 1.05rem;
}

.enfase::before {
    content: '\201C';
    position: absolute;
    top: -8px;
    left: 14px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.2rem;
    color: rgba(179, 146, 106, 0.4);
    line-height: 1;
}

.credenciais {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tag-credencial {
    background: #f0e6dd;
    color: var(--cor-ouro);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.25s, box-shadow 0.25s;
}

.tag-credencial::before {
    content: '\2713';
    font-weight: 700;
}

.tag-credencial:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px var(--sombra);
}

.sobre-detalhes p {
    margin-bottom: 10px;
}

/* TÍTULOS DE SEÇÃO */
.titulo-da-secao {
    margin-bottom: 30px;
    font-size: 2rem;
}

/* CARTÃO DE EBOOK */
.centralizar-ebook {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.cartao {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 350px;
    box-shadow: 0 10px 30px var(--sombra);
    border: 1px solid rgba(179, 146, 106, 0.08);
}

.cartao:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 45px rgba(179, 146, 106, 0.25);
}

.cartao img {
    width: 100%;
    border-radius: 10px;
}

.botao-ouro-baixar {
    background: var(--cor-ouro);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 20px;
    transition: 0.3s;
    box-shadow: 0 5px 15px var(--sombra);
}

.botao-ouro-baixar:hover {
    background: var(--cor-ouro-claro);
    transform: translateY(-2px);
}

/* --- SEÇÃO DE CONTATO --- */
.contato {
    text-align: center;
    padding: 40px 0;
}

.lista-links-contato {
    margin-top: 30px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.link-texto {
    text-decoration: none;
    color: var(--cor-ouro);
    font-weight: 600;
    font-size: 1.1rem;
    transition: 0.3s;
}

.link-texto:hover {
    color: var(--cor-ouro-claro);
    text-decoration: underline;
}

.divisor {
    color: #ddd;
    font-weight: 300;
}

/* --- COMPONENTE WHATSAPP FLUTUANTE --- */
.botao-whatsapp-flutuante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 2000;
    transition: 0.3s;
    text-decoration: none;
}

.botao-whatsapp-flutuante:hover {
    transform: scale(1.1);
    background: #20ba5a;
}

.botao-whatsapp-flutuante::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #25d366;
    animation: pulsarAnel 2.2s ease-out infinite;
}

@keyframes pulsarAnel {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.9); opacity: 0; }
}

.container-menu-whatsapp {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 260px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 20px;
    display: none;
    z-index: 3500;
    border: 1px solid var(--cor-ouro-claro);
    animation: aparecerParaCima 0.4s ease;
}

.container-menu-whatsapp.aberto {
    display: block;
}

.cabecalho-menu-whatsapp {
    font-weight: 600;
    color: var(--cor-ouro);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.opcao-menu-whatsapp {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid #f0e6dd;
    border-radius: 8px;
    background: #fdfaf7;
    cursor: pointer;
    text-align: left;
    font-size: 0.8rem;
    transition: 0.3s;
    font-family: 'Montserrat';
}

.opcao-menu-whatsapp:hover {
    background: var(--cor-ouro);
    color: white;
}

/* --- ANIMAÇÕES E TRANSIÇÕES --- */
/* Em vez de esconder/mostrar abas, todas as seções ficam no fluxo da página
   (scroll contínuo, como o Instagram) e revelam com fade ao entrarem na tela. */
.conteudo-aba {
    position: relative;
    overflow: hidden;
    padding: 70px 0;
    border-bottom: 1px solid rgba(166, 133, 102, 0.1);
    scroll-margin-top: var(--altura-cabecalho);
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.conteudo-aba:last-of-type {
    border-bottom: none;
}

.conteudo-aba.visivel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Numeral decorativo de fundo, um detalhe editorial discreto por seção */
.conteudo-aba::before {
    content: attr(data-numero);
    position: absolute;
    top: -0.35em;
    right: -0.1em;
    font-family: 'Cormorant Garamond', serif;
    font-size: 11rem;
    font-weight: 600;
    color: rgba(179, 146, 106, 0.05);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.conteudo-aba > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .conteudo-aba::before {
        font-size: 6rem;
    }
}

@keyframes aparecerParaCima {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- RODAPÉ --- */
footer {
    position: relative;
    background: var(--cor-branco);
    padding: 60px 20px;
    margin-top: 100px;
    border-top: 1px solid #eee;
    text-align: center;
}

footer::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--cor-ouro), var(--cor-ouro-claro));
    border-radius: 3px;
}

.redes-sociais-rodape {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.redes-sociais-rodape a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    color: var(--cor-suave);
    transition: 0.3s;
}

.redes-sociais-rodape a:hover { color: var(--cor-ouro); }

.creditos {
    margin-top: 30px;
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ccc;
}
.conteudo-rodape p { font-weight: 600; color: var(--cor-texto); }
.info-rodape { color: var(--cor-suave); font-size: 0.8rem; margin-top: 10px; }

/* --- RESPONSIVIDADE (MOBILE) --- */
@media (max-width: 900px) {
    :root {
        /* Cabeçalho fica mais alto empilhado, então reserva mais espaço no scroll */
        --altura-cabecalho: 200px;
    }

    header {
        padding: 20px 5%;
    }
    .container-navegacao {
        flex-direction: column;
        gap: 15px;
    }

    .logotipo h1 {
        font-size: 1.5rem;
    }

    /* Abas em várias linhas se precisar, sempre centralizadas e com área de toque confortável */
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 6px;
    }

    .botao-aba {
        margin: 0;
        padding: 10px 10px;
        font-size: 0.9rem;
    }

    .destaque, .sobre {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    /* Centraliza o CTA do WhatsApp junto com o texto ao redor (item flex não segue text-align) */
    .chamada-direta {
        align-items: center;
    }

    /* Ajustes para imagens em telas muito pequenas */
    .imagem-destaque img, .imagem-sessao-grande, .sobre img {
        max-width: 100%; /* Garante que a imagem não ultrapasse a largura da tela */
        height: auto; /* Mantém a proporção */
    }
}

@media (max-width: 480px) {
    .texto-destaque h2 {
        font-size: 2.2rem;
    }
    .container-principal {
        padding: 20px 15px;
    }
    .botao-ouro {
        width: 100%;
        padding: 18px 20px;
    }
}

/* --- ACESSIBILIDADE: RESPEITA PREFERÊNCIA POR MENOS ANIMAÇÃO --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
