@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', sans-serif;
    position: relative;
}

a {
    color: black;
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    opacity: 0.7;
}

/* --- CABEÇALHO E NAVEGAÇÃO --- */
nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom, #00387d, #1463a0);    
    height: 10vh;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.logo {
    max-height: 60px;
}

.nav-list {
    list-style: none;
    display: flex;
}

.nav-list a {
    color: white;
    font-weight: bold;
}

.nav-list li {
    letter-spacing: 2px;
    margin-left: 32px;
}

/* --- MENU MOBILE --- */
.mobile-menu {
    display: none;
    cursor: pointer;
}

.mobile-menu div {
    width: 32px;
    height: 2px;
    background: white;
    margin: 8px;
    transition: 0.3s;
}

/* --- CONTEÚDO PRINCIPAL (HERO SECTION SLIDER) --- */
.slider {
    position: relative;
    width: 100%;
    height: 50vh;
    overflow: hidden; /* Essencial para o efeito de deslizamento */
}

.slides {
    display: flex; /* Coloca os slides em linha */
    width: 300%; /* Largura total (100% por slide) */
    height: 100%;
    transition: transform 0.8s ease-in-out; /* Controla a animação de deslizamento */
}

.slide {
    width: 100%; /* Garante que cada slide ocupe o container */
    height: 100%;
    /* Removemos opacity e display, pois agora controlamos com transform */
}

.slide.active {
    /* A classe 'active' não é mais necessária para a visibilidade do slide,
       mas o JS a utiliza para controle. Não precisamos de estilos aqui. */
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

/* O restante dos estilos (botões e pontos) permanece o mesmo */

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.4);
    border: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

.dots-container {
    text-align: center;
    position: absolute;
    bottom: 20px;
    width: 100%;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: #ffffff;
}

/* --- SEÇÃO DE SERVIÇOS --- */
.servicos {
    font-family: 'Roboto Slab', serif;
    text-align: center;
    margin: 50px 0;
    font-size: 2.5em;
}

.conteudo {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    justify-content: center;
}

.box {
    background-color: rgb(26, 26, 26);
    border-radius: 8px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.box:hover {
    transform: scale(1.03);
    transition: transform 0.3s ease;
}

.box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.box h2 {
    padding: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: aliceblue;
    font-size: 1.4em;
    text-align: center;
}

.box p {
    padding: 0 15px 25px 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: aliceblue;
    font-size: 1em;
    text-align: center;
    flex-grow: 1;
}

/* --- FEEDBACKS --- */
.feedbacks {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    margin: 80px 0;
}

.feedbacks h1 {
    margin-bottom: 10px;
}

/* --- RODAPÉ --- */
footer {
    width: 100%;
    background-color: rgb(26, 26, 26);
    color: aliceblue;
    padding: 3rem 0;
}

#footer_conteudo {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 0 2rem;
    gap: 2rem;
}

.footer_contatos img {
    max-width: 200px;
    margin-bottom: 1rem;
}

#formasdecontato {
    display: flex;
    gap: 1rem;
}

#formasdecontato .footerlink {
    display: flex;
    color: aliceblue;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    width: 2.5rem;
    border-radius: 50%;
    font-size: 1.25rem;
    transition: all 0.4s;
}

#whatss {
    background-color: #25d366;
}

#location {
    background-color: #4285F4;
}

.footer_list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
    font-family: 'Roboto', sans-serif;
}

.footer_list h3 {
    margin-bottom: 1rem;
    color: aliceblue;
}

.footer_list li {
    color: rgba(255, 255, 255, 0.7);
}

.maps iframe {
    width: 100%;
    height: 100%;
    min-height: 200px;
    border-radius: 8px;
}

/* --- ESTILOS DE ANIMAÇÃO COM JAVASCRIPT --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.container > a:nth-child(2) { transition-delay: 100ms; }
.container > a:nth-child(3) { transition-delay: 200ms; }
.container > a:nth-child(4) { transition-delay: 300ms; }

/* --- RESPONSIVIDADE --- */
@media (max-width: 999px) {
    .nav-list {
        position: fixed;
        top: 10vh;
        right: 0;
        width: 65vw;
        height: 90vh;
        background: linear-gradient(to bottom, #00387d, #1463a0);
        box-shadow: -5px 0px 15px rgba(0,0,0,0.2);
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        transform: translateX(100%);
        transition: transform 0.3s ease-in;
        z-index: 99;
    }

    .nav-list li {
        margin-left: 0;
        opacity: 0;
    }

    .mobile-menu {
        display: block;
    }

    .nav-list.active {
        transform: translateX(0);
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .mobile-menu.active .line1 {
        transform: rotate(-45deg) translate(-8px, 8px);
    }

    .mobile-menu.active .line2 {
        opacity: 0;
    }

    .mobile-menu.active .line3 {
        transform: rotate(45deg) translate(-5px, -7px);
    }

    #footer_conteudo {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-text h1 { font-size: 2.5em; }
    .hero-text p { font-size: 1.1em; }
}

@media (max-width: 768px) {
    .servicos {
        font-size: 2em;
    }

    #footer_conteudo {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer_contatos, .footer_list {
        align-items: center;
    }

    #formasdecontato {
        justify-content: center;
        margin-top: 1rem;
    }

    .maps {
        grid-row: 1;
    }

    .hero-text h1 { font-size: 2em; }
    .hero-text p { font-size: 1em; }
}