/* ===================================
   🎨 PAGES.CSS (Estilos das páginas internas)
   =================================== */

/* Ajuste do Header para páginas internas (Fundo sólido sempre) */
body.internal-page #main-header {
    background: #050505;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Espaço para compensar o header fixo */
.page-spacer {
    height: 50px;
    background: #050505;
}

/* ===================================
   HEADER DA PÁGINA (HERO ANIMADO)
   =================================== */
.page-hero {
    /* Removemos o background preto sólido */
    /* background-color: #050505; */
    
    padding: 100px 20px 60px; /* Aumentei um pouco o padding */
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1; /* Garante que o texto fique sobre o fundo */

    /* --- NOVO: Background Degradê Animado --- */
    /* Cria um degradê diagonal usando as cores da sua marca */
    background: linear-gradient(-45deg, var(--grad-start), var(--grad-mid), var(--grad-end), var(--grad-start));
    /* Aumenta o tamanho do background para permitir o movimento */
    background-size: 400% 400%;
    /* Aplica a animação de movimento */
    animation: gradientBG 15s ease infinite;
}

/* Overlay Escuro (Para melhorar a leitura do texto) */
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Camada preta com 60% de opacidade */
    background: rgba(5, 5, 5, 0.6);
    z-index: -1; /* Fica atrás do texto, mas na frente do degradê */
}

.page-title {
    font-size: 1.5rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    /* Sombra sutil para destacar mais */
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.page-subtitle {
    font-size: 1.0rem;
    color: rgba(255,255,255,0.8); /* Texto um pouco mais claro */
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   ANIMAÇÃO DO BACKGROUND (Adicione ao final do arquivo)
   =================================== */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ===================================
   GRID DE SERVIÇOS (CLICÁVEIS)
   =================================== */
.services-section {
    position: relative;
    background-color: #F4F4F4; /* Mantendo o padrão da seção 2 da Home */
    padding: 80px 0;
    min-height: 80vh;
    overflow: hidden; /* Para as linhas não vazarem */
}

.services-full-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 5;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* CARD COMO LINK (<a>) */
.service-link-card {
    text-decoration: none; /* Remove sublinhado do link */
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* Garante altura igual */
}

/* Efeito Hover Potencializado */
.service-link-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(119, 27, 224, 0.15);
    border-color: rgba(119, 27, 224, 0.3);
}

/* Linha Neon no Topo (Hover) */
.service-link-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--main-gradient); /* Usa a variável do style.css */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-link-card:hover::before {
    transform: scaleX(1);
}

/* Seta indicativa que aparece no hover */
.card-arrow {
    margin-top: auto; /* Empurra para baixo */
    padding-top: 20px;
    color: var(--grad-mid);
    font-family: 'Gotham',sans-serif ;
    font-weight: bold;
    font-size: 0.8rem;
    opacity: 1;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-link-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Elementos internos do card */
.service-link-card .card-icon {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Garet', sans-serif;
    color: #ddd; /* Cor inativa */
    margin-bottom: 15px;
    transition: 0.3s;
}

.service-link-card:hover .card-icon {
    background: var(--main-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.service-link-card h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #050505;
    font-weight: bold;
}

.service-link-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* RESPONSIVIDADE */
@media (max-width: 900px) {
    .services-full-grid {
        grid-template-columns: 1fr; /* 1 Coluna no mobile */
    }
    
    .page-title {
        font-size: 2.5rem;
    }
}

/* ===================================
   💻 GRID DE SITES (2 Colunas + Card Branco)
   =================================== */

.sites-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 Colunas no PC */
    gap: 40px; /* Espaço entre os sites */
    
    /* AUMENTADO: De 1200px para 1600px para ocupar mais tela */
    max-width: 1600px; 
    width: 95%; /* Garante margem segura nas bordas */
    
    margin: 60px auto;
    padding: 0; /* Removido padding interno para ganhar largura */
    position: relative;
    z-index: 2;
}

.site-card {
    display: block;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    
    /* Formato Widescreen 16:9 */
    aspect-ratio: 16 / 9; 
    border: 1px solid rgba(255,255,255,0.1);
}

.site-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s ease;
}

/* Efeito Hover */
.site-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(119, 27, 224, 0.2);
    border-color: var(--grad-mid);
    z-index: 5; /* Garante que fique por cima */
}

.site-card:hover img {
    transform: scale(1.05);
}

/* Overlay */
.site-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 5, 5, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s ease;
}

.site-card:hover .site-overlay { opacity: 1; }

.visit-btn {
    padding: 10px 25px;
    border: 1px solid white;
    color: white;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    border-radius: 30px;
    background: transparent;
    transition: 0.3s;
}

.site-card:hover .visit-btn:hover { background: white; color: black; }

/* Responsividade Mobile */
@media (max-width: 900px) {
    .sites-grid {
        grid-template-columns: 1fr; /* 1 Coluna no celular */
        gap: 30px;
        width: 100%;
        padding: 0 20px;
    }
}

/* ===================================
   📈 PÁGINA TRÁFEGO (Layout Zig-Zag)
   =================================== */

.zigzag-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden; /* Para as linhas não vazarem */
    background-color: #F4F4F4; /* Fundo claro padrão */
}

.zigzag-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 5; /* Fica acima das linhas */
}

.zigzag-row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 Colunas iguais */
    gap: 80px; /* Espaço generoso entre texto e imagem */
    align-items: center; /* Centraliza verticalmente */
    margin-bottom: 100px; /* Espaço entre as linhas */
}

/* Remove margem do último item */
.zigzag-row:last-child {
    margin-bottom: 0;
}

/* Coluna de Imagem */
.img-col {
    position: relative;
}

.img-col img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15); /* Sombra elegante */
    transition: transform 0.5s ease;
}

.img-col:hover img {
    transform: scale(1.05);
}

/* Coluna de Texto */
.text-col h3 {
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #050505;
    line-height: 1.1;
}

/* Detalhe Neon no título */
.text-col h3 span {
    background: var(--main-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.text-col p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.text-col ul {
    list-style: none;
    margin-top: 20px;
}

.text-col ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
}

/* Ícone de check na lista */
.text-col ul li::before {
    content: '✓';
    color: #771BE0; /* Roxo da marca */
    font-weight: 900;
}

/* RESPONSIVIDADE */
@media (max-width: 900px) {
    .zigzag-row {
        grid-template-columns: 1fr; /* 1 Coluna */
        gap: 40px;
        text-align: center;
    }

    /* No mobile, queremos sempre Imagem em Cima ou Texto em Cima? 
       Geralmente Imagem primeiro chama mais atenção */
    .zigzag-row.reverse {
        display: flex;
        flex-direction: column-reverse; /* Garante ordem consistente */
    }
    
    .text-col h3 { font-size: 1.8rem; }
    .text-col ul li { justify-content: center; }
}

/* ===================================
   📱 REDES SOCIAIS (Feed Vertical Clean)
   =================================== */

.social-feed-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 80px;
    max-width: 1000px;
    width: 90%;
    margin: 60px auto;
    position: relative;
    z-index: 2;
}

.social-card {
    display: block;
    /* MUDANÇA: Fundo branco em vez de preto */
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    /* Sombra mais suave para fundo claro */
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    /* Borda sutil clara */
    border: 1px solid rgba(0,0,0,0.05);
    
    /* Proporção 3:2 */
    aspect-ratio: 3 / 2;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.social-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

/* Hover: Zoom e Brilho Neon */
.social-card:hover {
    transform: translateY(-10px);
    /* Sombra colorida mais forte no hover */
    box-shadow: 0 25px 60px rgba(119, 27, 224, 0.2);
    /* Borda com a cor inicial do gradiente */
    border-color: var(--grad-start);
}

.social-card:hover img {
    transform: scale(1.03);
}

.social-card:hover .site-overlay {
    opacity: 1;
}

@media (max-width: 900px) {
    .social-feed-grid {
        gap: 40px;
        width: 95%;
    }
}

/* ===================================
   🏢 QUEM SOMOS (Sobre & Clientes)
   =================================== */

/* Seção Sobre (Texto + Foto) */
.about-section {
    background-color: #ffffff;
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-text h3 {
    font-size: 2.5rem;
    color: #050505;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 900;
}

.about-text p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.about-img-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 20px 20px 0px rgba(0,0,0,0.05); /* Sombra sólida estilo design */
}

.about-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-img-wrapper:hover img {
    transform: scale(1.03);
}

/* Grid de Clientes (Estático) */
.clients-static-grid {
    display: grid;
    /* Desktop: 5 colunas para ficar bem espalhado */
    grid-template-columns: repeat(5, 1fr); 
    gap: 40px;
    max-width: 1400px;
    margin: 60px auto 0;
    padding: 0 20px;
}

.client-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    padding: 10px;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 8px;
    transition: 0.3s;
    background: #fff;
}

.client-item:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--grad-mid);
    transform: translateY(-5px);
}

.client-item img {
    max-width: 100%;
    max-height: 70px;
    /* Filtro cinza para ficar elegante, cor ao passar o mouse */
    filter: grayscale(100%);
    opacity: 0.6;
    transition: 0.3s;
}

.client-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ===================================
   📞 CONTATO (Botão Gigante)
   =================================== */
.cta-whats-section {
    background: #F4F4F4;
    padding: 80px 0;
    text-align: center;
}

/* Responsividade */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr; /* 1 coluna no celular */
        text-align: center;
        gap: 40px;
    }
    
    .clients-static-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas no celular */
        gap: 20px;
    }

    .about-img-wrapper {
        box-shadow: 10px 10px 0px rgba(0,0,0,0.05);
    }
}