:root {
    --bg-base: #0a0c10;
    --bg-card: #161a22;
    --text-main: #f0f6fc;
    --text-muted: #8b949e;
    --accent: #3b82f6;
    --accent-hover: #104ed4;
    --border-color: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-base);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================================
   ESTILOS GERAIS (USADOS NAS DUAS PÁGINAS)
   ========================================= */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem;
}
/* =========================================
   CABEÇALHO PRINCIPAL (HEADER)
   ========================================= */

.main-header {
    width: 100%;
    padding: 2rem 0 0 0; /* Adiciona um respiro na parte superior da página */
}

.header-container {
    display: flex;
    justify-content: left; 
    align-items: left;
}

.brand-link {
    display: flex;
    align-items: center; /* Alinha o ícone e o texto perfeitamente pelo centro vertical */
    gap: 0.8rem; /* Espaçamento entre o ícone e o nome da empresa */
    text-decoration: none;
}

/* Estilo para a nova logo/ícone (logo_expert.png) */
.brand-icon {
    height: 50px; /* Deixei levemente maior que o texto, ajuste se necessário */
    width: auto;
    transition: transform 0.3s ease; /* Prepara para a animação do hover */
}

/* Estilo para a imagem com o texto (marca_preto.png) */
.brand-logo {
    height: 55px; 
    width: auto;
    mix-blend-mode: screen; /* Continua removendo o fundo preto */
    opacity: 0.9; 
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.brand-link:hover .brand-icon {
    transform: scale(1.05); /* O ícone cresce um pouquinho */
}

.brand-link:hover .brand-logo {
    opacity: 1; /* O texto brilha 100% */
    transform: scale(1.02); /* O texto cresce de forma mais sutil */
}

.brand-logo:hover {
    opacity: 1; /* Brilho total ao passar o mouse */
    transform: scale(1.02); /* Leve efeito de aproximação interativo */
}

/* Reduzido de 5rem para 2.5rem */
.section-padding {
    padding: 1.5rem 1.0rem;
}

.text-center {
    text-align: center;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    margin-top: 1rem;
    text-align: center;
}

.btn:hover {
    background-color: var(--accent-hover);
}

.btn-ghost {
    background-color: transparent;
    border: 1px solid var(--border-color);
    margin-left: 1rem;
}

.btn-ghost:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

h1, h2, h3 {
    color: var(--text-main);
}

/* =========================================
   ESTILOS DA PÁGINA PRINCIPAL (INDEX)
   ========================================= */

/* Reduzido de 8rem 2rem 5rem para 4rem 2rem 2.5rem */
.hero{
    text-align: center;
    padding: 2rem 2rem 4rem; /* Um leve respiro a mais para acomodar bem a imagem */
    
    /* --- EFEITO SOFISTICADO DE IMAGEM DE FUNDO --- */
    background-image: 
        /* Camada 1: Máscara escura que clareia no topo e funde com o site na base */
        linear-gradient(to bottom, rgba(10, 12, 16, 0.5) 0%, rgba(10, 12, 16, 1) 100%),
        /* Camada 2: A sua imagem de fundo */
        url('resource/fundo.png');
        
    background-size: cover;          /* Garante que a imagem preencha todo o espaço sem deixar bordas em branco */
    background-position: center;     /* Centraliza a imagem para focar na melhor parte dela */
    background-repeat: no-repeat;    /* Impede que a imagem se repita como um mosaico */

}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

/* Reduzida margem inferior de 3rem para 1.5rem */
.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

/* Reduzido de 4rem para 2rem */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Grid de Serviços de IA */
.ai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem; /* Reduzido de 3rem para 1.5rem */
}

.ai-item:hover {
    transform: scale(1.02);
    
}

.ai-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.ai-item svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.ai-item:hover svg {
       color: var(--accent-hover);
}

.ai-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

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

/* Logos */
/* Reduzido de 3rem para 1.5rem */
.trusted-by {
    text-align: center;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.trusted-by p {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem; /* Reduzido de 2rem para 1rem */
}

.logo-row img {
    height: 100px;          /* Força a altura exata para todas as imagens */
    width: auto;           /* Ajusta a largura automaticamente para não distorcer */
    max-width: 120px;      /* Evita que logos muito compridas passem desse limite */
    object-fit: contain;   /* Garante que a imagem caiba perfeitamente no espaço */
    
    /* Filtro para deixar as logos cinzas/brancas e padronizadas */
    filter: grayscale(0%) brightness(100%); 
    transition: filter 0.3s ease, transform 0.3s ease;
    cursor: default;
}

.logo-row img:hover {
    filter: grayscale(0%) brightness(100%);
    transform: scale(1.1); 
}

/* Seção de Autoridade */
.authority-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem; /* Reduzido de 4rem para 2rem */
    align-items: center;
}

.authority-grid h2 {
    font-size: 3rem;
    line-height: 1.2;
}

.authority-grid p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Cards (Core Capabilities) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.card .svg-icon {
    width: 40px;
    height: 40px;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

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

/* Diferenciais */
/* =========================================
   DIFERENCIAIS (WHY PARTNER)
   ========================================= */

.differentiators {
    /* Define a imagem como fundo com uma película escura para garantir a legibilidade */
    background-image: 
        linear-gradient(to right, rgba(10, 12, 16, 0.95) 0%, rgba(10, 12, 16, 0.4) 100%),
        url('resource/why2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Adiciona bordas sutis para separar das outras seções */
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.diff-header {
    text-align: left;
    margin-bottom: 2rem;
}

.diff-list {
    list-style: none;
    max-width: 600px; /* Limita a largura do texto para ele não cobrir a imagem inteira */
    margin: 0; 
}

.diff-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.diff-list svg {
    width: 32px;
    height: 32px;
    color: var(--accent);
    flex-shrink: 0;
}

.diff-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.diff-content p {
    color: var(--text-main); /* Cor mais clara (branca) para o texto contrastar bem com o fundo */
    font-size: 1.1rem;
}
/* CTA Final */
/* Reduzido de 6rem para 3rem */
.final-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(to top, var(--bg-card), var(--bg-base));
    border-top: 1px solid var(--border-color);
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem; /* Reduzido de 2rem para 1rem */
}

/* =========================================
   ESTILOS DA PÁGINA DE CONTATO (CONTACT.HTML)
   ========================================= */

.contact-container {
    max-width: 700px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.navbar {
    padding: 2rem;
    text-align: left;
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--text-main);
}

/* Reduzido de 3rem para 1.5rem */
.contact-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.contact-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-header p.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.contact-form {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background-color: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background-color: #11141a;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.char-counter {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* =========================================
   ESTILOS DO BOTÃO FLUTUANTE
   ========================================= */

.btn-contato-flutuante {
    position: fixed;
    top: 50%;
    right: 0;
    z-index: 9999;
    
    /* --- CORREÇÕES GEOMÉTRICAS AQUI --- */
    transform-origin: bottom right; /* Muda a "dobradiça" para o canto inferior direito */
    transform: rotate(-90deg) translateX(50%); /* Rotaciona e depois centraliza perfeitamente no eixo vertical */
    
    /* Estilização Visual Mantida */
    background-color: var(--accent); 
    color: #ffffff;
    padding: 12px 24px;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease-in-out, padding 0.2s ease-in-out;
}

.btn-contato-flutuante:hover {
    background-color: var(--accent-hover);
    padding-bottom: 28px; 
}

/* =========================================
   RESPONSIVIDADE (MOBILE)
   ========================================= */

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .authority-grid { grid-template-columns: 1fr; gap: 2rem; }
    .contact-form { padding: 2rem; }
    .contact-header h1 { font-size: 2rem; }
    .btn-ghost { margin-left: 0; margin-top: 1rem; display: block; }
}