/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ------------------------------------ */
/* ESTILOS GERAIS DE IMAGEM */
/* ------------------------------------ */
img {
    max-width: 100%;
    height: 300px; 
    display: block; 
}

/* ESTILO DO CABEÇALHO (HEADER) */
.header {
    background-color: #1a1a1a; 
    color: #fff;
    padding: 10px 0; 
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link .logo-img {
    max-width: 80px; 
    height: auto;
}

/* NAVEGAÇÃO */
.nav-menu ul {
    list-style: none;
    display: flex;
}

.nav-menu ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s;
}

.nav-menu ul li a:hover {
    background-color: #333;
}

/* MENU HAMBURGER */
.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* BOTÕES GERAIS */
.btn {
    display: inline-block;
    background-color: #1a1a1a; 
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #333;
}

/* SEÇÕES GERAIS */
section {
    padding: 60px 0;
    text-align: center;
}

h1, h2, h3 {
    margin-bottom: 20px;
}

h2 {
    font-size: 2rem;
    color: #1a1a1a;
    border-bottom: 3px solid #1a1a1a;
    display: inline-block;
    padding-bottom: 8px;
    position: relative;
}

/* Linha do título mais elegante */
h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #1a1a1a;
}

/* SEÇÃO HERO */
.hero {
    background: linear-gradient(#00000086, rgba(0, 0, 0, 0.756)), url('imagens/hero.jpg') no-repeat center center/cover; 
    background-color: #333333f1;
    color: #fff;
    display: flex;
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    text-align: center;
    padding: 100px 0;
    min-height: 45vh;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content {
    max-width: 800px; 
}

/* ------------------------------------ */
/* MELHORIAS VISUAIS NOS TEXTOS */
/* ------------------------------------ */
.split-layout .text-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: justify;          /* Justificado fica mais profissional em blocos de texto */
    hyphens: auto;                /* Quebra de sílabas automática */
}

.split-layout .text-content p:last-child {
    margin-bottom: 0;
}

/* Títulos das categorias de produto mais destacados */
.product-category h3 {
    font-size: 1.7rem;
    margin: 0 0 25px 0;
    color: #1a1a1a;
}

/* Textos dos cards mais legíveis */
.card-text h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.card-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* ------------------------------------ */
/* SPLIT-LAYOUT */
/* ------------------------------------ */
.split-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 40px;
    margin-top: 30px;
}

.split-layout.reverse {
    flex-direction: row-reverse;
}

.split-layout .text-content {
    flex: 1;
    padding: 20px 0; 
}

.split-layout .image-content {
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content: center;
}

.split-layout .image-content img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    object-fit: cover; 
    transition: transform 0.3s ease;
}

.split-layout .image-content img:hover {
    transform: scale(1.03);
}

/* PRODUTOS */
.products {
    background-color: #f4f4f4;
}

.product-category {
    margin-bottom: 50px;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.product-grid {
    display: flex;
    gap: 25px;
    margin-top: 20px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}

.product-card {
    flex: 1 1 45%;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

.card-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .card-img img {
    transform: scale(1.08);
}

.card-text {
    padding: 20px;
}

/* ====================== */
/* SEÇÃO FALE CONOSCO – CENTRALIZADA NO MEIO */
/* ====================== */
.contact {
    background: linear-gradient(#00000086, rgba(0, 47, 135, 0.555)), url('imagens/footer.jpg') no-repeat center center/cover;
    background-color: #1c1a1a;
    color: #ffffff;
    padding: 100px 20px;
    text-align: center;                    /* Centraliza todo o conteúdo */
}

.contact .container {
    display: flex;
    flex-direction: column;
    align-items: center;                   /* Centraliza horizontalmente */
    justify-content: center;
}

.contact h2 {
    color: #fff;
    border-bottom: 3px solid #fff;
    display: inline-block;
    padding-bottom: 8px;
    margin-bottom: 40px;
}

.contact .split-layout {
    flex-direction: column;                /* Em desktop também fica um embaixo do outro */
    align-items: center;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    gap: 40px;
}

.contact .text-content,
.contact .image-content {
    width: 100%;
    max-width: 500px;
}

.contact-info p {
    justify-content: center;               /* Ícone + texto centralizados */
    font-size: 1.15rem;
    margin: 18px 0;
}

.contact-info i {
    color: #fff;
    background-color: #1a1a1a;
    padding: 10px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    text-align: center;
    margin-right: 15px;
    font-size: 1.1rem;
}

.contact .btn {
    margin-top: 30px;
}
/* ====================== */
/* ESTILO DO MAPA (CSS ATUALIZADO) */
/* ====================== */

/* Container do mapa */
.map-box {
    width: 100%;
    /* Define uma largura máxima maior para o mapa ficar bonito em telas grandes */
    max-width: 900px; 
    /* Altura padrão para Desktop */
    height: 450px; 
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    margin-top: 30px;
    background-color: #eee; /* Cor de fundo enquanto carrega */
}

/* O iframe deve ocupar 100% do container pai */
.map-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block; /* Remove espaços brancos fantasmas abaixo do iframe */
}

/* Ajuste Responsivo para Mobile */
@media (max-width: 768px) {
    .map-box {
        /* No celular, o mapa pode ser um pouco mais baixo para não ocupar a tela toda */
        height: 350px; 
        max-width: 100%;
    }
}

/* ====================== */
/* RODAPÉ – TEXTO CENTRALIZADO */
/* ====================== */
.footer {
    background-color: #000;
    color: #aaa;
    padding: 30px 0;
    text-align: center;
}

.footer .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer p {
    margin: 0;
    font-size: 0.95rem;
}

/* Responsivo – continua centralizado em mobile */
@media (max-width: 768px) {
    .contact {
        padding: 80px 15px;
    }
    
    .contact .split-layout {
        gap: 30px;
    }
    
    .contact-info p {
        font-size: 1.05rem;
    }
}
/* ==================================== */
/* RESPONSIVIDADE */
/* ==================================== */

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header .container { padding: 3px 15px; }

    .nav-menu {
        display: none;
        width: 100%;
        position: absolute;
        top: 65px;
        left: 0;
        background-color: #1a1a1a;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.active { display: block; }

    .nav-menu ul {
        flex-direction: column;
        padding: 10px 0;
    }

    .nav-menu ul li a {
        padding: 15px 20px;
        border-bottom: 1px solid #333;
    }

    .hamburger { display: block; }

    .split-layout,
    .split-layout.reverse {
        flex-direction: column;
        text-align: center;
    }

    .split-layout .image-content {
        max-width: 100%;
        order: -1;
        margin-bottom: 25px;
    }

    .split-layout .text-content {
        text-align: center;
    }

    /* Em mobile, texto justificado pode ficar estranho → volta para left */
    .split-layout .text-content p {
        text-align: left;
    }

    .contact-info p {
        justify-content: center;
    }

    .product-grid {
        flex-direction: column;
    }

    .product-card {
        flex: 1 1 100%;
    }
}
/* Permite que o mapa seja mais largo que o bloco de texto na seção de contato */
.contact .split-layout {
    max-width: 1000px; /* Aumenta a largura total permitida do container */
}

.contact .text-content {
    max-width: 600px; /* Mantém o texto contido para leitura */
}