/* Responsividade - Profissão Inteligente */

/* Ajustes específicos para garantir responsividade em todos os dispositivos */

/* Ajustes para Tablets (768px - 992px) */
@media (max-width: 992px) {
  /* Header */
  .header-section {
    padding: 60px 20px;
  }
  
  .header-content {
    flex-direction: column;
  }
  
  .header-text {
    text-align: center;
    margin-bottom: 40px;
  }
  
  .header-images {
    max-width: 600px;
    margin: 0 auto;
  }
  
  /* Módulos */
  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Bônus */
  .bonus-card {
    flex-direction: column-reverse;
  }
  
  .bonus-image {
    height: 250px;
    width: 100%;
  }
  
  .bonus-content {
    padding: 25px;
  }
  
  /* FAQ */
  .faq-question {
    padding: 15px 20px;
  }
  
  .question-text {
    font-size: 1.1rem;
  }
  
  /* Benefícios */
  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Opções */
  .options-container {
    grid-template-columns: 1fr;
  }
}

/* Ajustes para Smartphones (até 768px) MADE BY ME GLAUTON COM O CHATGPT*/
@media screen and (max-width: 768px) {
  .header-section {
    background-image: url('https://glautonfilho.com/wp-content/uploads/2025/04/Fundo-IA-celular-v3.png') !important;
    background-repeat: no-repeat !important;
    background-position: 40% -10% !important; /* X e Y */
    background-size: 150% auto !important;
    background-attachment: scroll !important;

    /* Novo ajuste: evitar espaço extra */
    min-height: auto !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  .header-section .header-text {
    padding-top: 250px !important;
  }

  .header-content {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  .intro-section {
    margin-top: -10px; /* sobe a próxima seção sem criar quebra */
  }
}

/* Ajustes para Smartphones (até 768px) */
@media (max-width: 768px) {
  /* Header */
  .header-section {
    padding: 40px 15px;
    min-height: auto;
  }
  
  .header-text h1 {
    font-size: 2rem;
  }
  
  .header-text p {
    font-size: 1rem;
  }
  
  .header-images {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .image-placeholder {
    height: 150px;
  }
  
  .cta-button {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
  }
  
  /* Seções */
  section {
    padding: 60px 15px;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  /* Módulos */
  .modules-grid {
    grid-template-columns: 1fr;
  }
  
  .module-card {
    max-width: 400px;
    margin: 0 auto;
  }
  
  /* Imagens */
  .image-grid {
    grid-template-columns: 1fr;
  }
  
  /* Benefícios */
  .benefit-grid {
    grid-template-columns: 1fr;
  }
  
  /* FAQ */
  .faq-summary ul {
    grid-template-columns: 1fr;
  }
  
  /* Footer */
  .footer-content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 15px;
  }
  
  .footer-social {
    justify-content: center;
  }
}

/* Ajustes para Smartphones pequenos (até 480px) */
@media (max-width: 480px) {
  /* Header */
  .header-text h1 {
    font-size: 1.7rem;
  }
  
  .guarantee-badge {
    flex-direction: column;
    text-align: center;
  }
  
  .guarantee-badge i {
    margin: 0 0 10px 0;
  }
  
  /* Seções */
  .section-title h2 {
    font-size: 1.6rem;
  }
  
  /* Módulos */
  .module-title {
    font-size: 1.3rem;
  }
  
  /* Bônus */
  .bonus-name {
    font-size: 1.3rem;
  }
  
  .bonus-number {
    font-size: 0.8rem;
  }
  
  /* FAQ */
  .question-text {
    font-size: 1rem;
  }
  
  .question-text i {
    font-size: 1.2rem;
    margin-right: 10px;
  }
  
  .faq-answer {
    padding: 0 15px 15px 45px;
  }
  
  .faq-item.active .faq-answer {
    padding: 0 15px 15px 45px;
  }
  
  /* Formulário */
  .form-container {
    padding: 20px 15px;
  }
}

/* Ajustes para garantir que a headline, texto e botão caibam na primeira tela */
@media (max-height: 700px) {
  .header-section {
    padding: 30px 20px;
  }
  
  .header-text h1 {
    font-size: 2rem;
    margin-bottom: 10px;
  }
  
  .header-text p {
    margin-bottom: 15px;
  }
  
  .image-placeholder {
    height: 120px;
  }
}

/* Ajustes para orientação paisagem em dispositivos móveis */
@media (max-width: 768px) and (orientation: landscape) {
  .header-section {
    padding: 20px;
  }
  
  .header-content {
    flex-direction: row;
    align-items: center;
  }
  
  .header-text {
    text-align: left;
    margin-bottom: 0;
    padding-right: 20px;
  }
  
  .header-images {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .image-placeholder {
    height: 100px;
  }
}

@media (max-width: 768px) {
  /* Quebra blocos flex em coluna no celular */
  div[style*="display: flex"] {
    flex-direction: column !important;
  }

  div[style*="display: flex"] > div {
    width: 100% !important;
  }

  div[style*="display: flex"] img {
    width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 768px) {
  .double-image {
    flex-direction: column !important;
  }

  .double-image > div {
    width: 100% !important;
    min-width: 0 !important;
    aspect-ratio: auto !important;
  }

  .double-image img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
  }
}

@media (max-width: 768px) {
  .course-card {
    max-width: 100% !important;
    flex: 1 1 100% !important;
  }

  .course-card > div:first-child {
    height: auto !important;
  }

  .course-card img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
  }
}
