.hero-features {
    position: relative;
    z-index: 20;
    margin-top: -38px;
    padding-bottom: 40px;
}

.hero-features .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.feature-card {
    background: #FCFCFC;
    border-radius: 6px;
    padding: 24px;

    border: 1px solid #0000000D;

    min-height: 140px;
}

.feature-icon {
    padding: 12px;
    max-width: max-content;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 16px;

    border-radius: 6px;
    background: #FFF0E0;
}



.feature-card h3 {
    margin: 0 0 10px;

    font-family: 'Geist';
    font-weight: 700;
    font-style: Bold;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0px;
    vertical-align: middle;
    color: #242322;
    margin-bottom: 7px;
}

.feature-card p {
    margin: 0;

    font-family: 'Geist';
    font-weight: 400;
    font-size: 14px;
    line-height: 22.75px;
    letter-spacing: 0px;
    vertical-align: middle;
    color: #666361;
}

@media (max-width: 991px) {

    .hero-features {
        margin-top: -40px;
        padding-bottom: 50px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 767px) {

    .hero-features {
        margin-top: 30px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        min-height: auto;
    }

}





/*servicos home*/
.services-section {
    --card-border-radius: 8px;
    padding: 80px 0;
    background-color: #FCFCFC;
}

/* --- Cabeçalho --- */
.services-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}



.services-section .section-description {
    max-width: 470px;
    margin: 0 auto 30px auto;
}

/* --- Grid Otimizado (Mobile-First) --- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 576px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Componente: Card --- */
.service-card {
    background: #ffffff;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;

}

/* Efeito sutil ao passar o mouse sem quebrar o layout */
.service-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid #EC7E11;
}

.service-card:hover .service-thumb-wrapper img {
    transform: scale(1.05);

}

.service-card-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Proporção Aspect-Ratio fixa impede pulos de imagem enquanto carrega (CLS) */
.service-thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 370 / 175;
    background-color: #f5f5f5;
    /* Placeholder visual */
    overflow: hidden;
}

.service-thumb-wrapper img {
    width: 100%;
    height: 181px;
    object-fit: cover;
    transition: transform 0.2s ease;
    display: block;
}

/* Conteúdo interno do Card */
.service-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card-title {
    margin: 0 0 12px 0;
    font-family: 'Geist';
    font-weight: 700;
    font-size: 20px;
    line-height: 28px;
    letter-spacing: 0px;
    color: #111111;
}

.service-card-excerpt p {
    font-family: 'Geist';
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0px;
    margin: 0 0 20px 0;
    color: #737373
}

/* Botão/Link interno */
.service-btn {
    margin-top: auto;
    /* Empurra o botão sempre para o rodapé do card se os textos variarem */
    font-family: 'Nunito Sans';
    font-weight: 700;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #EC7E11;
    gap: 4px;
    transition: gap 0.2s ease;
    text-decoration: underline;
}

.service-card:hover .service-btn {
    gap: 10px;
    /* Animação leve usando apenas propriedades baratas de renderização (gap/transform) */
}

.service-btn svg {
    display: inline-block;
    vertical-align: middle;
}


/*portfolio*/

.portfolio-slider-section {
    padding: 80px 0;
    color: #ffffff;
    overflow: hidden;
    background: linear-gradient(0deg, var(--Color-Canvas-canvas-black, #242322), var(--Color-Canvas-canvas-black, #242322)),
        linear-gradient(90deg, rgba(0, 0, 0, 0.15) 28.3%, rgba(255, 255, 255, 0.15) 100%);

}

/* Estrutura Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 992px) {
    .portfolio-grid {
        grid-template-columns: minmax(320px, 1fr) 1.2fr;
        gap: 60px;
    }
}

/* --- CONTEÚDO (ESQUERDA) --- */
.portfolio-content {
    display: flex;
    flex-direction: column;
}

.portfolio-tag {
    color: #EDE6E1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 42.79%, rgba(235, 235, 235, 0.05) 54.81%);
    border: 1px solid #FFFFFF0D;
}


.portfolio-description {
    color: #EDE6E1;
    margin-top: 0;
    margin-bottom: 40px;
}



/* --- SLIDER ANTES E DEPOIS (DIREITA) --- */
.portfolio-visual {
    width: 100%;
}

.comparison-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 560 / 420;
    /* Mantém proporção perfeita eliminando CLS */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background-color: #141414;
}

.image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* Força a imagem do "Antes" a ser cortada horizontalmente */
.image-before {
    width: 50%;
    /* Estado inicial do corte */
    overflow: hidden;
    z-index: 2;
}

/* Força a imagem interna do antes a não encolher quando o wrapper encolhe */
.image-before img {
    width: 100%;
    max-width: none;
    height: 100%;
}

/* Badges de Status (Antes e Depois) */
.status-badge {
    position: absolute;
    top: 16px;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 3;

    font-family: 'Geist';
    font-weight: 700;
    font-size: 12px;
    line-height: 16px;
}

.badge-before {
    left: 16px;
    background-color: #FFFFFFCC;
    color: #111111;

}

.badge-after {
    right: 16px;
    background-color: #F97316;
    color: #ffffff;
}

/* O Input Invisível que recebe o Arrastar (Truque de performance máxima) */
.slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 5;
    margin: 0;
}

/* Linha e Alça Customizada */
.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    /* Inicializado no meio */
    width: 2px;
    height: 100%;
    z-index: 4;
    pointer-events: none;
    /* Deixa o clique passar para o input range */
    transform: translateX(-50%);
}

.slider-handle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #EC7E11;
    z-index: 2;
    /* A linha é desenhada por cima */
}

.handle-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 77px;
    background-color: #FFFFFF33;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    z-index: 1;
    /* O botão fica por trás da linha */
}

/*steps*/

/* --- Steps Section --- */
.steps-section {
    padding: 80px 0;
    background-color: #F8F8F8;
    /* Fundo claro sutil */
}

.steps-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

/* Card Individual */
.step-card {
    background: #FCFCFC;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    border: 1px solid #0000000D;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

/* Wrapper do Ícone e Badge */
.step-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px auto;
}

.step-icon {
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, #1A1A1A, #1A1A1A),
        linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(255, 255, 255, 0.2) 100%);

    /* Círculo escuro */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Badge Laranja com o Número */
.step-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #ec7e11;
    /* O laranja padrão do seu layout */

    font-family: 'Geist';
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    vertical-align: middle;
    color: #FFFFFF;

    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #ffffff;
}

/* Títulos e Descrições internos */
.step-card-title {
    font-family: 'Poppins';
    font-weight: 600;
    font-size: 20px;
    line-height: 150%;
    text-align: center;
    color: #111111;

    margin-bottom: 12px;
}

.step-card-description, .step-card-description a {
    font-family: 'Geist';
    font-weight: 400;
    font-size: 16px;
    line-height: 160%;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;
    max-width: 250px;
    color: #737373;
    margin: 0 auto;
}

/* Alinhamento do Botão */
.steps-action {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* Linha conectora opcional (Apenas para Desktop) */
@media (min-width: 992px) {
    .steps-grid::before {
        content: "";
        position: absolute;
        top: 75px;
        /* Alinhado ao meio dos círculos */
        left: 10%;
        right: 10%;
        height: 2px;
        background: #e5e7eb;
        z-index: 0;
    }

    .step-card {
        position: relative;
        z-index: 1;
    }
}