/* --- VARIAVEIS E RESET GERAL --- */
:root {
    --primary-color: #0d1b2a;
    --secondary-color: #1b263b;
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
    --text-light: #f0f2f5;
    --text-dark: #333;
    --text-gray: #e0e1dd;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Lato', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background-color: #f7f9fc;
    color: var(--text-dark);
}

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

section {
    padding: 80px 0;
}

h1, h2, h3 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--primary-color);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
    font-size: 1.1rem;
    color: #555;
}

/* --- BOTÃO DE AÇÃO (CTA) --- */
.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.cta-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
}

/* --- HEADER --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: transparent;
    transition: background-color 0.3s ease, padding 0.3s ease;
}
.main-header.scrolled {
    background-color: rgba(13, 27, 42, 0.9);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
}
.logo strong {
    font-weight: 700;
}

/* --- SEÇÃO HERO --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0;
}
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 27, 42, 0.7);
    z-index: -1;
}
.hero-content h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 20px;
}
.hero-content p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 40px auto;
}
.cta-support-text {
    display: block;
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- SEÇÕES DE CONTEÚDO (GRID 2 COLUNAS) --- */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.content-grid .image-column img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.content-grid .text-column h2 {
    text-align: left;
    margin-bottom: 20px;
}
.content-grid .text-column p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 15px;
}
.about-doctor blockquote {
    font-style: italic;
    font-size: 1.2rem;
    margin: 20px 0;
    padding-left: 20px;
    border-left: 4px solid var(--accent-color);
    color: #444;
}
.doctor-specialties {
    font-weight: bold;
    color: var(--accent-color);
    font-family: var(--font-primary);
}

/* --- SEÇÃO DE RESULTADOS --- */
.results {
    background-color: white;
}
.results-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.result-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.result-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}
.result-card img {
    width: 100%;
    height: auto;
}
.result-card h3 {
    font-size: 1.5rem;
    padding: 20px 25px 10px 25px;
}
.result-card p {
    padding: 0 25px 25px 25px;
    line-height: 1.6;
}

.results-gallery .result-card img {
    width: 100%; 
    height: 500px; 
    object-fit: cover; 
    object-position: top center;
    border-radius: 8px 8px 0 0; 
    display: block; 
}

/* --- SEÇÃO COMO FUNCIONA --- */
.how-it-works {
    text-align: center;
}
.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}
.step {
    padding: 30px;
}
.step-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}
.step h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* --- SEÇÃO FAQ --- */
.faq {
    background-color: white;
}
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid #ddd;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 25px 0;
    text-align: left;
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question i {
    transition: transform 0.3s ease;
}
.faq-question.active i {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}
.faq-answer p {
    padding: 0 0 25px 0;
    line-height: 1.7;
}

/* --- RODAPÉ --- */
.main-footer {
    background-color: var(--primary-color);
    color: var(--text-gray);
    padding: 60px 0 20px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-column h4 {
    color: white;
    font-family: var(--font-primary);
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.footer-column ul {
    list-style: none;
}
.footer-column li {
    margin-bottom: 10px;
}
.footer-column a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-column a:hover {
    color: white;
}
.social-links a {
    color: white;
    font-size: 1.8rem;
    margin-right: 15px;
    transition: transform 0.3s ease;
}
.social-links a:hover {
    transform: scale(1.1);
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--secondary-color);
    font-size: 0.9rem;
}


/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
    h2 { font-size: 2.2rem; }
    .content-grid { grid-template-columns: 1fr; }
    .content-grid .image-column { order: 1; }
    .content-grid .text-column { order: 2; text-align: center; }
    .content-grid .text-column h2 { text-align: center; }
    .about-doctor .image-column { order: -1; } /* Mantém imagem do doutor em cima no mobile */
}

@media (max-width: 768px) {
    section { padding: 60px 0; }
    h1 { font-size: 3rem; }
    .results-gallery { grid-template-columns: 1fr; }
    .steps-container { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-column ul { padding-left: 0; }
    .social-links { margin-bottom: 20px; }
}

@media (max-width: 576px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    .steps-container { grid-template-columns: 1fr; }
    .cta-button { width: 100%; text-align: center; }
}

/* --- BARRA DE ESTATÍSTICAS --- */
.stats-bar {
    padding: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.stat-card {
    padding: 40px 20px;
    text-align: center;
    color: white;
    transition: transform 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-primary);
    display: block;
    line-height: 1.2;
}

.stat-description {
    font-size: 1rem;
    color: #f0f2f5;
    margin-top: 5px;
}

.stat-card-blue {
    background-color: #1b263b; /* Cor secundária */
}

.stat-card-dark {
    background-color: #0d1b2a; /* Cor primária */
}

.stat-card-accent {
    background-color: #2563eb; /* Cor de destaque */
}

/* --- RESPONSIVIDADE ADICIONAL --- */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-bubble {
        right: 60px;
    }
    .stats-bar {
        padding: 20px 0;
    }
    .stat-number {
        font-size: 2rem;
    }
}
/* --- ESTILOS FINAIS DO CARROSSEL DE DIFERENCIAIS --- */

/* Novo contêiner mais largo para o carrossel */
.container-wide {
    max-width: 1400px; /* Mais largo que o container padrão de 1100px */
    margin: 0 auto;
    padding: 0 20px;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    /* Aumenta o padding para dar mais distância entre os botões e os cards */
    padding: 0 90px;
}

.carousel-track {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    
    /* Esconde o scroll-bar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar {
    display: none;
}

.differentiator-card {
    flex-shrink: 0;
    width: 300px; /* Sua largura fixa para desktop */
    scroll-snap-align: start;
    
    background-color: white;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}
.differentiator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.diff-icon {
    font-size: 2.8rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}
.differentiator-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    word-wrap: break-word;
}
.differentiator-card p {
    color: #555;
    line-height: 1.7;
    word-wrap: break-word;
}

/* Botões de navegação */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 15px 18px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    z-index: 2;
    transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.carousel-control:hover {
    background-color: var(--accent-hover);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 30px; /* Ajusta a posição para o novo padding */
}

.carousel-control.next {
    right: 30px; /* Ajusta a posição para o novo padding */
}

.carousel-control:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- RESPONSIVIDADE CORRIGIDA --- */
@media (max-width: 1200px) {
    .differentiator-card {
        width: calc((100% - 50px) / 3);
    }
}
@media (max-width: 992px) {
    .carousel-wrapper {
        padding: 0 70px; /* Reduz um pouco o padding em telas menores */
    }
    .carousel-control.prev {
        left: 20px;
    }
    .carousel-control.next {
        right: 20px;
    }
    .differentiator-card {
        width: calc((100% - 25px) / 2);
    }
}
@media (max-width: 768px) {
    .carousel-wrapper {
        padding: 0 20px;
    }
    .carousel-control {
        display: none;
    }
    .carousel-track {
        padding-bottom: 0;
    }
    .differentiator-card {
        width: 100%;
    }
}
/* --- WHATSAPP FLUTUANTE --- */
.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
}
.whatsapp-icon {
    font-size: 30px;
}
.whatsapp-bubble {
    position: absolute;
    right: 70px;
    bottom: 5px;
    background-color: white;
    color: var(--text-dark);
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
    transform-origin: bottom right;
    transition: all 0.3s ease;
}
.whatsapp-float:hover .whatsapp-bubble {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}
.whatsapp-bubble-text {
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: normal;
    margin: 0;
}
.whatsapp-bubble-arrow {
    position: absolute;
    bottom: -10px;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}
/* --- CORREÇÕES GERAIS E MOBILE --- */

/* 1. Resolve o problema de overflow horizontal (arrastar para o lado) */
html, body {
    overflow-x: hidden;
}

/* 2. Remove o espaçamento extra entre o hero e a barra de status no mobile */
.hero {
    /* Garante que o hero ocupe a tela toda sem margens inferiores */
    margin-bottom: 0;
}
.stats-bar {
    /* Remove qualquer padding que possa estar causando o espaço */
    padding-top: 0;
    padding-bottom: 0;
}
/* Aplica o padding apenas às colunas internas, não à barra inteira */
.stats-grid .stat-card {
    padding-top: 40px;
    padding-bottom: 40px;
}


/* --- 3. ESTILOS PARA O NOVO WIDGET DE CHAT --- */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 350px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    font-family: var(--font-secondary);
    z-index: 1001; /* Garante que fique acima do botão de WhatsApp */
    transform: scale(1);
    transform-origin: bottom right;
    transition: transform 0.3s ease-in-out;
}

.chat-header {
    background-color: #25D366;
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-powered-by {
    font-size: 0.9rem;
}

.chat-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 5px;
}

.chat-body {
    padding: 20px;
    display: flex;          /* ATIVA O FLEXBOX */
    flex-direction: column; /* Organiza os itens em uma coluna (um abaixo do outro) */
    gap: 15px;              /* Espaçamento moderno entre a mensagem e o botão */
}

.chat-message {
     background-color: #E9E9EB; /* Um cinza um pouco mais claro e suave */
    color: #000;
    padding: 12px 18px;
    border-radius: 20px 20px 20px 5px; /* Cantos mais arredondados, com o inferior esquerdo quase reto */
    margin-bottom: 0; /* O 'gap' no .chat-body já cuida do espaçamento */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); /* Sombra MUITO mais sutil e profissional */
    align-self: flex-start; /* ALINHA O ITEM À ESQUERDA */
    max-width: 85%; /* Impede que a mensagem ocupe a largura toda */
    line-height: 1.5;
}

.chat-message p {
    margin: 0;
    line-height: 1.4;
    color: var(--text-dark);
}

.chat-cta-button {
    background-color: #25D366;
    color: white;
    text-align: center;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-family: var(--font-primary);
    transition: background-color 0.3s ease;
    display: inline-block; /* Permite que o botão se ajuste ao conteúdo */
    width: auto;           /* Largura automática */
    align-self: flex-end;  /* ALINHA O ITEM À DIREITA */
    padding: 12px 25px;    /* Ajuste no padding para um visual mais elegante */
    font-size: 1rem;       /* Fonte um pouco menor para parecer mais com uma resposta */
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3); /* Sombra sutil para destacar o botão */
}

.chat-cta-button:hover {
    background-color: #128C7E;
    transform: scale(1.03);
}

.chat-cta-button i {
    margin-left: 8px;
}

/* Responsividade do Chat Widget */
@media (max-width: 480px) {
    .chat-widget {
        width: calc(100% - 40px);
        bottom: 20px;
        right: 20px;
    }
}
@media (max-width: 768px) {

    /* 1. Escondemos completamente o widget do chat.
       O '!important' garante que esta regra tenha prioridade sobre outras. */
    .chat-widget {
        display: none !important;
    }

    .whatsapp-float {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .results-gallery .result-card img {
        height: 350px; /* Altura menor para celulares */
    }
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr; /* Um embaixo do outro no celular */
        flex-direction: column !important; /* Força coluna no celular caso use flex */
    }
}

.final-cta {
    background-color: white;
}