/* ================= VARIABLES & RESET ================= */
:root {
    --bg-darkest: #060a14;
    --bg-dark: #0a0f1d;
    --bg-card: #0f1629;
    --bg-card-hover: #162039;
   
    --primary-blue: #3b82f6;
    --primary-blue-hover: #2563eb;
    --text-white: #f8fafc;
    --text-gray: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.text-blue {
    color: var(--primary-blue) !important;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ================= TYPOGRAPHY & BUTTONS ================= */
.subtitle {
    color: var(--primary-blue);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: #fff;
    border: 1px solid var(--primary-blue);
}

.btn-primary:hover {
    background-color: var(--primary-blue-hover);
    border-color: var(--primary-blue-hover);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-white);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* ================= HEADER / NAVBAR ================= */
header {
    
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}



.nav-links {
    display: flex;
    gap: 1.8rem;
    font-size: 0.85rem;
    font-weight: 500;
}



/* ================= HERO SECTION ================= */
.hero {
    position: relative;
    ;
    padding-top: 6rem;
    display: flex;
    flex-direction: column;
}

.hero-content {
    flex-grow: 1;
    padding-bottom: 6rem;
}

.hero {
    position: relative;
    /* Adicionei uma cor de fundo escura caso a imagem demore a carregar */
    background: url('img/imgFundojL.png');
    background-size: cover;
    background-position: center; /* Centraliza a imagem */
    background-repeat: no-repeat;
    padding-top: 10rem; 
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
}

.hero h1 span {
    color: var(--primary-blue);
}

.hero p {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* STATS BAR */
.stats-bar {
    background-color: rgba(6, 10, 20, 0.8);
    border-top: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-item {
    padding: 2.5rem 1rem;
    text-align: center;
    border-right: 1px solid var(--border-color);
}

.stat-item:last-child {
    border-right: none;
}

.stat-item h2 {
    font-size: 3rem;
    color: var(--primary-blue);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.75rem;
    color: var(--text-gray);
    letter-spacing: 1px;
}

.stat-item.highlight h2 {
    font-size: 2rem;
    line-height: 1.2;
}

/* ================= SOBRE SECTION ================= */
.sobre {
    padding: 7rem 0;
    background-color: var(--bg-dark);
}

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.sobre-img-wrapper {
    position: relative;
}

.sobre-img {
    width: 100%;
    border-radius: 12px;
    filter: grayscale(100%);
}

.badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--primary-blue);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.badge h3 {
    font-size: 2.5rem;
    line-height: 1;
    font-weight: 700;
}

.badge p {
    font-size: 0.9rem;
}

.sobre-content h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.divider {
    width: 40px;
    height: 3px;
    background-color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.sobre-content p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary-blue);
    background-color: rgba(59, 130, 246, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.feature-item h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.feature-item p {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin: 0;
}

/* ================= SERVIÇOS SECTION ================= */
.servicos {
    padding: 7rem 0;
    background-color: var(--bg-darkest);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    display: inline-block;
    position: relative;
}

.section-header p {
    color: var(--text-gray);
    max-width: 600px;
    margin: 1rem auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-card);
    padding: 3rem 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.service-card ul {
    margin-bottom: 2.5rem;
}

.service-card ul li {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-card ul li i {
    color: var(--primary-blue);
    font-size: 0.7rem;
}

.link-saiba-mais {
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.link-saiba-mais:hover {
    color: var(--text-white);
}

/* ================= PROJETOS SECTION ================= */
.projetos {
    padding: 7rem 0 3rem;
    background-color: var(--bg-dark);
}

.projetos-intro {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 4rem;
    font-size: 1.1rem;
}

.projetos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 1.5rem;
}

.projeto-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.projeto-card.alto {
    grid-row: span 2;
}

.projeto-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.projeto-card:hover img {
    transform: scale(1.05);
}

.projeto-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(6, 10, 20, 0.9) 0%, transparent 100%);
}

.projeto-info .tag {
    background-color: var(--primary-blue);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.projeto-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.projeto-info p {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin: 0;
}

/* ================= CARROSSEL DE CLIENTES ================= */
.clientes {
    padding: 5rem 0;
  
    overflow: hidden; 
}

.carousel-container {
    width: 100%;
    position: relative;
    display: flex;
    overflow: hidden;
    padding: 2rem 0;
   
    z-index: 1;
}

.carousel-track {
    display: flex;
    align-items: center;
    gap: 5rem;
    width: max-content;
    animation: scroll 20s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused; 
}

.logo-slide {
    width: 150px;
    display: flex;
    justify-content: center;
}

.logo-slide img {
    max-width: 100%;
    max-height: 50px;
    filter: grayscale(100%) brightness(200%) opacity(0.6);
    transition: all 0.3s ease;
}

.logo-slide img:hover {
    filter: grayscale(0%) brightness(100%) opacity(1);
    transform: scale(1.1);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* ================= CONTATO SECTION (Lista Limpa) ================= */
.contato {
    padding: 6rem 0;
    background-color: var(--bg-dark);
}

.contato-centered {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.contato-centered h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contato-desc {
    color: var(--text-gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.info-list-clean {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3.5rem;
    margin-top: 2rem;
}

.info-item-clean {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-align: left;
}

.info-item-clean .icon {
    font-size: 2rem;
    color: var(--primary-blue);
}

.info-item-clean h4 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
    color: var(--text-white);
}

.info-item-clean p {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin: 0;
}

/* ================= FOOTER ================= */
footer {
    background-color: var(--bg-darkest); /* Garante que usa a cor da variável */
    border-top: 1px solid var(--border-color);
    padding-top: 5rem;
    position: relative; /* Cria um contexto de empilhamento */
    z-index: 10;         /* Garante que o footer fique "por cima" de fundos do body */
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 1rem;
    max-width: 250px;
}

.footer-links h4, .footer-contato h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a, .footer-contato p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

.footer-contato p {
    margin-bottom: 0.8rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-gray);
    font-size: 0.8rem;
}

/* ================= RESPONSIVO ================= */
@media (max-width: 992px) {
    .stats-grid, .services-grid, .projetos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sobre-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .info-list-clean {
        gap: 2.5rem;
        flex-direction: column;
        align-items: center;
    }
    .info-item-clean {
        width: 100%;
        max-width: 300px;
        justify-content: flex-start;
    }
    .hero h1 {
        font-size: 3.5rem;
    }
    .hero-content {
        padding: 5rem 3rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* 1. Ajuste Global do Container */
    .container {
        padding: 0 1.5rem !important; /* Força o respiro lateral em tudo */
        width: 100% !important;
        box-sizing: border-box;
    }

    /* 2. Seção SOBRE (Correção do texto colado) */
    .sobre-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 0; /* Remove paddings internos que possam conflitar */
    }

    .sobre-content {
        text-align: left; /* Garante alinhamento à esquerda */
        padding: 0 0.5rem; /* Um reforço extra para o texto não encostar */
    }

    .sobre-content h2 {
        font-size: 1.8rem; /* Diminuído para não estourar a largura da tela */
        word-wrap: break-word;
        line-height: 1.2;
    }

    /* 3. Hero Section (Unificado e limpo) */
    .hero-content {
        min-height: auto;
        padding: 4rem 0; /* Deixamos o container cuidar das laterais */
        border-radius: 0;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    /* 4. Outros Ajustes Necessários */
    .nav-links {
        display: none;
    }

    .stats-grid, .services-grid, .projetos-grid, .footer-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .projeto-card.alto {
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    /* ... seus outros códigos ... */

    footer {
        background-color: #060a14 !important; /* Força a cor sólida caso haja herança */
        margin-top: -1px; /* Elimina qualquer fresta de 1px que pareça transparência */
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center; /* Opcional: centraliza o rodapé no mobile para ficar mais elegante */
    }

    .footer-brand p {
        margin: 1rem auto; /* Centraliza o texto da marca se usar text-align center */
    }
}