/* ============================================================
 * /diensten/ — keuzehulp + grid
 *
 * Eigen template (page-diensten-overzicht.php) met eigen CSS.
 * Volgt BEM, gebruikt design-tokens uit tokens.css.
 *
 * Secties:
 *  .dh-hero      — kop met intro
 *  .dh-wizard    — interactieve keuzehulp (3 stappen)
 *  .dh-grid      — overzicht van alle 5 categorieën
 *  .dh-cta       — eigen CTA-blok onderaan
 * ============================================================ */

/* ============================================================
 * Hero
 * ============================================================ */
.dh-hero {
    background: var(--dark);
    padding: 100px 0 60px;
    border-bottom: 1px solid var(--card-border);
}
.dh-hero .container {
    max-width: 840px;
}
.dh-hero .sec-lbl {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 16px;
}
.dh-hero__titel {
    font-family: var(--font-heading);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    color: var(--text);
    margin: 0 0 24px;
}
.dh-hero__titel .accent {
    color: var(--pink);
}
.dh-hero__sub {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-faint);
    max-width: 640px;
    margin: 0;
}

/* ============================================================
 * Wizard
 * ============================================================ */
.dh-wizard {
    background: var(--dark);
    padding: 80px 0 60px;
}
.dh-wizard__inner {
    max-width: 840px;
    margin: 0 auto;
    position: relative;
}

/* Stap-container */
.dh-step {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity var(--t-slow), max-height 0.6s ease;
    pointer-events: none;
    margin-bottom: 0;
}
.dh-step--active {
    opacity: 1;
    max-height: 2000px;
    pointer-events: auto;
    margin-bottom: 48px;
}
.dh-step--active + .dh-step:not(.dh-step--active) {
    /* dichter bij parent als volgende stap nog niet actief is */
    margin-bottom: 0;
}

.dh-step__header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 32px;
}
.dh-step__num {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 900;
    color: var(--pink);
    letter-spacing: -0.5px;
    flex-shrink: 0;
}
.dh-step__vraag {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
    letter-spacing: -1px;
    margin: 0;
}

/* Opties (knoppen) */
.dh-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (max-width: 640px) {
    .dh-options {
        grid-template-columns: 1fr;
    }
}

.dh-option {
    appearance: none;
    background: var(--card-bg);
    border: var(--card-border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 24px 24px 28px;
    text-align: left;
    cursor: pointer;
    transition: var(--card-transition);
    position: relative;
    overflow: hidden;
    color: inherit;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dh-option:hover {
    transform: var(--card-lift);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--pink);
}
.dh-option:focus-visible {
    outline: 2px solid var(--pink);
    outline-offset: 2px;
}

/* Pink hover-line onderaan */
.dh-option::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--pink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-slow);
}
.dh-option:hover::after,
.dh-option--selected::after {
    transform: scaleX(1);
}

.dh-option--selected {
    border-color: var(--pink);
    background: linear-gradient(180deg, rgba(196, 0, 88, 0.08), rgba(196, 0, 88, 0));
}

.dh-option__titel {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
    letter-spacing: -0.3px;
}
.dh-option__sub {
    font-size: 13px;
    color: var(--text-faint);
    line-height: 1.4;
}

/* Resultaat-kaart (stap 3) */
.dh-result {
    display: block;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    border-radius: var(--card-radius);
    padding: 40px 32px;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 12px 40px rgba(196, 0, 88, 0.3);
    transition: var(--card-transition);
    position: relative;
    overflow: hidden;
}
.dh-result::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}
.dh-result::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: 40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}
.dh-result:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(196, 0, 88, 0.4);
}
.dh-result__label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}
.dh-result__titel {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    color: #fff;
    margin: 0 0 12px;
    position: relative;
    z-index: 1;
}
.dh-result__uitleg {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 24px;
    max-width: 560px;
    position: relative;
    z-index: 1;
}
.dh-result__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    transition: var(--t-base);
    position: relative;
    z-index: 1;
}
.dh-result:hover .dh-result__cta {
    background: rgba(255, 255, 255, 0.25);
}

/* Alternatieven onder de result */
.dh-alts {
    margin-top: 32px;
}
.dh-alts__label {
    display: block;
    font-size: 13px;
    color: var(--text-faint);
    margin-bottom: 12px;
}
.dh-alts__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 640px) {
    .dh-alts__list {
        grid-template-columns: 1fr;
    }
}
.dh-alt {
    display: block;
    padding: 16px 20px;
    background: var(--card-bg);
    border: var(--card-border);
    border-radius: var(--card-radius);
    text-decoration: none;
    transition: var(--card-transition);
}
.dh-alt:hover {
    transform: var(--card-lift);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--pink);
}
.dh-alt__titel {
    display: block;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}
.dh-alt__sub {
    display: block;
    font-size: 12px;
    color: var(--text-faint);
    line-height: 1.4;
}

/* Reset knop */
.dh-reset {
    appearance: none;
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-faint);
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 8px;
    margin: 32px auto 0;
    transition: var(--t-base);
    font-family: inherit;
}
.dh-reset--visible {
    display: inline-flex;
}
.dh-reset:hover {
    color: var(--pink);
    border-color: var(--pink);
}
.dh-reset svg {
    flex-shrink: 0;
}

/* ============================================================
 * Grid (5 categorieën)
 * ============================================================ */
.dh-grid {
    background: var(--dark);
    padding: var(--section-pad-y) 0;
    border-top: 1px solid var(--card-border);
}

.dh-grid__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}
.dh-grid__header .sec-lbl {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 16px;
}
.dh-grid__titel {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--text);
    margin: 0 0 16px;
}
.dh-grid__titel .accent {
    color: var(--pink);
}
.dh-grid__intro {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-faint);
    margin: 0;
}

.dh-grid__categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 960px) {
    .dh-grid__categories {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .dh-grid__categories {
        grid-template-columns: 1fr;
    }
}

.dh-cat {
    background: var(--card-bg);
    border: var(--card-border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    transition: var(--card-transition);
    position: relative;
    overflow: hidden;
}
.dh-cat::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--pink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-slow);
}
.dh-cat:hover {
    transform: var(--card-lift);
    box-shadow: var(--card-shadow-hover);
}
.dh-cat:hover::after {
    transform: scaleX(1);
}

.dh-cat__header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--card-border);
}
.dh-cat__titel {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
    margin: 0 0 8px;
}
.dh-cat__sub {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-faint);
    margin: 0;
}

.dh-cat__list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    flex: 1;
}
.dh-cat__list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--card-border);
}
.dh-cat__list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.dh-cat__list a {
    display: block;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    line-height: 1.3;
    margin-bottom: 2px;
    transition: var(--t-fast);
}
.dh-cat__list a:hover {
    color: var(--pink);
}
.dh-cat__list span {
    display: block;
    font-size: 12px;
    color: var(--text-faint);
    line-height: 1.4;
}

.dh-cat__hoofdlink {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--pink);
    text-decoration: none;
    padding-top: 12px;
    border-top: 1px solid var(--card-border);
    transition: var(--t-fast);
}
.dh-cat__hoofdlink:hover {
    color: var(--text);
}

/* ============================================================
 * CTA-final (eigen blok ipv shared template)
 * ============================================================ */
.dh-cta {
    background: var(--anthracite);
    padding: var(--section-pad-y) 0;
}
.dh-cta__inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.dh-cta__label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 16px;
}
.dh-cta__titel {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--text);
    margin: 0 0 16px;
}
.dh-cta__sub {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-faint);
    margin: 0 0 32px;
}
.dh-cta__btn {
    display: inline-block;
    padding: 16px 32px;
    background: var(--pink);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 16px;
    transition: var(--t-base);
}
.dh-cta__btn:hover {
    background: var(--purple);
    transform: translateY(-2px);
}

/* ============================================================
 * Light-mode varianten
 * (toggle via body.is-hybrid)
 * ============================================================ */
.homepage-v2.is-hybrid .dh-hero,
.homepage-v2.is-hybrid .dh-wizard,
.homepage-v2.is-hybrid .dh-grid {
    background: var(--light-bg);
    border-color: var(--light-border);
}
.homepage-v2.is-hybrid .dh-hero__titel,
.homepage-v2.is-hybrid .dh-step__vraag,
.homepage-v2.is-hybrid .dh-grid__titel,
.homepage-v2.is-hybrid .dh-option__titel,
.homepage-v2.is-hybrid .dh-cat__titel,
.homepage-v2.is-hybrid .dh-alt__titel,
.homepage-v2.is-hybrid .dh-cat__list a {
    color: var(--light-text);
}
.homepage-v2.is-hybrid .dh-hero__sub,
.homepage-v2.is-hybrid .dh-grid__intro,
.homepage-v2.is-hybrid .dh-option__sub,
.homepage-v2.is-hybrid .dh-cat__sub,
.homepage-v2.is-hybrid .dh-alt__sub,
.homepage-v2.is-hybrid .dh-cat__list span,
.homepage-v2.is-hybrid .dh-alts__label {
    color: var(--light-muted);
}
.homepage-v2.is-hybrid .dh-option,
.homepage-v2.is-hybrid .dh-alt,
.homepage-v2.is-hybrid .dh-cat {
    background: var(--card-bg-light);
    border-color: var(--light-border);
    box-shadow: var(--card-shadow-light);
}
.homepage-v2.is-hybrid .dh-option:hover,
.homepage-v2.is-hybrid .dh-alt:hover,
.homepage-v2.is-hybrid .dh-cat:hover {
    box-shadow: var(--card-shadow-light-hover);
}
.homepage-v2.is-hybrid .dh-cat__header,
.homepage-v2.is-hybrid .dh-cat__list li,
.homepage-v2.is-hybrid .dh-cat__hoofdlink {
    border-color: var(--light-border);
}
.homepage-v2.is-hybrid .dh-reset {
    border-color: var(--light-border);
    color: var(--light-muted);
}
.homepage-v2.is-hybrid .dh-cta {
    /* CTA blijft anthracite ook in light, als rust-zone (zelfde patroon
       als CLAUDE.md beschrijft voor andere "donkere" zones in lightmode) */
    background: var(--anthracite);
}
