/* =========================================
   Navegação e Ajuste do Menu Fixo
   ========================================= */
html {
    scroll-behavior: smooth; 
    scroll-padding-top: 100px; 
}

/* Variáveis de Cores (Paleta Moderna e Profissional) */
:root {
    --primary-color: #051a55; /* Azul Marinho Profundo */
    --secondary-color: #2563eb; /* Azul Vibrante para botões */
    --bg-light: #f4f7f6; /* Fundo suave */
    --text-main: #334155;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

/* Reset Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.7;
    margin-top: 60px; 
}

/* Navbar Moderna */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    padding: 15px 20px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
}

.navbar ul {
    list-style-type: none;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.navbar ul li a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: #93c5fd;
}

/* Header de Apresentação */
.header-container {
    text-align: center;
    padding: 50px 20px 30px;
    background: linear-gradient(180deg, #e0e7ff 0%, var(--bg-light) 100%);
}

.header-container h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.profile-img {
    max-width: 180px;
    height: auto;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    border: 4px solid var(--white);
    margin: 20px auto;
    display: block;
}

/* Container Principal e Cards */
.main-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.card {
    background-color: var(--white);
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    text-align: center;
}

.section-intro {
    text-align: center;
    margin-bottom: 25px;
}

/* Listas Customizadas (Serviços e Exames) */
.info-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-list li {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid var(--secondary-color);
    box-shadow: inset 0 0 0 1px #e2e8f0;
}

.info-list li strong {
    color: var(--primary-color);
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

/* Seção Clínica (Flexbox) */
.clinic-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.clinic-info, .clinic-map {
    flex: 1;
}

.clinic-img {
    width: 100%;
    max-width: 350px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-top: 15px;
}

.dr-img {
    width: auto;
    max-width: 250px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin: 30px auto 10px;
    display: block;
}

/* Botões */
.cta-btn {
    display: table;
    margin: 30px auto 10px;
    padding: 14px 28px;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Redes Sociais */
.social-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
}

.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-btn:hover {
    transform: scale(1.1);
}

.social-btn img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.social-btn-text {
    margin-top: 10px;
    color: var(--primary-color);
    font-weight: 700;
}

/* Rodapé */
.footer-container {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
}

.footer-nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.footer-nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 300;
}

.footer-nav ul li a:hover {
    text-decoration: underline;
}

.privacy-button {
    background-color: transparent;
    color: #cbd5e1;
    text-decoration: underline;
    font-size: 14px;
    cursor: pointer;
    border: none;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.privacy-button:hover {
    color: var(--white);
}

/* Banner de Cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(5, 26, 85, 0.95);
    color: var(--white);
    padding: 15px 20px;
    display: none;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.cookie-banner a {
    color: #93c5fd;
    text-decoration: underline;
}

.cookie-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cookie-btn:hover {
    background-color: #1d4ed8;
}

/* =========================================
   Botão Flutuante do WhatsApp
   ========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366; /* Verde oficial do WhatsApp */
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20b858;
    color: var(--white);
    box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.3);
}

/* Responsividade (Celulares e Tablets) */
@media (max-width: 768px) {
    .clinic-layout {
        flex-direction: column;
    }
    
    .card {
        padding: 25px;
    }
    
    .header-container h1 {
        font-size: 2rem;
    }
    
    .navbar ul {
        gap: 12px;
    }
    
    .navbar ul li a {
        font-size: 0.9rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }
}