/* ===============================================================
   HERO HORIZONTAL LAYOUT - 40% TEXTO | 60% VÍDEO
   Componente CSS para layout horizontal do hero section
   =============================================================== */

/* ===== CONTAINER PRINCIPAL - LAYOUT HORIZONTAL ===== */
.hero-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;

    /* Layout horizontal principal */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* ===== WRAPPER TEXTO + VÍDEO (LADO A LADO) ===== */
.hero-main-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 1400px;
}

/* ===== SEÇÃO DE TEXTO - 40% ===== */
.hero-text-content {
    flex: 0 0 40%;
    /* 40% fixo */
    color: var(--white);
    text-align: left;
    z-index: 3;
}

/* ===== SEÇÃO DE VÍDEO - 60% ===== */
.hero-image-section {
    flex: 0 0 60%;
    /* 60% fixo */
    position: relative;
    height: 400px;
    max-width: none;
}

/* ===== BOTÕES CENTRALIZADOS ABAIXO ===== */
.hero-cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 0;
    /* Remove margem do texto */
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

/* ===============================================================
   RESPONSIVIDADE - MOBILE FIRST
   =============================================================== */

/* Mobile - Layout Vertical (padrão atual) */
@media (max-width: 768px) {
    .hero-main-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .hero-text-content {
        flex: 1;
        text-align: center;
    }

    .hero-image-section {
        flex: 1;
        height: 250px;
        max-width: 350px;
    }

    .hero-cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}

/* Tablet - Transição para horizontal */
@media (min-width: 769px) and (max-width: 991px) {
    .hero-main-content {
        gap: 0;
    }

    .hero-text-content {
        flex: 0 0 45%;
        /* Mais espaço para texto em tablet */
    }

    .hero-image-section {
        flex: 0 0 55%;
        height: 350px;
    }
}

/* Desktop - Layout completo 40%/60% */
@media (min-width: 992px) {
    .hero-diagonal {
        padding: 90px 3rem 3rem;
    }

    .hero-main-content {
        gap: 5px;
    }

    .hero-text-content {
        flex: 0 0 40%;
        width: 300px;
    }

    .hero-image-section {
        flex: 0 0 60%;
        /* 60% conforme solicitado */
        height: 450px;
    }

    .hero-title {
        font-size: 1.0rem;
    }

    .hero-description {
        font-size: 1.2rem;
    }
}

/* Desktop Large - Otimizações finais */
@media (min-width: 1200px) {
    .hero-content-wrapper {
        max-width: 1500px;
    }

    .hero-main-content {
        gap: 1rem;
    }

    .hero-image-section {
        height: 500px;
    }

    .hero-title {
        font-size: 2rem;
    }
}

/* ===============================================================
   AJUSTES PARA ELEMENTOS EXISTENTES
   =============================================================== */

/* Remove animações conflitantes do CSS original */
@media (min-width: 769px) {
    .hero-text-content {
        animation: slideInLeft 0.8s ease-out;
    }

    .hero-image-section {
        animation: slideInRight 0.8s ease-out 0.2s both;
    }
}

/* Centralização perfeita dos botões */
.hero-cta-buttons {
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

/* ===============================================================
   HERO TITLE ALIGNMENT - ALINHAMENTO COM TOPO DO VÍDEO
   Componente CSS para alinhar o título com o topo do vídeo
   =============================================================== */

/* ===== WRAPPER PRINCIPAL - ALINHAMENTO FLEX-START ===== */
.hero-main-content {
    display: flex;
    align-items: flex-start;
    /* Muda de center para flex-start */
    gap: 1rem;
    width: 100%;
    max-width: 1400px;
}

/* ===== SEÇÃO DE TEXTO - ALINHAMENTO SUPERIOR ===== */
.hero-text-content {
    flex: 0 0 40%;
    color: var(--white);
    text-align: left;
    z-index: 3;

    /* Remove padding superior se houver */
    padding-top: 0;
    margin-top: 0;

    /* Garante que o primeiro elemento (título) esteja no topo */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* ===== TÍTULO - ALINHAMENTO PRECISO COM TOPO DO VÍDEO ===== */
.hero-title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;

    /* Remove margens superiores */
    margin-top: 0;
    padding-top: 0;

    /* Alinhamento preciso */
    position: relative;
    top: 0;
}

/* ===== SEÇÃO DE VÍDEO - REFERÊNCIA PARA ALINHAMENTO ===== */
.hero-image-section {
    flex: 0 0 60%;
    position: relative;
    height: 400px;
    max-width: none;

    /* Garante que não há margens/padding superiores */
    margin-top: 0;
    padding-top: 0;
}

/* ===============================================================
   AJUSTES RESPONSIVOS
   =============================================================== */

/* Tablet - Manter alinhamento */
@media (min-width: 769px) and (max-width: 991px) {
    .hero-main-content {
        align-items: flex-start;
        gap: 5px;
    }

    .hero-text-content {
        max-width: 300px;
    }

    .hero-description {
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: 0.8rem;
    }

    .hero-image-section {
        height: 350px;
    }
}

/* Desktop Large - Refinamentos finais */
@media (min-width: 1200px) {
    .hero-main-content {
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
        /* Linha mais compacta para melhor alinhamento */
    }

    .hero-image-section {
        height: 500px;
    }
}

/* ===============================================================
   AJUSTES FINOS DE POSICIONAMENTO
   =============================================================== */

/* Se necessário ajuste fino, use estas classes auxiliares */
.hero-title--adjust-up {
    transform: translateY(-5px);
}

.hero-title--adjust-down {
    transform: translateY(5px);
}

/* Mobile - Manter centralizado */
@media (max-width: 768px) {
    .hero-main-content {
        align-items: center;
        /* Volta para center em mobile */
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .hero-text-content {
        text-align: center;
    }

    .hero-title {
        margin-bottom: 1rem;
    }
}

/* ===============================================================
   CTA BUTTONS COMPACT - BOTÕES MAIS COMPACTOS LADO A LADO
   Componente CSS para reduzir largura e permitir layout horizontal
   =============================================================== */

/* ===== CONTAINER - FORÇA LAYOUT HORIZONTAL ===== */
.hero-cta-buttons {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    /* Gap menor */
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    /* Não quebrar */
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ===== BOTÃO DEMO - VERSÃO COMPACTA ===== */
.btn-demo {
    /* Tamanho compacto */
    min-width: 200px !important;
    max-width: 220px !important;
    width: auto !important;

    /* Padding reduzido */
    padding: 14px 26px 18px !important;

    /* Flex para não crescer */
    flex: 0 0 auto !important;
}

/* Texto principal do botão demo - mais compacto */
.btn-demo .btn-main-text {
    font-size: 15px !important;
    gap: 6px !important;
}

/* Subtexto menor */
.btn-demo .btn-subtext {
    font-size: 12px !important;
    /* Reduzido de 11px */
    margin-top: 0px !important;
}

/* Badge grátis menor */
.btn-demo .free-badge {
    font-size: 8px !important;
    /* Reduzido de 9px */
    padding: 2px 5px !important;
    margin-left: 6px !important;
}

/* ===== BOTÃO WHATSAPP - VERSÃO COMPACTA ===== */
.btn-whatsapp {
    /* Tamanho compacto */
    min-width: 140px !important;
    max-width: 160px !important;
    width: auto !important;

    /* Padding reduzido */
    padding: 14px 20px 18px !important;

    /* Flex para não crescer */
    flex: 0 0 auto !important;
}

/* Texto principal do WhatsApp - mais compacto */
.btn-whatsapp .btn-main-text {
    font-size: 14px !important;
    /* Reduzido de 15px */
    gap: 8px !important;
}

/* Subtexto menor */
.btn-whatsapp .btn-subtext {
    font-size: 11px !important;
    margin-top: 0px !important;
}

/* Status online menor */
.btn-whatsapp .online-status {
    width: 6px !important;
    height: 6px !important;
}

/* ===== ÍCONES - TAMANHO AJUSTADO ===== */
.btn-demo i,
.btn-whatsapp i {
    font-size: 14px !important;
    /* Reduzido */
}

/* ===============================================================
   RESPONSIVIDADE - QUEBRA APENAS EM MOBILE PEQUENO
   =============================================================== */

/* Tablet - Manter compacto lado a lado */
@media (max-width: 768px) and (min-width: 481px) {
    .hero-cta-buttons {
        gap: 14px !important;
        justify-content: center !important;
    }

    .btn-demo {
        min-width: 150px !important;
        max-width: 170px !important;
    }

    .btn-whatsapp {
        min-width: 130px !important;
        max-width: 150px !important;
    }
}

/* Mobile pequeno - Quebrar apenas se realmente necessário */
@media (max-width: 480px) {
    .hero-cta-buttons {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: center !important;
    }

    .btn-demo,
    .btn-whatsapp {
        width: 100% !important;
        max-width: 280px !important;
        min-width: unset !important;
    }
}

/* Desktop - Layout otimizado */
@media (min-width: 769px) {
    .hero-cta-buttons {
        gap: 18px !important;
    }

    .btn-demo {
        min-width: 170px !important;
        max-width: 190px !important;
    }

    .btn-whatsapp {
        min-width: 150px !important;
        max-width: 170px !important;
    }
}

/* ===============================================================
   OVERRIDES IMPORTANTES PARA GARANTIR FUNCIONAMENTO
   =============================================================== */

/* Remove width fixo que pode estar forçando quebra */
.hero-text-content .btn-demo,
.hero-text-content .btn-whatsapp {
    width: auto !important;
    flex-shrink: 0 !important;
}

/* Garante que o container não force quebra */
.hero-text-content .hero-cta-buttons {
    overflow: visible !important;
    white-space: nowrap !important;
}

/* Remove possíveis min-width conflitantes */
.btn-demo,
.btn-whatsapp {
    box-sizing: border-box !important;
}

/* ===============================================================
   DEMO BUTTON WIDTH FIX - AUMENTAR LARGURA DO BOTÃO DEMO
   Componente CSS específico para ajustar apenas a largura
   =============================================================== */

/* ===== BOTÃO DEMO - LARGURA AUMENTADA ===== */
.btn-demo {
    min-width: 230px !important;
    /* Aumentado de ~200px */
    max-width: 250px !important;
    /* Aumentado de ~220px */
    width: auto !important;
}

.btn-whatsapp {
    min-width: 230px !important;
    /* Aumentado de ~200px */
    max-width: 250px !important;
    /* Aumentado de ~220px */
    width: auto !important;
}

/* ===============================================================
   RESPONSIVIDADE - AJUSTES PROPORCIONAIS
   =============================================================== */

/* Desktop Large - Mais espaço */
@media (min-width: 1200px) {
    .btn-demo {
        min-width: 250px !important;
        max-width: 270px !important;
    }
}

/* Desktop padrão */
@media (min-width: 992px) and (max-width: 1199px) {
    .btn-demo {
        min-width: 240px !important;
        max-width: 260px !important;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 991px) {
    .btn-demo {
        min-width: 220px !important;
        max-width: 240px !important;
    }
}

/* Tablet pequeno */
@media (min-width: 481px) and (max-width: 768px) {
    .btn-demo {
        min-width: 200px !important;
        max-width: 220px !important;
    }
}

/* Mobile - Layout vertical (largura total) */
@media (max-width: 480px) {
    .btn-demo {
        width: 100% !important;
        max-width: 300px !important;
        min-width: unset !important;
    }
}

.hero-main-content {
 margin-top: 10px;
}


/* cookie-banner.css */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 2px solid #e5e7eb;
    max-width: 400px;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s ease;
    overflow: hidden;
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-content {
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    position: relative;
}

.cookie-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.2rem;
}

.cookie-icon i {
    font-size: 1.2rem;
    color: white;
}

.cookie-text {
    flex: 1;
    margin-bottom: 1rem;
}

.cookie-text p {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.5;
    margin: 0;
}

.cookie-link {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 500;
}

.cookie-link:hover {
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    position: absolute;
    bottom: 1rem;
    right: 1rem;
}

.btn-accept {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-accept:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    transform: translateY(-1px);
}

.btn-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.1rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: #f3f4f6;
    color: #6b7280;
}

/* Mobile */
@media (max-width: 768px) {
    .cookie-banner {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .cookie-content {
        padding: 1.2rem;
    }
    
    .cookie-text p {
        font-size: 0.85rem;
    }
    
    .cookie-actions {
        position: static;
        justify-content: center;
        margin-top: 1rem;
    }
}

.btn-close {
  background-color: transparent;
  opacity: 1;
}

.btn-close::before {
  content: "✕"; /* alternativa ao SVG padrão */
  font-size: 1.5rem;
  color: black;
}

/* =======================================================================================================
TOP BAR
======================================================================================================= */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--topbar-color);
  color: var(--text-dark);
  padding: 0 var(--space-m);
  box-shadow: 0 2px 4px var(--shadow-heavy);
  z-index: 1000;
}

.top-bar a {
  color: var(--submenu-bg);
  text-decoration: none;
  transition: var(--transition-normal);
}

.top-bar a:hover {
  color: var(--gray-light);
}

.topbar-logo {
  height: 35px;
  max-height: 100%;
  width: 175px;
}

.botao {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px 6px;
  border-radius: 8px;
  background-color: transparent;
  color: var(--submenu-bg);
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  min-width: 65px;
  height: 45px;
}

.botao i {
  font-size: var(--space-g);
  color: var(--primary-medium, #019589);
  margin-bottom: 2px;
}

.botao span {
  font-size: var(--space-pm);
  font-weight: 500;
  color: var(--submenu-bg);
  line-height: 1.2;
}

.botao.active,
.botao:hover {
  transform: translateY(-2px);
  background-color: var(--primary-light, #01A89E);
  color: #fff;
}

.botao.active i,
.botao:hover i {
  color: #fff;
}

/* Navbar toggle customizado */
.navbar-toggler {
  border: none;
  padding: 4px 8px;
  background: transparent;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dropdown customizado */
.dropdown-menu {
  background: var(--topbar-color);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-item {
  color: var(--submenu-bg);
  padding: 2px 6px;
}

.dropdown-item:hover {
  background: var(--primary-light, #01A89E);
  color: #fff;
}

.dropdown-item.active,
.dropdown-item.active:hover {
  background: var(--primary-light, #01A89E) !important;
  color: #fff !important;
}

/* Opcional: para dar mais destaque */
.dropdown-item.active {
  font-weight: 600;
}

.dropdown-item i {
  width: 15px;
  margin-right: 8px;
}

/* Responsividade */
@media (max-width: 991.98px) {
  .top-bar {
    position: absolute;
    height: 70px;
  }

  body {
    padding-top: 70px !important;
  }

  .botao {
    min-width: 60px;
    height: 50px;
    padding: 6px 8px;
  }

  .botao i {
    font-size: var(--space-m);
  }

  .botao span {
    font-size: var(--space-p);
  }

  /* Menu collapse customizado */
  .navbar-collapse {
    background: var(--topbar-color);
    border-radius: 8px;
    margin-top: 10px;
    padding: 15px;
  }

  .navbar-nav {
    gap: 8px;
  }

  .navbar-nav .botao {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding: 12px 16px;
    height: auto;
    min-width: auto;
  }

  .navbar-nav .botao i {
    margin-right: 12px;
    margin-bottom: 0;
    font-size: 18px;
  }

  .navbar-nav .botao span {
    font-size: 14px;
  }
}

@media (max-width: 767.98px) {
  .top-bar {
    padding: 8px 12px;
  }

  .topbar-logo {
    height: 35px;
  }

  .botao {
    min-width: 55px;
    padding: 4px 6px;
  }

  .botao span {
    font-size: 12px;
  }
}

@media (max-width: 575.98px) {
  .botao span {
    font-size: 11px;
  }

  .botao {
    min-width: 45px;
    height: 45px;
  }

  .botao i {
    margin-bottom: 0;
  }
}

.vertical-divider {
  width: 1px;
  background-color: rgba(255, 255, 255, 0.3);
  margin: 0 15px;
  height: 45px;
  align-self: center;
}

/* ========================================
   HERO TEXT HIGHLIGHTS
   Componente para destacar palavras-chave
   ======================================== */

/* Gradient para números e estatísticas */
.hero-highlight-number {
    background: linear-gradient(135deg, #00FFA3 0%, #00D9FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.1em;
    display: inline-block;
    text-shadow: 0 0 30px rgba(0, 255, 163, 0.3);
}

/* Destaque para termos de urgência/impacto */
.hero-highlight-urgency {
    color: #00FFA3;
    font-weight: 600;
    position: relative;
}

/* Efeito sutil de brilho para palavras de urgência */
.hero-highlight-urgency::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00FFA3, transparent);
    opacity: 0.5;
}

/* Destaque para características principais */
.hero-highlight-feature {
    font-weight: 600;
    color: #E0F7FA;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Destaque para call-to-action textual */
.hero-highlight-cta {
    color: #FFD700;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    .hero-highlight-number {
        font-size: 1.05em;
    }
    
    .hero-highlight-urgency::after {
        height: 1px;
    }
}

/* ===== FIX PARA .hero-image-section ===== */
/* Remove transform que degrada qualidade do vídeo */

.hero-image-section {
    /* Se tinha transform para algo, substitua por alternativa */
    /* REMOVER: transform: ...; */
    
    /* Se precisava de position, use: */
    position: relative;
    
    /* Se precisava de isolamento de stacking context, use: */
    isolation: isolate;
    
    /* Garante que não force camada de composição */
    will-change: auto;
    
    /* Se tinha animação/transição, ajuste para não usar transform: */
    /* transition: opacity 0.3s, margin 0.3s; */
}