/* ============================================================================
   KLAAS PUUL - WERKEN BIJ (CAREERS OVERVIEW) PAGE
   Mobile-first approach. Desktop breakpoint: 1024px.
   Fonts: "sofia-pro" (headings), "acumin-pro" (body)
   Primary: #0D1C38, Accent: #6BABD3, Light bg: #EBF1F8
   ============================================================================ */

/* ============================================================================
   VACATURE GRID SECTION
   Contains: search/filter, vacancy cards, load more
   ============================================================================ */
.kp-vacature-grid {
    background: #ffffff;
    padding: 64px 0 0 0;
    width: 100%;
}

/* Section title */
.kp-vacature-grid__title {
    color: #0d1c38;
    font-family: var(--font-heading, "sofia-pro", sans-serif);
    font-size: 24px;
    line-height: 140%;
    font-weight: 400;
    margin: 0 0 40px 0;
    text-align: center;
}

/* ============================================================================
   SEARCH & FILTER
   Mobile: stacked column, full width
   Desktop: max-width 908px centered, row for dropdowns
   ============================================================================ */
.kp-vacature-grid__search {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0 auto 40px auto;
    width: 100%;
}

/* Search input */
.kp-vacature-grid__search-input-wrap {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(13, 28, 56, 0.25);
    background: linear-gradient(to left, rgba(235, 241, 248, 0.5), rgba(235, 241, 248, 0.5)), #ffffff;
}
.kp-vacature-grid__search-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: rgba(0, 0, 0, 0.6);
}
.kp-vacature-grid__search-input {
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-main, "acumin-pro", sans-serif);
    font-size: 16px;
    line-height: 150%;
    font-weight: 400;
    color: #0d1c38;
    width: 100%;
    padding: 0;
}
.kp-vacature-grid__search-input::placeholder {
    color: rgba(0, 0, 0, 0.6);
}

/* Divider between search and filters */
.kp-vacature-grid__search-divider {
    border-top: 1px solid rgba(13, 28, 56, 0.15);
}

/* Filter dropdowns */
.kp-vacature-grid__filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.kp-vacature-grid__select-wrap {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
}
.kp-vacature-grid__select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 12px;
    padding-right: 48px;
    border: 1px solid rgba(13, 28, 56, 0.25);
    background: rgba(255, 255, 255, 0.5);
    font-family: var(--font-main, "acumin-pro", sans-serif);
    font-size: 16px;
    line-height: 150%;
    font-weight: 400;
    color: #000000;
    border-radius: 0;
    cursor: pointer;
    height: 56px;
}
.kp-vacature-grid__select-arrow {
    position: absolute;
    right: 12px;
    width: 24px;
    height: 24px;
    pointer-events: none;
    color: #0d1c38;
}

/* Search button — inside filters container */
.kp-vacature-grid__search-btn {
    width: 100%;
    justify-content: center;
    flex-shrink: 0;
}

/* ============================================================================
   VACANCY CARDS
   ============================================================================ */
.kp-vacature-grid__cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.kp-vacature-grid__card--hidden {
    display: none;
}
.kp-vacature-grid__card--filtered {
    display: none !important;
}

/* ============================================================================
   LOAD MORE
   ============================================================================ */
.kp-vacature-grid__load-more-wrap {
    display: flex;
    justify-content: center;
    padding: 24px 0;
    border-bottom: 1px solid rgba(13, 28, 56, 0.25);
}
.kp-vacature-grid__load-more {
    justify-content: center;
}

/* ============================================================================
   VIDEO / MEDIA SECTION
   Dark bg, rotated images, play button, social links
   ============================================================================ */
.kp-video-media {
    background: #0d1c38 url('https://www.klaaspuul.com/protostar/wp-content/uploads/2026/04/Patroon-groot.webp') center / cover no-repeat;
    padding: 64px 0;
    width: 100%;
    overflow: hidden;
    position: relative;
}
.kp-video-media__inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
}
.kp-video-media__inner .kp-video-media__gallery {
    margin-top: 40px;
}
.kp-video-media__inner .kp-video-media__socials {
    margin-top: 40px;
}
@media (min-width: 1024px) {
    .kp-video-media__inner .kp-video-media__gallery {
        margin-top: 92px;
    }
}
.kp-video-media__title {
    color: #ffffff;
    font-family: var(--font-heading, "sofia-pro", sans-serif);
    font-size: 40px;
    line-height: 120%;
    font-weight: 400;
    margin: 0;
    text-align: center;
}

/* Decorative shapes (absolute positioned behind content) — desktop only */
.kp-video-media__shapes {
    display: none;
}
@media (min-width: 1024px) {
    .kp-video-media__shapes {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 648px;
        height: 648px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        pointer-events: none;
        z-index: 0;
    }
    .kp-video-media__shapes-top,
    .kp-video-media__shapes-bottom {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    .kp-video-media__shapes-top {
        transform: scaleY(-1);
    }
}

/* ============================================================================
   Gallery — Osmo Flick Cards Slider
   Gestapelde card stack met drag/swipe interactie. Aspect ratio 2:3 portrait
   (Figma: 380×570 desktop, 224×337 mobile).
   ============================================================================ */
.kp-video-media__gallery {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Square frame met corner shapes — alleen desktop.
   Op mobile: geen frame, geen corners — cards staan natuurlijk in flow.
   Cards (2:3 portrait) overflow vertikaal het square frame; corners zitten
   op de 4 hoeken. Figma desktop: 650×650 frame met 380×570 card binnenin. */
.kp-flick-cards-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Mobile: frame is contents only — geen square afmetingen */
    width: auto;
    height: auto;
}
.kp-flick-cards-frame__corner {
    display: none !important;
}
@media (min-width: 1024px) {
    .kp-flick-cards-frame {
        width: 650px;
        height: 650px;
    }
    .kp-flick-cards-frame__corner {
        display: block !important;
        position: absolute;
        width: 100px;
        height: 100px;
        pointer-events: none;
        z-index: 10;
    }
    .kp-flick-cards-frame__corner--tl { top: 0;    left: 0; }
    .kp-flick-cards-frame__corner--tr { top: 0;    right: 0; }
    .kp-flick-cards-frame__corner--bl { bottom: 0; left: 0; }
    .kp-flick-cards-frame__corner--br { bottom: 0; right: 0; }
}

.kp-flick-cards {
    position: relative;
    /* Mobile: center card width 224px (Figma) */
    width: 224px;
    max-width: 100%;
}
/* Spacer behoudt 2:3 ratio van de actieve card → bepaalt de hoogte van de stack */
.kp-flick-cards__spacer {
    width: 100%;
    padding-top: 150%; /* 570/380 = 1.5 → 2:3 portrait */
    pointer-events: none;
    opacity: 0;
}
.kp-flick-cards__collection {
    position: absolute;
    inset: 0;
}
.kp-flick-cards__list {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.kp-flick-cards__item {
    position: absolute;
    width: 100%;
    height: 100%;
    will-change: transform, opacity;
}

.kp-flick-card {
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent;
    color: #fff;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}
.kp-flick-card__media {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.kp-flick-card__img,
.kp-flick-card__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}
.kp-flick-card__video {
    background: #000;
}

/* Opacity per status (Osmo pattern) */
.kp-flick-cards__item[data-flick-cards-item-status] .kp-flick-card__media {
    transition: opacity .25s ease;
    opacity: 0.5;
}
.kp-flick-cards__item[data-flick-cards-item-status="3-before"] .kp-flick-card__media,
.kp-flick-cards__item[data-flick-cards-item-status="3-after"] .kp-flick-card__media {
    opacity: 0.65;
}
.kp-flick-cards__item[data-flick-cards-item-status="2-before"] .kp-flick-card__media,
.kp-flick-cards__item[data-flick-cards-item-status="2-after"] .kp-flick-card__media {
    opacity: 0.85;
}
.kp-flick-cards__item[data-flick-cards-item-status="active"] .kp-flick-card__media {
    opacity: 1;
}

/* Drag overlay (toegevoegd via JS in elk item) */
[data-flick-cards-dragger] {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: auto;
    touch-action: pan-y;
    cursor: grab;
}
.kp-flick-cards[data-flick-drag-status="grabbing"] [data-flick-cards-dragger] {
    cursor: grabbing;
}

/* Play button (verschijnt alleen op de actieve, eerste card) */
.kp-flick-card__play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(196, 196, 196, 0.2);
    border: 1.54px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, opacity .3s ease;
    text-decoration: none;
    z-index: 2;
    opacity: 0;
}
/* Play/Pause button alleen zichtbaar bij hover op de actieve card */
.kp-flick-cards__item[data-flick-cards-item-status="active"]:hover .kp-flick-card__play {
    opacity: 1;
}
/* Play button moet klikbaar zijn boven de dragger */
.kp-flick-card__play {
    pointer-events: auto;
    z-index: 1100;
}
/* Default: show play icon, hide pause icon */
.kp-flick-card__play-icon--pause { display: none; }
/* Playing: show pause icon, hide play icon */
.kp-flick-cards__item.is-playing .kp-flick-card__play-icon--play { display: none; }
.kp-flick-cards__item.is-playing .kp-flick-card__play-icon--pause { display: block; }
.kp-flick-card__play:hover {
    background: rgba(196, 196, 196, 0.4);
}

/* Social media buttons */
.kp-video-media__socials {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: center;
}
.kp-video-media__social-btn {
    background: #6babd3;
    padding: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s ease;
}
.kp-video-media__social-btn:hover {
    background: #5a9ac2;
}
.kp-video-media__social-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* ============================================================================
   TEXT + IMAGE COMPONENT (Cultuur en waarden)
   Mobile: column, text above image
   Desktop: row, left text 640px, right image flex:1, gap 150px
   ============================================================================ */
.kp-text-image {
    background: #ffffff;
    padding: 64px 0;
    width: 100%;
}
.kp-text-image__grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.kp-text-image__left {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.kp-text-image__intro {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.kp-text-image__title {
    color: #0d1c38;
    font-family: var(--font-heading, "sofia-pro", sans-serif);
    font-size: 40px;
    line-height: 120%;
    font-weight: 400;
    margin: 0;
}
.kp-text-image__text {
    color: #0d1c38;
    font-family: var(--font-main, "acumin-pro", sans-serif);
    font-size: 20px;
    line-height: 150%;
    font-weight: 400;
    margin: 0;
}
.kp-text-image__items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.kp-text-image__item {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.kp-text-image__item-title {
    color: #0d1c38;
    font-family: var(--font-heading, "sofia-pro", sans-serif);
    font-size: 24px;
    line-height: 140%;
    font-weight: 400;
    margin: 0;
}
.kp-text-image__item-text {
    color: #0d1c38;
    font-family: var(--font-main, "acumin-pro", sans-serif);
    font-size: 16px;
    line-height: 150%;
    font-weight: 400;
    margin: 0;
}
.kp-text-image__divider {
    border-top: 1px solid rgba(13, 28, 56, 0.25);
}
.kp-text-image__right {
    width: 100%;
}
.kp-text-image__img {
    width: 100%;
    height: 214px;
    object-fit: cover;
    display: block;
}
.kp-text-image__placeholder {
    background: #c4c4c4;
    width: 100%;
    height: 214px;
}

/* ============================================================================
   IMAGE CAROUSEL (center-mode slider)
   Figma: bg #fff, padding 0 100px, gap 64px, height 683px slides
   ============================================================================ */
.kp-image-carousel {
    background: #ffffff;
    padding: 0;
    width: 100%;
}
.kp-image-carousel__inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

/* ─── Osmo Cascading Slider ─── */
.kp-image-carousel__slider {
    width: 100%;
    position: relative;
}
.kp-image-carousel__viewport {
    --gap: 8px;
    width: 100%;
    height: 560px;          /* mobile */
    position: relative;
    overflow: hidden;
}
@media (min-width: 1024px) {
    .kp-image-carousel__viewport {
        height: 683.3px;    /* desktop Figma */
    }
}
.kp-image-carousel__slide {
    --clip: 0;
    --radius: 0;
    color: #fff;
    cursor: pointer;
    will-change: transform, clip-path;
    clip-path: inset(0px calc(var(--clip) * 1px) round var(--radius));
    -webkit-user-select: none;
    user-select: none;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #a1a1a1; /* placeholder voor lege/lazy slides */
}
@media (max-width: 1023px) {
    .kp-image-carousel__slide {
        --radius: 0;
    }
}
.kp-image-carousel__slide[data-status="active"] {
    cursor: default;
}
.kp-image-carousel__slide-inner {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.kp-image-carousel__slide-bg {
    z-index: 0;
    position: absolute;
    inset: 0;
}
.kp-image-carousel__slide-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.kp-image-carousel__slide-overlay {
    z-index: 2;
    background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
    padding: 32px 8px 0 32px; /* mobile */
    position: absolute;
    inset: auto 0 0 0;
    height: 168px;
}
@media (min-width: 1024px) {
    .kp-image-carousel__slide-overlay {
        padding: 32px 32px 0 40px;
        height: 124px;
    }
}
.kp-image-carousel__slide-title {
    color: #ffffff;
    font-family: var(--font-heading, "sofia-pro", sans-serif);
    font-size: 24px;     /* mobile = h5 */
    line-height: 140%;
    font-weight: 400;
    margin: 0;
    opacity: 0;
    transform: translate(0, 0.25em);
    transition: opacity .3s cubic-bezier(.645,.045,.355,1), transform .3s cubic-bezier(.645,.045,.355,1);
    transition-delay: 0ms;
}
@media (min-width: 1024px) {
    .kp-image-carousel__slide-title {
        font-size: 40px; /* desktop = h3 */
        line-height: 120%;
    }
}
.kp-image-carousel__slide[data-status="active"] .kp-image-carousel__slide-title {
    opacity: 1;
    transform: translate(0, 0);
    transition-delay: 400ms;
}

/* Navigation arrows */
.kp-image-carousel__nav {
    display: flex;
    justify-content: center;
    height: 48px;
}
.kp-image-carousel__arrows {
    display: flex;
    flex-direction: row;
    gap: 16px;
}
.kp-image-carousel .kp-slider-arrow {
    background: #ffffff;
    border: 1px solid #0d1c38;
    border-radius: 50px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    color: #0d1c38;
}
.kp-image-carousel .kp-slider-arrow:hover {
    background: #ebf1f8;
}
.kp-image-carousel .kp-slider-arrow__icon {
    width: 24px;
    height: 24px;
}

/* ============================================================================
   WERKEN BIJ — OVERRIDES FOR REUSED COMPONENTS
   Font sizes from Figma that differ from default component values
   ============================================================================ */

/* "Waarom werken bij" — mobile: title 48px, text 18px, item title 24px, grid gap 64px */
.page-template-page-werken-bij .kp-text-usp__grid {
    gap: 64px;
}
.page-template-page-werken-bij .kp-text-usp__title {
    font-size: 40px;
    line-height: 120%;
}
.page-template-page-werken-bij .kp-text-usp__text {
    font-size: 18px;
    line-height: 150%;
}
.page-template-page-werken-bij .kp-text-usp__item-title {
    font-size: 24px;
    line-height: 140%;
}

/* FAQ — mobile: title 48px, intro 18px, item title 24px */
.page-template-page-werken-bij .kp-accordion-rows__title {
    font-size: 48px;
    line-height: 120%;
}
.page-template-page-werken-bij .kp-accordion-rows__intro {
    font-size: 18px;
    line-height: 150%;
}
.page-template-page-werken-bij .kp-accordion-rows__item-title {
    font-size: 24px;
    line-height: 140%;
}

/* Contact CTA — mobile: title 40px, text 16px */
.page-template-page-werken-bij .kp-contact-cta__title {
    font-size: 40px;
    line-height: 120%;
}
.page-template-page-werken-bij .kp-contact-cta__text {
    font-size: 16px;
    line-height: 150%;
}

/* Vacancy cards on Werken Bij: show tags on mobile (stacked column) */
.page-template-page-werken-bij .kp-vacature-card__tags {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Social buttons mobile: Figma 34x33px */
.kp-video-media__social-btn {
    width: 34px;
    height: 33px;
}

/* Image carousel mobile: padding (height + radius zit nu in cascading slider CSS hierboven) */
.kp-image-carousel {
    padding: 40px 0 0 0;
}

/* ============================================================================
   DESKTOP STYLES (min-width: 1024px)
   ============================================================================ */
@media (min-width: 1024px) {

    /* Vacature grid */
    .kp-vacature-grid {
        padding: 80px 0 0 0;
    }
    .kp-vacature-grid__title {
        font-size: 48px;
        line-height: 120%;
    }

    /* Search area */
    .kp-vacature-grid__search {
        max-width: 908px;
    }
    .kp-vacature-grid__filters {
        flex-direction: row;
        gap: 8px;
    }
    .kp-vacature-grid__select-wrap {
        flex: 1;
    }
    .kp-vacature-grid__search-btn {
        width: auto;
    }

    /* Cards */
    .kp-vacature-grid__cards {
        gap: 24px;
        align-items: center;
    }

    /* Load more */
    .kp-vacature-grid__load-more-wrap {
        padding: 48px 0;
    }

    /* Text + Image component desktop */
    .kp-text-image {
        padding: 160px 0;
    }
    .kp-text-image__grid {
        flex-direction: row;
        gap: 150px;
    }
    .kp-text-image__left {
        width: 640px;
        flex-shrink: 0;
    }
    .kp-text-image__text {
        font-size: 20px;
    }
    .kp-text-image__right {
        flex: 1;
        align-self: stretch;
    }
    .kp-text-image__img {
        height: 100%;
        object-fit: cover;
    }
    .kp-text-image__placeholder {
        height: 100%;
    }

    /* Social buttons desktop: back to 40x40 */
    .kp-video-media__social-btn {
        width: 40px;
        height: 40px;
    }

    /* Vacancy card tags: row on desktop */
    .page-template-page-werken-bij .kp-vacature-card__tags {
        flex-direction: row;
    }

    /* Image carousel desktop: padding 0, gap 64px (height + title size zit in cascading slider CSS) */
    .kp-image-carousel {
        padding: 0;
    }
    .kp-image-carousel__inner {
        gap: 64px;
    }

    /* Reused component overrides — Figma desktop values */
    .page-template-page-werken-bij .kp-text-usp__title {
        font-size: 64px;
        line-height: 120%;
    }
    .page-template-page-werken-bij .kp-text-usp__text {
        font-size: 24px;
    }
    .page-template-page-werken-bij .kp-accordion-rows__title {
        font-size: 64px;
        line-height: 100%;
    }
    .page-template-page-werken-bij .kp-accordion-rows__intro {
        font-size: 24px;
    }
    .page-template-page-werken-bij .kp-accordion-rows__item-title {
        font-size: 32px;
        line-height: 130%;
    }
    .page-template-page-werken-bij .kp-contact-cta__title {
        font-size: 48px;
        line-height: 120%;
    }
    .page-template-page-werken-bij .kp-contact-cta__text {
        font-size: 20px;
    }

    /* Video/media section */
    .kp-video-media {
        padding: 160px 0;
    }
    .kp-video-media__title {
        font-size: 48px;
    }
    /* Flick cards desktop: center card 380px (Figma 380×570) */
    .kp-flick-cards {
        width: 380px;
    }
}

/* ============================================================================
   MEDIUM DESKTOP (1025px - 1439px)
   ============================================================================ */
@media (min-width: 1024px) and (max-width: 1439px) {
    .kp-video-media {
        padding: 80px 0;
    }
    /* Flick cards medium desktop: schaal de actieve card iets kleiner */
    .kp-flick-cards {
        width: 300px;
    }
}
