/* Desktop floating CTA — sticky, noticeable */

.floating-cta {
  position: fixed;
  right: max(1rem, calc((100vw - 1160px) / 2));
  bottom: 1.35rem;
  z-index: 92;
  display: none;
  align-items: center;
  gap: 0.55rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1), transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.floating-cta.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.floating-cta__call,
.floating-cta__main {
  pointer-events: auto;
  text-decoration: none;
}

.floating-cta__call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-primary, #0b2430);
  border: 1px solid rgba(196, 146, 58, 0.35);
  box-shadow: 0 10px 28px rgba(6, 21, 28, 0.16);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.floating-cta__call:hover {
  transform: translateY(-3px) scale(1.04);
  background: #fffdf8;
  box-shadow: 0 14px 32px rgba(196, 146, 58, 0.25);
}

.floating-cta__main {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 56px;
  padding: 0.65rem 1.25rem 0.65rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #d4a84b 0%, #c4923a 48%, #a67728 100%);
  color: #fff;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: floating-glow 2.6s ease-in-out infinite;
}

.floating-cta__main:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px rgba(196, 146, 58, 0.55);
}

.floating-cta__main:active {
  transform: translateY(0) scale(0.98);
}

.floating-cta__pulse {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 2px solid rgba(212, 168, 75, 0.65);
  animation: floating-ring 2.4s ease-out infinite;
  pointer-events: none;
}

.floating-cta__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  gap: 0.12rem;
}

.floating-cta__text strong {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.floating-cta__text small {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.78;
  letter-spacing: 0.02em;
}

.floating-cta__main .icon {
  flex-shrink: 0;
}

@keyframes floating-glow {
  0%, 100% {
    box-shadow: 0 12px 32px rgba(196, 146, 58, 0.42), 0 0 0 0 rgba(196, 146, 58, 0.2);
  }
  50% {
    box-shadow: 0 14px 36px rgba(196, 146, 58, 0.55), 0 0 0 8px rgba(196, 146, 58, 0.12);
  }
}

@keyframes floating-ring {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.12);
    opacity: 0;
  }
}

@media (max-width: 767px) {
  .floating-cta {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .floating-cta {
    display: flex;
  }
}

@media (min-width: 1280px) {
  .floating-cta {
    right: max(1.5rem, calc((100vw - 1160px) / 2 - 0.5rem));
    bottom: 1.75rem;
  }

  .floating-cta__main {
    min-height: 60px;
    padding: 0.75rem 1.4rem 0.75rem 1.1rem;
  }

  .floating-cta__text strong {
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-cta__main,
  .floating-cta__pulse {
    animation: none !important;
  }

  .floating-cta {
    transition: none;
  }
}
