/* Custom CSS for Comunidade Vida de Líder Landing Page */

/* CSS Variables */
:root {
  --primary-color: #FD6002;
  --secondary-color: #000000;
  --accent-color: #FD6002;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

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

/* Body styles */
body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

/* Heading font family */
.font-heading {
  font-family: 'Poppins', sans-serif;
}

/* Custom button styles */
.btn-primary {
  background-color: #16a34a; /* green-600 */
  color: white;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background-color: #15803d; /* green-700 */
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.btn-primary:focus {
  outline: none;
  ring: 4px;
  ring-color: rgba(253, 96, 2, 0.4);
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animation classes */
.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fadeIn {
  animation: fadeIn 0.8s ease-out;
}

.animate-slideInLeft {
  animation: slideInLeft 0.6s ease-out;
}

.animate-slideInRight {
  animation: slideInRight 0.6s ease-out;
}

/* Intersection Observer animations */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Custom gradient backgrounds */
.gradient-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #e55502 100%);
}

.gradient-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #374151 100%);
}

/* FAQ Accordion styles */
.faq-button {
  transition: all 0.3s ease;
}

.faq-button:hover {
  background-color: var(--gray-50);
}

.faq-button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-content.show {
  max-height: 500px;
  transition: max-height 0.3s ease-in;
}

/* Pricing card special effects */
.pricing-card {
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.pricing-card:hover::before {
  left: 100%;
}

/* Testimonial card styles */
.testimonial-card {
  position: relative;
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--primary-color);
  font-family: serif;
  line-height: 1;
}

/* Hero section specific styles */
#hero {
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  position: relative;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 25% 25%, rgba(253, 96, 2, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Section spacing */
section {
  position: relative;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e55502;
}

/* Focus styles for accessibility */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Responsive typography */
@media (max-width: 640px) {
  .text-responsive-xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
  
  .text-responsive-2xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

@media (min-width: 641px) {
  .text-responsive-xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
  
  .text-responsive-2xl {
    font-size: 3rem;
    line-height: 1;
  }
}

/* Loading animation for images */
.image-placeholder {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Custom image styles */
.vitoria-image {
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  transition: all 0.3s ease;
  max-width: 100%;
  height: auto;
}

.vitoria-image:hover {
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.2)) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
  transform: translateY(-2px) scale(1.02);
}

/* Responsive image sizes - HUGE sizes now! */
@media (max-width: 640px) {
  .vitoria-image {
    min-width: 400px;
    min-height: 400px;
    max-width: 500px;
    max-height: 500px;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .vitoria-image {
    min-width: 500px;
    min-height: 500px;
    max-width: 600px;
    max-height: 600px;
  }
}

@media (min-width: 1024px) {
  .vitoria-image {
    min-width: 600px;
    min-height: 600px;
    max-width: 700px;
    max-height: 700px;
  }
}

/* Testimonial images styles */
.testimonial-image {
  transition: all 0.3s ease;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

.testimonial-image:hover {
  transform: translateY(-5px) scale(1.02);
  filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.15));
}

/* Features section media styles */
.feature-video {
  transition: all 0.3s ease;
  border-radius: 0.5rem;
}

.feature-video:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.feature-image {
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.feature-image:hover {
  transform: translateY(-2px) scale(1.02);
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.15));
}

/* SPCI+ Pillars image styles */
.spci-pillars-image {
  transition: all 0.3s ease;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  position: relative;
  z-index: 10;
  min-height: 200px;
}

.spci-pillars-image:hover {
  transform: scale(1.02);
}

/* Testimonial images styles */
.testimonial-image {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  position: relative;
  z-index: 5;
  min-height: 200px;
  background: white;
}

/* Mobile specific fixes */
@media (max-width: 768px) {
  .testimonial-image {
    max-width: 90% !important;
    margin: 0 auto !important;
    height: auto !important;
  }

  .spci-pillars-image {
    max-width: 90% !important;
    margin: 0 auto !important;
  }

  /* Fix for KS photo on mobile */
  img[alt="Foto do KS"] {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    background: transparent !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 200px !important;
    max-width: 100% !important;
  }

  /* Ensure picture container works properly */
  picture {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }
}
