/* =========================================================================
   Prof. Marcelo Vicente — estilos compartilhados
   Extraído fielmente do <style> embutido no index.html / header.html /
   404.html originais. Nenhuma cor, fonte, gradiente ou animação foi
   alterada — só foi tirado do <head> de cada página e centralizado aqui,
   como pedido, para todas as páginas usarem a mesma configuração.
   Tailwind (CDN) continua sendo a base utilitária; isto aqui cobre só as
   classes e animações customizadas que o Tailwind não tem prontas.
   ========================================================================= */

body {
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden; /* Previne overflow horizontal */
  padding-bottom: calc(76px + env(safe-area-inset-bottom)); /* espaço p/ a barra de busca fixa */
}

html {
  scroll-behavior: smooth;
}

/* ---- Marca ---- */
.profmarcelovicente-bg {
  background: linear-gradient(135deg, #5466DD 0%, #3a4fc7 100%);
}

.profmarcelovicente-btn {
  background: linear-gradient(135deg, #00CC88 0%, #00AA6E 100%);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 204, 136, 0.3);
}

.profmarcelovicente-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 204, 136, 0.4);
}

/* A classe .profmarcelovicente-text é usada em várias páginas (títulos,
   ícones) mas não tinha uma regra definida no <style> original — o texto
   ficava com a cor padrão do navegador em vez da cor de marca. Defini
   aqui com o indigo da marca (mesmo tom do header/footer e das bordas dos
   cards de modalidade) para fechar essa lacuna; se preferir manter como
   estava (sem cor), é só remover este bloco. */
.profmarcelovicente-text {
  color: #3a4fc7;
}

/* ---- Interações ---- */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 204, 136, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(0, 204, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 204, 136, 0); }
}

.modalidade-card {
  border-left: 4px solid #5466DD;
}

/* ---- Foto de perfil (hero final / 404) ---- */
.profile-circle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.profile-circle {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  background: #f8fafc;
  flex-shrink: 0;
}

.profile-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.profile-circle-small {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  background: #5466DD;
  flex-shrink: 0;
}

.profile-circle-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.profile-content {
  flex: 1;
  text-align: left;
}

/* ---- Dedo apontando (CTA final) ---- */
.pointing-finger {
  font-size: 2.5rem;
  animation: float 3s ease-in-out infinite;
  margin-left: 15px;
  color: #5466DD;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* ---- Links persuasivos ("Descobrir estratégias exclusivas →" etc.) ---- */
.persuasive-link {
  color: #00AF71;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 10px;
  font-family: 'Arial Rounded MT Bold', 'Arial', sans-serif;
  transition: all 0.2s ease;
}

.persuasive-link:hover {
  color: #008a59;
  text-decoration: underline;
  transform: translateX(5px);
}

/* ---- Passo a passo / checklist (reaproveitado do header.html) ---- */
.step-number {
  width: 40px;
  height: 40px;
  background: #5466DD;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 15px;
  flex-shrink: 0;
}

.check-icon {
  color: #00AA6E;
  margin-right: 10px;
}

/* ---- Animações da página 404 ---- */
.floating { animation: floating 3s ease-in-out infinite; }
@keyframes floating {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.rotate { animation: rotate 10s linear infinite; }
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.bounce { animation: bounce 2s infinite; }
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-20px); }
  60% { transform: translateY(-10px); }
}

.wiggle { animation: wiggle 2s linear infinite; }
@keyframes wiggle {
  0%, 7% { transform: rotateZ(0); }
  15% { transform: rotateZ(-5deg); }
  20% { transform: rotateZ(4deg); }
  25% { transform: rotateZ(-4deg); }
  30% { transform: rotateZ(3deg); }
  35% { transform: rotateZ(-2deg); }
  40%, 100% { transform: rotateZ(0); }
}

/* ---- Responsivo (mobile) ---- */
@media (max-width: 768px) {
  .profile-circle-container {
    flex-direction: column;
    gap: 20px;
  }

  .profile-circle {
    width: 200px;
    height: 200px;
  }

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

  .container, section, div {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .text-break {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .live-text {
    font-size: 1.1rem;
  }

  .hide-mobile-icons {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .live-text {
    font-size: 1.25rem;
  }
}

/* =========================================================================
   Modal "Acessar" — adicionado agora (não existia no site original).
   Usa <dialog> nativo; visual segue a mesma linguagem Tailwind/gradiente
   da marca, sem introduzir paleta nova.
   ========================================================================= */
dialog.mv-modal {
  border: none;
  border-radius: 1rem;
  padding: 0;
  width: min(520px, calc(100vw - 2rem));
  box-shadow: 0 25px 60px -15px rgba(0,0,0,.45);
}
dialog.mv-modal::backdrop {
  background: rgba(15, 23, 42, .6);
  backdrop-filter: blur(2px);
}
dialog.mv-modal[open] {
  animation: mv-modal-in .18s ease-out;
}
@keyframes mv-modal-in {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
dialog.mv-modal--search {
  width: min(640px, calc(100vw - 2rem));
}

/* =========================================================================
   Wizard de Negociações (/negociacoes/pesquisa) — portado do contribuinte.legal
   Classes prefixadas "neg-" para não colidir com o resto do site. Cores
   adaptadas à marca do marcelovicente.prof (indigo/verde), no lugar do
   amarelo/laranja original do Contribuinte Legal.
   ========================================================================= */
.neg-modalidade-card {
  border: 2px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}
.neg-modalidade-card:hover { border-color: #5466DD; transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.neg-modalidade-card.selecionada { border-color: #00AA6E; background: #f0fdf9; }
.neg-modalidade-card-destaque {
  background: linear-gradient(135deg, #5466DD 0%, #3a4fc7 100%) !important;
  border-color: transparent !important;
}
.neg-modalidade-card-destaque h3, .neg-modalidade-card-destaque i { color: #fff !important; }

.neg-esfera-btn { border: 2px solid #e5e7eb; transition: all 0.25s ease; cursor: pointer; }
.neg-esfera-btn:hover { border-color: #5466DD; }
.neg-esfera-btn.selecionada { border-color: #00AA6E; background: #f0fdf9; }

.neg-orgao-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border: 1px solid #e5e7eb; border-radius: 10px;
  margin-bottom: 10px; text-decoration: none; color: #111827;
  transition: all 0.2s ease;
}
.neg-orgao-link:hover { border-color: #00AA6E; background: #f9fafb; }

.neg-step-section { display: none; scroll-margin-top: 130px; }
.neg-step-section.visivel { display: block; animation: neg-fade-in-up 0.3s ease; }
@keyframes neg-fade-in-up { from { opacity:0; transform: translateY(10px);} to {opacity:1; transform:translateY(0);} }

.neg-cidade-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border: 1px solid #e5e7eb; border-radius: 10px; margin-bottom: 8px;
}

/* Popup de resumo (overlay real, centralizado) */
.neg-resumo-backdrop {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); z-index: 900; cursor: pointer;
}
.neg-resumo-backdrop.ativo { display: block; }

.neg-resumo-popup {
  display: none; position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 90%; max-width: 460px; background: #fff; border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3); z-index: 901; overflow: hidden;
}
.neg-resumo-popup.ativo { display: block; }

.neg-resumo-popup-header {
  background: linear-gradient(135deg, #5466DD 0%, #3a4fc7 100%);
  color: #fff; padding: 20px 24px;
}
.neg-resumo-popup-header h3 { font-size: 1.2rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.neg-resumo-popup-body { padding: 20px 24px; }

.neg-resumo-pontos { list-style: none; padding: 0; margin: 0 0 16px; }
.neg-resumo-ponto { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f3f4f6; }
.neg-resumo-ponto:last-child { border-bottom: none; }
.neg-resumo-ponto-icone {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: #eef1fd; color: #3a4fc7;
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
}
.neg-resumo-ponto-label { font-size: 0.72rem; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.03em; }
.neg-resumo-ponto-texto { font-size: 0.88rem; color: #374151; line-height: 1.5; }

.neg-resumo-abrangencia { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.neg-resumo-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: #f0fdf9; color: #00AA6E; border: 1px solid #b8f0dd;
  padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
}

.neg-resumo-popup-acoes { display: flex; gap: 10px; }
.neg-resumo-btn-fechar {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%;
  background: #f3f4f6; color: #6b7280; border: none; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.neg-resumo-btn-fechar:hover { background: #e5e7eb; }
.neg-resumo-btn-acessar {
  flex: 1; border: none; border-radius: 999px; cursor: pointer;
  font-weight: 600; font-size: 1rem; color: #fff;
  background: linear-gradient(135deg, #00CC88 0%, #00AA6E 100%);
}

/* =========================================================================
   Barra de busca fixa — fundo em degradê (só desktop)
   Mescla o azul do header (#5466DD→#3a4fc7) com o verde dos botões
   (#00CC88→#00AA6E), da direita pra esquerda, bem clareado (sobre branco)
   pra só destacar da página sem pesar visualmente. No mobile continua
   sólida branca (mv-search-bar não recebe o degradê abaixo de 768px).
   ========================================================================= */
@media (min-width: 768px) {
  .mv-search-bar {
    background:
      linear-gradient(to left, rgba(0, 204, 136, 0.14), rgba(84, 102, 221, 0.14)),
      #ffffff;
  }
}
