/* ==========================================
   1. VARIÁVEIS E RESET BÁSICO
   ========================================== */
:root {
    --azul-marinho: #0A192F;
    --azul-claro: #112240;
    --laranja: #FF6B00;
    --laranja-hover: #E56000;
    --laranja-texto: #B34B00; /* Tom mais fechado aprovado pelo Google para textos */
    --branco: #FFFFFF;
    --cinza-fundo: #F4F7F6;
    --cinza-texto: #555555;
    --fonte-principal: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--fonte-principal);
}

body {
    background-color: var(--branco);
    color: var(--cinza-texto);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3, h4 { color: var(--azul-marinho); }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 10px; }
.section-subtitle { text-align: center; margin-bottom: 40px; font-size: 1.1rem; }


/* ==========================================
   2. BOTÕES GERAIS
   ========================================== */
.btn-primary {
    background-color: var(--laranja);
    color: var(--azul-marinho); /* Auto-contraste moderno que aprova no Google */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 900; /* Mais grosso para destacar */
    display: inline-block;
    transition: all 0.3s;
}
.btn-primary:hover { 
    background-color: var(--azul-marinho); 
    color: var(--branco); 
}

.btn-outline {
    background-color: transparent;
    color: var(--branco);
    border: 2px solid var(--branco);
    padding: 13px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s;
}
.btn-outline:hover { background-color: var(--branco); color: var(--azul-marinho); }


/* ==========================================
   3. CABEÇALHO, NAVEGAÇÃO E DROPDOWN
   ========================================== */
header {
    background-color: var(--branco);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}
.header-container { display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; gap: 15px; }
.logo-simbolo { height: 70px; width: auto; }
.logo-escrita { height: 50px; width: auto; }

.menu-toggle { display: none; font-size: 30px; color: var(--laranja); cursor: pointer; padding: 5px 10px; }

.nav-links { list-style: none; display: flex; gap: 25px; }
.nav-links a { text-decoration: none; color: var(--azul-marinho); font-weight: 600; transition: color 0.3s; }
.nav-links a:hover { color: var(--laranja); }
.header-btn { padding: 10px 20px; font-size: 0.9rem; }

/* Dropdown de Serviços */
.dropdown { position: relative; display: inline-block; }
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--branco);
    min-width: 260px;
    box-shadow: 0px 10px 20px rgba(0,0,0,0.1);
    z-index: 1001;
    border-radius: 8px;
    overflow: hidden;
    top: 100%;
    left: 0;
    /* margin-top removido para evitar o buraco no hover do mouse */
}
.dropdown-content a {
    color: var(--azul-marinho) !important;
    padding: 15px 20px !important;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid var(--cinza-fundo);
    font-weight: 500 !important;
    transition: background 0.3s, color 0.3s;
}
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background-color: var(--laranja); color: var(--branco) !important; }
.dropdown:hover .dropdown-content { display: block; }

/* Classe para o link ativo no dropdown */
.dropdown-content a.active-dropdown {
    color: var(--laranja) !important;
    font-weight: bold !important;
}
.dropdown-content a.active-dropdown:hover {
    color: var(--branco) !important;
}


/* ==========================================
   4. PÁGINA INICIAL (INDEX)
   ========================================== */
.hero {
    background: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.85)), url('images/imagemalmeida.webp') center/cover no-repeat;
    background-attachment: fixed;
    color: var(--branco);
    padding: 120px 0;
    text-align: center;
}
.hero h1 { color: var(--branco); font-size: 3.5rem; margin-bottom: 20px; line-height: 1.2; }
.hero h1 span { color: var(--laranja); }
.hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 40px; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; margin-bottom: 50px; }
.trust-badges { display: flex; justify-content: center; gap: 30px; font-size: 1.1rem; font-weight: 500; }
.trust-badges i { color: var(--laranja); margin-right: 8px; }

.sobre, .servicos, .obras, .pilares-confianca { padding: 80px 0; background-color: var(--cinza-fundo); }
.servicos { background-color: var(--branco); }

.tag-quem-somos { color: var(--laranja-texto); font-size: 1.2rem; text-transform: uppercase; margin-bottom: 10px; }

.sobre-container { display: flex; align-items: center; gap: 50px; }
.sobre-texto { flex: 1; }
.sobre-texto h2 { color: var(--laranja); font-size: 1.2rem; text-transform: uppercase; margin-bottom: 10px; }
.sobre-texto h3 { font-size: 2.2rem; margin-bottom: 20px; }
.sobre-texto p { margin-bottom: 15px; font-size: 1.1rem; }

.sobre-img-box {
    flex: 1;
    background-color: var(--azul-marinho);
    border-radius: 10px;
    padding: 40px;
    color: var(--branco);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.box-destaque h4 { color: var(--laranja); margin-bottom: 15px; font-size: 1.5rem; }
.box-destaque p { line-height: 2; font-size: 1.1rem; }

/* Grid de Cards (Serviços e Pilares) */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; }
.card {
    background: var(--branco);
    border: 1px solid #E0E0E0;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); border-color: var(--laranja); }
.card i { font-size: 3rem; color: var(--laranja); margin-bottom: 20px; }
.card h3 { margin-bottom: 15px; font-size: 1.3rem; }

.pilar-card { text-align: left; padding: 40px 30px; }


/* ==========================================
   5. PÁGINA SOBRE NÓS (STORYTELLING)
   ========================================== */
.sobre-hero {
    background: linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.9)), url('images/imagemalmeida.webp') center/cover;
    color: var(--branco);
    padding: 80px 0 60px;
    text-align: center;
}
.sobre-hero h1 { color: var(--branco); font-size: 3rem; margin-bottom: 15px; }
.sobre-hero h1 span { color: var(--laranja); }
.sobre-hero p { font-size: 1.2rem; color: #CCC; }

.storytelling-section { padding: 80px 0; background-color: var(--branco); }
.storytelling-grid { display: flex; align-items: center; gap: 60px; }
.story-text { flex: 1.2; }
.story-text h2 { font-size: 2.2rem; color: var(--azul-marinho); margin-bottom: 25px; line-height: 1.3; }
.story-text p { font-size: 1.15rem; color: var(--cinza-texto); margin-bottom: 20px; line-height: 1.7; }
.story-text strong { color: var(--azul-claro); }

.story-image { flex: 1; position: relative; }
.story-image img { width: 100%; border-radius: 12px; box-shadow: 0 15px 40px rgba(0,0,0,0.15); border: 5px solid var(--cinza-fundo); }
.story-image::before {
    content: '';
    position: absolute;
    top: -20px; right: -20px;
    width: 100%; height: 100%;
    background-color: var(--laranja);
    border-radius: 12px;
    z-index: -1;
}


/* ==========================================
   6. PÁGINA DE PORTFÓLIO (GALERIA E VÍDEO)
   ========================================== */
.portfolio-hero { background-color: var(--azul-marinho); color: var(--branco); padding: 80px 0 60px; text-align: center; }
.portfolio-hero h1 { color: var(--branco); font-size: 2.8rem; margin-bottom: 15px; }
.portfolio-hero h1 span { color: var(--laranja); }
.portfolio-hero p { font-size: 1.2rem; max-width: 800px; margin: 0 auto; color: #CCC; }

.portfolio-page { padding: 100px 0 80px; background-color: var(--cinza-fundo); min-height: 80vh; }
.portfolio-gallery-section { padding: 60px 0 100px; background-color: var(--cinza-fundo); }

.portfolio-seo-video { padding: 80px 0; background-color: var(--branco); }
.portfolio-split { display: flex; align-items: center; gap: 50px; }
.seo-text { flex: 1; }
.seo-text h2 { font-size: 2rem; margin-bottom: 20px; }
.seo-text p { font-size: 1.1rem; margin-bottom: 20px; }

.seo-list { list-style: none; margin: 30px 0; padding: 0; display: flex; flex-direction: column; gap: 15px; }
.seo-list li { display: flex; align-items: flex-start; gap: 15px; background-color: var(--cinza-fundo); padding: 20px; border-radius: 10px; border-left: 4px solid var(--laranja); box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.seo-list i { font-size: 1.8rem; color: var(--laranja); margin-top: 5px; }
.seo-text-content { display: flex; flex-direction: column; }
.seo-text-content strong { font-size: 1.2rem; color: var(--azul-marinho); margin-bottom: 5px; }
.seo-text-content p { font-size: 1.05rem !important; margin: 0 !important; color: var(--cinza-texto); line-height: 1.4; }

.video-destaque { flex: 1; display: flex; justify-content: center; align-items: center; }
.video-destaque video { width: 100%; max-width: 320px; height: auto; display: block; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 15px; box-shadow: 0 15px 35px rgba(0,0,0,0.2); border: 4px solid var(--azul-claro); }

.cta-portfolio { background-color: var(--azul-claro); color: var(--branco); text-align: center; padding: 80px 0; border-top: 4px solid var(--laranja); }
.cta-portfolio h2 { color: var(--branco); font-size: 2.2rem; margin-bottom: 15px; }
.cta-portfolio p { font-size: 1.1rem; color: #DDD; max-width: 600px; margin: 0 auto; }


/* ==========================================
   7. SLIDERS, GALERIA E LIGHTBOX UNIFICADO
   ========================================== */
.gallery-grid, .portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; margin-top: 40px; }
.gallery-item, .gallery-slide-item { position: relative; overflow: hidden; border-radius: 8px; cursor: pointer; aspect-ratio: 4 / 3; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.gallery-item img, .gallery-slide-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img, .gallery-slide-item:hover img { transform: scale(1.1); }

.swiper { width: 100%; padding-bottom: 40px !important; }
.swiper-pagination-bullet-active { background-color: var(--laranja) !important; }

/* Lightbox Base */
.lightbox {
    display: none; position: fixed; z-index: 10000; left: 0; top: 0;
    width: 100%; height: 100%; background-color: rgba(10, 25, 47, 0.95);
    align-items: center; justify-content: center;
    flex-direction: row; padding: 0 10px;
}
.lightbox-content { max-width: 90%; max-height: 90%; border-radius: 5px; box-shadow: 0 0 20px rgba(0,0,0,0.5); animation: zoomIn 0.3s ease; user-select: none; z-index: 10001; }
.close-lightbox { position: absolute; top: 20px; right: 40px; color: var(--branco); font-size: 40px; font-weight: bold; cursor: pointer; transition: color 0.3s; z-index: 10005;}
.close-lightbox:hover { color: var(--laranja); }

/* Setas do Lightbox */
.lightbox-btn {
    background: rgba(0, 0, 0, 0.5); color: white; border: none;
    font-size: 40px; padding: 15px 20px; cursor: pointer;
    border-radius: 5px; z-index: 10002; transition: background 0.3s;
    position: absolute; top: 50%; transform: translateY(-50%);
}
.lightbox-btn:hover { background: var(--laranja); }
.prev-btn { left: 10px; }
.next-btn { right: 10px; }

@keyframes zoomIn { from {transform: scale(0.8); opacity: 0;} to {transform: scale(1); opacity: 1;} }


/* ==========================================
   8. FOOTER & WHATSAPP FLUTUANTE
   ========================================== */
footer { background-color: var(--azul-marinho); color: var(--branco); padding: 60px 0 20px; }
.footer-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer-logo p { margin-top: 15px; max-width: 300px; color: #AAA; }
.footer-contato h3 { color: var(--laranja); margin-bottom: 20px; font-size: 1.2rem; }
.footer-contato p { margin-bottom: 10px; color: #CCC; }
.footer-contato i { margin-right: 10px; color: var(--laranja); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; color: #888; font-size: 0.9rem; }
.footer-logo img { filter: brightness(0) invert(1); }

.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px;
    background-color: #25D366; color: white; border-radius: 50px;
    font-size: 35px; width: 60px; height: 60px; display: flex;
    justify-content: center; align-items: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2); z-index: 9999;
    text-decoration: none; animation: pulse-whatsapp 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); animation: none; }

@keyframes pulse-whatsapp {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}


.texto-mobile { display: none; }

/* ==========================================
   9. MEDIA QUERIES (RESPONSIVIDADE ISOLADA)
   ========================================== */

/* Tablets e Celulares Deitados (Até 992px) */
@media (max-width: 992px) {
    .header-container { flex-wrap: wrap; justify-content: space-between; }
    .menu-toggle { display: block; }
    .header-btn { display: none; }
    
    /* Nav Mobile */
    nav { width: 100%; order: 3; }
    .nav-links { 
        display: none; flex-direction: column; background-color: var(--cinza-fundo);
        text-align: center; padding: 20px 0; border-radius: 8px; margin-top: 15px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .nav-links.active { display: flex; }
    .nav-links li { border-bottom: 1px solid #DDD; }
    .nav-links li:last-child { border-bottom: none; }
    .nav-links li a { display: block; padding: 15px 0; }
    
    /* Dropdown Mobile */
    .dropdown-content {
        position: relative; box-shadow: none; background-color: transparent;
        min-width: 100%; border-left: 3px solid var(--laranja);
        margin-top: 10px; margin-left: 10px; display: none;
    }
    .dropdown-content a { padding: 10px 15px !important; border-bottom: none; }
    .dropdown:hover .dropdown-content, .dropdown:active .dropdown-content { display: flex; flex-direction: column; }

    /* Estruturas Gerais */
    .sobre-container, .portfolio-split, .storytelling-grid { flex-direction: column; gap: 40px; }
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; align-items: center; width: 100%; }
    .btn-primary, .btn-outline { width: 100%; max-width: 350px; text-align: center; }
    .trust-badges { flex-direction: column; gap: 10px; }
    .video-destaque { width: 100%; }
    .story-image::before { display: none; }
    
    .texto-desktop { display: none; }
    .texto-mobile { display: inline; }
}

/* Celulares Padrão (Até 768px) */
@media (max-width: 768px) {
    .hero { background-attachment: scroll; padding: 80px 0; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1.1rem; }
    
    .sobre, .servicos, .obras, .pilares-confianca { padding: 50px 0; }
    .section-title { font-size: 2rem; }
    .tag-quem-somos { color: var(--laranja-texto); }
    .titulo-sobre { font-size: 1.8rem; }
    .footer-container { flex-direction: column; align-items: center; text-align: center; gap: 30px; }
    .footer-logo p { margin: 15px auto 0; }
    
    .sobre-hero h1 { font-size: 2.5rem; }
    .story-text h2, .portfolio-hero h1 { font-size: 2.2rem; }
    .seo-text h2 { font-size: 1.6rem; }
    .cta-portfolio h2 { font-size: 1.8rem; }

    /* Ajustes Lightbox Mobile */
    .lightbox-btn { font-size: 25px; padding: 10px 15px; background: rgba(0, 0, 0, 0.7); }
    .close-lightbox { top: 15px; right: 20px; font-size: 35px; }
}

/* Telas Pequenas (Até 480px) */
@media (max-width: 480px) {
    .logo-simbolo { height: 50px; }
    .logo-escrita { height: 35px; }
    .sobre-img-box { padding: 30px 20px; }
    .box-destaque h4 { font-size: 1.3rem; }
    .whatsapp-float { width: 50px; height: 50px; font-size: 30px; bottom: 20px; right: 20px; }
}

/* Correções de Touch Target (Acessibilidade Google) */
.footer-bottom a {
    display: inline-block;
    padding: 10px;
    margin: -10px;
}
.lightbox-btn {
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.close-lightbox {
    padding: 10px;
}

/* Link de Telefone no Rodapé */
.telefone-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}
.telefone-link:hover {
    color: var(--laranja);
}

/* Correção PageSpeed: Swiper Dynamic Bullets GPU-Only */
.swiper-pagination-dynamic .swiper-pagination-bullet {
    transition-property: transform, opacity, background-color !important;
}