/* CONFIGURAÇÕES GLOBAIS E CORES */
:root {
    --primary-color: #007bff; /* Azul de Destaque */
    --secondary-color: #0056b3; /* Azul Escuro */
    --text-color: #333;
    --light-bg: #f4f4f4; /* Cinza Claro (Fundo) */
    --dark-bg: #44617e; /* Azul Marinho (Industrial) */
    --white: #ffffff;
    --white-contrast: #87a1cd; /* Cinza claro para contraste em fundos escuros */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.padding-section {
    padding: 80px 0;
}

h1, h2, h3 {
    color: var(--dark-bg);
    margin-bottom: 20px;
    text-align: center;
}

/* BOTÃO DE AÇÃO (CTA) */
.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--secondary-color);
}

.cta-button.large {
    padding: 18px 40px;
    font-size: 1.2em;
}

.secondary-cta {
    background: #6c757d; /* Cinza Escuro para o segundo botão */
}

.secondary-cta:hover {
    background: #5a6268;
}

/* CABEÇALHO */
header {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 2px solid var(--primary-color); 
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ESTILO DO TEXTO DO LOGO */
.logo-text {
    font-size: 2em;
    font-weight: 800;
    color: var(--dark-bg);
    margin: 0;
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 30px;
}

header nav ul li a {
    text-decoration: none;
    color: var(--dark-bg);
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: var(--primary-color);
}

/* SEÇÃO HERO */
#hero {
    background: url('hero-bg.jpg') no-repeat center center/cover; 
    background-color: var(--dark-bg);
    color: var(--white-contrast);
    text-align: center;
    padding: 150px 0;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: 3em;
    margin-bottom: 15px;
    color: var(--white-contrast);
}

.hero-subtitle {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: var(--white-contrast);
}

/* CATEGORIAS (SERVIÇOS) */
.categorias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.categoria-item {
    padding: 25px;
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

.categoria-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.categoria-item h3 {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* PRODUTOS EM DESTAQUE (3 PRODUTOS E CENTRALIZADOS) */
#destaques .container {
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    width: 100%;
    max-width: 900px; /* Limita a largura do grid para centralizar */
}

.produto-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background: var(--white);
    text-align: center;
}

.produto-item img {
    width: 100%;
    height: 250px; 
    object-fit: cover;
    display: block;
}

.produto-item h4 {
    margin: 15px 0 5px;
    color: var(--dark-bg);
}

.produto-item p {
    padding-bottom: 15px;
    font-size: 0.9em;
    color: #666;
}

.text-center {
    text-align: center;
}

/* SEÇÃO GALERIA DE CATÁLOGOS (CARROSSEL) */
.dark-bg {
    background: var(--dark-bg);
    color: var(--white-contrast);
    text-align: center;
}

.dark-bg h2 {
    color: var(--white);
}

/* CARROSSEL ADAPTADO: Usa flexbox e scroll horizontal */
.galeria-catalogo-grid {
    display: flex;
    overflow-x: scroll; /* Habilita a barra de rolagem horizontal */
    scroll-snap-type: x mandatory; 
    gap: 20px;
    padding-bottom: 20px; 
    margin-top: 30px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
/* Esconde a barra de rolagem no Chrome/Safari */
.galeria-catalogo-grid::-webkit-scrollbar {
    display: none; 
}

.catalogo-item {
    min-width: 250px; 
    scroll-snap-align: start;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s;
}

.catalogo-item:hover {
    transform: scale(1.02);
}

.catalogo-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.catalogo-item p {
    padding: 10px 0;
    color: var(--dark-bg);
    font-weight: bold;
    font-size: 0.9em;
}

/* SEÇÃO DE CONTATO (SIMPLIFICADA) */
.contato-final {
    text-align: center;
}

.contato-final h2 {
    margin-bottom: 10px;
}

.botoes-contato {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* RODAPÉ */
footer {
    background: #333;
    color: var(--white-contrast);
    text-align: center;
    padding: 25px 0;
    font-size: 0.9em;
}

/* --- ESTILOS PARA MODAL/LIGHTBOX --- */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.95);
}

.modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--white-contrast);
    padding: 15px 0;
    height: 100px;
}

/* Animação */
.modal-content, #caption {  
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {-webkit-transform:scale(0)} 
    to {-webkit-transform:scale(1)}
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/* Botão de Fechar */
.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* MEDIA QUERIES (RESPONSIVIDADE) */
@media (max-width: 992px) {
    .categorias-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .produtos-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2em;
    }
    .categorias-grid, .produtos-grid {
        grid-template-columns: 1fr;
    }
    .produtos-grid {
        max-width: 100%;
    }
    header .container {
        flex-direction: column;
    }
    header nav ul {
        flex-direction: column;
        margin-top: 10px;
        align-items: center;
    }
    header nav ul li {
        margin: 5px 0;
    }
    .botoes-contato {
        flex-direction: column;
    }
    .modal-content {
        width: 100%;
        padding-top: 40px;
    }
}