/* =========================================================
   ZOOPCAR — index.css (reorganizado / sem duplicidades)
   Objetivo:
   - hero-public = header compacto (menu)
   - hero-home   = capa com imagem (sem barra branca/azul extra)
   - manter cards / login / footer / reveal / responsivo
========================================================= */

/* =========================
   1) VARS / RESET / BASE
========================= */
:root{
  --primary: #0066ff;
  --primary-dark: #0051cc;
  --primary-darker: #004099;

  --text: #111;
  --muted: #6b7280;

  --bg: #f4f4f4;
  --card: rgba(255,255,255,.06);
  --card-border: rgba(255,255,255,.18);

  --radius: 14px;
  --shadow: 0 6px 20px rgba(0,0,0,.08);

  --header-public-h: 100px;
}

*{ box-sizing: border-box; }

html, body{ height: 100%; }

body{
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Acessibilidade */
:focus-visible{
  outline: 3px solid #99c2ff;
  outline-offset: 2px;
  border-radius: 8px;
}

/* =========================
   2) HERO (base comum)
   IMPORTANTE: não forçar 100vh aqui!
========================= */
header.hero{
  position: relative;
  color: #fff;
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* Garante que conteúdo sempre fique acima de overlays */
.hero-top,
.hero-content{
  position: relative;
  z-index: 2;
}

/* =========================
   3) HERO-PUBLIC (menu/header)
========================= */
header.hero.hero-public{
  min-height: auto !important;
  height: var(--header-public-h);
  padding: 0;
  background: linear-gradient(90deg, #0a66ff, #0f88ff);
}

/* não usa overlays do hero-home */
header.hero.hero-public::before,
header.hero.hero-public::after{
  display: none !important;
}

header.hero.hero-public .hero-content{
  display: none !important;
}

header.hero.hero-public .hero-top{
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 2rem;
  margin: 0;
}

.hero-top img{
  height: 40px;
  display: block;
}

/* ações do menu */
.hero-top .actions{
  display: flex;
  align-items: center;
  gap: .5rem;
}

.hero-top .actions a{
  display: inline-flex;
  align-items: center;
  gap: 6px;

  color: #fff;
  text-decoration: none;
  font-weight: 600;

  padding: 0.55rem 0.9rem;
  border-radius: 10px;

  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);

  transition: transform .15s ease, background .2s ease, border-color .2s ease;
  overflow: hidden;
}

.hero-top .actions a i{
  font-size: 14px;
  margin-top: 1px;
}

.hero-top .actions a:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.24);
}

.hero-top .actions a:active{
  transform: translateY(0);
}

/* Header “vidro” ao rolar (usado pelo JS) */
.hero-top.fixed{
  position: fixed;
  inset: 0 0 auto 0;
  top: 0;

  background: rgba(0, 51, 153, .55);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.15);
  z-index: 50;

  padding: .75rem 2rem;
}
.hero-top.fixed img{ height: 32px; transition: height .25s ease; }

/* =========================
   4) HERO-HOME (capa real)
   - sem “barra branca”
   - sem “segunda barra azul” por CSS
   OBS: a imagem vem do JS (background-image)
========================= */
header.hero.hero-home{
  /* Aqui sim: capa full */
  min-height: 100vh;
  padding: 2rem 2rem 5rem;
  background-color: #0b0f1a; /* fallback enquanto a imagem carrega */
}

/* Overlay suave para legibilidade do texto (não é “barra”) */
header.hero.hero-home::before{
  content:"";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.40) 0%,
    rgba(0,0,0,.10) 40%,
    rgba(0,0,0,.50) 100%
  );
  z-index: 1;
}

/* NÃO usar o ::after que criava faixa no rodapé do hero antigo */
header.hero.hero-home::after{
  display: none !important;
}

/* Conteúdo do hero */
header.hero.hero-home .hero-content{
  max-width: 1200px;
  margin: 10rem auto 0; /* controla a “altura do texto” na capa */
  transition: opacity .8s ease-in-out;
}

/* Títulos */
header.hero.hero-home h1{
  font-size: 2.8rem;
  max-width: 700px;
  line-height: 1.15;
  margin: 0 0 .75rem;
  color: #fff;
}

header.hero.hero-home h2{
  font-size: 1.8rem;
  max-width: 900px;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: #fff;
}

.hero-subtext{
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.4;
  color: #e6e6e6;
  margin: 0 0 1.25rem;
}

.destaque-azul{
  background: var(--primary);
  color: #fff;
  padding: .25rem .75rem;
  border-radius: 6px;
  display: inline-block;
}

/* CTA */
.btn-cta{
  display: inline-flex;
  align-items: center;
  gap: .5rem;

  padding: .85rem 1.25rem;
  border-radius: 10px;

  background: #fff;
  color: #0a46b7;
  font-weight: 800;

  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 16px rgba(0,0,0,.10);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
  margin-right: .5rem;
}

.btn-cta:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}

/* Parallax (JS controla) */
header.hero.parallax-dynamic{
  will-change: background-position;
}

/* =========================
   5) ANIMAÇÕES (texto stagger)
========================= */
.hero-content > *{
  opacity: 0;
  transform: translateY(18px);
}
.hero-content.text-in > *{
  animation: fadeUp .8s ease forwards;
}
.hero-content.text-in > *:nth-child(1){ animation-delay: .05s; }
.hero-content.text-in > *:nth-child(2){ animation-delay: .18s; }
.hero-content.text-in > *:nth-child(3){ animation-delay: .32s; }

@keyframes fadeUp{
  to{ opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce){
  .hero-content > *{ opacity: 1; transform: none; }
  .hero-content.text-in > *{ animation: none; }
}

/* =========================
   6) CARDS (grid azul)
========================= */
.cards-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;

  padding: 4rem 2rem;
  background: var(--primary);
  color: #fff;
  text-align: center;
}

.cards-grid img{
  width: 50px;
  max-width: 100%;
  margin-bottom: 10px;
}

.cards-grid h3{
  margin: 0 0 .5rem;
  font-size: 1.1rem;
}

.cards-grid > div{
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.cards-grid > div:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}

/* =========================
   7) LOGIN
========================= */
.login-area{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg);
}

.login-box{
  width: 100%;
    max-width: 720px !important;   /* era ~520/560 no dev */
  padding: 2.5rem 3rem !important;
  background: rgba(255,255,255,0.97);

  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  margin: auto;
}

.login-box .campo{ margin-bottom: 1.25rem; }
.login-box label{ display: block; font-weight: 700; margin-bottom: .5rem; }

.login-box input{
  width: 100%;
  padding: .85rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: .95rem;
  transition: border-color .25s ease, box-shadow .25s ease;
  background: #fff;
}

.login-box input:focus{
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,102,255,0.15);
  outline: none;
}

.login-actions{
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.login-actions button{
  flex: 1;
  padding: .85rem 1.2rem;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, background .3s ease, box-shadow .2s ease;
  box-shadow: 0 6px 12px rgba(0,0,0,.06);
  background: var(--primary);
  color: #fff;
}

.login-actions button:hover{ transform: translateY(-2px); }

.login-actions .secondary{
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  box-shadow: none;
}

.login-actions .secondary:hover{
  background: var(--primary);
  color: #fff;
}

.login-box .links a{
  font-size: .9rem;
  color: var(--primary);
  text-decoration: none;
}
.login-box .links a:hover{ color: #004bb5; }

/* erro (JS usa) */
@keyframes shakeX{
  10%,90%{transform:translateX(-1px)}
  20%,80%{transform:translateX(2px)}
  30%,50%,70%{transform:translateX(-4px)}
  40%,60%{transform:translateX(4px)}
}
.input-error{
  animation: shakeX .35s ease both;
  border-color: #ef4444 !important;
}

/* =========================
   8) FOOTER
========================= */
footer{
  background: #111;
  color: #fff;
  padding: 3rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-col h4{ margin: 0 0 1rem; }
.footer-col ul{ list-style: none; padding: 0; margin: 0; }
.footer-col ul li{ margin-bottom: .5rem; }
.footer-col ul li a{ color: #ccc; text-decoration: none; }

.newsletter input{
  padding: .6rem;
  border: none;
  border-radius: 4px;
  margin-right: .5rem;
}

.newsletter button{
  padding: .6rem 1rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
}

/* =========================
   9) REVEAL (IntersectionObserver)
========================= */
.reveal{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible{
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
}

/* =========================
   10) RESPONSIVO
========================= */
@media (max-width: 1024px){
  .cards-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px){
  /* hero-public: deixa crescer (não corta botões) */
  header.hero.hero-public{
    height: auto;
    padding: max(12px, env(safe-area-inset-top)) 12px 12px;
  }

  header.hero.hero-public .hero-top{
    height: auto;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0;
  }

  header.hero.hero-public .hero-top a img{ height: 32px; }

  header.hero.hero-public .actions{
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  header.hero.hero-public .actions a{
    white-space: nowrap;
    font-size: .95rem;
  }

  /* hero-home */
  header.hero.hero-home{
    padding: 1.25rem 1rem 2.5rem;
    background-position: center;
  }
  header.hero.hero-home .hero-content{
    margin: 5.5rem auto 0;
  }
  header.hero.hero-home h1{
    font-size: 2rem;
    text-align: center;
  }
  header.hero.hero-home h2{
    font-size: 1.3rem;
    text-align: center;
  }
  .hero-subtext{
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    padding: 0 .5rem;
  }

  .btn-cta{
    width: auto;
    justify-content: center;
    margin: .75rem .25rem 0;
  }

  .cards-grid{
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }

  .login-actions{
    flex-direction: column;
    gap: .75rem;
  }

  footer{
    flex-direction: column;
    text-align: center;
  }
  .footer-col{ width: 100%; }
  .newsletter{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
  }
  .newsletter input,
  .newsletter button{
    width: 100%;
  }
}

@media (max-width: 420px){
  header.hero.hero-public .actions a{
    font-size: .9rem;
    padding: .4rem .75rem;
  }
}

@media (max-width: 768px){
  .login-box{
    max-width: 520px !important;
    padding: 2rem !important;
  }
}


/* CENTRALIZA o conteúdo (hero-top) dentro do header público alto */
header.hero.hero-public{
  display: flex;
  align-items: center;   /* ✅ centro vertical */
}

/* garante que o hero-top ocupe a largura toda */
header.hero.hero-public .hero-top{
  width: 100%;
}

/* =================================================
   PLANO / CRÉDITOS — estilos trazidos do styles.css
   (escopo controlado, sem afetar outras telas)
================================================= */

.cadastro-container {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.cards-planos {
  display: flex;
  justify-content: center;
}

.cards-planos > div,
.plano-card {
  background: #fff;
  border-radius: 16px;
  padding: 3rem 3.5rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.10);
  text-align: center;
  max-width: 800px;
  width: 100%;
}

/* Títulos */
.cards-planos h1,
.plano-card h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #111;
}

.cards-planos p,
.plano-card p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Botão principal */
.cards-planos button,
.plano-card button {
  margin-top: 1.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 10px;
  border: none;
  background: #0066ff;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.cards-planos button:hover,
.plano-card button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.2);
}

/* Mobile */
@media (max-width: 768px) {
  .cadastro-container {
    margin: 2.5rem auto;
  }

  .cards-planos > div,
  .plano-card {
    padding: 2rem 1.5rem;
  }

  .cards-planos h1 {
    font-size: 1.6rem;
  }
}

/* =================================================
   PLANO (CAMPANHA) — visual mais “produção”
================================================= */

#cardsPlanos{
  display: flex;
  justify-content: center;
  padding: 56px 16px;
}

.campanha-texto{
  width: min(980px, 100%);
  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  padding: 46px 48px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0,0,0,0.10);
  border: 1px solid rgba(15, 136, 255, 0.10);
}

.campanha-texto.destaque{
  position: relative;
  overflow: hidden;
}

.campanha-texto.destaque::before{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 220px at 50% 0%, rgba(10,102,255,0.18), transparent 60%);
  pointer-events: none;
}

.campanha-texto h1{
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
  line-height: 1.15;
  margin: 0 0 14px;
  color: #0a66ff;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.campanha-texto p{
  margin: 10px auto;
  max-width: 820px;
  color: #334155;
  font-size: 1.02rem;
  line-height: 1.6;
}

.campanha-texto .campanha-linha{
  margin-top: 14px;
  color: #0f172a;
}

.campanha-texto .cta{
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

.btnAcao{
  background: linear-gradient(180deg, #0f88ff, #0a66ff);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 22px rgba(10,102,255,0.28);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

.btnAcao:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 16px 28px rgba(10,102,255,0.34);
}

.btnAcao:active{
  transform: translateY(0);
}

@media (max-width: 560px){
  #cardsPlanos{ padding: 32px 12px; }
  .campanha-texto{ padding: 26px 18px; border-radius: 16px; }
  .campanha-texto p{ font-size: 0.98rem; }
  .btnAcao{ width: 100%; justify-content: center; }
}

/* =========================================
   BASE: CARD / FORM (extraído do cadastroCompleto.css)
   Afeta: representanteInteressado (SPA e página solta)
========================================= */

:root { --primary-color: #0066ff; }

/* Card/container padrão */
.cadastro-container{
  max-width: 1200px;
  margin: 60px auto;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.10);
}

/* Grid do formulário */
.form-grid{
  display: grid;
  gap: 12px;
}

/* Inputs/selects do form */
.form-grid input,
.form-grid select{
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  background: #fff;
}

/* Botões (fica igual ao “bonito”) */
.btnAcao,
.login-box button,
.newsletter button{
  background: #0056d2;
  color: #fff;
  padding: .75rem 1.5rem;
  border: none;
  border-radius: 5px;
  font-weight: 700;
  cursor: pointer;
}

.btnCancelar,
.login-box .secondary{
  background: #ccc;
  color: #000;
  padding: .75rem 1.5rem;
  border: none;
  border-radius: 5px;
  font-weight: 700;
  cursor: pointer;
}

.form-buttons,
.login-actions{
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

/* Mobile: card e botões responsivos */
@media (max-width: 768px){
  .cadastro-container{
    margin: 40px auto;
    padding: 30px;
    border-radius: 10px;
  }

  .form-grid{
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .form-buttons,
  .login-actions{
    flex-direction: column;
    align-items: stretch;
  }

  .form-buttons button,
  .login-actions button{
    width: 100%;
  }
}

/* =========================================================
   CADASTRO COMPLETO (escopado)
   Regras do antigo cadastroCompleto.css trazidas pra index.css
   sem afetar outras páginas.
========================================================= */

.cadastro-completo{
  --primary-color: var(--primary, #0066ff);
}

/* Stepper */
.cadastro-completo #stepper{
  display:flex;
  justify-content:space-between;
  margin-bottom:30px;
}
.cadastro-completo .step{
  flex:1;
  text-align:center;
  padding:10px;
  border-bottom:3px solid #ccc;
  font-weight:700;
  color:#999;
}
.cadastro-completo .step.active{
  color: var(--primary-color);
  border-color: var(--primary-color);
}
.cadastro-completo .step-content{ display:none; }
.cadastro-completo .step-content.active{ display:block; }

/* Grupos do vendedor */
.cadastro-completo .grupo-campo{
  margin-bottom: 32px;
  padding-top: 16px;
}
.cadastro-completo .grupo-campo > label{
  font-weight: 700;
  margin-bottom: 8px;
  display: inline-block;
  font-size: 15px;
  color: #1f2937;
}
.cadastro-completo .texto-explicativo-vendedor{
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 20px;
  background-color: #f3f4f6;
  padding: 16px 24px;
  border-radius: 6px;
  border-left: 4px solid var(--primary-color);
  line-height: 1.6;
  box-sizing: border-box;
}
.cadastro-completo .divisor-vendedor{
  border:none;
  border-top:1px solid #ccc;
  margin: 1.2rem 0;
}

/* Checkboxes (estilo moderno) */
.cadastro-completo input[type="checkbox"]{
  width:16px;
  height:16px;
  appearance:none;
  border:2px solid #ccc;
  border-radius:4px;
  cursor:pointer;
  position:relative;
  background:#fff;
  transition: all .2s ease;
}
.cadastro-completo input[type="checkbox"]:checked{
  background: var(--primary-color);
  border-color: var(--primary-color);
}
.cadastro-completo input[type="checkbox"]:checked::after{
  content:"✓";
  position:absolute;
  top:-2px;
  left:2px;
  font-size:14px;
  color:#fff;
  font-weight:800;
}

/* Grid de checkboxes */
.cadastro-completo .checkbox-grid{
  display:flex;
  flex-wrap:wrap;
  gap: 12px 24px;
  margin-bottom:12px;
}
.cadastro-completo .checkbox-grid label{
  display:flex;
  flex-direction: row-reverse;
  align-items:center;
  gap:6px;
  font-weight:400;
  min-width:140px;
  cursor:pointer;
  text-align:right;
  transition: all .2s ease-in-out;
}
.cadastro-completo .checkbox-grid label:hover{
  background:#f5f5f5;
  border-radius:4px;
}

/* Toast (usado pelo showToast) */
.toast{
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(20px);
  transition: all .3s ease;
  z-index: 10000;
  font-size: 14px;
  color: #fff;
}
.toast.visible{ opacity:1; transform: translateY(0); }
.toast-sucesso{ background: var(--primary, #0066ff); }
.toast-erro{ background:#ef4444; }
.toast-info{ background:#3b82f6; }

/* Compatibilidade: toasts criados com classes "show/success/error" */
.toast.show{
  opacity: 1;
  transform: translateY(0);
}
.toast.success{ background: var(--primary, #0066ff); }
.toast.error{ background: #ef4444; }
.toast.info{ background: #3b82f6; }


/* Responsivo */
@media (max-width: 768px){
  .cadastro-completo #stepper{
    flex-direction:column;
    gap:10px;
  }
  .cadastro-completo .step{
    border-bottom:none;
    border-left:4px solid #ccc;
    text-align:left;
    padding:8px 12px;
    font-size:14px;
  }
  .cadastro-completo .step.active{
    border-left-color: var(--primary-color);
  }

  .cadastro-completo .checkbox-grid{
    gap:12px;
    justify-content:flex-start;
  }
}

/* ✅ SPA pública: footer sempre no fundo */
body.public-app{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* header e footer não encolhem */
#header-publico,
#footer-publico{
  flex: 0 0 auto;
}

/* o miolo cresce e empurra o footer */
#public-content{
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* força empurrar pra baixo mesmo com conteúdo curto */
#footer-publico{
  margin-top: auto;
}

/* FAQ: começa no tamanho final (sem “pular” depois) */
.cadastro-container--faq{
  width: min(1100px, 100%);
  min-height: 60vh;        /* reserva altura e evita o “salto” */
}

/* opcional: reserva espaço pro bloco que carrega depois */
.cadastro-container--faq #faqLista{
  min-height: 40vh;
}

/* =========================================================
   MENU HAMBURGER — FIX DEFINITIVO (mobile)
   Substitui totalmente o comportamento antigo
========================================================= */

/* botão ☰ */
.menu-toggle{
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span{
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: all .3s ease;
}

/* MOBILE */
@media (max-width: 768px){

  /* header SEMPRE em linha */
  header.hero.hero-public .hero-top{
    height: 72px !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0 !important;
    padding: 0 12px !important;
  }

  /* mostra o botão */
  .menu-toggle{
    display: block !important;
    position: relative;
    z-index: 10001;
  }

  /* MENU = drawer fechado */
  header.hero.hero-public .hero-top .actions{
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;     /* fechado */
    height: 100vh !important;
    width: 80% !important;
    max-width: 320px !important;

    padding: 90px 20px 20px !important;

    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 14px !important;

    background: linear-gradient(180deg, #0a66ff, #0f88ff) !important;

    transition: right .35s ease !important;
    z-index: 10000 !important;
    isolation: isolate;
  }

  /* aberto */
  header.hero.hero-public .hero-top .actions.open{
    right: 0 !important;
  }

  /* links */
  header.hero.hero-public .hero-top .actions a{
    width: 100% !important;
    justify-content: flex-start !important;
    font-size: 1rem !important;
    padding: 12px !important;
  }

  /* animação X */
  .menu-toggle.active span:nth-child(1){
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle.active span:nth-child(2){
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3){
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* =========================================================
   HAMBURGER — GARANTIR SEMPRE NA FRENTE (stacking final)
========================================================= */

/* o header público fica acima de qualquer hero */
#header-publico{
  position: relative;
  z-index: 20000;
}

/* garante que a barra/topo não perca clique */
header.hero.hero-public .hero-top{
  position: relative;
  z-index: 20001;
}

/* drawer (menu) sempre acima do resto da página */
header.hero.hero-public .hero-top .actions{
  z-index: 30000 !important;
}

/* botão X/hamburger sempre clicável */
.menu-toggle{
  position: relative;
  z-index: 30001 !important;
}

/* rebaixa tudo que é do hero-home para nunca “vazar” por cima */
header.hero.hero-home,
header.hero.hero-home::before,
header.hero.hero-home::after,
header.hero.hero-home .hero-content{
  z-index: 1 !important;
}
