/* =====================================================
   OPERACOES.CSS — Estilos exclusivos de operacoes.html
   Projeto: Confiança FIDC
   ===================================================== */

/* =====================================================
   HERO — ajuste de posição para operacao.jpg
   ===================================================== */
#opHero .page-hero-bg {
    background-position: center 40%;
}

/* =====================================================
   OP FLOW — Fluxo operacional interativo
   ===================================================== */
.op-flow-header {
    max-width: 640px;
    margin-bottom: clamp(36px, 4.5vw, 52px);
}

/* Barra de navegação dos passos */
.op-steps-nav {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: clamp(36px, 5vw, 52px);
}

.op-steps-nav::-webkit-scrollbar { display: none; }

.op-step-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px clamp(14px, 1.8vw, 26px);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    font-family: var(--font-main);
    white-space: nowrap;
    transition: background 0.22s ease, border-color 0.28s ease;
}

.op-step-btn:hover {
    background: rgba(255,255,255,0.03);
}

.op-step-btn.active {
    border-bottom-color: rgba(255,255,255,0.58);
}

.op-step-num {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: rgba(255,255,255,0.18);
    transition: color 0.25s ease;
    flex-shrink: 0;
}

.op-step-btn.active .op-step-num,
.op-step-btn:hover  .op-step-num { color: rgba(255,255,255,0.45); }

.op-step-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: rgba(255,255,255,0.16);
    transition: color 0.25s ease;
}

.op-step-btn.active .op-step-icon,
.op-step-btn:hover  .op-step-icon { color: rgba(255,255,255,0.72); }

.op-step-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.22);
    transition: color 0.25s ease;
}

.op-step-btn.active .op-step-label { color: rgba(255,255,255,0.88); }
.op-step-btn:hover  .op-step-label { color: rgba(255,255,255,0.5); }

/* ── Painel de detalhe ── */
.op-flow-panel {
    min-height: 280px;
}

.op-flow-detail {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
    animation: opDetailIn 0.36s ease;
}

.op-flow-detail.active { display: grid; }

@keyframes opDetailIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Lado esquerdo */
.op-detail-tag {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.22);
    margin-bottom: 12px;
}

.op-detail-title {
    font-size: clamp(22px, 2.5vw, 32px);
    font-weight: 900;
    color: var(--color-white);
    letter-spacing: -0.03em;
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: 16px;
}

.op-detail-desc {
    font-size: var(--fs-sm);
    color: rgba(255,255,255,0.46);
    line-height: 1.8;
    margin-bottom: 26px;
    max-width: 420px;
}

.op-detail-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.op-detail-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-xs);
    color: rgba(255,255,255,0.48);
    line-height: 1.5;
}

.op-detail-list li::before {
    content: '';
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,0.28);
    flex-shrink: 0;
}

/* Lado direito */
.op-detail-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.op-detail-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: clamp(14px, 1.5vw, 18px) clamp(16px, 1.8vw, 22px);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    transition: background 0.22s ease, border-color 0.22s ease;
}

.op-detail-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.14);
}

.op-detail-card-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border-radius: 6px;
    color: rgba(255,255,255,0.38);
    flex-shrink: 0;
}

.op-detail-card-icon svg {
    width: 16px;
    height: 16px;
}

.op-detail-card-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.op-detail-card-label {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.22);
}

.op-detail-card-value {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: rgba(255,255,255,0.72);
    letter-spacing: -0.01em;
}

/* Stat hero (passo de liberação) */
.op-detail-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 2.8vw, 36px) clamp(20px, 2.2vw, 28px);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    text-align: center;
    margin-bottom: 10px;
}

.op-detail-hero-stat-num {
    font-size: clamp(52px, 7vw, 80px);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 8px;
}

.op-detail-hero-stat-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
}

/* =====================================================
   OP CRITERIA — Análise de Crédito
   ===================================================== */
.op-criteria-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto clamp(40px, 5vw, 60px);
}

.op-criteria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(12px, 1.4vw, 18px);
}

.op-criteria-card {
    padding: clamp(22px, 2.4vw, 32px);
    background: #f7f7f7;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    cursor: default;
    transition: background 0.3s ease,
                border-color 0.3s ease,
                transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1),
                box-shadow 0.3s ease;
}

.op-criteria-card:hover {
    background: #0a0a0a;
    border-color: transparent;
    transform: translateY(-6px);
    box-shadow: 0 16px 44px rgba(0,0,0,0.22),
                0 0 0 1px rgba(255,255,255,0.06) inset;
}

.op-criteria-icon {
    width: 38px;
    height: 38px;
    color: rgba(0,0,0,0.2);
    transition: color 0.3s ease;
}

.op-criteria-card:hover .op-criteria-icon { color: rgba(255,255,255,0.58); }

.op-criteria-card h3 {
    font-size: var(--fs-sm);
    font-weight: 800;
    color: #0a0a0a;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.15;
    transition: color 0.3s ease;
}

.op-criteria-card:hover h3 { color: #fff; }

.op-criteria-card p {
    font-size: var(--fs-xs);
    color: rgba(0,0,0,0.44);
    line-height: 1.72;
    transition: color 0.3s ease;
}

.op-criteria-card:hover p { color: rgba(255,255,255,0.44); }

/* =====================================================
   OP NUMBERS — Contadores de destaque
   ===================================================== */
.op-numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.07);
}

.op-number-item {
    background: #0a0a0a;
    padding: clamp(32px, 4vw, 56px) clamp(20px, 3vw, 40px);
    text-align: center;
}

.op-number-val {
    display: block;
    font-size: var(--fs-2xl);
    font-weight: 900;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 10px;
}

.op-number-label {
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.32);
}

/* =====================================================
   OP FIDC STRUCTURE — Diagrama simplificado
   ===================================================== */
.op-fidc-text {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 1.8vw, 20px);
}

.op-fidc-text p {
    font-size: var(--fs-sm);
    color: rgba(0,0,0,0.5);
    line-height: 1.8;
    max-width: 430px;
}

.op-fidc-diagram {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.op-fidc-node {
    padding: clamp(16px, 1.8vw, 22px) clamp(20px, 2.4vw, 28px);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    transition: transform 0.25s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.op-fidc-node:hover { transform: translateX(5px); }

.op-fidc-node.node-cedente,
.op-fidc-node.node-investidor {
    background: #f5f5f5;
    border: 1px solid rgba(0,0,0,0.07);
}

.op-fidc-node.node-fidc {
    background: #0a0a0a;
    border: 1px solid transparent;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    margin: 10px 0;
}

.op-fidc-node-info { flex: 1; }

.op-fidc-node-tag {
    display: block;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(0,0,0,0.28);
    margin-bottom: 3px;
}

.op-fidc-node.node-fidc .op-fidc-node-tag { color: rgba(255,255,255,0.28); }

.op-fidc-node-title {
    font-size: clamp(13px, 1.1vw, 15px);
    font-weight: 800;
    color: #0a0a0a;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    line-height: 1.2;
}

.op-fidc-node.node-fidc .op-fidc-node-title { color: #fff; }

.op-fidc-node-desc {
    font-size: clamp(10px, 0.9vw, 12px);
    color: rgba(0,0,0,0.4);
    line-height: 1.55;
    margin-top: 4px;
}

.op-fidc-node.node-fidc .op-fidc-node-desc { color: rgba(255,255,255,0.4); }

.op-fidc-arrow {
    color: rgba(0,0,0,0.14);
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.op-fidc-node.node-fidc .op-fidc-arrow { color: rgba(255,255,255,0.18); }

.op-fidc-connector {
    display: flex;
    justify-content: flex-start;
    padding-left: clamp(26px, 3vw, 36px);
    height: 0;
    overflow: visible;
    position: relative;
    z-index: 0;
}

/* =====================================================
   OP MONITOR — Monitoramento ativo
   ===================================================== */
.op-monitor-header {
    max-width: 600px;
    margin-bottom: clamp(40px, 5vw, 60px);
}

.op-monitor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(14px, 1.8vw, 22px);
}

.op-monitor-card {
    padding: clamp(28px, 3vw, 40px);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: background 0.25s ease,
                border-color 0.25s ease,
                transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.op-monitor-card:hover {
    background: rgba(255,255,255,0.065);
    border-color: rgba(255,255,255,0.16);
    transform: translateY(-4px);
}

.op-monitor-icon {
    width: 42px;
    height: 42px;
    color: rgba(255,255,255,0.26);
    transition: color 0.25s ease;
}

.op-monitor-card:hover .op-monitor-icon { color: rgba(255,255,255,0.62); }

.op-monitor-card h3 {
    font-size: var(--fs-sm);
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.2;
}

.op-monitor-card p {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,0.4);
    line-height: 1.74;
}

/* =====================================================
   CTA SECTION (migrado do pages.css)
   ===================================================== */
.cta-section {
    background: var(--color-white);
    padding: clamp(56px, 7vw, 96px) var(--page-pad);
    text-align: center;
}

.cta-section.dark { background: var(--color-black); }

.cta-section h2 {
    font-size: var(--fs-xl);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 18px;
}

.cta-section.dark h2 { color: var(--color-white); }
.cta-section:not(.dark) h2 { color: #0a0a0a; }

.cta-section p {
    font-size: var(--fs-base);
    line-height: 1.65;
    max-width: 520px;
    margin: 0 auto 36px;
}

.cta-section.dark p  { color: rgba(255,255,255,0.52); }
.cta-section:not(.dark) p { color: rgba(0,0,0,0.5); }

/* CTA em duas colunas — imagem à esquerda, texto à direita */
.cta-section { padding-block: clamp(34px, 4vw, 56px); }
.cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
    max-width: 1080px;
    margin: 0 auto;
    text-align: left;
}
.cta-inner .cta-text { flex: 1 1 auto; }
.cta-inner .cta-text p { margin: 0 0 32px; max-width: 480px; }
.cta-media {
    flex: 0 0 auto;
    order: -1;
    width: clamp(300px, 40vw, 460px);
    aspect-ratio: 1 / 1;
    align-self: center;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}
.cta-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media (max-width: 820px) {
    .cta-inner { flex-direction: column; text-align: center; }
    .cta-inner .cta-text p { margin-left: auto; margin-right: auto; }
    .cta-media { width: 100%; min-height: 220px; }
}

/* =====================================================
   HERO OPERAÇÕES — split (texto | gráfico)
   ===================================================== */

/* Overlay de cima (opaco) para baixo (clareando) — só nesta página */
#opHero .page-hero-overlay {
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.92) 0%,
        rgba(0,0,0,0.80) 45%,
        rgba(0,0,0,0.68) 100%
    );
}

.op-hero-body {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    padding: clamp(90px, 12vh, 148px) var(--page-pad) clamp(28px, 3.5vw, 48px);
}

/* Gráfico full-width, de margem a margem, como fundo do hero */
.op-hero-chart {
    position: absolute;
    left: var(--page-pad);
    right: var(--page-pad);
    /* Respeita o padding do topo (cabeçalho) e da base do hero */
    top: clamp(90px, 12vh, 148px);
    bottom: clamp(28px, 3.5vw, 48px);
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    pointer-events: none;
}

.op-hero-chart .tc-chart-wrap { width: 100%; }

.op-hero-chart svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.op-hero-chart-caption {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 14px;
    padding-right: 2px;
}

.op-hero-chart-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.34);
}

.op-hero-chart-note {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.2);
}

/* Texto sobre o gráfico, à esquerda e mais largo */
.op-hero-body .page-hero-content {
    position: relative;
    z-index: 2;
    padding: 0;
    max-width: 660px;
}

.op-hero-body .page-hero-content h1 {
    max-width: 640px;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.07;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 18px;
}
.op-hero-body .page-hero-content p  {
    max-width: 580px;
    font-size: var(--fs-base);
    line-height: 1.4;
    font-weight: 300;
    color: rgba(255,255,255,0.8);
    margin-bottom: 18px;
}

/* =====================================================
   APP DO CLIENTE — seção de um app
   ===================================================== */
.apps-section-single {
    padding: clamp(40px, 5vw, 68px) var(--page-pad);
}
.apps-section-single .app-panel {
    max-width: 1080px;
    min-height: 220px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
}
.apps-section-single .app-panel-img {
    flex: 0 0 28%;
}

/* Tema claro — inverte cores do conteúdo e botões */
.apps-section-single .app-eyebrow {
    color: rgba(0, 0, 0, 0.5);
}
.apps-section-single .app-title {
    color: #0a0a0a;
}
.apps-section-single .app-desc {
    color: rgba(0, 0, 0, 0.6);
    max-width: 560px;
}
.apps-section-single .btn-store {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.28);
    color: rgba(0, 0, 0, 0.85);
}
.apps-section-single .btn-store::after {
    border-color: rgba(0, 0, 0, 0.7);
}
.apps-section-single .btn-store:hover {
    background: #0a0a0a;
    border-color: transparent;
    color: #ffffff;
    box-shadow:
        0 0 0 5px rgba(0, 0, 0, 0.06),
        0 0 28px rgba(0, 0, 0, 0.15);
}
.apps-section-single .app-panel-img img {
    object-fit: contain;
    object-position: right center;
    opacity: 0;
    transform: translateX(-70px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.apps-section-single .app-panel.visible .app-panel-img img {
    opacity: 1;
    transform: translateX(0);
}
.apps-section-single .app-panel-content {
    align-items: center;
    text-align: center;
    padding: 0 clamp(24px, 4vw, 64px);
}
.apps-section-single .app-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 26px;
    width: 100%;
    max-width: 640px;
    margin: 2px auto;
    text-align: left;
}
.apps-section-single .app-features li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: var(--fs-xs);
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.45;
}
.apps-section-single .app-features li svg {
    width: 16px;
    height: 16px;
    color: #0a0a0a;
    flex-shrink: 0;
    margin-top: 1px;
}
@media (max-width: 560px) {
    .apps-section-single .app-features { grid-template-columns: 1fr; }
}

/* Painel do gráfico (compartilha o visual do trabalhe-conosco) */
.tc-chart-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.2vw, 16px);
    min-width: 0;
}

.tc-chart-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.tc-chart-title {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.32);
}

.tc-chart-period {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.18);
}

.tc-chart-wrap {
    width: 100%;
    position: relative;
}

.tc-chart-wrap svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.tc-chart-footer {
    display: flex;
    align-items: center;
    gap: clamp(20px, 2.5vw, 36px);
    padding-top: 4px;
}

.tc-chart-peak { display: flex; flex-direction: column; gap: 2px; }

.tc-chart-peak-num {
    font-size: clamp(18px, 2.2vw, 28px);
    font-weight: 900;
    color: var(--color-white);
    letter-spacing: -0.04em;
    line-height: 1;
}

.tc-chart-peak-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
}

.tc-chart-divider {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.tc-chart-since { display: flex; flex-direction: column; gap: 2px; }

.tc-chart-since-num {
    font-size: clamp(14px, 1.6vw, 20px);
    font-weight: 800;
    color: rgba(255,255,255,0.55);
    letter-spacing: -0.03em;
    line-height: 1;
}

.tc-chart-since-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.22);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1020px) {
    .op-criteria-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .op-flow-detail  { grid-template-columns: 1fr; gap: clamp(28px, 4vw, 40px); }
    .op-monitor-grid { grid-template-columns: repeat(2, 1fr); }
    .op-numbers-grid { grid-template-columns: repeat(2, 1fr); }
    .op-hero-body    { flex-direction: column; align-items: flex-start; justify-content: center; gap: clamp(24px, 5vw, 40px); }
    .op-hero-body .page-hero-content { max-width: 100%; }
    /* Em telas menores o gráfico volta ao fluxo, abaixo do texto */
    .op-hero-chart   { position: static; left: auto; right: auto; }
}

@media (max-width: 600px) {
    .op-criteria-grid { grid-template-columns: 1fr; }
    .op-monitor-grid  { grid-template-columns: 1fr; }
    .op-step-btn      { padding: 14px 12px; }
    .op-step-label    { font-size: 9px; }
    .op-step-icon     { display: none; }
}
