/* ==========================================================================
   Soluções (#solucoes) — redesign: cabeçalho em 2 colunas, tipografia legível,
   cards com altura/rodapé alinhados e faixa final em 2 colunas.
   Mantém todas as classes usadas pelo JS (cc-line, cc-card, data-viz, cc-toggle...).
   ========================================================================== */

/* ---- cabeçalho ---- */
#solucoes .cc-head {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: end;
    gap: clamp(28px, 5vw, 84px);
    margin-bottom: clamp(44px, 5.4vw, 72px);
}
#solucoes .cc-eyebrow { font-size: 12px; letter-spacing: 0.2em; }
#solucoes .cc-title {
    margin: 18px 0 0;
    font-family: var(--font-body);
    font-size: clamp(2.5rem, 5.2vw, 4.6rem);
    line-height: 0.98;
    letter-spacing: -0.015em;
    text-transform: none;
}
#solucoes .cc-intro { display: grid; gap: 22px; align-content: end; }
#solucoes .cc-lede { max-width: 34em; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.65; color: var(--ink-2); }
#solucoes .cc-side { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; text-align: left; }
#solucoes .cc-side-chip {
    padding: 9px 14px;
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink-2);
}
#solucoes .cc-side-chip b { margin-right: 3px; font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; }
#solucoes .cc-head-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 4px; }

/* ---- grade de cards ---- */
#solucoes .cc-bento { gap: clamp(16px, 1.6vw, 24px); }
#solucoes .cc-card { display: flex; flex-direction: column; padding: clamp(20px, 2vw, 28px); border-radius: 26px; }
#solucoes .cc-card-top { margin-bottom: 16px; }
#solucoes .cc-idx { font-size: 12px; letter-spacing: 0.14em; }
#solucoes .cc-chip { padding: 6px 11px; font-size: 10.5px; letter-spacing: 0.12em; }
#solucoes .cc-viz { height: clamp(170px, 14vw, 205px); border-radius: 18px; }
#solucoes .cc-card--wide .cc-viz { height: clamp(190px, 17vw, 240px); }
#solucoes .cc-viz-label { left: 14px; bottom: 12px; font-size: 10px; letter-spacing: 0.14em; color: rgba(176, 184, 210, 0.85); }
#solucoes .cc-card h3 { margin-top: 22px; font-size: clamp(1.25rem, 1.55vw, 1.5rem); letter-spacing: -0.025em; }
#solucoes .cc-card > p { margin: 8px 0 20px; max-width: 46ch; font-size: 15px; line-height: 1.6; }
#solucoes .cc-toggle {
    align-self: flex-start;
    margin-top: auto;
    padding: 10px 16px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}
#solucoes .cc-detail li { font-size: 14.5px; }

/* faixa final: texto à esquerda, painel à direita */
@media (min-width: 861px) {
    #solucoes .cc-card--strip {
        display: grid;
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
        column-gap: clamp(24px, 3.4vw, 52px);
        align-items: start;
    }
    #solucoes .cc-card--strip > * { grid-column: 1; }
    #solucoes .cc-card--strip > .cc-viz { grid-column: 2; grid-row: 1 / span 6; align-self: stretch; height: auto; min-height: 230px; }
    #solucoes .cc-card--strip h3 { margin-top: 10px; }
    #solucoes .cc-card--strip .cc-toggle { margin-top: 0; justify-self: start; }
}

/* ---- rodapé da seção ---- */
#solucoes .cc-foot { justify-content: space-between; gap: 14px 28px; }
#solucoes .cc-foot p { font-size: 16px; color: var(--ink-2); }
#solucoes .cc-foot strong { color: var(--ink); }
#solucoes .cc-demo { margin-top: 0; font-family: var(--font-body); font-size: 12.5px; letter-spacing: 0; text-transform: none; color: var(--ink-3); }

/* ---- responsivo ---- */
@media (max-width: 1024px) {
    #solucoes .cc-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (max-width: 600px) {
    #solucoes .cc-title { font-size: clamp(2.2rem, 10vw, 2.8rem); }
    #solucoes .cc-head-cta .btn { width: 100%; justify-content: center; }
}

/* ---- imagens de fundo dos paineis (.cc-viz): o canvas animado continua por cima ---- */
#solucoes .cc-viz::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--cc-bg) center / cover no-repeat;
    opacity: 0.82;
    transform: scale(1.02);
    transition: opacity 0.5s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
#solucoes .cc-viz::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(6, 10, 26, 0.18) 0%, rgba(6, 10, 26, 0.42) 100%);
}
#solucoes .cc-viz canvas, #solucoes .cc-viz .cc-shop { position: relative; z-index: 2; }
#solucoes .cc-viz-label { z-index: 3; }
#solucoes .cc-card:hover .cc-viz::before, #solucoes .cc-card.is-open .cc-viz::before { opacity: 1; transform: scale(1.06); }
#solucoes .cc-card[data-cc="funnel"] .cc-viz { --cc-bg: url("../img/solucoes/01-trafego-pago.webp"); }
#solucoes .cc-card[data-cc="flow"]   .cc-viz { --cc-bg: url("../img/solucoes/02-automacao-marketing.webp"); }
#solucoes .cc-card[data-cc="code"]   .cc-viz { --cc-bg: url("../img/solucoes/03-sistemas-sob-medida.webp"); }
#solucoes .cc-card[data-cc="send"]   .cc-viz { --cc-bg: url("../img/solucoes/04-disparos-whatsapp.webp"); }
#solucoes .cc-card[data-cc="shop"]   .cc-viz { --cc-bg: url("../img/solucoes/05-ecommerce-marketplaces.webp"); }
#solucoes .cc-card[data-cc="kpi"]    .cc-viz { --cc-bg: url("../img/solucoes/06-consultoria-estrategica.webp"); }
@media (prefers-reduced-motion: reduce) {
    #solucoes .cc-viz::before { transition: none; transform: none; }
}

/* rotulos de texto sobre as imagens dos paineis ocultos (a pedido) */
#solucoes .cc-viz-label { display: none; }
