/* =========================================================
   1. CONFIGURAÇÕES GLOBAIS
========================================================= */
:root {
    --pi-blue: #002d5e;
    --pi-yellow: #f9d21c;
    --pi-red: #da291c;
    --pi-green: #009639;
    --primary-font: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px; /* Compensa o menu fixo nas âncoras */
}

body {
    font-family: var(--primary-font);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    color: #333;
}

/* =========================================================
   2. UTILITÁRIOS
========================================================= */
.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.fw-800 {
    font-weight: 800;
}

.fw-500 {
    font-weight: 500;
}

h1,
h2,
h3,
h4 {
    letter-spacing: -0.02em;
}

.text-uppercase-label {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--pi-blue);
    text-transform: uppercase;
}

.bg-light {
    background-color: #f1f3f5 !important;
}

/* =========================================================
   3. BRANDING / CORES INSTITUCIONAIS
========================================================= */
.btn-primary {
    background-color: var(--pi-blue);
    border-color: var(--pi-blue);
}

.text-primary {
    color: var(--pi-blue) !important;
}

.bg-primary {
    background-color: var(--pi-blue) !important;
}

.brand-stripe {
    width: 60px;
    height: 5px;
}

.bg-blue {
    background-color: var(--pi-blue);
}

.bg-yellow {
    background-color: var(--pi-yellow);
}

.bg-red {
    background-color: var(--pi-red);
}

.bg-green {
    background-color: var(--pi-green);
}

/* =========================================================
   4. NAVBAR
========================================================= */
.navbar-logo {
    width: 230px;
    height: auto;
    transition: width 0.3s ease;
}

.navbar .nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.navbar .nav-link:hover {
    color: var(--pi-yellow) !important;
}

/* Item ativo do menu */
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--pi-yellow) !important;
    position: relative;
}

/* =========================================================
   5. HERO
========================================================= */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    background-color: var(--pi-blue);
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    color: #fff !important;
    font-weight: 800;
    text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.video-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: linear-gradient(rgba(0, 45, 94, 0.8), rgba(0, 45, 94, 0.6));
}

.video-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    filter: blur(1px);
}

/* =========================================================
   6. CARDS E MICROCOMPONENTES
========================================================= */
.hover-up {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hover-up:hover {
    transform: translateY(-12px);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.12) !important;
}

.icon-box {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 45, 94, 0.06);
}

/* =========================================================
   7. CASES / NÚMEROS EM DESTAQUE
========================================================= */
.display-stats {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
    color: var(--pi-yellow);
}

/* =========================================================
   8. FLUXO DA ARQUITETURA DE DADOS
========================================================= */
.fluxo-card {
    border-radius: 12px;
    color: #fff;
}

.fluxo-card i,
.fluxo-card h5,
.fluxo-card p {
    color: #fff;
}

.fluxo-sistemas {
    background: #1e3a8a;
}

.fluxo-ingestao {
    background: #0f766e;
}

.fluxo-datalake {
    background: #b45309;
}

.fluxo-processamento {
    background: #5b21b6;
}

.fluxo-seta {
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================================
   9. BOTÃO FLUTUANTE WHATSAPP
========================================================= */
.floating-specialist-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;

    display: inline-flex;
    align-items: center;
    gap: 12px;

    padding: 10px 10px 10px 18px;
    border-radius: 999px;

    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    text-decoration: none;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
    animation: floatingPulse 2.2s infinite;
}

.floating-specialist-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
    color: #fff;
}

.floating-specialist-btn:focus-visible {
    outline: 3px solid rgba(249, 210, 28, 0.55);
    outline-offset: 4px;
}

.floating-specialist-text {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.floating-specialist-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
    font-size: 1.35rem;

    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
}

@keyframes floatingPulse {
    0% {
        box-shadow:
            0 12px 30px rgba(0, 0, 0, 0.22),
            0 0 0 0 rgba(37, 211, 102, 0.35);
    }
    70% {
        box-shadow:
            0 12px 30px rgba(0, 0, 0, 0.22),
            0 0 0 16px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow:
            0 12px 30px rgba(0, 0, 0, 0.22),
            0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* =========================================================
   10. RESPONSIVIDADE
========================================================= */

/* Desktop grande */
@media (min-width: 1200px) {
    .navbar-logo {
        width: 300px;
    }

    .navbar-nav .nav-link {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Tablet e Mobile: mesma lógica visual, incluindo iPad Pro 1024 */
@media (max-width: 1199.98px) {
    .navbar-logo {
        width: 230px;
    }

    .navbar .nav-link {
        font-size: 0.9rem;
    }

    .hero-section {
        min-height: auto;
        text-align: center;
    }

    .hero-content {
        min-height: auto;
        align-items: flex-start;
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .hero-content h1 {
        font-size: clamp(2.2rem, 5vw, 4.5rem);
    }

    .display-stats {
        font-size: 3.5rem;
    }

    .fluxo-seta i {
        transform: rotate(90deg);
    }

    .fluxo-seta {
        margin: 10px 0;
    }
}

/* Mobile menor */
@media (max-width: 768px) {
    .video-bg {
        display: none;
    }

    .hero-section {
        background:
            linear-gradient(rgba(0, 29, 61, 0.9), rgba(0, 29, 61, 0.8)),
            url('images/fallback-hero.jpg') center/cover;
    }

    .floating-specialist-btn {
        right: 14px;
        bottom: 14px;
        width: 60px;
        height: 60px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .floating-specialist-text {
        display: none;
    }

    .floating-specialist-icon {
        width: 60px;
        height: 60px;
        background: transparent;
        font-size: 1.6rem;
    }
}



.row {
    --bs-gutter-x: 1.5rem;
}

img,
video,
iframe,
svg {
    max-width: 100%;
    height: auto;
}

.hero-section,
section,
footer,
nav {
    overflow-x: clip;
}


#case-govpi .row {
    margin-top: 1.5rem;
}