/* Variáveis de Cores */
:root {
    --primary-color: #005bb5; 
    --secondary-color: #ff9900; 
    --text-color: #333;
    --light-bg: #f4f4f4;
    --white: #ffffff;
    --footer-bg: #222;
}

* {
    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;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header & Nav */
.top-bar {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 8px 0;
    font-size: 0.9rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logotopo{
    width: 50%;
}
.logo h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li a {
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Seção do Slider Automático */
.hero-slider-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: var(--white);
}

.slider-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slider-backgrounds .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slider-backgrounds .slide.active {
    opacity: 1;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 20px;
}

.hero-content p {
    max-width: 700px;
    margin: 0 auto 30px auto;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    background: #e68a00;
}

.btn-primary2 {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    display: inline-block;
}

.btn-primary2:hover {
    background: #6028e1;
}

/* Seções Gerais */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.container h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 2rem;
}

.about {
    background: var(--white);
}

/* Lista de Produtos (Novo Layout Foto + Texto) */
.products {
    background: var(--light-bg);
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 40px; 
    max-width: 1000px; 
    margin: 0 auto;
}

/* Estrutura de cada linha de Produto */
.product-item {
    display: flex;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    overflow: hidden; 
    align-items: stretch;
}

/* Área da imagem na esquerda */
.product-image {
    flex: 0 0 45%; 
    min-width: 300px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

/* Área do texto na direita */
.product-info {
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.product-info h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.product-info p {
    font-size: 1rem;
    color: var(--text-color);
    text-align: justify;
}

/* Animação dos Cards de Produtos */
.card {
    opacity: 0;
    transform: translateY(40px);
    transition: transform 0.6s ease-out, opacity 0.6s ease-out, box-shadow 0.3s ease-out;
}

.card.show {
    opacity: 1;
    transform: translateY(0);
}

.card.show:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Formulário de Contato */
.contact form {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.input-group {
    display: flex;
    gap: 20px;
}

.input-field {
    flex: 1;
    margin-bottom: 20px;
}

.input-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.input-field input, .input-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.contact button {
    width: 100%;
}

/* Rodapé */
footer {
    background: var(--footer-bg);
    color: var(--white);
    padding: 40px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-col h4 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.social-links a {
    display: block;
    margin-bottom: 10px;
}

.social-links i {
    margin-right: 8px;
}

.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.85rem;
}

/* Responsividade Mobile */
@media(max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background: var(--white);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 20px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        margin-bottom: 15px;
    }

    .menu-toggle {
        display: block;
    }

    .input-group {
        flex-direction: column;
        gap: 0;
    }
    
    .footer-container {
        flex-direction: column;
    }

    /* Ajuste para telas pequenas: foto em cima e texto embaixo (NOVO LAYOUT DE PRODUTOS) */
    .product-item {
        flex-direction: column;
    }
    
    .product-image {
        width: 100%;
        height: 250px;
    }
    
    .product-info {
        padding: 25px;
    }
}

/* =========================================
   Botão Fixo do WhatsApp
   ========================================= */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999; /* Garante que fique acima de todos os outros elementos */
    transition: transform 0.3s ease, background-color 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-button:hover {
    background-color: #1ebe57;
    transform: scale(1.1);
}

.whatsapp-button i {
    margin-top: 2px; /* Pequeno ajuste para centralizar o ícone visualmente */
}

/* Animação de pulso para chamar atenção */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* =========================================
   Divisor do Formulário
   ========================================= */
.contact-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.contact-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #ddd;
    z-index: 1;
}

.contact-divider span {
    background: var(--white); /* Garante que a linha não corte o texto */
    padding: 0 15px;
    color: #777;
    font-size: 0.9rem;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

/* =========================================
   Botões de Ligação e WhatsApp (Formulário)
   ========================================= */
.contact-action-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

.contact-action-buttons a {
    flex: 1; /* Faz os dois botões terem o mesmo tamanho */
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 25px;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: transform 0.2s ease, filter 0.3s ease;
}

/* Estilo do botão de Ligar (Azul) */
.btn-call {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Estilo do botão de WhatsApp (Verde) */
.btn-whats {
    background-color: #25d366;
    color: var(--white);
}

/* Efeito Hover ao passar o mouse */
.contact-action-buttons a:hover {
    filter: brightness(0.9);
    transform: translateY(-3px);
}

/* Empilha os botões de contato no celular */
    .contact-action-buttons {
        flex-direction: column;
        gap: 15px;
    }

/* =========================================
   Páginas Internas (Ex: Toldos.html)
   ========================================= */
.page-header1 {
    background: linear-gradient(rgba(0, 91, 181, 0.274), rgba(0, 91, 181, 0.623)), url('images/banner-toldos.png') center/cover;
    color: var(--white);
    text-align: center;
    padding: 140px 40px;
    margin-bottom: 40px;
}
.page-header2 {
    background: linear-gradient(rgba(0, 91, 181, 0.274), rgba(0, 91, 181, 0.623)), url('images/banner-policarbonato.png') center/cover;
    color: var(--white);
    text-align: center;
    padding: 140px 40px;
    margin-bottom: 40px;
}
.page-header3 {
    background: linear-gradient(rgba(0, 91, 181, 0.274), rgba(0, 91, 181, 0.623)), url('images/banner-cortinas.png') center/cover;
    color: var(--white);
    text-align: center;
    padding: 140px 40px;
    margin-bottom: 40px;
}
.page-header4 {
    background: linear-gradient(rgba(0, 91, 181, 0.274), rgba(0, 91, 181, 0.623)), url('images/banner-telhas-termoacusticas.png') center/cover;
    color: var(--white);
    text-align: center;
    padding: 140px 40px;
    margin-bottom: 40px;
}
.page-header5 {
    background: linear-gradient(rgba(0, 91, 181, 0.274), rgba(0, 91, 181, 0.623)), url('images/banner-sombreadores.png') center/cover;
    color: var(--white);
    text-align: center;
    padding: 140px 40px;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-content .text-block {
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.page-content .text-block h2 {
    text-align: center;
    margin-bottom: 20px;
}

.page-content .text-block p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Galeria de Fotos */
.gallery-section {
    background: var(--light-bg);
    padding-bottom: 80px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    height: 250px; /* Altura padrão para as fotos da galeria */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que fotos verticais e horizontais fiquem padronizadas */
    transition: transform 0.4s ease;
    cursor: pointer;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.1); /* Efeito de zoom suave ao passar o mouse */
}

.action-center {
    text-align: center;
    margin-top: 20px;
}  

/* =========================================
   Slider de Projetos (Estilo Claro / Branco)
   ========================================= */
.portfolio-section {
    background-color: var(--white); /* Fundo branco para integrar com o site */
    padding: 80px 0;
    text-align: center;
}

.portfolio-container {
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-section h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--primary-color); /* Título na cor azul do site */
}

.portfolio-section p {
    font-size: 1rem;
    color: #666666; /* Subtítulo em cinza escuro elegante */
    margin-bottom: 50px;
}

.portfolio-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Efeito de fade (sombra branca) nas laterais do carrossel */
.slider-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none; /* Permite clicar nas fotos por trás do fade */
}

.slider-fade.left {
    left: 0;
    background: linear-gradient(to right, #ffffff 0%, transparent 100%); /* Sumindo no branco */
}

.slider-fade.right {
    right: 0;
    background: linear-gradient(to left, #ffffff 0%, transparent 100%); /* Sumindo no branco */
}

/* A pista que contém as fotos */
.portfolio-track {
    display: flex;
    gap: 25px;
    padding: 0 40px;
    overflow-x: auto;
    scroll-behavior: smooth;
    /* Esconde a barra de rolagem */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.portfolio-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari e Opera */
}

/* Os cartões individuais */
.portfolio-card {
    flex: 0 0 320px; /* Largura fixa de cada imagem */
    text-align: left;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.portfolio-card:hover {
    transform: translateY(-5px);
}

.portfolio-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    /* Sombra mais suave e clara para fundo branco */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}

.portfolio-card h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color); /* Texto do card em azul */
}

.portfolio-card span {
    font-size: 0.85rem;
    color: #777777;
}
/* Mensagem de envio do formulário */
.form-status { margin-top: 15px; font-weight: 600; text-align: center; }
.form-status.ok { color: #1e8e3e; }
.form-status.erro { color: #c5221f; }
