/* =========================================
   1. RESET E CONFIGURAÇÕES GLOBAIS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    outline: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    background-color: #f4f4f4;
    overflow-x: hidden;
}

:root {
    --bg-dark: #1b263b;
    --bg-gradient: linear-gradient(135deg, #0d1b2a 0%, #1b263b 100%);
    --accent-cyan: #4deeea;
    --text-white: #ffffff;
    --text-gray: #e0e0e0;
}

/* =========================================
   2. HEADER / NAVEGAÇÃO
   ========================================= */
.nav {
    background-color: #0d1b2a;
    height: 80px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.logo {
    color: var(--accent-cyan);
    font-weight: 900;
    font-size: 24px;
    letter-spacing: 1px;
    z-index: 1001; /* Garante que a logo fique acima do menu aberto */
}

/* Esconde o botão hambúrguer no Desktop */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-white);
    cursor: pointer;
    z-index: 1001;
}

.navlist {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 15px;
}

.navlist a {
    text-decoration: none;
    color: var(--text-gray);
    padding: 10px 15px;
    transition: 0.3s;
    font-weight: 500;
    font-size: 16px;
    border-radius: 4px;
}

.navlist a:hover {
    color: var(--accent-cyan);
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-btn {
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan) !important;
}

.nav-btn:hover {
    background-color: var(--accent-cyan) !important;
    color: #000 !important;
    box-shadow: 0 0 10px rgba(77, 238, 234, 0.3);
}

/* =========================================
   3. HERO SECTION (CAPA)
   ========================================= */
.main {
    width: 100%;
    min-height: calc(100vh - 80px); 
    display: flex;
    align-items: center;
    padding: 0 10%;
    background-image: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 100%), url("imagens/Design sem nome.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-content {
    max-width: 650px;
    z-index: 2;
    animation: fadeIn 1.5s ease-in-out;
}

.main h3 {
    color: var(--accent-cyan);
    font-weight: 500;
    font-size: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.main h1 {
    color: var(--text-white);
    font-size: 48px;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 10px;
}

.destaque {
    color: var(--accent-cyan);
    text-shadow: 0 0 20px rgba(77, 238, 234, 0.3);
}

.slogan {
    font-size: 18px;
    color: var(--text-gray);
    margin-top: 15px;
    margin-bottom: 40px;
    border-left: 4px solid var(--accent-cyan);
    padding-left: 15px;
    line-height: 1.5;
}

.button-action {
    padding: 15px 35px;
    border: none;
    font-weight: 700;
    font-size: 16px;
    border-radius: 50px;
    background-color: var(--accent-cyan);
    color: #0d1b2a;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(77, 238, 234, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.button-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(77, 238, 234, 0.6);
    background-color: #fff;
}

/* =========================================
   4. SEÇÃO SERVIÇOS
   ========================================= */
.servicos {
    width: 100%;
    padding: 80px 5%;
    background-color: #f9f9f9;
    text-align: center;
}

.servicos h2 {
    font-size: 32px;
    color: #0d1b2a;
    margin-bottom: 10px;
    font-weight: 800;
}

.servicos > p {
    margin-bottom: 50px;
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.lista-servicos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 50px auto;
}

.card-servico {
    background: white;
    padding: 40px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
    border-bottom: 4px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-servico:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--accent-cyan);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.icone {
    font-size: 45px;
    color: #0d1b2a;
    margin-bottom: 25px;
    transition: 0.3s;
}

.card-servico:hover .icone {
    color: var(--accent-cyan);
    transform: scale(1.1);
}

.card-servico h3 {
    margin-bottom: 15px;
    color: #0d1b2a;
    font-size: 20px;
}

.card-servico p {
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}

.acao {
    background-color: transparent;
    border: 2px solid #0d1b2a;
    padding: 12px 35px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    color: #0d1b2a;
    cursor: pointer;
    transition: 0.3s;
}

.acao:hover {
    background-color: #0d1b2a;
    color: #fff;
}

/* =========================================
   5. SEÇÃO SOBRE
   ========================================= */
.sobre {
    background-color: #fff;
    width: 100%;
    padding: 80px 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    border-top: 1px solid #eee;
}

.sobre-texto {
    flex: 1;
    max-width: 600px;
}

.sobre img {
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
    box-shadow: 15px 15px 0px var(--accent-cyan);
    object-fit: cover;
}

.sobre h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #0d1b2a;
    font-weight: 800;
}

.sobre p {
    line-height: 1.8;
    color: #555;
    font-size: 16px;
    margin-bottom: 15px;
}

/* =========================================
   6. FOOTER
   ========================================= */
footer {
    background-color: #0d1b2a;
    color: #FFF;
    padding: 50px 20px;
    text-align: center;
    border-top: 4px solid var(--accent-cyan);
}

footer h3 {
    color: var(--accent-cyan);
    font-size: 24px;
    margin-bottom: 15px;
}

footer p {
    color: #ccc;
    margin-bottom: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   7. RESPONSIVIDADE (MOBILE E TABLET)
   ========================================= */

@media (max-width: 992px) {
    .main h1 { font-size: 40px; }
    .sobre { padding: 60px 5%; gap: 30px; }
    .sobre img { max-width: 350px; }
}

@media (max-width: 768px) {
    /* 1. CONFIGURAÇÃO DO MENU HAMBÚRGUER */
    
    .nav {
        padding: 0 20px; /* Menos padding lateral */
    }

    /* Mostra o botão hambúrguer */
    .hamburger {
        display: block;
    }

    /* O Menu (Lista de links) escondido na lateral */
    .navlist {
        position: fixed;
        top: 0;
        right: -100%; /* Começa escondido fora da tela à direita */
        width: 70%;   /* Ocupa 70% da tela */
        height: 100vh; /* Altura total da tela */
        background-color: #0d1b2a; /* Fundo Azul Escuro */
        flex-direction: column;
        justify-content: center; /* Centraliza itens verticalmente */
        align-items: center;
        transition: 0.4s ease-in-out; /* Animação suave */
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5); /* Sombra lateral */
    }

    /* Classe que o Javascript adiciona para mostrar o menu */
    .navlist.active {
        right: 0; /* Traz o menu para a tela */
    }

    .navlist li {
        margin: 20px 0; /* Espaço entre os links */
    }

    .navlist a {
        font-size: 20px; /* Texto maior no mobile */
        display: block;
    }

    /* 2. Hero Section Mobile (Fundo Gradiente) */
    .main {
        justify-content: center;
        text-align: center;
        padding: 60px 5%;
        min-height: auto;
        background-image: var(--bg-gradient); /* Sem foto, só cor */
        background-size: auto;
        background-position: initial;
    }

    .hero-content {
        margin: 0;
        width: 100%;
    }

    .main h1 { font-size: 34px; margin-bottom: 15px; }
    .main h3 { font-size: 14px; opacity: 0.8; }

    .slogan {
        border-left: none;
        border-bottom: 2px solid var(--accent-cyan);
        padding-left: 0;
        padding-bottom: 20px;
        font-size: 18px;
        margin-bottom: 30px;
    }

    .button-action {
        width: 100%;
        justify-content: center;
        padding: 18px;
    }

    /* 3. Ajustes Gerais Mobile */
    .sobre {
        flex-direction: column-reverse; 
        padding: 50px 5%;
    }
    .sobre-texto { width: 100%; text-align: center; padding-right: 0; }
    .sobre img { width: 100%; box-shadow: 0px 10px 0px var(--accent-cyan); margin-bottom: 30px; }
    .servicos { padding: 60px 5%; }
    .acao { width: 100%; padding: 18px; }
}