/* ================================================
   BLOCOS EXTRAS — TERRAPLENAGEM
   Adicione após o CSS existente da página
   ================================================ */

/* --- Utilitário compartilhado --- */
.bloco-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cor-primaria);
    margin-bottom: 10px;
}

/* ================================================
   BLOCO 1 — NOSSOS NÚMEROS
   ================================================ */
.bloco-numeros {
    padding: 60px;
    background-color: #fff;
    border-top: 3px solid var(--cor-primaria);
}

.numeros-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    overflow: hidden;
}

.numero-item {
    padding: 36px 28px;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    background-color: #fff;
}

.numero-item:last-child {
    border-right: none;
}

.numero-valor {
    font-size: 2.8rem;
    font-weight: 500;
    color: var(--cor-primaria);
    line-height: 1;
    margin-bottom: 10px;
}

.numero-label {
    font-size: 0.8rem;
    color: #627177;
    line-height: 1.5;
}

/* ================================================
   BLOCO 2 — COMO TRABALHAMOS
   ================================================ */
.bloco-processo {
    background-color: var(--cor-secundaria);
    padding: 60px;
}

.bloco-titulo-claro {
    font-size: 1.6rem;
    font-weight: 500;
    color: #fff;
    max-width: 480px;
    line-height: 1.35;
    margin-bottom: 48px;
}

.etapas {
    display: flex;
    gap: 0;
    position: relative;
}

.etapas::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 6px;
    right: 6px;
    height: 1px;
    background: linear-gradient(to right, var(--cor-primaria), rgba(255, 123, 0, 0.15));
}

.etapa {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 48px;
    padding-right: 24px;
    position: relative;
}

.etapa::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--cor-primaria);
    border: 2px solid var(--cor-secundaria);
    box-shadow: 0 0 0 2px var(--cor-primaria);
}

.etapa-num {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--cor-primaria);
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.etapa-titulo {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.etapa-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

/* ================================================
   BLOCO 3 — ÁREAS DE ATUAÇÃO
   ================================================ */
.bloco-atuacao {
    background-color: #fff;
    padding: 60px;
}

.bloco-titulo-escuro {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--cor-secundaria);
    max-width: 520px;
    line-height: 1.35;
    margin-bottom: 36px;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.area-card {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: border-color 0.2s ease;
}

.area-card:hover {
    border-color: var(--cor-primaria);
}

.area-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background-color: rgba(255, 123, 0, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.area-icon img {
    width: 26px;
    height: 26px;
    filter: brightness(0) saturate(100%) invert(47%) sepia(99%) saturate(700%) hue-rotate(1deg) brightness(103%) contrast(104%);
}

.area-titulo {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cor-secundaria);
    margin-bottom: 6px;
}

.area-desc {
    font-size: 0.78rem;
    color: #627177;
    line-height: 1.6;
    margin-bottom: 10px;
}

.carrossel-btn {
    display: none;
}

.area-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--cor-primaria);
    border: 1px solid var(--cor-primaria);
    border-radius: 20px;
    padding: 3px 12px;
}

@media (max-width: 768px) {

    /* ===============================
    BLOCO NÚMEROS
    =============================== */
    .bloco-numeros {
        padding: 40px 20px;
    }

    .numeros-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .numero-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .numero-item:nth-child(even) {
        border-right: none;
    }

    .numero-item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .numero-valor {
        font-size: 2rem;
    }

    /* ===============================
    BLOCO PROCESSO
    =============================== */
    .bloco-processo {
        padding: 40px 20px;
    }

    .bloco-titulo-claro {
        font-size: 1.2rem;
    }

    .etapas {
        flex-direction: column;
    }

    .etapas::before {
        top: 6px;
        left: 5px;
        width: 1px;
        height: auto;
        background: linear-gradient(to bottom, var(--cor-primaria), rgba(255, 123, 0, 0.15));
    }

    .etapa {
        padding-left: 28px;
        padding-bottom: 28px;
    }

    .etapa::before {
        top: 2px;
        left: 0;
    }

    /* ===============================
    CARROSSEL ATUAÇÃO
    =============================== */

    .bloco-atuacao {
        padding: 40px 16px;
    }

    .bloco-titulo-escuro {
        font-size: 1.2rem;
        margin-bottom: 24px;
    }

    /* Shell flex: seta | track | seta */
    .carrossel-wrapper {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .areas-grid {
        flex: 1;
        display: flex;
        overflow: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
    }

    .areas-grid::-webkit-scrollbar {
        display: none;
    }

    .areas-grid .area-card {
        flex: 0 0 100%;
        scroll-snap-align: start;
        padding: 20px;
        gap: 14px;
    }

    /* Setas minimalistas fora do card */
    .carrossel-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: 28px;
        height: 28px;
        border: 1px solid rgba(0, 0, 0, 0.15);
        border-radius: 50%;
        background: #fff;
        cursor: pointer;
        padding: 0;
        position: static;
        transform: none;
        box-shadow: none;
        transition: border-color 0.2s, background 0.2s;
    }

    .carrossel-btn:hover {
        border-color: var(--cor-primaria);
        background: rgba(255, 123, 0, 0.06);
    }

    /* Ícones SVG inline nas setas — adicione via HTML:
       <button class="carrossel-btn prev">
         <svg width="12" height="12" viewBox="0 0 12 12" fill="none"
              stroke="currentColor" stroke-width="2"
              stroke-linecap="round" stroke-linejoin="round">
           <polyline points="8,2 4,6 8,10"/>
         </svg>
       </button>
    */

    .carrossel-btn svg {
        width: 12px;
        height: 12px;
        stroke: var(--cor-secundaria);
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    /* Ajustes internos do card */
    .area-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .area-icon img {
        width: 18px;
        height: 18px;
    }

    .area-titulo {
        font-size: 0.85rem;
    }

    .area-desc {
        font-size: 0.75rem;
    }

    .area-badge {
        font-size: 0.65rem;
    }

    /* Dots de navegação */
    .carrossel-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 14px;
    }

    .carrossel-dot {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.18);
        transition: width 0.2s, border-radius 0.2s, background 0.2s;
    }

    .carrossel-dot.active {
        width: 14px;
        border-radius: 3px;
        background: var(--cor-primaria);
    }
}