/* ==========================================================================
   Claudia Falchetti — Psicanálise Clínica
   ========================================================================== */

/* Variáveis do Manual de Identidade Visual */
:root {
    --azul-profundo: #203E59;
    --bege-quente: #B8B19F;
    --branco-off: #FDFCF9;
    --texto-claro: #EBE8E1;
}

/* Reset Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--azul-profundo);
    background-color: var(--branco-off);
    line-height: 1.7;
    font-size: 16px;
}

/* Tipografia */
h1, h2, h3, .serif {
    font-family: 'Bodoni Moda', serif;
    font-weight: 600;
    -webkit-text-stroke: 0.4px currentColor;
    text-stroke: 0.4px currentColor;
}

.text-center { text-align: center; }
.text-left { text-align: left; }

/* Utilitários de Seção */
.section-padding { padding: 100px 20px; }
.container { max-width: 1100px; margin: 0 auto; }

/* Cores de Fundo - Como no PNG */
.bg-branco { background-color: var(--branco-off); color: var(--azul-profundo); }
.bg-bege { background-color: var(--azul-profundo); color: var(--bege-quente);  }
.bg-bege-claro { background-color: #dfd9c9; color: var(--azul-profundo); }
.bg-azul { background-color: var(--azul-profundo); color: var(--texto-claro); }

#sobre.bg-azul {
    background-image: url('../imgs/bg-azul.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.bg-footer { background-color: #182939; color: var(--texto-claro); }

/* Navegação Topo */
.navbar {
    padding: 0 10px;
    border-bottom: 1px solid rgba(32,62,89,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
}
.logo .serif { font-size: 1.5rem; display: block; }
.logo-sub { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; }
.logo img { display: block; height: 50px; width: auto; }
.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a {
    text-decoration: none;
    color: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 6px;
    transition: color 0.5s ease;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: #fff;
    transition: width 0.5s ease;
}
.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Botão Hamburguer (Mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--bege-quente);
    transition: transform 0.5s ease, opacity 0.5s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero Banner */
.hero {
    text-align: center;
    padding: 120px 20px;
    background-image: url('../imgs/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-titulo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.flor-fundo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    height: 380px;
    object-fit: contain;
    opacity: 0.5;
    mix-blend-mode: multiply;
    z-index: 0;
    pointer-events: none;
}
.hero h1 {
    position: relative;
    z-index: 1;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 45px;
    color: var(--azul-profundo);
}
.textohero {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto 40px auto;
    text-align: left;
}
.textohero p {
    font-size: 1rem;
    color: #555;
    margin: 0;
}

/* Botões */
.btn-primary {
    background-color: var(--azul-profundo);
    color: var(--bege-quente);
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    transition: 0.5s;
}
.btn-primary:hover {
    background-color: #172c40;
    color: white;
}
.btn-outline {
    border: 1px solid var(--texto-claro);
    color: var(--texto-claro);
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    background: rgba(223, 217, 201, 0.1);
    transition: 0.5s ease
}

.btn-outline:hover {
    border: 1px solid #fff;
    color: #fff;
    background: rgba(223, 217, 201, 0);
    transition: 0.5s ease
}

/* Sobre Mim (Grid Assimétrico igual ao PNG) */
.sobre-mim-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.fotos-collage {
    height: auto;
}
.foto-principal {
    width: 410px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
	float: right;
}
.foto-secundaria {
    width: 220px;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    margin-top: 25px;
}
.texto-sobre h2 {
    font-size: 3rem;
    margin-bottom: 30px;
}
.texto-sobre p {
    margin-bottom: 20px;
    font-weight: 300;
}
.contato-box {
    margin-top: 0;
    padding-top: 10px;
    /* border-top: 1px solid rgba(235, 232, 225, 0.2); */
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

/* O Processo (Linha do Tempo e Números Grandes) */
#processo h2 { font-size: 3rem; margin-bottom: 60px; }
.processo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}
.linha-conectora {
    position: absolute;
    top: 57px; /* Alinhado ao centro do ícone */
    left: 10%;
    width: 80%;
    height: 1px;
    background-color: var(--azul-profundo);
    opacity: 0.2;
    z-index: 0;
}
.passo {
    position: relative;
    z-index: 1;
    text-align: center;
}
.passo-icone-box {
    width: fit-content;
    background-color: #dfd9c9;
    border-radius: 50%;
    padding: 25px;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.passo-icone {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
}
.passo h3 { font-size: 1.5rem; margin-bottom: 15px; }

/* FAQ (Lado a Lado como no PNG) */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}
.faq-titulo h2 { font-size: 3rem; margin-bottom: 20px; line-height: 1.1; }
.faq-accordion details {
    border-bottom: 1px solid rgba(235, 232, 225, 0.3);
    padding: 20px 0;
}
.faq-accordion summary {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.4rem;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 30px;
}
.faq-accordion summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.5rem;
    transition: transform 0.5s ease;
}
.faq-accordion details[open] summary::after { content: '-'; }
.faq-accordion .faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}
.faq-accordion p { margin-top: 15px; color: #ccc; font-weight: 300; }

/* Rodapé em Colunas */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    padding: 60px 20px;
}
.footer-contato a{color:#fff; font-weight:bold; text-decoration: none;transition: 0.5s ease}
.footer-contato a:hover{color:#B8B19F;transition: 0.5s ease}
.footer-grid h4 { margin-bottom: 18px; }
.footer-links ul { list-style: none; }
.footer-links a { color: inherit; text-decoration: none; }
.footer-logo { height: auto; width: auto; }
.footer-icone-linha {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}
.footer-icone {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    fill: currentColor;
}
.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(235, 232, 225, 0.15);
    font-size: 0.8rem;
}

/* Botão Flutuante WhatsApp */
.whatsapp-flutuante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: 0.5s ease;
}
.whatsapp-flutuante:hover {
    transform: scale(1.1);
    background-color: #1ebc5a;
}
.whatsapp-flutuante svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

/* Responsividade Mobile */
@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .nav-links {
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;
        left: -10px;
        right: -10px;
        background-color: var(--azul-profundo);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
    }
    .nav-links.open { max-height: 400px; }
    .nav-links li { width: 100%; }
    .nav-links a {
        display: block;
        padding: 16px 20px;
        border-bottom: 1px solid rgba(235,232,225,0.1);
    }
    .nav-links a::after { display: none; }
    .sobre-mim-grid, .faq-grid, .footer-grid, .processo-grid {
        grid-template-columns: 1fr;
    }
    .fotos-collage { height: auto; }
    .foto-principal { width: 70%; height: auto; margin: 0 auto; display: block;float:none; }
    .foto-secundaria { width: 70%; }
    .contato-box { flex-wrap: wrap; }
    .linha-conectora { display: none; }
    .hero { padding: 40px 20px; }
    .hero h1 { font-size: 2.5rem; }
    .flor-fundo { width: 260px; height: 260px; }
    .textohero { grid-template-columns: 1fr; gap: 20px; text-align: center; }
    .faq-titulo h2, #processo h2, .texto-sobre h2 { font-size: 2.2rem; text-align: center; }
    .section-padding { padding: 50px 20px; }
    h2 { line-height: 1.4; }
    #processo h2 { margin-bottom: 30px; }
    .passo-icone-box { margin: 0 auto; padding: 15px; }
}

/* ==========================================================================
   Popup de Contato (acionado pelo botão flutuante do WhatsApp)
   ========================================================================== */
.whatsapp-flutuante {
    border: none;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(22, 36, 51, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
.popup-overlay.ativo { opacity: 1; visibility: visible; }

.popup-modal {
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--branco-off);
    border-radius: 10px;
    box-shadow: 0 25px 60px rgba(0,0,0,.35);
    transform: translateY(16px) scale(.98);
    transition: transform .3s ease;
}
.popup-overlay.ativo .popup-modal { transform: translateY(0) scale(1); }

.popup-header {
    background: var(--azul-profundo);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 48px 18px 20px;
    position: relative;
    border-radius: 10px 10px 0 0;
}
.popup-avatar {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.popup-header-texto { display: flex; flex-direction: column; line-height: 1.25; }
.popup-nome { font-family: 'Bodoni Moda', serif; font-size: 1.3rem; }
.popup-cargo { font-size: .7rem; letter-spacing: .12em; color: var(--bege-quente); }
.popup-fechar {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
}

.popup-corpo {
    background-color: #ECE7DD;
    background-image: url('../imgs/zap-bg.jpg');
    background-size: 420px auto;
    background-repeat: repeat;
    padding: 20px;
}
.popup-mensagem {
    background: #fff;
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    margin-bottom: 18px;
    font-size: .92rem;
    color: #333;
}
.popup-mensagem p { margin: 0 0 8px; }
.popup-mensagem p:last-child { margin-bottom: 0; }

.popup-form { display: flex; flex-direction: column; gap: 12px; }
.popup-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(32,62,89,.15);
    border-radius: 6px;
    background: rgba(184,177,159,.18);
    font-family: 'Montserrat', sans-serif;
    font-size: .92rem;
    color: var(--azul-profundo);
}
.popup-input::placeholder { color: #6b7a84; }
.popup-input:focus {
    outline: none;
    border-color: var(--azul-profundo);
    background: #fff;
}

.popup-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: .82rem;
    color: #3a3a3a;
    cursor: pointer;
}
.popup-checkbox input { margin-top: 3px; }

.popup-submit {
    background: var(--azul-profundo);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .3s ease, opacity .3s ease;
}
.popup-submit:hover { background: #172c40; }
.popup-submit:disabled { opacity: .6; cursor: default; }

.popup-feedback {
    font-size: .85rem;
    text-align: center;
    min-height: 1.2em;
    margin: 0;
}
.popup-feedback.sucesso { color: #1e7e34; font-weight: 600; }
.popup-feedback.erro { color: #c0392b; font-weight: 600; }

body.popup-aberto { overflow: hidden; }

@media (max-width: 480px) {
    .popup-corpo { padding: 16px; }
    .popup-header { padding: 16px 44px 16px 16px; }
    .popup-avatar { width: 48px; height: 48px; }
    .popup-nome { font-size: 1.1rem; }
}

.popup-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.popup-alt-contato {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(32,62,89,.12);
    text-align: center;
}
.popup-alt-contato span {
    display: block;
    margin-bottom: 10px;
    font-size: .85rem;
    color: #3a3a3a;
    font-weight: 600;
}
.popup-whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 6px;
    background: #25D366;
    color: #fff;
    font-weight: 600;
    font-size: .88rem;
    text-decoration: none;
    transition: background .3s ease, transform .2s ease;
}
.popup-whatsapp-link:hover {
    background: #1ebc5a;
    transform: translateY(-1px);
}
.popup-whatsapp-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}
