/* ==========================================================================
   PONTO CRUZ LUCRATIVO - CUSTOM CSS & MOBILE-FIRST OPTIMIZATIONS
   ========================================================================== */

:root {
  --color-bg: #FAF7F2;
  --color-card: #FFFFFF;
  --color-border: #EFE8DE;
  --color-primary: #C85A32;
  --color-primary-dark: #B34722;
  --color-primary-light: #FDF8F5;
  --color-accent: #E07A5F;
  --color-green: #16A34A;
  --color-green-dark: #15803D;
  --color-text-dark: #2B231F;
  --color-text-muted: #6B6059;
}

/* Smooth Scrolling & Typography Defaults */
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text-dark);
}

body {
  overflow-x: hidden;
  line-height: 1.5;
}

/* Custom Selection */
::selection {
  background-color: #F5D6C8;
  color: #8E3416;
}

/* Aesthetic Shadows */
.shadow-artisan {
  box-shadow: 0 4px 20px -2px rgba(200, 90, 50, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
}

.shadow-card-elevated {
  box-shadow: 0 10px 30px -5px rgba(43, 35, 31, 0.06), 0 4px 10px -2px rgba(43, 35, 31, 0.03);
}

.shadow-cta {
  box-shadow: 0 8px 24px -4px rgba(22, 163, 74, 0.45);
}

.shadow-cta:hover {
  box-shadow: 0 12px 28px -4px rgba(22, 163, 74, 0.55);
}

.shadow-cta-terracotta {
  box-shadow: 0 8px 24px -4px rgba(200, 90, 50, 0.4);
}

/* Pulse Animations for CTAs */
@keyframes cta-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.animate-cta-pulse {
  animation: cta-pulse 3s infinite ease-in-out;
}

@keyframes glow-badge {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 16px rgba(200, 90, 50, 0.5);
  }
}

.animate-glow {
  animation: glow-badge 2.5s infinite ease-in-out;
}

/* Subtle Shimmer for Highlighting */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer-badge {
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

/* Custom Scrollbar for Carousels */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Range Slider Styling for Mini Calculator */
input[type="range"] {
  accent-color: #C85A32;
}

/* Accordion Smooth Transitions */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease-in-out;
  opacity: 0;
}

.faq-item.active .faq-content {
  max-height: 500px;
  opacity: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-icon {
  transition: transform 0.3s ease;
}

/* WhatsApp Realistic Chat Bubble Tail */
.chat-bubble-received {
  position: relative;
  border-radius: 0.75rem 0.75rem 0.75rem 0.25rem;
}

.chat-bubble-received::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: -8px;
  width: 0;
  height: 0;
  border-right: 8px solid #FFFFFF;
  border-top: 8px solid transparent;
}

.chat-bubble-sent {
  position: relative;
  background-color: #DCF8C6;
  border-radius: 0.75rem 0.75rem 0.25rem 0.75rem;
}

.chat-bubble-sent::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: -8px;
  width: 0;
  height: 0;
  border-left: 8px solid #DCF8C6;
  border-top: 8px solid transparent;
}

/* Mobile Sticky Bar Display */
#sticky-cta-bar {
  transition: transform 0.35s ease, opacity 0.35s ease;
}

#sticky-cta-bar.hidden-bar {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

#sticky-cta-bar.visible-bar {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Subtle dot background pattern */
.bg-artisan-dots {
  background-image: radial-gradient(#E8DCD2 1px, transparent 1px);
  background-size: 20px 20px;
}

/* ==========================================================================
   UPGRADE MODAL / POPUP (Mobile-First)
   ========================================================================== */
body.modal-open {
  overflow: hidden;
}

#upgrade-modal {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#upgrade-modal.modal-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#upgrade-modal.modal-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#upgrade-modal-card {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#upgrade-modal.modal-hidden #upgrade-modal-card {
  transform: scale(0.92) translateY(20px);
  opacity: 0;
}

#upgrade-modal.modal-visible #upgrade-modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Estilo do divisor com badge */
.upgrade-step-connector {
  position: relative;
}
.upgrade-step-connector::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #EFE8DE;
  z-index: 1;
}

