/* =============================================
   Floating Consultant CTA — Atlas-style
   ============================================= */

.floating-consultant {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  pointer-events: auto;
}

.floating-consultant-message {
  min-width: 220px;
  padding: 14px 18px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(2, 2, 2, 0.92), rgba(20, 20, 20, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateX(12px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-consultant:hover .floating-consultant-message {
  transform: translateX(0);
  opacity: 1;
}

.floating-consultant-message strong,
.floating-consultant-message span {
  display: block;
}

.floating-consultant-message strong {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 3px;
  color: #fff;
}

.floating-consultant-message span {
  color: rgba(255, 255, 255, 0.58);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.floating-consultant-button {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: var(--wine, #8D0F08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.20);
  box-shadow: 0 18px 42px rgba(141, 15, 8, 0.40);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-consultant-button svg,
.floating-consultant-button i {
  width: 30px;
  height: 30px;
  font-size: 30px;
  line-height: 1;
}

/* Pulse ring */
.floating-consultant-button::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 26px;
  border: 2px solid rgba(141, 15, 8, 0.45);
  animation: fabPulse 2.4s ease-out infinite;
}

@keyframes fabPulse {
  0% {
    opacity: 0.7;
    transform: scale(0.88);
  }
  100% {
    opacity: 0;
    transform: scale(1.28);
  }
}

/* Hover */
.floating-consultant:hover .floating-consultant-button {
  transform: translateY(-4px) rotate(-3deg);
  background: #a01209;
  box-shadow: 0 22px 50px rgba(141, 15, 8, 0.50);
}

/* Entrance animation */
@keyframes fabConsultantEnter {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.floating-consultant {
  animation: fabConsultantEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.2s both;
}

/* Scroll shrink */
.floating-consultant.is-shrunk {
  transform: scale(0.88);
  opacity: 0.85;
}

.floating-consultant.is-shrunk:hover {
  transform: scale(0.94) translateY(-2px);
  opacity: 1;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Responsive — Tablet */
@media (max-width: 992px) {
  .floating-consultant {
    right: 20px;
    bottom: 20px;
  }

  .floating-consultant-button {
    width: 56px;
    height: 56px;
    border-radius: 18px;
  }

  .floating-consultant-button svg,
  .floating-consultant-button i {
    width: 26px;
    height: 26px;
    font-size: 26px;
  }
}

/* Responsive — Mobile */
@media (max-width: 576px) {
  .floating-consultant {
    right: 16px;
    bottom: 16px;
  }

  .floating-consultant-button {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .floating-consultant-button svg,
  .floating-consultant-button i {
    width: 24px;
    height: 24px;
    font-size: 24px;
  }

  .floating-consultant-message {
    min-width: 190px;
    padding: 12px 14px;
  }

  .floating-consultant-message strong {
    font-size: 13px;
  }

  .floating-consultant-message span {
    font-size: 11px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .floating-consultant,
  .floating-consultant-button,
  .floating-consultant-button::before {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
