/* ==========================================================================
   FORENSI PERÍCIAS - MASTER CARDS DESIGN SYSTEM (.lg-master-card)
   ========================================================================== */

.lg-master-card {
    background: #f8fafc;
    padding: 32px 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    border-top: 3px solid #0a2540; /* Assinatura Azul Marinho Forensi */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.lg-master-card:hover {
    transform: translateY(-5px);
    border-color: #0a2540;
    box-shadow: 0 12px 30px rgba(10, 37, 64, 0.08);
}

/* Variante 1 — Com Ícone (.lg-master-card--icon) */
.lg-master-card--icon {
    align-items: center;
    text-align: center;
}

.card-icon-badge,
.lg-master-card--icon .card-icon-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #0a2540;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: #0a2540;
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.lg-master-card--icon:hover .card-icon-badge {
    border-color: #2e7d32;
    color: #2e7d32;
    box-shadow: 0 0 15px rgba(46, 125, 50, 0.2);
    transform: scale(1.06);
}

/* Variante 2 — Sem Ícone (.lg-master-card--clean) */
.lg-master-card--clean {
    align-items: flex-start;
    text-align: left;
}

.lg-master-card--clean .card-metric-num {
    font-size: 2.6rem;
    font-weight: 800;
    color: #0a2540;
    line-height: 1;
    margin-bottom: 8px;
    font-family: var(--font-head);
}

/* Variante 3 — Com Imagem (.lg-master-card--image) */
.lg-master-card--image {
    padding: 0 0 24px 0;
}

.lg-master-card--image .card-img-top,
.team-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center top;
    border-radius: 12px 12px 0 0;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.lg-master-card--image:hover .card-img-top,
.lg-master-card--image:hover .team-img {
    transform: scale(1.03);
    filter: brightness(1.02);
}

.lg-master-card--image .card-body {
    padding: 20px 24px 0 24px;
}

/* Variante 4 — Sem Imagem / Texto Puro (.lg-master-card--text) */
.lg-master-card--text {
    line-height: 1.6;
    color: #475569;
}

.lg-master-card--text p {
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ==========================================================================
   CARDS HÍBRIDOS DE ÁREAS DE ATUAÇÃO (.practice-card-hybrid) - CLEAN CORPORATE 3x2
   ========================================================================== */
.services-grid-hybrid-3x2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.practice-card-hybrid {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.practice-card-hybrid:hover {
    transform: translateY(-5px);
    border-color: #0a2540;
    box-shadow: 0 12px 30px rgba(10, 37, 64, 0.08);
}

.card-image-header {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-image-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-bottom: 3px solid #0a2540;
    transition: transform 0.4s ease;
    display: block;
}

.practice-card-hybrid:hover .card-image-header img {
    transform: scale(1.05);
}

.card-text-body {
    padding: 1.5rem;
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-text-body h3 {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 800;
    color: #0a2540;
    margin-bottom: 10px;
    line-height: 1.3;
}

.card-text-body p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-text-body .card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0a2540;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
    margin-top: auto;
}

.card-text-body .card-link:hover {
    color: #2e7d32;
}

@media (max-width: 1024px) {
    .services-grid-hybrid-3x2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .services-grid-hybrid-3x2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .services-grid-hybrid-3x2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid-hybrid-3x2 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   PROSPERUM OVERHAUL DESIGN SYSTEM (FASE 26.0)
   ========================================================================== */

/* 1. Overlapping Cards Wrapper (Invadindo o Hero) */
.overlap-cards-wrapper {
    position: relative;
    margin-top: -70px;
    z-index: 10;
    margin-bottom: 70px;
}

.overlap-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.prosperum-feat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 15px 35px rgba(10, 37, 64, 0.08);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.prosperum-feat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 45px rgba(10, 37, 64, 0.14);
    border-color: rgba(46, 125, 50, 0.3);
}

.prosperum-feat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.prosperum-feat-content h3 {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 800;
    color: #0a2540;
    margin-bottom: 6px;
    line-height: 1.25;
}

.prosperum-feat-content p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* 2. Solutions Grid (Cartões de Serviço com Ícone Vazado/Flutuante) */
.prosperum-solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.prosperum-solution-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.prosperum-solution-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(10, 37, 64, 0.12);
    border-color: rgba(46, 125, 50, 0.3);
}

.prosperum-solution-img-box {
    position: relative;
    width: 100%;
    height: 210px;
    overflow: visible;
}

.prosperum-solution-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 16px 16px 0 0;
    transition: transform 0.4s ease;
}

.prosperum-solution-card:hover .prosperum-solution-img-box img {
    transform: scale(1.04);
}

/* Ícone Circular Flutuante/Vazado na Linha Divisória */
.prosperum-floating-badge-icon {
    position: absolute;
    bottom: -22px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0a2540;
    color: #ffffff;
    border: 3px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 6px 16px rgba(10, 37, 64, 0.25);
    z-index: 5;
    transition: all 0.3s ease;
}

.prosperum-solution-card:hover .prosperum-floating-badge-icon {
    background: #2e7d32;
    transform: scale(1.1) rotate(5deg);
}

.prosperum-solution-body {
    padding: 32px 24px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.prosperum-solution-body h3 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 800;
    color: #0a2540;
    margin-bottom: 10px;
    line-height: 1.3;
}

.prosperum-solution-body p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 24px;
}

.prosperum-btn-solid-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    border-radius: 50px;
    background: #2e7d32;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid #2e7d32;
    margin-top: auto;
}

.prosperum-btn-solid-green:hover {
    background: #1b5e20;
    border-color: #1b5e20;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.3);
}

/* 3. Split Layout Seção Final (Nosso Processo + Form Escuro Prosperum) */
.prosperum-split-section {
    padding: 100px 0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.prosperum-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: stretch;
}

.prosperum-process-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.prosperum-process-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    margin-top: 40px;
}

.prosperum-process-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.prosperum-step-item {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
    padding: 0 8px;
}

.prosperum-step-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #2e7d32;
    color: #2e7d32;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px auto;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.15);
    transition: all 0.3s ease;
}

.prosperum-step-item:hover .prosperum-step-icon {
    background: #2e7d32;
    color: #ffffff;
    transform: scale(1.1);
}

.prosperum-step-title {
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 800;
    color: #0a2540;
    margin-bottom: 4px;
}

.prosperum-step-desc {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}

.prosperum-form-card-dark {
    background: #0a2540;
    padding: 44px 38px;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(10, 37, 64, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.prosperum-form-card-dark h3 {
    font-family: var(--font-head);
    font-size: 1.9rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.2;
}

.prosperum-form-card-dark p {
    color: #cbd5e1;
    font-size: 0.92rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Responsividade do Layout Prosperum */
@media (max-width: 1024px) {
    .overlap-cards-grid,
    .prosperum-solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .prosperum-split-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .overlap-cards-wrapper {
        margin-top: 30px;
        margin-bottom: 40px;
    }

    .overlap-cards-grid,
    .prosperum-solutions-grid {
        grid-template-columns: 1fr;
    }

    .prosperum-process-steps {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }

    .prosperum-process-steps::before {
        display: none;
    }

    .prosperum-step-item {
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: left;
    }

    .prosperum-step-icon {
        margin: 0;
        flex-shrink: 0;
    }

    .prosperum-form-card-dark {
        padding: 30px 20px;
    }
}


/* ==========================================================================
   SHIELD CORE WEB VITALS - LAYOUT STABILITY (CLS 0.00) & DIMENSIONAL RESERVES
   ========================================================================== */
img {
    max-width: 100%;
    height: auto;
    content-visibility: auto;
}
.lw-brand-logo img {
    width: 160px;
    height: 42px;
    aspect-ratio: 160 / 42;
}
.lw-topbar {
    min-height: 42px;
    contain: layout size style;
}
.lw-header {
    min-height: 80px;
    contain: layout size style;
}
.lw-hero-section {
    min-height: 480px;
    position: relative;
    contain: layout size style;
}
.lw-hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}
.hero-team-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.team-card-img, .servicos-hub-img {
    width: 100%;
    height: 240px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.mobile-drawer-overlay {
    contain: layout style;
}
