/* ==========================================================================
   Nijntjepakket Mobile — V4 mobile styles
   Prefix: kpnm-
   Depends on shared.css
   ========================================================================== */

/* --- Page title --- */
.kpnm-title {
    padding: 32px 20px 24px;
    text-align: center;
}
.kpnm-title h1 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 28px;
    color: var(--color-text);
    margin: 0;
    line-height: 1.1;
}

/* --- Hero — yellow card --- */
.kpnm-hero {
    /* padding-top (not margin-top) carries the room above the card: overflow-x:hidden
       forces overflow-y to "auto" (CSS spec), which would otherwise CLIP the half-out
       price badge's upper half and the book-image top. Keeping the badge's upward extent
       INSIDE this padded box stops that clip (Willem #6). */
    padding: 44px 20px 24px;
    margin-top: 16px;
    overflow-x: hidden;
}
.kpnm-hero__card {
    position: relative;
    background: var(--color-accent);
    border-radius: var(--radius-card);
    /* top padding leaves room under the half-out badge for the book image so its
       top is no longer clipped by the card edge (Willem #6: "image cut off on top"). */
    padding: 48px 20px 24px;
    overflow: visible;
}
/* Willem #6 (vervolg): prijsknaller op mobiel — gecentreerd, half-in/half-out op
   de bovenrand van de gele kaart, net als desktop (.kpn-hero__price). Spiegelt de
   gedeelde mobiele pakket-cirkel (.kpm-pakket-collectie__price) qua maat/stijl. */
.kpnm-hero__price {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-white);
    border: 4px solid var(--color-accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 5;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}
.kpnm-hero__price-from {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 13px;
    color: var(--color-text);
    text-decoration: line-through;
    line-height: 1;
}
.kpnm-hero__price-amount {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 21px;
    color: var(--color-text);
    line-height: 1.1;
}
.kpnm-hero__price-text {
    display: block;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 9px;
    color: var(--color-text);
    line-height: 1.15;
}
.kpnm-hero__books {
    margin: 0 -40px 20px;   /* was -80px top: that bleed clipped the image top (Willem #6) */
}
.kpnm-hero__books img {
    width: 100%;
    height: auto;
    display: block;
}
.kpnm-hero__desc {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 20px;
}
.kpnm-hero__desc p {
    margin: 0 0 14px;
}
.kpnm-hero__desc p:last-child {
    margin-bottom: 0;
}
.kpnm-hero__desc p:first-child {
    font-weight: 700;
}
.kpnm-hero__btn {
    display: block;
    width: 100%;
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 20px;
    padding: 8px 20px;
    border-radius: var(--radius-btn);
    text-decoration: none;
    text-align: center;
}

/* --- Info — Over nijntje en haar vriendjes --- */
.kpnm-info {
    padding: 60px 20px 0;
}
.kpnm-info__card {
    position: relative;
    background: #007129;
    border-radius: var(--radius-card);
    padding: 32px 20px 24px;
    color: var(--color-white);
}
.kpnm-info__chars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 240px;
    margin: 0 auto 24px;
    margin-top: -70px;
}
.kpnm-info__chars img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.18));
}
.kpnm-info__heading {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 24px;
    color: var(--color-white);
    margin: 0 0 16px;
    line-height: 1.2;
}
.kpnm-info__text {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-white);
    line-height: 1.6;
    margin-bottom: 24px;
}
.kpnm-info__text p {
    margin: 0 0 14px;
    font-weight: 400 !important;
}
.kpnm-info__text p:last-child {
    margin-bottom: 0;
}
.kpnm-info__btn {
    display: block;
    width: 100%;
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 17px;
    padding: 8px 16px;
    border-radius: var(--radius-btn);
    text-decoration: none;
    text-align: center;
}

/* --- Dick Bruna section (blue card, matches green info block layout) --- */
.kpnm-bruna {
    padding: 60px 20px 0;
}
.kpnm-bruna__card {
    position: relative;
    background: #005599;
    border-radius: var(--radius-card);
    padding: 32px 20px 24px;
    color: var(--color-white);
}
.kpnm-bruna__photo {
    margin: 0 0 20px;
}
.kpnm-bruna__photo img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}
.kpnm-bruna__heading {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 24px;
    color: var(--color-white);
    margin: 0 0 16px;
    line-height: 1.2;
}
.kpnm-bruna__text {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-white);
    line-height: 1.6;
    margin-bottom: 24px;
}
.kpnm-bruna__text p {
    margin: 0 0 14px;
    font-weight: 400 !important;
}
.kpnm-bruna__text p:last-child {
    margin-bottom: 0;
}

/* --- Orange CTA button --- */
.kpnm-cta {
    padding: 32px 20px;
}
.kpnm-cta__btn {
    display: block;
    width: 100%;
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 18px;
    padding: 14px 20px;
    border-radius: var(--radius-btn);
    text-decoration: none;
    text-align: center;
    min-height: 48px;
}

/* --- Order form section --- */
.kpnm-order {
    padding: 32px 20px 80px;
    /* Willem 26-Jun item 4: the round "Ik wil het pakket" badge straddles the
       order-form's rounded top edge (.kph-order-form has border-radius:20px,
       badge at top:-60px). On a REAL iPhone, iOS Safari clips that protruding
       badge to the rounded rect when the form itself carries a non-visible
       overflow (it honours overflow-x:clip differently than desktop Safari /
       the responsive inspector — hence "only cut off on device"). Fix: stop
       clipping on the rounded FORM (below) and move the horizontal clip — only
       needed for the bottom-image spill — up here to the SECTION, which has NO
       border-radius, so nothing rounds-clips the badge; overflow-x:clip never
       clips the badge's VERTICAL protrusion. ⚠ no iPhone on the dev box — Willem
       confirms on device. Side effect to check: the bottom image now clips at the
       section edge (≈20px wider each side) rather than the form edge. */
    overflow-x: clip;
}
.kpnm-order .kph-order-form {
    /* overflow:visible so the rounded form never clips the half-out badge on any
       browser (the robust cross-browser un-clip); horizontal spill is caught by
       the non-rounded section above. */
    overflow: visible;
}
.kpnm-order .kph-order-form__badge {
    left: 50%;
    transform: translateX(-50%);
}
.kpnm-order .kph-order-form__bottom-image {
    margin-left: -40px;
    margin-right: -40px;
}
