/*
Theme Name: Curso Pai da Luz
Description: Landing page moderna para captura de leads do Curso Pai da Luz
Version: 1.0.0
Author: Curso Pai da Luz
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* CSS Variables - Design System */
:root {
  /* Colors - Cyber Theme */
  --background: 210 20% 6%;
  --foreground: 180 100% 90%;
  --card: 210 20% 8%;
  --card-foreground: 180 100% 90%;
  --popover: 210 20% 8%;
  --popover-foreground: 180 100% 90%;
  --primary: 180 100% 32%;
  --primary-foreground: 210 20% 6%;
  --secondary: 250 100% 80%;
  --secondary-foreground: 210 20% 6%;
  --muted: 210 20% 15%;
  --muted-foreground: 180 50% 70%;
  --accent: 285 100% 70%;
  --accent-foreground: 210 20% 6%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 210 20% 98%;
  --border: 210 20% 18%;
  --input: 210 20% 18%;
  --ring: 180 100% 32%;
  --chart-1: 12 76% 61%;
  --chart-2: 173 58% 39%;
  --chart-3: 197 37% 24%;
  --chart-4: 43 74% 66%;
  --chart-5: 27 87% 67%;
  --radius: 0.75rem;
  --orange: 24.6 95% 53.1%;
  --orange-foreground: 60 9.1% 97.8%;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, hsl(180, 100%, 32%), hsl(250, 100%, 80%));
  --gradient-secondary: linear-gradient(135deg, hsl(285, 100%, 70%), hsl(180, 100%, 32%));
  --gradient-hero: linear-gradient(135deg, hsl(var(--background)), hsl(210, 20%, 8%));
  --gradient-card: linear-gradient(135deg, hsl(var(--card)), hsl(210, 20%, 10%));
  
  /* Shadows */
  --shadow-glow: 0 0 40px hsl(var(--primary) / 0.3);
  --shadow-card: 0 10px 30px -10px hsl(var(--primary) / 0.2);
  
  /* Animations */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* CRITICAL: Force SVG sizing for compatibility */
svg:not(.ignore-sizing) {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Explicit SVG size classes - use !important for WordPress compatibility */
.icon-xs { width: 0.75rem !important; height: 0.75rem !important; }
.icon-sm { width: 1rem !important; height: 1rem !important; }
.icon-md { width: 1.25rem !important; height: 1.25rem !important; }
.icon-lg { width: 1.5rem !important; height: 1.5rem !important; }
.icon-xl { width: 2rem !important; height: 2rem !important; }
.icon-2xl { width: 2.5rem !important; height: 2.5rem !important; }
.icon-3xl { width: 3rem !important; height: 3rem !important; }
.icon-4xl { width: 4rem !important; height: 4rem !important; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  font-variation-settings: "opsz" 32;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-hero {
  background: var(--gradient-hero);
}

.bg-gradient-card {
  background: var(--gradient-card);
  backdrop-filter: blur(10px);
  border: 1px solid hsl(var(--border));
}

/* Color utilities */
.text-foreground { color: hsl(var(--foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-secondary { color: hsl(var(--secondary)); }
.text-accent { color: hsl(var(--accent)); }

.bg-background { background-color: hsl(var(--background)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-secondary { background-color: hsl(var(--secondary)); }

.border { border: 1px solid hsl(var(--border)); }
.border-primary { border-color: hsl(var(--primary)); }
.border-secondary { border-color: hsl(var(--secondary)); }

/* Spacing utilities */
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-12 > * + * { margin-top: 3rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

.m-4 { margin: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-20 { margin-top: 5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Layout utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.flex { display: flex; }
.grid { display: grid; }
.block { display: block; }
.hidden { display: none; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.overflow-hidden { overflow: hidden; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

.shadow-2xl { 
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Typography utilities */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.text-7xl { font-size: 4.5rem; }
.text-8xl { font-size: 6rem; }

.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.tracking-tight { letter-spacing: -0.025em; }

/* Grid utilities */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* Desktop Optimization */
@media (min-width: 769px) {
  /* Better spacing for desktop */
  section.relative.min-h-screen .container {
    padding-top: 2rem;
    padding-bottom: 3rem;
  }
  
  section.relative.min-h-screen .max-w-5xl {
    max-width: 72rem;
  }
  
  section.relative.min-h-screen .space-y-12 > * + * {
    margin-top: 3rem;
  }
  
  section.relative.min-h-screen .space-y-8 > * + * {
    margin-top: 2rem;
  }
  
  h1 {
    font-size: 4.5rem !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
  }
  
  h2 {
    font-size: 2rem !important;
    line-height: 1.3 !important;
    font-weight: 400 !important;
  }
  
  #lead-form-container {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    padding: 2.5rem !important;
  }
  
  #lead-form-container input {
    height: 3.5rem !important;
    font-size: 1.125rem !important;
    padding: 1rem 1.25rem !important;
  }
  
  #lead-form-container .btn-hero {
    height: 3.5rem !important;
    font-size: 1.25rem !important;
  }
}

/* Mobile Optimization */
@media (max-width: 639px) {
  /* Reduce top padding on mobile to fit everything in first fold */
  section.relative.min-h-screen {
    padding-top: 0 !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
  }
  
  section.relative.min-h-screen .container {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
  
  /* Hero Section Mobile - Compact first fold */
  h1.text-4xl {
    font-size: 1.5rem !important;
    line-height: 1.15 !important;
    margin-bottom: 0.5rem !important;
  }
  
  h2.text-xl {
    font-size: 0.9rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0.75rem !important;
  }
  
  .space-y-8 > * + * {
    margin-top: 0.875rem !important;
  }
  
  .space-y-12 > * + * {
    margin-top: 1rem !important;
  }
  
  /* Make form more compact on mobile with spacing between inputs */
  #lead-form-container {
    padding: 1rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  #lead-form-container .form-group {
    margin-bottom: 0.625rem;
  }
  
  #lead-form-container input {
    height: 2.75rem !important;
    font-size: 0.875rem !important;
    margin-bottom: 0;
  }
  
  #lead-form-container .btn-hero {
    height: 2.75rem !important;
    font-size: 0.9rem !important;
  }
  
  #lead-form-container p {
    font-size: 0.7rem !important;
    margin-top: 0.5rem !important;
  }
  
  .space-y-4 > * + * {
    margin-top: 0.625rem !important;
  }
  
  /* Reduce vertical spacing */
  .py-16 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .mt-20 {
    margin-top: 0.875rem !important;
  }
  
  /* Scroll indicator on mobile - keep it in first fold */
  .mt-20.text-center {
    margin-top: 0.75rem !important;
  }
  
  .mt-20.text-center p {
    font-size: 0.7rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .mt-20.text-center .w-6 {
    width: 1.25rem !important;
    height: 2rem !important;
  }
  
  /* Make "LUZ NA MENTE" stand out */
  h1.text-4xl span {
    display: inline;
  }
}

/* Responsive design */
@media (min-width: 640px) {
  .sm\:text-2xl { font-size: 1.5rem; }
  .sm\:text-4xl { font-size: 2.25rem; }
  .sm\:text-5xl { font-size: 3rem; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:text-lg { font-size: 1.125rem; }
  .md\:text-3xl { font-size: 1.875rem; }
  .md\:text-6xl { font-size: 3.75rem; }
  
  .order-1 { order: 1; }
  .order-2 { order: 2; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:text-4xl { font-size: 2.25rem; }
  .lg\:text-7xl { font-size: 4.5rem; }
  
  .lg\:order-1 { order: 1; }
  .lg\:order-2 { order: 2; }
}

@media (min-width: 1280px) {
  .xl\:text-7xl { font-size: 4.5rem; }
  .xl\:text-8xl { font-size: 6rem; }
}

.btn-hero {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  outline: none;
  
  /* Gradient background - Orange CTA like preview */
  background: linear-gradient(135deg, hsl(var(--orange)), hsl(24.6 100% 60%));
  color: hsl(var(--orange-foreground));
  
  /* Hover effects */
  overflow: hidden;
}

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

.btn-hero:hover::before {
  left: 100%;
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  background: linear-gradient(135deg, hsl(24.6 100% 58%), hsl(24.6 100% 65%));
}

.btn-hero:active {
  transform: translateY(0);
}

.btn-hero:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-hero .spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 0.5rem;
}

/* Form Styles */
input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  height: 2.5rem;
  padding: 0.5rem 0.75rem;
  background: hsl(var(--background) / 0.5);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  transition: var(--transition-smooth);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
  border-color: hsl(var(--primary));
  outline: none;
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
}

input::placeholder {
  color: hsl(var(--muted-foreground));
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

/* Gradient backgrounds */
.bg-gradient-to-b {
  background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.bg-gradient-to-t {
  background-image: linear-gradient(to top, var(--tw-gradient-stops));
}

.from-background { --tw-gradient-from: hsl(var(--background)); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-secondary\/20 { --tw-gradient-from: hsl(var(--secondary) / 0.2); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.to-background { --tw-gradient-to: hsl(var(--background)); }
.to-secondary\/10 { --tw-gradient-to: hsl(var(--secondary) / 0.1); }
.to-secondary\/20 { --tw-gradient-to: hsl(var(--secondary) / 0.2); }
.via-background\/95 { --tw-gradient-stops: var(--tw-gradient-from), hsl(var(--background) / 0.95), var(--tw-gradient-to, transparent); }
.via-background\/60 { --tw-gradient-stops: var(--tw-gradient-from), hsl(var(--background) / 0.6), var(--tw-gradient-to, transparent); }
.from-background\/80 { --tw-gradient-from: hsl(var(--background) / 0.8); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }

/* Object positioning */
.object-cover { object-fit: cover; }
.object-center { object-position: center; }
.object-top { object-position: top; }
.object-bottom { object-position: bottom; }
.object-left { object-position: left; }
.object-right { object-position: right; }

/* Opacity utilities */
.opacity-20 { opacity: 0.2; }
.opacity-30 { opacity: 0.3; }
.opacity-80 { opacity: 0.8; }

/* Animations */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: none;
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

.animate-slide-up {
  animation: slide-up 0.8s ease-out 0.2s both;
}

.animate-bounce {
  animation: bounce 1s infinite;
}

/* Border utilities */
.border-2 { border-width: 2px; }
.border-primary\/20 { border-color: hsl(var(--primary) / 0.2); }
.border-primary\/30 { border-color: hsl(var(--primary) / 0.3); }
.border-primary\/40 { border-color: hsl(var(--primary) / 0.4); }
.border-primary\/50 { border-color: hsl(var(--primary) / 0.5); }
.border-border { border-color: hsl(var(--border)); }
.border-t { border-top-width: 1px; }
.border-y { border-top-width: 1px; border-bottom-width: 1px; }

/* Width utilities - CRITICAL FOR SVG ICONS */
.w-1 { width: 0.25rem; }
.w-2 { width: 0.5rem; }
.w-3 { width: 0.75rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }

/* Height utilities - CRITICAL FOR SVG ICONS */
.h-1 { height: 0.25rem; }
.h-2 { height: 0.5rem; }
.h-3 { height: 0.75rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-24 { height: 6rem; }

/* SVG sizing - ensures SVGs respect width/height */
svg {
  flex-shrink: 0;
}

svg.w-4 { width: 1rem !important; height: 1rem !important; }
svg.w-5 { width: 1.25rem !important; height: 1.25rem !important; }
svg.w-6 { width: 1.5rem !important; height: 1.5rem !important; }
svg.w-8 { width: 2rem !important; height: 2rem !important; }
svg.w-10 { width: 2.5rem !important; height: 2.5rem !important; }
svg.w-12 { width: 3rem !important; height: 3rem !important; }

svg.h-4 { width: 1rem !important; height: 1rem !important; }
svg.h-5 { width: 1.25rem !important; height: 1.25rem !important; }
svg.h-6 { width: 1.5rem !important; height: 1.5rem !important; }
svg.h-8 { width: 2rem !important; height: 2rem !important; }
svg.h-10 { width: 2.5rem !important; height: 2.5rem !important; }
svg.h-12 { width: 3rem !important; height: 3rem !important; }

/* Margin and Padding utilities */
.mt-0\.5 { margin-top: 0.125rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-4 { margin-right: 1rem; }
.ml-2 { margin-left: 0.5rem; }

.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-4 { padding-bottom: 1rem; }

.p-5 { padding: 1.25rem; }

/* Flexbox utilities */
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.flex-shrink-0 { flex-shrink: 0; }
.inline-flex { display: inline-flex; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* Sticky positioning */
.sticky { position: sticky; }
.top-8 { top: 2rem; }

/* Rounded utilities */
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }

/* Shadow utilities */
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }

/* Backdrop utilities */
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur { backdrop-filter: blur(8px); }

/* Transition utilities */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }

/* Hover utilities */
.hover\:border-primary\/40:hover { border-color: hsl(var(--primary) / 0.4); }

/* Grid utilities moved to proper responsive media queries below */

/* Secondary background with opacity */
.from-secondary\/30 { --tw-gradient-from: hsl(var(--secondary) / 0.3); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.via-secondary\/5 { --tw-gradient-stops: var(--tw-gradient-from), hsl(var(--secondary) / 0.05), var(--tw-gradient-to, transparent); }

/* About Renan Section */
.about-renan-section {
    padding: 80px 0;
    background: linear-gradient(180deg, hsl(var(--background)) 0%, hsl(var(--muted)) 20%);
}

.about-renan-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-top: 32px;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: hsl(var(--primary));
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.about-image {
    position: relative;
}

.specialist-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 25px 50px -12px hsl(var(--primary) / 0.25);
}

@media (max-width: 768px) {
    .about-renan-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        justify-content: center;
    }

    /* Hero section mobile optimization */
    h1 {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }

    h2 {
        font-size: 1.125rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1.5rem !important;
    }

    section.relative.min-h-screen {
        padding-top: 2rem;
        padding-bottom: 2rem;
        display: flex;
        align-items: center;
    }

    section.relative.min-h-screen .space-y-12 {
        gap: 2rem;
    }

    section.relative.min-h-screen .space-y-8 {
        gap: 1.5rem;
    }

    /* Hide scroll indicator on mobile to save space */
    section.relative.min-h-screen .mt-20 {
        display: none;
    }

    /* Form optimization */
    .bg-gradient-card {
        padding: 1.25rem !important;
        margin-top: 1.5rem !important;
    }

    .btn-hero {
        width: 100%;
        padding: 0.875rem;
        height: 3rem !important;
        font-size: 0.9375rem !important;
    }

    /* Form inputs */
    input[type="text"],
    input[type="email"] {
        height: 3rem !important;
        font-size: 1rem !important;
    }
}

/* Background utilities */
.bg-primary\/10 { background-color: hsl(var(--primary) / 0.1); }
.bg-primary\/20 { background-color: hsl(var(--primary) / 0.2); }
.bg-background\/50 { background-color: hsl(var(--background) / 0.5); }
.bg-secondary\/30 { background-color: hsl(var(--secondary) / 0.3); }

/* Text size responsive */
.md\:text-4xl { font-size: 2.25rem; }
.lg\:text-5xl { font-size: 3rem; }
.md\:text-2xl { font-size: 1.5rem; }
.md\:text-xl { font-size: 1.25rem; }

/* Additional responsive utilities */
@media (min-width: 640px) {
  .sm\:text-2xl { font-size: 1.5rem; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
  .md\:mb-16 { margin-bottom: 4rem; }
  .md\:p-8 { padding: 2rem; }
  .md\:text-lg { font-size: 1.125rem; }
  .md\:text-4xl { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .lg\:text-5xl { font-size: 3rem; }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Focus utilities */
.focus\:border-primary:focus { border-color: hsl(var(--primary)); }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }

/* Leading utilities */
.leading-\[0\.9\] { line-height: 0.9; }

/* WordPress specific styles */
.wp-block-group {
  margin: 0;
}

.wp-site-blocks {
  padding: 0;
}

/* Ensure proper image handling */
img {
  max-width: 100%;
  height: auto;
}

/* Ensure SVGs in cards don't overflow */
.rounded-xl svg,
.rounded-lg svg,
.rounded-2xl svg {
  max-width: 100%;
  max-height: 100%;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print styles */
@media print {
  .animate-bounce,
  .animate-fade-in,
  .animate-slide-up {
    animation: none;
  }
}

/* ========================================
   HERO ENTRANCE ANIMATIONS
   ======================================== */
.hero-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
  transition-delay: var(--delay, 0s);
}

.hero-bg-animate {
  /* Default visible: guarantees background image renders even if JS fails */
  opacity: 1;
  transition: opacity 1.5s ease-out;
}

.scale-animate {
  transform: scale(1.05);
  animation: scaleIn 2s ease-out forwards;
}

@keyframes scaleIn {
  to { transform: scale(1); }
}

/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */
.scroll-reveal {
  opacity: 0;
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.scroll-reveal[data-direction="left"] {
  transform: translateX(-50px);
}

.scroll-reveal[data-direction="right"] {
  transform: translateX(50px);
}

.scroll-reveal[data-direction="up"],
.scroll-reveal:not([data-direction]) {
  transform: translateY(30px);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* ========================================
   LAYOUT FIXES (OFFER + MÓDULOS)
   ======================================== */
#offer-section .offer-feature-grid {
  display: grid;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  justify-items: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#offer-section .offer-feature-grid > * {
  min-width: 0;
}

@media (min-width: 1024px) {
  #offer-section .offer-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.course-modules-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem;
}

@media (min-width: 768px) {
  .course-modules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ========================================
   MOBILE UTILITIES
   ======================================== */
@media (min-width: 1024px) {
  /* Tailwind-like behavior:
     - "hidden" hides by default
     - "lg:block" shows only on desktop
     - "lg:hidden" hides only on desktop
  */
  .lg\:hidden { display: none !important; }
  .lg\:block { display: block !important; }
}


/* ========================================
   PURCHASE POPUP
   ======================================== */
.popup-slide-up {
  animation: popupSlideUp 0.3s ease-out;
}

@keyframes popupSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Green color utilities */
.text-green-400 { color: #4ade80; }
.text-green-500 { color: #22c55e; }
.bg-green-500\/20 { background-color: rgba(34, 197, 94, 0.2); }

/* Yellow color utilities */
.text-yellow-500 { color: #eab308; }

/* Group hover utilities */
.group:hover .group-hover\:translate-x-1 {
  transform: translateX(0.25rem);
}