/* Importando fontes elegantes do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Poppins:wght@300;400;500&display=swap');

:root {
    /* Paleta de Cores Premium */
    --primary: #1a2a40;       /* Azul marinho profundo (Autoridade) */
    --accent: #c5a47e;        /* Nude/Dourado suave (Estética) */
    --text: #4a4a4a;          /* Cinza escuro para leitura confortável */
    --bg-light: #ffffff;
    --bg-alt: #fdfaf7;        /* Fundo creme suave para seções alternadas */
    --whatsapp: #25d366;
    
    /* Fontes */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Espaçamento e Transição */
    --container-padding: 0 5%;
    --transition: all 0.3s ease;
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* --- Header & Navegação --- */
header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
}

.logo span {
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--accent);
}

.btn-nav {
    background-color: var(--primary);
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
    transition: var(--transition);
}

.btn-nav:hover {
    transform: translateY(-3px);
}

.btn-nav:active {
    transform: translate(2px, 2px);
    transition: all 0;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--primary);
}

/* --- Seção Hero --- */
#hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #fff 50%, var(--bg-alt) 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 2.15rem;
    color: var(--accent);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text h1 span {
    color: var(--primary);
}

.hero-text {
    font-size: 12px;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: var(--whatsapp);
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.hero-img img {
    border-radius: 20px;
    box-shadow: 15px 15px 5px var(--accent);
}

/* --- Seções Gerais --- */
section {
    padding: 100px 0;
}

h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 50px;
}

/* --- Especialidades --- */
#especialidades {
    background-color: var(--bg-alt);
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 15px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.card h3 {
    color: var(--accent);
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

/* --- Botões de Contato (Final da Página) --- */
#contatos {
    background-color: var(--bg-light);
    text-align: center;
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 15px 20px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    color: white;
}

.btn-contact svg {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    fill: currentColor;
}

/* --- Estilo Base Neutro para Botões de Contato e Diálogo --- */
.btn-contact, .btn-dialog {
    background-color: #fdfdfd; /* Fundo quase branco para elegância */
    color: #444;               /* Texto em tom grafite suave */
    border: 1px solid #e2e2e2; /* Borda fininha */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}

/* Efeito ao passar o mouse */
.btn-contact:hover, .btn-dialog:hover {
    background-color: #ffffff;
    border-color: var(--primary); /* Destaque com a cor da marca */
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

/* Tamanho padrão dos ícones */
.btn-contact svg, .btn-dialog svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

/* --- Cores ESPECÍFICAS apenas nos ÍCONES --- */

/* WhatsApp (Presencial e Geral) */
.whatsapp svg { fill: #25D366; }

/* Telemedicina */
.telemed svg { fill: #954d6c; }

/* Instagram */
.instagram svg { fill: #E1306C; }

/* Google */
.google svg { fill: #4285F4; }

/* Telefone / Chamar */
.phone svg { fill: var(--primary); }

/* SMS e VCard */
.sms svg, .vcard svg { fill: #6c757d; }

/* Ajuste específico para o Dialog para não herdar estilos estranhos */
.dialog-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

/* --- Responsividade --- */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-img {
        order: -1;
    }
    
    .hamburger {
        display: block;
        z-index: 1002;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    nav ul {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        padding-top: 100px;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 1001;
    }

    nav ul.active {
        left: 0;
    }
}

/* --- Modal de Agendamento --- */
#agendar-dialog {
    border: none;
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    background: var(--bg-light);
    margin: auto;
    position: fixed;
    inset: 0;
}

#agendar-dialog::backdrop {
    background: rgba(26, 42, 64, 0.6);
    backdrop-filter: blur(4px);
}

.close-dialog {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-dialog:hover {
    background-color: rgba(0,0,0,0.05);
}

.close-dialog svg {
    fill: var(--text);
}

.dialog-section {
    text-align: center;
}

.dialog-section h3 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.dialog-section p {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 20px;
    opacity: 0.8;
}

.btn-dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    gap: 10px;
}

.btn-dialog:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    color: white;
}

.btn-dialog svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.btn-dialog.whatsapp {
    background-color: var(--whatsapp);
}

.btn-dialog.telemed {
    background: linear-gradient(0deg, #ed77dc 0%, #954d6c 100%);
}

.dialog-divider {
    height: 1px;
    background-color: rgba(0,0,0,0.1);
    margin: 30px 0;
}