/* ========================================
   REFERENCE HERO / INTRO
======================================== */

.ef-reference-intro {
    background: #000;
    color: #fff;
    padding: 96px 0 86px;
}


.ef-reference-intro .ef-home-shell {
    margin: 0 auto;

    background-color: var(--bg);
    color: #FFFFFF;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.ef-reference-heading {
    margin: 0 auto;
    text-align: center;
}

.hero-empresafora__title-line--gold {
    margin-top: 6px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ef-reference-title {
    text-transform: uppercase;
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: bolder;
    margin-bottom: 32px;
    line-height: 1.2;
}

.ef-reference-heading__description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    /* Adjusted to match original description color */
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 300;
}

.ef-reference-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 48px;
    padding: 10px 0;
}

/* ========================================
   CARD + NUMBER (FINAL REFINED)
======================================== */

.ef-reference-step-card {
    position: relative;
    min-height: 255px;
    padding: 10px 26px 10px;
    border-radius: 20px;

    background: linear-gradient(180deg, #0d0d0d, #020202);

    border: 1px solid rgb(39 39 42);
    /* Matching original feature-card border */

    box-shadow:
        inset 0 0 0 1px rgba(255, 214, 112, 0.08),
        0 8px 30px rgba(0, 0, 0, 0.28);
    /* Matching original feature-card box-shadow */

    overflow: hidden;
    transition: all 0.35s ease;
}

/* subtle glow */
.ef-reference-step-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right,
            rgba(224, 184, 74, 0.10),
            transparent 65%);
    opacity: 0;
    transition: 0.4s;
}

.ef-reference-step-card:hover::after {
    opacity: 1;
}

/* refined number */
.ef-reference-step-card::before {
    content: attr(data-step);
    position: absolute;
    right: 18px;
    bottom: 10px;

    font-size: clamp(5rem, 7vw, 7rem);
    font-weight: 900;
    line-height: 0.8;

    color: rgba(224, 184, 74, 0.09);

    pointer-events: none;
    transform: translateY(4px);
    transition: all 0.35s ease;
}

/* slight variation for visual flow */
.ef-reference-step-card:nth-child(odd)::before {
    transform: translateY(6px);
}

.ef-reference-step-card:nth-child(even)::before {
    transform: translateY(2px);
}

/* hover */
.ef-reference-step-card:hover {
    transform: translateY(-4px);
    /* Adjusted to match original hover effect */
    border-color: transparent;
    /* Matching original hover effect */
    box-shadow: 0 0 25px rgba(225, 172, 65, 0.2);
    /* Matching original hover effect */
}

.ef-reference-step-card:hover::before {
    color: rgba(249, 242, 149, 0.12);
    /* Adjusted to match original hover effect */
    transform: scale(1.05);
}

/* keep content above */
.ef-reference-step-card__icon,
.ef-reference-step-card h2,
.ef-reference-step-card p {
    position: relative;
    z-index: 2;
}

.ef-reference-step-card__icon {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
}

.ef-reference-intro__action {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 45px;
    margin-bottom: 15px;
}

.ef-reference-step-card__icon svg {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
    fill: var(--ef-gold);
    stroke: var(--ef-gold);
    color: var(--ef-gold);
    stroke-width: 2px;
}

/* text */
.ef-reference-step-card p {
    /* Original has text-custom-grey which is #F0F0F0 */
    color: #f0f0f0;
    /* Adjusted to match original text color */
}

/* responsive */
@media (max-width: 640px) {
    .ef-reference-step-card::before {
        font-size: 4.8rem;
        /* Adjusted to match original mobile font-size */
    }
}


/* ========================================
   FIX MOBILE - REFERENCE STEPS GRID
======================================== */

.ef-reference-steps {
    width: 100%;
}

.ef-reference-step-card {
    min-width: 0;
}

.ef-reference-step-card h2,
.ef-reference-step-card p {
    overflow-wrap: anywhere;
    word-break: normal;
}

@media (max-width: 980px) {
    .ef-reference-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .ef-reference-intro {
        padding: 72px 0 64px;
    }

    .ef-reference-intro .ef-home-shell {

        overflow-x: visible;
    }

    .ef-reference-steps {
        grid-template-columns: 1fr !important;
        gap: 18px;
        margin-top: 42px;
        padding: 0;
        width: 100%;
    }

    .ef-reference-step-card {
        min-height: auto;
        padding: 28px 24px 34px;
        border-radius: 22px;
    }

    .ef-reference-step-card__icon {
        width: 48px;
        height: 48px;
        margin-bottom: 14px;
    }

    .ef-reference-step-card__icon svg {
        width: 40px;
        height: 40px;
    }

    .ef-reference-step-card h2 {
        margin: 0 0 18px;
        font-size: clamp(1.45rem, 7vw, 2rem);
        line-height: 1.18;
    }

    .ef-reference-step-card p {
        margin: 0;
        font-size: 1rem;
        line-height: 1.65;
    }

    .ef-reference-step-card::before {
        right: 16px;
        bottom: 12px;
        font-size: 4.8rem;
    }
}