/* css/sticky-cta.css — Sticky quote CTA bar (B-6)
   Bottom-center floating card, slides in when hero is scrolled past.
   Mutual-exclusion helper .l-fab-hidden-by-cta hides the FAB while bar is visible. */

.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 140%);
  transform-origin: center bottom;
  z-index: 100;
  width: min(560px, calc(100vw - 32px));
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 12px 14px;
  opacity: 0;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
  pointer-events: none;
}

.sticky-cta.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-cta__inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sticky-cta__text {
  flex: 1 1 auto;
  min-width: 0;
}

.sticky-cta__title {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}

.sticky-cta__sub {
  font-size: 12px;
  color: #6b6b6b;
  line-height: 1.4;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-cta__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sticky-cta__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.42);
}

.sticky-cta__btn:active {
  transform: translateY(0);
}

.sticky-cta__close {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: #9ca3af;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.sticky-cta__close:hover {
  background: #f3f4f6;
  color: #374151;
}

.sticky-cta__close:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

/* FAB mutual-exclusion helper (added by sticky-cta.js) */
.l-fab-hidden-by-cta {
  display: none !important;
}

/* Mobile: full-width bottom bar, larger tap targets */
@media (max-width: 640px) {
  .sticky-cta {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    border-radius: 16px 16px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    transform: translateY(140%);
  }
  .sticky-cta.is-visible {
    transform: translateY(0);
  }
  .sticky-cta__title {
    font-size: 14px;
  }
  .sticky-cta__sub {
    font-size: 11px;
  }
  .sticky-cta__btn {
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .sticky-cta {
    transition: opacity 0.15s ease;
  }
}
