/* ═══════════ ecomit site extras — Upgrade Plan v2 ═══════════
   Floating WhatsApp, sticky mobile CTA, exit-intent, newsletter,
   Where We Operate, reduced motion. Neutral palette per plan §2. */

/* ── Floating WhatsApp button (neutral, subtle pulse) ── */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 880;
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20,20,20,0.85); color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  transition: transform 0.2s, border-color 0.2s;
}
.wa-float:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.3); }
.wa-float::after {
  content: ''; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  animation: waPulse 2.6s ease-out infinite; pointer-events: none;
}
[data-theme="light"] .wa-float { background: rgba(255,255,255,0.9); color: #0D0D0D; border-color: rgba(0,0,0,0.12); box-shadow: 0 8px 28px rgba(0,0,0,0.15); }
[data-theme="light"] .wa-float::after { border-color: rgba(0,0,0,0.2); }
@keyframes waPulse {
  0%   { transform: scale(1); opacity: 0.8; }
  70%  { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* ── Sticky mobile CTA bar (service pages, appears on scroll) ── */
.sticky-cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 870;
  display: none; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.8rem 1.25rem calc(0.8rem + env(safe-area-inset-bottom));
  background: rgba(13,13,13,0.92);
  border-top: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transform: translateY(100%); transition: transform 0.35s ease;
}
.sticky-cta-bar.visible { transform: translateY(0); }
.sticky-cta-bar .scb-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); line-height: 1.35; }
.sticky-cta-bar .scb-btn {
  flex-shrink: 0; padding: 0.6rem 1.3rem; border-radius: 8px; border: none;
  background: var(--purple, #6B21A8); color: #fff;
  font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 700; cursor: pointer;
}
[data-theme="light"] .sticky-cta-bar { background: rgba(247,247,247,0.94); border-top-color: rgba(0,0,0,0.10); }
[data-theme="light"] .sticky-cta-bar .scb-label { color: rgba(13,13,13,0.6); }
@media (max-width: 768px) { .sticky-cta-bar { display: flex; } body.has-sticky-cta .wa-float { bottom: 84px; } }

/* ── Exit-intent popup (desktop only, frequency capped in JS) ── */
.ei-overlay {
  position: fixed; inset: 0; z-index: 950; display: none;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.ei-overlay.open { display: flex; }
.ei-modal {
  width: min(440px, calc(100vw - 3rem)); padding: 2.5rem;
  background: var(--bg-s, #141414); color: var(--text, #fff);
  border: 1px solid rgba(255,255,255,0.10); border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5); position: relative; text-align: center;
}
[data-theme="light"] .ei-modal { border-color: rgba(0,0,0,0.10); }
.ei-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  color: var(--muted, rgba(255,255,255,0.5)); font-size: 1rem; cursor: pointer;
}
.ei-modal h3 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.7rem; }
.ei-modal p { font-size: 0.9rem; color: var(--muted, rgba(255,255,255,0.5)); line-height: 1.7; margin-bottom: 1.5rem; }
.ei-modal .ei-btn {
  display: inline-flex; padding: 0.85rem 1.9rem; border: none; border-radius: 8px;
  background: var(--purple, #6B21A8); color: #fff;
  font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 700; cursor: pointer;
}

/* ── Footer newsletter ── */
.nl-wrap { margin-top: 1.4rem; }
.nl-wrap h6 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.7rem; }
.nl-form { display: flex; gap: 0.5rem; max-width: 320px; }
.nl-form input {
  flex: 1; min-width: 0; padding: 0.6rem 0.9rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04);
  color: var(--text, #fff); font-family: 'Inter', sans-serif; font-size: 0.83rem;
}
.nl-form input:focus { outline: none; border-color: var(--purple-mid, #8B3FCB); }
[data-theme="light"] .nl-form input { border-color: rgba(0,0,0,0.14); background: rgba(0,0,0,0.04); }
.nl-form button {
  padding: 0.6rem 1.1rem; border: none; border-radius: 8px;
  background: var(--purple, #6B21A8); color: #fff;
  font-family: 'Inter', sans-serif; font-size: 0.83rem; font-weight: 700; cursor: pointer;
}
.nl-msg { font-size: 0.78rem; color: var(--muted, rgba(255,255,255,0.5)); margin-top: 0.5rem; display: none; }
.nl-msg.show { display: block; }

/* ── Where We Operate (home) ── */
.operate-section { padding: 6rem 0; background: var(--bg-s, #141414); border-top: 1px solid var(--border, rgba(255,255,255,0.10)); }
.operate-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin-top: 3rem; }
.operate-card {
  padding: 1.5rem 1rem; text-align: center; border-radius: 16px;
  background: var(--glass, rgba(255,255,255,0.04));
  border: 1px solid var(--border, rgba(255,255,255,0.10));
  transition: border-color 0.25s, transform 0.25s;
}
.operate-card:hover { border-color: rgba(255,255,255,0.25); transform: translateY(-3px); }
[data-theme="light"] .operate-card:hover { border-color: rgba(0,0,0,0.25); }
.operate-card .op-flag { font-size: 1.9rem; line-height: 1; margin-bottom: 0.7rem; }
.operate-card .op-name { font-size: 0.86rem; font-weight: 700; }
@media (max-width: 900px) { .operate-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .operate-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Accessibility: respect reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ── Featured insights strip (home) ── */
.insights-section { padding: 6rem 0; background: var(--bg, #0D0D0D); border-top: 1px solid var(--border, rgba(255,255,255,0.10)); }
.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.insight-card {
  display: flex; flex-direction: column; gap: 0.6rem; padding: 1.75rem;
  background: var(--glass, rgba(255,255,255,0.04));
  border: 1px solid var(--border, rgba(255,255,255,0.10)); border-radius: 18px;
  transition: border-color 0.3s, transform 0.3s;
}
.insight-card:hover { border-color: rgba(255,255,255,0.25); transform: translateY(-4px); }
[data-theme="light"] .insight-card:hover { border-color: rgba(0,0,0,0.25); }
.insight-card .in-meta { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple-mid, #8B3FCB); }
.insight-card h3 { font-size: 1rem; font-weight: 800; line-height: 1.4; }
.insight-card p { font-size: 0.84rem; color: var(--muted, rgba(255,255,255,0.5)); line-height: 1.7; flex: 1; }
.insight-card .in-link { font-size: 0.8rem; font-weight: 700; color: var(--purple-mid, #8B3FCB); }
@media (max-width: 900px) { .insights-grid { grid-template-columns: 1fr; } }
