/* ==========================================================
   diensten-upgrade.css  -  laden NA main.css (alleen op diensten.html)
   Eigen klassen met prefix "pk-", zodat ze niet botsen met main.css
   (daar staat o.a. 'text-transform: capitalize' op .pakket-card).
   Effecten: alleen transform/opacity.
   ========================================================== */

:root {
    --vd-brand: #3a3d78;
    --vd-brand-dark: #2b2e5e;
    --vd-ink: #1f2330;
    --vd-soft: #eef0f6;
    --vd-line: #d8dbe8;
    --vd-muted: #5b6176;
}

/* Scherpe koppen: de tekstschaduw uit main.css maakt ze wazig */
h1,
h2,
h3 {
    text-shadow: none !important;
}

/* Logo: de animatie in main.css bleef met 'forwards' vastzitten en blokkeerde hover */
.logo img {
    opacity: 1;
    animation: slideInFromLeft 1.2s ease-out backwards;
    transition: transform 0.3s ease;
}
.logo img:hover {
    transform: scale(1.05);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Pagina ---------- */
.pk {
    max-width: 1180px;
    margin: 0 auto;
    padding: 72px 5% 24px;
}
.pk,
.pk *,
.pk *::before,
.pk *::after {
    box-sizing: border-box;
}

.pk-intro {
    max-width: 760px;
    margin: 0 auto 64px;
    text-align: center;
}
.pk-intro h1 {
    font-size: clamp(2.1rem, 4.2vw, 3.2rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
    margin: 0 0 1.25rem;
    animation: pk-reveal 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
.pk-lead {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    line-height: 1.6;
    color: #444a5e;
    margin: 0;
    animation: pk-rise 0.6s 0.3s ease-out backwards;
}

/* Sectiekoppen: links met een lijn die de groep afbakent (zoals op de projectenpagina) */
.pk-section {
    margin-top: 96px;
}
.pk h2 {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-align: left;
    font-size: 1.6rem;
    margin: 0 0 2rem;
}
.pk h2::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--vd-line);
}

/* ---------- Pakketkaarten ---------- */
.pk-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.pk-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px 28px;
    background: #fff;
    border: 1px solid var(--vd-line);
    border-radius: 16px;
    scroll-margin-top: 120px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
/* Lichtvlek die de cursor volgt: onzichtbaar tot je erover beweegt */
.pk-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(58, 61, 120, 0.09), transparent 65%);
}
.pk-card:hover::before {
    opacity: 1;
}
.pk-card > * {
    position: relative;
    z-index: 1;
}
.pk-card:hover {
    transform: translateY(-4px);
    border-color: var(--vd-brand);
    box-shadow: 0 22px 40px -26px rgba(43, 46, 94, 0.5);
}

/* Het uitgebreidste pakket valt op door een gekleurde rand, niet door een andere kaartstijl */
.pk-card--featured {
    border-color: var(--vd-brand);
    box-shadow: 0 0 0 1px var(--vd-brand), 0 22px 40px -28px rgba(43, 46, 94, 0.45);
}

.pk-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.pk-tag,
.pk-badge {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
}
.pk-tag {
    background: var(--vd-soft);
    color: var(--vd-brand);
}
.pk-badge {
    background: var(--vd-brand);
    color: #fff;
}

.pk-card h3 {
    margin: 0 0 0.4rem;
    font-size: 1.6rem;
    line-height: 1.2;
    text-align: left;
    color: var(--vd-ink);
}
.pk-card .pk-sub {
    margin: 0 0 1.5rem;
    min-height: 3.2em;
    font-size: 1rem;
    line-height: 1.55;
    text-align: left;
    color: #444a5e;
}

.pk-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.6rem;
    margin: 0 0 1.5rem;
}
.pk-amount {
    font-size: 2.7rem;
    font-weight: 700;
    line-height: 1;
    color: var(--vd-ink);
}
.pk-vat {
    font-size: 0.9rem;
    color: var(--vd-muted);
}

/* Knoppen */
.pk-btn {
    display: inline-block;
    text-align: center;
    background: var(--vd-brand);
    color: #fff;
    padding: 14px 24px;
    border: 2px solid var(--vd-brand);
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.pk-btn:hover,
.pk-btn:focus-visible {
    background: var(--vd-brand-dark);
    border-color: var(--vd-brand-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(61, 64, 119, 0.28);
}
.pk-btn--ghost {
    background: transparent;
    color: var(--vd-brand);
}
.pk-card .pk-btn {
    width: 100%;
}

/* Wat je krijgt */
.pk-list {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    margin: 1.75rem 0 0;
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--vd-line);
}
.pk-list li {
    position: relative;
    padding-left: 1.6rem;
    line-height: 1.5;
    text-align: left;
    color: var(--vd-ink);
}
.pk-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--vd-brand);
}
.pk-list small {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.9rem;
    color: var(--vd-muted);
}

.pk-note {
    max-width: 62ch;
    margin: 2rem auto 0;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--vd-muted);
}

/* ---------- Welk pakket past bij jou ---------- */
.pk-help {
    max-width: 760px;
    margin: 96px auto 0;
}
.pk-help-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pk-help-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--vd-line);
    color: var(--vd-ink);
}
.pk-help-list a {
    font-weight: 700;
    color: var(--vd-brand);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}
.pk-help-list a:hover,
.pk-help-list a:focus-visible {
    color: var(--vd-brand-dark);
}

/* ---------- Samenwerking ---------- */
.pk-principles {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin: 0 0 40px;
    padding: 0;
}
.pk-principles i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--vd-soft);
    color: var(--vd-brand);
    font-size: 1.25rem;
}
.pk-principles h3 {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
    text-align: left;
}
.pk-principles p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
    color: #444a5e;
}

.pk-care {
    padding: 32px;
    background: var(--vd-soft);
    border-radius: 16px;
}
.pk-care h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    font-size: 1.3rem;
    text-align: left;
    color: var(--vd-ink);
}
.pk-care h3 i {
    color: var(--vd-brand);
}
.pk-care .pk-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem 2rem;
    margin-top: 1.25rem;
    padding-top: 0;
    border-top: 0;
}

/* ---------- FAQ ---------- */
.pk-faq {
    max-width: 760px;
    margin: 96px auto 0;
}
.pk-faq details {
    padding: 1rem 0;
    border-bottom: 1px solid var(--vd-line);
}
.pk-faq summary {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--vd-ink);
}
.pk-faq summary::-webkit-details-marker {
    display: none;
}
.pk-faq summary::after,
.pk-faq details[open] summary::after {
    content: "+";
    float: none;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--vd-brand);
    transition: transform 0.2s ease;
}
.pk-faq details[open] summary::after {
    transform: rotate(45deg);
}
.pk-faq details p {
    margin: 0.75rem 0 0;
    font-size: 1rem;
    line-height: 1.65;
    text-align: left;
    color: #444a5e;
}

/* ---------- Slotactie ---------- */
.pk-cta {
    max-width: 1100px;
    margin: 96px auto 0;
    padding: 56px 24px;
    text-align: center;
    background: var(--vd-soft);
    border-radius: 16px;
}
.pk-cta h2 {
    display: block;
    text-align: center;
    margin: 0 0 0.75rem;
}
.pk-cta h2::after {
    display: none;
}
.pk-cta p {
    max-width: 52ch;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
    text-align: center;
}

/* ---------- Toegankelijkheid ---------- */
a:focus-visible,
summary:focus-visible,
button:focus-visible {
    outline: 3px solid var(--vd-brand);
    outline-offset: 3px;
}

/* ---------- Laadmoment: alleen de kop en de inleiding ---------- */
@keyframes pk-reveal {
    from {
        clip-path: inset(0 0 100% 0);
        transform: translateY(24px);
    }
    to {
        clip-path: inset(-10% -5% -10% -5%);
        transform: none;
    }
}
@keyframes pk-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Responsief ---------- */
@media (max-width: 900px) {
    .pk-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }
    .pk-card .pk-sub {
        min-height: 0;
    }
    .pk-principles {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .pk-section,
    .pk-help,
    .pk-faq,
    .pk-cta {
        margin-top: 72px;
    }
}
@media (max-width: 600px) {
    .pk {
        padding-top: 48px;
    }
    .pk-intro {
        margin-bottom: 44px;
    }
    .pk-card {
        padding: 26px 22px;
    }
    .pk-care {
        padding: 24px 20px;
    }
    .pk-cta {
        margin: 64px 20px 0;
        padding: 40px 20px;
    }
}

/* Respecteer wie animaties liever uit heeft */
@media (prefers-reduced-motion: reduce) {
    .pk-intro h1,
    .pk-lead,
    .logo img {
        animation: none;
    }
    .pk-card,
    .pk-card::before,
    .pk-btn,
    .pk-faq summary::after,
    .logo img {
        transition: none;
    }
    .pk-card:hover {
        transform: none;
    }
}