/* ============================================================================
   cosmos UI enhancements — additive UX layer
   - Sticky mobile CTA bar (#cf-sticky-cta)
   - Hero trust badge polish (data-anim-stagger hero-subhead)
   - No HTML changes required; styles target existing elements.
   ============================================================================ */

/* ---------- 1. STICKY MOBILE CTA BAR ---------- */

#cf-sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  gap: 8px;
  padding: 10px 12px env(safe-area-inset-bottom, 10px);
  background: #ffffffd9;
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-top: 1px solid rgba(10, 37, 64, 0.10);
  box-shadow: 0 -6px 24px rgba(10, 37, 64, 0.10);
  z-index: 9990;
  font-family: inherit;
  transform: translateY(0);
  transition: transform 280ms cubic-bezier(.2, .8, .2, 1), opacity 280ms ease;
  will-change: transform;
}
#cf-sticky-cta.cf-sticky-cta--hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

#cf-sticky-cta-spacer {
  min-height: clamp(64px, 14vw, 80px);
  width: 100%;
  pointer-events: none;
}
#cf-sticky-cta-spacer.cf-sticky-cta--hidden { min-height: 0; height: 0; }

.cf-sticky-cta__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  transition: transform 120ms ease, box-shadow 200ms ease, background 200ms ease;
}
.cf-sticky-cta__btn:active { transform: translateY(1px); }

.cf-sticky-cta__btn--primary {
  background: linear-gradient(135deg, #E8622A 0%, #ff7f47 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(232, 98, 42, 0.32);
}
.cf-sticky-cta__btn--primary:hover { box-shadow: 0 6px 20px rgba(232, 98, 42, 0.44); }

.cf-sticky-cta__btn--whatsapp {
  background: #25D366;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.30);
}
.cf-sticky-cta__btn--whatsapp:hover { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.42); }

.cf-sticky-cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cf-sticky-cta__label {
  display: inline-block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cf-sticky-cta__dismiss {
  align-self: center;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(10, 37, 64, 0.08);
  color: #0a2540;
  font-size: 22px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}
.cf-sticky-cta__dismiss:hover { background: rgba(10, 37, 64, 0.14); }
.cf-sticky-cta__dismiss:focus-visible {
  outline: 2px solid #E8622A;
  outline-offset: 2px;
}

/* Don't render sticky bar on desktop */
@media (min-width: 769px) {
  #cf-sticky-cta, #cf-sticky-cta-spacer { display: none !important; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  #cf-sticky-cta { transition: opacity 200ms ease; }
}

/* ---------- 2. HERO TRUST BADGE POLISH ----------
   REMOVED 2026-05-20: this ::after duplicated the existing
   "Since 2014. 10,569+ UAE residents guided..." paragraph already
   present in index.php — produced a triple-message visual collision.
   Hero trust content stays in the PHP, not injected via CSS. */
