/* 
 * Mobile Hero Section Layout Fixes
 * Melhorando o posicionamento dos textos e formulário na primeira seção
 */

/* Correções gerais para mobile */
@media (max-width: 768px) {
  /* Hero section container */
  .hero-section-mobile {
    padding-top: 120px !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-x: hidden !important;
  }

  /* Força layout vertical no mobile */
  .hero-section-mobile * {
    box-sizing: border-box !important;
  }

  /* Container principal do hero */
  .hero-main-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 1rem !important;
    margin: 0 !important;
  }

  /* Layout flex principal - mudando para coluna no mobile */
  .flex.items-start.justify-between {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 1rem !important;
  }

  /* Correção específica para elementos com margem negativa */
  [class*="-ml-32"],
  [class*="-mr-32"],
  [class*="-mt-"] {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
  }

  /* Seção de texto principal */
  .max-w-lg.-ml-32 {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    text-align: center !important;
    order: 1;
    width: 100% !important;
  }

  /* Formulário de contato */
  .max-w-lg.-mr-32 {
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    margin-top: 1rem !important;
    order: 2;
    width: 100% !important;
    display: flex;
    justify-content: center;
  }

  /* Card do formulário */
  .wevolv3-contact-card {
    width: 100% !important;
    max-width: 350px !important;
    margin: 0 auto !important;
    padding: 1.25rem !important;
    box-sizing: border-box;
    position: relative;
  }

  /* Títulos principais - REDUZIDOS para mobile */
  .text-4xl.sm\\:text-5xl.md\\:text-6xl.lg\\:text-7xl.xl\\:text-8xl {
    font-size: 1.5rem !important;
    line-height: 1.1 !important;
    margin-bottom: 0.4rem !important;
  }

  .text-lg.sm\\:text-xl.md\\:text-2xl {
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
    margin-top: -0.8rem !important;
    margin-bottom: 0.8rem !important;
  }

  /* Texto de introdução - REDUZIDO */
  .text-sm.sm\\:text-base {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
    text-align: center !important;
  }

  /* FORÇAR com especificidade máxima - sobrescrever Tailwind */
  .max-w-3xl .space-y-2 p {
    font-size: 0.6rem !important;
    line-height: 1.1 !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Espaçamento mínimo entre parágrafos */
  .max-w-3xl .space-y-2 p + p {
    margin-top: 0.2rem !important;
  }

  /* Último parágrafo - TOTALMENTE COLADO */
  .max-w-3xl .space-y-2 p:last-of-type {
    margin-top: -0.4rem !important;
  }

  /* Remover parágrafos vazios */
  .max-w-3xl .space-y-2 p:empty {
    display: none !important;
  }

  /* Forçar especificidade ainda maior */
  div.max-w-3xl div.space-y-2 p {
    font-size: 0.6rem !important;
    line-height: 1.1 !important;
    margin: 0 !important;
  }

  div.max-w-3xl div.space-y-2 p:last-child {
    margin-top: -0.4rem !important;
  }

  /* Ajustes para as frases em destaque */
  .flex.justify-start {
    justify-content: center !important;
  }

  /* Container do texto descritivo */
  .mt-6.max-w-3xl {
    margin-top: 1rem !important;
    max-width: 100% !important;
  }

  /* Espaçamento entre elementos */
  .space-y-8 {
    gap: 1rem !important;
  }

  .mb-8.mt-0 {
    margin-bottom: 1rem !important;
    margin-top: 0 !important;
  }

  /* Reduzir espaçamento entre seções de texto */
  .space-y-2 {
    gap: 0rem !important;
  }

  /* SUPER ESPECIFICIDADE - sobrescrever TUDO */
  .mt-6.max-w-3xl .space-y-2.text-xs.sm\\:text-sm p {
    font-size: 0.6rem !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .mt-6.max-w-3xl .space-y-2.text-xs.sm\\:text-sm p:last-child {
    margin-top: -0.5rem !important;
  }

  /* Forçar com ID se necessário */
  [class*="space-y-2"] p {
    font-size: 0.6rem !important;
    line-height: 1.1 !important;
    margin: 0 !important;
  }

  [class*="space-y-2"] p:last-child {
    margin-top: -0.5rem !important;
  }

  /* Gradiente de fundo */
  .absolute.bottom-0.left-0.right-0.h-32 {
    height: 2rem !important;
  }
}

/* Correções para DESKTOP - remover parágrafos vazios */
@media (min-width: 769px) {
  /* Remover parágrafos vazios no desktop */
  .space-y-2 p:empty {
    display: none !important;
  }
  
  /* Ajustar espaçamento entre parágrafos no desktop */
  .space-y-2 p {
    margin-bottom: 0.75rem !important;
  }
  
  .space-y-2 p:last-child {
    margin-top: 0.5rem !important;
  }
}

/* Ajustes específicos para telas muito pequenas (< 400px) */
@media (max-width: 400px) {
  .wevolv3-contact-card {
    max-width: 300px !important;
    padding: 1rem !important;
  }

  .text-4xl.sm\\:text-5xl.md\\:text-6xl.lg\\:text-7xl.xl\\:text-8xl {
    font-size: 1.5rem !important;
  }

  .text-lg.sm\\:text-xl.md\\:text-2xl {
    font-size: 0.75rem !important;
  }

  .space-y-2.text-xs.sm\\:text-sm p {
    font-size: 0.65rem !important;
  }

  .text-sm.sm\\:text-base {
    font-size: 0.7rem !important;
  }
}

/* Ajustes para tablets em portrait (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .flex.items-start.justify-between {
    flex-direction: column !important;
    align-items: center !important;
    gap: 3rem !important;
  }

  .max-w-lg.-ml-32,
  .max-w-lg.-mr-32 {
    max-width: 600px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center !important;
  }

  .wevolv3-contact-card {
    max-width: 400px !important;
  }
}

/* Força aplicação das regras */
.hero-section-mobile .flex.items-start.justify-between {
  display: flex !important;
}

.hero-section-mobile .wevolv3-contact-card {
  display: flex !important;
  flex-direction: column !important;
}

/* Instrução de scroll para Marketing Arsenal */
.marketing-arsenal-scroll-hint {
  position: relative;
  text-align: center;
  margin: 1rem auto 0 auto;
  padding: 0.75rem 1rem;
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
  letter-spacing: 0.05em;
  animation: pulseHint 2s ease-in-out infinite;
  max-width: 280px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.marketing-arsenal-scroll-hint::before {
  content: "";
  animation: none;
}

.marketing-arsenal-scroll-hint::after {
  content: "";
  animation: none;
}

@keyframes pulseHint {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes swipeAnimation {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}

/* Aplicar apenas no mobile */
@media (max-width: 768px) {
  .marketing-arsenal-scroll-hint {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .marketing-arsenal-scroll-hint {
    display: none;
  }
}

/* Dropdown para o formulário de contato */
.contact-form-dropdown {
  position: relative;
  z-index: 10000;
  isolation: isolate;
}

.contact-form-header {
  cursor: pointer;
  padding: 1rem;
  text-align: center;
  border-radius: 1.5rem;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  z-index: 10001;
}

.contact-form-header:hover {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 
    0 0 0 1px rgba(16, 185, 129, 0.2),
    0 12px 48px rgba(0, 0, 0, 0.5),
    0 8px 24px rgba(16, 185, 129, 0.15);
  transform: translateY(-2px);
}

.contact-form-header .dropdown-icon {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.contact-form-header.active {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.contact-form-header.active .dropdown-icon {
  transform: rotate(180deg);
}

.contact-form-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease-out;
  position: relative;
  z-index: 10000;
  width: 100%;
  transform: translateY(-50%);
  margin-top: 0;
  margin-bottom: 5rem;
}

.contact-form-content.active {
  max-height: 300px;
  transition: all 0.4s ease-in;
  overflow: visible;
  transform: translateY(0);
  position: absolute;
  z-index: 10000;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 24rem;
  max-width: calc(100vw - 2rem);
}

.contact-form-inner {
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 1.5rem;
  margin-top: 0;
  position: relative;
  z-index: 10002;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.9),
    0 15px 40px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(16, 185, 129, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  max-width: 24rem;
  margin-left: auto;
  margin-right: auto;
}

/* Garantir que o container pai também tenha z-index alto */
.wevolv3-contact-card {
  position: relative !important;
  z-index: 10000 !important;
  isolation: isolate;
  margin-left: auto !important;
  margin-right: 0 !important;
  margin-top: 4rem !important;
}

/* Forçar que seções seguintes fiquem atrás */
section:not(:first-child),
div[class*="py-16"],
div[class*="py-20"],
div[class*="py-24"] {
  position: relative;
  z-index: 1;
}

/* Centralizar conteúdo do formulário */
.contact-form-inner h3 {
  text-align: center;
  margin-bottom: 1rem;
}

.contact-form-inner form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 300px;
}

.contact-form-inner input,
.contact-form-inner textarea,
.contact-form-inner select {
  text-align: center;
}

.contact-form-inner button {
  margin-top: 0.5rem;
}

/* Animação para o formulário deslizar para cima */
@keyframes slideUp {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

