/* Mobile First Responsive Design */

/* Ocultar decorações por padrão (desktop) */
.hero-decorations { display: none; }

/* Tablets */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Typography */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    /* Navigation */
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white !important;
        transition: left 0.3s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        height: 100%;
    }

    .nav-list li {
        margin: 1rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    /* Hero Section */
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
        background: linear-gradient(180deg, #0e0f12 0%, #121316 50%, #0a0b0d 100%) !important;
    }

    .hero::before {
        background: radial-gradient(120% 200% at 50% 0%, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.78) 40%, rgba(0,0,0,0.92) 100%) !important;
    }

    .hero::after {
        display: none !important;
        background: none !important;
    }
    /* Ajuste: badge mais abaixo e fundo mais escuro no mobile */
    .hero-badge { 
        margin-top: 24px; 
    }
    .hero::before {
        background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.75)) !important;
    }

    /* Decorações sutis atrás do container (mobile apenas) */
    .hero-decorations {
        display: block;
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        pointer-events: none;
        z-index: 2; /* atrás do conteúdo (z-index 3) */
        overflow: hidden;
    }
    .hero-decorations .bubble {
        position: absolute;
        border-radius: 50%;
        filter: blur(10px);
        opacity: 0.45;
        background: radial-gradient(circle at 30% 30%, rgba(255, 107, 53, 0.18), rgba(0, 0, 0, 0.42));
    }
    .hero-decorations .bubble-1 { width: 160px; height: 160px; left: -40px; top: 140px; }
    .hero-decorations .bubble-2 { width: 140px; height: 140px; right: -50px; top: 300px; }
    .hero-decorations .bubble-3 { width: 120px; height: 120px; left: 18px; bottom: 140px; }

    /* Tipografia e composição mais moderna no mobile */
    .hero-content {
        text-align: center;
    }
    .hero-text {
        max-width: 95%;
        margin: 0 auto;
        padding: 14px 12px;
        background: rgba(0,0,0,0.28);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 16px;
        backdrop-filter: blur(3px) saturate(140%);
        box-shadow: 0 10px 24px rgba(0,0,0,0.35);
    }
    .hero-text h1 {
        font-size: clamp(22px, 6.4vw, 30px);
        line-height: 1.25;
        letter-spacing: -0.01em;
        margin-bottom: 18px;
        max-width: 24ch;
        margin-left: auto;
        margin-right: auto;
        text-shadow: none !important;
    }
    .hero-text h1 br { 
        display: none; /* deixar quebra natural no mobile */
    }
    .highlight {
        display: inline-block;
        padding: 2px 6px;
        position: relative;
        /* Gradiente laranja vibrante sem tons escuros */
        background: linear-gradient(135deg, #FF8A3D 0%, #FF6B35 50%, #F7931E 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
        -webkit-text-stroke: 0 !important;
        text-shadow: none !important;
        font-weight: 800;
    }
    .highlight::before { content: none !important; }
    .highlight::after {
        width: 45%;
        left: 27.5%;
        height: 2px;
        opacity: 0.95;
        background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%) !important;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-placeholder {
        height: 300px;
    }

    /* About Section */
    .about {
        padding: 60px 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-text {
        order: 1;
    }

    .about-image {
        order: 2;
        height: 300px;
    }

    /* Services Section */
    .services {
        padding: 60px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Team Section */
    .team {
        padding: 60px 0;
    }

    .team-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .team-stats {
        justify-content: center;
    }

    /* Before & After Section */
    .before-after {
        padding: 60px 0;
    }

    .before-after-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Testimonials Section */
    .testimonials {
        padding: 60px 0;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Pricing Section */
    .pricing {
        padding: 60px 0;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pricing-card.featured {
        transform: none;
    }

    /* Contact Section */
    .contact {
        padding: 60px 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Hero Section */
    .hero {
        padding: 80px 0 40px;
        background: linear-gradient(180deg, #0e0f12 0%, #121316 50%, #0a0b0d 100%) !important;
    }

    .hero::before {
        background: radial-gradient(120% 200% at 50% 0%, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.78) 40%, rgba(0,0,0,0.92) 100%) !important;
    }

    .hero::after {
        display: none !important;
        background: none !important;
    }
    /* Ajuste extra para telas muito pequenas */
    .hero-badge { 
        margin-top: 28px; 
    }
    .hero::before {
        background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.85)) !important;
    }

    .hero-decorations .bubble { opacity: 0.5; filter: blur(12px); }
    .hero-decorations .bubble-1 { left: -50px; top: 130px; }
    .hero-decorations .bubble-2 { right: -60px; top: 280px; }
    .hero-decorations .bubble-3 { left: 10px; bottom: 120px; }

    .hero-text {
        max-width: 92%;
        padding: 16px 14px;
        border-radius: 18px;
    }
    .hero-text h1 {
        font-size: clamp(20px, 6.2vw, 26px);
        line-height: 1.28;
        max-width: 22ch;
        text-shadow: none !important;
    }
    .highlight::before { content: none !important; }
    .highlight::after {
        width: 40%;
        left: 30%;
        background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%) !important;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-placeholder {
        height: 250px;
    }

    /* Sections */
    .about,
    .services,
    .curriculum,
    .team,
    .before-after,
    .testimonials,
    .pricing,
    .faq,
    .contact {
        padding: 40px 0;
    }

    /* About Section - Mobile specific */
    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .about-text {
        order: 1;
    }

    .about-text h3 {
        font-size: 1.1rem !important;
        line-height: 1.4;
        margin-bottom: 1rem;
    }

    .about-text p {
        font-size: 1rem !important;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .about-image {
        order: 2;
        height: 250px;
        margin-top: 1rem;
    }

    /* About Grid */
    .about-item {
        padding: 1.5rem;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 1.5rem;
    }

    /* Curriculum */
    .curriculum-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .curriculum-number {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    /* Team Stats */
    .team-stats {
        flex-direction: column;
        gap: 1rem;
    }

    /* Before & After */
    .before-after-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .before-after-image {
        height: auto;
    }
    
    .before-after-image img {
        height: 200px;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 1.5rem;
    }

    /* Pricing Cards */
    .pricing-card {
        padding: 2rem 1.5rem;
    }

    .amount {
        font-size: 2.5rem;
    }

    /* Guarantee Section */
    .guarantee-icon i {
        font-size: 3rem;
    }

    .guarantee-text {
        font-size: 1rem;
        padding: 1rem;
    }

    /* FAQ */
    .faq-question {
        padding: 1rem;
    }

    .faq-question h3 {
        font-size: 1rem;
        line-height: 1.3;
    }

    .faq-answer {
        padding: 0 1rem;
        max-height: 0 !important;
        overflow: hidden;
    }

    .faq-item.active .faq-answer {
        padding: 0 1rem 1rem;
        max-height: 300px !important;
    }

    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
    }
}

/* Large Screens */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }

    /* Hero Section */
    .hero-content {
        gap: 6rem;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    /* Sections */
    .about,
    .services,
    .curriculum,
    .team,
    .before-after,
    .testimonials,
    .pricing,
    .faq,
    .contact {
        padding: 100px 0;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Before & After Grid */
    .before-after-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Testimonials Grid */
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Team Content */
    .team-content {
        gap: 6rem;
    }
}

/* Extra Small Devices */
@media (max-width: 320px) {
    .container {
        padding: 0 5px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .hero-placeholder {
        height: 200px;
    }

    .about-item,
    .service-card,
    .testimonial-card,
    .pricing-card {
        padding: 1rem;
    }

    /* Guarantee Section */
    .guarantee-icon i {
        font-size: 2.5rem;
    }

    .guarantee-text {
        font-size: 0.95rem;
        padding: 0.8rem;
    }

    .before-after-image {
        height: 150px;
    }

    .contact-form {
        padding: 1rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 0 40px;
    }

    .nav-menu {
        height: calc(100vh - 60px);
    }
}

/* Print Styles */
@media print {
    .header,
    .nav-toggle,
    .btn,
    .contact-form {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .hero,
    .about,
    .services,
    .curriculum,
    .team,
    .before-after,
    .testimonials,
    .pricing,
    .faq,
    .contact {
        padding: 20px 0;
        page-break-inside: avoid;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-placeholder,
    .about-icon,
    .service-icon,
    .team-image,
    .before-after-image,
    .testimonial-avatar {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }

    .header {
        background-color: #2d2d2d;
    }

    .hero {
        background: url('../assetsimages/background_poly.png') center center/cover no-repeat;
    }

    .hero::before {
        background: rgba(0, 0, 0, 0.8);
    }

    .about,
    .curriculum,
    .offer-banner,
    .before-after,
    .pricing,
    .contact {
        background-color: #2d2d2d;
    }

    .services,
    .team,
    .testimonials,
    .faq {
        background-color: #1a1a1a;
    }

    .about-item,
    .service-card,
    .testimonial-card,
    .pricing-card,
    .faq-item {
        background-color: #2d2d2d;
        color: #e0e0e0;
    }

    .contact-form {
        background-color: #1a1a1a;
    }

    .form-group input,
    .form-group textarea {
        background-color: #2d2d2d;
        border-color: #555;
        color: #e0e0e0;
    }

    .before-after-image {
        background-color: #3a3a3a;
    }

    /* Footer - Forçar cores brancas mesmo no dark mode */
    .footer,
    .footer * {
        color: #FFF !important;
    }
    
    .footer-section h3 {
        background: linear-gradient(135deg, #FF6B35, #F7931E) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
    }
    
    .footer-section ul li a:hover {
        color: #FFD23F !important;
    }
}

/* Offer Banner Responsive */
@media (max-width: 768px) {
    .offer-banner {
        padding: 50px 0;
    }
    
    .original-price {
        font-size: 1.3rem;
    }
    
    .current-price {
        font-size: 3rem;
    }
    
    .btn-offer {
        font-size: 1.2rem;
        padding: 1.3rem 2.5rem;
        width: 100%;
        max-width: 350px;
        letter-spacing: 1px;
    }
    
    .price-section {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .offer-banner {
        padding: 40px 0;
    }
    
    .original-price {
        font-size: 1.2rem;
    }
    
    .current-price {
        font-size: 2.5rem;
    }
    
    .btn-offer {
        font-size: 1.1rem;
        padding: 1.2rem 2rem;
        letter-spacing: 1px;
    }
}

/* Results & Testimonials Responsive */
@media (max-width: 768px) {
    .results-testimonials-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .results-section h2,
    .testimonials-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .before-after-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .before-after-image {
        height: 120px;
    }
    
    .testimonial-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .testimonial-avatar {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .results-testimonials {
        padding: 60px 0;
    }
    
    .results-testimonials-content {
        gap: 2rem;
    }
    
    .testimonial-item {
        padding: 1rem;
    }
    
    .testimonial-text {
        font-size: 0.85rem;
    }
}
/* Mobile: refinar o card "Bem-vinda à turma" para ficar proporcional e bem formatado */
@media (max-width: 768px) {
  .testimonial-badge {
    position: static !important; /* já está fora da caixa de vídeo */
    display: grid;               /* layout mais estável que flex para avatar + texto */
    grid-template-columns: 48px 1fr; /* coluna do ícone + coluna do texto */
    align-items: center;
    gap: 0.75rem;
    width: 92%;
    max-width: 520px;
    margin: 0 auto 14px;         /* centralizado e com espaçamento inferior */
    padding: 0.9rem 1rem;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  }
  .testimonial-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }
  .testimonial-info { 
    text-align: left; 
    gap: 0.2rem; 
  }
  .testimonial-count { font-size: 1rem; }
  .testimonial-rating { font-size: 0.85rem; color: #666; }
}

@media (max-width: 480px) {
  .testimonial-badge {
    grid-template-columns: 44px 1fr;
    width: 94%;
    padding: 0.85rem 0.95rem;
    border-radius: 12px;
  }
  .testimonial-count { font-size: 0.95rem; }
  .testimonial-rating { font-size: 0.8rem; }
}
}

@media (max-width: 480px) {
  .kiwify-upsell-container {
    margin-bottom: 120px; /* evita sobreposição pelo botão flutuante do WhatsApp */
  }
}
/* Visibilidade padrão: ocultar upsell no desktop */
.kiwify-upsell-container {
  display: none;
  margin-top: 16px;
}
/* Mostrar upsell também no desktop (abaixo do texto) */
.kiwify-upsell-container { display: block; }

/* Mobile: upsell continua aparecendo abaixo do vídeo via JS e CSS existente */
@media (max-width: 768px) {
  .kiwify-upsell-container { display: block; }
}

/* Mobile: deixar o card de boas-vindas mais largo e centralizado */
@media (max-width: 768px) {
  .testimonial-badge {
    max-width: none; /* remove limite estreito */
    width: 90%;      /* mais largo no centro */
  }
}

@media (max-width: 480px) {
  .testimonial-badge {
    width: 95%;      /* ainda mais largo em telas muito pequenas */
  }
}
}