/*
 * talks/style.css
 * Arquivo de estilos unificado para o website DTech - Tecnologia e Consultoria.
 * Contém estilos globais, reset, header, footer e estilos específicos para todas as seções.
 */

/* ========================================================================= */
/* 1. VARIÁVEIS E RESET BÁSICO */
/* ========================================================================= */

/* Variáveis CSS para Cores e Fontes */
:root {
    --color-primary: #1e3a8a; /* Azul Escuro do DTech (principal) */
    --color-secondary: #3b82f6; /* Azul Secundário/Claro (destaque e CTAs) */
    --color-dark: #1f2937; /* Azul Marinho/Quase Preto (footer) */
    --color-light: #f3f4f6; /* Cinza Claro (fundo de seções) */
    --color-white: #ffffff;
    --font-main: 'Montserrat', sans-serif;
}

/* Reset Básico para remover margens e paddings padrão dos navegadores */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--color-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--color-secondary);
}

/* Container centraliza o conteúdo principal da página */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Botão Call to Action (CTA) padrão */
.cta-button {
    display: inline-block;
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #2563eb;
}

/* ========================================================================= */
/* 2. HEADER E NAVEGAÇÃO */
/* ========================================================================= */

.header {
    background-color: var(--color-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-container {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.logo-container img {
    height: 40px;
    margin-right: 10px;
}

.nav-links a {
    margin-left: 25px;
    color: var(--color-dark);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--color-secondary);
}

/* ESTILOS DE BOTÕES DE AUTENTICAÇÃO NO HEADER */
.nav-links .cta-button.login, .nav-links .cta-button.nav {
    margin-left: 10px;
    padding: 8px 15px;
    font-size: 0.9rem;
    color: var(--color-white); /* CRÍTICO: Garante o texto branco em fundos coloridos */
    text-transform: uppercase;
}

.nav-links .cta-button.login {
    background-color: var(--color-primary);
}

.nav-links .cta-button.nav {
    background-color: var(--color-secondary);
}


/* ========================================================================= */
/* 3. FOOTER (RODAPÉ) */
/* ========================================================================= */

.footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 40px 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 35px;
    /* FILTRO DE COR REMOVIDO: O Icone.png deve ser salvo na cor desejada (branco/claro) */
}

.footer h4 {
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-links a, .footer-contact p {
    display: block;
    color: #9ca3af;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-secondary);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
    color: #6b7280;
}

/* ========================================================================= */
/* 4. ESTILOS GERAIS DE PÁGINAS E SEÇÕES */
/* ========================================================================= */

/* Estilo para banners de páginas internas (Sobre, Contato, etc.) */
.page-hero {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 60px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.content-section, 
.section-about, 
.services-section, 
.cases-section, 
.contact-section,
.privacy-section,
.terms-section {
    padding: 60px 0;
}

.last-update {
    font-style: italic;
    color: #6b7280;
    margin-bottom: 40px;
    text-align: center;
}


/* ========================================================================= */
/* 5. ESTILOS ESPECÍFICOS: INDEX.HTML */
/* ========================================================================= */

/* Hero Section (Banner Principal) */
.hero {
    /* Imagem de fundo deve ser definida separadamente no CSS ou inline no HTML */
    background: var(--color-dark) center/cover no-repeat; 
    color: var(--color-white);
    padding: 100px 0;
    position: relative;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(30, 58, 138, 0.7); /* Overlay azul escuro */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
}

/* Pilares de Soluções */
.solutions-pills {
    background-color: var(--color-primary);
    padding: 60px 0;
    text-align: center;
}

.solutions-pills h2 {
    color: var(--color-white);
    margin-bottom: 40px;
    font-size: 2rem;
}

.pills-grid {
    display: flex; /* CORREÇÃO: Layout Flexbox para 3 colunas */
    justify-content: space-around;
    gap: 20px;
}

.pill-card {
    background-color: var(--color-white);
    color: var(--color-dark);
    padding: 30px;
    border-radius: 8px;
    width: 30%; /* Largura para 3 colunas em tela cheia */
    transition: transform 0.3s, box-shadow 0.3s;
}

.pill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.pill-card i {
    font-size: 3rem;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.pill-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.pill-card p {
    font-size: 0.9rem;
    color: #4b5563;
}

/* ========================================================================= */
/* 6. ESTILOS ESPECÍFICOS: SOBRE.HTML (e About Teaser da Home) */
/* ========================================================================= */

.section-about h2 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-light);
    padding-bottom: 10px;
}

/* Grid base para a seção Sobre Nós e o teaser da Home */
.about-grid {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-image {
    width: 40%; 
    flex-shrink: 0;
    /* NOTE: A altura fixa do about-image.img está no <style> do index.html */
}

.about-image img {
    width: 100%;
    /* height: auto; -- Altura definida localmente no index.html */
    object-fit: cover;
    border-radius: 8px;
}

.about-text {
    width: 60%;
}

.about-text h2 {
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Perfis (dentro de sobre.html) */
.duque-profile {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    align-items: flex-start;
}

.profile-img-container {
    width: 300px;
    flex-shrink: 0;
    text-align: center;
}

.profile-img-container img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.expertise-list {
    margin-top: 15px;
    list-style: none;
    padding-left: 0;
}

.expertise-list li {
    padding-left: 25px;
    position: relative;
}

.expertise-list li::before {
    content: "\f00c";
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--color-secondary);
    position: absolute;
    left: 0;
}

/* ========================================================================= */
/* 7. ESTILOS ESPECÍFICOS: SERVICOS.HTML / ENERGIA.HTML, etc. */
/* ========================================================================= */

.pillar-card {
    background-color: var(--color-light);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    border-left: 5px solid var(--color-secondary);
}

.pillar-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px dashed #d1d5db;
}

.pillar-header i {
    font-size: 3rem;
    color: var(--color-primary);
    margin-right: 20px;
}

/* Listagem de serviços (dentro de servicos.html) */
.service-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    list-style: none;
    padding-left: 0;
}

.service-list-grid li {
    background-color: var(--color-white);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-weight: 600;
    position: relative;
    padding-left: 30px;
}

.service-list-grid li::before {
    content: "\f058";
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--color-secondary);
    position: absolute;
    left: 10px;
    top: 20px;
}

/* Seção de Serviço Individual (Subpáginas de Serviço) */
.service-feature {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px dashed var(--color-light);
}

.service-feature:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-image {
    width: 40%;
    flex-shrink: 0;
}

.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.feature-text {
    width: 60%;
    padding: 0 40px;
}

/* ========================================================================= */
/* 8. ESTILOS ESPECÍFICOS: CASES.HTML */
/* ========================================================================= */

.cases-filter {
    text-align: center;
    margin-bottom: 40px;
}

.filter-button {
    background-color: var(--color-light);
    color: var(--color-dark);
    border: 1px solid var(--color-light);
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-button:hover, .filter-button.active {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.case-card {
    border: 1px solid var(--color-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.case-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--color-secondary);
}

/* ========================================================================= */
/* 9. ESTILOS ESPECÍFICOS: CONTATO.HTML (CORREÇÃO DE LAYOUT) */
/* ========================================================================= */

.contact-grid {
    display: flex; /* CORREÇÃO: Garante o layout de duas colunas */
    gap: 40px;
    align-items: flex-start;
}

/* Coluna do Formulário */
.contact-form-col {
    flex: 3;
    background-color: var(--color-light);
    padding: 30px;
    border-radius: 8px;
}

/* Coluna das Informações de Contato */
.contact-info-col {
    flex: 2;
    padding: 20px 0;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
}

/* Classes para alinhamento horizontal dos campos no formulário */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1; /* Divide o espaço da linha igualmente */
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px; /* Valor reduzido para espaçamento compacto */
    font-size: 1.1rem;
}

/* ========================================================================= */
/* 10. RESPONSIVIDADE (MEDIA QUERIES) */
/* ========================================================================= */

@media (max-width: 992px) {
    .pills-grid {
        flex-wrap: wrap;
    }
    .pill-card {
        width: 48%; /* 2 cards por linha em telas médias */
    }
}

@media (max-width: 768px) {
    /* Header e Navegação */
    .navbar {
        flex-direction: column;
        padding-bottom: 10px;
    }
    .nav-links {
        margin-top: 15px;
    }
    .nav-links a {
        margin: 0 8px;
    }

    /* Pilares e Grid */
    .pills-grid {
        flex-direction: column;
        align-items: center;
    }
    .pill-card {
        width: 90%;
    }
    
    /* Sobre Nós e Features (Todas as Seções de Conteúdo) */
    .about-grid, .duque-profile, .service-feature, .service-feature:nth-child(even), .contact-grid {
        flex-direction: column;
    }
    .about-image, .about-text, .feature-image, .feature-text, .contact-form-col, .contact-info-col {
        width: 100%;
        padding: 0;
    }
    .feature-text {
        margin-top: 20px;
    }

    /* Contato (Formulário) */
    .form-row {
        flex-direction: column; /* Quebra as linhas do formulário em mobile */
        gap: 0;
    }

    /* Rodapé */
    .footer-grid {
        flex-direction: column;
        text-align: center;
    }
}