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

/* ── Reset & Variables ── */
.dc-ah-expertise {
    --ah-accent: #c8956c;
    --ah-glow: #e8a86d;
    --ah-dark: #1a1210;
    --ah-card-bg: rgba(255, 255, 255, 0.04);
    position: relative;
    background: var(--ah-dark);
    padding: clamp(80px, 10vw, 160px) 0;
    overflow: hidden;
    color: #fff;
}

/* ── Background Media ── */
.dc-ah-expertise .ah-exp__bg-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.dc-ah-expertise .ah-exp__bg-media img,
.dc-ah-expertise .ah-exp__bg-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.dc-ah-expertise .ah-exp__bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
    var(--ah-dark) 0%,
    rgba(26,18,16,0.6) 40%,
    rgba(26,18,16,0.85) 70%,
    var(--ah-dark) 100%
    );
    z-index: 1;
}

/* ── Floating Ember Particles ── */
.dc-ah-expertise .ah-exp__particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.dc-ah-expertise .ah-exp__ember {
    position: absolute;
    width: var(--size, 3px);
    height: var(--size, 3px);
    background: var(--ah-glow);
    border-radius: 50%;
    bottom: -10px;
    opacity: 0;
    filter: blur(0.5px);
    animation: ah-ember-rise var(--dur, 8s) var(--delay, 0s) infinite;
}

@keyframes ah-ember-rise {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0) scale(1);
    }
10% {
    opacity: 0.8;
}
50% {
    opacity: 0.5;
}
100% {
    opacity: 0;
    transform: translateY(calc(-100vh - 40px)) translateX(var(--drift, 30px)) scale(0.3);
}
}

/* ── Ambient Glow ── */
.dc-ah-expertise .ah-exp__ambient-glow {
    position: absolute;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(200,149,108,0.12) 0%, transparent 70%);
    z-index: 2;
    pointer-events: none;
    animation: ah-glow-pulse 6s ease-in-out infinite;
}

@keyframes ah-glow-pulse {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

/* ── Container & Header ── */
.dc-ah-expertise .ah-exp__container {
    position: relative;
    z-index: 10;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 60px;
}

.dc-ah-expertise .ah-exp__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(60px, 6vw, 100px);
}

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

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

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

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

.dc-ah-expertise .ah-exp__title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 400;
    line-height: 1.15;
    color: #fff;
    margin: 0 0 24px;
}

.dc-ah-expertise .ah-exp__highlight {
    color: var(--ah-accent);
    font-style: italic;
    position: relative;
}

.dc-ah-expertise .ah-exp__highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ah-accent), transparent);
}

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

/* ══════════════════════════════════════
BENTO GRID — Compact & Modern
══════════════════════════════════════ */
.dc-ah-expertise .ah-exp__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 220px 200px;
    gap: 14px;
}

/*
*  Layout:
*  ┌─────────┬──────┬──────┐
*  │  1 (5c) │ 2(4) │ 3(3) │  220px
*  ├────┬────┴──────┼──────┤
*  │4(3)│  5 (5c)   │ 6(4) │  200px
*  └────┴───────────┴──────┘
*/
.dc-ah-expertise .ah-exp__card:nth-child(1) { grid-column: 1 / 6;  grid-row: 1; }
.dc-ah-expertise .ah-exp__card:nth-child(2) { grid-column: 6 / 10; grid-row: 1; }
.dc-ah-expertise .ah-exp__card:nth-child(3) { grid-column: 10 / 13; grid-row: 1; }
.dc-ah-expertise .ah-exp__card:nth-child(4) { grid-column: 1 / 4;  grid-row: 2; }
.dc-ah-expertise .ah-exp__card:nth-child(5) { grid-column: 4 / 9;  grid-row: 2; }
.dc-ah-expertise .ah-exp__card:nth-child(6) { grid-column: 9 / 13; grid-row: 2; }

/* ── All cards: overlay layout (image fills, text on top) ── */
.dc-ah-expertise .ah-exp__card .ah-exp__card-media {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
}

.dc-ah-expertise .ah-exp__card .ah-exp__card-media-gradient {
    height: 100%;
    background: linear-gradient(to top, rgba(17,14,12,0.9) 0%, rgba(17,14,12,0.3) 50%, rgba(17,14,12,0.05) 100%);
}

.dc-ah-expertise .ah-exp__card .ah-exp__card-body {
    position: relative;
    z-index: 3;
    justify-content: flex-end;
    padding: 22px 22px 20px;
    min-height: 100%;
}

.dc-ah-expertise .ah-exp__card .ah-exp__card-icon-row {
    gap: 10px;
    margin-bottom: 8px;
}

.dc-ah-expertise .ah-exp__card .ah-exp__card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.dc-ah-expertise .ah-exp__card .ah-exp__card-icon svg {
    width: 16px;
    height: 16px;
}

.dc-ah-expertise .ah-exp__card .ah-exp__card-title {
    font-size: 16px;
}

.dc-ah-expertise .ah-exp__card .ah-exp__card-teaser {
    font-size: 12px;
    line-height: 1.6;
    padding-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dc-ah-expertise .ah-exp__card .ah-exp__card-footer {
    padding-top: 12px;
}

.dc-ah-expertise .ah-exp__card .ah-exp__card-cta {
    font-size: 10px;
    letter-spacing: 1.5px;
}

.dc-ah-expertise .ah-exp__card .ah-exp__card-arrow-circle {
    width: 30px;
    height: 30px;
}

.dc-ah-expertise .ah-exp__card .ah-exp__card-arrow-circle svg {
    width: 12px;
    height: 12px;
}

/* ── Wide cards (1, 5): slightly larger text ── */
.dc-ah-expertise .ah-exp__card:nth-child(1) .ah-exp__card-title,
.dc-ah-expertise .ah-exp__card:nth-child(5) .ah-exp__card-title {
    font-size: 19px;
}

.dc-ah-expertise .ah-exp__card:nth-child(1) .ah-exp__card-teaser,
.dc-ah-expertise .ah-exp__card:nth-child(5) .ah-exp__card-teaser {
    -webkit-line-clamp: 3;
    font-size: 13px;
}

.dc-ah-expertise .ah-exp__card:nth-child(1) .ah-exp__card-icon,
.dc-ah-expertise .ah-exp__card:nth-child(5) .ah-exp__card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.dc-ah-expertise .ah-exp__card:nth-child(1) .ah-exp__card-icon svg,
.dc-ah-expertise .ah-exp__card:nth-child(5) .ah-exp__card-icon svg {
    width: 18px;
    height: 18px;
}

/* ── Narrow card (3, 4): minimal style ── */
.dc-ah-expertise .ah-exp__card:nth-child(3) .ah-exp__card-teaser,
.dc-ah-expertise .ah-exp__card:nth-child(4) .ah-exp__card-teaser {
    display: none;
}

.dc-ah-expertise .ah-exp__card:nth-child(3) .ah-exp__card-body,
.dc-ah-expertise .ah-exp__card:nth-child(4) .ah-exp__card-body {
    padding: 18px;
}

/* ── Individual Card ── */
.dc-ah-expertise .ah-exp__card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--ah-card-bg);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: translateY(40px);
}

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

.dc-ah-expertise .ah-exp__card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(160deg, rgba(200,149,108,0) 0%, rgba(200,149,108,0.15) 50%, rgba(200,149,108,0) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 2;
}

.dc-ah-expertise .ah-exp__card:hover::before {
    opacity: 1;
}

.dc-ah-expertise .ah-exp__card:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.07);
    box-shadow:
    0 20px 60px rgba(0,0,0,0.4),
    0 0 80px rgba(200,149,108,0.06);
}

/* ── Card Media ── */
.dc-ah-expertise .ah-exp__card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.dc-ah-expertise .ah-exp__card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease;
}

.dc-ah-expertise .ah-exp__card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dc-ah-expertise .ah-exp__card:hover .ah-exp__card-media img,
.dc-ah-expertise .ah-exp__card:hover .ah-exp__card-media video {
    transform: scale(1.08);
}

.dc-ah-expertise .ah-exp__card-media-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, var(--ah-dark) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* ── Card Stats Badge ── */
.dc-ah-expertise .ah-exp__card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--ah-accent);
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.4s ease 0.1s;
}

.dc-ah-expertise .ah-exp__card:hover .ah-exp__card-badge {
    opacity: 1;
    transform: translateY(0);
}

/* ── Card Body ── */
.dc-ah-expertise .ah-exp__card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 28px 28px 24px;
}

.dc-ah-expertise .ah-exp__card-icon-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.dc-ah-expertise .ah-exp__card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(200,149,108,0.1);
    color: var(--ah-accent);
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.dc-ah-expertise .ah-exp__card-icon svg {
    width: 20px;
    height: 20px;
}

.dc-ah-expertise .ah-exp__card:hover .ah-exp__card-icon {
    background: rgba(200,149,108,0.2);
    box-shadow: 0 0 20px rgba(200,149,108,0.15);
}

.dc-ah-expertise .ah-exp__card-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 20px;
    font-weight: 400;
    color: #fff;
    margin: 0;
    transition: color 0.3s ease;
}

.dc-ah-expertise .ah-exp__card:hover .ah-exp__card-title {
    color: var(--ah-accent);
}

.dc-ah-expertise .ah-exp__card-teaser {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.45);
    margin: 0 0 auto;
    padding-bottom: 20px;
}

/* ── Card Footer Arrow ── */
.dc-ah-expertise .ah-exp__card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.dc-ah-expertise .ah-exp__card-cta {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ah-accent);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.dc-ah-expertise .ah-exp__card:hover .ah-exp__card-cta {
    opacity: 1;
}

.dc-ah-expertise .ah-exp__card-arrow-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.dc-ah-expertise .ah-exp__card-arrow-circle svg {
    width: 14px;
    height: 14px;
    color: var(--ah-accent);
    transition: transform 0.3s ease;
}

.dc-ah-expertise .ah-exp__card:hover .ah-exp__card-arrow-circle {
    background: var(--ah-accent);
    border-color: var(--ah-accent);
}

.dc-ah-expertise .ah-exp__card:hover .ah-exp__card-arrow-circle svg {
    color: var(--ah-dark);
    transform: translateX(2px);
}

/* ── Floating CTA ── */
.dc-ah-expertise .ah-exp__floating-cta {
    position: relative;
    z-index: 10;
    text-align: center;
    margin-top: clamp(24px, 2.5vw, 36px);
}

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

.dc-ah-expertise .ah-exp__floating-cta a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--ah-accent), var(--ah-glow));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 100px;
}

.dc-ah-expertise .ah-exp__floating-cta a:hover::before {
    opacity: 1;
}

.dc-ah-expertise .ah-exp__floating-cta a span,
.dc-ah-expertise .ah-exp__floating-cta a svg {
    position: relative;
    z-index: 1;
}

.dc-ah-expertise .ah-exp__floating-cta a:hover {
    color: var(--ah-dark);
    border-color: transparent;
    box-shadow: 0 8px 32px rgba(200,149,108,0.3);
}

.dc-ah-expertise .ah-exp__floating-cta a svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.dc-ah-expertise .ah-exp__floating-cta a:hover svg {
    transform: translateX(4px);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .dc-ah-expertise .ah-exp__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 12px;
    }
.dc-ah-expertise .ah-exp__card:nth-child(1),
.dc-ah-expertise .ah-exp__card:nth-child(2),
.dc-ah-expertise .ah-exp__card:nth-child(3),
.dc-ah-expertise .ah-exp__card:nth-child(4),
.dc-ah-expertise .ah-exp__card:nth-child(5),
.dc-ah-expertise .ah-exp__card:nth-child(6) {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 220px;
}
/* Eerste card volle breedte */
.dc-ah-expertise .ah-exp__card:nth-child(1) {
    grid-column: span 2;
    min-height: 260px;
}
.dc-ah-expertise .ah-exp__card:nth-child(3) .ah-exp__card-teaser,
.dc-ah-expertise .ah-exp__card:nth-child(4) .ah-exp__card-teaser {
    display: -webkit-box;
}
.dc-ah-expertise .ah-exp__container {
    padding: 0 40px;
}
}

@media (max-width: 640px) {
    .dc-ah-expertise .ah-exp__grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
.dc-ah-expertise .ah-exp__card:nth-child(1) {
    grid-column: span 2;
    min-height: 220px;
}
.dc-ah-expertise .ah-exp__card:nth-child(2),
.dc-ah-expertise .ah-exp__card:nth-child(3),
.dc-ah-expertise .ah-exp__card:nth-child(4),
.dc-ah-expertise .ah-exp__card:nth-child(5),
.dc-ah-expertise .ah-exp__card:nth-child(6) {
    grid-column: span 1;
    min-height: 180px;
}
.dc-ah-expertise .ah-exp__card .ah-exp__card-title {
    font-size: 14px;
}
.dc-ah-expertise .ah-exp__card .ah-exp__card-teaser {
    display: none;
}
.dc-ah-expertise .ah-exp__card .ah-exp__card-footer {
    display: none;
}
.dc-ah-expertise .ah-exp__card .ah-exp__card-body {
    padding: 16px;
}
.dc-ah-expertise .ah-exp__container {
    padding: 0 16px;
}
.dc-ah-expertise .ah-exp__card-badge {
    opacity: 1;
    transform: translateY(0);
    font-size: 9px;
    padding: 4px 10px;
}
.dc-ah-expertise .ah-exp__floating-cta a {
    width: 100%;
    justify-content: center;
    padding: 16px 28px;
    min-height: 48px;
}
.dc-ah-expertise .ah-exp__card .ah-exp__card-arrow-circle {
    width: 28px;
    height: 28px;
}
}

/* Vonkjes: positie, grootte en timing per vonk. Stond eerder als random
inline style in de PHP; nu vast in het stylesheet. */
.dc-ah-expertise .ah-exp__ember:nth-child(1) { left: 28%; --size: 2px; --dur: 10.2s; --delay: 5.7s; --drift: -18px; }
.dc-ah-expertise .ah-exp__ember:nth-child(2) { left: 35%; --size: 3px; --dur: 12s; --delay: 6.2s; --drift: 20px; }
.dc-ah-expertise .ah-exp__ember:nth-child(3) { left: 68%; --size: 3px; --dur: 9s; --delay: 3.7s; --drift: -2px; }
.dc-ah-expertise .ah-exp__ember:nth-child(4) { left: 38%; --size: 3px; --dur: 7.6s; --delay: 1.5s; --drift: -19px; }
.dc-ah-expertise .ah-exp__ember:nth-child(5) { left: 71%; --size: 3px; --dur: 11.5s; --delay: 3s; --drift: -39px; }
.dc-ah-expertise .ah-exp__ember:nth-child(6) { left: 35%; --size: 3px; --dur: 10.7s; --delay: 4.6s; --drift: 13px; }
.dc-ah-expertise .ah-exp__ember:nth-child(7) { left: 69%; --size: 3px; --dur: 11.1s; --delay: 6.3s; --drift: -33px; }
.dc-ah-expertise .ah-exp__ember:nth-child(8) { left: 43%; --size: 4px; --dur: 6s; --delay: 4.3s; --drift: -9px; }
.dc-ah-expertise .ah-exp__ember:nth-child(9) { left: 33%; --size: 5px; --dur: 9.4s; --delay: 4.4s; --drift: 15px; }
.dc-ah-expertise .ah-exp__ember:nth-child(10) { left: 78%; --size: 4px; --dur: 11.2s; --delay: 3.4s; --drift: 16px; }
.dc-ah-expertise .ah-exp__ember:nth-child(11) { left: 95%; --size: 4px; --dur: 9.5s; --delay: 1.4s; --drift: -24px; }
.dc-ah-expertise .ah-exp__ember:nth-child(12) { left: 66%; --size: 3px; --dur: 9.1s; --delay: 8s; --drift: 41px; }
.dc-ah-expertise .ah-exp__ember:nth-child(13) { left: 25%; --size: 3px; --dur: 7.3s; --delay: 5.5s; --drift: -44px; }
.dc-ah-expertise .ah-exp__ember:nth-child(14) { left: 57%; --size: 5px; --dur: 9.6s; --delay: 1.2s; --drift: 56px; }
.dc-ah-expertise .ah-exp__ember:nth-child(15) { left: 95%; --size: 3px; --dur: 9.7s; --delay: 3.3s; --drift: 8px; }
.dc-ah-expertise .ah-exp__ember:nth-child(16) { left: 48%; --size: 5px; --dur: 6.5s; --delay: 6.2s; --drift: -42px; }
.dc-ah-expertise .ah-exp__ember:nth-child(17) { left: 66%; --size: 3px; --dur: 9.1s; --delay: 1s; --drift: -29px; }
.dc-ah-expertise .ah-exp__ember:nth-child(18) { left: 87%; --size: 2px; --dur: 9.4s; --delay: 4.5s; --drift: -34px; }
