/* ==========================================================
   EF STORY CONTENT / ROWS - CSS ANTIGO SEPARADO
   Baseado no home2(8).css
   Bloco alvo: .ef-story-content / .ef-story-rows / .ef-story-row
   ========================================================== */

/* ==========================================================
   SECTION
   ========================================================== */

.ef-story-content {
    position: relative;
    background: #fff;
    padding: 96px 0 112px;
    overflow: hidden;
}

.ef-story-rows {
    display: grid;
    gap: 38px;
}

/* ==========================================================
   ROW / CARD
   ========================================================== */

.ef-story-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 48px;
    padding: 32px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}

.ef-story-row.is-reverse {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.ef-story-row.is-reverse .ef-story-row__media {
    order: 2;
}

.ef-story-row.is-reverse .ef-story-row__copy {
    order: 1;
}

.ef-story-row:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(var(--ef-gold-rgb), 0.4);
}

/* Linha premium dourada no hover */
.ef-story-row::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(120deg,
            transparent,
            rgba(var(--ef-gold-rgb), 0.6),
            transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.ef-story-row:hover::before {
    opacity: 1;
}

/* ==========================================================
   MEDIA / IMAGE
   ========================================================== */

.ef-story-row__media {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #000;
}

.ef-story-row__media img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 340px;
    object-fit: cover;
    transition:
        transform 0.6s ease,
        filter 0.6s ease;
}

.ef-story-row:hover .ef-story-row__media img {
    transform: scale(1.06);
    filter: brightness(1.05);
}

/* Brilho passando na imagem */
.ef-story-row__media::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.25),
            transparent);
    transform: skewX(-20deg);
    pointer-events: none;
    transition: none;
}

.ef-story-row:hover .ef-story-row__media::after {
    animation: ef-img-shine 1.2s ease forwards;
}

@keyframes ef-img-shine {
    0% {
        left: -120%;
    }

    100% {
        left: 130%;
    }
}

/* ==========================================================
   COPY / TEXT
   ========================================================== */

.ef-story-row__copy {
    position: relative;
    z-index: 2;
}

.ef-story-row__copy h2 {
    margin: 0 0 22px;
    color: #000;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: clamp(1.5rem, 2vw, 4.4rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.045em;
    transition:
        transform 0.3s ease,
        color 0.3s ease;
}

.ef-story-row:hover .ef-story-row__copy h2 {
    transform: translateX(6px);
    color: #000;
}

.ef-story-row__content {
    color: rgba(0, 0, 0, 0.72);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 1.05rem;
    line-height: 1.82;
    transition: color 0.3s ease;
}

.ef-story-row:hover .ef-story-row__content {
    color: var(--ef-color-text);
}

.ef-story-row__content p {
    margin: 0;
}

.ef-story-row__content strong,
.ef-story-row__content b {
    color: #000;
    font-weight: 800;
}

/* ==========================================================
   CHECK ITEMS
   ========================================================== */

.ef-story-row__items {
    display: grid;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ef-story-row__items li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 14px;
    align-items: flex-start;
    margin: 0;
    padding: 0;
}

.ef-story-row__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--ef-gold-base);
    flex: 0 0 auto;
}

.ef-story-row__check svg {
    display: block;
    width: 34px;
    height: 34px;
}

.ef-story-row__items h3 {
    margin: 0 0 6px;
    color: #000;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1.22;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.ef-story-row__items p {
    margin: 0;
    color: rgba(0, 0, 0, 0.68);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 0.98rem;
    line-height: 1.65;
}

/* ==========================================================
   ACTION / CTA
   ========================================================== */

.ef-story-content__action {
    display: flex;
    justify-content: center;
    margin-top: 54px;
}

.ef-story-content__action .ef-story-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 32px;
    border: 0;
    border-radius: 999px;
    background: var(--gold-grad-rich);
    background-size: 200% auto;
    color: #000 !important;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-position 0.35s ease;
}

.ef-story-content__action .ef-story-hero__button:hover,
.ef-story-content__action .ef-story-hero__button:focus-visible {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.22);
    outline: none;
}

/* ==========================================================
   RESPONSIVO
   ========================================================== */

@media (max-width: 1180px) {
    .ef-story-row {
        gap: 32px;
    }
}

@media (max-width: 992px) {

    .ef-story-row,
    .ef-story-row.is-reverse {
        grid-template-columns: 1fr;
    }

    .ef-story-row.is-reverse .ef-story-row__media,
    .ef-story-row.is-reverse .ef-story-row__copy {
        order: initial;
    }

    .ef-story-row__media img {
        min-height: 280px;
    }
}

@media (max-width: 767px) {
    .ef-story-content {
        padding: 72px 0 88px;
    }

    .ef-story-content .ef-home-shell {
        width: min(328px, 520px);
    }

    .ef-story-rows {
        gap: 28px;
    }

    .ef-story-row {
        padding: 18px;
        gap: 24px;
        border-radius: 16px;
    }

    .ef-story-row::before {
        border-radius: 16px;
    }

    .ef-story-row__media {
        border-radius: 12px;
    }

    .ef-story-row__media img {
        min-height: 230px;
    }

    .ef-story-row__copy {
        padding-left: 2px;
        padding-right: 2px;
    }

    .ef-story-row__copy h2 {
        margin-bottom: 16px;
        font-size: clamp(0.75rem, 7vw, 1.20rem);
    }

    .ef-story-row:hover .ef-story-row__copy h2 {
        transform: none;
    }

    .ef-story-row__content {
        font-size: 1rem;
        line-height: 1.72;
    }

    .ef-story-row__items {
        gap: 16px;
    }

    .ef-story-row__items li {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 12px;
    }

    .ef-story-row__check,
    .ef-story-row__check svg {
        width: 30px;
        height: 30px;
    }

    .ef-story-row__items h3 {
        font-size: 0.95rem;
    }

    .ef-story-row__items p {
        font-size: 0.92rem;
    }

    .ef-story-content__action {
        margin-top: 38px;
    }

    .ef-story-content__action .ef-story-hero__button {
        width: 100%;
        max-width: 310px;
    }
}

@media (max-width: 480px) {
    .ef-story-row {
        padding: 14px;
    }

    .ef-story-row__media img {
        min-height: 205px;
    }
}
