/* ============================================================
   1. CONFIGURAÇÕES GERAIS E RESET
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #F5F5F5;
    line-height: 1.6;
}

/* ============================================================
   2. HEADER E MENU DE NAVEGAÇÃO
   ============================================================ */
.cabeca-container {
    background-color: #181050;
    padding: 20px 0;
    text-align: center;
}

.titulo-principal img {
    max-width: 550px;
    height: auto;
}

.menu {
    background-color: #181050;
    padding: 10px 0;
    border-bottom: 2px solid #00d4ff;
}

.menu ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
}

.menu ul li {
    margin: 5px 15px;
}

.menu ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    transition: color 0.3s;
}

.menu ul li a:hover {
    color: #00d4ff;
}

/* ============================================================
   3. TÍTULOS E ESTRUTURA DE GRIDS
   ============================================================ */
.titulos {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.titulos h1 {
    color: #181050;
    font-size: 32px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.titulos h1::after {
    content: "";
    width: 50px;
    height: 3px;
    background: #181050;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Grids Unificados */
.services-grid, .contabil-grid, .quem-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
	background-color: #F5F5F5;
}

/* ============================================================
   4. COMPONENTES: CARDS E DIVISÕES (O CORAÇÃO DO SITE)
   ============================================================ */
.card, .divisao, .quem {
    color: #181050;
    border: 3px solid #181050;
    border-radius: 15px;
    padding: 30px;
    flex: 1 1 280px;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

/* Estilo dos ícones e textos dentro do card */
.card i, .divisao i,{
    display: block;        /* Faz o ícone se comportar como um bloco */
    width: 100%;           /* Ocupa toda a largura do card */
    text-align: center;    /* Centraliza o desenho do ícone */
    font-size: 40px;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.card h2, .divisao h2 {
    margin-bottom: 15px;
    font-size: 22px;
    transition: color 0.3s ease;
}

/* --- EFEITO DE HOVER (CORREÇÃO DEFINITIVA) --- */
.card:hover, .divisao:hover, .quem:hover {
    transform: translateY(-10px);
    background-color: #181050 !important; /* Inverte para o Azul Escuro */
    box-shadow: 0 10px 20px rgba(24, 16, 80, 0.3);
}

/* Força todos os textos e ícones ficarem BRANCOS no hover */
.card:hover h2, .card:hover i, .card:hover p,
.divisao:hover h2, .divisao:hover i, .divisao:hover p,
.quem:hover h2, .quem:hover p {
    color: #FFFFFF !important;
}

/* Texto SAIBA MAIS que surge no hover */
.card:after {
    content: "CLIQUE PARA VER MAIS";
    display: block;
    margin-top: 15px;
    font-weight: bold;
    font-size: 12px;
    opacity: 0;
    color: #FFFFFF !important;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(10px);
}

.card:hover::after, .divisao:hover::after {
    opacity: 1;
    transform: translateY(0);
	color: #FFFFFF !important;
}

/* ============================================================
   5. FORMULÁRIO DE CONTATO E BANNERS
   ============================================================ */
.container-contato {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-top: 5px solid #181050;
}

.campo { margin-bottom: 15px; }
label { display: block; margin-bottom: 5px; color: #666; font-weight: bold; }

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    width: 100%;
    padding: 15px;
    background-color: #181050;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s;
}

button:hover {
    background-color: #00d4ff;
    color: #181050;
}

/* ============================================================
   6. RODAPÉ E REDES SOCIAIS
   ============================================================ */
.footer {
    background-color: #181050;
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-top: 50px;
}

.social-icons-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
}

.social-icon {
    color: white;
    font-size: 28px;
    transition: transform 0.3s, color 0.3s;
}

.social-icon:hover {
    color: #00d4ff;
    transform: scale(1.2);
}

.credits {
    font-size: 14px;
    opacity: 0.8;
}

/* ============================================================
   7. RESPONSIVIDADE (MOBILE)
   ============================================================ */
@media (max-width: 768px) {
    .menu ul { flex-direction: column; align-items: center; }
    .titulo-principal img { max-width: 90%; }
    .card, .divisao { flex: 1 1 100%; }
}

/* Ajuste final de tipografia global para evitar conflitos */
h2 { text-align: center; }