/* =================================================================
   NDN.LASER — Global Sticky Contact Bar
   Expandable bottom bar (logo · phone · Boek afspraak · WhatsApp).
   Collapsed = floating gold pill bottom-right. Expanded = full bar
   across the viewport with all actions. No inline styles.
   ================================================================= */

.ndn-stickbar {
    position: fixed;
    z-index: 9000;
    bottom: 22px;
    right: 22px;
    font-family: 'DM Sans', system-ui, sans-serif;
    pointer-events: none;
}
.ndn-stickbar *,
.ndn-stickbar *::before,
.ndn-stickbar *::after { box-sizing: border-box; }

/* ─── TRIGGER (collapsed state: floating pill) ─────────── */

.ndn-stickbar__trigger {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px 14px 18px;
    background: linear-gradient(135deg, var(--ndn-accent, #C8A46A) 0%, var(--ndn-accent-dark, #A9834A) 100%);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    box-shadow:
        0 18px 38px -12px rgba(169, 131, 74, 0.55),
        0 6px 16px -8px rgba(26, 26, 26, 0.28);
    transform: translateY(120%);
    opacity: 0;
    transition:
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.4s ease,
        box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.ndn-stickbar.is-visible .ndn-stickbar__trigger {
    transform: translateY(0);
    opacity: 1;
}
.ndn-stickbar[data-open="true"] .ndn-stickbar__trigger {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
}
.ndn-stickbar__trigger:hover {
    box-shadow:
        0 24px 46px -12px rgba(169, 131, 74, 0.7),
        0 8px 20px -8px rgba(26, 26, 26, 0.3);
}
.ndn-stickbar__trigger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}
.ndn-stickbar__trigger-icon svg { width: 18px; height: 18px; }

.ndn-stickbar__trigger-pulse {
    position: absolute;
    top: 10px; right: 10px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.8);
    animation: ndn-stickbar-pulse 2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
@keyframes ndn-stickbar-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(255, 255, 255, 0.8); }
    70%  { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0   rgba(255, 255, 255, 0); }
}

/* ─── EXPANDED PANEL (full bottom bar) ─────────────────── */

.ndn-stickbar__panel {
    pointer-events: auto;
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%) translateY(120%);
    width: min(980px, calc(100vw - 24px));
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 18px 14px 22px;
    background: linear-gradient(135deg, var(--ndn-text-main, #1A1A1A) 0%, #2a2620 100%);
    color: #fff;
    border-radius: 22px;
    box-shadow:
        0 40px 80px -28px rgba(26, 26, 26, 0.55),
        0 16px 36px -20px rgba(169, 131, 74, 0.28);
    opacity: 0;
    visibility: hidden;
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.35s ease,
        visibility 0.35s ease;
    isolation: isolate;
}
/* Gold top accent line across the panel */
.ndn-stickbar__panel::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ndn-accent, #C8A46A), transparent);
    border-radius: 2px;
    pointer-events: none;
}
.ndn-stickbar[data-open="true"] .ndn-stickbar__panel {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Brand block (logo card + tagline) */
.ndn-stickbar__brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding-right: 20px;
    border-right: 1px solid rgba(200, 164, 106, 0.25);
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.25s ease;
}
.ndn-stickbar__brand:hover { opacity: 0.85; }

/* Logo sits in its own crème card so brand integrity is preserved
   (no forced colour filter, no circle-crop on a landscape mark). */
.ndn-stickbar__logo {
    display: block;
    height: 28px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    object-position: center;
    padding: 6px 10px;
    background: var(--ndn-surface, #ffffff);
    border-radius: 10px;
    border: 1px solid rgba(200, 164, 106, 0.25);
    box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.35);
    box-sizing: content-box;
}
.ndn-stickbar__logo-text {
    font-family: "Times New Roman", Times, serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
}
.ndn-stickbar__tagline {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ndn-accent, #C8A46A);
    white-space: nowrap;
}

/* Actions nav */
.ndn-stickbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    justify-content: flex-end;
}

.ndn-stickbar__action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.ndn-stickbar__action svg {
    width: 16px; height: 16px;
    flex-shrink: 0;
}
.ndn-stickbar__action-label {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.2;
}
.ndn-stickbar__action-hint {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.65;
}
.ndn-stickbar__action-value {
    font-size: 14px;
    font-weight: 700;
}

/* Phone + WhatsApp (translucent pills) */
.ndn-stickbar__action--phone,
.ndn-stickbar__action--whatsapp {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.ndn-stickbar__action--phone:hover,
.ndn-stickbar__action--whatsapp:hover {
    background: rgba(200, 164, 106, 0.2);
    border-color: rgba(200, 164, 106, 0.45);
    transform: translateY(-2px);
}

/* Primary CTA (Boek afspraak) — filled gold gradient */
.ndn-stickbar__action--primary {
    background: linear-gradient(135deg, var(--ndn-accent, #C8A46A), var(--ndn-accent-dark, #A9834A));
    color: #fff;
    box-shadow: 0 10px 24px -8px rgba(200, 164, 106, 0.5);
    padding-right: 14px;
}
.ndn-stickbar__action--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -8px rgba(200, 164, 106, 0.7);
}
.ndn-stickbar__action-arrow {
    transition: transform 0.25s ease;
}
.ndn-stickbar__action--primary:hover .ndn-stickbar__action-arrow {
    transform: translateX(3px);
}

/* Close button */
.ndn-stickbar__close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}
.ndn-stickbar__close svg { width: 14px; height: 14px; }
.ndn-stickbar__close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: rotate(90deg);
}

/* ─── RESPONSIVE ───────────────────────────────────────── */

@media (max-width: 960px) {
    .ndn-stickbar__action-hint { display: none; }
    .ndn-stickbar__action { padding: 11px 14px; }
}
@media (max-width: 720px) {
    .ndn-stickbar { bottom: 12px; right: 12px; }
    .ndn-stickbar__panel {
        width: calc(100vw - 16px);
        bottom: 12px;
        padding: 12px 14px;
        gap: 12px;
        border-radius: 18px;
    }
    .ndn-stickbar__brand { display: none; }
    .ndn-stickbar__actions { gap: 8px; justify-content: space-between; }
    .ndn-stickbar__action { flex: 1; justify-content: center; padding: 12px 10px; font-size: 13px; }
    .ndn-stickbar__action-label,
    .ndn-stickbar__action-value { font-size: 13px; }
    .ndn-stickbar__action--phone .ndn-stickbar__action-value,
    .ndn-stickbar__action--whatsapp .ndn-stickbar__action-value { display: none; }
    .ndn-stickbar__close { width: 32px; height: 32px; }
    .ndn-stickbar__trigger-text { display: none; }
    .ndn-stickbar__trigger { padding: 14px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ndn-stickbar__trigger-pulse { animation: none; }
    .ndn-stickbar__trigger,
    .ndn-stickbar__panel { transition: opacity 0.2s ease; }
}

