/* --- 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 --- */
.top-bar { background: var(--accent-color); color: var(--white); padding: 5px 0; font-size: 0.9rem; }
.top-bar span { margin-right: 15px; }

.main-header { box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.logo h1 { color: var(--primary-color); }
.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 --- */
.hero {
    background: linear-gradient(rgba(13, 44, 84, 0.8), rgba(13, 44, 84, 0.8)), url('../img/hero-bg.jpg'); /* Precisa adicionar uma imagem aqui */
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
}
.hero-content { width: 100%; }
.hero h2 { font-size: 3rem; margin-bottom: 20px; }

/* --- Botões Gerais --- */
.btn { display: inline-block; padding: 10px 30px; margin: 5px; border-radius: 5px; font-weight: bold; transition: 0.3s; }
.btn-primary { background: var(--accent-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 --- */
.card-servico {
    background: white;
    padding: 30px;
    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;
}
.card-servico:hover { transform: translateY(-5px); }
.icon-servico { font-size: 3rem; color: var(--primary-color); margin-bottom: 20px; }

/* --- 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; } /* Simples hide para demo, ideal seria JS para menu hamburguer */
    .grid-2 { grid-template-columns: 1fr; }
    .hero h2 { font-size: 2rem; }
}

/* --- Estilos da Página de Detalhes --- */

/* Cabeçalho "Slim" para páginas internas */
.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 Grid: Conteúdo + Sidebar */
.layout-detalhe {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2 partes conteúdo, 1 parte sidebar */
    gap: 40px;
}

/* Imagem Principal */
.img-detalhe-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Texto */
.texto-descricao {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-top: 20px;
    white-space: pre-wrap; /* Ajuda a manter formatação */
}

/* Sidebar (Lateral) */
.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; /* Efeitinho de movimento */
}

.lista-contato-sidebar li {
    margin-bottom: 10px;
    color: #444;
}

/* Responsividade para Mobile */
@media (max-width: 768px) {
    .layout-detalhe {
        grid-template-columns: 1fr; /* Vira uma coluna só no celular */
    }
    .sidebar {
        order: 2; /* Joga a sidebar para baixo do conteúdo */
    }
}