/* ==========================================================================
   Pakket pages — SHARED desktop styles (common to all 5 pakket pages)
   Prefix: kpt-
   Depends on shared.css
   ========================================================================== */

/* --- Page title with price circle --- */
.kpt-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px var(--kp-pageheader-pad-x) 72px;
}

.kpt-title__text {
    flex: none;
}

.kpt-title h1 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 44px;
    color: var(--color-text);
    margin: 0 0 20px;
    line-height: 1.1;
}

.kpt-title p {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 16px;
    color: var(--color-text);
    margin: 0;
    line-height: 1.5;
}

.kpt-title p .kpt-title__sub-price {
    color: var(--color-primary);
}

.kpt-title__price {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 5px solid var(--pakket-accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: 16px;
}

.kpt-title__price-label {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    color: var(--color-primary);
    line-height: 1;
}

.kpt-title__price-amount {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 28px;
    color: var(--color-text);
    line-height: 1.1;
}


/* --- Hero — themed accent bg right, photo overlapping top+bottom on left --- */
.kpt-hero {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 32px 60px 64px;
}

.kpt-hero__text {
    background: var(--pakket-accent);
    border-radius: var(--radius-card);
    padding: 40px 80px;
    padding-left: 60%;
    width: 100%;
    min-height: 420px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.kpt-hero__text h2 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 28px;
    color: var(--pakket-on-accent);
    margin: 0 0 28px;
    line-height: 1.2;
}

.kpt-hero__text p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 15px;
    color: var(--pakket-on-accent);
    line-height: 26px;
    margin: 0;
}

.kpt-hero__image {
    position: absolute;
    left: 120px;
    top: calc(50% - 16px);
    transform: translateY(-50%);
    width: calc(44% + 10px);
    border-radius: var(--radius-card);
    overflow: hidden;
    z-index: 2;
}

.kpt-hero__image img {
    width: 100%;
    display: block;
}


/* --- Body text --- */
.kpt-body {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 120px 48px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    color: var(--color-text);
    line-height: 28px;
    text-align: center;
}

.kpt-body p {
    margin: 0 0 20px;
}

.kpt-body p:last-child {
    margin-bottom: 0;
}

.kpt-body strong {
    font-weight: 700;
}


/* --- Bookshelf wrap --- */
.kpt-bookshelf-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 60px 48px;
}

.kpt-bookshelf-wrap .kph-bookshelf__caption {
    font-family: var(--font-heading);
    font-size: 26px;
    color: var(--color-text);
    margin-bottom: 16px;
}


/* --- CTA bar --- */
.kpt-cta {
    background: var(--color-grey-warm);
    border-radius: 40px;
    max-width: 800px;
    margin: 0 auto 72px;
    padding: 28px 60px 0;
    text-align: center;
    position: relative;
}

.kpt-cta__line1 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
    color: var(--color-text);
    margin: 0 0 4px;
}

.kpt-cta__line2 {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 15px;
    color: var(--color-text);
    line-height: 24px;
    margin: 0 auto;
    max-width: 700px;
}

.kpt-cta__btn {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 17px;
    padding: 14px 40px;
    border-radius: 30px;
    text-decoration: none;
    transition: transform 0.2s;
    position: relative;
    top: 24px;
}

.kpt-cta__btn:hover {
    transform: scale(1.05);
}


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

@media (max-width: 767px) {
    .kpt-title {
        flex-direction: column;
        padding: 32px 16px 16px;
        text-align: center;
    }
    .kpt-title h1 { font-size: 28px; }
    .kpt-title__price {
        margin-left: 0;
        margin-top: 16px;
        width: 80px;
        height: 80px;
    }
    .kpt-title__price-amount { font-size: 22px; }

    .kpt-hero { padding: 0 16px 32px; }
    .kpt-hero__text {
        padding: 24px;
        padding-right: 24px;
    }
    .kpt-hero__text h2 { font-size: 22px; }
    .kpt-hero__image {
        position: relative;
        left: auto;
        top: auto;
        bottom: auto;
        width: 100%;
        height: 280px;
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .kpt-body { padding: 0 16px 32px; text-align: left; }

    .kpt-bookshelf-wrap { padding: 0 16px 32px; }

    .kpt-cta {
        margin: 0 16px 32px;
        padding: 24px 20px;
    }
    .kpt-cta__line1 { font-size: 18px; }
    .kpt-cta__btn { font-size: 16px; padding: 10px 24px; }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .kpt-title { padding: 40px 32px 20px; }
    .kpt-title h1 { font-size: 36px; }

    .kpt-hero { padding: 0 32px 40px; }
    .kpt-hero__text { padding-left: 42%; }
    .kpt-hero__image { left: 48px; width: 36%; }

    .kpt-body { padding: 0 32px 40px; }
    .kpt-bookshelf-wrap { padding: 0 32px 40px; }
    .kpt-cta { margin: 0 32px 40px; }
}


/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  STANDARD PAKKET-PAGE LAYOUT (Phase 1: prentenboek pattern page)       ║
   ║  kpt-collectie / kpt-order / kpt-brievenbus — accent via               ║
   ║  --pakket-accent / --pakket-on-accent (D2 accent file per pakket)      ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

/* Smooth in-page scrolling for the collectie-CTA → #bestelformulier anchor.
   Scoped to pakket pages (this file only loads there); .kp-anchor in
   shared.css supplies the sticky-header scroll-margin. */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

/* --- Collectie hero — accent card, prijsknaller on top, books right ---
   Bottom padding 80px + the following .kpt-hero's own 32px top = 112px gap,
   matching the dreumes hero→body inter-block spacing (64px + 48px). */
.kpt-collectie-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 60px 80px;
}

.kpt-collectie {
    background: var(--pakket-accent);
    border-radius: var(--radius-card);
    display: flex;
    align-items: center;
    padding: 48px 48px;
    gap: 40px;
    position: relative;
}

/* Prijsknaller — table ACTUAL price only, no strikethrough/from-price.
   Otherwise verbatim kpb-hero__price (donor) with the accent border. */
.kpt-collectie__price {
    position: absolute;
    top: -55px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 5px solid var(--pakket-accent);
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.kpt-collectie__price-amount {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 28px;
    color: var(--color-text);
    line-height: 1.1;
}

/* Prijsknaller-tekst (item 14) — kort regeltje uit de Prijzen-grid, boven of
   onder het bedrag in de knaller-cirkel. Rendered alleen wanneer gevuld. */
.kpt-collectie__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;
}

.kpt-collectie__text {
    flex: 0 0 40%;
    min-width: 0;
}

.kpt-collectie__desc {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 15px;
    color: var(--pakket-on-accent);
    line-height: 26px;
    margin: 0 0 24px;
    max-width: 480px;
}

.kpt-collectie__desc strong { font-weight: 700; }

.kpt-collectie__btn {
    display: inline-block;
    background: #FF4000;
    color: var(--color-white);
    border: 2px solid var(--color-white);
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 22px;
    width: 295px;
    text-align: center;
    padding: 4px 0;
    line-height: 1.2;
    border-radius: var(--radius-btn);
    text-decoration: none;
    transition: transform 0.2s;
}

.kpt-collectie__btn:hover {
    transform: scale(1.05);
}

/* Korting-regel onder de CTA-knop (ACF-editable; leeg = niet getoond) */
.kpt-collectie__korting {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    color: var(--pakket-on-accent);
    margin: 12px 0 0;
    line-height: 1.4;
}

.kpt-collectie__books {
    flex: 0 0 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    gap: 0;
}

.kpt-collectie__books img {
    width: auto;
    border-radius: 4px;
    box-shadow: 4px 4px 12px rgba(0,0,0,0.25);
    flex-shrink: 0;
    margin: 0 -4px;
}

.kpt-collectie__books img:nth-child(1) { height: 190px; transform: rotate(-3deg) translateY(10px);  z-index: 2; }
.kpt-collectie__books img:nth-child(2) { height: 165px; transform: rotate(2deg) translateY(-18px);  z-index: 3; }
.kpt-collectie__books img:nth-child(3) { height: 200px; transform: rotate(-2deg) translateY(5px);   z-index: 4; }
.kpt-collectie__books img:nth-child(4) { height: 155px; transform: rotate(4deg) translateY(-22px);  z-index: 2; }
.kpt-collectie__books img:nth-child(5) { height: 180px; transform: rotate(-3deg) translateY(14px);  z-index: 3; }

/* Collectie composite — single image fills the right half, no overflow.
   Verbatim donor selectors: the :nth-child(1) variants are REQUIRED so this
   group out-cascades the collage img:nth-child(1) height/rotate rule above
   (dropping them squashed+rotated the composite — Dick revision 1c). */
.kpt-collectie__books--composite {
    flex: 0 0 60%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.kpt-collectie__books--composite,
.kpt-collectie__books--composite img,
.kpt-collectie__books--composite img:nth-child(1),
img.kpt-collectie__main {
    box-shadow: none !important;
    filter: none !important;
    border-radius: 0 !important;
}
.kpt-collectie__books--composite img,
.kpt-collectie__books--composite img:nth-child(1),
img.kpt-collectie__main {
    width: 100%;
    height: auto;
    max-width: 680px;
    margin: 0;
    transform: none;
}


/* --- Bestelblok — optional prijsknaller-line above the shared order block --- */
.kpt-order__price {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 24px;
    color: var(--color-text);
    text-align: center;
    max-width: var(--max-width);
    margin: 0 auto 24px;
    padding: 0 60px;
}

/* Composite next to the form — same sizing as the prentenboek donor page */
.kpt-order .kph-form-block__main {
    width: 340px;
    transform: translate(140px, 140px);
}


/* --- Brievenbus — grey card, books left + heading/text right --- */
.kpt-brievenbus-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 32px 60px 48px;
}

.kpt-brievenbus {
    background: var(--color-grey-warm);
    border-radius: var(--radius-card);
    display: flex;
    gap: 32px;
    padding: 40px 40px;
    max-width: 80%;
    margin: 0 auto;
    align-items: center;
    overflow: visible;
}

.kpt-brievenbus__books {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kpt-brievenbus__books img {
    height: 160px;
    width: auto;
    border-radius: 4px;
    box-shadow: 4px 4px 12px rgba(0,0,0,0.15);
    position: relative;
    margin: 0 -8px;
}

.kpt-brievenbus__books img:nth-child(odd) {
    margin-top: -70px;
    z-index: 2;
}

.kpt-brievenbus__books img:nth-child(even) {
    margin-top: 20px;
    z-index: 1;
}

/* Brievenbus composite — een uit Media gekozen afbeelding wordt gecentreerd en
   begrensd binnen de grijze kaart (Willem batch #5: geen -70px breakout meer die
   een gewone foto buiten het kader duwde). */
.kpt-brievenbus__books--composite {
    flex: 0 0 50%;
    overflow: visible;
    align-items: center;
    justify-content: center;
}

.kpt-brievenbus__books--composite img.kpt-brievenbus__main {
    width: auto;
    max-width: 100%;
    max-height: 260px;
    height: auto;
    margin: 0 auto;
    box-shadow: none !important;
    filter: none !important;
    border-radius: 0 !important;
    transform: none !important;
}

.kpt-brievenbus__text {
    flex: 1;
    min-width: 0;
}

.kpt-brievenbus__heading {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 24px;
    color: var(--color-text);
    margin: 0 0 10px;
    line-height: 1.2;
}

.kpt-brievenbus__desc {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    color: var(--color-text);
    line-height: 22px;
    margin: 0;
}


/* --- Standard layout — responsive --- */
@media (max-width: 767px) {
    .kpt-collectie-wrap { padding: 0 16px; }
    .kpt-collectie {
        flex-direction: column;
        padding: 32px 20px;
        gap: 24px;
    }
    .kpt-collectie__price {
        width: 80px;
        height: 80px;
        top: -40px;
    }
    .kpt-collectie__price-amount { font-size: 22px; }
    .kpt-collectie__desc { font-size: 14px; }
    .kpt-collectie__btn {
        width: 100%;
        text-align: center;
        padding: 12px 24px;
    }
    .kpt-collectie__books { justify-content: center; }
    .kpt-collectie__books img:nth-child(1) { height: 95px; }
    .kpt-collectie__books img:nth-child(2) { height: 80px; }
    .kpt-collectie__books img:nth-child(3) { height: 100px; }
    .kpt-collectie__books img:nth-child(4) { height: 75px; }
    .kpt-collectie__books img:nth-child(5) { height: 90px; }

    .kpt-order__price { font-size: 20px; padding: 0 16px; }

    .kpt-brievenbus-wrap { padding: 0 16px 32px; }
    .kpt-brievenbus {
        max-width: 100%;
        flex-direction: column;
        padding: 32px 20px;
        gap: 24px;
    }
    .kpt-brievenbus__books img { height: 120px; }
    .kpt-brievenbus__books img:nth-child(odd) { margin-top: -36px; }
    .kpt-brievenbus__books img:nth-child(even) { margin-top: 16px; }
}

@media (min-width: 768px) and (max-width: 1024px) {
    /* 40px = the dreumes tablet hero→body gap (.kpt-hero pb 40 + body pt 0) */
    .kpt-collectie-wrap { padding: 0 32px 40px; }
    .kpt-collectie { padding: 40px 32px; gap: 32px; }
    .kpt-brievenbus-wrap { padding: 24px 32px 40px; }
}
