/* ============================================ */
/* MENU MOBILE EXCLUSIVO - ARQUIVO DEDICADO    */
/* ============================================ */

/* ============================================ */
/* CONTROLE DE VISIBILIDADE                    */
/* ============================================ */

/* Elementos mobile começam ocultos */
.mobile-menu-drawer,
.mobile-menu-overlay {
  display: none;
}

.header-mobile {
  display: none;
}

/* ============================================ */
/* LAYOUT MOBILE                               */
/* ============================================ */

@media (max-width: 768px) {
  /* Esconder desktop, mostrar mobile */
  .header-desktop {
    display: none !important;
  }

  .header-mobile {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 20px;
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #1a1f2e 0%, #0a0f1c 100%);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 123, 0, 0.3);
  }

  /* Banner já ajustado pelo padding-top do body */
  .banner {
    margin-top: 0;
  }

  .mobile-menu-drawer,
  .mobile-menu-overlay {
    display: block !important;
    position: fixed;
    z-index: 999;
  }

  /* Logo Centralizado */
  .logo-mobile {
    flex: 1;
    text-align: center;
  }

  .logo-mobile img {
    height: 45px;
    filter: brightness(1.1);
    border-radius: 8px;
    padding: 5px 8px;
    background: white;
    /* Efeito Neon Laranja Mobile */
    box-shadow:
      0 0 8px rgba(255, 123, 0, 0.6),
      0 0 16px rgba(255, 123, 0, 0.4),
      0 0 24px rgba(255, 123, 0, 0.2),
      inset 0 0 8px rgba(255, 123, 0, 0.1);
    animation: logoMobileNeonGlow 2s ease-in-out infinite alternate;
  }

  @keyframes logoMobileNeonGlow {
    0% {
      box-shadow:
        0 0 8px rgba(255, 123, 0, 0.6),
        0 0 16px rgba(255, 123, 0, 0.4),
        0 0 24px rgba(255, 123, 0, 0.2),
        inset 0 0 8px rgba(255, 123, 0, 0.1);
    }
    100% {
      box-shadow:
        0 0 12px rgba(255, 123, 0, 0.9),
        0 0 24px rgba(255, 123, 0, 0.6),
        0 0 36px rgba(255, 123, 0, 0.4),
        inset 0 0 12px rgba(255, 123, 0, 0.2);
    }
  }

  /* Hamburger à Direita */
  .mobile-menu-toggle {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #ff7b00, #ff6b35);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    z-index: 1000;
    transition: all 0.3s ease;

    /* Efeito Neon Laranja */
    box-shadow:
      0 0 10px rgba(255, 123, 0, 0.6),
      0 0 20px rgba(255, 123, 0, 0.4),
      0 0 30px rgba(255, 123, 0, 0.2);

    animation: menuGlow 2s ease-in-out infinite alternate;
  }

  @keyframes menuGlow {
    0% {
      box-shadow:
        0 0 10px rgba(255, 123, 0, 0.6),
        0 0 20px rgba(255, 123, 0, 0.4),
        0 0 30px rgba(255, 123, 0, 0.2);
    }
    100% {
      box-shadow:
        0 0 15px rgba(255, 123, 0, 0.8),
        0 0 30px rgba(255, 123, 0, 0.6),
        0 0 45px rgba(255, 123, 0, 0.4);
    }
  }

  .mobile-menu-toggle:hover {
    transform: scale(1.1);
    box-shadow:
      0 0 20px rgba(255, 123, 0, 1),
      0 0 40px rgba(255, 123, 0, 0.8),
      0 0 60px rgba(255, 123, 0, 0.6);
  }

  .mobile-menu-toggle:active {
    transform: scale(0.95);
  }

  /* Linhas do Hamburger */
  .mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: all 0.3s ease;
  }

  /* Animação do Hamburger quando ativo */
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* ============================================ */
  /* MENU GAVETA                                 */
  /* ============================================ */

  .mobile-menu-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, #0a0f1c 0%, #1a1f2e 50%, #0a0f1c 100%);
    z-index: 999;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    border-right: 2px solid rgba(255, 123, 0, 0.3);
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.5);
  }

  .mobile-menu-drawer.active {
    left: 0;
  }

  .mobile-menu-content {
    padding: 90px 20px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
  }

  /* Botão Assine em Destaque */
  .mobile-menu-cta {
    margin-bottom: 30px;
    margin-top: 10px;
    text-align: center;
  }

  .mobile-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #ff7b00, #ff6b35);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow:
      0 4px 15px rgba(255, 123, 0, 0.4),
      0 0 20px rgba(255, 123, 0, 0.3);
  }

  .mobile-cta-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow:
      0 6px 20px rgba(255, 123, 0, 0.6),
      0 0 30px rgba(255, 123, 0, 0.5);
  }

  .mobile-cta-button i {
    font-size: 18px;
  }

  /* Menu de Navegação */
  .mobile-nav {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block !important;
  }

  .mobile-nav > ul > li {
    margin-bottom: 15px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
  }

  .mobile-nav a {
    display: block !important;
    color: #e0e4ea !important;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    border-left: 3px solid transparent;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .mobile-nav a:hover {
    background: rgba(255, 123, 0, 0.1);
    color: #ff7b00;
    border-left-color: #ff7b00;
    transform: translateX(5px);
  }

  /* Botões de Seção */
  .mobile-section-toggle {
    width: 100% !important;
    background: none !important;
    border: none !important;
    color: #e0e4ea !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    padding: 12px 15px !important;
    text-align: left !important;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    visibility: visible !important;
    opacity: 1 !important;
    border-radius: 8px;
  }

  .mobile-section-toggle:hover {
    background: rgba(255, 123, 0, 0.1) !important;
    color: #ff7b00 !important;
    border-left-color: #ff7b00;
    transform: translateX(5px);
  }

  .mobile-section-toggle i {
    transition: transform 0.3s ease;
  }

  .mobile-section-toggle.active i {
    transform: rotate(180deg);
  }

  .mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-left: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-top: 8px;
    position: static !important;
    width: calc(100% - 15px);
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    z-index: auto !important;
    min-width: auto !important;
  }

  .mobile-submenu.active {
    max-height: 300px;
    padding: 10px 0;
  }

  .mobile-submenu li {
    margin-bottom: 5px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static;
    width: 100%;
  }

  .mobile-submenu a {
    display: block !important;
    padding: 8px 15px !important;
    font-size: 14px !important;
    color: #b0b6c3 !important;
    text-decoration: none !important;
    border-radius: 6px;
    margin: 0 8px;
    transition: all 0.3s ease;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .mobile-submenu a:hover {
    color: #ff7b00 !important;
    background: rgba(255, 123, 0, 0.15) !important;
    transform: translateX(3px);
  }

  /* Footer do Menu */
  .mobile-menu-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .mobile-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .mobile-phone,
  .mobile-whatsapp {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: #e0e4ea;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
  }

  .mobile-phone:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
  }

  .mobile-whatsapp:hover {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
  }

  /* Overlay */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* ============================================ */
  /* ANIMAÇÕES E EFEITOS                         */
  /* ============================================ */

  /* Entrada dos itens do menu */
  .mobile-menu-drawer.active .mobile-nav li {
    animation: slideInRight 0.3s ease forwards;
  }

  .mobile-menu-drawer.active .mobile-nav li:nth-child(1) { animation-delay: 0.1s; }
  .mobile-menu-drawer.active .mobile-nav li:nth-child(2) { animation-delay: 0.15s; }
  .mobile-menu-drawer.active .mobile-nav li:nth-child(3) { animation-delay: 0.2s; }
  .mobile-menu-drawer.active .mobile-nav li:nth-child(4) { animation-delay: 0.25s; }
  .mobile-menu-drawer.active .mobile-nav li:nth-child(5) { animation-delay: 0.3s; }
  .mobile-menu-drawer.active .mobile-nav li:nth-child(6) { animation-delay: 0.35s; }

  @keyframes slideInRight {
    from {
      transform: translateX(-30px);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

  /* Entrada do botão CTA */
  .mobile-menu-drawer.active .mobile-cta-button {
    animation: bounceIn 0.6s ease 0.2s both;
  }

  @keyframes bounceIn {
    0% {
      transform: scale(0.3);
      opacity: 0;
    }
    50% {
      transform: scale(1.05);
    }
    70% {
      transform: scale(0.9);
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }
}

/* ============================================ */
/* MOBILE PEQUENO                              */
/* ============================================ */

@media (max-width: 480px) {
  .mobile-menu-drawer {
    width: 280px;
  }

  .mobile-menu-content {
    padding: 80px 15px 15px;
  }

  .mobile-cta-button {
    padding: 12px 25px;
    font-size: 14px;
  }

  .logo-mobile img {
    height: 38px;
  }

  .mobile-menu-toggle {
    width: 32px;
    height: 32px;
  }

  .mobile-menu-toggle span {
    width: 18px;
  }
}