/**
 * Ikodak — S11 CTA-blok in de primaire huisstijlkleur.
 * Tekst #15130f op #b4a485 haalt een contrast van ruim 7:1.
 *
 * Opbouw: tekst links, fotocollage rechts (onder 1024px eronder). Alle
 * animaties hangen aan .is-animated uit ikodak-pipeline-base.js; de parallax
 * van de beelden zit in ikodak-pipeline-cta.js.
 */

.dcip-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(72px, 9vw, 136px);
    background: var(--dc-primary);
    color: var(--dcip-ink);
}

/* ------------------------------------------------------------------
   Achtergrond: traag verloop, fijne korrel en een daklijn die zich tekent
------------------------------------------------------------------ */
.dcip-cta__bg {
    position: absolute;
    inset: -40% -60%;
    z-index: -3;
    background:
        radial-gradient(40% 50% at 30% 40%, rgba(255, 255, 255, 0.34), transparent 70%),
        radial-gradient(35% 45% at 70% 65%, rgba(138, 122, 92, 0.55), transparent 70%);
    animation: dcip-cta-drift 10s ease-in-out infinite alternate;
}

.dcip-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: radial-gradient(rgba(var(--dcip-ink-rgb), 0.14) 1px, transparent 1.2px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(115deg, transparent 35%, #000 100%);
    mask-image: linear-gradient(115deg, transparent 35%, #000 100%);
    opacity: 0.6;
}

@keyframes dcip-cta-drift {
    from {
        transform: translate3d(-8%, -4%, 0) rotate(0deg);
    }

    to {
        transform: translate3d(8%, 4%, 0) rotate(6deg);
    }
}

.dcip-cta__roofline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    width: 100%;
    height: 45%;
    opacity: 0.22;
}

.dcip-cta__roofline path {
    fill: none;
    stroke: var(--dcip-ink);
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}

.dcip-js .dcip-cta__roofline[data-dc-reveal],
.dcip-js .dcip-cta__roofline[data-dc-reveal]:not(.is-animated) {
    opacity: 0.22;
    transform: none;
}

.dcip-js .dcip-cta__roofline path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 2.4s var(--dcip-ease);
}

.dcip-js .dcip-cta__roofline .dcip-cta__roofline-chimney {
    transition-duration: 900ms;
    transition-delay: 1.6s;
}

.dcip-js .dcip-cta__roofline.is-animated path {
    stroke-dashoffset: 0;
}

/* ------------------------------------------------------------------
   Layout
------------------------------------------------------------------ */
.dcip-cta__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(48px, 6vw, 88px);
    align-items: center;
}

.dcip-cta__text {
    display: grid;
    gap: 20px;
    justify-items: start;
}

.dcip-cta .dcip-eyebrow {
    color: var(--dcip-ink);
    --dcip-mark: var(--dcip-primary-ink);
}

/* ------------------------------------------------------------------
   Kop: woord voor woord omhoog
------------------------------------------------------------------ */
.dcip-cta__title {
    max-width: 16ch;
    font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.25rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    color: var(--dcip-ink) !important;
}

.dcip-cta__word {
    display: inline-block;
    overflow: hidden;
    padding-bottom: 0.08em;
    margin-bottom: -0.08em;
    vertical-align: top;
}

.dcip-cta__word > span {
    display: inline-block;
}

.dcip-js .dcip-cta__title[data-dc-reveal],
.dcip-js .dcip-cta__title[data-dc-reveal]:not(.is-animated) {
    opacity: 1;
    transform: none;
}

.dcip-js .dcip-cta__title .dcip-cta__word > span {
    transform: translate3d(0, 110%, 0);
    transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: calc(var(--i, 0) * 55ms);
}

.dcip-js .dcip-cta__title.is-animated .dcip-cta__word > span {
    transform: translate3d(0, 0, 0);
}

.dcip-cta__lead {
    max-width: 50ch;
    font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
    color: var(--dcip-ink);
}

/* ------------------------------------------------------------------
   Voordelen als chips
------------------------------------------------------------------ */
.dcip-cta__checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dcip-cta__checks li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.3;
}

.dcip-cta__check {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--dcip-ink);
    color: var(--dc-primary);
}

.dcip-cta__check .dcip-icon {
    width: 14px;
    height: 14px;
    stroke-width: 2.8;
}

/* ------------------------------------------------------------------
   Acties
------------------------------------------------------------------ */
.dcip-cta__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
    margin-top: 8px;
}

.dcip-cta .dcip-btn {
    position: relative;
    overflow: hidden;
    min-height: 60px;
    font-size: 1.0625rem;
}

/* Glans die over de knop strijkt */
.dcip-cta .dcip-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
    transform: translateX(-120%);
    pointer-events: none;
}

.dcip-cta__actions.is-animated .dcip-btn::after {
    animation: dcip-cta-shine 1.1s var(--dcip-ease) 900ms 1 both;
}

@keyframes dcip-cta-shine {
    to {
        transform: translateX(120%);
    }
}

@media (hover: hover) {
    .dcip-cta .dcip-btn:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 18px 36px -12px rgba(var(--dcip-ink-rgb), 0.55), 0 0 0 6px rgba(255, 255, 255, 0.35);
    }

    .dcip-cta .dcip-btn:hover::after {
        animation: dcip-cta-shine 900ms var(--dcip-ease) both;
    }
}

.dcip-cta__phone {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
}

.dcip-cta__phone-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 0 0 1.5px rgba(var(--dcip-ink-rgb), 0.18);
    transition: background-color 200ms ease-out, transform 200ms ease-out;
}

/* Rustige belring */
.dcip-cta__phone-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(var(--dcip-ink-rgb), 0.35);
    animation: dcip-cta-ring 2.8s ease-out infinite;
}

@keyframes dcip-cta-ring {
    0% {
        opacity: 0.9;
        transform: scale(1);
    }

    70%,
    100% {
        opacity: 0;
        transform: scale(1.6);
    }
}

.dcip-cta__phone-icon .dcip-icon {
    width: 20px;
    height: 20px;
}

.dcip-cta__phone-text {
    display: grid;
    line-height: 1.2;
}

.dcip-cta__phone-text small {
    font-size: 0.8125rem;
    font-weight: 500;
    opacity: 0.85;
}

.dcip-cta__phone-text strong {
    font-family: var(--dcip-font-head);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
    transition: background-size 300ms var(--dcip-ease);
}

@media (hover: hover) {
    .dcip-cta__phone:hover .dcip-cta__phone-icon {
        background: var(--dcip-ink);
        color: var(--dc-primary);
        transform: rotate(-12deg);
    }

    .dcip-cta__phone:hover .dcip-cta__phone-text strong {
        background-size: 100% 2px;
    }
}

/* ------------------------------------------------------------------
   Fotocollage
------------------------------------------------------------------ */
.dcip-cta__media {
    position: relative;
    padding: 0 12% 14% 0;
}

.dcip-cta__layer {
    will-change: transform;
}

.dcip-cta__layer--small {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 48%;
    z-index: 1;
}

.dcip-cta__frame {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: var(--dcip-radius-lg);
    background: var(--dcip-primary-deep);
    box-shadow: 0 40px 80px -36px rgba(var(--dcip-ink-rgb), 0.6);
}

.dcip-cta__frame--main {
    aspect-ratio: 4 / 5;
}

.dcip-cta__frame--small {
    aspect-ratio: 4 / 3;
    border: 6px solid var(--dc-primary);
    border-radius: calc(var(--dcip-radius) + 6px);
}

.dcip-cta .dcip-cta__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Langzaam inzoomen op het grote beeld */
.dcip-cta__frame--main.is-animated .dcip-cta__img {
    animation: dcip-cta-kenburns 16s ease-in-out 1.2s infinite alternate;
}

@keyframes dcip-cta-kenburns {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.08) translate3d(-1.5%, -1%, 0);
    }
}

/*
 * Beelden openen met een clip-path (groot van onder, klein van links). De
 * clip zit op de <img>, niet op de figure, om dezelfde reden als in het
 * verhaal-blok: anders komt de figure nooit "in beeld".
 */
.dcip-js .dcip-cta__frame[data-dc-reveal],
.dcip-js .dcip-cta__frame[data-dc-reveal]:not(.is-animated) {
    opacity: 1;
    transform: none;
}

.dcip-js .dcip-cta__frame[data-dc-reveal] .dcip-cta__img {
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1.1s var(--dcip-ease);
    transition-delay: var(--dcip-delay, 0ms);
}

.dcip-js .dcip-cta__frame--small[data-dc-reveal] .dcip-cta__img {
    clip-path: inset(0 100% 0 0);
}

.dcip-js .dcip-cta__frame[data-dc-reveal].is-animated .dcip-cta__img {
    clip-path: inset(0 0 0 0);
}

/* Zwevende badges */
.dcip-cta__float {
    position: absolute;
    z-index: 2;
    animation: dcip-cta-float 6s ease-in-out infinite;
}

.dcip-cta__float--badge {
    left: -14px;
    top: 14%;
}

.dcip-cta__float--pill {
    left: 8%;
    bottom: 3%;
    animation-delay: -3s;
}

@keyframes dcip-cta-float {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -10px, 0);
    }
}

.dcip-cta__badge {
    display: grid;
    gap: 2px;
    padding: 16px 20px;
    border-radius: 20px;
    background: var(--dcip-ink);
    color: #ffffff;
    box-shadow: var(--dcip-shadow);
}

.dcip-cta__badge strong {
    font-family: var(--dcip-font-head);
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--dc-primary);
}

.dcip-cta__badge span {
    font-size: 0.875rem;
}

.dcip-cta__pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 14px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--dcip-ink);
    font-family: var(--dcip-font-head);
    font-size: 0.9375rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--dcip-shadow);
}

.dcip-cta__dot {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2f9e5b;
    flex: none;
}

.dcip-cta__dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #2f9e5b;
    animation: dcip-cta-ring 2s ease-out infinite;
}

/* Badges komen iets schaal-achtig binnen in plaats van alleen omhoog */
.dcip-js .dcip-cta__badge[data-dc-reveal]:not(.is-animated),
.dcip-js .dcip-cta__pill[data-dc-reveal]:not(.is-animated) {
    transform: translate3d(0, 20px, 0) scale(0.9);
}

/* ------------------------------------------------------------------
   Responsief
------------------------------------------------------------------ */
@media (max-width: 639px) {
    .dcip-cta__roofline .dcip-cta__roofline-chimney {
        display: none;
    }

    .dcip-cta__actions,
    .dcip-cta .dcip-btn {
        width: 100%;
    }

    .dcip-cta .dcip-btn {
        justify-content: flex-start;
    }

    .dcip-cta__float--badge {
        left: -6px;
    }

    .dcip-cta__badge {
        padding: 12px 16px;
    }

    .dcip-cta__badge strong {
        font-size: 1.75rem;
    }

    .dcip-cta__pill {
        font-size: 0.8125rem;
    }
}

@media (max-width: 1023px) {
    .dcip-cta__media {
        width: min(100%, 560px);
        margin-inline: auto;
    }

    .dcip-cta__frame--main {
        aspect-ratio: 5 / 4;
    }
}

@media (min-width: 1024px) {
    .dcip-cta__inner {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    }

    .dcip-cta--text-only .dcip-cta__inner {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .dcip-cta__bg,
    .dcip-cta__float,
    .dcip-cta__img,
    .dcip-cta__dot::after,
    .dcip-cta__phone-icon::after,
    .dcip-cta .dcip-btn::after {
        animation: none !important;
    }

    .dcip-cta__layer {
        transform: none !important;
    }
}
