/* ==========================================================================
   VARIÁVEIS GLOBAIS E TOKENS DE DESIGN
   ========================================================================== */
:root {
    /* Paleta de Cores: Tons que transmitem saúde, paz, segurança e seriedade */
    --color-primary: #0f3750;       /* Azul Escuro (Seriedade e Confiança) */
    --color-primary-light: #1b5b82; /* Azul Médio */
    --color-secondary: #5d7e5d;     /* Verde Oliva / Sálvia (Saúde, Calma e Crescimento) */
    --color-secondary-light: #eef2ef; /* Fundo esverdeado muito suave */
    
    --color-bg-light: #f8faf9;      /* Fundo Principal Claro (Quase branco com toque quente) */
    --color-bg-white: #ffffff;
    
    --color-text-main: #2d3748;     /* Cinza Escuro para Leitura */
    --color-text-muted: #4a5568;    /* Cinza Médio para Textos de Apoio */
    
    --color-whatsapp: #25d366;
    --color-whatsapp-hover: #128c7e;
    
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.025);
    --radius-md: 0.75rem;
    --radius-lg: 1.25rem;
    --radius-full: 9999px;
}

/* ==========================================================================
   RESET E BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll bug on mobile */
}

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

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem; /* Reduzido no mobile para evitar aperto */
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
    background-color: var(--color-bg-white);
    padding: 1.25rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    max-width: 140px; /* Reduzido no celular para não empurrar o botão */
    transition: var(--transition-fast);
}

.logo-link:hover {
    opacity: 0.9;
}

.logo-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    /* mix-blend-mode: multiply; Garante que o fundo branco da imagem se mescle (útil se o fundo não for 100% branco) */
}

.header-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: rgba(37, 211, 102, 0.1);
    color: var(--color-whatsapp-hover);
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition-fast);
    white-space: nowrap; /* Evita que o número quebre para a próxima linha */
}

.header-btn i {
    font-size: 1.1rem;
}

.header-btn:hover {
    background-color: var(--color-whatsapp);
    color: var(--color-bg-white);
}

/* Telas ultra-pequenas (iPhone SE, etc) */
@media (max-width: 360px) {
    .header-phone {
        display: none; /* Esconde o texto, deixa apenas o ícone */
    }
    .header-btn {
        padding: 0.6rem;
        border-radius: 50%;
    }
    .logo-link {
        max-width: 160px; /* Como não tem texto no botão, a logo pode ser maior */
    }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    padding: 5rem 0 6rem;
    background: linear-gradient(145deg, var(--color-primary) 0%, #0a2538 100%);
    color: var(--color-bg-white);
    text-align: center;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at top right, rgba(93, 126, 93, 0.2) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.headline {
    font-size: 1.85rem; /* Ajustado para encaixar melhor no mobile */
    font-weight: 800;
    line-height: 1.25;
    max-width: 850px;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.authority-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.authority-badge i {
    color: #fbbf24; /* Estrela Amarela do Google */
    font-size: 1.1rem;
}

.sub-headline {
    font-size: 1.05rem; /* Menor no mobile */
    font-weight: 400;
    max-width: 750px;
    margin-bottom: 2rem;
    color: #e2e8f0;
    line-height: 1.6;
}

/* COUNTDOWN TIMER */
.countdown-wrapper {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem; /* Menor no mobile */
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
    max-width: 100%;
}

.countdown-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem; /* Menos gap no celular para não estourar */
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--color-bg-white);
    color: var(--color-primary);
    padding: 0.5rem; /* Menor no mobile */
    border-radius: var(--radius-md);
    min-width: 55px; /* Menor no mobile */
    box-shadow: var(--shadow-md);
}

.time-block span {
    font-size: 1.4rem; /* Menor no mobile */
    font-weight: 800;
    line-height: 1;
}

.time-block small {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 0.25rem;
    color: var(--color-text-muted);
}

.time-separator {
    font-size: 1.5rem; /* Menor no mobile */
    font-weight: 700;
    color: var(--color-secondary);
    animation: pulse 2s infinite;
}

.countdown-success {
    font-size: 1.1rem; /* Menor no mobile */
    font-weight: 700;
    color: var(--color-secondary);
    background: var(--color-bg-white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeIn 0.5s ease-out forwards;
}

.hidden {
    display: none !important;
}

/* BOTÃO CTA */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: var(--color-whatsapp);
    color: var(--color-bg-white);
    padding: 1rem 1.25rem; /* Menor no celular */
    border-radius: var(--radius-full);
    font-size: 0.95rem; /* Menor no celular */
    font-weight: 700;
    transition: var(--transition-normal);
    box-shadow: 0 10px 15px -3px rgba(37, 211, 102, 0.3);
    max-width: 100%; /* Garante que não estoure a tela */
    text-align: center;
    flex-wrap: wrap; /* Se a tela for minúscula, o texto e ícone podem quebrar sem estourar layout */
}

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

/* ==========================================================================
   TÍTULOS E COMPONENTES COMUNS
   ========================================================================== */
.section-title {
    font-size: 2rem;
    color: var(--color-primary);
    text-align: center;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-divider {
    width: 60px;
    height: 4px;
    background-color: var(--color-secondary);
    border-radius: 2px;
    margin: 0 auto 3rem;
}

/* ==========================================================================
   INSTITUCIONAL (A CLÍNICA)
   ========================================================================== */
.institucional {
    padding: 6rem 0;
    background-color: var(--color-bg-white);
}

.institucional-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    font-size: 1.15rem;
    color: var(--color-text-muted);
}

/* A seção visual de galeria foi ocultada até que fotos reais estejam disponíveis */

/* ==========================================================================
   DIFERENCIAIS (CARDS)
   ========================================================================== */
.diferenciais {
    padding: 6rem 0;
    background-color: var(--color-secondary-light);
}

.cards-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-card {
    background: var(--color-bg-white);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-normal);
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--color-secondary);
}

.card-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: var(--color-secondary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--color-secondary);
}

.card-icon {
    font-size: 2rem;
}

.card-title {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.card-text {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   PROCESSO DE ACOLHIMENTO (TIMELINE)
   ========================================================================== */
.processo {
    padding: 6rem 0;
    background-color: var(--color-bg-white);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 1rem; /* Mais espaçoso no mobile */
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 2.25rem; /* Centralizado perfeitamente no marker de 2.5rem com 1rem padding */
    width: 2px;
    background: var(--color-secondary-light);
}

.timeline-step {
    position: relative;
    display: flex;
    margin-bottom: 2.5rem;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    flex-shrink: 0;
    width: 2.5rem; /* Menor no mobile */
    height: 2.5rem;
    background: var(--color-secondary);
    color: var(--color-bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 0 0 4px var(--color-bg-white);
    z-index: 2;
    position: relative;
    margin-right: 1rem; /* Menor no mobile */
}

.timeline-content {
    background: var(--color-bg-light);
    padding: 1.5rem; /* Mais espaçamento interno no mobile */
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    width: 100%;
    border-left: 4px solid var(--color-primary-light);
    transition: var(--transition-normal);
}

.timeline-step:hover .timeline-content {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.timeline-title {
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.timeline-text {
    color: var(--color-text-muted);
    font-size: 1rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: #0a192f;
    color: #a0aec0;
    padding-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.footer-logo-link {
    display: inline-block;
    background-color: var(--color-bg-white);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    max-width: 220px;
    transition: var(--transition-fast);
}

.footer-logo-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.1);
}

.footer-logo-img {
    width: 100%;
    height: auto;
    display: block;
}

.confidentiality-notice {
    background: rgba(93, 126, 93, 0.15);
    border: 1px solid rgba(93, 126, 93, 0.3);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    color: #e2e8f0;
    font-size: 0.95rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.confidentiality-notice i {
    color: var(--color-secondary);
    font-size: 1.25rem;
    margin-top: 0.1rem;
}

.footer-heading {
    color: var(--color-bg-white);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.footer-niche {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.footer-address p {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.footer-address i {
    color: var(--color-secondary);
    margin-right: 0.5rem;
}

.phone-contact {
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-bg-white);
}

.phone-contact i {
    color: var(--color-whatsapp);
}

.hours-contact {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #e2e8f0;
}

.hours-contact i {
    color: var(--color-secondary);
}

.map-placeholder {
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background-color: #1a202c;
}

.cnpj {
    margin-bottom: 1rem;
    font-family: monospace;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
}

/* ==========================================================================
   ANIMAÇÕES E RESPONSIVIDADE
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Tablet */
@media (min-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .logo-link {
        max-width: 240px; /* Tamanho confortável para desktop */
    }

    .header-btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.95rem;
        gap: 0.5rem;
    }

    .headline {
        font-size: 3rem;
    }
    
    .sub-headline {
        font-size: 1.25rem;
    }
    
    .countdown-timer {
        gap: 1rem;
    }
    
    .time-block {
        padding: 1rem 1.25rem;
        min-width: 80px;
    }
    
    .time-block span {
        font-size: 2.25rem;
    }
    
    .time-separator {
        font-size: 2rem;
    }
    
    .cta-button {
        padding: 1.25rem 2.5rem;
        font-size: 1.125rem;
    }
    

    
    .cards-layout {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* Desktop Larger Timeline */
@media (min-width: 992px) {
    .timeline {
        padding-left: 0;
    }
    
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .timeline-step {
        justify-content: center;
    }
    
    .timeline-step:nth-child(odd) {
        flex-direction: row-reverse;
    }
    
    .timeline-marker {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin-right: 0;
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.5rem;
    }
    
    .timeline-step:nth-child(odd) .timeline-content {
        margin-right: 50%;
        padding-right: 2.5rem;
        margin-left: 0;
        border-left: none;
        border-right: 4px solid var(--color-primary-light);
        text-align: right;
    }
    
    .timeline-step:nth-child(odd):hover .timeline-content {
        transform: translateX(-5px);
    }
    
    .timeline-step:nth-child(even) .timeline-content {
        margin-left: 50%;
        padding-left: 2.5rem;
        margin-right: 0;
    }
}
