/* ==========================================================================
   WESTORX Editorial Edits Section — Premium Curated Collections
   ========================================================================== */

.section-edits {
    padding: 100px 0 60px;
    background: var(--color-white);
    position: relative;
    overflow: hidden;
}

/* ── Section header ─────────────────────────────────────────────────────── */
.edits-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.edits-eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin: 0 0 16px 0;
    display: inline-flex;
    align-items: center;
    gap: 14px;
}
.edits-eyebrow::before,
.edits-eyebrow::after {
    content: '';
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--color-accent);
}

.edits-title {
    font-family: var(--font-secondary);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 400;
    color: var(--color-black);
    line-height: 1.05;
    margin: 0 0 20px 0;
    letter-spacing: -0.01em;
}
.edits-title em {
    font-style: italic;
    color: var(--color-accent);
}

.edits-sub {
    font-size: 1rem;
    line-height: 1.65;
    color: #4a4a4a;
    margin: 0;
    font-weight: 300;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Edit row (alternating layout) ──────────────────────────────────────── */
.edit-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
    min-height: 600px;
}
.edit-row:last-child {
    margin-bottom: 0;
}

/* ── Visual side ────────────────────────────────────────────────────────── */
.edit-visual {
    position: relative;
    display: block;
    height: 600px;
    overflow: hidden;
    background: var(--color-gray-1);
    text-decoration: none;
}

.edit-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 1.2s cubic-bezier(.2,.7,.3,1);
}

/* Fallback gradient images (premium look without real photos) */
.edit-image--sneakers {
    background-color: #0a0a0a;
    background-image:
        linear-gradient(135deg, rgba(200, 169, 110, 0.35) 0%, rgba(10, 10, 10, 0) 50%),
        linear-gradient(180deg, #1a1a1a 0%, #050505 100%);
}
.edit-image--lifestyle {
    background-color: #0a0a0a;
    background-image:
        linear-gradient(135deg, rgba(120, 80, 60, 0.30) 0%, rgba(10, 10, 10, 0) 50%),
        linear-gradient(180deg, #161616 0%, #050505 100%);
}
.edit-image--newseason {
    background-color: #0a0a0a;
    background-image:
        linear-gradient(135deg, rgba(200, 169, 110, 0.40) 0%, rgba(10, 10, 10, 0) 50%),
        linear-gradient(180deg, #1c1c1c 0%, #080808 100%);
}

/* Hover: subtle zoom */
.edit-visual:hover .edit-image {
    transform: scale(1.05);
}

.edit-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.15) 100%);
    pointer-events: none;
}

/* ── Content side ───────────────────────────────────────────────────────── */
.edit-content {
    padding: 0 40px;
}

.edit-content-inner {
    max-width: 460px;
}

.edit-number {
    font-family: var(--font-primary);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin: 0 0 24px 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.edit-number::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background: var(--color-accent);
}

.edit-heading {
    font-family: var(--font-secondary);
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 400;
    color: var(--color-black);
    line-height: 1;
    margin: 0 0 24px 0;
    letter-spacing: -0.01em;
}
.edit-heading em {
    font-style: italic;
    color: var(--color-accent);
}

.edit-text {
    font-size: 1.02rem;
    line-height: 1.7;
    color: #4a4a4a;
    margin: 0 0 36px 0;
    font-weight: 300;
}

.edit-cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--color-black);
    font-family: var(--font-primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0 0 10px 0;
    position: relative;
    transition: gap var(--transition), color var(--transition);
}
.edit-cta::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 1px;
    background: var(--color-accent);
    transition: width var(--transition), background var(--transition);
}
.edit-cta svg {
    transition: transform var(--transition);
}
.edit-cta:hover {
    color: var(--color-accent);
    gap: 18px;
}
.edit-cta:hover::after {
    width: 100%;
}
.edit-cta:hover svg {
    transform: translateX(4px);
}

/* ── Alternating layout: row--right reverses ────────────────────────────── */
.edit-row--right .edit-visual {
    order: 2;
}
.edit-row--right .edit-content {
    order: 1;
}

/* ── Reveal animations on scroll ────────────────────────────────────────── */
.edit-row {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(.2,.7,.3,1), transform 1s cubic-bezier(.2,.7,.3,1);
}
.edit-row.is-in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.edit-row .edit-visual {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .9s cubic-bezier(.2,.7,.3,1) .2s, transform .9s cubic-bezier(.2,.7,.3,1) .2s;
}
.edit-row.is-in-view .edit-visual {
    opacity: 1;
    transform: translateY(0);
}
.edit-row .edit-content-inner > * {
    opacity: 0;
    transform: translateY(20px);
}
.edit-row.is-in-view .edit-content-inner .edit-number {
    animation: edit-fade-up .9s cubic-bezier(.2,.7,.3,1) .35s forwards;
}
.edit-row.is-in-view .edit-content-inner .edit-heading {
    animation: edit-fade-up .9s cubic-bezier(.2,.7,.3,1) .5s forwards;
}
.edit-row.is-in-view .edit-content-inner .edit-text {
    animation: edit-fade-up .9s cubic-bezier(.2,.7,.3,1) .65s forwards;
}
.edit-row.is-in-view .edit-content-inner .edit-cta {
    animation: edit-fade-up .9s cubic-bezier(.2,.7,.3,1) .8s forwards;
}

@keyframes edit-fade-up {
    to { opacity: 1; transform: translateY(0); }
}

/* ── Tablet ─────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .edit-row {
        gap: 50px;
        margin-bottom: 90px;
        min-height: 500px;
    }
    .edit-visual {
        height: 500px;
    }
    .edit-content {
        padding: 0 20px;
    }
}

/* ── Mobile (stack vertical) ────────────────────────────────────────────── */
@media (max-width: 767px) {
    .section-edits {
        padding: 60px 0 30px;
    }

    .edits-header {
        margin-bottom: 50px;
        padding: 0 20px;
    }

    .edits-eyebrow {
        font-size: 0.6rem;
        gap: 10px;
    }
    .edits-eyebrow::before,
    .edits-eyebrow::after {
        width: 24px;
    }
    .edits-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 14px;
    }
    .edits-sub {
        font-size: 0.92rem;
        padding: 0;
    }

    .edit-row,
    .edit-row--right {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 60px;
        min-height: 0;
    }

    /* On mobile, image always FIRST */
    .edit-row--right .edit-visual {
        order: 1;
    }
    .edit-row--right .edit-content {
        order: 2;
    }

    .edit-visual {
        height: 380px;
        width: 100%;
    }

    .edit-content {
        padding: 0 20px;
    }

    .edit-number {
        font-size: 0.62rem;
        margin-bottom: 16px;
        gap: 10px;
    }
    .edit-number::before {
        width: 28px;
    }

    .edit-heading {
        font-size: clamp(2rem, 9vw, 2.6rem);
        margin-bottom: 16px;
    }

    .edit-text {
        font-size: 0.92rem;
        line-height: 1.6;
        margin-bottom: 26px;
    }

    .edit-cta {
        font-size: 0.65rem;
        letter-spacing: 0.18em;
        gap: 10px;
    }
    .edit-cta svg {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .edit-visual {
        height: 320px;
    }
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .edit-row,
    .edit-row .edit-visual,
    .edit-row .edit-content-inner > * {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}
