/* ==========================================================================
   Giuliana Postal - Psicanalista
   Folha de Estilos Otimizada, Leve e Responsiva (Fidelidade Visual Exata)
   ========================================================================== */

:root {
    --primary: #8f5d46;
    --primary-light: #a5806e;
    --menu-gold: #ac7e23;
    --menu-hover: #d8c490;
    --sand-gold: #dacab0;
    --sand-soft: #f4eee3;
    --bg-light: #f5f6f6;
    --bg-white: #ffffff;
    --text-dark: #1b1919;
    --text-body: #565656;
    --text-muted: #666666;
    --border-gold: #c59d63;
    --accent-gold: #e0ae3e;
    --whatsapp-green: #25d366;
    --whatsapp-hover: #20ba59;
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Open Sans', 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --container-max: 1140px;
    --transition: all 0.25s ease-in-out;
}

/* Reset Básico */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background-color: var(--bg-white);
    line-height: 1.8;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ==========================================================================
   Header / Barra de Navegação (Fiel ao Original)
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    padding: 10px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: inline-block;
    line-height: 0;
}

.header-logo img {
    width: 235px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: var(--transition);
}

.header-logo img {
        width: 190px;
    }

    .nav-desktop {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-family: 'Roboto', var(--font-heading);
    font-size: 17px;
    font-weight: 500;
    color: var(--menu-gold);
    padding: 6px 12px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--menu-hover);
}

/* Menu Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    background: transparent;
    cursor: pointer;
    z-index: 1010;
}

.mobile-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--menu-gold);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.open {
    display: block;
    opacity: 1;
}

.mobile-nav-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background-color: #ffffff;
    z-index: 1002;
    padding: 80px 24px 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-menu.open {
    right: 0;
}

.mobile-nav-menu .nav-link {
    font-size: 1.1rem;
    padding: 10px 0;
    border-bottom: 1px solid #f0e8dc;
}

/* ==========================================================================
   Hero / Citação Sigmund Freud (Exatamente idêntico ao Elementor)
   ========================================================================== */
.hero-freud {
    position: relative;
    /* Fundo original: gradiente base + overlay escuro a 50% */
    background: 
        linear-gradient(180deg, rgba(0, 0, 0, 0.52) 20%, rgba(27, 25, 25, 0.52) 100%),
        linear-gradient(180deg, #ffcd7bd6 0%, #beb37e 100%);
    padding: 85px 20px 75px;
    text-align: center;
}

.hero-freud .quote-text {
    font-family: "Montserrat", Sans-serif;
    font-size: 39px;
    font-weight: 900;
    color: #FAFAFA;
    line-height: 1.35;
    max-width: 980px;
    margin: 0 auto 18px;
    letter-spacing: -0.5px;
}

.hero-freud .quote-author {
    font-family: "Montserrat", Sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 auto;
}

/* ==========================================================================
   Seção: Sobre a Profissional
   ========================================================================== */
.section-sobre {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.sobre-grid {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 60px;
    align-items: center;
}

.sobre-image-wrap img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    object-fit: cover;
}

.section-overline {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    color: var(--sand-gold);
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--sand-gold);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 24px;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--sand-gold);
    font-weight: 700;
    margin: 32px 0 16px;
}

.text-content p {
    font-family: var(--font-body);
    margin-bottom: 18px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.8;
    color: var(--text-body);
}

/* ==========================================================================
   Seção: Abordagem Terapêutica
   ========================================================================== */
.section-abordagem {
    padding: 80px 0;
    background-color: #ffffff;
}

.abordagem-grid {
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 60px;
    align-items: center;
}

.abordagem-image-wrap img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   Citação Donald Winnicott (Banner Fiel ao Original)
   ========================================================================== */
.quote-winnicott {
    background-color: var(--sand-gold);
    padding: 55px 20px 50px;
    text-align: center;
}

.quote-winnicott .quote-text {
    font-family: "Montserrat", Sans-serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.45;
    color: #FAFAFA;
    max-width: 950px;
    margin: 0 auto 16px;
}

.quote-winnicott .quote-author {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: #FFFFFF;
}

/* ==========================================================================
   Seção: Canais de Atendimento (Fiel ao Original)
   ========================================================================== */
.section-canais {
    padding: 85px 0 90px;
    background-color: #f5f6f6;
}

.canais-grid {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 50px;
    align-items: flex-start;
}

.canais-image-wrap {
    width: 100%;
}

.canais-image-wrap img {
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    object-fit: cover;
    display: block;
}

.canais-content {
    padding-top: 10px;
}

.canais-content .section-title {
    font-family: "Montserrat", Sans-serif;
    font-weight: 700;
    font-size: 30px;
    color: #DACAB0;
    margin: 0 0 30px 0;
    line-height: 1.3;
}

/* Acordeão Exato ElementsKit */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.accordion-item {
    background-color: #ffffff;
    border: 1px solid #ede8e1;
    border-left: 3px solid #e0ae3e;
    border-radius: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: var(--transition);
}

.accordion-item:nth-child(2) {
    border-left-color: #d6c490;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    font-family: "Montserrat", Sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #d5c696;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}

.accordion-header:hover {
    color: #c59d63;
}

.accordion-item.active .accordion-header {
    color: #c59d63;
    border-bottom: 1px solid #f4efe8;
}

.accordion-header .icon-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    line-height: 0;
}

.accordion-header .icon-toggle svg {
    width: 14px;
    height: 14px;
    stroke: #666666;
}

.accordion-item.active .icon-toggle {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 20px;
    background-color: #ffffff;
    color: #656565;
    font-family: "Open Sans", Sans-serif;
    font-size: 15px;
    line-height: 1.7;
}

.accordion-item.active .accordion-body {
    max-height: 200px;
    padding: 18px 20px;
}

.accordion-body p {
    color: #656565;
    margin: 0;
    font-family: "Open Sans", Sans-serif;
    font-size: 15px;
}

.accordion-body a {
    color: #ac7e23;
    font-weight: 700;
    text-decoration: underline;
    transition: var(--transition);
}

.accordion-body a:hover {
    color: #8f5d46;
}

/* ==========================================================================
   Seção: Por que a Psicanálise
   ========================================================================== */
.section-psicanalise {
    padding: 80px 0;
    background-color: #ffffff;
}

.psicanalise-grid {
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 60px;
    align-items: center;
}

.psicanalise-image-wrap img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.question-highlight {
    margin-top: 24px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

/* ==========================================================================
   Rodapé
   ========================================================================== */
.site-footer {
    background-color: #8F5D46;
    color: #ffffff;
    padding: 0;
    margin-top: 0;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 60px;
    padding: 70px 0;
}

.footer-logo {
    flex-shrink: 0;
}

.footer-logo img {
    width: 260px;
    max-width: 100%;
    height: auto;
    display: block;
}

.footer-nav {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 24px 0;
    letter-spacing: -0.2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links li {
    margin: 0;
    padding: 0;
}

.footer-links a {
    font-family: var(--font-body);
    font-size: 15px;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    opacity: 0.85;
    transform: translateX(4px);
}

.footer-bottom {
    background-color: #A5806E;
    padding: 16px 0;
    font-size: 14px;
    color: #ffffff;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copyright {
    color: #ffffff;
    font-size: 14px;
}

.footer-credit {
    color: #ffffff;
    font-size: 14px;
}

.footer-credit a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-credit a:hover {
    opacity: 0.85;
    text-decoration: underline;
}

/* ==========================================================================
   Botão Flutuante de WhatsApp
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 58px;
    height: 58px;
    background-color: var(--whatsapp-green);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.whatsapp-float:hover {
    background-color: var(--whatsapp-hover);
    transform: scale(1.08) translateY(-3px);
}

/* ==========================================================================
   Responsividade
   ========================================================================== */
@media (max-width: 992px) {
    .sobre-grid,
    .abordagem-grid,
    .canais-grid,
    .psicanalise-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .sobre-image-wrap,
    .abordagem-image-wrap,
    .canais-image-wrap,
    .psicanalise-image-wrap {
        max-width: 480px;
        margin: 0 auto;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
        padding: 50px 0 40px;
    }

    .footer-logo img {
        width: 260px;
        margin: 0 auto;
    }

    .footer-links {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .header-logo img {
        width: 190px;
    }

    .nav-desktop {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-freud {
        padding: 50px 16px 45px;
    }

    .hero-freud .quote-text {
        font-size: 22px;
    }

    .hero-freud .quote-author {
        font-size: 15px;
    }

    .section-title {
        font-size: 24px;
    }

    .quote-winnicott .quote-text {
        font-size: 18px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }
}
