/* ── kies-softwarepakket.css ─────────────────────────────────────────────────
   Page-specific styles for templates/pages/producten/kies-softwarepakket.html.twig
   Package grid only — shared tokens and cw-* utilities come from site.css.
   ──────────────────────────────────────────────────────────────────────────── */

.pkg-section {
    background-color: var(--cw-bg-soft);
    padding: 0 0 50px;
}

.pkg-page__title {
    text-align: center;
    text-transform: uppercase;
    font-weight: 900;
}

/* ── Package grid ─────────────────────────────────────────────────────────── */

.pkg-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
    align-items: stretch;
}

/* ── Package card ───────────────────────────────────────────────────────────── */

.pkg-card {
    display: flex;
    flex-direction: column;
    background: var(--cw-bg-white);
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius-md);
    box-shadow: var(--cw-shadow-card);
    overflow: hidden;
    position: relative;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.pkg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cw-blue) 0%, var(--cw-blue-dark) 100%);
    opacity: 0.55;
}

.pkg-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(104, 152, 171, 0.2);
}

.pkg-card--featured {
    border-color: var(--cw-blue);
    box-shadow: 0 12px 40px rgba(0, 147, 223, 0.22);
    z-index: 1;
}

.pkg-card--featured::before {
    height: 5px;
    opacity: 1;
}

.pkg-card--featured:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(0, 147, 223, 0.28);
}

/* ── Card header (plan name + price) ──────────────────────────────────────── */

.pkg-card__header {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 8.5rem;
    padding: 1.75rem 1.5rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--cw-border);
    background: linear-gradient(180deg, var(--cw-bg-light) 0%, var(--cw-bg-white) 100%);
    box-sizing: border-box;
}

.pkg-card--featured .pkg-card__header {
    background: linear-gradient(180deg, rgba(0, 147, 223, 0.08) 0%, var(--cw-bg-white) 100%);
}

.pkg-card__name {
    margin: 0;
    font-family: var(--cw-font-display);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--cw-navy);
    letter-spacing: 0.02em;
}

.pkg-card__price {
    margin: 0.875rem 0 0;
    font-family: var(--cw-font-body);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--cw-blue);
}

.pkg-card__price-note {
    margin: 0.5rem 0 0;
    min-height: 1.15rem;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--cw-text-light);
}

/* ── Feature list ─────────────────────────────────────────────────────────── */

.pkg-card__body {
    flex: 1 1 auto;
    padding: 1.25rem 1.5rem 0.5rem;
}

.pkg-card__features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pkg-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--cw-text-muted);
    font-weight: 400;
}

.pkg-feature::before {
    content: '';
    flex: 0 0 1.1rem;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.1rem;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230093df'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 14.5l-4-4 1.41-1.41L10 13.67l6.59-6.59L18 8.5l-8 8z'/%3E%3C/svg%3E");
}

/* ── Card footer / CTA ────────────────────────────────────────────────────── */

.pkg-card__footer {
    padding: 1rem 1.5rem 1.5rem;
    margin-top: auto;
}

.pkg-card__cta {
    display: block;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
    font-size: 0.8125rem !important;
    line-height: 1.35 !important;
    padding: 10px 14px !important;
    white-space: normal;
}

/* ── Footnote (unchanged layout) ──────────────────────────────────────────── */

.pkg-footnote {
    margin-top: 2rem;
    text-align: center;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 991px) {
    .pkg-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .pkg-card--featured {
        order: -1;
    }
}

@media (max-width: 575px) {
    .pkg-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .pkg-card__header {
        padding: 1.5rem 1.25rem 1rem;
    }

    .pkg-card__body {
        padding: 1rem 1.25rem 0.5rem;
    }

    .pkg-card__footer {
        padding: 0.75rem 1.25rem 1.25rem;
    }
}
