/* ==========================================================================
   Nijntjepakket — page-specific styles
   Prefix: kpn-
   Depends on shared.css
   ========================================================================== */

/* --- Page title --- */
.kpn-title {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px var(--kp-pageheader-pad-x) 32px;
}
.kpn-title h1 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 44px;
    color: var(--color-text);
    margin: 0;
    line-height: 1.1;
}


/* --- Hero — yellow card --- */
.kpn-hero-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 60px 64px;
}
.kpn-hero {
    position: relative;
    background: var(--color-accent);
    border-radius: var(--radius-card);
    display: flex;
    align-items: flex-start;
    padding: 56px 56px;
    gap: 40px;
}

.kpn-hero__left {
    position: relative;
    flex: 0 0 50%;
    min-height: 340px;
    display: block;
}
.kpn-hero__large {
    position: absolute;
    width: 320px;
    height: auto;
    border-radius: 4px;
    box-shadow: 8px 10px 22px rgba(0,0,0,0.22);
}
.kpn-hero__large--1 {
    top: 0;
    left: 20px;
    transform: rotate(-10deg);
    z-index: 1;
}
.kpn-hero__large--2 {
    top: 110px;
    left: 200px;
    transform: rotate(6deg);
    z-index: 2;
}

/* Composite hero image — overflows bottom of the yellow card */
.kpn-hero { overflow: visible; }
.kpn-hero__left--composite {
    visibility: hidden;
    min-height: 340px;
}
.kpn-hero__main {
    position: absolute;
    left: 32px;
    bottom: -150px;
    width: calc(50% - 16px);
    height: auto;
    z-index: 3;
    pointer-events: none;
    filter: drop-shadow(6px 8px 16px rgba(0,0,0,0.22));
}

.kpn-hero__price {
    position: absolute;
    top: -55px;
    left: 50%;
    transform: translateX(-50%);
    /* Match the shared collectie price circle (.kpt-collectie__price, pakket.css)
       so /nijntje/ reads consistently with the other package pages (Willem). */
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--color-white);
    border: 5px solid var(--color-accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 4;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.kpn-hero__price-from {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 18px;
    color: var(--color-text);
    text-decoration: line-through;
    line-height: 1;
}
.kpn-hero__price-amount {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 28px;            /* match .kpt-collectie__price-amount (was 36px) */
    color: var(--color-text);
    line-height: 1.1;
    margin-top: 2px;
}
/* Prijsknaller-tekst (bv. "per maand") in de prijscirkel — alleen wanneer de
   Prijzen-grid een tekst heeft (BE). Spiegelt .kpt-collectie__price-text. */
.kpn-hero__price-text {
    display: block;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 12px;
    color: var(--color-text);
    line-height: 1.2;
    text-align: center;
}

.kpn-hero__right {
    flex: 0 0 calc(50% - 40px);
    min-width: 0;
    position: relative;
    padding-top: 20px;
}
.kpn-hero__desc {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0 0 32px;
    max-width: 520px;
}
.kpn-hero__desc p { margin: 0 0 26px; }
.kpn-hero__desc p:last-child { margin-bottom: 0; }
.kpn-hero__desc p:first-of-type { font-weight: 700; }

.kpn-hero__btn {
    display: inline-block;
    background: #ff4000;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 18px;
    padding: 4px 72px;
    line-height: 1.2;
    border-radius: var(--radius-btn);
    text-decoration: none;
    transition: transform 0.2s;
}
.kpn-hero__btn:hover { transform: scale(1.04); }

/* Small books positioned absolute — pop out of yellow card's bottom-right */
.kpn-hero__small-books {
    position: absolute;
    right: 40px;
    bottom: -40px;
    display: flex;
    gap: 6px;
    z-index: 3;
}
.kpn-hero__small {
    width: 110px;
    height: auto;
    border-radius: 3px;
    box-shadow: 4px 8px 16px rgba(0,0,0,0.25);
}
.kpn-hero__small--1 { transform: rotate(-6deg); }
.kpn-hero__small--2 { transform: rotate(5deg); }

/* Hero small composite — overflows bottom-right of yellow card */
.kpn-hero__small-main {
    position: absolute;
    right: 32px;
    bottom: -80px;
    width: 280px;
    height: auto;
    z-index: 3;
    pointer-events: none;
    filter: drop-shadow(4px 8px 14px rgba(0,0,0,0.22));
}


/* --- Info — single green card, 4 round characters pop out top --- */
.kpn-info-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 60px 64px; /* top padding so top-row chars have room to pop out */
}
.kpn-info {
    position: relative;
    background: #007129;
    border-radius: var(--radius-card);
    display: flex;
    gap: 48px;
    padding: 48px 32px;
    color: var(--color-white);
    align-items: flex-start;
}
.kpn-info__text {
    flex: 0 0 45%;
    padding-left: 60px;
    box-sizing: border-box;
}
.kpn-info__text h2 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 30px;
    margin: 0 0 18px;
    line-height: 1.1;
}
.kpn-info__text p {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    margin: 0 0 14px;
}
.kpn-info__text p:last-child { margin-bottom: 0; }

.kpn-info__characters {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    position: relative;
}
.kpn-info__chars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 16px;
    row-gap: 16px;
    width: 100%;
    max-width: 360px;
    position: relative;
}
.kpn-info__char {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,0.22));
}
/* top row pops out above the green card */
.kpn-info__char--1,
.kpn-info__char--2 {
    margin-top: -80px;
}

.kpn-info__btn {
    display: inline-block;
    background: #ff4000;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 20px;
    padding: 4px 30px;
    line-height: 1.2;
    border-radius: var(--radius-btn);
    text-decoration: none;
    transition: transform 0.2s;
    text-align: center;
}
.kpn-info__btn:hover { transform: scale(1.04); }


/* --- Dick Bruna — dark blue card, photo + books hang out bottom --- */
.kpn-bruna-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 60px 120px; /* extra bottom so overhang doesn't clash with next section */
}
.kpn-bruna {
    position: relative;
    background: #005599;
    border-radius: var(--radius-card);
    aspect-ratio: 1440 / 649;
    display: flex;
    gap: 48px;
    padding: 48px 56px;
    color: var(--color-white);
    align-items: flex-start;
}
.kpn-bruna__photo {
    flex: 0 0 calc(50% - 24px);
    display: block;
    position: relative;
    margin-bottom: -120px;
    z-index: 2;
}
.kpn-bruna__photo img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    box-shadow: 0 14px 32px rgba(0,0,0,0.32);
}
.kpn-bruna__photo-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
}
.kpn-bruna__text {
    flex: 0 0 calc(50% - 24px);
    min-width: 0;
    padding-left: 80px;
    padding-right: 40px;
    box-sizing: border-box;
}
.kpn-bruna__text h2 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 30px;
    margin: 0 0 18px;
    line-height: 1.1;
}
.kpn-bruna__text p {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 14px;
}
.kpn-bruna__text p:last-child { margin-bottom: 24px; }

.kpn-bruna__books {
    position: absolute;
    left: calc(50% + 24px);
    right: 56px;
    bottom: -50px;
    display: flex;
    gap: 6px;
    align-items: flex-end;
    justify-content: center;
    z-index: 3;
}
.kpn-bruna__book {
    width: 90px;
    height: auto;
    border-radius: 3px;
    box-shadow: 4px 10px 18px rgba(0,0,0,0.32);
    display: block;
}
.kpn-bruna__book--1 { transform: rotate(-6deg) translateY(6px); }
.kpn-bruna__book--2 { transform: rotate(-2deg); }
.kpn-bruna__book--3 { transform: rotate(3deg); }
.kpn-bruna__book--4 { transform: rotate(7deg) translateY(6px); }

/* Bruna composite — sits below the text block (same width, centered), overflows card bottom */
.kpn-bruna__main-wrap {
    position: absolute;
    left: calc(50% + 24px + 80px);
    right: calc(56px + 40px);
    bottom: -80px;
    display: flex;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
}
.kpn-bruna__main {
    width: 100%;
    height: auto;
    filter: drop-shadow(4px 8px 14px rgba(0,0,0,0.25));
}


/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  RESPONSIVE                                                           ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

@media (max-width: 767px) {
    .kpn-title { padding: 32px 16px 16px; }
    .kpn-title h1 { font-size: 28px; }

    .kpn-hero-wrap { padding: 0 16px 40px; }
    .kpn-hero {
        flex-direction: column;
        padding: 32px 20px;
        gap: 24px;
    }
    .kpn-hero__left {
        flex: 1 1 auto;
        width: 100%;
        min-height: 280px;
    }
    .kpn-hero__large { width: 60%; }
    .kpn-hero__large--1 { top: 0; left: 5%; }
    .kpn-hero__large--2 { top: 60px; left: 35%; }
    .kpn-hero__price {
        width: 80px;
        height: 80px;
        top: -40px;
    }
    .kpn-hero__price-from { font-size: 12px; }
    .kpn-hero__price-amount { font-size: 22px; }
    .kpn-hero__price-text { font-size: 10px; }
    .kpn-hero__right { flex: 1 1 auto; width: 100%; }
    .kpn-hero__desc { font-size: 14px; }
    .kpn-hero__btn { width: 100%; text-align: center; padding: 14px 20px; }
    .kpn-hero__small-books {
        position: static;
        justify-content: center;
        margin-top: 16px;
    }
    .kpn-hero__small { width: 80px; }

    .kpn-info-wrap { padding: 60px 16px 40px; }
    .kpn-info {
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
    }
    .kpn-info__text { flex: 1 1 auto; }
    .kpn-info__text h2 { font-size: 24px; }
    .kpn-info__characters { flex: 1 1 auto; gap: 20px; }
    .kpn-info__char--1,
    .kpn-info__char--2 { margin-top: 0; }

    .kpn-bruna-wrap { padding: 0 16px 40px; }
    .kpn-bruna {
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        aspect-ratio: auto;
    }
    .kpn-bruna__photo {
        flex: 1 1 auto;
        width: 100%;
        margin-top: 0;
        margin-bottom: 0;
    }
    .kpn-bruna__text {
        flex: 1 1 auto;
        width: 100%;
    }
    .kpn-bruna__text h2 { font-size: 24px; }
    .kpn-bruna__books {
        position: static;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 16px;
        margin-bottom: 0;
    }
    .kpn-bruna__book { width: calc(25% - 8px); transform: none !important; }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .kpn-title { padding: 40px 32px 20px; }
    .kpn-title h1 { font-size: 36px; }
    .kpn-hero-wrap,
    .kpn-info-wrap,
    .kpn-bruna-wrap { padding: 0 32px 48px; }
    .kpn-hero { padding: 40px 32px; gap: 32px; }
    .kpn-hero__large { width: 240px; }
    .kpn-hero__large--2 { left: 150px; top: 80px; }
    .kpn-info__text, .kpn-info__characters { padding: 36px 32px; }
    .kpn-bruna { padding: 36px 32px; gap: 32px; }
}
