/* Estilos Base e Cores */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #0a0a0a;
    background-image: radial-gradient(circle at top right, rgba(255, 69, 0, 0.08), transparent 40%), radial-gradient(circle at bottom left, rgba(255, 69, 0, 0.08), transparent 40%);
    color: #ffffff;
    background-attachment: fixed;
}

* {
    scroll-behavior: smooth;
}

:root {
    --brand-orange: #FF4500; 
}
.text-gradient {
    background: linear-gradient(90deg, var(--brand-orange), #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.btn-primary, .btn-contratar {
    background-color: var(--brand-orange);
    transition: all 0.3s ease;
}
.btn-primary:hover, .btn-contratar:hover {
    background-color: #e03e00;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 69, 0, 0.4);
}
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--brand-orange);
    transition: width 0.3s ease-in-out;
}
.nav-link:hover::after { width: 100%; }
.plan-tab-btn {
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background-color: rgba(255, 255, 255, 0.05);
}
.plan-tab-btn.active {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
    background-color: rgba(255, 69, 0, 0.1);
}
.plan-tab-content { display: none; }
.plan-tab-content.active { display: flex; }
.glass-card {
    background: rgba(17, 24, 39, 0.6); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.plan-card-featured {
    border-color: var(--brand-orange);
}
.map-dark { filter: invert(1) hue-rotate(180deg) contrast(0.9); }
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-subtle 2s infinite;
    transition: transform 0.3s ease;
}
.whatsapp-float:hover {
        transform: scale(1.1);
        animation: none;
}

/* ANIMAÇÕES */
/* Animação de fundo para a seção Hero */
@keyframes zoom-in-out {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.hero-bg-animation {
    animation: zoom-in-out 15s ease-in-out infinite;
}

/* Animação On-Scroll (existente) */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* NOVAS ANIMAÇÕES On-Load */
.animate-on-load {
    opacity: 0;
    animation-fill-mode: forwards;
}
@keyframes fadeIn {
    to { opacity: 1; }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.do-fade-in-down { animation-name: fadeInDown; animation-duration: 0.8s; }
.do-fade-in-up { animation-name: fadeInUp; animation-duration: 0.8s; }
.do-fade-in { animation-name: fadeIn; animation-duration: 1.2s; }

/* ======================================================= */
/* === NOVOS ESTILOS PARA MENU DROPDOWN (Estilo Topo) === */
/* ======================================================= */

/* O botão hambúrguer continua igual, pois o ícone é o mesmo */
.hamburger-button {
    width: 40px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

.hamburger-button .line {
    width: 100%;
    height: 3px;
    background-color: var(--brand-orange);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Animação do botão para "X" quando o menu está aberto */
.hamburger-button.is-open .line:nth-child(1) {
    transform: translateY(13px) rotate(45deg);
}

.hamburger-button.is-open .line:nth-child(2) {
    opacity: 0;
}

.hamburger-button.is-open .line:nth-child(3) {
    transform: translateY(-14px) rotate(-45deg);
}

/* --- AQUI COMEÇA A MUDANÇA --- */

/* O overlay de fundo não é mais necessário neste estilo */
.mobile-menu-overlay {
    display: none;
}

/* O menu que desce do topo */
.mobile-menu {
    position: fixed; /* Fica fixo em relação à tela */
    top: 0;
    left: 0;
    right: 0;
    z-index: 45; /* Fica logo abaixo do header (que tem z-index 50) */
    
    /* Animação de descida */
    transform: translateY(-100%); /* Começa totalmente escondido acima da tela */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Estilo visual do painel */
    background-color: #0a0a0a;
    /* Adiciona um padding no topo para não ficar atrás do header */
    padding-top: 88px; 
    padding-bottom: 24px;
    padding-left: 24px;
    padding-right: 24px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Quando o menu está aberto, ele desce para a posição visível */
.mobile-menu.is-open {
    transform: translateY(0);
}

/* Estilos para os links dentro do menu (mantivemos a essência) */
.mobile-nav-link {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 1.125rem; /* text-lg */
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    transition: background-color 0.2s, color 0.2s;
    border-radius: 9999px;
    margin-bottom: 0.5rem;
}
.mobile-nav-link:hover {
    background-color: rgba(255, 69, 0, 0.1);
    color: var(--brand-orange);
}

.mobile-nav-link-secondary {
    display: block;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: #d1d5db; /* text-gray-300 */
    text-align: center;
}
.mobile-nav-link-secondary:hover {
    color: var(--brand-orange);
}

/* Impede o scroll da página quando o menu está aberto (continua útil) */
body.menu-open {
    overflow: hidden;
}

/* css/index.css */

/* ======================================================= */
/* === NOVAS ANIMAÇÕES PARA OS CARDS DOS PLANOS      === */
/* ======================================================= */

/* 1. Define a animação de fade in + subida */
@keyframes cardFadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 2. Aplica a animação aos cards DENTRO da aba ativa */
.plan-tab-content.active .glass-card {
  /* O 'both' garante que o estilo final da animação seja mantido */
  animation: cardFadeInUp 0.5s ease-out both;
}

/* 3. Cria o efeito escalonado (stagger) para até 4 cards */
/* O segundo card aparecerá 100ms depois do primeiro */
.plan-tab-content.active .glass-card:nth-child(2) {
  animation-delay: 0.1s;
}
/* O terceiro card aparecerá 200ms depois do primeiro */
.plan-tab-content.active .glass-card:nth-child(3) {
  animation-delay: 0.2s;
}
/* O quarto card aparecerá 300ms depois do primeiro */
.plan-tab-content.active .glass-card:nth-child(4) {
  animation-delay: 0.3s;
}

/* Adiciona um leve "afundamento" ao botão da aba quando pressionado */
.plan-tab-btn:active {
    transform: scale(0.97);
}

/* css/index.css */

/* ======================================================= */
/* === ANIMAÇÃO PARA FORMULÁRIO DE LOGIN             === */
/* ======================================================= */

.form-container-animate {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.form-container-animate.visible {
    opacity: 1;
    transform: scale(1);
}