/* =========================================
   Reset e Variáveis CSS (Identidade inDerma - Tons Terrosos)
========================================= */
:root {
    /* Cores Corrigidas (Paleta Marrom/Nude Premium) */
    --brand-primary: #5A3E36;        /* Marrom Escuro (Autoridade e Sofisticação) */
    --brand-primary-hover: #432C25;  /* Marrom mais fechado para o hover dos botões */
    --brand-secondary: #B99984;      /* Marrom Claro/Nude (Estética e Cuidado Orgânico) */
    
    /* Cores Neutras e Fundos Quentes */
    --text-dark: #2C2421;            /* Marrom acinzentado escuro para leitura (menos agressivo que o preto) */
    --text-light: #7A6A63;           /* Marrom suave para textos secundários */
    --white: #ffffff;
    --clinical-bg-alt: #FDFBF7;      /* Bege bem clarinho/creme para seções de fundo */
    --separator-light: #EBE5E0;      /* Bege para linhas e bordas suaves */
    
    /* Tipografia e Espaçamento */
    --font-main: 'Inter', sans-serif;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; 
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.bg-light {
    background-color: var(--clinical-bg-alt);
}

/* =========================================
   Acessibilidade e Touch (Mobile-First)
========================================= */
a, button {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--brand-primary); 
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--brand-primary-hover);
}

/* =========================================
   Estilização de Imagens
========================================= */
.responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
}

.logo-img {
    max-width: 180px; 
    height: auto;
}

.hero-img-style, .about-img-style {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(90, 62, 54, 0.08); /* Sombra levemente marrom */
    object-fit: cover;
}

/* =========================================
   Header e Navegação
========================================= */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03); 
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
    gap: 15px;
}

#main-nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

#main-nav a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-primary); 
}

/* =========================================
   Sessões Gerais
========================================= */
section {
    padding: var(--spacing-lg) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.section-header h2 {
    color: var(--brand-primary); 
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.grid-2, .grid-3 {
    display: grid;
    grid-template-columns: 1fr; 
    gap: var(--spacing-md);
    align-items: center;
}

/* =========================================
   Hero Section
========================================= */
#hero {
    background-color: var(--white); 
    padding: 4rem 0;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
}

.badge {
    background-color: var(--brand-secondary); 
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.hero-text h1 {
    font-size: 2.5rem;
    color: var(--brand-primary); 
    margin: 15px 0;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

/* =========================================
   Cards de Médicos e Serviços
========================================= */
.doctor-card, .service-card {
    background: var(--white);
    padding: 2.5rem; 
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(90, 62, 54, 0.04); 
    text-align: center;
    border: 1px solid var(--separator-light); 
}

.doctor-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px auto;
    display: block;
    border: 4px solid var(--clinical-bg-alt); 
}

.doctor-card h3, .service-card h4 {
    color: var(--brand-primary); 
    margin-bottom: 5px;
}

.doctor-card h4 {
    font-size: 0.9rem;
    color: var(--brand-secondary); 
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 600;
}

.service-category {
    margin-bottom: 3rem;
}

.service-category h3 {
    margin-bottom: 1.5rem;
    color: var(--brand-primary); 
    border-bottom: 2px solid var(--brand-secondary); 
    padding-bottom: 10px;
    font-weight: 700;
}

/* =========================================
   Rodapé (Footer)
========================================= */
footer {
    background-color: var(--brand-primary); 
    color: var(--white);
    padding: 3rem 0 1rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-content h3, .footer-content h4 {
    color: var(--brand-secondary); /* Textos de destaque no footer em nude */
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-brand p {
    opacity: 0.9;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--white);
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--brand-secondary);
}

.footer-legal {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
    padding-top: 1rem;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* =========================================
   Botão Flutuante do WhatsApp
========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366; 
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* =========================================
   Responsividade (Tablet e Desktop)
========================================= */
@media (min-width: 768px) {
    .header-container {
        flex-wrap: nowrap;
    }
    .hero-content {
        flex-direction: row;
        text-align: left;
    }
    .hero-text, .hero-image {
        flex: 1;
    }
    .hero-text h1 {
        font-size: 3.5rem; 
    }
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}