/**
 * Ikodak — hero van de subpagina's.
 */

.dcip-phero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: 62vh;
    min-height: 62svh;
    padding-top: 180px;
    padding-bottom: clamp(48px, 7vw, 96px);
    overflow: hidden;
    color: #ffffff;
    background: var(--dcip-ink);
}

.dcip-phero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

/* Dubbele klasse: Elementor zet anders height: auto op het beeld, waardoor het
   een hogere hero (bijvoorbeeld met formulier) niet meer vult. */
.dcip-phero .dcip-phero__img {
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
}

.dcip-js .dcip-phero__img {
    animation: dcip-phero-zoom 1.2s cubic-bezier(0.2, 0.6, 0.2, 1) both;
}

@keyframes dcip-phero-zoom {
    from {
        transform: scale(1.06);
    }

    to {
        transform: scale(1);
    }
}

.dcip-phero__shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(21, 19, 15, 0.8) 0%, rgba(21, 19, 15, 0.35) 45%, rgba(21, 19, 15, 0.85) 100%),
        linear-gradient(90deg, rgba(21, 19, 15, 0.6) 0%, rgba(21, 19, 15, 0) 70%);
}

.dcip-phero__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(36px, 5vw, 64px);
}

.dcip-phero__text {
    display: grid;
    justify-items: start;
    align-content: end;
    gap: 18px;
}

/* Met contactformulier: tekst links, formulier rechts. */
.dcip-phero__form {
    width: 100%;
    color: var(--dcip-ink);
}

.dcip-phero .dcip-phero__form {
    gap: 14px;
    padding: clamp(22px, 3vw, 36px);
}

.dcip-phero__form textarea.dcip-field__input {
    height: 120px;
    min-height: 0;
}

@media (min-width: 1024px) {
    .dcip-phero--form .dcip-phero__content {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: end;
    }

    /* Naam en telefoon naast elkaar, zodat de hero niet onnodig hoog wordt. */
    .dcip-phero__form .dcip-contact__fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.dcip-phero__crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
}

.dcip-phero__crumbs li + li::before {
    content: "/";
    margin-right: 8px;
    color: var(--dc-primary);
}

.dcip-phero__crumbs a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    color: #ffffff;
}

.dcip-phero__title {
    max-width: 16ch;
    font-size: clamp(2.4rem, 1.5rem + 4vw, 4.75rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: #ffffff !important;
}

.dcip-phero__intro {
    max-width: 60ch;
    font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
    color: rgba(255, 255, 255, 0.88);
}

.dcip-phero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

@media (max-width: 639px) {
    .dcip-phero {
        padding-top: 160px;
    }

    .dcip-phero__ctas {
        display: grid;
        width: 100%;
    }

    .dcip-phero__ctas .dcip-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dcip-js .dcip-phero__img {
        animation: none !important;
    }
}
