/* ==========================================================================
   Reusable content-CTA component (kp-content-cta block / [kp_content_cta] / presets)
   Prefix: kp-cta (desktop) + kp-cta-m (mobile). Generalised from the contact
   "voorlezen" banner. Depends on shared.css (.kp-desktop-only/.kp-mobile-only
   handle the viewport swap). Added to add_editor_style() for the block preview.
   ========================================================================== */

/* --- Desktop: text left (accent card), image overlapping right --- */
.kp-cta-wrap {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 60px 40px;
}
.kp-cta {
    position: relative;
}
.kp-cta__text {
    background: var(--color-accent);
    border-radius: var(--radius-card);
    padding: 48px 48px;
    padding-right: 62%;
    width: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
}
.kp-cta__text h2 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 32px;
    color: var(--color-text);
    margin: 0;
    line-height: 1.15;
}
.kp-cta__text p {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text);
    margin: 0;
}
.kp-cta__bullets {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text);
    text-align: left;
    margin: 0;
    padding: 0;
    list-style: none;
}
.kp-cta__bullets li {
    padding: 2px 0 2px 22px;
    position: relative;
}
.kp-cta__bullets li::before {
    content: "\2022";
    position: absolute;
    left: 4px;
}
.kp-cta__btn {
    background: #ff4000;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 20px;
    padding: 6px 30px;
    border-radius: var(--radius-btn);
    text-decoration: none;
    transition: transform 0.2s;
    margin-top: 10px;
}
.kp-cta__btn:hover { transform: scale(1.04); }
.kp-cta__image {
    position: absolute;
    left: 40%;
    right: 20px;
    top: 48%;
    transform: translateY(-50%) scale(0.8);
    transform-origin: center;
    border-radius: var(--radius-card);
    overflow: hidden;
    z-index: 2;
}
.kp-cta__image img {
    width: 100%;
    display: block;
}

/* --- Mobile: image on top, text + button below --- */
.kp-cta-m {
    padding: 24px 20px;
}
.kp-cta-m__card {
    background: var(--color-accent);
    border-radius: var(--radius-card);
    padding: 20px 20px 24px;
    text-align: center;
}
.kp-cta-m__photo {
    width: 95%;
    margin: -60px auto 16px;
    line-height: 0;
    position: relative;
    z-index: 1;
}
.kp-cta-m__photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}
.kp-cta-m__heading {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 22px;
    color: var(--color-text);
    line-height: 1.1;
    margin: 0 0 16px;
}
.kp-cta-m__sub {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.4;
    margin: 0 0 16px;
}
.kp-cta-m__bullets {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-text);
    text-align: left;
    margin: 0 0 16px;
    padding: 0 0 0 4px;
    list-style: none;
}
.kp-cta-m__bullets li {
    padding: 3px 0 3px 20px;
    position: relative;
}
.kp-cta-m__bullets li::before {
    content: "\2022";
    position: absolute;
    left: 2px;
}
.kp-cta-m__btn {
    display: inline-block;
    background: var(--color-black);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 18px;
    line-height: 1;
    padding: 6px 26px;
    border: none;
    border-radius: var(--radius-btn);
    text-decoration: none;
}

/* --- Tablet desktop tweak (mirrors the contact banner) --- */
@media (min-width: 768px) and (max-width: 1024px) {
    .kp-cta-wrap { padding: 0 32px 40px; }
    .kp-cta__text { width: 70%; padding: 36px 32px; padding-right: 22%; }
    .kp-cta__text h2 { font-size: 26px; }
    .kp-cta__image { right: 32px; width: 40%; }
}
