/*
 * Cequra child theme - core.css
 *
 * Aanvullende CSS voor core. Wordt NA het parent core.css ingeladen,
 * dus regels hier overschrijven of vullen het hoofdthema aan.
 */

:root {
    /* Font variables */
    --fs            : 1.3rem;
    --lh            : 1.6;
    --fs-h1         : clamp(3.2rem, 5vw, 5.2rem);
    --fs-h2         : clamp(2.8rem, 4vw, 3.8rem);
    --fs-h3         : clamp(2rem, 3vw, 2.4rem);
}


@media (min-width: 768px) {
    :root {
        --fs: 1.4rem;
    }
}

@media (min-width: 992px) {
    :root {
        --fs: 1.6rem;
        --header-height    : 12.5rem; 
    }
}

 /*** ---------- Typography ---------- ***/
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {font-weight: 600; }


 /*** ---------- button ---------- ***/
 .btn, .gform_button, .gform_next_button, .gform_previous_button, .button, .swiper-button-prev, .swiper-button-next { 
    --lh: 1.4; 
    --p: 1.6rem 3.6rem; 
    --br: 4rem;
    --min-height: 5.1rem; 
 }


 /*** ---------- Badge ---------- ***/
.badge-group {}
.badge { 
    /* Badge variations */
    &.badge--primary { --clr: #fff; --bg-clr: var(--clr-primary); }
    &.badge--white { --clr: var(--clr-text); --bg-clr: #fff; }
    &.badge--italic { --clr: var(--clr-primary); --bg-clr: transparent; --p: 0; font-style: italic; font-weight: 600; }
    &.badge--italic-white { --clr: #fff; --bg-clr: transparent; --p: 0; font-style: italic; }
}


/*** ---------- Author ---------- ***/
.wpb-author__avatar {border-radius: 50% !important;
    img {border-radius: 50% !important;}

    &::after {content: none;}
}


/*** ---------- Quote (single content blocks) ---------- ***/
.wpb-content__main {
    .wpb-quote { --size: 6.8rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.8rem; overflow: hidden;
        &:has(.wpb-author__avatar) { grid-template-columns: var(--size) minmax(0, 1fr); }

        .wpb-author__avatar {
            img { display: block; width: var(--size); height: var(--size); object-fit: cover; border-radius: var(--br); }
        }

        .wpb-author__content {display:flex; flex-direction: column; justify-content: space-between; gap: 0.4rem; min-width: 0; line-height: 1.4;
            blockquote {border-left: none; padding: 0; margin: 0; position: relative; font-weight: 700; }
        }
    }

    .wpb-card.wpb-card--review {
        .wpb-card__body { padding-top: 1.6rem; padding-bottom: 1.6rem; }

        .wpb-review__author { --size: 5.6rem; display: flex; align-items: center; gap: 1.2rem; min-width: 0;
            .wpb-author__avatar {
                img { display: block; width: var(--size); height: var(--size); object-fit: cover; border-radius: var(--br); }
            }

            .wpb-author__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 0.2rem; }
            .wpb-author__name { color: inherit; }
            .wpb-author__details { display: inline-flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
            .wpb-author__function { font-size: 1.4rem; opacity: 0.85; }
            .wpb-author__company { font-size: 1.4rem; opacity: 0.85; }
        }
    }

    .wpb-cta { --size: 5.6rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem;
        .wpb-cta__header { display: flex; align-items: center;
            .wpb-author__avatar { position: relative; z-index: 1; flex-shrink: 0; margin: 0;
                img { display: block; width: var(--size); height: var(--size); object-fit: cover; }
                &::after {content: none;}
            }
        }
        .wpb-cta__footer {
            .wpb-author__meta { display: inline-flex; align-items: center; gap: 0.8rem; line-height: 1.4;
                .wpb-author__name { font-weight: 700; color: inherit; }
                .wpb-author__function { font-size: 1.4rem; opacity: 0.85; }
            }
        }
    }
}

/*** ---------- Block: Content ---------- ***/
.wpb-block--content {
    .wpb-block__body {
        .wpb-cta { --size: 6rem;
            .btn { margin-left: -2rem; margin-top: 0.4rem;}
            .wpb-author__avatar { 
                &::after { content: none;}
            }
            .wpb-author__meta {height: fit-content;}
        }
    }
}


/*** ---------- Images ---------- ***/
.wpb-image {
    img { border-radius: var(--br-xl); }
}


/*** ---------- USP ---------- ***/
.wpb-usp {
    .wpb-usp__icon { }
    .wpb-usp__text--textarea { }

    .text-light & {
        .wpb-usp__icon {}
    }

    /* Variations */
    &.wpb-usp--card { 
        .wpb-usp__icon {}
    }
    &.wpb-usp--list-large { font-weight: 600; gap: 1.2rem; border: none; padding: 0;
        .wpb-usp__icon { font-size: clamp(1.8rem, 2vw, 2rem); }
    }
    &.wpb-usp--list-small {}
}


/*** ---------- Footer ---------- ***/
.wpb-footer {
    .btn {border-radius: 0.8rem;}
}


/*** ---------- Footer CTA ---------- ***/
.wpb-block--footer-cta { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden;
    .wpb-footer-cta__image { position: relative; inset: auto; z-index: 1; min-height: clamp(24rem, 50vw, 30rem); height: 100%;
        img { width: 100%; height: 100% !important; object-fit: cover; object-position: center; border-radius: 0; -webkit-mask-image: none; mask-image: none;}
    }

    .container { width: 100%; height: 100%; padding: clamp(3.2rem, 4vw, 4.8rem);
        .wpb-footer-cta__content {display: flex; align-items: center; height: 100%; z-index: 1;
            .wpb-text { text-align: left; width: 100%; max-width: 72rem;
                .btn-group {justify-content: flex-start;}
            }
        }
    }

    @media (min-width: 992px) {grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        .wpb-footer-cta__image {min-height: clamp(34rem, 36vw, 46rem);}
    }
}