/* ==========================================================================
   Kinderplezier — Homepage Desktop
   ========================================================================== */

/* --- Nudica @font-face (standalone template needs its own declarations) --- */
@font-face {
    font-family: "Nudica";
    src: url("../fonts/nudica-regular-webfont.woff2") format("woff2"),
         url("../fonts/nudica-regular-webfont.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Nudica";
    src: url("../fonts/nudica-medium-webfont.woff2") format("woff2"),
         url("../fonts/nudica-medium-webfont.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Nudica";
    src: url("../fonts/nudica-bold-webfont.woff2") format("woff2"),
         url("../fonts/nudica-bold-webfont.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --- Design tokens --- */
:root {
    --color-primary: #ff5d00;
    --color-accent: #ffd400;
    --color-green: #00aa55;
    --color-bg: #fbfbf6;
    --color-text: #1d1d1b;
    --color-white: #ffffff;
    --color-shadow: rgba(0,0,0,0.12);
    --radius-card: 16px;
    --radius-btn: 50px;
    --shadow-card: 4px 4px 12px var(--color-shadow);
    --max-width: 1440px;
    --font-heading: "PeachyKeenJF", Helvetica, sans-serif;
    --font-body: "Nudica", Helvetica, sans-serif;
}

/* --- Page wrapper --- */
.kph-page {
    background: var(--color-bg);
}


/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  SHARED COMPONENTS                                                    ║
   ║  Header, footer, CTA buttons, cards, stats bar, reviews.             ║
   ║  These styles are reused on every page template.                      ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

/* ---------- Header ----------------------------------------------------- */
.kph-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-white);
    height: 80px;
}

.kph-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 60px;
    height: 100%;
}

.kph-header__left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.kph-header__logo {
    width: 126px;
    height: 61px;
    flex-shrink: 0;
}

.kph-header__logo a { display: block; }

.kph-header__logo img {
    width: 126px;
    height: 61px;
    object-fit: contain;
}

/* Header — main nav pills */
.kph-header__nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kph-header__nav a {
    background: #e9e8e3;
    border-radius: 32px;
    padding: 8px 16px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.kph-header__nav a:hover { background: #dddcd7; }

/* Header — trust bar marquee */
.kph-header__trust {
    flex: 1 1 0%;
    min-width: 0;
    overflow: hidden;
    margin: 0 24px;
    height: 20px;
    mask-image: linear-gradient(to right, transparent, black 32px, black calc(100% - 32px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 32px, black calc(100% - 32px), transparent);
}

.kph-header__trust-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    width: max-content;
    animation: kph-marquee 20s linear infinite;
}

.kph-header__trust-track:hover { animation-play-state: paused; }

@keyframes kph-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.kph-header__trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    margin-right: 48px;
}

.kph-header__trust-item .star-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.kph-header__trust-item span {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    color: var(--color-text);
}

/* Header — service menu */
.kph-header__service {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.kph-header__service a {
    border: 1px solid #d9d9d9;
    border-radius: 32px;
    padding: 8px 16px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 12px;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.kph-header__service a:hover { background: #f5f5f5; }

.kph-header__service a.account-btn {
    background: var(--color-text);
    color: var(--color-white);
    border-color: var(--color-text);
}

.kph-header__service a.account-btn:hover { background: #333; }

/* ---------- CTA button (pill) ------------------------------------------ */
/* Used on every page for primary call-to-action links.                    */
.kph-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    border-radius: var(--radius-btn);
    padding: 16px 40px;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 32px;
    color: var(--color-white);
    text-decoration: none;
    box-shadow: 4px 4px 4px rgba(0,0,0,0.25);
    transition: background 0.2s;
}

.kph-cta-btn:hover { background: #e65300; }

/* ---------- Content card ----------------------------------------------- */
/* White or orange card with heading, body text, and pill button.          */
.kph-card {
    flex: 1;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 48px;
}

.kph-card--white  { background: var(--color-white); }
.kph-card--orange { background: var(--color-primary); }

.kph-card h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 32px;
    margin: 0 0 16px;
}

.kph-card--white h3  { color: var(--color-text); }
.kph-card--orange h3 { color: var(--color-bg); }

.kph-card__body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 28px;
}

.kph-card--white .kph-card__body  { color: var(--color-text); }
.kph-card--orange .kph-card__body { color: var(--color-bg); }

.kph-card__body p { margin: 0 0 12px; }

.kph-card__btn {
    display: inline-block;
    border-radius: 25px;
    padding: 8px 20px;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 16px;
    text-decoration: none;
    margin-top: 24px;
    transition: opacity 0.2s;
}

.kph-card__btn:hover { opacity: 0.9; }

.kph-card--white .kph-card__btn  { background: var(--color-primary); color: var(--color-white); }
.kph-card--orange .kph-card__btn { background: var(--color-white); color: var(--color-primary); }

/* ---------- Stats bar -------------------------------------------------- */
/* Horizontal bar with 2 trust pills. Reused standalone and inside         */
/* the reviews section.                                                    */
.kph-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    align-items: center;
    padding: 32px 60px;
    background: var(--color-bg);
}

.kph-stats__pill {
    background: var(--color-white);
    border-radius: 8px;
    padding: 12px 24px;
    min-width: 320px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.kph-stats__pill-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.kph-stats__pill-icon svg {
    width: 24px;
    height: 24px;
}

.kph-stats__pill span {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 18px;
    color: var(--color-text);
}

/* ---------- Reviews ---------------------------------------------------- */
/* Carousel of review cards with navigation arrows.                        */
.kph-reviews {
    background: #e9e5e0;
    border-radius: var(--radius-card);
    margin: 0 26px;
    padding: 64px 0;
    position: relative;
}

/* Stats bar inside reviews — transparent bg override */
.kph-reviews .kph-stats {
    background: transparent;
    padding-top: 48px;
    padding-bottom: 0;
}

.kph-reviews__cards {
    display: flex;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
    overflow: hidden;
}

.kph-review-card {
    background: rgba(233,229,224,0.85);
    border-radius: 10px;
    border: 1px solid var(--color-white);
    box-shadow: 0 0 12px rgba(0,0,0,0.1);
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    min-width: 320px;
    flex: 1;
}

.kph-review-card__stars {
    display: flex;
    gap: 4px;
}

.kph-review-card__stars svg {
    width: 32px;
    height: 32px;
    fill: var(--color-accent);
}

.kph-review-card__text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    color: #000;
    line-height: 28px;
    text-align: center;
    margin: 0;
}

.kph-review-card__name {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 24px;
    color: #000;
    margin: 0;
}

.kph-reviews__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-white);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 2;
}

.kph-reviews__arrow:hover { background: #f5f5f5; }

.kph-reviews__arrow--left  { left: 32px; }
.kph-reviews__arrow--right { right: 32px; }

.kph-reviews__arrow svg {
    width: 20px;
    height: 20px;
    fill: var(--color-text);
}

/* ---------- Merken (publisher logos) ----------------------------------- */
/* Horizontal row of publisher/brand logos with edge fade.                 */
.kph-merken {
    padding: 64px 0;
    position: relative;
    text-align: center;
}

.kph-merken h2 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 32px;
    color: #000;
    margin: 0 0 32px;
}

.kph-merken__logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 48px;
    padding: 0 80px;
}

.kph-merken__logos img {
    mix-blend-mode: multiply;
    height: 80px;
    width: auto;
    object-fit: contain;
}

.kph-merken__fade-left,
.kph-merken__fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    pointer-events: none;
    z-index: 1;
}

.kph-merken__fade-left {
    left: 0;
    background: linear-gradient(to right, var(--color-bg), transparent);
}

.kph-merken__fade-right {
    right: 0;
    background: linear-gradient(to left, var(--color-bg), transparent);
}

/* ---------- Footer ----------------------------------------------------- */
.kph-footer {
    background: var(--color-white);
    padding: 24px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kph-footer__copyright {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    color: #000;
}

.kph-footer__copyright a {
    color: var(--color-primary);
    text-decoration: none;
}

.kph-footer__copyright a:hover { text-decoration: underline; }

.kph-footer__nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kph-footer__nav a {
    background: var(--color-bg);
    border-radius: 24px;
    padding: 8px 12px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    color: #000;
    text-decoration: none;
    transition: background 0.2s;
}

.kph-footer__nav a:hover { background: #ece8e3; }


/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  PAGE-SPECIFIC: HOMEPAGE                                             ║
   ║  Sections unique to home-desktop.php.                                 ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

/* ---------- Intro ------------------------------------------------------ */
.kph-intro {
    background: var(--color-bg);
    text-align: center;
    padding: 48px 60px 24px;
}

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

.kph-intro__line2 {
    display: block;
    font-size: 32px;
}

.kph-intro__subtitle {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    color: var(--color-text);
    max-width: 800px;
    margin: 16px auto 0;
    line-height: 1.6;
}

/* ---------- Hero orange box -------------------------------------------- */
.kph-hero {
    background: var(--color-primary);
    border-radius: var(--radius-card);
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    min-height: 478px;
    overflow: hidden;
}

.kph-hero__books {
    width: 720px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.kph-hero__book {
    position: absolute;
    border-radius: 8px;
    object-fit: cover;
    filter: drop-shadow(4px 6px 8px rgba(0,0,0,0.35));
    transition: transform 0.2s ease;
}

.kph-hero__book--1 { width: 220px; top: 30px;  left: 80px;  transform: rotate(-4deg); }
.kph-hero__book--2 { width: 130px; top: 270px; left: 160px; transform: rotate(-2deg); }
.kph-hero__book--3 { width: 140px; top: 50px;  left: 260px; transform: rotate(3deg);  }
.kph-hero__book--4 { width: 135px; top: 220px; left: 40px;  transform: rotate(2deg);  }
.kph-hero__book--5 { width: 145px; top: 190px; left: 360px; transform: rotate(-3deg); }
.kph-hero__book--6 { width: 140px; top: 90px;  left: 380px; transform: rotate(2deg);  }

.kph-hero__content {
    flex: 1;
    padding: 64px 60px 48px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kph-hero__heading {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 28px;
    color: var(--color-white);
    line-height: 36px;
    margin: 0;
}

.kph-hero__categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 40px;
}

.kph-hero__categories ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kph-hero__categories li {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 20px;
    color: var(--color-white);
    line-height: 28px;
}

.kph-hero__cta {
    align-self: flex-start;
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ff3f00;
    border: 4px solid var(--color-white);
    border-radius: 40px;
    width: 480px;
    height: 88px;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 28px;
    color: var(--color-bg);
    text-decoration: none;
    transition: background 0.2s;
}

.kph-hero__cta:hover { background: #e63500; }

/* ---------- Specials --------------------------------------------------- */
.kph-specials {
    text-align: center;
    padding: 32px 60px 0;
}

.kph-specials__heading {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 24px;
    color: var(--color-text);
    margin: 0 0 24px;
}

.kph-specials__cards {
    display: flex;
    gap: 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.kph-special-card {
    flex: 1;
    min-height: 434px;
    padding: 48px 40px 40px;
    border-radius: var(--radius-card);
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kph-special-card--nijntje     { background: var(--color-accent); }
.kph-special-card--prentenboek { background: var(--color-green); }

.kph-special-card h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 36px;
    text-align: center;
    margin: 0 0 16px;
}

.kph-special-card--nijntje h3      { color: #000; }
.kph-special-card--prentenboek h3  { color: var(--color-bg); }

.kph-special-card p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    text-align: center;
    max-width: 380px;
    margin: 0 auto 24px;
}

.kph-special-card--nijntje p      { color: #000; }
.kph-special-card--prentenboek p  { color: var(--color-bg); }

.kph-special-card__btn {
    background: var(--color-white);
    border-radius: 25px;
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 16px;
    color: var(--color-text);
    text-decoration: none;
    margin-top: auto;
    display: inline-block;
    transition: background 0.2s;
}

.kph-special-card__btn:hover { background: #f0f0f0; }

/* Specials — book rows (shared base) */
.kph-nijntje-books,
.kph-prentenboek-books {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin: 24px auto 16px;
    width: 100%;
}

.kph-nijntje-books img,
.kph-prentenboek-books img {
    width: auto;
    filter: drop-shadow(3px 5px 8px rgba(0,0,0,0.3));
    border-radius: 4px;
}

.kph-nijntje-books img     { height: 120px; }
.kph-prentenboek-books img { height: 140px; }

.kph-nijntje-books img:nth-child(1) { transform: rotate(-8deg); margin-right: -15px; }
.kph-nijntje-books img:nth-child(2) { transform: rotate(-4deg); margin-right: -15px; }
.kph-nijntje-books img:nth-child(3) { transform: rotate(0deg);  margin-right: -15px; }
.kph-nijntje-books img:nth-child(4) { transform: rotate(4deg);  margin-right: -15px; }
.kph-nijntje-books img:nth-child(5) { transform: rotate(8deg); }

.kph-prentenboek-books img:nth-child(1) { transform: rotate(-6deg); margin-right: -12px; }
.kph-prentenboek-books img:nth-child(2) { transform: rotate(-3deg); margin-right: -12px; }
.kph-prentenboek-books img:nth-child(3) { transform: rotate(0deg);  margin-right: -12px; }
.kph-prentenboek-books img:nth-child(4) { transform: rotate(4deg);  margin-right: -12px; }
.kph-prentenboek-books img:nth-child(5) { transform: rotate(8deg);  height: 160px; }

/* ---------- Main CTA section ------------------------------------------- */
.kph-main-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 48px 0;
}

.kph-main-cta__note {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 16px;
    color: var(--color-text);
    text-align: center;
    margin: 0;
}

/* ---------- How it works ----------------------------------------------- */
.kph-how {
    position: relative;
}

.kph-how__photo-wrap {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.kph-how__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kph-how__overlay {
    position: absolute;
    top: 12%;
    left: 6%;
    width: 36%;
}

.kph-how__overlay h2 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 80px;
    color: var(--color-bg);
    line-height: 80px;
    margin: 0;
}

.kph-how__overlay h2 span {
    display: block;
    line-height: 90px;
}

.kph-how__overlay-sub {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 48px;
    color: var(--color-bg);
    margin: 16px 0 0;
}

.kph-how__cards {
    display: flex;
    gap: 24px;
    padding: 0 80px 48px;
    position: relative;
    margin-top: -120px;
    z-index: 10;
}

.kph-how__card {
    background: var(--color-white);
    border-radius: var(--radius-card);
    box-shadow: 4px 4px 16px rgba(0,0,0,0.15);
    flex: 1;
    padding: 32px 24px;
    text-align: center;
    position: relative;
}

.kph-how__card-number {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    border: 3px solid var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 28px;
    color: var(--color-white);
    line-height: 1;
}

.kph-how__card-icon {
    width: 64px;
    height: 64px;
    margin: 16px auto;
}

.kph-how__card-icon svg,
.kph-how__card-icon img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.kph-how__card p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 20px;
    color: var(--color-text);
    line-height: 32px;
    margin: 16px 0 0;
}

.kph-how__note {
    text-align: center;
    padding: 0 80px 48px;
}

.kph-how__note p {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 24px;
    color: #000;
    margin: 0;
}

/* ---------- Yellow info band ------------------------------------------- */
.kph-yellow {
    background: var(--color-accent);
    border-radius: 16px 16px 0 0;
    padding: 64px 60px;
    text-align: center;
}

.kph-yellow h2 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 44px;
    color: var(--color-text);
    line-height: 44px;
    margin: 0;
}

.kph-yellow__subtitle {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    color: #000;
    line-height: 32px;
    max-width: 1000px;
    margin: 16px auto 0;
}

/* ---------- Two cards row ---------------------------------------------- */
.kph-two-cards {
    display: flex;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 60px;
}

/* ---------- Second CTA ------------------------------------------------- */
.kph-second-cta {
    display: flex;
    justify-content: center;
    padding: 40px 0;
    background: var(--color-accent);
}

/* ---------- Wij geloven ------------------------------------------------ */
.kph-geloven {
    position: relative;
    overflow: hidden;
}

.kph-geloven__photo-wrap {
    position: relative;
    width: 100%;
    height: 500px;
}

.kph-geloven__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kph-geloven__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 60%);
}

.kph-geloven__text {
    position: absolute;
    bottom: 15%;
    left: 0;
    right: 0;
    text-align: center;
}

.kph-geloven__text p {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 44px;
    color: var(--color-white);
    line-height: 56px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 60px;
}
