/* =================================
   RESET E VARIÁVEIS GLOBAIS
   ================================= */
:root {
    --primary-color: #0D2D57; /* Azul escuro principal */
    --secondary-color: #F7941E; /* Laranja dos botões */
    --background-light: #F4F7FC;
    --text-dark: #333;
    --text-light: #FFFFFF;
    --font-family: 'Poppins', sans-serif;
}

/* Destaque para orçamento */

.cta-orcamento {
    padding: 60px 0;
    text-align: center;
}

    .cta-orcamento h1 {
        max-width: 900px;
        margin: 0 auto 20px;
    }

    .cta-orcamento p {
        max-width: 800px;
        margin: 0 auto 30px;
    }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    display: block;
}

h1, h2, h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

section {
    padding: 60px 0;
}

/* =================================
   HEADER E NAVEGAÇÃO
   ================================= */
.main-header {
    background-color: var(--text-light);
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
}

    .main-header .container {
        display: flex;
        align-items: center;
    }

/* Logo */
.logo {
    flex-shrink: 0;
}

    .logo img {
        height: 100px;
    }

/* Menu */
.main-nav {
    margin-left: auto;
}

    .main-nav ul {
        list-style: none;
        display: flex;
        align-items: center;
        gap: 25px;
    }

    .main-nav a {
        text-decoration: none;
        color: var(--primary-color);
        font-weight: 500;
        transition: color 0.3s ease;
    }

        .main-nav a:hover {
            color: var(--secondary-color);
        }

/* Botão orçamento */
.quote-btn {
    margin-left: 15px;
    white-space: nowrap;
}
.main-nav a:hover {
    color: var(--secondary-color);
}

.btn {
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--text-light);
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

/* Menu Mobile (Hamburguer) */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 30px;
    color: var(--primary-color);
}

/* =================================
   SEÇÕES DA PÁGINA PRINCIPAL
   ================================= */

/* Serviços */
.services {
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--text-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.service-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.service-card h3 {
    font-size: 1.2rem;
    padding: 15px;
    margin: 0;
}

/* Soluções */
.solutions {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 30px 0;
    text-align: center;
}

.solutions h2 {
    color: var(--text-light);
}

.solutions-list {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Projetos */
.projects {
    background-color: var(--background-light);
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-card .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(13, 45, 87, 0.9), transparent);
    color: var(--text-light);
    padding: 30px 15px 15px;
    text-align: left;
}

/* Equipe */
.team {
    text-align: center;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-top: 40px;
}
.team-member {
    text-align: center;
}
.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 4px solid var(--background-light);
}
.team-member h3 {
    margin: 10px 0 5px;
}

/* CTA (Call to Action) */
.cta {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('img/cta-background.jpg'); /* Substitua pela imagem de fundo */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-light);
    text-align: center;
    padding: 200px 0;
}
.cta h1 {
    font-size: 3rem;
    color: var(--text-light);
}
.cta .btn {
    margin-top: 20px;
    padding: 15px 40px;
    font-size: 1.2rem;
}

/* História */
.history {
    text-align: center;
}
.history .container {
    max-width: 800px;
}
.history .btn {
    margin-top: 20px;
}

/* =================================
   FOOTER
   ================================= */
.main-footer {
    background-color: var(--primary-color);
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    /* Alterado de 2fr 1fr 1fr 2fr para isto: */
    grid-template-columns: 2.5fr 1.5fr 1.5fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-column h4 {
    color: var(--text-light);
    margin-bottom: 15px;
}
.footer-column ul {
    list-style: none;
}
.footer-column li {
    margin-bottom: 10px;
}
.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-column a:hover {
    color: var(--secondary-color);
}
.social-icons a {
    margin-right: 15px;
    font-size: 1.5rem;
}
.footer-projects img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin: 5px;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
}

/* =================================
   PÁGINA DE CONTATO
   ================================= */
.contact-section {
    padding: 60px 0;
}
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-family);
}
.form-group textarea {
    resize: vertical;
    min-height: 150px;
}


/* =================================
   RESPONSIVIDADE (MEDIA QUERIES)
   ================================= */

/* Tablets e dispositivos menores */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .team-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =================================
   RESPONSIVIDADE (CELULARES) - MENU FLUTUANTE AJUSTADO
   ================================= */
@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        height: 100%;
        
        /* ================================= */
        /* 1. FUNDO COM TRANSPARÊNCIA      */
        /* ================================= */
        /* Usamos RGBA para adicionar um canal de transparência (0.35 = 35% opaco) */
        background-color: rgba(13, 45, 87, 0.35); 
        /* Efeito de desfoque no fundo para navegadores modernos */
        backdrop-filter: blur(10px);
        
        z-index: 2000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
    }

    .main-nav.active {
        transform: translateX(0);
        box-shadow: -5px 0 10px rgba(0,0,0,0.2);
    }
    
    .main-nav ul {
        flex-direction: column;
        /* ================================= */
        /* 2. FONTES MENOS ESPAÇADAS       */
        /* ================================= */
        gap: 3px; /* Reduzimos o espaço entre os itens da lista */
        width: 100%;
        text-align: center;
    }

    .main-nav a {
        color: var(--text-light);
        font-size: 1.3rem; /* Fonte ligeiramente menor para um visual mais compacto */
        /* Reduzimos o espaçamento interno de cada link */
        padding: 12px 0; 
        display: block;
    }
    
    .main-nav a:hover {
        color: var(--secondary-color);
    }
    
    .hamburger {
        display: block;
        z-index: 2001;
    }
    
    .hamburger.active {
        color: var(--primary-color);
    }

    .main-header .quote-btn {
        display: none;
    }
    
    .services-grid, .projects-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* =================================
   ESTILOS PARA A LISTA DE ORÇAMENTO
   ================================= */
#lista-servicos-container {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-top: 10px;
    max-height: 250px;
    overflow-y: auto;
}

.checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    transform: scale(1.2); /* Deixa o checkbox um pouco maior */
}

.checkbox-item label {
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}

/* =================================
   ESTILOS DO CARROSSEL DE PROJETOS
   ================================= */
.projects {
    position: relative; /* Essencial para posicionar elementos filhos */
    overflow: hidden;
    padding: 80px 0; /* Aumenta o padding para dar mais espaço ao fundo */
    background-color: #000; /* Cor de fundo enquanto as imagens carregam */
}

/* Camada escura sobre as imagens para garantir a legibilidade do texto */
.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.projects h2 {
    color: var(--text-light); /* Título branco para contrastar com o fundo */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Sombra para legibilidade */
}

/* Container do carrossel de fundo */
.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Fica atrás do conteúdo e da camada escura */
}

/* Slides individuais do carrossel */
.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; /* Começam invisíveis */
    transition: opacity 1.5s ease-in-out; /* Efeito de fade de 1.5s */
}

.carousel-slide.active {
    opacity: 1; /* O slide ativo fica visível */
}

/* Conteúdo da frente (título e 3 colunas) */
.project-content {
    position: relative; /* Garante que fique no fluxo normal da página */
    z-index: 3; /* Fica na camada mais alta, sobre tudo */
}

/* =================================
   NOVOS ESTILOS DO RODAPÉ
   ================================= */
.company-data p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.cookie-policy-link {
    font-size: 0.85rem;
    text-decoration: underline;
}

.social-icons-footer {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

    .social-icons-footer a {
        font-size: 1.8rem;
        font-weight: bold;
    }

.whatsapp-footer-link {
    display: inline-block;
    padding: 10px 15px;
    background-color: #25D366; /* Cor do WhatsApp */
    color: var(--text-light) !important;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 400;
    transition: background-color 0.3s ease;
}

    .whatsapp-footer-link:hover {
        background-color: #128C7E;
        color: var(--text-light) !important;
    }

/* Remove o estilo antigo dos projetos no rodapé que não existe mais */
.footer-projects img {
    display: none;
}


/* Ajuste final para o grid do rodapé em telas menores */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-socials {
        text-align: center;
    }

    .social-icons-footer {
        justify-content: center;
    }
}

/* Style all font awesome icons */
.fa {
    padding: 10px;
    font-size: 20px;
    width: 50px;
    text-align: center;
    text-decoration: none;
}

    /* Add a hover effect if you want */
    .fa:hover {
        opacity: 0.7;
    }

/* Set a specific color for each brand */

/* Facebook */
.fa-facebook {
    background: #007bb5;
    color:white;
}

/* Twitter */
.fa-twitter {
    background: #55ACEE;
    color: white;
}

.fa-instagram {
    background: #125688;
    color: white;
}

.fa-linkedin {
    background: #007bb5;
    color: white;
}

/* =================================
   ESTILO BOTÃO VOLTAR AO TOPO (AJUSTADO)
   ================================= */
.scroll-top-btn {
    display: none; /* Começa escondido */
    position: fixed;
    bottom: 35px;
    right: 25px; /* Mantido no lado direito */
    z-index: 1001;
    /* ======================================= */
    /* NOVOS ESTILOS PARA COR E EFEITO FLUTUANTE */
    /* ======================================= */
    background-color: var(--secondary-color); /* Laranja da paleta do site */
    color: var(--text-light); /* Texto branco */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Sombra para dar profundidade (flutuante) */

    
    border: none;
    border-radius: 50%; /* Mantém o formato redondo */
    width: 60px; /* Levemente maior */
    height: 60px; /* Levemente maior */
    font-size: 2rem; /* Seta um pouco maior */
    line-height: 55px; /* Ajusta a linha para centralizar a seta */
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease; /* Transição mais abrangente */
    opacity: 0.9; /* Um pouco transparente no estado normal */
}

    .scroll-top-btn:hover {
        opacity: 1; /* Totalmente opaco ao passar o mouse */
        transform: translateY(-5px) scale(1.05); /* Levemente sobe e cresce ao passar o mouse */
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); /* Sombra mais intensa no hover */
    }