/* --- Variáveis de Cores --- */
:root {
    --primary-color: #0A192F; /* Azul escuro */
    --secondary-color: #D32F2F; /* Vermelho bombeiro */
    --accent-color: #2E7D32; /* Verde segurança */
    --text-color: #333333;
    --light-bg: #F4F6F8;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

/* --- Reset --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Roboto', sans-serif; }

h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; color: var(--primary-color); }
body { line-height: 1.6; color: var(--text-color); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Layout --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 10px; text-transform: uppercase; }
.section-subtitle { text-align: center; margin-bottom: 50px; color: #666; }

/* --- Header --- */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo-img { height: 50px; }
.nav-list { display: flex; gap: 30px; align-items: center; }
.nav-list a { font-weight: 500; color: var(--primary-color); transition: var(--transition); }
.nav-list a:hover { color: var(--secondary-color); }
.btn-nav { background-color: var(--secondary-color); color: var(--white) !important; padding: 10px 20px; border-radius: 5px; }
.btn-nav:hover { background-color: #b71c1c; }

/* --- Hero --- */
.hero {
    background: linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.8)), url('imagens/ps1.jpg');
    background-size: cover;
    background-position: center;
    height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
}
.hero-content h1 { font-size: 3rem; color: var(--white); margin-bottom: 20px; }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; max-width: 700px; margin: 0 auto 30px auto; }
.btn-cta {
    background-color: #25D366;
    color: var(--white);
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
}
.btn-cta:hover { background-color: #128C7E; transform: translateY(-3px); }

/* --- Services --- */
.services { background-color: var(--light-bg); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}
.service-card:hover { transform: translateY(-10px); border-bottom: 4px solid var(--secondary-color); }
.service-card .icon { font-size: 3rem; color: var(--secondary-color); margin-bottom: 20px; }

/* --- Gallery --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.gallery-grid img { width: 100%; height: 250px; object-fit: cover; border-radius: 8px; transition: var(--transition); }
.gallery-grid img:hover { transform: scale(1.03); }

/* --- About --- */
.about-flex { display: flex; align-items: center; gap: 50px; }
.about-text { flex: 1; }
.about-image { flex: 1; }
.about-image img { width: 100%; border-radius: 10px; box-shadow: 10px 10px 0px var(--primary-color); }
.tech-lead { margin-top: 20px; background: #f9f9f9; padding: 20px; border-left: 4px solid var(--primary-color); }
.tech-lead ul li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.tech-lead i { color: var(--accent-color); }

/* --- Testimonials --- */
.testimonials { background-color: var(--primary-color); color: var(--white); }
.testimonials .section-title, .testimonials .section-subtitle { color: var(--white); }
.testimonials-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }

.testimonial-card {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 8px;
    width: 100%;       /* Ocupa largura disponível */
    max-width: 300px;  /* Trava em 300px no desktop */
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    margin: 0 auto;
}

/* Imagem com Zoom no Hover */
.testimonial-card img {
    width: 100%;
    height: auto;
    max-height: 200px;
    border-radius: 5px;
    border: 1px solid var(--secondary-color);
    margin-bottom: 10px;
    object-fit: contain;
    background: #000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    cursor: zoom-in;
    position: relative;
    z-index: 1;
}

.testimonial-card img:hover {
    transform: scale(1.15);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    border-color: #fff;
    z-index: 10;
}

.testimonial-card p { font-style: italic; font-size: 0.9rem; margin-bottom: 10px; }
.testimonial-card h4 { color: var(--white) !important; font-size: 1rem; font-weight: 700; }

/* --- Seção de Contato (CTA Final) --- */
.contact-cta { background-color: var(--light-bg); text-align: center; }

.contact-box {
    background: var(--white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 700px;
    margin: 0 auto;
    border-top: 5px solid #25D366;
}

.contact-box h2 { font-size: 2rem; margin-bottom: 15px; }
.contact-box p { font-size: 1.1rem; margin-bottom: 20px; color: #555; }
.contact-alert {
    color: var(--secondary-color) !important;
    font-weight: bold;
    font-size: 0.9rem !important;
    margin-bottom: 30px !important;
    background: #ffebee;
    padding: 10px;
    border-radius: 5px;
    display: inline-block;
}

.contact-buttons { display: flex; justify-content: center; margin-bottom: 20px; }

.btn-whatsapp-big {
    background-color: #25D366;
    color: white;
    padding: 20px 50px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 15px;
    text-transform: uppercase;
}

.btn-whatsapp-big:hover { background-color: #128C7E; transform: translateY(-5px) scale(1.02); }

.email-info p { font-size: 0.9rem; color: #888; margin-top: 20px; margin-bottom: 0; }
.email-info strong { color: #555; }

/* --- Footer (Compacto) --- */
.footer { background-color: #050d1a; color: #ccc; padding-top: 30px; padding-bottom: 10px; }
.footer-content { display: flex; justify-content: space-around; align-items: flex-start; flex-wrap: wrap; gap: 20px; padding-bottom: 20px; }
.footer-logo { width: 100px; background: white; padding: 5px; border-radius: 4px; margin-bottom: 10px; }
.footer-info, .footer-contacts { max-width: 400px; }
.footer-info p, .footer-contacts p { margin-bottom: 5px; font-size: 0.9rem; }
.footer-contacts h3 { color: var(--white); margin-bottom: 10px; font-size: 1.1rem; }
.footer-info i, .footer-contacts i { color: var(--secondary-color); margin-right: 8px; }
.social-links a { font-size: 1.3rem; margin-right: 15px; color: var(--white); }
.social-links a:hover { color: var(--secondary-color); }
.footer-bottom { text-align: center; padding: 10px; border-top: 1px solid #222; font-size: 0.8rem; margin-top: 10px; }

/* --- Botão Flutuante WhatsApp --- */
.whatsapp-float {
    position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px;
    background-color: #25D366; color: #FFF; border-radius: 50px;
    text-align: center; font-size: 30px; box-shadow: 2px 2px 3px #999;
    z-index: 100; display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.whatsapp-float:hover { background-color: #128C7E; transform: scale(1.1); }

/* --- Responsividade (Mobile e Tablets) --- */
@media (max-width: 768px) {
    
    /* --- ALTERAÇÃO PRINCIPAL: Solta o cabeçalho no mobile --- */
    .header {
        position: relative; /* Muda de sticky para relative para rolar com a página */
        padding: 5px 0; /* Reduz o padding geral do header */
    }

    /* 1. Header mais organizado e COMPACTO */
    .header-container {
        flex-direction: column;
        padding-bottom: 5px; /* Reduzido de 10px */
    }

    .logo-img {
        height: 45px; /* --- ALTERAÇÃO: Reduzido de 60px para 45px */
        margin-bottom: 5px; /* --- ALTERAÇÃO: Reduzido de 10px para 5px */
    }

    /* --- MENU MOBILE --- */
    .nav-list {
        flex-direction: column;
        margin-top: 5px;
        gap: 0; /* Remove espaço extra entre os textos */
        width: 100%;
        text-align: center;
        padding-bottom: 10px;
    }

    /* Estilo para os links comuns (Início, Cursos, etc) */
    .nav-list a {
        font-size: 1rem;
        display: block;
        padding: 12px 0; /* Espaço para o dedo tocar */
        background-color: transparent; /* --- ALTERAÇÃO: Fundo removido */
        color: var(--primary-color);   /* Cor do texto escura */
        border-bottom: 1px solid #f0f0f0; /* Uma linha bem fininha para separar */
        border-radius: 0;
    }

    /* --- CORREÇÃO DO BOTÃO FALE CONOSCO --- */
    /* Isso garante que SOMENTE o botão tenha fundo vermelho */
    a.btn-nav {
        background-color: var(--secondary-color) !important; /* Vermelho */
        color: var(--white) !important; /* Texto Branco */
        border-radius: 5px;
        margin-top: 15px; /* Separa um pouco dos outros links */
        width: 100%; /* Ocupa a largura toda ou remova para ficar pequeno */
        border-bottom: none; /* Remove a linha de baixo do botão */
    }


    /* 2. Hero (Início) mais legível (Mantido do seu original) */
    .hero {
        height: auto;
        min-height: 80vh;
        padding: 60px 0;
        background-position: center top;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* 3. Ajuste dos Botões (Mantido do seu original) */
    .btn-cta {
        width: 90%;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        font-size: 1rem;
        padding: 15px 20px;
        margin-bottom: 20px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }

    /* Ajuste da Seção de Contato no Mobile (Mantido) */
    .contact-box { 
        padding: 30px 20px; 
    }
    
    .btn-whatsapp-big { 
        width: 100%; 
        justify-content: center;
        font-size: 1.1rem;
        padding: 15px;
    }
    
    /* Footer no Mobile (Mantido) */
    .footer-content { 
        flex-direction: column; 
        text-align: center; 
        align-items: center;
    }
}