/* ============================================================
   ARQUIVO COMPLETO E DEFINITIVO - JS CONSTRUÇÕES
   (Baseado no Modelo Temac + Correção de Logo)
   ============================================================ */

/* 1. IMPORTANDO FONTE MODERNA (ROBOTO) */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

:root {
    --cor-primaria: #D32F2F; /* Vermelho Engenharia */
    --cor-escura: #1a1a1a;
    --cor-cinza-claro: #f4f6f8;
    --branco: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Roboto', sans-serif;
    color: #444;
    line-height: 1.6;
    background-color: var(--branco);
}

/* --- 2. TOP BAR (Barra Preta do Topo) --- */
.top-bar {
    background-color: var(--cor-escura);
    color: #ccc;
    font-size: 0.85rem;
    padding: 10px 0;
}
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}
.top-bar-content {
    display: flex;
    justify-content: flex-end; /* Alinha à direita */
    gap: 20px;
}

/* --- 3. HEADER (Logo e Menu) --- */
header {
    background: var(--branco);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 1000;
    height: 100px; /* Altura fixa para a barra */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%; /* Ocupa os 100px do header */
}

/* === CORREÇÃO DO LOGO AQUI === */
.logo-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-container a {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-img {
    /* O SEGREDO: Altura máxima para não estourar a barra */
    max-height: 80px; 
    width: auto;      /* Largura automática para não distorcer */
    display: block;
}

/* --- 4. MENU DE NAVEGAÇÃO --- */
nav ul { display: flex; list-style: none; gap: 30px; }
nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: 0.3s;
}
nav a:hover { color: var(--cor-primaria); }

nav a.btn-orcamento {
    background: var(--cor-primaria);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
}

/* --- 5. HERO (Banner Principal) --- */
.hero {
    background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=1920&auto=format&fit=crop') no-repeat center center/cover;
    height: 600px;
    display: flex;
    align-items: center;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute; top:0; left:0; right:0; bottom:0;
    /* Degradê suave para ler o texto */
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
}
.hero-content {
    position: relative; z-index: 2;
    color: white;
    max-width: 600px;
}
.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}
.btn-hero {
    background: var(--cor-primaria);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 2px;
    display: inline-block;
}

/* --- 6. SEÇÕES GERAIS --- */
.section-padding { padding: 80px 0; }
.bg-cinza { background-color: var(--cor-cinza-claro); }

.titulo-centro {
    text-align: center; margin-bottom: 60px;
}
.titulo-centro h2 {
    font-size: 2.2rem;
    color: var(--cor-escura);
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}
.titulo-centro h2::after {
    content: '';
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 50px; height: 3px; background: var(--cor-primaria);
}

/* --- 7. CARDS DE SERVIÇOS (Estilo Limpo) --- */
.grid-servicos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.card-servico {
    background: white;
    padding: 40px 30px;
    text-align: center;
    transition: 0.3s;
    border-bottom: 3px solid transparent;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.card-servico:hover {
    transform: translateY(-5px);
    border-bottom: 3px solid var(--cor-primaria);
}
.icon-fake {
    font-size: 2rem; margin-bottom: 20px; display: block;
}
.card-servico h3 {
    margin-bottom: 15px; font-size: 1.3rem; color: var(--cor-escura);
}
.card-servico p, .card-servico ul {
    font-size: 0.95rem; color: #666; text-align: left;
}
.card-servico ul { margin-top: 10px; padding-left: 20px; }

/* --- 8. LISTA DIFERENCIAIS --- */
.lista-diferenciais {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
    font-size: 1.1rem;
}
.lista-diferenciais li {
    display: flex; align-items: center;
    background: white; padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.bolinha {
    width: 10px; height: 10px; background: var(--cor-primaria);
    border-radius: 50%; margin-right: 15px;
}

/* --- 9. RODAPÉ --- */
footer { background: #111; color: #888; padding: 60px 0; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer h4 { color: white; margin-bottom: 20px; font-size: 1.1rem; }

/* --- 10. RESPONSIVO (CELULAR) --- */
@media (max-width: 768px) {
    header, .header-inner { height: auto; }
    .header-inner {
        flex-direction: column;
        padding: 15px 0;
        gap: 15px;
    }
    .logo-img { max-height: 60px; }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .hero h1 { font-size: 2.2rem; }
    .lista-diferenciais { grid-template-columns: 1fr; }
}
