* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

:root {
    color-scheme: light; /* Trava o site no modo claro */
    
    --primary-color: #c9a66b; /* Dourado do logo */
    --secondary-color: #fff6f5; /* Fundo rosado claro do logo */
    --text-color: #333333;
    --text-light: #777777;
    --bg-light: #fdfaf9;
    --bg-dark: #2c2c2c;
    --white: #ffffff;
}

html { scroll-behavior: smooth; }
body { color: var(--text-color); background-color: var(--white); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

header {
    background-color: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a { text-decoration: none; color: var(--text-color); font-weight: 600; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary-color); }

.section-padding { padding: 80px 0; }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 40px; color: var(--primary-color); }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); color: var(--white); }

.logo img {
    max-height: 75px; /* Aumentamos um pouco o tamanho */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease; /* Prepara o efeito de hover */
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img:hover {
    transform: scale(1.05); /* Dá um leve zoom elegante ao passar o mouse */
}

/* =========================================
   BOTÃO PRINCIPAL (AGENDAR AVALIAÇÃO)
========================================= */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.05); /* Dá um leve zoom ao passar o mouse */
    background-color: #b58555; /* Escurece levemente o dourado */
    color: var(--white);
}

/* =========================================
   SEÇÃO SOBRE A CLÍNICA (DRA. BEATRIZ)
========================================= */
.sobre-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.sobre-imagem {
    flex: 1; /* Ocupa 50% do espaço */
    text-align: center;
}

.sobre-imagem img {
    width: 100%;
    max-width: 450px; /* Garante que a foto não fique gigante em telas grandes */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Sombra elegante */
    object-fit: cover;
}

.sobre-texto {
    flex: 1; /* Ocupa os outros 50% */
}

.sobre-texto h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.sobre-texto p {
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--text-color);
    text-align: justify; /* Deixa o texto alinhado nas duas laterais */
    line-height: 1.6;
}

/* Responsividade da Seção Sobre */
@media (max-width: 900px) {
    .sobre-content {
        flex-direction: column; /* Coloca a foto em cima e texto embaixo no celular */
        gap: 30px;
    }
    .sobre-texto {
        text-align: center; /* Centraliza tudo no celular */
    }
    .sobre-texto p {
        text-align: left; /* Mantém o parágrafo fácil de ler no celular */
    }
}

/* =========================================
   INÍCIO (HERO - DUAS COLUNAS)
========================================= */
.hero {
    background-color: var(--secondary-color);
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-image {
    flex: 1; /* Ocupa metade da tela */
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    max-height: 450px; /* Tamanho elegante para não dominar a tela toda */
    mix-blend-mode: multiply; /* Truque mágico: faz o fundo da imagem se fundir perfeitamente com a cor do site */
}

.hero-text {
    flex: 1; /* Ocupa a outra metade */
    text-align: left; /* Alinha o texto à esquerda para combinar com o layout */
}

.hero-text h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-color);
}

/* Responsividade do Início para Celulares */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .hero-text {
        text-align: center;
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box; /* Garante que o padding não quebre a largura da tela */
    }
    
    .hero-text h2 {
        font-size: 1.8rem; /* Reduz o tamanho do título no celular para caber perfeitamente */
    }
    
    .hero-text p {
        font-size: 1rem;
        margin-bottom: 40px; /* Cria um espaço extra embaixo para o WhatsApp não cobrir o botão de agendar */
    }
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.card h3 { color: var(--primary-color); margin-bottom: 10px; }
.card h4 { margin-top: 15px; color: var(--text-color); }
.card ul { margin-left: 20px; margin-top: 10px; }

/* Carrossel */

/* =========================================
   CARROSSEL DE PROCEDIMENTOS
========================================= */
.procedures-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    gap: 15px;
}

.procedures-carousel {
    overflow: hidden;
    width: 100%;
}

.procedures-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease-in-out;
}

.proc-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    /* No computador, exibe 3 cards (33.3% da tela cada, descontando o gap) */
    flex: 0 0 calc(33.333% - 14px); 
    min-width: 0;
}

.proc-card h3 { color: var(--primary-color); margin-bottom: 10px; font-size: 1.3rem;}
.proc-card h4 { margin-top: 15px; color: var(--text-color); font-size: 1rem;}
.proc-card ul { margin-left: 20px; margin-top: 10px; font-size: 0.9rem;}
.proc-card p { font-size: 0.9rem; }

.proc-prev, .proc-next {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: 0.3s;
}

.proc-prev:hover, .proc-next:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Responsividade do carrossel de procedimentos */
@media (max-width: 900px) {
    .proc-card { flex: 0 0 calc(50% - 10px); } /* 2 cards por vez em tablets */
}
@media (max-width: 600px) {
    .proc-card { flex: 0 0 100%; } /* 1 card por vez em celulares */
}

/* =========================================
   CARROSSÉIS ANINHADOS (CASES)
========================================= */
.outer-carousel {
    position: relative;
    max-width: 600px; /* Mais estreito para focar em 1 foto por vez */
    margin: auto;
    background: var(--white);
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.patient-slide h4 { 
    color: var(--primary-color); 
    margin-bottom: 20px; 
    font-size: 1.5rem;
}

.inner-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: #fdfaf9; /* Mudamos de #000 (preto) para o fundo claro do site */
}

.inner-slide img {
    max-width: 100%;
    max-height: 550px; /* Altura máxima da foto. Pode aumentar se quiser */
    width: auto;
    margin: 0 auto; /* Centraliza a imagem no meio do carrossel */
    object-fit: contain; /* Garante que a foto inteira apareça sem ser cortada */
    border-radius: 8px;
    display: block;
}

.foto-legenda {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Botões Internos (Antes/Depois) */
.inner-prev, .inner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    color: var(--primary-color);
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50%;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.inner-prev { left: 15px; }
.inner-next { right: 15px; }
.inner-prev:hover, .inner-next:hover { background: var(--primary-color); color: #fff; }

/* Botões Externos (Pacientes) */
.outer-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}
.outer-prev, .outer-next {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}
.outer-prev:hover, .outer-next:hover {
    background: var(--primary-color);
    color: #fff;
}

/* =========================================
   DÚVIDAS FREQUENTES (FAQ ACCORDION)
========================================= */
.faq-container {
    max-width: 800px; /* Mantém o texto centralizado e fácil de ler */
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #b58555; /* Escurece levemente o dourado no hover */
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.3s ease;
}

/* Estado inicial da resposta (Fechada e invisível) */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    visibility: hidden;
}

.faq-answer p {
    padding-bottom: 20px;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1rem;
}

/* Quando a pergunta está ativa (Aberta) */
.faq-item.active .faq-answer {
    max-height: 250px; /* Espaço suficiente para a maior resposta */
    opacity: 1;
    visibility: visible;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg); /* Gira o "+" para formar um "x" */
}

/* =========================================
   SEÇÃO DE CONTATO
========================================= */
.contato-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contato-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #e0e0e0;
}

.contato-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.contato-info a:hover {
    color: var(--white);
}

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    z-index: 9999; /* Garante que o botão fique na frente de todas as camadas */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); /* Sombra para dar destaque */
    transition: transform 0.3s; /* Efeito suave */
}

.whatsapp-btn:hover {
    transform: scale(1.05); /* Dá uma leve aumentada quando passa o mouse */
}

/* Bloqueia rolagem horizontal (lateral) no site inteiro */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Ajusta o cabeçalho e o menu no celular */
@media (max-width: 768px) {
    header .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    header nav ul {
        display: flex;
        flex-wrap: wrap; /* Permite que os links desçam para a linha de baixo se faltar espaço */
        justify-content: center;
        gap: 15px;
        padding: 0;
    }
}