/* Serenity Smart Homes Floating CTA - Brand Aligned */
.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #086972 0%, #0a7d87 100%);
  color: #ffffff;
  padding: 18px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  font-family: inherit;
  box-shadow: 0 8px 25px rgba(8, 105, 114, 0.3);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  text-align: center;
  min-width: 200px;
  backdrop-filter: blur(10px);
}

/* Hover effects matching your brand */
.floating-cta:hover {
  background: linear-gradient(135deg, #0a7d87 0%, #086972 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(8, 105, 114, 0.4);
  color: #ffffff;
  text-decoration: none;
}

/* Active state */
.floating-cta:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(8, 105, 114, 0.3);
}

/* Focus state for accessibility */
.floating-cta:focus {
  outline: none;
  border: 2px solid #ffffff;
  box-shadow: 0 8px 25px rgba(8, 105, 114, 0.3), 0 0 0 4px rgba(8, 105, 114, 0.2);
}

/* Pulse animation for attention */
.floating-cta::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #086972 0%, #0a7d87 100%);
  border-radius: 52px;
  z-index: -1;
  animation: pulse-ring 2s infinite;
  opacity: 0.7;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.4;
  }
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
}

/* Responsive design matching your mobile approach */
@media (max-width: 768px) {
  .floating-cta {
    bottom: 20px;
    right: 20px;
    left: 20px;
    padding: 16px 24px;
    font-size: 15px;
    min-width: auto;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .floating-cta {
    bottom: 15px;
    right: 15px;
    left: 15px;
    padding: 14px 20px;
    font-size: 14px;
  }
}

/* Hide on very small screens if needed */
@media (max-width: 360px) {
  .floating-cta {
    display: none;
  }
}

/* Optional: Add emoji or icon support */
.floating-cta .emoji {
  margin-right: 8px;
  font-size: 18px;
}

/* Alternate style without gradient (if you prefer solid) */
.floating-cta.solid {
  background: #086972;
}

.floating-cta.solid:hover {
  background: #0a7d87;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .floating-cta {
    background: #086972;
    border: 2px solid #ffffff;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .floating-cta {
    transition: none;
  }
  
  .floating-cta::before {
    animation: none;
  }
}

/* Print styles */
@media print {
  .floating-cta {
    display: none;
  }
}