/* ==========================================
   1. VARIÁVEIS, RESET GLOBAL E COMPORTAMENTO
========================================== */
:root {
    --cor-fundo: #FAFAFA;
    --cor-texto: #333333;
    --cor-primaria: #007BFF; 
    --cor-secundaria: #E3F2FD; 
    --cor-whatsapp: #25D366; 
    --cor-rodape: #0F294D; 
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: #111;
}

a { text-decoration: none; }

/* ==========================================
   2. CABEÇALHO (HEADER) E LOGOTIPO
========================================== */
.site-header {
    background-color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.colored-header {
    background-color: var(--cor-rodape);
    border-bottom: 3px solid var(--cor-primaria);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Efeito de Hover no Logo Inteiro */
.logo .logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #FFFFFF !important;
    transition: opacity 0.3s ease;
}

.logo .logo-link:hover {
    opacity: 0.8;
}

.logo-img-branca {
    height: 95px; 
    width: auto;
    display: block;
    filter: brightness(0) invert(1); 
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-top-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    color: #FFFFFF;
    line-height: 1;
}

.logo-bottom-text {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1.15rem;
    color: #E2E8F0;
    margin-top: 2px;
}

/* Menu de Navegação */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: #CFD8DC;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}

.main-nav a:hover { 
    color: #FFFFFF; 
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #FFFFFF;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Botão Header */
.btn-whatsapp {
    background-color: var(--cor-whatsapp);
    color: #FFF;
    padding: 10px 24px;
    border-radius: 5px;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    transition: background 0.3s;
    display: inline-block;
}

.btn-whatsapp:hover { background-color: #1EBE57; }

/* Responsividade do Cabeçalho */
/* ==========================================
   2.1 MENU HAMBÚRGUER E RESPONSIVIDADE
========================================== */

/* Esconde o checkbox e o ícone do hambúrguer no Desktop */
.menu-toggle-checkbox,
.menu-toggle-label {
    display: none;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Regras para Tablets e Celulares (Abaixo de 992px) */
@media (max-width: 992px) {
    .header-container {
        flex-wrap: wrap; /* Permite que os itens "quebrem" a linha se faltar espaço */
    }

    /* Estilizando o ícone do Hambúrguer */
    .menu-toggle-label {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        z-index: 1001; /* Fica acima do menu aberto */
    }

    .menu-toggle-label span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #FFFFFF;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* Escondendo o Menu inteiro (Nav + Botão) inicialmente */
    .nav-wrapper {
        display: none; /* Esconde o bloco */
        width: 100%; /* Ocupa 100% da tela quando aparecer */
        flex-direction: column;
        background-color: var(--cor-rodape);
        padding: 20px 0;
        border-top: 1px solid rgba(255,255,255,0.1);
        margin-top: 15px;
    }

    /* Quando o checkbox invisível for 'checado' (clicado), mostra o menu */
    .menu-toggle-checkbox:checked ~ .nav-wrapper {
        display: flex;
    }

    /* Ajustes internos do Menu Aberto no Celular */
    .main-nav {
        width: 100%;
        margin-bottom: 20px;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .main-nav a {
        font-size: 1.2rem;
        display: block;
        padding: 10px;
    }

    /* Ocultar a "linhazinha branca" de hover no mobile, pois não faz sentido em touch */
    .main-nav a::after {
        display: none;
    }

    .btn-whatsapp {
        width: 90%;
        text-align: center;
    }

    /* Efeito de X no Hambúrguer quando aberto */
    .menu-toggle-checkbox:checked ~ .menu-toggle-label span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle-checkbox:checked ~ .menu-toggle-label span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle-checkbox:checked ~ .menu-toggle-label span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* Ajustes finais para celulares muito pequenos (Abaixo de 480px) */
@media (max-width: 480px) {
    .logo-img-branca { height: 55px; } /* Reduz um pouco o logo para caber o hambúrguer */
    .logo-top-text { font-size: 1.6rem; }
    .logo-bottom-text { font-size: 0.95rem; }
}

/* ==========================================
   3. ÁREA DE CONTEÚDO (MAIN)
========================================== */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 60vh;
}

/* ==========================================
   4. HERO SECTION (PRIMEIRA DOBRA)
========================================== */
.hero-section {
    position: relative;
    overflow: hidden; /* ADICIONE ESTA LINHA AQUI */
    background-size: cover;
    background-position: top;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    margin-bottom: 50px;
}
/* ADICIONE ESTE BLOCO NOVO AQUI */
.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content h1 {
    color: #FFFFFF;
    font-size: 2.8rem;
    max-width: 700px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-content p {
    color: #E3F2FD;
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 30px;
}

.btn-hero {
    background-color: var(--cor-whatsapp);
    color: #FFF;
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-block;
    transition: background 0.3s, transform 0.2s;
}

.btn-hero:hover {
    background-color: #1EBE57;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2rem; }
    .hero-overlay { background: rgba(0,0,0,0.6); } 
}

/* ==========================================
   5. TIPOGRAFIA DA COPY (CONTEÚDO) E DESTAQUE
========================================== */
.conteudo-tratamento {
    padding: 10px 0 40px 0;
}

.conteudo-tratamento h2 {
    color: var(--cor-primaria);
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--cor-secundaria);
    padding-bottom: 10px;
}

.conteudo-tratamento h3 {
    color: #222;
    font-size: 1.4rem;
    margin-top: 35px;
    margin-bottom: 15px;
}

.conteudo-tratamento p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.conteudo-tratamento ul {
    margin-left: 20px;
    margin-bottom: 30px;
}

.conteudo-tratamento li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 12px;
}

.caixa-destaque {
    background-color: var(--cor-secundaria); 
    border-left: 5px solid var(--cor-primaria); 
    padding: 25px 30px;
    border-radius: 0 8px 8px 0;
    margin: 40px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.caixa-destaque h3 {
    margin-top: 0;
    color: var(--cor-primaria);
    display: flex;
    align-items: center;
    gap: 10px;
}

.caixa-destaque p:last-child,
.caixa-destaque ul:last-child {
    margin-bottom: 0;
}

/* ==========================================
   6. GRADE DE SERVIÇOS (CARDS COM DESTAQUE)
========================================== */
.servicos-grid-section {
    margin-top: 60px;
    margin-bottom: 60px;
    padding: 60px 20px;
}

.servicos-grid-section.dark-bg {
    background-color: var(--cor-rodape);
    border-top: 5px solid var(--cor-primaria); 
}

.container-faixa {
    max-width: 1200px;
    margin: 0 auto;
}

.titulo-branco {
    margin-bottom: 35px;
    color: #FFFFFF !important;
    font-size: 2rem;
    text-align: center; 
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.servico-card {
    background: #FFFFFF;
    border: none;
    border-radius: 10px;
    padding: 35px 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
}

/* Hover no cartão e animação do botão */
.servico-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.servico-card:hover .btn-card {
    transform: translateX(8px); 
}
 
.servico-icone {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.servico-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--cor-rodape);
}

.servico-card p {
    color: #555;
    font-size: 1rem;
    margin-bottom: 25px;
}

.btn-card {
    color: var(--cor-primaria);
    font-weight: 700;
    font-size: 1rem;
    display: inline-block;
    transition: transform 0.3s ease; 
}

/* =========================================
   7. FAQ (ACORDEÃO)
========================================= */
.faq-section {
    margin-top: 50px;
    background-color: #FFF;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.faq-section h2 { margin-bottom: 25px; }

details {
    background-color: var(--cor-fundo);
    border: 1px solid #E0E0E0;
    border-radius: 5px;
    margin-bottom: 15px;
    padding: 15px;
    transition: all 0.3s ease;
}

details[open] { border-color: var(--cor-primaria); }

summary {
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--cor-primaria);
}

details[open] summary::after { content: '-'; }

details p {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #E0E0E0;
    color: #555;
    font-size: 1.1rem;
}

/* ==========================================
   8. RODAPÉ PREMIUM (FOOTER)
========================================== */
.site-footer {
    background-color: var(--cor-rodape);
    color: #E2E8F0;
    padding: 80px 20px 30px 20px;
    margin-top: 60px;
    font-family: 'Inter', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* Divide em 4 colunas iguais, o que resolve o espaço em branco */
    grid-template-columns: repeat(4, 1fr); 
    gap: 40px;
    margin-bottom: 60px;
}

/* Ajuste para telas menores (responsividade) */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}


.footer-col h4 {
    color: #FFFFFF;
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--cor-whatsapp); 
}

.footer-col p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: #E2E8F0;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: #FFFFFF;
    transform: translateX(5px);
}

/* Coluna 1: Sobre a Clínica (Alinhamento Corrigido) */
.sobre-links {
    margin-top: 15px;
    display: block; 
}

/* Coluna 4: Fale Conosco e Ícones SVG */
.fale-conosco-col ul li {
    margin-bottom: 22px;
}

.contato-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #E2E8F0;
    transition: all 0.3s ease;
    font-size: 1.15rem; /* Aumentei a fonte do Fale Conosco */
}

.contato-link svg {
    /* Mudei para Amarelo Dourado para dar muito mais destaque */
    color: #FFD700; 
    flex-shrink: 0;
    margin-top: 2px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.contato-link:hover {
    color: #FFFFFF;
}

.contato-link:hover svg {
    transform: scale(1.2); 
    color: var(--cor-whatsapp); /* Ao passar o mouse, fica verde */
}

.endereco-link {
    cursor: default; 
}

.endereco-link:hover {
    color: #E2E8F0; 
}

.endereco-link:hover svg {
    transform: scale(1.2); 
    color: var(--cor-whatsapp); 
}

/* Rodapé Inferior: Políticas e Termos */
/* Rodapé Inferior: Políticas e Termos */
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #1E3A5F;
    font-size: 0.95rem;
    color: #FFFFFF; /* Alterado para branco para dar mais destaque */
}

.footer-bottom-links {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-bottom-links a {
    color: #FFFFFF; /* Alterado para branco */
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--cor-whatsapp); /* Fica verde ao passar o mouse */
    text-decoration: underline;
}

.separador {
    margin: 0 15px;
    color: #FFFFFF; /* Alterado para branco */
}

/* ==========================================
   9. BANNER DE COOKIES E WHATSAPP FLUTUANTE
========================================== */
#btn-aceitar-cookies:hover {
    background-color: #1EBE57 !important;
    transform: scale(1.05);
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: var(--cor-whatsapp);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1EBE57;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

.imagem-conteudo-clinico {
    width: 100%;
    max-width: 500px; /* Limita o tamanho no computador para não ficar exagerado */
    height: auto;
    /* border-radius: 12px; Deixa as bordas arredondadas, mais modernas */
   /*  box-shadow: 0 6px 15px rgba(0,0,0,0.1); Cria uma sombra elegante de profundidade */
    margin-bottom: 30px; /* Dá um respiro antes do título "O que é..." */
    display: block;
    margin-left: auto;
    margin-right: auto; /* Centraliza a imagem na tela */
}