/* --- Configurações Globais --- */
:root {
    --brand-blue: #F4C430;
    --brand-blue-hover: #F4C430;
    --bg-dark: #EAF3FA;
    --ink: #00132A;
}

/* --- Menu flutuante (estilo pill, inspirado na Pinfer) --- */
.nav-pill {
    background: rgba(0, 19, 42, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-pill-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fff;
    border: 1.5px solid transparent;
    transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
    white-space: nowrap;
}

.nav-pill-link:hover {
    border-color: var(--brand-blue);
}

.nav-pill-active {
    background: var(--brand-blue);
    color: var(--ink);
}

/* Logo "puro" sem fundo — sombra sutil para manter legibilidade sobre qualquer seção */
.nav-logo-pure {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.nav-pill-active:hover {
    border-color: transparent;
}

/* Configurações do Lenis (Scroll Suave) */
html.lenis { height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-dark);
    color: var(--ink);
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
    font-family: 'Baloo 2', 'Manrope', sans-serif;
}

/* --- IMMERSIVE LAYERS (Efeitos Visuais) --- */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Utilitários de Texto e Layout */
.text-huge {
    font-size: clamp(3rem, 7vw, 9rem);
    line-height: 0.9;
    letter-spacing: -0.03em;
}

.hairline {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(244, 196, 48, 0.6), transparent); width: 100%;
}

.hover-card:hover {
    background-color: rgba(244, 196, 48, 0.06);
}

/* Carrossel sem barra de rolagem visível */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Cards escuros do carrossel do Hub de Soluções */
.hub-card {
    background: linear-gradient(160deg, #00132A 0%, #00132A 55%, #F4C430 220%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.hub-card:hover {
    border-color: var(--brand-blue);
    box-shadow: 0 20px 40px -20px rgba(0, 19, 42, 0.5);
}

.hover-card:hover .arrow-icon {
    transform: translateX(10px) rotate(-45deg);
    color: var(--brand-blue);
}

.hover-card:hover h3 {
    color: var(--brand-blue);
    padding-left: 10px;
}

.stat-item .stat-line {
    transform-origin: top;
    transform: scaleY(0);
}

.stat-item .stat-content {
    opacity: 0;
    transform: translateY(20px);
}

.reveal-text span, .reveal-text-overlay span {
    display: inline-block;
}

.magnetic-btn {
    display: inline-block;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

/* --- OVERLAY (Formulário de Contato) --- */
.form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #FFFFFF 0%, #EAF3FA 80%);
    z-index: 9990;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.form-overlay.open {
    transform: translateY(0);
}

/* Wokine Style Image Reveal (Animação de aparição de imagem) */
.reveal-image-container {
    overflow: hidden;
    position: relative;
    transform: translateY(30px);
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-image-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-image-container img {
    will-change: transform;
    height: 120%;
    width: 100%;
    object-fit: cover;
    position: absolute; top: -10%;
    left: 0;
}

/* Campos de Input Estilizados */
.input-underline {
    background: transparent;
    border: none; border-bottom: 2px solid rgba(0, 19, 42, 0.2);
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: 500;
    width: 100%;
    padding-bottom: 12px;
    outline: none;
    transition: border-color 0.4s, padding-bottom 0.4s;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
}
.input-underline:focus {
    border-color: var(--brand-blue);
    padding-bottom: 16px;
}

.input-underline::placeholder {
    color: rgba(0, 19, 42, 0.35);
}

select.input-underline {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300132A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 18px;
    padding-right: 28px;
}

textarea.input-underline {
    resize: none;
    height: auto;
    min-height: 70px;
}

/* Campos em caixa (card de contato) */
.input-box {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(0, 19, 42, 0.12);
    border-radius: 12px;
    background: #FAFBFC;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    color: var(--ink);
    outline: none;
    resize: none;
    transition: border-color 0.3s, background 0.3s;
}
.input-box:focus {
    border-color: var(--brand-blue);
    background: #fff;
}
.input-box::placeholder {
    color: rgba(0, 19, 42, 0.35);
}

/* Estilos dos Cards do Blog */
.blog-card-img {
    transition: transform 0.7s ease;
}

.blog-card:hover .blog-card-img {
    transform: scale(1.05);
}

::selection {
    background: var(--brand-blue);
    color: var(--ink);
}

/* Esteira de depoimentos (seção Quem Somos) */
.testimonial-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.testimonial-track {
    display: flex;
    gap: 24px;
    width: max-content;
    padding: 0 24px;
    animation: testimonial-scroll 34s linear infinite;
}

.testimonial-marquee:hover .testimonial-track {
    animation-play-state: paused;
}

.testimonial-card {
    flex: 0 0 auto;
    width: 380px;
    background: #fff;
    border: 1px solid rgba(0, 19, 42, 0.1);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 12px 28px rgba(0, 19, 42, 0.06);
}

@keyframes testimonial-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .testimonial-card {
        width: 300px;
        padding: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .testimonial-track {
        animation: none;
    }
    .testimonial-marquee {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }
}

/* Logos de clientes — linha fixa (seção Quem Somos) */
.logo-static-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 12px;
}

.logo-static-slot {
    height: 80px;
    width: 100%;
    border: 1.5px dashed rgba(0, 19, 42, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 19, 42, 0.35);
}

.logo-static-slot i {
    width: 24px;
    height: 24px;
}

/* Impede o scroll do fundo quando o overlay está aberto */
body.no-scroll {
    overflow: hidden !important;
    height: 100vh;
}

/* Botão flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    z-index: 500;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

@media (max-width: 640px) {
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 16px;
        right: 16px;
    }
}
