.services-section {
    width: 100%;
    max-width: 1248px;
    margin: 0 auto;
    padding: 100px 24px;
}

.services-section .section-header {
    margin-bottom: 48px;
    text-align: left;
}

.services-section .section-title {
    font-family: var(--font-title);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: #FFF;
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.services-section .section-title em {
    display: inline-block;
    margin-top: 8px;
    font-style: normal;
    color: var(--cor-primaria, #E31B23);
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: #111;
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--cor-borda, rgba(255, 255, 255, 0.1));
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(227, 27, 35, 0.15);
    border-color: var(--cor-primaria, #E31B23);
}

.card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
    color: var(--cor-primaria, #E31B23);
    background: rgba(227, 27, 35, 0.1);
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.card-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    color: #FFF;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-desc {
    font-size: 15px;
    color: var(--cor-texto-secundario, #A0A0A0);
    line-height: 1.6;
    margin-bottom: 24px;
    flex: 1;
}

.service-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(227, 27, 35, 0.1);
    color: #E31B23;
    border: 1px solid rgba(227, 27, 35, 0.3);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: auto;
}

.service-card-btn:hover {
    background: var(--cor-primaria, #E31B23);
    color: #FFFFFF;
    border-color: var(--cor-primaria, #E31B23);
    box-shadow: 0 8px 24px rgba(227, 27, 35, 0.35);
    transform: translateY(-2px);
}

.service-card-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s ease;
}

.service-card-btn:hover svg {
    transform: translateX(3px);
}

.card-image {
    width: calc(100% + 64px);
    max-width: none;
    margin-left: -32px;
    height: 190px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.service-card:hover .card-image {
    transform: scale(1.06);
}

@media (max-width: 768px) {
    .services-section .section-header {
        text-align: center !important;
        margin-bottom: 36px;
    }
    .services-section .section-title {
        text-align: center !important;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .service-card {
        padding: 28px !important;
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .service-card {
        padding: 24px !important;
    }
    .services-section {
        padding: 60px 16px;
    }
}

/* =============================================
   COMO TRABALHAMOS — Seletores com ID para
   máxima especificidade e zero conflito
   ============================================= */

#como-funciona {
    padding: 100px 0;
    background: #000;
    overflow: visible;
}

#como-funciona .how-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

#como-funciona .how-header {
    text-align: center;
    margin-bottom: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#como-funciona .how-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(227, 27, 35, 0.1);
    border: 1px solid rgba(227, 27, 35, 0.3);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #E31B23;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

#como-funciona .how-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: #FFF;
    line-height: 1.15;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
    text-align: center;
}

#como-funciona .how-header h2 em {
    font-style: normal;
    color: #E31B23;
}

#como-funciona .how-header > p {
    font-size: 16px;
    color: var(--cor-texto-secundario, #E2E8F0);
    max-width: 520px;
    margin: 0;
    line-height: 1.6;
    text-align: center;
}

#como-funciona .how-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    position: relative;
}

#como-funciona .how-progress-line {
    position: absolute;
    top: 39px;
    left: calc(10% + 20px);
    right: calc(10% + 20px);
    height: 2px;
    background: linear-gradient(90deg, #E31B23 0%, rgba(227, 27, 35, 0.12) 100%);
    z-index: 0;
    pointer-events: none;
}

#como-funciona .how-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    gap: 0;
}

#como-funciona .how-step-icon {
    width: 80px;
    height: 80px;
    background: #111;
    border: 2px solid rgba(227, 27, 35, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E31B23;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: 0 0 0 6px rgba(227, 27, 35, 0.06);
    flex-shrink: 0;
}

#como-funciona .how-step-icon svg {
    width: 28px;
    height: 28px;
    display: block;
    pointer-events: none;
}

#como-funciona .how-step:hover .how-step-icon {
    background: #E31B23;
    border-color: #E31B23;
    color: #FFF;
    box-shadow: 0 0 0 8px rgba(227, 27, 35, 0.12), 0 8px 28px rgba(227, 27, 35, 0.4);
    transform: translateY(-5px);
}

#como-funciona .how-step-number {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #E31B23;
    letter-spacing: 0.12em;
    margin: 14px 0 8px;
    opacity: 0.65;
    position: static;
    background: none;
    font-family: inherit;
}

#como-funciona .how-step-body {
    padding: 0 4px;
}

#como-funciona .how-step-body h3 {
    font-size: 14px;
    font-weight: 700;
    color: #FFF;
    margin-bottom: 8px;
    line-height: 1.35;
}

#como-funciona .how-step-body p {
    font-size: 13px;
    color: var(--cor-texto-secundario, #E2E8F0);
    line-height: 1.6;
    margin: 0;
}

/* Responsivo */
@media (max-width: 992px) {
    #como-funciona .how-steps {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 32px;
    }
    #como-funciona .how-progress-line { display: none; }
}

@media (max-width: 640px) {
    #como-funciona .how-steps {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
    #como-funciona { padding: 60px 0; }
}

@media (max-width: 420px) {
    #como-funciona .how-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
