/* Variáveis de Cores */
:root {
    --primary-color: #007bff; /* Azul vibrante */
    --secondary-color: #28a745; /* Verde para WhatsApp */
    --light-gray: #f8f9fa; /* Cinza claro para seções */
    --dark-gray: #343a40; /* Cinza escuro para texto */
    --text-color: #495057; /* Cor geral do texto */
    --white: #fff;
    --border-color: #dee2e6;
}

/* Reset Básico e Box-Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden; /* Evita rolagem horizontal */
}

/* Container Responsivo */
.container {
    width: 100%;
    max-width: 1200px; /* Limite para desktop */
    margin: 0 auto;
    padding: 0 15px;
}

/* Espaçamento de Seções */
.section-spacing { padding: 40px 0; /* Espaçamento padrão para seções */}

/* Espaçamento LADO ESQUERDO */
.spacing-left-small { padding-left: 1vw;}
.spacing-left-med {padding-left: 0.7rem;}
.spacing-left-large {padding-left: 1.5rem;}

/* Espaçamento LADO DIREITO */
.spacing-right-small {padding-right: 1vw;}
.spacing-right-med {padding-right: 0.7rem;}
.spacing-right-large {padding-right: 1.5rem;}

/* Espaçamento PARTE CIMA */
.spacing-top-small {padding-top: 1vw;}
.spacing-top-med {padding-top: 0.7rem;}
.spacing-top-large {padding-top: 1.5rem;}

/* Espaçamento PARTE BAIXO */
.spacing-bottom-small {padding-bottom: 1vw;}
.spacing-bottom-med {padding-bottom: 0.7rem;}
.spacing-bottom-large {padding-bottom: 1.5rem;}
/* ^^^ END CONFIGS GLOBAIS DE ESPAÇAMENTO  ^^^^ */

.bg-light { background-color: var(--light-gray);}

/* Títulos */
h1, h2, h3 {color: var(--dark-gray); margin-bottom: 20px; 
text-align: center;}
h1 {font-size: 2.2em; /* Mobile */}
h2 {font-size: 1.8em; /* Mobile */}
h3 {font-size: 1.4em; /* Mobile */}

/* Parágrafos */
p {
    margin-bottom: 15px;
    text-align: justify;
}

/* Botões e Links */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn-whatsapp:hover {
    background-color: #218838; /* Tom mais escuro do verde */
}
.btn-whatsapp i {
    font-size: 1.2em;
}

/* Cabeçalho (Header) */
.header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.header .container {
    display: flex;
    flex-direction: column; /* Mobile: logo em cima, botão embaixo */
    align-items: center;
    gap: 10px;
}
.header .logo {
    font-size: 1.5em; /* Ajuste para mobile */
    margin-bottom: 0;
}
.header .logo-img {
    max-height: 50px;
    width: auto;
}
.mobile-only {
    display: block; /* Visível no mobile */
}
.desktop-only {
    display: none; /* Escondido no mobile */
}

/* Carrossel */
.carousel-section {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
}
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.carousel-slide {
    display: none; /* Escondido por padrão, JS controla */
    width: 100%;
    transition: opacity 0.5s ease-in-out;
}
.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 350px; /* Limita a altura em mobile */
}

/* Botões do Carrossel (Anterior/Próximo) */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
    z-index: 10;
}
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Pontos do Carrossel */
.carousel-dots {
    text-align: center;
    padding: 10px;
    position: absolute;
    bottom: 10px;
    width: 100%;
    left: 0px;
    z-index: 20;
}
.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}
.active, .dot:hover {
    background-color: #717171;
}

/* Seção de Tratamentos */
.treatment-grid {
    display: flex;
    flex-direction: column; /* Coluna no mobile */
    gap: 20px;
}
.treatment-item {
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-align: center;
}
.treatment-item .icon-large {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.treatment-item h3 {
    margin-top: 0;
}

/* Seção das Doutoras */
.doctors-grid {
    display: flex;
    flex-direction: column; /* Coluna no mobile */
    gap: 20px;
}
.doctor-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-align: center;
}
.doctor-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
}
.doctor-card h3 {
    margin-top: 0;
}
.placeholder-note {
    font-size: 0.9em;
    color: #888;
    text-align: center;
    margin-top: 20px;
}

/* Seção de Localização */
.map-container {
    position: relative;
    overflow: hidden;
    padding-bottom: 56.25%; /* Proporção 16:9 para o mapa */
    height: 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-top: 20px;
}
.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Seção de Contato */
.contact-info {
    display: flex;
    flex-direction: column; /* Coluna no mobile */
    gap: 15px;
    margin-top: 20px;
    align-items: center; /* Centraliza no mobile */
}
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    color: var(--white);
    width: 100%; /* Ocupa a largura total no mobile */
    justify-content: center;
}
.contact-link.phone {
    background-color: var(--primary-color);
}
.contact-link.phone:hover {
    background-color: #0056b3;
}
.contact-link.whatsapp {
    background-color: var(--secondary-color);
}
.contact-link.whatsapp:hover {
    background-color: #218838;
}
.contact-link i {
    font-size: 1.2em;
}

/* Rodapé (Footer) */
.footer {
    background-color: var(--dark-gray);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
    margin-top: 30px;
}

/* --- Media Queries para Telas Maiores (Desktop) --- */

@media (min-width: 768px) {
    h1 {
        font-size: 2.8em;
    }
    h2 {
        font-size: 2.2em;
    }
    h3 {
        font-size: 1.6em;
    }

    .header .container {
        flex-direction: row; /* Desktop: logo e botão lado a lado */
        justify-content: space-between;
    }
    .header .logo {
        font-size: 1.8em;
    }
    .mobile-only {
        display: none; /* Escondido no desktop */
    }
    .desktop-only {
        display: block; /* Visível no desktop */
    }

    .carousel-slide img {
        max-height: 500px; /* Aumenta altura em desktop */
    }

    .treatment-grid,
    .doctors-grid {
        flex-direction: row; /* Linha no desktop */
        flex-wrap: wrap; /* Permite quebrar em várias linhas */
        justify-content: center;
        margin-top: 30px;
    }
    .treatment-item {
        flex-basis: calc(50% - 20px); /* 2 itens por linha */
        max-width: calc(50% - 20px);
    }
    .doctor-card {
        flex-basis: calc(50% - 20px); /* 2 itens por linha */
        max-width: calc(50% - 20px);
    }

    .contact-info {
        flex-direction: row; /* Linha no desktop */
        justify-content: center;
    }
    .contact-link {
        width: auto; /* Volta para largura natural */
    }

    /* Formulário (se for implementado) */
    .contact-form {
        max-width: 600px;
        margin: 30px auto 0 auto;
        padding: 20px;
        background-color: var(--white);
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .contact-form input,
    .contact-form textarea {
        padding: 12px;
        border: 1px solid var(--border-color);
        border-radius: 5px;
        font-size: 1em;
    }
    .contact-form button {
        background-color: var(--primary-color);
        color: var(--white);
        padding: 12px 25px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 1.1em;
        transition: background-color 0.3s ease;
    }
    .contact-form button:hover {
        background-color: #0056b3;
    }
}

@media (min-width: 1024px) {
    .treatment-item,
    .doctor-card {
        flex-basis: calc(33.333% - 20px); /* 3 itens por linha */
        max-width: calc(33.333% - 20px);
    }
}