* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    background-color: #373643; 
    overflow-x: hidden; 
}

.container {
    max-width: 1200px; 
    width: 90%;        
    height: 100%;
    margin: 0 auto;
    position: relative;
}

/* TÍTULOS COM ANIMAÇÃO */
.titulo-secao {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 50px; 
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.titulo-secao::after {
    content: '';
    width: 50px;
    height: 4px;
    background-color: #18CB96;
    border-radius: 2px;
}

.titulo-secao.show-anim {
    opacity: 1;
    transform: translateY(0);
}

/* CABEÇALHO */
.header {
    width: 100%; height: 100px;
    background-color: #2A2935; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative; z-index: 100;
}
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { height: 60px; width: auto; }

.menu-toggle { display: none; flex-direction: column; gap: 6px; cursor: pointer; z-index: 101; }
.menu-toggle span { width: 30px; height: 3px; background-color: #18CB96; transition: all 0.3s ease; border-radius: 2px; }

.nav-menu { display: flex; align-items: center; }
.nav-links { display: flex; gap: 40px; margin-right: 100px; }
.nav-links a { color: #ffffff; text-decoration: none; font-size: 14px; transition: 0.3s; }
.nav-links a:hover { color: #8E8D9A; }

.btn-contato {
    display: flex; justify-content: center; align-items: center;
    width: 200px; height: 50px; border: 1px solid #ffffff; color: #18CB96;
    font-weight: 700; font-size: 12px; text-decoration: none; transition: 0.3s;
}
.btn-contato:hover { background-color: #4A4958; border-color: #4A4958; color: #ffffff; }

/* HERO E SLIDER */
.hero { width: 100%; height: 500px; background-color: #373643; overflow: hidden; display: flex; align-items: center; }
.hero-container { display: flex; flex-direction: column; justify-content: center; position: relative; width: 100%; }
.slides-wrapper { position: relative; width: 100%; height: 300px; }
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: space-between;
    opacity: 0; visibility: hidden; transition: opacity 0.5s ease;
}
.slide.active { opacity: 1; visibility: visible; z-index: 2; }

.slide.active .slide-text { animation: deslizaDireita 1s ease forwards; }
.slide.active .setas-hero { animation: deslizaEsquerda 1s ease forwards; }

@keyframes deslizaDireita { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes deslizaEsquerda { from { opacity: 0; transform: translateX(40px); } to { opacity: 0.8; transform: translateX(0); } }

.slide-text { max-width: 800px; position: relative; z-index: 2; }
.hero-titulo { font-size: 40px; font-weight: 700; line-height: 1.3; }
.setas-hero { width: 350px; height: auto; object-fit: contain; position: relative; z-index: 1; }

.slider-nav { display: flex; justify-content: center; gap: 15px; margin-top: 30px; position: relative; z-index: 5; }
.dot { width: 12px; height: 12px; border: 2px solid #18CB96; border-radius: 50%; cursor: pointer; transition: 0.3s ease; background-color: transparent; }
.dot:hover { background-color: rgba(24, 203, 150, 0.3); }
.dot.active { background-color: #18CB96; }

/* SERVIÇOS (Fundo Escuro) */
.servicos { 
    width: 100%; 
    padding: 80px 0 80px 0; 
    background-color: #2A2935; 
}
.grid-servicos { display: flex; justify-content: space-between; gap: 20px; align-items: stretch; width: 100%; }

.card {
    width: 280px; height: auto; 
    background-color: #373643; 
    border-top: 4px solid #18CB96; border-radius: 6px; 
    display: flex; flex-direction: column; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); 
    transition: transform 0.4s ease, box-shadow 0.4s ease; 
}
.card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4); }
.card-header { color: #18CB96; font-weight: 700; font-size: 18px; padding: 30px 20px 10px 20px; }
.card-body { padding: 0 20px 30px 20px; color: #ffffff; font-size: 14px; line-height: 1.6; opacity: 0.85; }

/* PORTFÓLIO (Fundo Claro) */
.portifolio { width: 100%; padding: 80px 0; background-color: #373643; }
.grid-galeria {
    display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(4, 200px);
    max-width: 1200px; height: 800px;
}
.grid-galeria img { 
    width: 100%; height: 100%; object-fit: cover; display: block; 
    cursor: pointer; transition: transform 0.3s ease, filter 0.3s ease; 
}
.grid-galeria img:hover { transform: scale(1.02); z-index: 2; position: relative; filter: brightness(1.1); }

.img1 { grid-column: 1 / 3; grid-row: 1 / 3; } .img8 { grid-column: 3 / 4; grid-row: 1 / 2; } 
.img9 { grid-column: 3 / 4; grid-row: 2 / 3; } .img2 { grid-column: 4 / 6; grid-row: 1 / 3; } 
.img5 { grid-column: 6 / 7; grid-row: 1 / 3; } .img7 { grid-column: 1 / 2; grid-row: 3 / 5; } 
.img3 { grid-column: 2 / 4; grid-row: 3 / 5; } .img6 { grid-column: 4 / 5; grid-row: 3 / 5; } 
.img4 { grid-column: 5 / 7; grid-row: 3 / 5; } 

/* LIGHTBOX E SETAS DE NAVEGAÇÃO */
.lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(30, 30, 40, 0.95); z-index: 2000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-content { max-width: 80%; max-height: 85%; box-shadow: 0 0 30px rgba(0,0,0,0.5); border-radius: 4px; }
.close-lightbox { position: absolute; top: 30px; right: 40px; color: #18CB96; font-size: 40px; font-weight: bold; cursor: pointer; transition: 0.3s; z-index: 2001;}
.close-lightbox:hover { color: #ffffff; }
.prev-lightbox, .next-lightbox {
    cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%);
    width: auto; padding: 20px; color: #18CB96; font-weight: bold; font-size: 40px;
    transition: 0.3s; user-select: none; z-index: 2001;
}
.prev-lightbox { left: 20px; }
.next-lightbox { right: 20px; }
.prev-lightbox:hover, .next-lightbox:hover { color: #ffffff; background-color: rgba(0,0,0,0.3); border-radius: 8px;}

/* CONTATO (Fundo Claro) */
.contato { width: 100%; padding: 60px 0; background-color: #373643; display: flex; align-items: center; }
.flex-contato { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.contato-imagem { width: 400px; height: 400px; }
.contato-imagem img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.contato-form { width: 100%; max-width: 700px; height: auto; }
.contato-form form { display: flex; flex-direction: column; gap: 15px; }
.contato-form input, .contato-form textarea {
    width: 100%; background-color: transparent; border: 1px solid rgba(255, 255, 255, 0.4); 
    color: #ffffff; font-family: 'Montserrat', sans-serif; font-size: 16px; padding: 20px; outline: none; border-radius: 4px;
}
.contato-form input::placeholder, .contato-form textarea::placeholder { color: rgba(255, 255, 255, 0.7); font-weight: 300; }
.input-topo, .input-meio { height: 60px; }
.input-area { min-height: 150px; resize: none; }
.contato-form button {
    height: 60px; background-color: #18CB96; color: #ffffff; border: none; border-radius: 4px;
    font-weight: 700; font-size: 18px; cursor: pointer; transition: 0.3s ease;
}
.contato-form button:hover { background-color: #15b083; }

/* RODAPÉ (Fundo Escuro com Redes Sociais) */
.footer { width: 100%; min-height: 100px; padding: 20px 0; background-color: #2A2935; display: flex; align-items: center; }
.footer-flex { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 20px; }
.footer-left { display: flex; align-items: center; gap: 30px; }
.footer p { font-size: 12px; color: rgba(255, 255, 255, 0.5); font-weight: 300; }
.footer p strong { color: #ffffff; font-weight: 700; }

.social-icons { display: flex; align-items: center; gap: 15px; }
.social-icons a { display: block; width: 22px; height: 22px; color: #ffffff; transition: 0.3s ease; }
.social-icons a:hover { color: #18CB96; transform: translateY(-3px); }
.social-icons svg { width: 100%; height: 100%; fill: currentColor; }

.icone-rodape { height: 40px; width: auto; }

/* BOTÃO WHATSAPP CORRIGIDO 100% BLINDADO */
.btn-whatsapp {
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    width: 60px; 
    height: 60px;
    background-color: #25D366; 
    border-radius: 50%; /* Esfera perfeita */
    display: flex; 
    justify-content: center; 
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); 
    z-index: 9999; 
    transition: transform 0.3s ease;
    text-decoration: none; 
    padding: 0;
    overflow: hidden;
}
.btn-whatsapp:hover { transform: scale(1.1); }
.btn-whatsapp svg { 
    width: 32px; 
    height: 32px; 
    fill: #ffffff; 
    display: block; 
}

/* MÁGICA DO CELULAR (RESPONSIVIDADE) */
@media (max-width: 992px) {
    .titulo-secao { font-size: 28px; margin-bottom: 30px; }
    .header { height: 80px; }
    .header .container { flex-direction: row; justify-content: space-between; height: 100%; }
    .menu-toggle { display: flex; } 
    .menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    
    .nav-menu {
        position: absolute; top: 80px; left: -100%; width: 100%; background-color: #2A2935;
        flex-direction: column; padding: 40px 0; transition: left 0.4s ease; box-shadow: 0 10px 15px rgba(0,0,0,0.3);
    }
    .nav-menu.active { left: 0; }
    .nav-links { margin-right: 0; flex-direction: column; align-items: center; gap: 25px; margin-bottom: 25px; }

    .hero { height: auto; min-height: 400px; padding: 60px 0; }
    .slides-wrapper { height: auto; min-height: 350px; display: flex; justify-content: center; align-items: center;}
    .slide { flex-direction: column; justify-content: center; text-align: center; }
    .hero-titulo { font-size: 26px; text-align: center; }
    
    .setas-hero { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 250px; margin: 0; z-index: 1; }
    .slide.active .setas-hero { animation: fadeSetaMobile 1.5s ease forwards; }

    @keyframes fadeSetaMobile {
        from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
        to { opacity: 0.15; transform: translate(-50%, -50%) scale(1); } 
    }

    .servicos { padding: 50px 0; }
    .grid-servicos { flex-direction: column; align-items: center; }
    .card { width: 100%; max-width: 400px; } 

    .portifolio { height: auto; padding: 50px 0; }
    .grid-galeria { display: flex; flex-direction: column; height: auto; gap: 10px; }
    .grid-galeria img { width: 100%; height: 300px; object-fit: cover; } 

    .lightbox-content { max-width: 95%; max-height: 70%; }
    .prev-lightbox, .next-lightbox { font-size: 30px; padding: 10px; }

    .flex-contato { flex-direction: column; }
    .contato-imagem { width: 100%; max-width: 400px; height: 300px; }
    
    .footer-flex { flex-direction: column; gap: 20px; text-align: center; }
    .footer-left { flex-direction: column; gap: 15px; }
    
    .btn-whatsapp { bottom: 20px; right: 20px; width: 55px; height: 55px; }
    .btn-whatsapp svg { width: 30px; height: 30px; }
}