/**
 * AH – Werkwijze
 * Widget: dc-ah-werkwijze
 *
 * Instelbare waarden komen binnen als custom properties via de Elementor
 * control-selectors; er staat niets inline in de PHP.
 */

/* ── Base ── */
.dc-ah-werkwijze {
    --wk-accent: #c8956c;
    --wk-warm: #e8a86d;
    --wk-bg: #110e0c;
    position: relative;
    background: var(--wk-bg);
    padding: clamp(80px, 10vw, 160px) 0;
    overflow: hidden;
    color: #fff;
}

/* ── Ambient Glows ── */
.dc-ah-werkwijze .ah-wk__glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.dc-ah-werkwijze .ah-wk__glow--left {
    top: 20%;
    left: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(200,149,108,0.06) 0%, transparent 70%);
}

.dc-ah-werkwijze .ah-wk__glow--right {
    bottom: 10%;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(200,149,108,0.04) 0%, transparent 70%);
}

/* ── Particles ── */
.dc-ah-werkwijze .ah-wk__particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.dc-ah-werkwijze .ah-wk__ember {
    position: absolute;
    width: var(--sz, 3px);
    height: var(--sz, 3px);
    background: var(--wk-warm);
    border-radius: 50%;
    bottom: -10px;
    opacity: 0;
    filter: blur(0.5px);
    animation: ah-wk-rise var(--dur, 9s) var(--del, 0s) infinite;
}

@keyframes ah-wk-rise {
    0%   { opacity: 0; transform: translateY(0) translateX(0); }
    10%  { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(calc(-100vh - 40px)) translateX(var(--dx, 20px)); }
}

/* ── Container ── */
.dc-ah-werkwijze .ah-wk__container {
    position: relative;
    z-index: 5;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 60px;
}

/* ── Header ── */
.dc-ah-werkwijze .ah-wk__header {
    text-align: center;
    max-width: 660px;
    margin: 0 auto clamp(60px, 6vw, 100px);
}

.dc-ah-werkwijze .ah-wk__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--wk-accent);
    margin-bottom: 24px;
}

.dc-ah-werkwijze .ah-wk__eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--wk-accent));
}

.dc-ah-werkwijze .ah-wk__eyebrow-flame {
    width: 16px;
    height: 16px;
    color: var(--wk-accent);
    flex-shrink: 0;
    animation: ah-wk-flame 3s ease-in-out infinite;
}

@keyframes ah-wk-flame {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

.dc-ah-werkwijze .ah-wk__title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(30px, 3.5vw, 52px);
    font-weight: 400;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 20px;
}

.dc-ah-werkwijze .ah-wk__hl {
    color: var(--wk-accent);
    font-style: italic;
}

.dc-ah-werkwijze .ah-wk__intro {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

/* ═══════════════════════════════════
INTERACTIVE TIMELINE
═══════════════════════════════════ */
.dc-ah-werkwijze .ah-wk__journey {
    position: relative;
}

/* ── Vertical Line ── */
.dc-ah-werkwijze .ah-wk__line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
}

.dc-ah-werkwijze .ah-wk__line-track {
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
}

.dc-ah-werkwijze .ah-wk__line-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, var(--wk-accent), var(--wk-warm));
    border-radius: 2px;
    transition: height 0.1s linear;
    box-shadow: 0 0 12px rgba(200,149,108,0.3);
}

/* Glow dot at the fill tip */
.dc-ah-werkwijze .ah-wk__line-fill::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--wk-warm);
    box-shadow: 0 0 16px var(--wk-warm), 0 0 32px rgba(232,168,109,0.3);
}

/* ── Single Step Row ── */
.dc-ah-werkwijze .ah-wk__step {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 0;
    align-items: center;
    min-height: 300px;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.dc-ah-werkwijze .ah-wk__step.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.dc-ah-werkwijze .ah-wk__step + .ah-wk__step {
    margin-top: -20px;
}

/* Alternate sides */
.dc-ah-werkwijze .ah-wk__step:nth-child(even) .ah-wk__step-content {
    order: 3;
    text-align: left;
    padding-left: 40px;
}

.dc-ah-werkwijze .ah-wk__step:nth-child(even) .ah-wk__step-visual {
    order: 1;
    justify-self: end;
}

.dc-ah-werkwijze .ah-wk__step:nth-child(odd) .ah-wk__step-content {
    order: 1;
    text-align: right;
    padding-right: 40px;
}

.dc-ah-werkwijze .ah-wk__step:nth-child(odd) .ah-wk__step-visual {
    order: 3;
    justify-self: start;
}

/* ── Center Node ── */
.dc-ah-werkwijze .ah-wk__step-node {
    order: 2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    justify-self: center;
    z-index: 6;
}

.dc-ah-werkwijze .ah-wk__step-node-bg {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: var(--wk-bg);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.5s ease;
}

.dc-ah-werkwijze .ah-wk__step.is-active .ah-wk__step-node-bg {
    background: rgba(200,149,108,0.1);
    border-color: rgba(200,149,108,0.3);
    box-shadow: 0 0 30px rgba(200,149,108,0.15);
}

.dc-ah-werkwijze .ah-wk__step-node-icon {
    position: relative;
    z-index: 2;
    width: 24px;
    height: 24px;
    color: rgba(255,255,255,0.3);
    transition: color 0.4s ease;
}

.dc-ah-werkwijze .ah-wk__step.is-active .ah-wk__step-node-icon {
    color: var(--wk-accent);
}

.dc-ah-werkwijze .ah-wk__step-num {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--wk-bg);
    border: 1px solid rgba(200,149,108,0.25);
    font-size: 10px;
    font-weight: 700;
    color: var(--wk-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

/* ── Content Side ── */
.dc-ah-werkwijze .ah-wk__step-content {
    padding: 20px 0;
}

.dc-ah-werkwijze .ah-wk__step-duration {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--wk-accent);
    background: rgba(200,149,108,0.08);
    border: 1px solid rgba(200,149,108,0.12);
    border-radius: 100px;
    padding: 5px 14px;
    margin-bottom: 14px;
}

.dc-ah-werkwijze .ah-wk__step-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 400;
    color: #fff;
    margin: 0 0 12px;
    transition: color 0.3s ease;
}

.dc-ah-werkwijze .ah-wk__step.is-active .ah-wk__step-title {
    color: var(--wk-accent);
}

.dc-ah-werkwijze .ah-wk__step-desc {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255,255,255,0.45);
    margin: 0;
    max-width: 380px;
}

.dc-ah-werkwijze .ah-wk__step:nth-child(odd) .ah-wk__step-desc {
    margin-left: auto;
}

/* ── Visual Side (Image) ── */
.dc-ah-werkwijze .ah-wk__step-visual {
    position: relative;
    max-width: 460px;
    width: 100%;
}

.dc-ah-werkwijze .ah-wk__step-img-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dc-ah-werkwijze .ah-wk__step.is-active .ah-wk__step-img-wrap {
    border-color: rgba(200,149,108,0.2);
    box-shadow: 0 24px 64px rgba(0,0,0,0.35), 0 0 80px rgba(200,149,108,0.06);
}

.dc-ah-werkwijze .ah-wk__step-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease;
    opacity: 0.5;
}

.dc-ah-werkwijze .ah-wk__step.is-active .ah-wk__step-img-wrap img {
    transform: scale(1.06);
    opacity: 1;
}

/* Image gradient overlay */
.dc-ah-werkwijze .ah-wk__step-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(17,14,12,0.5) 100%);
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.dc-ah-werkwijze .ah-wk__step.is-active .ah-wk__step-img-wrap::after {
    opacity: 0.7;
}

/* Floating step number on image */
.dc-ah-werkwijze .ah-wk__step-img-num {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 3;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 48px;
    font-weight: 400;
    color: #fff;
    opacity: 0.08;
    line-height: 1;
    transition: opacity 0.5s ease;
}

.dc-ah-werkwijze .ah-wk__step.is-active .ah-wk__step-img-num {
    opacity: 0.15;
}

/* Decorative corner accent on image */
.dc-ah-werkwijze .ah-wk__step-img-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.dc-ah-werkwijze .ah-wk__step.is-active .ah-wk__step-img-corner {
    opacity: 1;
}

.dc-ah-werkwijze .ah-wk__step:nth-child(odd) .ah-wk__step-img-corner {
    top: -8px;
    right: -8px;
    border-top: 2px solid rgba(200,149,108,0.3);
    border-right: 2px solid rgba(200,149,108,0.3);
}

.dc-ah-werkwijze .ah-wk__step:nth-child(even) .ah-wk__step-img-corner {
    top: -8px;
    left: -8px;
    border-top: 2px solid rgba(200,149,108,0.3);
    border-left: 2px solid rgba(200,149,108,0.3);
}

/* ── CTA Footer ── */
.dc-ah-werkwijze .ah-wk__footer {
    text-align: center;
    margin-top: clamp(60px, 6vw, 100px);
    position: relative;
    z-index: 5;
}

.dc-ah-werkwijze .ah-wk__btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 44px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--wk-accent);
    border: 1px solid rgba(200,149,108,0.3);
    border-radius: 100px;
    background: transparent;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.dc-ah-werkwijze .ah-wk__btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--wk-accent), var(--wk-warm));
    border-radius: 100px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.dc-ah-werkwijze .ah-wk__btn:hover::before {
    opacity: 1;
}

.dc-ah-werkwijze .ah-wk__btn span,
.dc-ah-werkwijze .ah-wk__btn svg {
    position: relative;
    z-index: 1;
}

.dc-ah-werkwijze .ah-wk__btn:hover {
    color: var(--wk-bg);
    border-color: transparent;
    box-shadow: 0 8px 36px rgba(200,149,108,0.3);
    transform: translateY(-2px);
}

.dc-ah-werkwijze .ah-wk__btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.dc-ah-werkwijze .ah-wk__btn:hover svg {
    transform: translateX(4px);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .dc-ah-werkwijze .ah-wk__step {
        grid-template-columns: 60px 1fr;
        gap: 0 20px;
        min-height: auto;
        padding: 20px 0;
    }

.dc-ah-werkwijze .ah-wk__step + .ah-wk__step {
    margin-top: 0;
}

.dc-ah-werkwijze .ah-wk__line {
    left: 30px;
    transform: none;
}

.dc-ah-werkwijze .ah-wk__step-node {
    order: 1;
    width: 50px;
    height: 50px;
    justify-self: start;
}

.dc-ah-werkwijze .ah-wk__step-node-icon {
    width: 20px;
    height: 20px;
}

.dc-ah-werkwijze .ah-wk__step:nth-child(odd) .ah-wk__step-content,
.dc-ah-werkwijze .ah-wk__step:nth-child(even) .ah-wk__step-content {
    order: 2;
    text-align: left;
    padding: 0;
    grid-column: 2;
}

.dc-ah-werkwijze .ah-wk__step:nth-child(odd) .ah-wk__step-desc {
    margin-left: 0;
}

.dc-ah-werkwijze .ah-wk__step:nth-child(odd) .ah-wk__step-visual,
.dc-ah-werkwijze .ah-wk__step:nth-child(even) .ah-wk__step-visual {
    order: 3;
    grid-column: 2;
    justify-self: start;
    margin-top: 16px;
    max-width: 100%;
}

.dc-ah-werkwijze .ah-wk__container {
    padding: 0 40px;
}
}

@media (max-width: 640px) {
    .dc-ah-werkwijze .ah-wk__container {
        padding: 0 20px;
    }

.dc-ah-werkwijze .ah-wk__step {
    grid-template-columns: 44px 1fr;
    gap: 0 16px;
}

.dc-ah-werkwijze .ah-wk__line {
    left: 22px;
}

.dc-ah-werkwijze .ah-wk__step-node {
    width: 44px;
    height: 44px;
}

.dc-ah-werkwijze .ah-wk__step-node-bg {
    border-radius: 12px;
}

.dc-ah-werkwijze .ah-wk__step-img-wrap {
    aspect-ratio: 16 / 9;
}
.dc-ah-werkwijze .ah-wk__step-title {
    font-size: clamp(18px, 5vw, 24px);
}
.dc-ah-werkwijze .ah-wk__step-desc {
    font-size: 14px;
}
.dc-ah-werkwijze .ah-wk__btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    padding: 16px 32px;
}
}

/* Vonkjes: positie, grootte en timing per vonk. */
.dc-ah-werkwijze .ah-wk__ember:nth-child(1) { left: 65%; --sz: 3px; --dur: 12.2s; --del: 6.7s; --dx: 4px; }
.dc-ah-werkwijze .ah-wk__ember:nth-child(2) { left: 23%; --sz: 3px; --dur: 8s; --del: 4.7s; --dx: 21px; }
.dc-ah-werkwijze .ah-wk__ember:nth-child(3) { left: 40%; --sz: 4px; --dur: 13.1s; --del: 5.8s; --dx: 36px; }
.dc-ah-werkwijze .ah-wk__ember:nth-child(4) { left: 34%; --sz: 4px; --dur: 8s; --del: 8.4s; --dx: 39px; }
.dc-ah-werkwijze .ah-wk__ember:nth-child(5) { left: 23%; --sz: 3px; --dur: 10.3s; --del: 2s; --dx: 3px; }
.dc-ah-werkwijze .ah-wk__ember:nth-child(6) { left: 31%; --sz: 2px; --dur: 11.6s; --del: 2.5s; --dx: -31px; }
.dc-ah-werkwijze .ah-wk__ember:nth-child(7) { left: 70%; --sz: 4px; --dur: 13.2s; --del: 4.3s; --dx: 11px; }
.dc-ah-werkwijze .ah-wk__ember:nth-child(8) { left: 16%; --sz: 2px; --dur: 13.8s; --del: 0.7s; --dx: 25px; }
.dc-ah-werkwijze .ah-wk__ember:nth-child(9) { left: 33%; --sz: 2px; --dur: 10.7s; --del: 5.6s; --dx: -26px; }
.dc-ah-werkwijze .ah-wk__ember:nth-child(10) { left: 89%; --sz: 3px; --dur: 8.8s; --del: 6.9s; --dx: 0px; }
.dc-ah-werkwijze .ah-wk__ember:nth-child(11) { left: 84%; --sz: 4px; --dur: 9s; --del: 8.9s; --dx: -34px; }
.dc-ah-werkwijze .ah-wk__ember:nth-child(12) { left: 76%; --sz: 2px; --dur: 11.2s; --del: 1s; --dx: 11px; }
