/* Importando a fonte Roboto */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body, html {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6; /* Melhor espaçamento de linha */
    margin: 0;
    padding: 0;
    scroll-behavior: smooth; /* Suave rolagem ao clicar nos links */
    overflow-x: hidden; /* Prevenir scroll horizontal */
}

header {
    position: fixed;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    color: #fff;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #f0a500;
}

.burger {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: #fff;
}

.parallax {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    position: relative;
    opacity: 0; /* Inicia invisível */
    transform: translateY(50px); /* Começa deslocado para baixo */
    transition: opacity 1s ease, transform 1s ease; /* Transições suaves */
}

.parallax .overlay {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    width: 50%;
}

#home {
    background-image: url('home-bg.jpg');
}

#servicos {
    background-image: url('services-bg.jpg');
}

#contato {
    background-image: url('contact-bg.jpg');
}

#missao-visao-valores {
    background-image: url('values-bg.jpg');
}

section {
    padding: 100px 20px;
    text-align: center;
}

section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #003366; /* Azul marinho moderno */
}

section p, section li {
    font-size: 18px;
    max-width: 800px;
    margin: auto;
    color: #003366; /* Azul marinho moderno */
    margin-bottom: 1.2em; /* Espaçamento entre parágrafos e itens de lista */
}

#rastreadores {
    padding: 50px 20px;
    background: #f7f7f7;
    position: relative; /* Adiciona posição relativa para posicionamento dos botões */
    overflow: hidden; /* Prevenir overflow horizontal */
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

.carousel {
    display: flex;
    overflow: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.carousel-item {
    flex: 0 0 auto;
    width: 300px; /* Definindo a largura fixa de 300px */
    height: 250px; /* Definindo a altura fixa de 200px */
    margin: 10px;
    scroll-snap-align: center;
    transition: transform 0.3s ease;
    background-size: cover;
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta a imagem para cobrir o contêiner sem distorção */
    background-size: cover;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    width: calc(100% - 40px); /* Reduz a largura para caber dentro da tela */
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 1000;
    pointer-events: none; /* Permite que clique através dos botões, exceto quando realmente estiver em cima deles */
    left: 20px; /* Posiciona dentro da margem da seção */
}

.carousel-nav button {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    pointer-events: auto; /* Permite clique nos botões */
}

.carousel-nav button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-nav button:focus {
    outline: none;
}

#rastreadores .carousel-nav button {
    display: block; /* Torna os botões visíveis apenas dentro da seção Rastreadores */
}

ul {
    list-style-type: none;
    padding: 0;
}

form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
}

form label {
    margin-top: 10px;
    font-size: 18px;
    color: #fff;
}

form input, form textarea {
    padding: 10px;
    margin-top: 5px;
    font-size: 16px;
    font-family: 'Roboto', Arial, sans-serif;
}

form button {
    padding: 10px;
    margin-top: 20px;
    font-size: 18px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
}

footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

/* Tamanhos de fonte para desktops */
body {
    font-size: 16px;
}

h1 {
    font-size: 36px;
}

h2 {
    font-size: 30px;
}

h3 {
    font-size: 24px;
}

p, li, label, input, textarea, button {
    font-size: 18px;
}

/* Modal de Sucesso */
.modal {
    display: none; /* Inicialmente oculto */
    position: fixed; 
    z-index: 1001; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Ícone do WhatsApp */
.whatsapp-icon {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.whatsapp-icon img {
    width: 50px;
    height: 50px;
}

/* Botão Voltar ao Topo */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #000;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    display: none; /* Inicialmente oculto */
}

.scroll-top-btn:hover {
    background-color: #555;
}

/* Tamanhos de fonte para dispositivos móveis */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        background: rgba(0, 0, 0, 0.7);
        position: absolute;
        width: 100%;
        top: 60px;
        left: 0;
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        font-size: 24px;
    }

    .burger {
        display: block;
    }

    body {
        font-size: 14px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    p, li, label, input, textarea, button {
        font-size: 16px;
    }

    .parallax .overlay {
        width: 80%; /* Aumenta a largura para 80% */
    }
}

/* Manter a cor branca para textos em seções com imagens de fundo */
#home .overlay,
#servicos .overlay,
#contato .overlay,
#missao-visao-valores .overlay {
    color: #fff;
}

#home h2,
#servicos h2,
#contato h2,
#missao-visao-valores h2 {
    color: #fff;
}

#home p,
#servicos p,
#contato p,
#missao-visao-valores p,
#home li,
#servicos li,
#contato li,
#missao-visao-valores li {
    color: #fff;
}