/* --- Paleta de Cores (Roxo Violeta Oficial & Fundo Claro) --- */
:root {
    --primary-color: #9353cd;    /* Roxo Violeta Oficial do Logotipo */
    --primary-dark: #7a3eb3;     /* Roxo escuro para estados ativos/hover */
    --primary-light: #f5edfc;    /* Roxo suave para separadores */
    --text-color: #524f4f;       /* Cinza Charcoal para leitura confortável */
    --bg-light: #fcfbf9;         /* Fundo global claro e iluminado */
    --white: #ffffff;
    --whatsapp-color: #25d366;
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.7;
}

/* --- Cabeçalho de Navegação --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 15px rgba(0,0,0,0.02);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-container img {
    max-height: 55px;
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    letter-spacing: 0.5px;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-color);
}

/* --- Estrutura das Seções --- */
section, .content-section {
    padding: 140px 20px 80px 20px;
    min-height: 90vh;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-section {
    max-width: 900px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 300;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 15px auto 0 auto;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
    color: #777;
}

/* --- Página Home (Banner Hero Claro) --- */
.hero {
    position: relative;
    padding-top: 80px;
    min-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('images/banner.jpg') no-repeat center center;
    background-size: cover;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(252, 249, 245, 0.88);
    z-index: 1;
}

.hero-content {
    position: relative;
    max-width: 800px;
    padding: 0 20px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.6rem;
    font-weight: 300;
    color: var(--text-color);
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-content h1 span {
    color: var(--primary-color);
    font-weight: 500;
}

.hero-content p {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 40px;
}

/* --- Botões --- */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    padding: 16px 38px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(147, 83, 205, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 83, 205, 0.35);
}

/* --- Página Sobre Nós --- */
.sobre-text p {
    margin-bottom: 25px;
    color: #555;
    font-size: 1.1rem;
    text-align: justify;
}

/* --- Página Corpo Clínico (2 Colunas) --- */
.medicos-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    width: 100%;
}

.card-medico {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(147, 83, 205, 0.02);
    overflow: hidden;
    border-top: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
}

.medico-img-container {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: #f7f5f2;
}

.medico-img-container img {
    width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block;
}

.medico-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.medico-content h3 {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 2px;
}

.medico-crm {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.medico-especialidade {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
}

.medico-cv {
    list-style: none;
}

.medico-cv li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #555;
}

.medico-cv li::before {
    content: '•';
    position: absolute;
    left: 0; color: var(--primary-color);
    font-weight: bold; font-size: 1.2rem; top: -2px;
}

/* --- Página Nossos Serviços (2 Colunas) --- */
.grid-servicos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    width: 100%;
}

.card-servico {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(147, 83, 205, 0.02);
    border-top: 3px solid var(--primary-color);
    display: flex;
    flex-direction: column;
}

.card-servico h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.desc-geral {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.lista-procedimentos {
    font-size: 0.9rem;
    color: #444;
    border-top: 1px dashed var(--primary-light);
    padding-top: 15px;
    margin-top: auto;
}

.lista-procedimentos em {
    font-style: normal;
    display: block;
    color: #555;
    line-height: 1.8;
}

.img-content {
    margin-bottom: 20px;
}

.img-content img {
    border-radius: 4px;
    max-width: 100%;
    height: auto;
}

/* --- Página Contato --- */
.contato-info {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(147, 83, 205, 0.02);
}

.info-item {
    margin-bottom: 25px;
}

.info-item h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item p {
    color: #555;
    font-size: 1.05rem;
}

/* Elemento do Link do WhatsApp Corrigido */
.wpp-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.wpp-link:hover {
    color: var(--whatsapp-color);
    text-decoration: underline;
}

/* --- Botão Flutuante WhatsApp (Infallible SVG render) --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 999;
    transition: transform 0.2s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-icon-img {
    width: 32px;
    height: 32px;
    fill: var(--white);
}

/* --- Rodapé --- */
footer {
    background-color: #1a1a1f;
    color: #85858c;
    text-align: center;
    padding: 35px 20px;
    font-size: 0.9rem;
    border-top: 1px solid #232329;
    margin-top: 40px;
}

footer a {
    color: #b5b5be;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--primary-color);
}

/* --- Responsividade --- */
@media (max-width: 921px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    nav ul li {
        margin: 0 12px;
    }
    .hero-content h1 {
        font-size: 2.4rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    section, .content-section {
        padding: 100px 20px 60px 20px;
    }
    .grid-servicos, .medicos-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .medico-img-container {
        height: 340px;
    }
}
