/**
 * ==========================================================
 * Editorial Services
 * România Feng Shui
 * OUT LOUD Framework
 * ==========================================================
 */

.services-editorial {
    padding: 140px 0;
    background: var(--color-background);
}

/* ==========================================================
   MAIN GRID
   ========================================================== */

.services-editorial__grid {
    display: grid;
    grid-template-columns: minmax(0, 620px) minmax(420px, 1fr);
    align-items: start;
    gap: 90px;
}

/* ==========================================================
   GALLERY
   ========================================================== */

.services-editorial__gallery {
    position: sticky;
    top: 110px;
    overflow: hidden;
    border-radius: 22px;
    background: var(--color-surface);
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.06);
}

.services-editorial__gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition:
        transform 900ms cubic-bezier(0.22, 0.61, 0.36, 1),
        filter 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.services-editorial__gallery:hover img {
    transform: scale(1.02);
}

/* ==========================================================
   CONTENT
   ========================================================== */

.services-editorial__content {
    width: 100%;
    max-width: 820px;
}

.services-editorial__eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--color-signature-red);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.4;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.services-editorial h2 {
    max-width: 760px;
    margin: 0;
    color: var(--color-charcoal);
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 4.8rem);
    font-weight: var(--font-weight-semibold);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.services-editorial__lead {
    max-width: 640px;
    margin-top: 30px;
    margin-bottom: 92px;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 1.12rem;
    line-height: 1.85;
}

/* ==========================================================
   SERVICE LIST
   ========================================================== */

.services-editorial__list {
    display: flex;
    flex-direction: column;
}

/* ==========================================================
   SERVICE ITEM
   ========================================================== */

.service-item {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 180px;
    align-items: center;
    gap: 34px;
    padding: 54px 0;
    border-top: 1px solid rgba(25, 25, 23, 0.08);
    transition:
        transform var(--transition-base),
        border-color var(--transition-base);
}

.service-item:last-child {
    border-bottom: 1px solid rgba(25, 25, 23, 0.08);
}

.service-item:hover {
    border-color: rgba(242, 31, 36, 0.16);
    transform: translateX(4px);
}

/* ==========================================================
   SERVICE NUMBER
   ========================================================== */

.service-item__number {
    align-self: start;
    color: rgba(242, 31, 36, 0.06);
    font-family: var(--font-body);
    font-size: 3.65rem;
    font-weight: var(--font-weight-extrabold);
    line-height: 1;
    letter-spacing: -0.065em;
}

/* ==========================================================
   SERVICE BODY
   ========================================================== */

.service-item__body {
    min-width: 0;
}

.service-item__body h3 {
    margin: 0 0 14px;
    color: var(--color-charcoal);
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.service-item__body p {
    max-width: 560px;
    margin: 0;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.82;
}

/* ==========================================================
   SERVICE LINK
   ========================================================== */

.service-item__link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-width: 0;
    color: var(--color-charcoal);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: var(--font-weight-semibold);
    line-height: 1.45;
    white-space: normal;
    transition:
        color var(--transition-base),
        transform var(--transition-base);
}

.service-item__link span {
    max-width: 130px;
}

.service-item__link svg {
    flex: 0 0 21px;
    width: 21px;
    height: 21px;
    transition: transform var(--transition-base);
}

.service-item:hover .service-item__link {
    color: var(--color-signature-red);
}

.service-item:hover .service-item__link svg {
    transform: translateX(5px);
}

/* ==========================================================
   LARGE DESKTOP
   ========================================================== */

@media (min-width: 1440px) {
    .services-editorial__grid {
        grid-template-columns: minmax(0, 650px) minmax(440px, 1fr);
        gap: 100px;
    }
}

/* ==========================================================
   MEDIUM DESKTOP
   ========================================================== */

@media (max-width: 1240px) {
    .services-editorial__grid {
        grid-template-columns: minmax(0, 540px) minmax(0, 1fr);
        gap: 70px;
    }

    .service-item {
        grid-template-columns: 62px minmax(0, 1fr) 150px;
        gap: 28px;
    }

    .service-item__link span {
        max-width: 110px;
    }
}

/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 992px) {
    .services-editorial {
        padding: 110px 0;
    }

    .services-editorial__grid {
        grid-template-columns: 1fr;
        gap: 64px;
    }

    .services-editorial__gallery {
        position: relative;
        top: auto;
        width: min(100%, 760px);
        margin-inline: auto;
    }

    .services-editorial__content {
        max-width: none;
    }

    .services-editorial__lead {
        margin-bottom: 64px;
    }

    .service-item {
        grid-template-columns: 64px minmax(0, 1fr) 160px;
        padding: 46px 0;
    }
}

/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 768px) {
    .services-editorial {
        padding: 90px 0;
    }

    .services-editorial__grid {
        gap: 50px;
    }

    .services-editorial h2 {
        font-size: clamp(2.5rem, 11vw, 3.3rem);
        line-height: 0.98;
    }

    .services-editorial__lead {
        margin-top: 24px;
        margin-bottom: 46px;
        font-size: 1rem;
        line-height: 1.75;
    }

    .service-item {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 40px 0;
    }

    .service-item:hover {
        transform: none;
    }

    .service-item__number {
        font-size: 3rem;
    }

    .service-item__body h3 {
        font-size: 1.9rem;
    }

    .service-item__link {
        width: fit-content;
        margin-top: 4px;
    }

    .service-item__link span {
        max-width: none;
    }
}

/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 480px) {
    .services-editorial {
        padding: 78px 0;
    }

    .services-editorial__gallery {
        border-radius: 18px;
    }

    .services-editorial__eyebrow {
        font-size: 0.7rem;
        letter-spacing: 0.24em;
    }

    .services-editorial h2 {
        font-size: 2.35rem;
    }

    .service-item {
        padding: 34px 0;
    }

    .service-item__number {
        font-size: 2.65rem;
    }

    .service-item__body h3 {
        font-size: 1.65rem;
    }

    .service-item__body p {
        font-size: 0.95rem;
    }
}

/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
    .services-editorial__gallery img,
    .service-item,
    .service-item__link,
    .service-item__link svg {
        transition: none;
    }

    .services-editorial__gallery:hover img,
    .service-item:hover,
    .service-item:hover .service-item__link svg {
        transform: none;
    }
}