/* ============================================================
   ZEM Landing Pop Widget
   ============================================================ */

.elementor-widget-zem_landing_pop {
    width: 100%;
    height: auto;
}

/* ── Grid container ──────────────────────────────────────── */
.zem-lp {
    display: grid;
    grid-template-columns: repeat(var(--zem-lp-cols, 3), 1fr);
    width: 100%;
}

/* ── Each card (anchor when a popup is set, article otherwise) ── */
.zem-lp__card {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 520px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    cursor: default;
}

a.zem-lp__card {
    cursor: pointer;
}

/* Background layer — the outer element is moved by JS on scroll (parallax,
   no transition so it tracks the scroll position directly); the inner
   image bleeds past the top/bottom edges so that movement never exposes
   empty space, and handles the hover-zoom with its own transition. */
.zem-lp__bg {
    --zem-lp-parallax-y: 0px;
    position: absolute;
    inset: 0;
    transform: translateY(var(--zem-lp-parallax-y));
    z-index: 0;
}

.zem-lp__bg-image {
    position: absolute;
    top: -30px;
    right: 0;
    bottom: -30px;
    left: 0;
    background-size: cover;
    background-repeat: no-repeat;
    transition: transform 0.6s ease;
    will-change: transform;
}

a.zem-lp__card:hover .zem-lp__bg-image {
    transform: scale(1.08);
}

/* Dark overlay per-card (opacity set inline) */
.zem-lp__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ── Card content ────────────────────────────────────────── */
.zem-lp__content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 50px;
    box-sizing: border-box;
    text-align: center;
    gap: 15px;
    color: #ffffff;
}

/* Entrance animation: title, text and link fade/slide in once the card
   scrolls into view (".is-visible" is added by landing-pop.js). Each
   element has its own transition-delay so they arrive staggered.
   Only hidden once ".zem-lp--js" confirms the script is running, so
   content stays visible if JS fails to load. */
.zem-lp--js .zem-lp__title,
.zem-lp--js .zem-lp__text,
.zem-lp--js .zem-lp__link {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.zem-lp__card.is-visible .zem-lp__title,
.zem-lp__card.is-visible .zem-lp__text,
.zem-lp__card.is-visible .zem-lp__link {
    opacity: 1;
    transform: translateY(0);
}

.zem-lp__title { transition-delay: 0s; }
.zem-lp__text { transition-delay: 0.12s; }
.zem-lp__link { transition-delay: 0.24s; }

/* Title */
.zem-lp__title {
    font-family: "Lato", sans-serif;
    font-size: 32px;
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: 0;
    margin: 0;
    color: #ffffff;
}

/* Text */
.zem-lp__text {
    font-family: "Lato", sans-serif;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.4;
    margin: 0;
    color: #ffffff;
}

/* ── Link + arrow ────────────────────────────────────────── */
.zem-lp__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-family: "Lato", sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
}

.zem-lp__arrow {
    display: inline-flex;
    align-items: center;
    color: inherit;
    transition: transform 0.25s ease;
}

.zem-lp__arrow svg {
    display: block;
}

a.zem-lp__card:hover .zem-lp__arrow {
    transform: translateX(4px);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .zem-lp__content {
        gap: 12px;
    }
    .zem-lp__title {
        font-size: 26px;
    }
    .zem-lp__text {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .zem-lp {
        grid-template-columns: 1fr;
    }
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .zem-lp__bg,
    .zem-lp__bg-image,
    .zem-lp__arrow,
    .zem-lp__title,
    .zem-lp__text,
    .zem-lp__link {
        transition: none !important;
        transform: none !important;
    }

    .zem-lp__title,
    .zem-lp__text,
    .zem-lp__link {
        opacity: 1;
    }
}
