/* ================= RESET E VARIÁVEIS ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --azul-vgs: #0b1f38;
    --vermelho-vgs: #d32f2f;
    --cinza-fundo: #f4f5f7;
    --texto-escuro: #333;
    --texto-claro: #666;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff;
    color: var(--texto-escuro);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; position: relative; }

/* ================= HEADER ================= */
header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo { max-height: 50px; }
nav ul { display: flex; align-items: center; gap: 8px; }
nav ul li { font-size: 12px; font-weight: 700; text-transform: uppercase; }
nav ul li a { transition: 0.3s; }
nav ul li a:hover { color: var(--vermelho-vgs); }
.nav-separator { color: #ccc; font-weight: 400; margin: 0 5px; }

/* ================= HERO SECTION ================= */
.hero {
    position: relative;
    width: 100%;
    min-height: 480px;
    height: 42vw;
    max-height: 700px;
    background-color: var(--azul-vgs);
    overflow: hidden;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(11, 31, 56, 1) 0%, rgba(11, 31, 56, 0.8) 35%, rgba(11, 31, 56, 0) 60%),
                url('../assets/img/fundo.webp') bottom right / cover no-repeat;
    z-index: 1;
    will-change: transform;
}
.hero-container { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.hero-content { max-width: 650px; width: 100%; }
.hero h1 { color: #fff; font-size: clamp(30px, 4vw, 42px); font-weight: 900; line-height: 1.1; margin-bottom: 20px; text-transform: uppercase; }
.hero p { color: rgba(255, 255, 255, 0.9); font-size: clamp(14px, 1.5vw, 16px); margin-bottom: 30px; max-width: 500px; }
.btn-red { display: inline-block; background-color: var(--vermelho-vgs); color: #fff !important; padding: 15px 35px; font-weight: 700; font-size: 14px; text-transform: uppercase; text-decoration: none; border-radius: 4px; transition: all 0.3s ease; border: none; cursor: pointer; }
.btn-red:hover { background-color: #b71c1c; transform: translateY(-3px); }

/* ================= SECÇÕES GERAIS ================= */
.section-title { text-align: center; font-size: 24px; color: var(--azul-vgs); text-transform: uppercase; font-weight: 900; margin-bottom: 40px; position: relative; }
.section-title::after { content: ""; display: block; width: 40px; height: 3px; background-color: var(--vermelho-vgs); margin: 12px auto 0; }
.section-title.left { text-align: left; }
.section-title.left::after { margin: 12px 0 0 0; }
.secao-fundo-cinza { background-color: var(--cinza-fundo); padding: 70px 0; }
.secao-branca { background-color: #fff; padding: 70px 0; }

/* ================= FEATURES (ÍCONES LIMPOS) ================= */
.features { padding: 50px 0; background-color: #fff; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: start; }
.feature-item { text-align: center; }
.feature-item img { height: 50px; width: auto; margin: 0 auto 15px; display: block; }
.feature-item h3 { font-size: 14px; font-weight: 700; margin-bottom: 10px; color: var(--azul-vgs); }
.feature-item p { font-size: 13px; color: var(--texto-claro); line-height: 1.6; max-width: 260px; margin: 0 auto; }

/* ================= SOBRE NÓS ================= */
.flex-content { display: flex; gap: 50px; align-items: center; }
.text-block { flex: 1; }
.img-block { flex: 1; }
.img-block img { border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); width: 100%; }
.check-list { margin-top: 20px; }
.check-list li { margin-bottom: 12px; font-weight: 700; color: var(--azul-vgs); display: flex; align-items: center; gap: 10px; font-size: 14px; }
.check-list i { color: var(--vermelho-vgs); font-size: 16px; }

/* ================= ÁREAS DE ATUAÇÃO ================= */
.atuacao-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.atuacao-card { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); border: 1px solid #eee; }
.atuacao-card h3 { font-size: 16px; color: var(--azul-vgs); font-weight: 900; margin-bottom: 15px; }
.atuacao-card ul li { font-size: 14px; color: var(--texto-claro); margin-bottom: 10px; list-style: disc; margin-left: 20px; }

/* ================= CARROSSÉIS (PARCEIROS, VÍDEOS, PROJETOS) ================= */
.carousel-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 15px; width: 100%; }
.carousel-btn { background: none; border: none; font-size: 30px; color: #aaa; cursor: pointer; padding: 10px; transition: 0.3s; flex-shrink: 0; }
.carousel-btn:hover { color: var(--azul-vgs); }
.carousel-track-container { overflow: hidden; flex: 1; }
.carousel-track { display: flex; gap: 30px; align-items: center; transition: transform 0.4s ease-in-out; }

/* Parceiros */
.partner-logo { flex: 0 0 auto; width: 160px; height: 80px; display: flex; justify-content: center; align-items: center; }
.partner-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Projetos */
/* ================= Projetos (Efeito de Zoom e Clique) ================= */
.project-card {
    flex: 0 0 auto;
    width: 260px;
    cursor: pointer; /* Mostra a mãozinha de clique */
    overflow: hidden; /* Impede que a imagem fuja da borda ao dar zoom */
    border: 5px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease; /* Animação suave */
}

/* Quando passa o mouse, a imagem cresce 10% */
.project-card:hover img {
    transform: scale(1.1) translate3d(0,0,0);
}

/* Formatação da Janela (Modal) da Imagem */
.img-modal-content {
    max-width: 900px; /* Imagens horizontais precisam de mais espaço que vídeos em pé */
    background: transparent;
    box-shadow: none;
}

.img-modal-content img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

/* Vídeos */
.video-card { flex: 0 0 auto; width: 280px; cursor: pointer; }
.video-thumb { position: relative; aspect-ratio: 16/9; background: #000; overflow: hidden; border-radius: 4px; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: 0.3s; }
.video-card:hover .video-thumb img { opacity: 1; transform: scale(1.05); }
.video-title { margin-top: 15px; font-size: 15px; font-weight: 700; color: var(--azul-vgs); text-align: center; }

/* BOTÃO PLAY CSS PURO */
.play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 55px; height: 55px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    z-index: 10; pointer-events: none; transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.play-btn::after {
    content: ''; display: block;
    border-style: solid; border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.9);
    margin-left: 4px; transition: all 0.3s ease;
}
.video-card:hover .play-btn {
    background-color: rgba(255, 255, 255, 0.95);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}
.video-card:hover .play-btn::after { border-color: transparent transparent transparent var(--vermelho-vgs); }

/* ================= MODAL VÍDEO LIGHTBOX ================= */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9); z-index: 9999;
    align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.ativo { display: flex; opacity: 1; }
.modal-content { position: relative; width: 90%; max-width: 400px; max-height: 90vh; border-radius: 10px; overflow: hidden; background: #000; box-shadow: 0 15px 40px rgba(0,0,0,0.5); }
.modal-content video { width: 100%; max-height: 90vh; display: block; outline: none; }
.close-btn { position: absolute; top: 15px; right: 15px; background: rgba(255, 255, 255, 0.2); border: none; color: #fff; font-size: 24px; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.close-btn:hover { background: var(--vermelho-vgs); }

/* ================= SEÇÃO DE CONTATO ================= */
.contato-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: var(--cinza-fundo);
    padding: 50px;
    border-radius: 8px;
    align-items: stretch;
}

.contato-info, .contato-form-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contato-info h3, .contato-form-container h3 {
    font-size: 20px;
    color: var(--azul-vgs);
    margin-bottom: 25px;
    font-weight: 900;
}

.contato-info p { font-size: 15px; color: var(--texto-escuro); margin-bottom: 12px; }

.info-extra {
    margin: 25px 0;
    padding: 20px;
    background: rgba(11, 31, 56, 0.05);
    border-left: 4px solid var(--azul-vgs);
    border-radius: 4px;
    margin-bottom: auto; /* Empurra o botão do WhatsApp para o fundo */
}
.info-extra p { margin-bottom: 5px; font-size: 14px; }

.contato-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
}

.contato-form input, .contato-form textarea {
    padding: 16px; border: 1px solid #ddd; border-radius: 4px;
    font-size: 15px; outline: none; font-family: inherit; width: 100%; transition: border-color 0.3s;
}
.contato-form input:focus, .contato-form textarea:focus { border-color: var(--azul-vgs); }

/* Botões de Contato (Mesmo tamanho e na base) */
.btn-whatsapp, .contato-form .btn-red {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 55px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 100%;
    border: none;
    cursor: pointer;
    margin-top: auto;
}

.btn-whatsapp { background-color: #25D366; color: #fff; }
.btn-whatsapp:hover { background-color: #1ebe57; transform: translateY(-3px); box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); }

/* ================= FOOTER (NOVO MODELO 3 COLUNAS) ================= */
footer {
    background-color: var(--azul-vgs);
    color: #fff;
    padding: 70px 0 20px;
    border-top: 4px solid var(--vermelho-vgs);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: center;
}

.footer-logo-wrapper {
    background-color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.footer-logo {
    max-width: 110px;
    height: auto;
}

.footer-col h4 {
    font-size: 14px;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 900;
    letter-spacing: 1px;
}

.footer-col p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.social-icons { display: flex; gap: 12px; }
.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    font-size: 16px;
}

.social-icons a:hover {
    background: var(--vermelho-vgs);
    border-color: var(--vermelho-vgs);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

/* ================= RESPONSIVO GERAL ================= */
@media (max-width: 992px) {
    .features-grid, .atuacao-grid { grid-template-columns: repeat(2, 1fr); }
    .flex-content, .contato-wrapper { grid-template-columns: 1fr; flex-direction: column; }
    .img-block { order: -1; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .contato-wrapper { padding: 30px; gap: 40px; }
    .info-extra { margin-bottom: 25px; }
}

@media (max-width: 768px) {
    nav ul { display: none; }
    .features-grid, .atuacao-grid, .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .hero { min-height: 400px; padding: 40px 0; }
    .hero h1 { font-size: 28px; }
    .social-icons { justify-content: center; }
}