/* Home Page Modern Styles */

/* Reset container and main styles for home page */
.wrapper {
  background: none !important;
}

/* Global improvements for modern look */
* {
  box-sizing: border-box;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Better container styling */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #a27fcf 0%, #744aab 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
  margin: 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.highlight-text {
  background: linear-gradient(45deg, #fff, #e0d4f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(45deg, #fff, #f8f4ff);
  color: #744aab;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  background: linear-gradient(45deg, #f8f4ff, #fff);
}

.btn-primary:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.btn-primary:active {
  transform: translateY(0);
  transition: transform 0.1s ease;
}

.btn-secondary {
  background: transparent;
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-secondary:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Enhance whatsapp button */
.whatsapp-float {
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  transform: scale(1.1);
}

.hero-stats {
  display: flex;
  gap: 2rem;
}

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

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.25rem;
}

.stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Improved animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text {
  animation: fadeInUp 0.8s ease-out;
}

.hero-visual {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  max-width: 350px;
  transform: rotate(3deg);
  transition: transform 0.3s ease;
}

.hero-card:hover {
  transform: rotate(0deg) scale(1.05);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.card-dots {
  display: flex;
  gap: 0.5rem;
}

.card-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #744aab;
}

.card-dots span:nth-child(2) {
  background: #a27fcf;
}

.card-dots span:nth-child(3) {
  background: #d4c5e8;
}

.card-title {
  font-weight: 600;
  color: #744aab;
}

.demo-menu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
}

.item-image {
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, #a27fcf, #744aab);
  border-radius: 10px;
}

.item-details h4 {
  margin: 0;
  font-size: 1rem;
  color: #333;
}

.item-details p {
  margin: 0.25rem 0 0 0;
  color: #744aab;
  font-weight: 600;
}

/* Features Section */
.features-section {
  padding: 6rem 0;
  background: linear-gradient(to bottom, #744aab, #a27fcf);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-card.featured {
  background: linear-gradient(135deg, #744aab, #a27fcf);
  color: white;
}

.feature-card .feature-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff6b6b;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #a27fcf, #744aab);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.feature-card.featured .feature-icon {
  background: rgba(255, 255, 255, 0.2);
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

.feature-card.featured h3 {
  color: white;
}

.feature-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.feature-card.featured p {
  color: rgba(255, 255, 255, 0.9);
}

.feature-highlight {
  display: inline-block;
  background: #744aab;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.feature-card.featured .feature-highlight {
  background: rgba(255, 255, 255, 0.2);
}

/* Benefits Section */
.benefits-section {
  padding: 6rem 0;
  background: white;
}

.benefits-section .section-title,
.benefits-section .section-subtitle {
  color: #333;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.benefit-item {
  padding: 2rem;
  border-radius: 15px;
  background: #f8f4ff;
  transition: all 0.3s ease;
  border: 1px solid rgba(116, 74, 171, 0.1);
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(116, 74, 171, 0.1);
  background: white;
}

.benefit-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #a27fcf, #744aab);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1.5rem;
}

.benefit-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.benefit-item p {
  color: #666;
  line-height: 1.6;
}

/* FAQ Section */
.faq-section {
  padding: 6rem 0;
  background: linear-gradient(to bottom, #f8f4ff, white);
}

/* CTA Section */
.cta-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #744aab, #a27fcf);
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.btn-primary.large {
  font-size: 1.1rem;
  padding: 1.25rem 3rem;
  margin-bottom: 2rem;
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-features span {
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-features i {
  color: #4ade80;
}

/* Subtle hover effects to all sections */
.feature-card,
.benefit-item {
  cursor: pointer;
}

/* Loading animation for cards */
.feature-card {
  animation: fadeInUp 0.6s ease-out;
}

.benefit-item {
  animation: fadeInUp 0.6s ease-out;
}

/* Stagger animation for grid items */
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.benefit-item:nth-child(1) { animation-delay: 0.1s; }
.benefit-item:nth-child(2) { animation-delay: 0.2s; }
.benefit-item:nth-child(3) { animation-delay: 0.3s; }
.benefit-item:nth-child(4) { animation-delay: 0.4s; }
.benefit-item:nth-child(5) { animation-delay: 0.5s; }
.benefit-item:nth-child(6) { animation-delay: 0.6s; }

/* Modern Hero Section for Free Site partial */
.modern-hero-section {
  background: linear-gradient(135deg, #a27fcf 0%, #744aab 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.modern-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.modern-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 100%;
}

.modern-hero-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
  width: 100%;
}

.modern-hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 3;
}

.modern-hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 3;
}

.modern-hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 3;
}

.modern-hero-features {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
  position: relative;
  z-index: 2;
}

.modern-hero-features .feature-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  color: white;
  font-weight: 500;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Modern Features Section */
.modern-features-section {
  padding: 6rem 0;
  background: linear-gradient(to bottom, #744aab, #a27fcf);
}

/* Modern Benefits Section */
.modern-benefits-section {
  padding: 6rem 0;
  background: white;
}

.modern-benefits-section .section-title,
.modern-benefits-section .section-subtitle {
  color: #333;
}

/* Modern FAQ Section */
.modern-faq-section {
  padding: 6rem 0;
  background: linear-gradient(to bottom, #f8f4ff, white);
}

.modern-faq-section .section-title,
.modern-faq-section .section-subtitle {
  color: #333;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 15px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 5px 20px rgba(116, 74, 171, 0.15);
}

.faq-question {
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #744aab, #a27fcf);
  color: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease, border-radius 0.2s ease;
  border-radius: 15px;
}

.faq-question:hover {
  background: linear-gradient(135deg, #5e3989, #744aab);
  border-radius: 15px;
}

.faq-question:hover h3 {
  color: white !important;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: white !important;
}

.faq-icon {
  transition: transform 0.3s ease;
  font-size: 1.2rem;
  color: white !important;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #f8f4ff;
  border-radius: 0 0 15px 15px; /* Bordas inferiores arredondadas */
}

.faq-answer p {
  padding: 2rem;
  margin: 0;
  color: #666;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  border-top: 1px solid rgba(116, 74, 171, 0.1);
  max-height: 1000px !important; /* Um valor alto para garantir que o conteúdo seja visível */
  border-radius: 0 0 15px 15px; /* Garantir que as bordas inferiores permaneçam arredondadas */
}

.faq-item.active .faq-question {
  border-radius: 15px 15px 0 0; /* Apenas as bordas superiores arredondadas quando está aberto */
}

/* Garantir que todas as bordas estejam arredondadas quando fechado */
.faq-item:not(.active) .faq-question {
  border-radius: 15px;
}

/* Responsive adjustments for partials */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-card {
    transform: none;
  }
  
  .hero-card:hover {
    transform: scale(1.05);
  }
  
  .features-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-features {
    flex-direction: column;
    align-items: center;
  }
  
  .modern-hero-title {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }
  
  .modern-hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .modern-hero-buttons {
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.5rem;
  }
  
  .modern-hero-features {
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
  }
  
  .modern-hero-features .feature-badge {
    justify-content: center;
    max-width: 200px;
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
  }
  
  .faq-question {
    padding: 1rem 1.5rem;
    border-radius: 15px;
  }
  
  .faq-question h3 {
    color: white !important;
  }
  
  .faq-answer p {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .modern-hero-section {
    padding: 2.5rem 0;
  }
  
  .modern-hero-title {
    font-size: 1.8rem;
    line-height: 1.4;
  }
  
  .modern-hero-subtitle {
    font-size: 1rem;
  }
  
  .modern-hero-features {
    gap: 0.8rem;
    flex-wrap: wrap;
  }
  
  .modern-hero-features .feature-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    max-width: 160px;
    flex-shrink: 1;
  }
}

/* Fix para cores de texto do FAQ */
.modern-faq-section .faq-question,
.modern-faq-section .faq-question h3,
.modern-faq-section .faq-question:hover,
.modern-faq-section .faq-question:hover h3,
.modern-faq-section .faq-question:active,
.modern-faq-section .faq-question:active h3,
.modern-faq-section .faq-question:focus,
.modern-faq-section .faq-question:focus h3 {
  color: white !important;
}

.faq-icon {
  color: white !important;
}

/* Assegura que o FAQ funcione corretamente quando ativo */
.faq-item.active .faq-answer {
  max-height: 1000px !important; /* Um valor alto para garantir que o conteúdo seja visível */
  border-top: 1px solid rgba(116, 74, 171, 0.1);
}
