/* Reset simples */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html, body {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    color: #fff; /* Cor de texto padrão (usada no Hero e Footer) */
}

/* --- Top menu --- */
.top-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
    background: transparent;
    z-index: 10; /* Garante que o menu esteja no topo */
}

/* Logo */
.logo img {
    width: 140px;
    display: block;
    margin-left: 6px;
}

/* Menu links centralizados */
.menu-links {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 28px;
    align-items: center;
}
.menu-links a {
    color: #f1e9ff;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.2px;
    font-size: 15px;
    transition: opacity .15s;
}
.menu-links a:hover {
    opacity: .8;
}

/* BOTÃO direita */
.menu-button .cta {
    background: #a26adf;
    color: #fff;
    padding: 7px 14px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    display: inline-block;
}
.menu-button .cta:hover {
    filter: brightness(.95);
}

/* Dropdown */
.menu-button {
    position: relative;
    display: inline-block;
}
.menu-button .submenu {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    background: #a26adf;
    padding: 8px 0;
    min-width: 180px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
}
.menu-button .submenu li {
    list-style: none;
}
.menu-button .submenu li a {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: background 0.2s;
    border-radius: 8px;
}
.menu-button .submenu li a:hover {
    background: #8e4bcc;
}
/* Mostrar ao passar o mouse */
.menu-button:hover .submenu {
    display: block;
}

/* hamburger (mobile) */
.hamburger {
    display: none; 
    background: transparent;
    border: 0;
    cursor: pointer;
    width: 40px;
    height: 40px;
    /* Linha Adicionada/Corrigida: Empilha as barras verticalmente */
    flex-direction: column; 
    align-items: center;
    justify-content: center;
}
.hamburger span {
    display: block;
    height: 3px;
    width: 22px;
    background: #fff;
    /* Garante um pequeno espaço entre as barras */
    margin: 3px 0; 
    border-radius: 3px
}

/* Estilo do menu quando ativo (para o JS) */
.top-menu.menu-open .menu-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    background: #9966CC;
    padding: 20px 40px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 5;
    align-items: flex-start;
}
.top-menu.menu-open .menu-links a {
    padding: 10px 0;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.top-menu.menu-open .menu-links a:last-child {
    border-bottom: none;
}


/* --- Hero --- */
.hero {
    min-height: 100vh;
    background: url('/img/bg-scaled.webp') no-repeat center center/cover; 
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
}
.hero-overlay {
    position: relative;
    z-index: 2; /* Abaixo do menu */
    text-align: center;
    color: #fff;
    font-size: large;
}
.hero h1 {
    padding-inline: 10%;
    font-size: 50px;
}
.hero p {
    padding-inline: 10%;
}

/* container dos botões */
.botoes-sobre {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}
/* Botões CTA */
.botoes-sobre .cta1 {
    background: #a26adf;
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    transition: background-color 0.5s, color 0.5s, filter 0.5s;
}
.botoes-sobre .cta2 {
    background: #ffffff;
    color: #a26adf;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    transition: background-color 0.5s, color 0.5s, filter 0.5s;
}
.botoes-sobre .cta1:hover {
    background-color: #ffffff;
    color: #a26adf;
}
.botoes-sobre .cta2:hover {
    background-color: #a26adf;
    color: #ffffff;
}

/* --- Sections --- */
.section {
    padding: 50px 0px;
    background: transparent;
}
/* Garante fundo claro para seções 'alt' e texto escuro */
.section.alt {
    background: #eeeeee; 
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
}
.section.alt p {
    color: #474747; /* Texto escuro em fundo claro */
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px
}
p {
    color: #e7e2ef; /* Cor padrão para textos em seções escuras */
    line-height: 1.6;
}

#sobre {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background-color: #9966CC;
    font-size: x-large;
    padding: 80px 80px;
}
#sobre .container {
    flex: 1;
}
#sobre h2 {
    line-height: 1.0;
    font-size: 40px;
    padding-bottom: 40px;
}
#sobre h2 .preto {
    color: #000;
    font-weight: bolder;
}
#sobre h2 .branco {
    color: #fff;
}
#sobre .container.img {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}
#sobre img {
    max-width: 90%;
    padding-top: 70px;
    height: auto;
}


/* SOLUÇÕES (com fundo claro)*/
#solucoes {
    position: relative;
    background-color: #ffffff;
    background-image: url('/img/word-background.webp'); 
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 100%;
    padding: 60px 20px;
    color: #9966CC;
}
/* Overlay semitransparente */
#solucoes::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 1;
}
/* Conteúdo acima do overlay */
#solucoes * {
    position: relative;
    z-index: 2;
}
#solucoes h1 {
    text-align: center;
    line-height: 1.2;
    margin-bottom: 50px;
}
#solucoes p {
    color: #000; /* Texto escuro aqui */
}
#solucoes .container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
#solucoes .card {
    flex: 1 1 250px;
    max-width: 300px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
#solucoes .card:hover {
    transform: translateY(-5px);
}
#solucoes .card-icon {
    width: 90px;
    height: 70px;
    margin-bottom: 15px;
}
/* Diferenciais */
#diferenciais {
    background-color: #eeeeee;
    padding: 60px 0;
}
#diferenciais h1 {
    text-align: center;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #9966CC;
    font-size: x-large;
}
#diferenciais p {
    color: #000;
    text-align: center;
    font-size: 20px;
    padding-inline: 10%;
    font-weight: 100;
    margin-bottom: 40px;
}

/* Carrossel (container) */
.carousel {
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px;
    box-sizing: border-box;
    position: relative;
}
/* trilho flex */
.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 1s ease-in-out;
    align-items: stretch;
    will-change: transform;
}
/* cards */
#diferenciais .card {
    flex: 0 0 calc(50% - 10px);
    box-sizing: border-box;
    background: #fff;
    color: #474747;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0px 5px 2px #9966cc;
    text-align: center;
    font-size: 18px;
    overflow: hidden;
    min-width: 0;
}
/* forçar o arredondamento se houver override externo */
#diferenciais .card,
#diferenciais .card:last-child {
    border-radius: 12px !important;
}
/* Botões setas */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: background 0.3s;
}
.carousel-btn:hover {
    background: rgba(0,0,0,0.7);
}
.carousel-btn.prev {
    left: 10px;
}
.carousel-btn.next {
    right: 10px;
}
/* Indicadores */
.carousel-dots {
    text-align: center;
    margin-top: 15px;
}
.carousel-dots .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: #bbb;
    border-radius: 50%;
    cursor: pointer;
}
.carousel-dots .dot.active {
    background: #9966CC;
}

/* Expertise container*/
#expertise {
    background: url(/img/ft-1024x682.png) no-repeat center center/cover;
}
#expertise .logo img {
    width: 200px !important;
    height: auto !important;
    display: block;
}
#expertise .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
#expertise h2 {
    font-size: 40px;
    padding: 5%;
}

/* CLIENTES */
#clientes * {
    position: relative;
    z-index: 2;
}
#clientes h1 {
    text-align: center;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #9966CC;
    font-size: x-large;
}
#clientes .container {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 50px;
    flex-wrap: wrap;
}
#clientes .card {
    flex: 1 1 250px;
    max-width: 300px;
    background: #fff; /* Fundo branco nos cards */
    border: 1px solid #ccc;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
#clientes .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
#clientes .card-icon {
    width: 160px;
    height: 100px;
    margin-bottom: 15px;
}
/* Contact */
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}
.contact-form input, .contact-form textarea {
    padding: 12px;
    border-radius: 8px;
    border: 0;
    background: rgba(255,255,255,0.06);
    color: #fff;
}
.contact-form button {
    grid-column: 1/-1;
    padding: 12px;
    border-radius: 8px;
    border: 0;
    background: #7c4dd1;
    color: #fff;
}

/* Footer */
.site-footer {
    padding: 26px 20px;
    background: #0d0b0d;
}
.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.site-footer img {
    width: 120px;
    display: block;
    margin-bottom: 8px;
}
.site-footer .footer-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.site-footer .footer-right a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}
.site-footer .footer-right a:hover {
    opacity: 0.7;
}

/* WhatsApp Flutuante */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #ffffff;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}
.whatsapp-float:hover {
    transform: scale(1.1);
}
.whatsapp-float img {
    width: 35px;
    height: 35px;
    background: transparent;
}


/* --- REGRAS DE RESPONSIVIDADE (MEDIA QUERIES) --- */

/* 1. Tablet (max-width: 900px) */
@media (max-width: 900px) {
    
    /* CORREÇÃO DE ALINHAMENTO DO CABEÇALHO MOBILE */
    .top-menu {
        padding: 15px 20px;
        justify-content: space-between; 
        align-items: center;
    }
    .menu-links {
        display: none; 
        flex: none; 
    }
    .hamburger {
        display: flex; 
    }
    .logo {
        margin-right: auto; 
    }
    .menu-button {
        margin-left: 10px; 
    }
    
    /* FIM DA CORREÇÃO DE ALINHAMENTO */


    .hero h1 {
        font-size: 36px;
        padding-inline: 5%;
    }
    /* Footer */
    .site-footer .container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .site-footer .footer-right {
        align-items: center;
    }
    .contact-form {
        grid-template-columns: 1fr;
    }
    .hero {
        min-height: 420px
    }
}

/* 2. Mobile (max-width: 768px) */
@media (max-width: 768px) {
    
    /* CORREÇÃO DO EMPURRÃO DO HERO - APLICADO AQUI */
    .hero-overlay {
        /* Adiciona um padding que 'empurra' o conteúdo para baixo no mobile */
        padding-top: 100px; 
    }
    .hero {
        /* Garante que a área do Hero seja grande o suficiente no mobile */
        min-height: 80vh; 
    }
    /* FIM DA CORREÇÃO DO EMPURRÃO */


    /* SOBRE - Empilha texto e imagem */
    #sobre {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
    }
    #sobre h2 {
        padding-bottom: 20px;
        font-size: 32px;
    }
    #sobre .container.img {
        justify-content: center;
    }
    #sobre img {
        padding-top: 30px;
        max-width: 100%;
    }
    /* Soluções / Clientes - Grid de 1 coluna */
    #solucoes h1,
    #clientes h1 {
        font-size: 30px;
    }
    #solucoes .container,
    #clientes .container {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    #solucoes .card,
    #clientes .card {
        max-width: 100%;
        flex: 1 1 100%;
    }
    /* Diferenciais - Carrossel de 1 item por vez */
    #diferenciais .card {
        flex: 0 0 100%;
    }
    .carousel {
        padding: 15px 5px;
    }
    .carousel-btn {
        display: none; /* Oculta setas em mobile */
    }
    /* Expertise */
    #expertise h2 {
        font-size: 30px;
    }
    /* Flutuante WhatsApp */
    .whatsapp-float {
        width: 50px;
        height: 50px;
    }
    .whatsapp-float img {
        width: 30px;
        height: 30px;
    }
}

/* 3. Mobile Pequeno (max-width: 480px) */
@media (max-width: 480px) {
    .logo img {
        width: 110px;
    }
    .hero h1 {
        font-size: 28px;
    }
    .botoes-sobre {
        flex-direction: column; /* Empilha os botões */
        gap: 10px;
        padding: 0 20px;
    }
    .botoes-sobre .cta1, .botoes-sobre .cta2 {
        width: 100%;
        text-align: center;
    }
}