/* Variáveis de Cores (Baseadas no layout-DS.jpg) */
:root {
    --primary-dark: #071324;
    --primary-green: #00A651;
    --light-bg: #F4F6F9;
    --text-light: #FFFFFF;
    --text-dark: #333333;
    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

/* Rolagem Suave nativa do CSS */
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height); /* Compensa a altura do menu fixo */
}

body {
    background-color: var(--light-bg);
    color: var(--text-dark);
}

.container {

width: 100%;
    max-width: 1325px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header Fixo */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--text-light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

.nav-menu ul {
margin-top: -4px;
    list-style: none;
    display: flex;
    gap: 15px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight:400;
    transition: color 0.3s;
    font-size: 15px;
}

.nav-menu a:hover {
    color: var(--primary-green);
  
}

/* Redes Sociais no Cabeçalho */
.nav-contact.social-icons {
    display: flex;
    gap: 8px; /* Espaço entre os ícones */
    align-items: center;
    margin-top: -4px;
}

.nav-contact.social-icons a {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease; /* Transição suave para o efeito */
}

.nav-contact.social-icons a:hover {
    transform: scale(1.08); /* Aumenta o ícone levemente ao passar o mouse */
}

.nav-contact.social-icons img {
    width: auto; /* Tamanho padrão para ícones de menu */
    height: 24px;
    object-fit: contain;
}

/* Botões */
.btn-green {
    background-color: var(--primary-green);
    color: var(--text-light);
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-full {
    width: 100%;
}

/* Seções */
.dark-bg {
    background-color: var(--primary-dark);
    color: var(--text-light);
}

.light-bg {
    background-color: var(--light-bg);
}




.hero-section {

float: left;
width: 100%;
height: auto;
    margin-top: var(--nav-height); /* Empurra o conteúdo pra baixo do menu */
   
    text-align: left;
}

.hero-content img {

   margin: 0 auto;
float: left;
    
    height: auto;
    max-width: 100%;
    
}

#quem-somos {

background: url("img/fundoquemsomos.jpg") no-repeat bottom;
background-size: contain;

  margin: 0 auto;
 
}

.split-section {
    display: flex;
    gap: 70px;
    align-items: center;
}

.text-box h2{
margin-top: -100px;
color:rgba(4,39,81,1.00);
font-size: 57px;


}
.text-box p{
margin-top: 34px;
color:rgba(132,132,132,1.00);
font-size: 19px;
line-height: 30px;

}

.align-start {
    align-items: flex-start;
}

#especialidades{
background: rgba(15,23,43,1.00);
}

/* Grid das Especialidades */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Atualize a classe existente adicionando a linha "transition" */
.dark-card {
    background-color: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    /* Essa linha diz ao navegador para fazer as mudanças suavemente em 0.3 segundos */
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}


.dark-card h3{
   margin-top: 27px;
   font-weight: 600;
}

.dark-card p{
   margin-top: 17px;
   font-weight: 400;
   font-size: 15px;
   line-height: 24px;
}

/* ADICIONE ESTE BLOCO NOVO LOGO ABAIXO */
/* Efeito Mágico ao passar o mouse */
.dark-card:hover {
    transform: translateY(-10px); /* Faz o card "flutuar" 10 pixels para cima */
    border-color: var(--primary-green); /* A borda sutil muda para o verde da marca */
    box-shadow: 0 10px 25px rgba(0, 166, 81, 0.15); /* Cria um brilho/sombra verde suave embaixo */
}

#engenharia{
background:url("img/fundoengenharia.png") no-repeat center;
background-size: cover;
padding-top: 34px;
padding-bottom: 34px;
}


#engenharia h3{
font-size: 47px;
font-weight: 700;
}


#engenharia h2{
font-size: 27px;
font-weight: 600;
}


#engenharia .subtitle {
font-size: 23px;
font-weight: 400;
margin-top: 27px;
}



#terraplanagem{
background:url("img/fundoengenharia.png") no-repeat center;
background-size: cover;
padding-top: 34px;
padding-bottom: 34px;
}


#terraplanagem h3{
font-size: 47px;
font-weight: 700;
}


#terraplanagem h2{
font-size: 27px;
font-weight: 600;
}


#terraplanagem .subtitle {
font-size: 23px;
font-weight: 400;
margin-top: 27px;
}

/* Grid Por que nos escolher (Diferenciais) */

#diferenciais{
background:url("img/fundoengenharia.png") no-repeat top;
background-size: cover;

}

#diferenciais h2{
margin-top: 34px;
margin-bottom: 70px;
font-size: 40px;
font-weight: 700;
color:rgba(4,39,81,1.00);

}
.features-grid {

    display: grid;
   grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-top: 3px solid var(--primary-green);
}

.feature-icon {

    width: 49px;
    height: 47px;
    margin-bottom: 15px;
}

.feature-card img{

   width: 49px;
    height: 47px;
    margin-top: -7px;
}

.feature-card p {
    font-size: 1rem;
    color: var(--primary-dark);
    font-weight: 600;
}

.feature-card p2 {
margin-top: 10px;
    font-size: 0.90rem;
    color: var(--primary-dark);
    font-weight: 400;
}

#contato{
background: rgba(255,255,255,1.00);
padding-bottom: 47px;

}

#contato h5{

text-align: center;
font-size: 47px;
font-weight: 700;
color:rgba(4,39,81,1.00);
padding-top: 70px;
margin-bottom: 27px;

}

/* Formulário */
form input, form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 7px;
   
}

.contact-form{
position: relative;
float: left;

width:50%;
height: 500px;

}

.contact-form p {
margin-top: 70px;
font-size: 18px;
font-weight: 400;
margin-bottom: 19px;
}

.contact-info{
background: url("img/fundocontatoesq.png")no-repeat center;
background-size: cover;
width: 600px;
height: 500px;
border-bottom-left-radius: 37px;
border-top-left-radius: 37px;
}

.contact-info h2{
margin-top: 70px;
margin-left: 34px;
font-size: 40px;
font-weight: 600;
color:#00ab14;
}
.contact-info p{
margin-top: 27px;
margin-left: 34px;
font-size: 29px;
font-weight: 400;
color:rgba(255,255,255,1.00);
text-decoration: none;
}

.contact-info ul{

margin-left: 34px;
margin-top: 140px;
font-weight: 400;
color:rgba(255,255,255,1.00);
text-decoration: none;
 list-style: none;


}

.contact-info li{
text-decoration: none;
 list-style: none;
display: flex;
font-size: 19px;
font-weight: 400;
color:rgba(255,255,255,1.00);
margin-top: 17px;
 align-items: center; 
 
}

.contact-info li img{
padding: 4px;
margin-right: 10px;
 transform: translateY(1px);
}


#localizacao{
background:url("img/fundogaleriafotos.jpg") no-repeat;
background-size: cover;

}

#localizacao h5{
text-align: center;
font-size: 47px;
font-weight: 700;
padding-top: 70px;
color:#00A651;

}


/* Menu Hambúrguer (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

/* Estilo base das barras do menu */
.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-dark);
    margin: 4px 0;
    transition: all 0.3s ease-in-out;
    /* ADICIONE ESTA LINHA: Garante que a barra gire pelo seu próprio centro */
    transform-origin: center; 
}
/* 
   A MÁGICA DA ANIMAÇÃO (Quando a classe 'open' for adicionada pelo JS)
*/
/* Barra de cima: desce e gira 45 graus */
/* 
   A MÁGICA DA ANIMAÇÃO (CORRIGIDA)
   Desce e sobe exatos 11px para as barras se encontrarem perfeitamente no centro antes de girar.
*/
.menu-toggle.open .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}


   @media (max-width: 768px) {
   
   
    .menu-toggle {
        display: flex;
        z-index: 1001; 
        /* ADICIONE ESTA LINHA: Dá um respiro de 5 a 10 pixels longe da borda da tela */
        margin-right: 4px; 
    }
    
    /* O novo Menu Lateral (Slide) */
    .nav-menu {
        display: flex; 
        position: fixed;
        top: 0;
        right: -100%; /* Esconde o menu inteiro fora da tela, do lado direito */
        width: 100%; /* Largura do painel lateral (ocupa 75% da tela) */
        max-width: 350px;
        height: 100vh; /* Altura total da tela */
        background-color: var(--text-light);
        box-shadow: -5px 0 15px rgba(0,0,0,0.2); /* Sombra elegante na lateral */
        transition: right 0.4s ease-in-out; /* A mágica: animação suave do slide */
        z-index: 1000;
        padding-top: 100px; /* Joga os links mais para baixo, longe do ícone de fechar */
    }

    /* Quando o JS adiciona a classe, o painel desliza para a posição 0 */
    .nav-menu.active {
        right: 0; 
    }

    /* Ajuste dos links no formato de lista lateral */
    .nav-menu ul {
        flex-direction: column;
        text-align: left; /* Alinhamento à esquerda fica melhor no slide */
        padding: 0 30px;
        width: 100%;
    }
    
    .nav-menu ul li {
        width: 100%;
        margin-bottom: 21px; /* Mais espaço para facilitar o clique do dedo */
    }
    
    .nav-menu a {
        font-size: 1.1rem;
        display: block; /* Aumenta a área de clique */
    }

    .split-section {
        flex-direction: column;
    }

    
    .nav-contact.social-icons {
    display: none;
}

#quem-somos {

background: url("img/fundoquemsomos.jpg") no-repeat top;
background-size: cover;

  margin: 0 auto;
 
}

.split-section {
    display: flex;
   
    align-items: center;
     margin: 0 auto;
}

.image-box img{
    width:100%;
    height: auto;


}

.text-box h2{
 width:100%;
margin-top: -40px;
color:rgba(4,39,81,1.00);
font-size: 47px;
text-align: center;


}
.text-box p{
margin-top: 34px;
color:rgba(132,132,132,1.00);
font-size: 19px;
line-height: 30px;
text-align: left;
width: 100%;


}

#diferenciais{
background:url("img/fundoengenharia.png") no-repeat top;
background-size: cover;

}

#diferenciais h2{
margin-top: 21px;
margin-bottom: 70px;
font-size: 33px;
font-weight: 700;
color:rgba(4,39,81,1.00);

}
.features-grid {

    display: grid;
   grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

.feature-card {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-top: 3px solid var(--primary-green);
}

#contato{
background: rgba(255,255,255,1.00);
padding-bottom: 47px;

}

#contato h5{

text-align: center;
font-size: 41px;
font-weight: 700;
color:rgba(4,39,81,1.00);
padding-top: 54px;
margin-bottom: 2px;

}

/* Formulário */
form input, form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 7px;
   
}

.contact-form{
position: relative;
float: left;

width:100%;
height: auto;

}

.contact-form p {
margin-top: -21px;
font-size: 18px;
font-weight: 400;
margin-bottom: 19px;
}

.contact-info{
background: url("img/fundocontatoesq.png")no-repeat center;
background-size: cover;
width: 100%;
height: auto;
border-radius: 34px;
}

.contact-info h2{
margin-top: 70px;
margin-left: 21px;
font-size: 40px;
font-weight: 600;
color:#00ab14;
}


.contact-info p{
margin-top: 27px;    
margin-left: 21px;
font-size: 25px;
font-weight: 400;
color:rgba(255,255,255,1.00);
}

.contact-info ul{

margin-left: 21px;
margin-top: 70px;
font-weight: 400;
color:rgba(255,255,255,1.00);
text-decoration: none;
 list-style: none;
 padding-bottom: 34px;


}

.contact-info li{
text-decoration: none;
 list-style: none;
display: flex;
font-size: 14px;
font-weight: 400;
color:rgba(255,255,255,1.00);
margin-top: 17px;
  align-items: center; 
}

.contact-info li img{
padding: 6px;
margin-right: 2px;
 transform: translateY(1px);
}


#localizacao{
background:url("img/fundogaleriafotos.jpg") no-repeat;
background-size: cover;

}

#localizacao h5{
text-align: center;
font-size: 44px;
font-weight: 700;
padding-top: 70px;
color:#00A651;

}


}




    

/* Utilitários de Texto e Espaçamento */
.text-center { text-align: center; }
.title-green { color: var(--primary-green); font-size: 1.2rem; margin-bottom: 10px; }
.title-dark { color: var(--primary-dark); font-size: 2rem; }
.subtitle { color: #666; margin-bottom: 40px; }
.mt-30 { margin-top: 30px; }
.mb-40 { margin-bottom: 40px; }

/* Grid de Serviços (Obras e Terraplanagem) */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: #FFFFFF;
    border-radius: 17px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--primary-green);
}

.service-card-body {
    padding: 25px;
}

.service-card-body h4 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.service-card-body p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.5;
}

.service-card-body ul {
    list-style: none;
    font-size: 0.85rem;
    color: #444;
}

.service-card-body ul li {
    
    display: flex;
}

.service-card-body ul li img{
    width: 22px;
    height: 23px;
    border-bottom: none;
}

.service-card-body ul li p{
   font-size: 16px;
   font-weight: 400;
   margin-left: 7px;
}

/* Galerias de Imagens */
.gallery-section {
    padding: 60px 0;
    background: url("img/fundogaleriafotos.jpg") no-repeat;
    background-size: cover;
}

.gallery-section h3 {
font-size: 40px;
font-weight: 700;
margin-bottom: 54px;
margin-top: -34px;
}



.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0; /* Imagens coladas como no layout */
  
    margin-top: 30px;
}

.gallery-grid img {
   margin-top: -4px;
    width: 100%;
    height: 250px;
    object-fit: cover;
    
    transition: opacity 0.3s;
}

.gallery-grid img:hover {
    opacity: 0.8;
}

/* Responsivo para a Galeria */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .gallery-grid img {
   margin-top: 7px;
    width: 100%;
    height: 200px;
    object-fit: cover;
    
    transition: opacity 0.3s;
}
}
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}




/* =========================================
   RODAPÉ (FOOTER)
========================================= */
.site-footer {
    background:url("img/fundoquemsomos.jpg") no-repeat top;
    background-size: cover;
    position: relative;
    /* Se quiser a imagem de ondas ao fundo, você pode adicionar o background-image aqui */
}

/* Grid das 4 Colunas */
.footer-top {
    display: grid;
    grid-template-columns: 6fr 4fr 7fr 3fr; /* Proporção das colunas */
    gap: 40px;
    align-items: center; /* Centraliza verticalmente o conteúdo das colunas */
    padding: 60px 20px;
}

/* Coluna 1: Logo */
.footer-logo img {
    max-width: 315px;
    height: auto;
}

/* Coluna 2: Links */
.footer-links ul {
    list-style: none;
    padding: 0;
    margin-top: 7px;
}

.footer-links li {
    margin-bottom: 8px;
    
}

.footer-links a {
    text-decoration: none;
    color: #666666; /* Cor cinza do texto */
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-green);
}

/* Coluna 3: Endereço */
.footer-address {
    text-align: center;
    color: #666666;
    font-size: 0.95rem;
}

.pin-icon {
    width: auto;
    height: 40px;
    margin-bottom: 17px;
}

/* Coluna 4: Redes Sociais */
.footer-social {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: -40px;
}

.footer-social a img {
    width: auto;
    height: 27px;
    transition: transform 0.3s ease;
    
}

.footer-social a:hover img {
    transform: translateY(-5px); /* Efeito de flutuar ao passar o mouse */
}

/* =========================================
   BARRA INFERIOR (COPYRIGHT)
========================================= */
.footer-bottom {
    background-color: #d2d2d2; /* Cor cinza da barra inferior */
    padding: 7px 0;
    color: #434343;
    font-size: 0.85rem;
}

.bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.credits {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mkt-logo {
    height: 40px; /* Ajuste a altura da sua logo da agência aqui */
    width: auto;
}

/* =========================================
   RESPONSIVIDADE (CELULARES E TABLETS)
========================================= */
@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas no tablet */
        text-align: center;
    }
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr; /* 1 coluna no celular (empilhado) */
        gap: 40px;
    }
    
    .bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}