/* ================== RESET GLOBAL ================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, html { overflow-x: hidden; max-width: 100vw; }
body {
    font-family: 'Montserrat', sans-serif;
    /* O background do body pode variar por página, aqui definimos um padrão */
    background: #f8f8f8; /* Fundo padrão leve, pode ser sobrescrito por sections */
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* ================== HEADER / MENU ================== */
/* Desktop padrão */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    width: 90%;
    max-width: 1486px;
    height: 50px;
    padding: 0px 12px 0px 28px;
    align-items: center;
    gap: 93px;
    background: #FFF;
    border-radius: 40px;
    backdrop-filter: blur(50px);
    z-index: 999;
}
.logo { height: 60px; }
.menu {
    display: flex;
    align-items: center;
    gap: 42px;
    margin-left: auto;
}
.menu-item {
    color: #6a6a6a; /* UNIFICADO: Cor do texto do menu */
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
}
.menu-item:hover {
    color: #44A7BD; /* Mantido o hover original */
}
.menu-item.ativo { /* Estilo para o item "Sobre Nós" ativo na sobre.html */
    font-weight: 800;
    color: #44A7BD; /* Mantido o azul para o item ativo */
}
.botao-contato {
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 40px;
    padding: 6px 12px 6px 20px;
    font-weight: 800;
    color: #6a6a6a; /* UNIFICADO: Cor do texto "WhatsApp" */
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.botao-contato:hover {
    background-color: #e0e0e0;
}
.icone-contato {
    background-color: #44A7BD;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white; /* Mantido: O ícone do SVG deve ser branco */
    font-weight: bold;
}
.icone-contato svg {
    fill: white; /* Garante que o SVG dentro do ícone seja branco */
    width: 22px;
    height: 22px;
}

/* ================== HERO (ESPECÍFICO DA INDEX.HTML) ================== */
/* Mantido como estava, se houver um hero na index.html */
.container {
    width: 100vw;
    max-width: none;
    position: relative;
    overflow: hidden;
    background: rgba(103, 101, 103, 0.68);
    min-height: 100vh;
    left: 0%;
    right: 0%;
    margin-left: 100vw; /* Ajuste para centralizar o container no body */
    margin-right: 100vw; /* Ajuste para centralizar o container no body */
}
.video-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    object-fit: cover;
    z-index: 0;
    min-height: 100vh;
}
.hero-content {
    width: 90%;
    max-width: 1361px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 60px;
    z-index: 1;
    position: relative;
    color: white; /* Mantido branco */
    height: 100vh;
    padding-bottom: 120px;
}
.hero-title {
    max-width: 1090px;
    font-size: 4vw;
    font-weight: 800;
    text-transform: uppercase;
}
.hero-text {
    max-width: 980px;
    font-size: 1.3vw;
    font-weight: 400;
}


/* ================== SOBRE BANNER (ESPECÍFICO DA SOBRE.HTML) ================== */
.sobre-banner {
    width: 100%;
    max-width: 1680px;
    background: #44A7BD;
    margin-top: -50px;
    padding: 190px 20px 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white; /* Mantido branco */
    min-height: 400px;
    justify-content: center;
    box-sizing: border-box;
}
.sobre-banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 900px;
}
.sobre-banner-logo {
    height: 120px;
    max-width: 100%;
    object-fit: contain;
}
.sobre-banner h1 {
    font-size: 3.2rem;
    font-weight: 900;
    margin: 0;
    line-height: 1.2;
}
.sobre-banner p {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0;
    max-width: 700px;
}


/* ================== SEÇÃO PRINCIPAL DE CONTEÚDO (index e sobre) ================== */
.section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 10%;
    gap: 60px;
    background: #fff; /* Fundo branco, presente tanto na index quanto na sobre */
    max-width: 1680px;
    width: 100%;
    box-sizing: border-box;
}
.section:nth-of-type(even) { flex-direction: row-reverse; } /* Mantido da index, se aplicar à sobre */
.section img { /* Para as imagens de seção na index (se aplicável) e sobre */
    width: 50%;
    border-radius: 50px; /* Alterado para 50px, era 32px na sobre */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}
.section img:hover {
    transform: scale(1.05) translateY(-5px); /* Efeito da index.html */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2); /* Efeito da index.html */
}
.section-media { /* Específico da sobre.html, seções com imagem */
    flex-shrink: 0;
    max-width: 440px;
    width: 100%;
}
.section-media img { /* Imagens de seção da sobre.html */
    width: 100%;
    height: auto;
    border-radius: 32px; /* Mantido 32px para essas imagens */
    box-shadow: 0 4px 28px rgba(60,70,100,.10);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}
.section-media img:hover {
    transform: scale(1.03) translateY(-3px);
    box-shadow: 0 10px 30px rgba(60,70,100,.15);
}
.section-content {
    width: 50%;
    flex-grow: 1;
}
.section-content h2 {
    font-size: 32px;
    color: #44A7BD; /* MANTIDO: Azul, não preto */
    font-weight: 800;
    margin-bottom: 24px; /* Ajustado para 24px, era 16px na index */
    text-align: left;
}
.section-content p {
    font-size: 18px;
    color: #6a6a6a; /* UNIFICADO: Cor do texto dos parágrafos */
    line-height: 1.7; /* Mantido 1.7, era 1.6 na index */
    margin-bottom: 18px; /* Ajustado para 18px, não estava na index */
    text-align: left;
}


/* ================== BOTÃO VOLTAR AO TOPO (ESPECÍFICO DA INDEX.HTML) ================== */
#btnTopo {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 999;
    background-color: #44A7BD;
    border: none;
    padding: 14px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: none; /* Inicia oculto */
    transition: opacity 0.3s ease, transform 0.3s ease;
}
#btnTopo:hover {
    transform: scale(1.1);
    background-color: #35859b;
}
#btnTopo svg {
    width: 24px;
    height: 24px;
}

/* ================== CLÍNICA MULTIPROFISSIONAL / BOTÕES (ESPECÍFICO DA INDEX.HTML) ================== */
.clinica-multiprofissional {
    background-color: #44A7BD;
    padding: 80px 0;
    text-align: center;
    color: white; /* Mantido branco */
    width: 100vw;
    max-width: none;
    margin: 0 calc(-50vw + 50%);
}
.clinica-multiprofissional h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}
.clinica-multiprofissional p {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 40px;
}
.botoes-especialidades {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.botoes-especialidades + .botoes-especialidades {
    margin-top: 24px;
}
.botoes-especialidades button {
    background-color: white;
    color: #6a6a6a; /* UNIFICADO: Cor do texto dos botões */
    border: none;
    border-radius: 24px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.botoes-especialidades button:hover {
    background-color: #e6e6e6;
}

/* ================== TERAPIAS TABS (ESPECÍFICO DA INDEX.HTML) ================== */
.terapia-card {
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 0;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(24px);
    pointer-events: none;
    transition: opacity 0.4s, transform 0.4s;
    position: absolute;
    left: 0; right: 0;
}
.terapia-card.ativo {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    position: relative;
}
.terapia-content {
    display: flex;
    width: 100%;
}
.terapia-texto {
    flex: 1;
    padding: 40px 32px 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}
.terapia-texto h2 {
    color: #6a6a6a; /* UNIFICADO: Cor do título da terapia */
}
.terapia-texto p {
    color: #6a6a6a; /* UNIFICADO: Cor do texto da terapia */
}
.terapia-imagem {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 40px 40px 0;
}
.terapia-imagem img {
    width: 100%;
    max-width: 340px;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}


/* ================== CARROSSEL 2D (ESPECÍFICO DA INDEX.HTML) ================== */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.carousel-wrapper {
    display: flex;
    overflow: hidden;
    scroll-behavior: smooth;
    width: 100%;
    max-width: 1600px;
    gap: 0;
}
.carousel-card {
    min-width: 220px;
    max-width: 220px;
    height: 270px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 12px;
    box-sizing: border-box;
    border: none;
    margin: 0 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    background: #fff;
    border-radius: 24px;
    transition: box-shadow 0.2s;
}
.carousel-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 14px;
    display: block;
}
.carousel-card h3 {
    color: #6a6a6a; /* UNIFICADO: Cor do título do card do carrossel */
}
.carousel-btn {
    background: #44A7BD;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 2;
}
.carousel-btn:hover { background: #35859b; }


/* ================== FOOTER ================== */
.footer-mobilitare {
    width: 100%;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 0;
    margin-top: auto; /* Garante que o footer fique no final da página */
}
.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 32px;
}
.footer-logo-wrap { flex: 0 0 auto; }
.footer-logo { height: 40px; display: block; }
.footer-social {
    display: flex;
    gap: 22px;
    flex: 0 0 auto;
}
.footer-icon {
    color: #6a6a6a; /* UNIFICADO: Cor dos ícones sociais */
    display: flex;
    align-items: center;
    transition: color 0.2s;
    text-decoration: none;
}
.footer-icon:hover { color: #44A7BD; }
.footer-icon svg {
    fill: currentColor;
    width: 26px;
    height: 26px;
}


/* ================== BOTÃO SERVIÇOS (ESPECÍFICO DA INDEX.HTML) ================== */
.botao-servicos {
    background: #EE7D00;
    color: white; /* Mantido branco */
    padding: 18px 40px;
    border: none;
    border-radius: 28px;
    font-weight: 800;
    font-size: 24px;
    text-transform: uppercase;
    margin-bottom: 60px;
    cursor: pointer;
    display: inline-block;
    transition: 0.2s;
}
.botao-servicos:hover {
    background: #ff9800;
}


/* ================== HAMBURGUER MENU (BOTÃO E MENU MOBILE) ================== */
.menu-toggle {
    display: none; /* Escondido por padrão no desktop */
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001; /* Z-index para o botão */
}

/* --- Media Queries para Responsividade --- */

/* Telas médias (tablets pequenos, celulares em landscape) */
@media (max-width: 1100px) {
    .header {
        gap: 32px;
        max-width: 99vw;
        padding: 0 10px;
    }
    .logo { height: 46px; }
    .menu { gap: 24px; }
    .menu-item { font-size: 11px; }
    .botao-contato {
        padding: 5px 10px 5px 16px;
        font-size: 10px;
    }
    .icone-contato {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }
    .sobre-banner {
        padding: 150px 15px 60px 15px;
        min-height: 350px;
    }
    .sobre-banner-logo {
        height: 90px;
    }
    .sobre-banner h1 {
        font-size: 2.5rem;
    }
    .sobre-banner p {
        font-size: 1.1rem;
    }
    .section {
        padding: 60px 5%;
        gap: 40px;
    }
    .section-content h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }
    .section-content p {
        font-size: 16px;
    }
}

/* Telas pequenas (celulares em portrait e alguns tablets) */
@media (max-width: 750px) {
    /* Cabeçalho fixo no topo em mobile */
    .header {
        position: fixed;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        height: 50px;
        padding: 0 4vw;
        border-radius: 28px;
        width: 98vw;
        justify-content: space-between; /* Mantido para logo à esquerda e hambúrguer à direita */
        align-items: center;
        background: #fff;
        z-index: 1000;
    }
    .logo { height: 32px; }

    /* O botão do menu hambúrguer agora fixo no topo direito */
    .menu-toggle {
        display: block; /* Visível em mobile */
        position: fixed;
        top: 29px; /* MODIFICADO: Para centralizar verticalmente na barra */
        right: 30px; /* MODIFICADO: Para dar mais espaçamento da direita */
        z-index: 1002; /* Z-index alto para ficar acima de tudo */
        background: none;
        border: none;
        cursor: pointer;
        width: 32px;
        height: 32px;
        padding: 0;
        margin: 0;
    }
    .menu-toggle svg {
        fill: #44A7BD; /* Cor do ícone do hambúrguer */
        width: 100%;
        height: 100%;
    }

    /* O menu (painel que desliza) */
    .menu {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 70px 20px 20px 20px;
        box-shadow: -8px 0 20px rgba(0,0,0,0.2);
        z-index: 998;
        transform: translateX(100%);
        transition: transform 0.3s ease-out;
        margin-left: 0;
        flex-wrap: nowrap;
        overflow-y: auto;
    }
    .menu.menu-ativo {
        transform: translateX(0);
        display: flex;
    }
    .menu-item {
        color: #6a6a6a; /* UNIFICADO: Cor do texto no menu mobile */
        font-size: 16px;
        padding: 10px 0;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #eee;
    }
    .menu-item:last-child {
        border-bottom: none;
    }
    .botao-contato {
        padding: 10px 20px;
        font-size: 14px;
        width: auto;
        margin-top: 20px;
        align-self: center;
        background-color: #EE7D00 !important;
        color: white;
    }
    .icone-contato {
        background-color: #25d366 !important;
        width: 28px;
        height: 28px;
    }

    /* Responsividade específica da página SOBRE, para não conflitar */
    .sobre-banner {
        padding: 150px 15px 50px 15px;
        min-height: 300px;
    }
    .sobre-banner-logo {
        height: 70px;
    }
    .sobre-banner h1 {
        font-size: 2rem;
    }
    .sobre-banner p {
        font-size: 1rem;
    }

    .section {
        flex-direction: column;
        padding: 40px 5%;
        gap: 30px;
    }
    .section-media {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    .section-content {
        width: 100%;
        text-align: center;
    }
    .section-content h2, .section-content p {
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        height: auto;
        gap: 12px;
        padding: 18px 4vw;
    }
    .footer-logo { height: 32px; margin-bottom: 10px; }
    .footer-social { gap: 18px; }
}

/* Telas muito pequenas (celulares em portrait) */
@media (max-width: 480px) {
    .header {
        top: 10px;
        height: 45px;
        padding: 0 3vw;
    }
    .logo { height: 28px; }
    .menu {
        width: 80%;
        gap: 15px;
        padding: 60px 15px 15px 15px;
    }
    .menu-item {
        font-size: 14px;
        padding: 8px 0;
    }
    .botao-contato {
        font-size: 12px;
        padding: 8px 15px;
    }
    .menu-toggle {
        top: 18.5px; /* MODIFICADO: Para centralizar verticalmente em telas muito pequenas */
        right: 25px; /* MODIFICADO: Para dar mais espaçamento da direita */
        width: 28px;
        height: 28px;
    }
    .menu-toggle svg {
        width: 28px;
        height: 28px;
    }

    .sobre-banner {
        padding: 120px 10px 40px 10px;
        min-height: 250px;
    }
    .sobre-banner-logo {
        height: 60px;
    }
    .sobre-banner h1 {
        font-size: 1.8rem;
    }
    .sobre-banner p {
        font-size: 0.9rem;
    }
    .section {
        padding: 30px 4%;
        gap: 20px;
    }
    .section-content h2 {
        font-size: 24px;
    }
    .section-content p {
        font-size: 15px;
    }
    .footer-content {
        gap: 8px;
        padding: 14px 3vw;
    }
    .footer-logo { height: 25px; margin-bottom: 8px; }
    .footer-social { gap: 14px; }
    .footer-icon svg { width: 22px; height: 22px; }
}