@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700&family=Plus+Jakarta+Sans:wght@400;700&display=swap');

/* ============================================================ */
/* == 1. RESET & ESTILOS GLOBAIS                            == */
/* ============================================================ */
* {
    box-sizing: border-box; /* Garante que padding não aumente a largura total */
}

html, body {
    overflow-x: hidden; /* Impede que animações ou elementos largos criem barra horizontal */
    width: 100%;
    position: relative;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

body {
    color: #E0C3FE;
    display: flex;
    flex-direction: column;
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
}

main {
    flex: 1;
    width: 100%;
}

/* --- Alertas de Mensagens --- */
.messages-container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
}

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    text-align: center;
}

.alert-success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error, .alert-danger { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Mídia Responsiva Global */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* --- Tipografia Global --- */
.font-outfit-bold { font-family: 'Outfit', sans-serif; font-weight: 700; }

h1 {
    background: linear-gradient(90deg, #2E0854 0%, #4B0082 50%, #6A0DAD 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-size: clamp(2rem, 8vw, 3.5rem); /* Fonte fluida */
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin: 0;
}

h2 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    color: blueviolet;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

h3 {
    color: blueviolet;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
}

p {
    color: rgb(24, 22, 26);
    font-size: 18px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    text-align: justify;
}

/* ============================================================ */
/* == 2. LAYOUT PRINCIPAL (HEADER, NAV, FOOTER)             == */
/* ============================================================ */
header {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    gap: 20px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

#cabecalho {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: blueviolet;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    white-space: nowrap;
    margin: 0;
}

section {
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

footer {
    background-color: #34035f;
    width: 100%;
    padding: 40px 5%;
    margin-top: 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    color: #EEDDFF;
}

/* --- Navegação Principal (Header) --- */
.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
}

.nav-list a {
    padding: 10px 15px;
    color: blueviolet;
    font-size: 16px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: 5px; left: 50%;
    background-color: blueviolet;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-list a:hover::after { width: 70%; }

/* Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #230620;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    border-radius: 8px;
    z-index: 100;
    padding: 10px 0;
}

.dropdown:hover .dropdown-content { display: block; }

/* ============================================================ */
/* == 3. COMPONENTES REUTILIZÁVEIS                          == */
/* ============================================================ */

/* Botões */
.btn-generic {
    background: linear-gradient(135deg, #1A0A2A 0%, #3B0A60 50%, #4B0082 100%);
    color: #F4F4F4;
    padding: 15px 30px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.btn-generic:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    filter: brightness(1.2);
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Mantém colunas automáticas */
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr; /* Força uma coluna apenas em smartphones */
    }
}

.card-produto {
    width: 100%;
    max-width: 100%; /* Removido o limite fixo para o grid controlar */
    min-height: 380px;
    padding: 25px;
    border: 2px solid blueviolet;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s ease;
    text-align: center;
}

.card-produto:hover {
    transform: translateY(-10px);
    background: #fff;
    border-color: #E0C3FE;
}

/* Formulários */
#formulario-contato {
    display: flex;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #2e0854 0%, #1A0A2A 100%);
    border-radius: 30px;
    padding: 40px;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
}

#conteudo-formulario { flex: 1; min-width: 300px; }
#conteudo-formulario h2 { color: #fff; text-indent: 0; text-align: left; }

form {
    flex: 1.2;
    min-width: 300px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid #34035f;
    background: rgba(26, 10, 42, 0.3);
    color: #fff;
    font-size: 16px;
}

/* ============================================================ */
/* == 4. SEÇÕES ESPECÍFICAS                                 == */
/* ============================================================ */

/* --- 4.5 SEÇÃO DE INTEGRAÇÕES (TICKER INFINITO) --- */
.integracoes-section {
    padding: 60px 0;
    background: #ffffff;
    overflow: hidden;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.integracoes-title {
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 40px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
}

.ticker-container {
    width: 100%;
    overflow: hidden;
    background: #fff;
    padding: 30px 0;
    position: relative;
}

.ticker-wrapper {
    display: flex;
    width: max-content;
    align-items: center;
    animation: scroll 40s linear infinite;
}

.ticker-item {
    flex: 0 0 auto;
    padding: 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticker-item img {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.4;
    transition: all 0.4s ease;
}

.ticker-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Degradê nas bordas para suavizar a entrada/saída */
.ticker-container::before,
.ticker-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.ticker-container::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.ticker-container::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

/* Vídeo VSL */
.video-vsl-container {
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.video-vsl-container iframe { width: 100%; height: 100%; border: 0; }

/* ============================================================ */
/* == 5. MENU HAMBÚRGUER & RESPONSIVIDADE                   == */
/* ============================================================ */

.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: 2000;
}

.hamburger .bar {
    display: block;
    width: 30px;
    height: 3px;
    margin: 6px 0;
    background: blueviolet;
    transition: 0.3s;
}

/* --- BREAKPOINT: TABLETS & CELULARES (992px) --- */
@media (max-width: 992px) {
    .hamburger { display: block; }

    nav {
        position: fixed;
        top: 0; right: -100%;
        width: 100%; height: 100vh;
        background: rgba(35, 6, 32, 0.98);
        transition: 0.4s ease;
        z-index: 1500;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    nav.is-active { right: 0; }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .nav-list a { font-size: 1.5rem; color: #fff; }

    #secao, #secao-dupla, .coluna-duplicada {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* --- BREAKPOINT: CELULARES (768px) --- */
@media (max-width: 768px) {
    section { width: 95%; padding: 20px 0; }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .newsletter-form { flex-direction: column; }
    
    /* Ajustes específicos de elementos que eram fixos */
    .video-estilo-gif, #img-dashboard, #img-dashboard-2 {
        width: 100% !important;
        height: auto !important;
    }

    .card-formulario {
        width: 100% !important;
        max-width: 400px;
    }
}

/* --- BREAKPOINT: CELULARES PEQUENOS (480px) --- */
@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    .btn-generic { width: 100%; }
}
