/* Importação da fonte Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800&display=swap');

/* Reset Básico e Estilos Globais */
:root {
    --primary-red: #C00000; /* Vermelho principal para branding */
    --secondary-dark: #333; /* Cinza escuro para textos */
    --light-grey: #f4f4f4; /* Fundo claro para seções */
    --font-family-montserrat: 'Montserrat', sans-serif;
    --dark-text-color: #2c3e50; /* Um tom de cinza escuro para textos */
}

body {
    font-family: var(--font-family-montserrat);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--dark-text-color); /* Usando a nova cor para o corpo do texto */
    background-color: #fff;
    -webkit-font-smoothing: antialiased; /* Para melhor renderização da fonte */
    -moz-osx-font-smoothing: grayscale; /* Para melhor renderização da fonte */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tipografia com Efeito 3D para Títulos e Textos */
.text-dark {
    color: var(--dark-text-color);
}

.text-red-3d-h2 {
    color: var(--primary-red);
    text-shadow:
        1px 1px 0px rgba(0,0,0,0.2),
        2px 2px 0px rgba(0,0,0,0.15),
        3px 3px 0px rgba(0,0,0,0.1);
}

/* NOVAS CLASSES para texto da Hero Section no fundo branco */
.impercom-red-3d-dark {
    color: var(--primary-red);
    text-shadow:
        2px 2px 0px rgba(0,0,0,0.3),
        4px 4px 0px rgba(0,0,0,0.2),
        6px 6px 0px rgba(0,0,0,0.1);
}

.impermeabilizacoes-black-3d-dark {
    font-size: 0.7em;
    display: block;
    line-height: 1.1;
    margin-top: 5px;
    color: var(--dark-text-color);
    text-shadow:
        1px 1px 0px rgba(0,0,0,0.15),
        2px 2px 0px rgba(0,0,0,0.1);
}

.slogan-dark {
    color: var(--dark-text-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.text-red-3d {
    color: var(--primary-red);
    text-shadow:
        1px 1px 0px rgba(0,0,0,0.15),
        1px 1px 0px rgba(0,0,0,0.1);
}

.bold-3d-dark {
    font-weight: 700;
    color: var(--dark-text-color);
    text-shadow:
        0.5px 0.5px 0px rgba(0,0,0,0.1);
}

.testimonial-intro-text {
    max-width: 700px;
    margin: 0 auto 30px auto;
    font-size: 1.2em;
}

.text-3d-dark-on-light {
    color: var(--dark-text-color);
    text-shadow:
        0.5px 0.5px 0px rgba(0,0,0,0.05);
}

.quemsomos-p-3d-centered,
.service-text-3d-centered {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.centered-text-product {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.product-footer-3d {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1em;
}

/* Hero Section do INDEX.HTML */
.hero-section {
    background-color: #FFFFFF; /* Fundo branco puro conforme solicitado */
    color: var(--dark-text-color); /* Ajustado para texto escuro */
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.hero-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* LOGO NA HERO SECTION (substitui o vídeo) */
.hero-logo-image {
    max-width: 380px; /* Levemente maior que o vídeo anterior, sem bordas/sombra */
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 0;
    box-shadow: none;
    object-fit: contain;
    z-index: 1;
    position: relative;
}
@media (max-width: 768px) {
    .hero-logo-image {
        max-width: 180px; /* Reduz para celular */
        margin-bottom: 15px;
    }
}


.hero-section h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 10px;
    line-height: 1.1;
    font-weight: 800;
}

.hero-section .slogan {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    margin-top: 0;
    margin-bottom: 30px;
    max-width: 800px;
    /* text-shadow já ajustado via .slogan-dark */
}

/* NOVO: Header simples para NOSSSOS_SERVICOS.HTML, PRINCIPAIS_PRODUTOS.HTML e QUEM_SOMOS.HTML */
.page-header-simple {
    background-color: #FFFFFF; /* Fundo branco */
    padding: 30px 0 20px;
    text-align: center;
    color: var(--dark-text-color); /* Cor para o texto */
    box-shadow: none; /* Sem sombreado */
}

.page-logo-image {
    max-width: 350px; /* Tamanho ligeiramente maior para a imagem do logo nas páginas internas */
    height: auto;
    display: block;
    margin: 0 auto 15px auto; /* Centraliza e adiciona espaço */
    border-radius: 0; /* Sem bordas arredondadas */
    box-shadow: none; /* Sem sombreado */
}

.page-header-simple h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 5px;
    line-height: 1.1;
    font-weight: 800;
}
/* Ajustes para textos dentro do page-header-simple */
.page-header-simple .impercom-red-3d-dark {
    color: var(--primary-red);
    text-shadow:
        2px 2px 0px rgba(0,0,0,0.15),
        4px 4px 0px rgba(0,0,0,0.1),
        6px 6px 0px rgba(0,0,0,0.05);
}
.page-header-simple .impermeabilizacoes-black-3d-dark {
    font-size: 0.6em; /* Ajuste para o slogan no header secundário */
    color: var(--dark-text-color); /* Garante a cor escura aqui */
    text-shadow:
        1px 1px 0px rgba(0,0,0,0.08),
        2px 2px 0px rgba(0,0,0,0.05);
}


/* Botões */
.btn {
    display: inline-block;
    background-color: var(--primary-red);
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    margin-top: 20px;
}

.btn-primary:hover {
    background-color: #a00000;
}

/* Navbar */
.navbar {
    background-color: var(--secondary-dark);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-list li {
    margin: 0 15px;
}

.nav-list a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-list a:hover {
    color: var(--primary-red);
}

/* Hamburger Icon para Mobile */
.hamburger-icon {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--secondary-dark);
        position: absolute;
        top: 60px;
        left: 0;
        text-align: center;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        z-index: 999;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        margin: 10px 0;
    }

    .nav-container {
        justify-content: flex-start;
    }
}

/* Seções de Conteúdo */
.section-padded {
    padding: 60px 0;
    text-align: center; /* Alinhamento geral para as seções */
}

.section-padded:nth-of-type(odd) {
    background-color: var(--light-grey);
}

.section-padded h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 40px;
    font-weight: 800;
}

.section-padded p {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 20px auto;
}

/* QUEM SOMOS - Conteúdo da página quem_somos.html */
/* Classes específicas para a página Quem Somos */
.quemsomos-subtitle-3d {
    color: var(--dark-text-color);
    font-size: clamp(1.2em, 2.5vw, 1.5em);
    font-weight: 700; /* Negrito */
    margin-top: -30px; /* Ajuste para aproximar do título principal */
    margin-bottom: 30px;
    text-shadow:
        0.5px 0.5px 0px rgba(0,0,0,0.1),
        1px 1px 0px rgba(0,0,0,0.05);
}
.quemsomos-section-title-3d { /* Para "Um legado de pioneirismo...", "Quase meio século..." etc. */
    color: var(--dark-text-color);
    font-size: clamp(1.4em, 3vw, 1.8em); /* Maior que o texto comum */
    font-weight: 700; /* Negrito */
    margin-top: 40px;
    margin-bottom: 20px;
    text-shadow:
        1px 1px 0px rgba(0,0,0,0.1),
        2px 2px 0px rgba(0,0,0,0.05);
}
.quemsomos-text { /* Para os parágrafos normais */
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 20px auto;
    line-height: 1.7;
    text-align: center;
}

/* AJUSTES PARA AS IMAGENS DA SEÇÃO QUEM SOMOS (sadi_namesa.jpg e sede_antiga.jpg) */
/* Esta regra foi ajustada para ser mais abrangente, visando qualquer imagem dentro de 'card-content' */
.card-content img {
    max-width: 100%; /* Garante que a imagem nunca ultrapasse a largura do seu contêiner */
    height: auto; /* Mantém a proporção da imagem */
    display: block; /* Transforma a imagem em um elemento de bloco para aplicar margens automáticas */
    margin: 30px auto; /* Centraliza a imagem horizontalmente e adiciona espaço superior/inferior */
    border-radius: 8px; /* Suaviza os cantos das imagens */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Adiciona uma leve sombra para destacá-las */
    box-sizing: border-box; /* Garante que padding e border não aumentem a largura total */
}


.card-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.quemsomos-link {
    margin-top: 30px;
}

.action-link-minimal {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.action-link-minimal:hover {
    color: var(--dark-text-color);
}

/* ALINHAMENTO E REMOÇÃO DE PONTOS PARA PÁGINAS DE DETALHE (nossos_servicos, principais_produtos, quem_somos) */
.main-centered-content .container {
    text-align: center; /* Centraliza todo o texto dentro do container principal */
}
.main-centered-content .detailed-service-text,
.main-centered-content .detailed-service-subtitle {
    max-width: 900px; /* Define largura máxima para o texto */
    margin-left: auto;
    margin-right: auto;
}
.main-centered-content ul.detailed-service-list, /* Aplica a classes específicas */
.main-centered-content ul.quemsomos-list { /* Caso haja listas em quem somos */
    list-style-type: none; /* Remove os marcadores de lista */
    padding: 0; /* Remove o padding padrão da lista */
    margin: 20px auto;
    max-width: 900px; /* Alinha a lista também */
}
.main-centered-content ul.detailed-service-list li,
.main-centered-content ul.quemsomos-list li {
    margin-bottom: 10px;
    text-align: center; /* Centraliza os itens da lista */
}
.detailed-service-main-title {
    color: var(--primary-red);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-top: 50px;
    margin-bottom: 20px;
    text-align: center;
    text-shadow:
        1px 1px 0px rgba(0,0,0,0.15),
        2px 2px 0px rgba(0,0,0,0.1);
}
.detailed-service-subtitle {
    color: var(--dark-text-color);
    font-size: clamp(1.1rem, 2.5vw, 1.3em);
    margin-bottom: 15px;
    text-align: center; /* Centralizado */
    line-height: 1.5;
    font-weight: 600;
}
.detailed-service-text {
    font-size: 1.1em;
    text-align: center; /* Centralizado */
    margin-bottom: 15px;
    line-height: 1.7;
}


/* NOSSOS SERVIÇOS (Grid na Home) */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-item .icon-futuristic {
    font-size: 3em;
    color: var(--primary-red);
    margin-bottom: 15px;
    display: block;
}

.service-item h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* PRINCIPAIS PRODUTOS (Grid na Home) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-item h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-icon {
    font-size: 3em;
    color: var(--primary-red);
    margin-bottom: 10px;
    flex-shrink: 0;
    width: 100%;
    text-align: center;
}

.product-subtitle {
    display: block;
    font-size: 0.8em;
    color: #666;
    font-weight: 400;
    margin-top: 5px;
}

/* GALERIA */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* DEPOIMENTOS */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.testimonial-item p {
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
    flex-grow: 1;
}

.testimonial-author {
    font-weight: bold;
    color: var(--dark-text-color);
    display: block;
    margin-top: 10px;
}

/* CONTATO - Ajustes de Layout e Cores */
.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    text-align: center;
}

.contact-item {
    display: flex; /* Para centralizar os elementos dentro do item */
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Permite quebrar linha em telas pequenas */
    margin: 0;
}

/* Estilo para o link que envolve ícones e texto, para o hover */
.contact-link-all {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-text-color); /* Texto preto padrão */
    transition: color 0.3s ease;
}

.contact-link-all:hover {
    color: var(--primary-red); /* Texto vermelho no hover */
}

.contact-link-all .contact-icon-red { /* Ícones sempre vermelhos, mesmo no hover do pai */
    color: var(--primary-red);
    transition: none; /* Remove transição de cor para ícones neste caso */
}


.contact-item i {
    color: var(--primary-red); /* Ícones vermelhos */
    margin-right: 8px; /* Espaço entre ícone e texto */
    font-size: 1.3em;
    flex-shrink: 0;
}
.contact-item i:last-of-type { /* Se houver dois ícones, ajusta o espaçamento */
    margin-right: 10px;
}


.contact-text-black {
    color: var(--dark-text-color); /* Texto preto padrão */
    font-size: 1.1em;
    text-decoration: none; /* Remove sublinhado padrão dos links */
    white-space: nowrap; /* Evita que o número quebre no meio */
}
/* Para o item de horário que não é um link */
.contact-item .contact-text-black {
    font-weight: normal; /* Garante que o horário de atendimento não seja negrito */
    white-space: normal; /* Permite que o endereço e o horário quebrem linha */
    max-width: 90%; /* Limita a largura para permitir quebra de linha em telas menores */
}


.map-placeholder {
    margin-top: 40px;
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.map-placeholder iframe {
    border: none;
}

/* Formulário de Contato */
.contact-form-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form-container h3 {
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 30px;
    color: var(--dark-text-color);
}

.contact-form-container form {
    display: flex;
    flex-direction: column;
}

.contact-form-container label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-text-color);
}

.contact-form-container input[type="text"],
.contact-form-container input[type="email"],
.contact-form-container input[type="tel"],
.contact-form-container textarea {
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    width: 100%;
    box-sizing: border-box;
}

.contact-form-container input[type="text"]:focus,
.contact-form-container input[type="email"]:focus,
.contact-form-container input[type="tel"]:focus,
.contact-form-container textarea:focus {
    border-color: var(--primary-red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-red), 0.2);
}

.contact-form-container button {
    background-color: var(--primary-red);
    color: #fff;
    padding: 15px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.contact-form-container button:hover {
    background-color: #a00000;
    transform: translateY(-2px);
}

/* Estilos para o feedback do formulário */
.form-feedback {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    display: none;
}
.form-feedback .success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 5px;
}
.form-feedback .error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 5px;
}


/* Footer */
footer {
    background-color: var(--secondary-dark);
    color: #fff;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
}

footer .social-media {
    margin-top: 15px;
}

footer .social-media a {
    color: #fff;
    font-size: 1.5em;
    margin: 0 10px;
    transition: color 0.3s ease;
}

footer .social-media a:hover {
    color: var(--primary-red);
}

.footer-links {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 10px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-red);
    text-decoration: underline;
}

/* Ícones de redes sociais no header */
.social-media-hero {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.social-media-hero a {
    color: var(--primary-red); /* Mantendo vermelho forte para os ícones */
    font-size: 1.5em;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-media-hero a:hover {
    color: #a00000;
}


/* Media Queries para Responsividade */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px;
    }

    .hero-section h1 {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .hero-section .slogan {
        font-size: clamp(1rem, 3.5vw, 1.5rem);
    }

    .impermeabilizacoes-black-3d-dark.decreased-font-size-dark {
        font-size: 0.6em;
    }

    .section-padded {
        padding: 40px 0;
    }

    .section-padded h2 {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        margin-bottom: 30px;
    }

    .service-grid, .product-grid, .gallery-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-container {
        padding: 20px;
    }

    .testimonial-item {
        margin-bottom: 20px;
    }

    /* Ajuste específico para o hamburger icon em telas menores */
    .hamburger-icon {
        display: flex;
        position: absolute;
        right: 20px;
    }
}