/* --- Variáveis e Reset --- */
:root {
    --primary-color: #0d2c54; /* Azul Naval Escuro */
    --accent-color: #f39c12;  /* Laranja Construção */
    --text-color: #333;
    --light-bg: #f4f4f4;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

body { color: var(--text-color); line-height: 1.6; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

a { text-decoration: none; }
ul { list-style: none; }

/* --- Header e Top Bar --- */
.top-bar { background: var(--primary-color); color: var(--white); padding: 8px 0; font-size: 0.9rem; }
.main-header { box-shadow: 0 2px 5px rgba(0,0,0,0.1); background: var(--white); }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.logo h1 { color: var(--primary-color); font-size: 1.8rem; margin: 0; }
.logo span { color: var(--accent-color); }

.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: var(--primary-color); font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: var(--accent-color); }

.btn-destaque { background: var(--primary-color); color: white !important; padding: 8px 20px; border-radius: 5px; }
.btn-destaque:hover { background: var(--accent-color); }

/* --- Hero Section (Atualizada para fundo Azul Sólido) --- */
.hero {
    /*background-color: var(--primary-color); <-- Você pode remover ou comentar esta linha */  
    background-image: url('../img/fundo-hero.jpeg'); /* Caminho para a sua imagem */
    background-size: cover; /* Garante que a imagem cubra toda a seção */
    background-position: center; /* Centraliza a imagem */
    background-repeat: no-repeat; /* Impede que a imagem se repita */
    height: 500px;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
}
.hero-content { width: 100%; }
.hero h3 { font-size: 2.5rem; margin-bottom: 20px; line-height: 1.3; }
.hero p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 30px; }

/* --- Botões Gerais --- */
.btn { display: inline-block; padding: 10px 30px; margin: 5px; border-radius: 5px; font-weight: bold; transition: 0.3s; border: none; cursor: pointer; }
.btn-primary { background: var(--primary-color); color: white; }
.btn-outline { border: 2px solid white; color: white; }
.btn-primary:hover, .btn-outline:hover { opacity: 0.8; }
.btn-whatsapp { background: #25D366; color: white; }

/* --- Seções e Grid --- */
.section-padding { padding: 60px 0; }
.bg-light { background: var(--light-bg); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.section-title { text-align: center; font-size: 2rem; color: var(--primary-color); margin-bottom: 40px; }

/* --- Cards de Serviço / Obras --- */
.card-servico {
    background: white;
    text-align: center;
    border-bottom: 4px solid var(--accent-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border-radius: 8px;
    overflow: hidden; /* Garante que a imagem não vaze dos cantos arredondados */
    height: 100%;
}
.card-servico:hover { transform: translateY(-5px); }
.card-content { padding: 25px 20px; }
.card-content h4 { margin-bottom: 10px; color: var(--primary-color); }
.card-content p { color: #555; font-size: 0.95rem; margin-bottom: 15px; }

/* --- Footer --- */
.main-footer { background: var(--primary-color); color: white; text-align: center; padding: 20px 0; margin-top: auto; }

/* --- Responsividade (Mobile) --- */
@media(max-width: 768px) {
    .nav-links { display: none; }
    .grid-2 { grid-template-columns: 1fr; }
    .hero h3 { font-size: 1.8rem; }
    
}

/* --- Estilos da Página de Detalhes (Mantidos) --- */
.page-header { background: var(--primary-color); color: white; padding: 40px 0; margin-bottom: 40px; border-bottom: 5px solid var(--accent-color); }
.page-header h1 { font-size: 2rem; }
.page-header p { opacity: 0.8; font-size: 0.9rem; margin-top: 5px; }
.layout-detalhe { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.img-detalhe-wrapper img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.texto-descricao { font-size: 1.1rem; color: #555; line-height: 1.8; margin-top: 20px; }
.widget { margin-bottom: 30px; padding: 20px; border: 1px solid #eee; border-radius: 5px; }
.widget h4 { margin-bottom: 15px; border-bottom: 2px solid var(--accent-color); padding-bottom: 10px; color: var(--primary-color); }
.lista-sidebar li { border-bottom: 1px solid #f4f4f4; padding: 10px 0; }
.lista-sidebar a { color: #666; display: block; transition: 0.2s; }
.lista-sidebar a:hover { color: var(--accent-color); padding-left: 5px; }
.lista-contato-sidebar li { margin-bottom: 10px; color: #444; }

@media (max-width: 768px) {
    .layout-detalhe { grid-template-columns: 1fr; }
    .sidebar { order: 2; }
}

/* --- Botão Flutuante WhatsApp --- */
.whatsapp-flutuante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366; /* Verde oficial do WhatsApp */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.2);
    z-index: 9999; /* Garante que fique por cima de tudo */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.whatsapp-flutuante:hover {
    transform: scale(1.1); /* Dá um zoomzinho ao passar o mouse */
    box-shadow: 2px 2px 20px rgba(0,0,0,0.3);
    color: white;
}

/* Ajuste para ficar um pouco menor na tela do celular */
@media (max-width: 768px) {
    .whatsapp-flutuante {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
}