@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* --- VARIÁVEIS DE CORES E FONTES --- */
:root {
    --bg-blue-dark: #0f172a; 
    --bg-blue-light: #0033CC; 
    --bg-blue-hover: #0f172a;
    --text-yellow: #eab308; 
    
    /* NOVA COR ROXA (Baseada no H1) */
    --bg-purple-main: #81287c;
    
    --white: #ffffff;
    --gray-light: #f8fafc;
    --gray-text: #475569;
    --border-color: #e2e8f0;
    --footer-bg: #0f172a;
    
    --header-height: 80px;

    --font-heading: 'Montserrat', sans-serif; 
    --font-body: 'Inter', sans-serif; 
}

/* --- RESET E GERAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--white);
    color: var(--gray-text);
    line-height: 1.6;
    overflow-x: hidden;
    font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6, .logo-title, .btn, .btn-clean {
    font-family: var(--font-heading);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul { list-style: none; }
img { max-width: 100%; display: block; margin: 0 auto; }

/* --- UTILITÁRIOS --- */
.text-yellow { color: var(--text-yellow) !important; }
.text-white { color: var(--white) !important; }
/* NOVO UTILITÁRIO ROXO */
.text-purple { color: var(--bg-purple-main) !important; }

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.w-100 { width: 100%; }
.mobile-only-btn { display: none; }

.subtitle-yellow {
    color: var(--text-yellow);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

/* --- ANIMAÇÕES --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* --- CABEÇALHO --- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: var(--header-height);
    background-color: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

header.scrolled {
    background-color: rgba(15, 23, 42, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.logo-container {
    display: flex;
    flex-direction: column;
    z-index: 1002;
}

.logo-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-body);
}

.nav-container { display: flex; align-items: center; }

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    font-family: var(--font-heading);
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--text-yellow);
    transition: width 0.3s ease;
}

.nav-links > li > a:hover::after { width: 100%; }
.nav-links > li > a:hover { color: var(--text-yellow); }

.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1002;
}
.menu-toggle .bar {
    width: 30px; height: 3px; background-color: var(--white); border-radius: 3px; transition: 0.4s;
}
.menu-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* --- BOTÕES --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: var(--bg-blue-light);
    color: var(--white);
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 51, 204, 0.3);
}

.btn:hover {
    background-color: var(--bg-blue-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 51, 204, 0.4);
}
.btn-header { padding: 0.8rem 1.2rem; font-size: 0.75rem; }
.btn-hero { padding: 1.2rem 2.5rem; font-size: 1.1rem; }

/* --- HERO --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 5% 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(0, 51, 204, 0.80)), url('https://images.unsplash.com/photo-1524758631624-e2822e304c36?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat fixed;
    color: var(--white);
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    gap: 3rem;
}

.hero-text-side { flex: 1.2; }
.hero-text-side h1 { font-size: 4.5rem; line-height: 1.15; margin-bottom: 1.5rem; font-weight: 800; }
.hero-text-side p { font-size: 1.2rem; color: #e2e8f0; max-width: 650px; line-height: 1.7; }

.hero-actions-side { flex: 0.8; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-actions-side .btn-hero { width: 100%; max-width: 450px; margin-bottom: 1.5rem; padding: 1.5rem; font-size: 1rem; }
.hero-actions-side .contact-info { color: #cbd5e1; }
.hero-actions-side .contact-info p { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.95rem; margin-bottom: 0.3rem; }

.hero-logo-inline {
    display: inline-block;
    height: 0.95em;
    width: auto;
    vertical-align: baseline;
    margin: 0 4px -2px 0;
}

/* --- PREMIAÇÕES --- */
.premiacoes { padding: 4rem 5%; background-color: var(--white); border-bottom: 1px solid var(--border-color); }
.premiacoes-img { max-width: 100%; height: auto; margin: 0 auto; border-radius: 8px; }

/* --- CITAÇÃO --- */
.quote-transition {
    background-color: var(--bg-blue-dark);
    padding: 6rem 5%;
    text-align: center;
    color: var(--white);
}
.quote-transition h2 { font-size: 2.2rem; margin-bottom: 3rem; line-height: 1.4; max-width: 900px; margin-inline: auto; }
.quote-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 850px;
    margin: 0 auto;
    backdrop-filter: blur(5px);
}
.quote-box p { font-size: 1.3rem; font-style: italic; color: #e2e8f0; font-weight: 300; font-family: var(--font-body); }

/* --- SOLUÇÕES (CARDS ROXOS) --- */
/* --- SOLUÇÕES (MÁGICA DOS 5 CARDS COM GRID 6 COLUNAS) --- */
.solucoes-modernas { padding: 6rem 5%; background-color: var(--gray-light); }

.cards-modernos-grid {
    display: grid;
    /* Divide o contêiner em 6 partes iguais */
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.card-moderno {
    /* Cada card normal ocupa 2 dessas 6 partes. Logo, cabem 3 na primeira linha. */
    grid-column: span 2;
    
    /* AQUI ESTÁ O ROXO MAIS ROXO E MODERNO */
    background: #81287c; 
    
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1); 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 2.5rem 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* O quarto card vai pular a coluna 1 e começar na 2, forçando-o pro meio na segunda linha */
.card-moderno:nth-child(4) {
    grid-column-start: 2;
    grid-column-end: 4;
}

/* O quinto card encosta logo depois do quarto */
.card-moderno:nth-child(5) {
    grid-column-start: 4;
    grid-column-end: 6;
}

.card-moderno:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    /* Sombra também ajustada para o novo roxo */
    box-shadow: 0 15px 30px rgba(91, 33, 182, 0.3); 
}

/* Cores forçadas para branco para garantir leitura perfeita no fundo roxo */
.card-icon { font-size: 2.5rem; color: var(--white); margin-bottom: 1.5rem; }
.card-moderno h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 1rem; font-weight: 800; line-height: 1.3; }
.card-moderno .card-desc { color: rgba(255, 255, 255, 0.9); font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.5; }
.card-moderno ul { flex-grow: 1; }
.card-moderno ul li {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.8rem;
    padding-left: 20px;
    position: relative;
    line-height: 1.4;
}
.card-moderno ul li::before {
    content: "\f00c"; 
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--white);
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.8rem;
}

/* --- SOBRE A KAIROS --- */
/* --- SOBRE A KAIROS --- */
.sobre { padding: 8rem 5%; background-color: var(--white); overflow: hidden; }
.sobre-container { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; max-width: 1280px; margin: 0 auto; align-items: center; }

/* TEXTOS DA ESQUERDA FORÇADOS PARA PRETO ABSOLUTO (inclusive o subtítulo azul) */
.sobre-text h2,
.sobre-text h3,
.sobre-text p {
    color: #000000 !important;
}

.sobre-text h2 { font-size: 3rem; margin-bottom: 1rem; font-weight: 800; }
.sobre-text h3 { font-size: 1.2rem; margin-bottom: 2.5rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.sobre-text p { margin-bottom: 1.5rem; font-size: 1.1rem; }

.sobre-cards { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }

/* CARDS COM FUNDO ROXO E TEXTO BRANCO */
.sobre-card { 
    background: #81287c; 
    padding: 1.8rem; 
    border-radius: 12px; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    font-weight: 600; 
    color: #ffffff !important; /* TEXTO BRANCO */
    font-size: 1.05rem; 
    transition: all 0.3s; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* ÍCONE DE CHECK FORÇADO PARA BRANCO */
.sobre-card i {
    color: #ffffff !important;
}

.sobre-card:hover { 
    transform: translateX(10px); 
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 20px rgba(91, 33, 182, 0.3); 
}

/* --- CLIENTES E TIMES --- */
.clientes-times { padding: 5rem 0; background-color: var(--gray-light); overflow: hidden; }
.marquee-wrapper { width: 100vw; max-width: 100%; overflow: hidden; position: relative; display: flex; }
.marquee-wrapper::before, .marquee-wrapper::after { content: ""; position: absolute; top: 0; width: 150px; height: 100%; z-index: 2; }
.marquee-wrapper::before { left: 0; background: linear-gradient(to right, var(--gray-light) 0%, transparent 100%); }
.marquee-wrapper::after { right: 0; background: linear-gradient(to left, var(--gray-light) 0%, transparent 100%); }
.marquee-content { display: flex; gap: 3rem; padding-left: 3rem; align-items: center; width: max-content; }
.empresas-track { animation: scroll-left 35s linear infinite; }
.times-track { animation: scroll-right 35s linear infinite; }
.marquee-item { font-size: 1.5rem; font-weight: 800; color: #81287c; text-transform: uppercase; letter-spacing: 2px; white-space: nowrap; opacity: 0.7; transition: opacity 0.3s; font-family: var(--font-heading); }
.marquee-item:hover { opacity: 1; color: #81287c; }
.marquee-item.time { color: #81287c; }
@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-50% - 1.5rem)); } }
@keyframes scroll-right { 0% { transform: translateX(calc(-50% - 1.5rem)); } 100% { transform: translateX(0); } }

/* --- FORMULÁRIO B2B COM FOTO --- */
.contato-section {
    padding: 8rem 5%;
    background-color: var(--bg-blue-dark);
}

.contato-wrapper {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4);
}

/* --- style.css --- */

.contato-image-side {
    /* MUDANÇA DRÁSTICA AQUI: De flex: 1; para flex: 1.8; */
    flex: 1.8;
    position: relative;
    min-height: 400px;
    background-color: var(--white);
}

.contato-mapa-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ISSO AQUI FORÇA A IMAGEM A ENGOLIR TODO O ESPAÇO */
    position: absolute;
    top: 0;
    left: 0;
}

/* NOVOS ESTILOS PARA O TEXTO NO TOPO DO FORMULÁRIO */
.contato-info-header {
    margin-bottom: 3rem; /* Espaço entre este bloco e o título do formulário */
}

.contato-info-header h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-yellow); /* Cor escura para fundo claro */
    line-height: 1.2;
    font-weight: 800;
}

.contato-info-header p {
    color: var(--gray-text); /* Cinza escuro */
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.contato-lista-dark li {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--bg-blue-dark); /* Cor escura para os contatos */
    font-weight: 600;
}

.contato-form-side {
    /* AJUSTE AQUI: De flex: 1.1; para flex: 1; */
    flex: 1;
    padding: 4rem;
    background: var(--gray-light);
}

.contato-form-side h2 { color: var(--bg-blue-dark); font-size: 2.2rem; margin-bottom: 0.5rem; font-weight: 800; }
.form-subtitle { color: var(--gray-text); margin-bottom: 2.5rem; font-size: 1.05rem; }

.formulario-clean .form-row { display: flex; gap: 1.5rem; }
.formulario-clean .form-group { flex: 1; margin-bottom: 1.5rem; }
.formulario-clean label { display: block; font-size: 0.9rem; font-weight: 700; color: var(--bg-blue-dark); margin-bottom: 0.5rem; }
.formulario-clean input { 
    width: 100%; 
    padding: 1.1rem 1.2rem; 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    background: var(--white); 
    font-size: 1rem; 
    color: #333; 
    transition: all 0.3s ease; 
    font-family: var(--font-body); 
}
.formulario-clean input:focus { outline: none; border-color: var(--bg-blue-light); box-shadow: 0 0 0 4px rgba(0, 51, 204, 0.1); }

.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 0.5rem; }
.custom-checkbox { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    padding: 1rem; 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    cursor: pointer; 
    transition: all 0.2s; 
    background: var(--white); 
}
.custom-checkbox:hover { border-color: var(--bg-blue-light); background: var(--gray-light); }
.custom-checkbox input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--bg-blue-light); cursor: pointer; margin: 0; }
.custom-checkbox span { font-size: 0.85rem; color: var(--gray-text); font-weight: 600; }

.btn-clean { 
    background: var(--bg-blue-light); 
    color: var(--white); 
    border: none; 
    padding: 1.2rem 2rem; 
    font-size: 1.1rem; 
    font-weight: 800; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: all 0.3s; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    box-shadow: 0 4px 15px rgba(0, 51, 204, 0.3); 
}
.btn-clean:hover { background: var(--bg-blue-hover); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 51, 204, 0.4); }

/* --- RODAPÉ --- */
.site-footer { background-color: var(--footer-bg); color: var(--white); padding: 5rem 5% 2rem; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 0.5fr; gap: 4rem; margin-bottom: 4rem; max-width: 1280px; margin-inline: auto; }
.footer-col h3 { font-size: 1.1rem; margin-bottom: 1.5rem; color: var(--white); text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul { display: flex; flex-direction: column; gap: 1.2rem; }
.footer-col ul li { display: flex; align-items: flex-start; gap: 12px; color: #94a3b8; line-height: 1.4; }
.footer-col ul li a:hover { color: var(--text-yellow); }
.social-icons { display: flex; gap: 1rem; }
.social-icons a { background-color: rgba(255, 255, 255, 0.05); width: 45px; height: 45px; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: var(--white); transition: 0.3s; border: 1px solid rgba(255, 255, 255, 0.1); }
.social-icons a:hover { background-color: var(--bg-blue-light); border-color: var(--bg-blue-light); color: var(--white); transform: translateY(-3px); }

/* NOVO: BASE DO FOOTER E BOTÃO DO DESENVOLVEDOR */
.footer-bottom { 
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
    padding-top: 2rem; 
    text-align: center; 
    font-size: 0.85rem; 
    color: #64748b; 
    max-width: 1280px; 
    margin: 0 auto; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dev-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.5rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dev-button i { font-size: 1rem; }

.dev-button:hover {
    border-color: var(--white);
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.05);
}

/* --- RESPONSIVIDADE TOTAL --- */
@media (max-width: 1024px) {
    :root { --header-height: 70px; }
    .hero-container { flex-direction: column; align-items: flex-start; text-align: left; gap: 3rem; }
    .hero-text-side h1 { font-size: 3.5rem; }
    .hero-actions-side { align-items: flex-start; text-align: left; }
    .hero-actions-side .contact-info p { justify-content: flex-start; }
    
    /* NO TABLET: Força 2 cards por linha, mas anula o hack do Grid 6 pra não quebrar */
    .cards-modernos-grid { grid-template-columns: repeat(2, 1fr); }
    .card-moderno { grid-column: span 1; }
    .card-moderno:nth-child(4), .card-moderno:nth-child(5) { grid-column-start: auto; grid-column-end: auto; }
    
    /* Centraliza o último (quinto) card pegando as 2 colunas */
    .card-moderno:nth-child(5) { grid-column: span 2; max-width: 50%; margin: 0 auto; }
    
    .sobre-container, .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .nav-links { gap: 1rem; }
    .nav-links a { font-size: 0.75rem; }
    .desktop-only-btn { padding: 0.6rem 0.8rem; font-size: 0.7rem; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .desktop-only-btn { display: none; }
    .mobile-only-btn { display: block; margin-top: 1rem; }
    .nav-container { position: fixed; top: 0; right: -100%; width: 85%; max-width: 400px; height: 100vh; background-color: var(--bg-blue-dark); padding: 8rem 2rem 2rem; transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0); box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3); z-index: 1001; overflow-y: auto; }
    .nav-container.active { right: 0; }
    .nav-links { flex-direction: column; align-items: flex-start; gap: 2rem; width: 100%; }
    .nav-links a { font-size: 1.1rem; display: block; width: 100%; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
    .nav-links > li > a::after { display: none; }
    
    .hero { padding-top: 100px; }
    .hero-text-side h1 { font-size: 2.5rem; }
    .section-title h2, .quote-transition h2 { font-size: 2rem; }
    
    /* NO CELULAR: 1 card por linha */
    .cards-modernos-grid { grid-template-columns: 1fr; }
    .card-moderno, .card-moderno:nth-child(5) { grid-column: span 1; max-width: 100%; }
    
    .sobre-cards, .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    
    .contato-wrapper { flex-direction: column; }
    .contato-image-side { min-height: 300px; }
    .contato-form-side { padding: 2.5rem; }
    .formulario-clean .form-row { flex-direction: column; gap: 0; }
    .checkbox-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-text-side h1 { font-size: 2.2rem; }
    .quote-box { padding: 1.5rem; }
    .quote-box p { font-size: 1.1rem; }
    .hero-actions-side .btn-hero { padding: 1.2rem; font-size: 0.9rem; }
}