/* ═══════════════════════════════════════════════════════════════
   CRO - CONVERSION RATE OPTIMIZATION
   Layout & Positioning Only - Visual styling in theme CSS files
   ═══════════════════════════════════════════════════════════════ */

/* ─── Floating CTA Button ─── */
.floating-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  text-decoration: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
}

.floating-cta.hidden {
  opacity: 0;
  transform: translateY(100px);
  pointer-events: none;
}

.floating-cta-icon {
  font-size: 1.2rem;
}

.floating-cta-text {
  white-space: nowrap;
}

.floating-cta-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ─── Hero CTA Button ─── */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1rem 2.5rem;
  text-decoration: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.hero-cta-arrow {
  transition: transform 0.3s ease;
}

.hero-cta:hover .hero-cta-arrow {
  transform: translateX(5px);
}

/* ─── Social Proof Stats ─── */
.social-proof {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
}

.proof-stat {
  text-align: center;
}

.proof-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.proof-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ─── Exit Intent Modal ─── */
.exit-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.exit-modal.visible {
  opacity: 1;
  visibility: visible;
}

.exit-modal-content {
  position: relative;
  padding: 3rem;
  max-width: 450px;
  width: 90%;
  text-align: center;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease;
}

.exit-modal.visible .exit-modal-content {
  transform: translateY(0) scale(1);
}

.exit-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  transition: color 0.3s ease;
}

.exit-modal-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.exit-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.exit-modal-text {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.exit-modal-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.exit-modal-arrow {
  transition: transform 0.3s ease;
}

.exit-modal-cta:hover .exit-modal-arrow {
  transform: translateX(5px);
}

.exit-modal-dismiss {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem;
  background: none;
  border: none;
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

/* ─── Scroll Progress Bar ─── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ─── Availability Badge ─── */
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.availability-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* ─── Contact Urgency Banner ─── */
.contact-urgency {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.urgency-icon {
  animation: urgency-bounce 1s ease infinite;
}

@keyframes urgency-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ─── Response Time Badge ─── */
.response-time {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
}

.response-icon {
  font-size: 1rem;
}

/* ─── Responsive Adjustments ─── */
@media (max-width: 768px) {
  .floating-cta {
    bottom: 1rem;
    right: 1rem;
    padding: 0.875rem 1.25rem;
    font-size: 0.8rem;
  }

  .floating-cta-text {
    display: none;
  }

  .floating-cta-icon {
    font-size: 1.4rem;
  }

  .social-proof {
    flex-direction: column;
    gap: 1.5rem;
  }

  .proof-number {
    font-size: 1.5rem;
  }

  .exit-modal-content {
    padding: 2rem;
  }

  .hero-cta {
    padding: 0.875rem 2rem;
    font-size: 0.9rem;
  }

  .contact-urgency {
    flex-direction: column;
    text-align: center;
  }
}

/* ─── Animation Classes ─── */
.cro-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.cro-animate.visible {
  opacity: 1;
  transform: translateY(0);
}
