/* ============================================================
   Evomap Theme — Main CSS
   ============================================================ */

/* Configurações Gerais */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Onest', sans-serif;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #7350FF #f1f1f1;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Manrope', sans-serif;
}

h1 span,
h2 span {
    background: linear-gradient(90deg, #7350ff, #9b7bff, #d946ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    line-height: 1.15 !important;
}

/* Container personalizado */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    max-width: 1246px !important;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ── Animações de Scroll ─────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ── Marquee ─────────────────────────────────────────────── */
.marquee-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    padding-left: 1.5rem;
}

.scroll-left      { animation: scrollLeft 90s linear infinite; }
.scroll-right     { animation: scrollRight 90s linear infinite; }
.scroll-left-slow { animation: scrollLeft 110s linear infinite; }

.marquee-wrapper:hover .scroll-left,
.marquee-wrapper:hover .scroll-right,
.marquee-wrapper:hover .scroll-left-slow {
    animation-play-state: paused;
}

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

/* ── Vertical Scroll ─────────────────────────────────────── */
.vertical-scroll-container {
    position: relative;
    max-height: 600px;
    overflow: hidden;
}

.vertical-scroll-container::before,
.vertical-scroll-container::after {
    content: "";
    position: absolute;
    left: 0; right: 0; height: 120px; z-index: 10; pointer-events: none;
}

.mask-dark::before  { top: 0;    background: linear-gradient(to bottom, rgba(3,0,20,0.95) 0%, transparent 100%); }
.mask-dark::after   { bottom: 0; background: linear-gradient(to top,   rgba(3,0,20,0.95) 0%, transparent 100%); }
.mask-light::before { top: 0;    background: linear-gradient(to bottom, #F8FAFC 0%, transparent 100%); }
.mask-light::after  { bottom: 0; background: linear-gradient(to top,   #F8FAFC 0%, transparent 100%); }

.vertical-track { display: flex; flex-direction: column; gap: 1.5rem; }
.scroll-up   { animation: scrollUp   45s linear infinite; }
.scroll-down { animation: scrollDown 45s linear infinite; }

.vertical-scroll-container:hover .scroll-up,
.vertical-scroll-container:hover .scroll-down { animation-play-state: paused; }

@keyframes scrollUp   { 0% { transform: translateY(0);    } 100% { transform: translateY(-50%); } }
@keyframes scrollDown { 0% { transform: translateY(-50%); } 100% { transform: translateY(0);    } }

/* ── Botões ──────────────────────────────────────────────── */
.btn-primary-glow {
    background: linear-gradient(90deg, #7350FF 0%, #863AFF 100%);
    box-shadow: 0 0 20px rgba(115, 80, 255, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.btn-primary-glow:hover {
    box-shadow: 0 0 40px rgba(134, 58, 255, 0.7);
    transform: translateY(-2px);
}

.btn-icon-animate:hover .btn-icon { transform: translate(4px, 0); }
.btn-icon { transition: transform 0.3s ease; }

/* ── Navbar scrolled ─────────────────────────────────────── */
nav.scrolled {
    background-color: rgba(3, 0, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

/* ── Glass Card ──────────────────────────────────────────── */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.glass-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(115, 80, 255, 0.3);
}

/* ── White Card ──────────────────────────────────────────── */
.white-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}
.white-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -10px rgba(115, 80, 255, 0.1);
    border-color: #7350FF;
}

/* ── Feature Card ────────────────────────────────────────── */
.feature-card {
    flex: 0 0 280px;
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid #f3f4f6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1rem;
    height: auto;
    min-height: 220px;
}
.feature-card:hover {
    transform: translateY(-5px);
    border-color: #7350FF;
    box-shadow: 0 10px 25px -5px rgba(115, 80, 255, 0.15);
}
.feature-icon-wrapper {
    width: 3.5rem; height: 3.5rem;
    border-radius: 9999px;
    display: flex; align-items: center; justify-content: center;
    background-color: #F3F0FF;
    color: #7350FF;
    transition: all 0.3s ease;
}
.feature-card:hover .feature-icon-wrapper {
    background-color: #7350FF;
    color: white;
}

/* ── Audience Card ───────────────────────────────────────── */
.audience-card {
    border-radius: 1.5rem; padding: 2rem;
    display: flex; flex-direction: column; justify-content: space-between;
    height: 100%; transition: all 0.4s ease;
    border: 1px solid rgba(255,255,255,0.1);
}
.audience-card:hover {
    transform: translateY(-5px);
    border-color: rgba(115, 80, 255, 0.5);
}
.audience-card.light {
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
}
.audience-card.light .num  { color: #7350FF; opacity: 1; }
.audience-card.accent {
    background: linear-gradient(135deg, rgba(115,80,255,0.1) 0%, rgba(182,56,255,0.1) 100%);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(115,80,255,0.3);
}
.audience-card.accent .num { opacity: 0.8; color: #B638FF; }
.audience-card .num {
    font-family: 'Manrope', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1;
}

/* ── Modal ───────────────────────────────────────────────── */
.modal-input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 0.75rem;
    color: #1E293B;
    transition: all 0.2s;
    background: #F8FAFC;
    font-family: 'Onest', sans-serif;
}
.modal-input:focus {
    outline: none;
    border-color: #7350FF;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(115, 80, 255, 0.1);
}
.modal-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.4rem;
    font-family: 'Onest', sans-serif;
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #7350FF; border-radius: 4px; }

/* ── Shine keyframe ─────────────────────────────────────── */
@keyframes shine {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%);  }
}
@keyframes float {
    0%, 100% { transform: translateY(0);     }
    50%       { transform: translateY(-15px); }
}

/* ═══════════════════════════════════════════════════════════
   Contact Form 7 — Overrides para o Modal Evomap
   ═══════════════════════════════════════════════════════════ */

/* Remove margens/padding padrão do CF7 */
.wpcf7 { margin: 0 !important; }
.wpcf7 form { margin: 0 !important; }

/* ── Layout geral: todos os <p> em coluna com gap ─────────── */
.wpcf7 form.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Cada <p> gerado pelo CF7 */
.wpcf7 form p {
    margin: 0 0 1.25rem 0 !important;
    display: flex;
    flex-direction: column;
}

/* último <p> (botão) sem margin-bottom */
.wpcf7 form p:last-of-type {
    margin-bottom: 0 !important;
}

/* ── Labels ──────────────────────────────────────────────── */
.wpcf7 form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.4rem;
    font-family: 'Onest', sans-serif;
    cursor: default;
}

/* ── Span wrapper do CF7 ─────────────────────────────────── */
.wpcf7 form span.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* ── Inputs, select ──────────────────────────────────────── */
.wpcf7 form input[type="text"],
.wpcf7 form input[type="email"],
.wpcf7 form input[type="tel"],
.wpcf7 form select,
.wpcf7 form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 0.75rem;
    color: #1E293B;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    background: #F8FAFC;
    font-family: 'Onest', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    box-sizing: border-box;
    /* remove seta nativa apenas em IE/Edge antigo; mantém seta do SO em select */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Seta customizada no select */
.wpcf7 form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.wpcf7 form input[type="text"]:focus,
.wpcf7 form input[type="email"]:focus,
.wpcf7 form input[type="tel"]:focus,
.wpcf7 form select:focus,
.wpcf7 form textarea:focus {
    outline: none;
    border-color: #7350FF;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(115, 80, 255, 0.1);
}

/* ── Grid 2 colunas: WhatsApp + Cargo ────────────────────────
   O template CF7 usa um <div class="evomap-row"> para agrupar
   os dois campos lado a lado. Veja o template atualizado.     */
.wpcf7 .evomap-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

.wpcf7 .evomap-row > p {
    margin: 0 !important;
}

/* ── Botão de envio ──────────────────────────────────────── */
.wpcf7 form input[type="submit"] {
    width: 100%;
    background: linear-gradient(90deg, #7350FF 0%, #863AFF 100%);
    box-shadow: 0 0 20px rgba(115, 80, 255, 0.4);
    color: #ffffff;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    display: block;
}

.wpcf7 form input[type="submit"]:hover {
    box-shadow: 0 0 40px rgba(134, 58, 255, 0.7);
    transform: translateY(-2px);
}

.wpcf7 form input[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ── Erros por campo ─────────────────────────────────────── */
.wpcf7 form .wpcf7-not-valid-tip {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.35rem;
    font-family: 'Onest', sans-serif;
    display: block;
}

.wpcf7 form input.wpcf7-not-valid,
.wpcf7 form select.wpcf7-not-valid,
.wpcf7 form textarea.wpcf7-not-valid {
    border-color: #ef4444;
    background: #fff5f5;
}

/* ── Mensagem de resposta global ─────────────────────────── */
.wpcf7-response-output {
    margin: 0.75rem 0 0 !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.75rem !important;
    font-size: 0.875rem !important;
    font-family: 'Onest', sans-serif !important;
    border: none !important;
}

.wpcf7 form.sent .wpcf7-response-output {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0 !important;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
    background: #fff5f5;
    color: #ef4444;
    border: 1px solid #fecaca !important;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a !important;
}

/* ── Spinner ─────────────────────────────────────────────── */
.wpcf7 .wpcf7-spinner {
    display: none !important;
}
