/* 1. VARIÁVEIS DE COR E GERAIS
*/
:root {
    --primary-color: #007bff;     /* Azul Primário (Movimento/Saúde) */
    --secondary-color: #66bb6a;   /* Verde/Água (Cuidado/Acolhimento) */
    --accent-color: #ff6f00;      /* Laranja (Emoção/Destaque) */
    --light-bg: #f9f9f9;          /* Fundo Claro */
    --dark-text: #333;            /* Texto Escuro */
    --white: #ffffff;
}

/* 2. ESTILOS GERAIS (RESET, FONTES E TÍTULOS)
*/
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--dark-text);
    background-color: var(--light-bg);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 0;
}

h1, h2 {
    color: var(--primary-color);
    font-weight: 700;
}

.section-title {
    font-size: 2.2em;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.subtitle {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 40px;
}

/*
    3. ESTILOS DO CABEÇALHO (HEADER) - GRANDE E DINÂMICO
*/
#main-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease; /* Adiciona transição para o efeito suave */
}

#main-header .container {
    padding: 20px 0; /* Altura normal do header */
    transition: all 0.3s ease;
}

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

/* Tamanho do logo GRANDE, para maior impacto */
.logo {
    height: 100px; /* Aumentado de 80px para 100px */
    width: auto;
    transition: all 0.3s ease;
}

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

nav ul li a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 600;
    padding: 10px 20px;
    transition: color 0.3s, border-bottom 0.3s;
    text-transform: uppercase;
}

nav ul li a:hover {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

/* Botão de Acesso Restrito */
.btn-restrito {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-restrito:hover {
    background-color: #5cb85c;
}

/* ESTILOS APLICADOS QUANDO O JAVASCRIPT ADICIONA A CLASSE 'SHRINK' */
#main-header.shrink {
    padding: 0; /* Reduz o padding do header */
}

#main-header.shrink .container {
    padding: 10px 0; /* Reduz o padding do container */
}

#main-header.shrink .logo {
    height: 50px; /* Reduz o logo para um tamanho discreto */
}

/*
    4. ESTILOS DA SEÇÃO DE DESTAQUE (HERO)
    (O restante do CSS para Hero, Missão, Valores, Serviços e Rodapé é mantido da versão 2.0)
*/
.hero {
    background: linear-gradient(to right, #e0f7fa 0%, var(--primary-color) 100%);
    color: var(--dark-text);
    padding: 120px 0;
    text-align: left;
    border-bottom: 8px solid var(--accent-color);
}

.hero h1 {
    font-size: 3em;
    color: var(--dark-text);
    margin-bottom: 10px;
    max-width: 700px;
}

.hero .subtitle {
    color: #555;
    font-weight: 400;
    margin-bottom: 40px;
    font-size: 1.3em;
}

.btn-primary {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background: #e65100;
    transform: translateY(-2px);
}

.section-missao, .section-valores, .section-servicos, .section-contato {
    padding: 80px 0;
    text-align: center;
}

.missao-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    margin-top: 30px;
}

.pontos-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 30px;
    text-align: left;
}

.ponto-item {
    flex: 1;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.ponto-item:hover {
    background-color: #e3f2fd;
}

.ponto-item h3 {
    color: var(--accent-color);
    font-size: 1.2em;
    margin-top: 0;
}

.section-valores {
    background-color: #e3f2fd;
}

.valores-grid {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-top: 40px;
}

.valor-item {
    flex: 1;
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.valor-item:hover {
    transform: translateY(-5px);
}

.valor-item h3 {
    color: var(--secondary-color);
}

.section-servicos {
    background-color: var(--light-bg); /* Garante que a seção não seja branca se o footer for escuro */
}

.servicos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.servico-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    flex: 1 1 30%;
    text-align: left;
    min-width: 300px;
    border-left: 5px solid var(--primary-color);
}

.servico-item h3 {
    color: var(--primary-color);
    border-bottom: none;
}

.section-contato {
    background-color: var(--white);
}

.contato-detalhes {
    margin-top: 30px;
    font-size: 1.1em;
    padding: 30px;
    border: 2px dashed var(--secondary-color);
    border-radius: 12px;
    max-width: 600px;
    margin: 30px auto 0;
    text-align: left;
}

footer {
    background: #2c3e50;
    color: var(--white);
    text-align: center;
    padding: 25px 0;
    font-size: 0.9em;
}

/* RESPONSIVIDADE */
@media (max-width: 900px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        flex-direction: column; 
        align-items: center;
    }

    .btn-restrito {
        order: -1;
    }
    
    .logo {
        height: 80px; /* Reduz para 80px no mobile para caber melhor */
    }

    #main-header.shrink .logo {
        height: 40px; /* Redução para 40px no scroll em mobile */
    }

    .pontos-grid, .valores-grid, .servicos-grid {
        flex-direction: column;
        gap: 20px;
    }

    .hero h1 {
        font-size: 2.2em;
        text-align: center;
    }
}