/* ==========================================================================
   PALETA ORGÂNICA & ACOLHEDORA
   ========================================================================== */
:root {
    --bg-main: #F9F6F0;
    --bg-card: #FFFFFF;
    --bg-warm: #EFEAE1;
    --bg-sage: #E6ECE8;
    
    --primary: #7C6A56;
    --primary-hover: #635342;
    --accent-olive: #5F6F65;
    
    --text-dark: #2C2623;
    --text-body: #5C5550;
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-hand: 'Mrs Saint Delafield', cursive;
    
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-pill: 999px;
    
    --shadow: 0 12px 32px -8px rgba(44, 38, 35, 0.06);
    --shadow-hover: 0 20px 40px -10px rgba(44, 38, 35, 0.12);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-body);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

h1, h2, h3 {
    font-family: var(--font-serif);
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.2;
}

/* ==========================================================================
   SISTEMA DE ANIMAÇÕES (SCROLL REVEAL & KEYFRAMES)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* Animação de Flutuação Orgânica (Hero) */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Animação do Ícone de Folha */
@keyframes sway {
    0%, 100% { transform: rotate(-4deg) scale(1); }
    50% { transform: rotate(6deg) scale(1.06); }
}

/* Pulso Suave no Botão do WhatsApp */
@keyframes pulseWhatsApp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
    70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Fade-in para Respostas do FAQ */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Respeita quem tem sensibilidade a movimento no sistema */
@media (prefers-reduced-motion: reduce) {
    .reveal { transition: none; opacity: 1; transform: none; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ==========================================================================
   COMPONENTES (Botões com Efeito Shimmer e Etiquetas)
   ========================================================================== */
.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 600;
    color: var(--accent-olive);
    margin-bottom: 0.75rem;
}

.btn-primary {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: #FFFFFF;
    padding: 1rem 2.1rem;
    border-radius: var(--radius-pill);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.3s var(--ease-out), background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 20px rgba(124, 106, 86, 0.22);
}

/* Brilho suave que atravessa o botão no hover */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
    transform: skewX(-20deg);
    transition: left 0.65s ease;
}

.btn-primary:hover::after {
    left: 140%;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(124, 106, 86, 0.32);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* ==========================================================================
   MENU DE NAVEGAÇÃO
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(249, 246, 240, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(124, 106, 86, 0.1);
    padding: 0.9rem 0;
    transition: background 0.3s ease;
}

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

.logo {
    font-family: var(--font-hand);
    font-size: 2.6rem;
    font-weight: 400;
    color: var(--text-dark);
    text-decoration: none;
    line-height: 1;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.8;
}

.menu-toggle { display: none; }

.menu-btn {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 6px;
}

.menu-btn .bar {
    width: 24px;
    height: 1.8px;
    background-color: var(--text-dark);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animação do ícone Hamburguer para "X" ao abrir */
.menu-toggle:checked + .menu-btn .bar:nth-child(1) {
    transform: translateY(3.9px) rotate(45deg);
}
.menu-toggle:checked + .menu-btn .bar:nth-child(2) {
    transform: translateY(-3.9px) rotate(-45deg);
}

.nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s var(--ease-out), opacity 0.3s ease, padding 0.3s ease;
    border-bottom: 1px solid transparent;
}

.menu-toggle:checked ~ .nav-links {
    max-height: 360px;
    opacity: 1;
    padding: 2rem 1.25rem;
    border-bottom-color: rgba(124, 106, 86, 0.15);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.nav-item {
    position: relative;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

/* Sublinhado animado que cresce ao passar o rato */
.nav-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 1.5px;
    background-color: var(--primary);
    transition: width 0.3s var(--ease-out);
}

.nav-item:hover {
    color: var(--primary);
}

.nav-item:hover::after {
    width: 100%;
}

.nav-cta {
    background-color: var(--primary);
    color: #FFFFFF !important;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-pill);
    font-size: 0.9rem !important;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.nav-cta:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* ==========================================================================
   1. HERO SECTION (Com Flutuação e Aura Orgânica)
   ========================================================================== */
.hero {
    padding: 3rem 0 4.5rem;
}

.hero-grid {
    display: flex;
    flex-direction: column-reverse;
    gap: 2.5rem;
    align-items: center;
}

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

.hero-text h1 {
    font-size: 2.35rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.hero-text h1 em {
    font-style: italic;
    font-weight: 400;
    color: var(--primary);
    display: block;
    margin-top: 0.35rem;
}

.hero-text p {
    font-size: 1.05rem;
    color: var(--text-body);
    margin-bottom: 2rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.hero-photo-wrapper {
    position: relative;
    display: inline-block;
    animation: floatSlow 6s ease-in-out infinite;
}

/* Aura decorativa suave atrás da foto */
.hero-aura {
    position: absolute;
    inset: -12px -12px 12px 12px;
    background: linear-gradient(135deg, var(--bg-sage), var(--bg-warm));
    border-radius: 140px 140px 28px 28px;
    z-index: 0;
    opacity: 0.85;
    transition: transform 0.5s var(--ease-out);
}

.hero-photo-wrapper:hover .hero-aura {
    transform: rotate(3deg) scale(1.02);
}

.hero-photo-frame {
    position: relative;
    z-index: 1;
    width: 260px;
    height: 310px;
    border-radius: 140px 140px 24px 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 6px solid var(--bg-card);
}

.hero-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

.hero-photo-wrapper:hover .hero-photo-frame img {
    transform: scale(1.05);
}

/* ==========================================================================
   2. SOBRE MIM (Mosaico com Zoom Suave)
   ========================================================================== */
.about {
    padding: 5rem 0;
    background-color: var(--bg-card);
}

.about-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.bento-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 140px 160px;
    gap: 14px;
    width: 100%;
    max-width: 440px;
}

.bento-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}

.bento-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.7s var(--ease-out);
}

.bento-item:hover img {
    transform: scale(1.07);
}

.bento-tall {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
    height: 100%;
}

.bento-symbol {
    background-color: var(--bg-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 1px solid var(--bg-warm);
}

.symbol-icon {
    font-size: 2rem;
    margin-bottom: 0.4rem;
    display: inline-block;
    animation: sway 4.5s ease-in-out infinite;
}

.symbol-label {
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--primary);
    font-weight: 600;
}

.bento-quote {
    background-color: var(--bg-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    text-align: center;
}

.bento-quote p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--text-dark);
    line-height: 1.35;
}

.bento-photo-sm {
    height: 100%;
}

.about-content h2 {
    font-size: 2.3rem;
    margin-bottom: 0.25rem;
}

.about-content .crp {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.15rem;
    font-size: 1rem;
}

/* ==========================================================================
   3. IDENTIFICAÇÃO (Cards Interativos)
   ========================================================================== */
.situations {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-size: 2.1rem;
}

.section-header em {
    font-style: italic;
    color: var(--primary);
    font-weight: 400;
}

.situations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.sit-card {
    background-color: var(--bg-card);
    padding: 2rem 1.75rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    border: 1px solid rgba(124, 106, 86, 0.08);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.35s ease;
}

.sit-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(124, 106, 86, 0.28);
}

.sit-num {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--primary);
    opacity: 0.7;
    margin-bottom: 0.4rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sit-card:hover .sit-num {
    transform: translateX(4px);
    opacity: 1;
}

.sit-card h3 {
    font-size: 1.45rem;
    margin-bottom: 0.6rem;
}

.sit-card p {
    font-size: 0.95rem;
}

.situations-closing {
    background-color: var(--bg-sage);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    color: #35423A;
    font-size: 1.05rem;
}

/* ==========================================================================
   4. O QUE É A PSICANÁLISE
   ========================================================================== */
.psychoanalysis {
    padding: 5rem 0;
    background-color: var(--bg-card);
}

.psycho-box {
    max-width: 840px;
    margin: 0 auto;
    background-color: var(--bg-main);
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--bg-warm);
}

.psycho-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.psycho-header h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.psycho-lead {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--text-dark);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.45;
}

.psycho-pillars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pillar {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.pillar:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-hover);
}

.pillar-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary);
    margin-top: 0.55rem;
    flex-shrink: 0;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.pillar:hover .pillar-dot {
    transform: scale(1.4);
    background-color: var(--accent-olive);
}

.pillar h3 {
    font-size: 1.3rem;
    margin-bottom: 0.35rem;
}

.pillar p {
    font-size: 0.95rem;
}

/* ==========================================================================
   5. PERGUNTAS FREQUENTES (FAQ com Rotação e Fade)
   ========================================================================== */
.faq {
    padding: 5rem 0;
}

.faq-wrapper {
    max-width: 760px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

details {
    background-color: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(124, 106, 86, 0.12);
    box-shadow: var(--shadow);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

details:hover {
    border-color: rgba(124, 106, 86, 0.3);
}

details[open] {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

summary {
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    transition: color 0.2s ease;
}

summary:hover {
    color: var(--primary);
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary);
    margin-left: 1rem;
    transition: transform 0.35s var(--ease-out);
}

details[open] summary::after {
    transform: rotate(45deg);
}

details[open] .faq-answer {
    animation: fadeDown 0.35s var(--ease-out);
}

.faq-answer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bg-warm);
    font-size: 0.95rem;
}

/* ==========================================================================
   6. CTA FINAL & RODAPÉ
   ========================================================================== */
.cta-final {
    padding: 2rem 0 5rem;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary), #665644);
    color: #FFFFFF;
    text-align: center;
    padding: 3.5rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(124, 106, 86, 0.25);
}

.cta-card h2 {
    color: #FFFFFF;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.btn-light {
    background-color: var(--bg-main);
    color: var(--text-dark);
}

.btn-light:hover {
    background-color: #FFFFFF;
    color: var(--text-dark);
}

.footer {
    background-color: #241F1C;
    color: #C7C0B8;
    padding: 3rem 0;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.footer .logo {
    color: #FFFFFF;
    display: block;
    margin-bottom: 0.35rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.footer-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 0.8;
}

.copy {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 0.5rem;
}

/* Botão WhatsApp Flutuante com Pulso */
.whatsapp-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25D366;
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: pulseWhatsApp 2.5s infinite;
    transition: transform 0.3s var(--ease-out);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ==========================================================================
   MEDIA QUERIES (Desktop & Tablets - 768px+)
   ========================================================================== */
@media (min-width: 768px) {
    .menu-btn { display: none; }

    .nav-links {
        position: static;
        display: flex;
        flex-direction: row;
        padding: 0;
        max-height: none;
        opacity: 1;
        overflow: visible;
        border: none;
        box-shadow: none;
        background: transparent;
        gap: 2rem;
    }

    .hero {
        padding: 5rem 0 6rem;
    }

    .hero-grid {
        flex-direction: row;
        justify-content: space-between;
        gap: 4rem;
    }

    .hero-text {
        text-align: left;
        flex: 1;
    }

    .hero-text h1 {
        font-size: 3.1rem;
    }

    .hero-text p {
        margin-left: 0;
    }

    .hero-photo-frame {
        width: 360px;
        height: 430px;
    }

    .about-grid {
        flex-direction: row;
        justify-content: space-between;
        gap: 4.5rem;
    }

    .bento-gallery {
        grid-template-rows: 190px 190px;
        max-width: 460px;
        flex-shrink: 0;
    }

    .situations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .sit-card-wide {
        grid-column: 1 / -1;
    }

    .psycho-box {
        padding: 4rem;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        align-items: center;
    }

    .footer-links {
        text-align: right;
        align-items: flex-end;
    }
}
