/* ============================================================
   CONFIGURAÇÕES GERAIS E VARIÁVEIS
   ============================================================ */
:root {
    --roxo-principal: #6a1b9a;
    --laranja-destaque: #f39c12;
    --branco: #ffffff;
    --cinza-fundo: #f4f7f6;
    --texto-escuro: #333333;
    --texto-corpo: #444444;
}

body {
    background-color: var(--cinza-fundo);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

/* ============================================================
   CABEÇALHO (HEADER)
   ============================================================ */
.header-page {
    background-color: var(--roxo-principal);
    /* Padding inferior maior (100px) para acomodar a subida do card */
    padding: 50px 20px 100px 20px;
    color: var(--branco);
    border-radius: 0 0 40px 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    position: relative;
    display: flex;
    justify-content: center; /* Centraliza o grupo do título */
    align-items: center;
    min-height: 180px;
}

/* Logo na esquerda fixa */
.logo-left {
    position: absolute;
    left: 80px;
    height: 75px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Grupo Central: Título + Link de Voltar */
.header-center-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.header-page h1 {
    margin: 0;
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.btn-voltar-center {
    color: #ffca28 !important; /* Laranja suave */
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: 0.3s;
}

.btn-voltar-center:hover {
    text-decoration: underline;
    opacity: 0.9;
}

/* ============================================================
   CONTAINER E CARDS (SOBREPOSIÇÃO)
   ============================================================ */
.page-container {
    max-width: 1000px;
    /* Margem negativa de -60px para o efeito de subir no header */
    margin: -60px auto 60px; 
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.section-box {
    background: var(--branco);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Faixa Laranja dos Títulos */
.orange-bar {
    background-color: var(--laranja-destaque);
    padding: 22px;
    text-align: center;
}

.orange-bar h2 {
    margin: 0;
    color: var(--texto-escuro);
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
}

/* ============================================================
   CONTEÚDO E TEXTOS (CORREÇÃO DE ESPAÇAMENTO)
   ============================================================ */
.content-padding {
    padding: 45px; /* Aumentado para o texto não encostar nas bordas */
    line-height: 1.8;
    color: var(--texto-corpo);
    font-size: 1.15rem;
}

.content-padding p {
    margin-bottom: 20px;
}

/* Subtítulo da seção Desenvolvedor */
.dev-subtitle {
    display: inline-block;
    font-weight: 800;
    color: var(--roxo-principal);
    font-size: 1.4rem;
    margin-bottom: 15px;
    border-bottom: 3px solid var(--laranja-destaque);
    padding-bottom: 5px;
}

/* ============================================================
   GRID DE PILARES (MISSÃO/VISÃO/VALORES)
   ============================================================ */
.grid-pilares {
    display: flex;
    justify-content: space-around;
    padding: 40px;
    gap: 30px;
    text-align: center;
}

.pilar {
    flex: 1;
}

.pilar i {
    font-size: 2.8rem;
    color: var(--roxo-principal);
    margin-bottom: 15px;
}

.pilar h3 {
    color: var(--texto-escuro);
    margin-bottom: 10px;
}

/* ============================================================
   BOTÃO WHATSAPP E RODAPÉ
   ============================================================ */
.whats-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.whats-float:hover {
    transform: scale(1.05);
    background-color: #1ebe57;
}

/* ============================================================
   RESPONSIVIDADE (CELULAR)
   ============================================================ */
@media (max-width: 850px) {
    .header-page {
        flex-direction: column;
        padding-bottom: 110px;
        min-height: 220px;
    }
    
    .logo-left {
        position: static; /* Logo volta para o centro no celular */
        margin-bottom: 15px;
    }
    
    .header-page h1 {
        font-size: 1.9rem;
    }
    
    .grid-pilares {
        flex-direction: column;
    }
    
    .content-padding {
        padding: 25px; /* Reduz um pouco no celular para ganhar espaço */
    }
    
    .page-container {
        margin-top: -80px;
    }
}