/* conversion-pack.css
 * Conversie-optimalisaties voor pillars + provincie-pages:
 * - Trust-strip (sticky boven nav of in hero)
 * - Sticky bottom CTA bar (verschijnt na scroll 400px, dismiss-able)
 * - WhatsApp floating button (rechtsonder)
 * - Activity-toast (rate-limited social-proof bubble)
 * - Exit-intent modal (sjabloon - opt-in via JS)
 *
 * Brand-consistent: HMB groen #00875A primary, #006B47 dark-hover.
 * Mobile-first responsive. Dark-mode variant.
 * Geen emojis - alleen SVG iconen.
 */

/* === TRUST STRIP === */
.cp-trust-strip {
  background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
  color: #fff;
  padding: 10px 16px;
  font-size: 13px;
  font-family: 'Inter', system-ui, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 50;
}
.cp-trust-strip .cp-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.cp-trust-strip .cp-item strong {
  color: #7DDBA1;
  font-weight: 700;
}
.cp-trust-strip svg {
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .cp-trust-strip {
    font-size: 11px;
    gap: 12px;
    padding: 8px 12px;
  }
  .cp-trust-strip .cp-item:nth-child(n+3) {
    display: none;
  }
}

/* === STICKY BOTTOM CTA BAR === */
.cp-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid #D8EBD8;
  padding: 14px 20px;
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 -4px 20px rgba(27,67,50,0.08);
  transform: translateY(110%);
  transition: transform .4s cubic-bezier(0.16,1,0.3,1);
}
.cp-sticky-cta.is-visible {
  transform: translateY(0);
}
.cp-sticky-cta-text {
  flex: 1;
  font-size: 14px;
  color: #1A3A2A;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  line-height: 1.3;
}
.cp-sticky-cta-text small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #5A6358;
  margin-top: 2px;
}
.cp-sticky-cta-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.cp-sticky-cta-btn {
  background: #00875A;
  color: white;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .2s;
  border: none;
  font-family: inherit;
  cursor: pointer;
}
.cp-sticky-cta-btn:hover {
  background: #006B47;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,135,90,0.25);
}
.cp-sticky-cta-phone {
  font-size: 13px;
  color: #006B47;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.cp-sticky-cta-phone:hover {
  text-decoration: underline;
}
.cp-sticky-cta-dismiss {
  background: transparent;
  border: none;
  color: #5A6358;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 0 6px;
  opacity: 0.5;
  transition: opacity .2s;
}
.cp-sticky-cta-dismiss:hover {
  opacity: 1;
}
@media (max-width: 640px) {
  .cp-sticky-cta {
    padding: 10px 14px;
    gap: 10px;
  }
  .cp-sticky-cta-text {
    font-size: 13px;
  }
  .cp-sticky-cta-text small {
    font-size: 11px;
  }
  .cp-sticky-cta-phone {
    display: none;
  }
  .cp-sticky-cta-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* === WHATSAPP FLOATING BUTTON === */
.cp-wa-float {
  position: fixed;
  bottom: 90px; /* boven sticky-cta */
  right: 20px;
  z-index: 997;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: all .3s;
  text-decoration: none;
  border: none;
  animation: cp-wa-pulse-ring 3s ease-in-out 2s infinite;
}
.cp-wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(37,211,102,0.55);
}
.cp-wa-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: #25D366;
  opacity: 0;
  z-index: -1;
  animation: cp-wa-ring 2.5s ease-in-out infinite;
}
@keyframes cp-wa-ring {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes cp-wa-pulse-ring {
  0%, 90%, 100% { transform: scale(1); }
  95% { transform: scale(1.06); }
}
.cp-wa-float svg {
  width: 28px;
  height: 28px;
  fill: white;
  position: relative;
  z-index: 2;
}
.cp-wa-tooltip {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 1px solid #D8EBD8;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #1A3A2A;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(27,67,50,0.08);
  opacity: 0;
  pointer-events: none;
  transition: all .25s;
}
.cp-wa-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: white;
}
.cp-wa-float:hover .cp-wa-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
}
@media (max-width: 640px) {
  .cp-wa-float {
    bottom: 80px;
    right: 16px;
    width: 50px;
    height: 50px;
  }
  .cp-wa-float svg { width: 26px; height: 26px; }
  .cp-wa-tooltip { display: none; }
}

/* === ACTIVITY TOAST (social-proof bubble) === */
.cp-activity-toast {
  position: fixed;
  bottom: 90px;
  left: 20px;
  z-index: 996;
  background: white;
  border: 1px solid #D8EBD8;
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(27,67,50,0.12);
  max-width: 320px;
  font-family: 'Inter', system-ui, sans-serif;
  transform: translateY(140%);
  opacity: 0;
  transition: all .5s cubic-bezier(0.16,1,0.3,1);
}
.cp-activity-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}
.cp-activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00C46E, #52B788);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cp-activity-text {
  font-size: 13px;
  color: #4A5C50;
  line-height: 1.4;
}
.cp-activity-text strong {
  color: #1A3A2A;
  display: block;
  font-weight: 700;
  font-size: 14px;
}
.cp-activity-time {
  font-size: 11px;
  color: #8FA396;
  margin-top: 2px;
}
.cp-activity-close {
  background: none;
  border: none;
  color: #8FA396;
  cursor: pointer;
  font-size: 16px;
  padding: 0 4px;
  line-height: 1;
}
@media (max-width: 640px) {
  .cp-activity-toast {
    bottom: 80px;
    left: 12px;
    right: 80px;
    max-width: none;
  }
}

/* === EXIT-INTENT MODAL === */
.cp-exit-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15,31,20,0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
  padding: 20px;
}
.cp-exit-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.cp-exit-box {
  background: white;
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: scale(0.9);
  transition: transform .4s cubic-bezier(0.16,1,0.3,1);
}
.cp-exit-modal.is-visible .cp-exit-box {
  transform: scale(1);
}
.cp-exit-header {
  background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 50%, #00875A 100%);
  padding: 28px 28px 20px;
  color: white;
  position: relative;
}
.cp-exit-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  line-height: 1;
}
.cp-exit-close:hover {
  background: rgba(255,255,255,0.25);
}
.cp-exit-badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.cp-exit-header h3 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  color: white;
}
.cp-exit-header p {
  font-size: 14px;
  opacity: 0.9;
  margin: 0;
  line-height: 1.5;
}
.cp-exit-body {
  padding: 24px 28px 28px;
}
.cp-exit-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.cp-exit-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  color: #1A3A2A;
}
.cp-exit-benefits svg {
  flex-shrink: 0;
  color: #00875A;
}
.cp-exit-cta {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #00875A, #00C46E);
  color: white;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .3s;
  font-family: inherit;
}
.cp-exit-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,135,90,0.3);
}
.cp-exit-skip {
  display: block;
  text-align: center;
  margin-top: 14px;
  background: none;
  border: none;
  color: #5A6358;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}

/* === DARK MODE VARIANTS === */
[data-theme="dark"] .cp-sticky-cta {
  background: rgba(15,30,23,0.96);
  border-top-color: rgba(110,232,155,0.15);
}
[data-theme="dark"] .cp-sticky-cta-text { color: #E8F0E4; }
[data-theme="dark"] .cp-sticky-cta-text small { color: #B7D4BE; }
[data-theme="dark"] .cp-sticky-cta-btn { background: #3DDB8A; color: #0A1410; }
[data-theme="dark"] .cp-sticky-cta-btn:hover { background: #7DDBA1; }
[data-theme="dark"] .cp-sticky-cta-phone { color: #3DDB8A; }
[data-theme="dark"] .cp-activity-toast {
  background: #111C17;
  border-color: rgba(110,232,155,0.15);
}
[data-theme="dark"] .cp-activity-text strong { color: #E8F0E4; }
[data-theme="dark"] .cp-activity-text { color: #B7D4BE; }
[data-theme="dark"] .cp-wa-tooltip {
  background: #111C17;
  border-color: rgba(110,232,155,0.15);
  color: #E8F0E4;
}
[data-theme="dark"] .cp-wa-tooltip::after { border-left-color: #111C17; }
[data-theme="dark"] .cp-exit-box { background: #111C17; }
[data-theme="dark"] .cp-exit-benefits li { color: #E8F0E4; }
