/* ─── BASE RESET & CSS VARS (MKB Footer) ─── */
:root {
    --mkb-footer-bg: #050505;
    --mkb-text-main: #ffffff;
    --mkb-text-muted: #9ca3af;
    --mkb-accent: #0e2e27;
    --mkb-link-dim: rgba(255, 255, 255, 0.4);
    --mkb-font-head: 'Satoshi', sans-serif;
    --mkb-font-body: 'Satoshi', sans-serif;
    --mkb-font-display: 'Outfit', sans-serif;
}

/* ─── FOOTER WRAPPER ─── */
.mkb-global-footer {
    position: relative;
    z-index: 10;
    width: 100%;
    
    /* Naadloze Fade integratie */
    margin-top: calc(-1 * clamp(80px, 12vw, 150px));
    padding-top: clamp(80px, 12vw, 150px);
    background: linear-gradient(to bottom, transparent 0%, var(--mkb-footer-bg) clamp(80px, 12vw, 150px), var(--mkb-footer-bg) 100%);
    
    color: var(--mkb-text-main);
    font-family: var(--mkb-font-body);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: calc(100vh + clamp(80px, 12vw, 150px)) !important;
}

/* Center accent glow */
.mkb-global-footer::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(300px, 60vw, 800px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, hsla(177, 66%, 72%, 0.12) 0%, transparent 60%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}



/* ─── PRE-FOOTER (CTA) ZONE ─── */
.mkb-footer-cta {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(100px, 12vw, 140px) 20px clamp(80px, 10vw, 120px);
    flex-grow: 1;
}

/* Monumentale gecentreerde Headline */
.mkb-footer-cta__headline {
    font-family: var(--mkb-font-head);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.04em;
    color: var(--mkb-text-main);
    margin-bottom: clamp(32px, 5vw, 48px);
    font-size: clamp(2rem, 4vw, 6rem);
    white-space: nowrap;
}

/* GSAP Helper: Masking divs */
.mkb-footer-cta__headline .reveal-line {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: 0.15em;
    margin-bottom: -0.15em;
}

.mkb-footer-cta__headline .reveal-line span {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    will-change: transform, opacity;
}

/* Primary Button MKB */
.mkb-btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: var(--mkb-accent);
    color: #ffffff;
    font-family: var(--mkb-font-display);
    font-weight: 900;
    text-transform: uppercase;
    font-size: clamp(1.2rem, 1.5vw, 1.5rem);
    padding: 24px 48px;
    border-radius: 6px;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    will-change: transform, opacity;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
}

.mkb-btn-cta:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 20px rgba(143, 224, 221, 0.4),
        0 0 40px rgba(143, 224, 221, 0.2),
        0 12px 32px rgba(0, 0, 0, 0.5);
}

.mkb-btn-cta svg {
    width: 1.2em;
    height: 1.2em;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mkb-btn-cta:hover svg {
    transform: translate(4px, -4px);
}

.mkb-btn-cta:focus-visible {
    outline: 2px solid var(--mkb-accent);
    outline-offset: 4px;
}

/* Secundaire Fallback Container (Mail) */
.mkb-footer-cta__fallback {
    margin-top: 24px;
    opacity: 0;
}

.mkb-link-fallback {
    color: var(--mkb-text-muted);
    font-size: 0.95rem;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.3s, border-color 0.3s;
}

.mkb-link-fallback:hover {
    color: var(--mkb-text-main);
    border-color: var(--mkb-accent);
}

/* ─── GLOBAL FOOTER NAVIGATIE ─── */
.mkb-footer-nav {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 24px;
    font-size: 0.9rem;
}

.mkb-nav__left {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 16px;
}

.mkb-nav__center {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 24px;
}

.mkb-nav__right {
    justify-self: end;
    color: var(--mkb-text-muted);
}

/* Badges (Afgeronde Pills) */
.mkb-badge-pill {
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    color: var(--mkb-text-main);
    text-decoration: none;
    transition: background 0.3s, border-color 0.3s;
}

.mkb-badge-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--mkb-accent);
}

/* Cyaan Slider Lijn voor Juridische links */
.mkb-nav-link {
    color: var(--mkb-text-muted);
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}

.mkb-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--mkb-accent);
    transition: width 0.3s ease;
}

.mkb-nav-link:hover {
    color: var(--mkb-text-muted);
}

.mkb-nav-link:hover::after {
    width: 100%;
}

/* ─── RESPONSIVE BREAKPOINTS ─── */
@media (max-width: 1024px) {
    .mkb-footer-nav {
        grid-template-columns: 1fr 1fr;
    }

    .mkb-nav__center {
        justify-self: end;
    }

    .mkb-nav__right {
        grid-column: 1 / -1;
        justify-self: center;
        margin-top: 16px;
        grid-row: 2;
    }
}

@media (max-width: 767px) {
    .mkb-footer-cta__headline {
        font-size: clamp(2.5rem, 8vw, 3rem);
        white-space: normal;
    }

    .mkb-btn-cta {
        width: 100%;
        padding: 20px;
        font-size: 1.1rem;
    }

    .mkb-footer-nav {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .mkb-nav__left,
    .mkb-nav__center,
    .mkb-nav__right {
        justify-self: center;
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
    .mkb-footer-cta__headline .reveal-line span {
        transform: none !important;
        opacity: 1 !important;
    }

    .mkb-btn-cta,
    .mkb-footer-cta__fallback {
        transform: none !important;
        opacity: 1 !important;
    }

    .mkb-footer-cta__headline .reveal-line {
        overflow: visible;
    }
}