/* Martins Select — menu público com clique e botões unificados
   Aplica na home e páginas públicas sem alterar botões especiais de fechar/menu. */
:root{
  --ms-public-btn-bg:linear-gradient(180deg,#17130b 0%,#050505 100%);
  --ms-public-btn-bg-hover:linear-gradient(180deg,#241c0f 0%,#080808 100%);
  --ms-public-btn-text:#fff7df;
  --ms-public-btn-border:rgba(210,178,112,.78);
  --ms-public-btn-border-hover:rgba(240,217,154,.96);
  --ms-public-btn-shadow:0 14px 34px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.08);
  --ms-public-btn-shadow-hover:0 18px 42px rgba(0,0,0,.45), 0 0 18px rgba(210,178,112,.16), inset 0 1px 0 rgba(255,255,255,.10);
}

body.ms-public-unificado .ms-final-header,
body.ms-public-unificado .ms-final-header *{
  box-sizing:border-box!important;
}

body.ms-public-unificado .ms-final-nav{
  gap:8px!important;
}

body.ms-public-unificado .ms-final-nav a{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:38px!important;
  padding:9px 13px!important;
  border-radius:999px!important;
  color:rgba(255,255,255,.74)!important;
  text-decoration:none!important;
  font-size:13px!important;
  font-weight:850!important;
  line-height:1!important;
  letter-spacing:.01em!important;
  border:1px solid transparent!important;
  background:transparent!important;
  transition:transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease!important;
  box-shadow:none!important;
  white-space:nowrap!important;
  position:relative!important;
  overflow:hidden!important;
}

body.ms-public-unificado .ms-final-nav a:hover,
body.ms-public-unificado .ms-final-nav a.active,
body.ms-public-unificado .ms-final-nav a[aria-current="page"],
body.ms-public-unificado .ms-final-nav a.ms-clicked{
  color:#fff!important;
  border-color:rgba(255,255,255,.18)!important;
  background:rgba(255,255,255,.10)!important;
  transform:translateY(-1px)!important;
}

body.ms-public-unificado .ms-final-nav a:active,
body.ms-public-unificado .ms-final-nav a.ms-clicked{
  transform:translateY(0) scale(.98)!important;
}

body.ms-public-unificado .ms-final-nav a.ms-clicked::after{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  border-radius:inherit!important;
  background:radial-gradient(circle at center,rgba(210,178,112,.28),transparent 62%)!important;
  animation:msPublicMenuClick .42s ease-out both!important;
  pointer-events:none!important;
}

@keyframes msPublicMenuClick{
  0%{opacity:.9;transform:scale(.82)}
  100%{opacity:0;transform:scale(1.45)}
}

body.ms-public-unificado .ms-final-menu-btn{
  appearance:none!important;
  -webkit-appearance:none!important;
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
  min-height:46px!important;
  max-width:46px!important;
  max-height:46px!important;
  padding:0!important;
  margin:0!important;
  border-radius:16px!important;
  border:1px solid rgba(255,255,255,.18)!important;
  background:rgba(255,255,255,.08)!important;
  color:#fff!important;
  font-size:22px!important;
  font-weight:900!important;
  line-height:1!important;
  cursor:pointer!important;
  align-items:center!important;
  justify-content:center!important;
  box-shadow:none!important;
  text-shadow:none!important;
  transition:transform .18s ease, background .18s ease, border-color .18s ease!important;
}

body.ms-public-unificado .ms-final-menu-btn:hover,
body.ms-public-unificado .ms-final-menu-btn.is-active{
  background:rgba(255,255,255,.14)!important;
  border-color:rgba(255,255,255,.24)!important;
  color:#fff!important;
  transform:none!important;
}

body.ms-public-unificado .ms-final-menu-btn:active{
  transform:scale(.96)!important;
}

/* Botões públicos em um único padrão: home, serviços, sobre e CTA. */
body.ms-public-unificado :is(
  .ms-btn,
  a.ms-btn,
  .btn,
  a.btn,
  .button,
  a.button,
  .ref-btn,
  a.ref-btn,
  .lux-btn,
  a.lux-btn,
  .whatsapp-quote-link,
  .cta-actions a,
  .ms-actions a,
  input[type="button"],
  input[type="submit"],
  button[type="submit"],
  button.primary,
  button.secondary,
  button.danger,
  button.green,
  button.blue,
  button.ghost,
  button.btn
):not(.ms-final-menu-btn):not(.menu-toggle):not(.ref-menu-btn):not(.site-menu-btn):not(.lux-photo-close):not(.lightbox-close):not(.modal-close):not(.close):not([aria-label="Fechar"]):not([aria-label="Close"]){
  appearance:none!important;
  -webkit-appearance:none!important;
  min-height:50px!important;
  border-radius:999px!important;
  padding:0 22px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  background:var(--ms-public-btn-bg)!important;
  color:var(--ms-public-btn-text)!important;
  border:1px solid var(--ms-public-btn-border)!important;
  box-shadow:var(--ms-public-btn-shadow)!important;
  text-decoration:none!important;
  text-shadow:none!important;
  font-size:13px!important;
  font-weight:950!important;
  letter-spacing:.02em!important;
  line-height:1.1!important;
  text-align:center!important;
  cursor:pointer!important;
  transition:transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, opacity .18s ease!important;
}

body.ms-public-unificado :is(
  .ms-btn.ghost,
  .btn.ghost,
  .btn.primary,
  .btn.secondary,
  .btn.green,
  .btn.blue,
  .btn.danger,
  .ref-btn.ghost,
  .ref-btn.primary,
  .lux-btn.ghost,
  .lux-btn.primary,
  a.ghost,
  a.primary,
  a.secondary,
  button.ghost,
  button.primary,
  button.secondary,
  button.danger,
  input[type="submit"]
):not(.ms-final-menu-btn){
  background:var(--ms-public-btn-bg)!important;
  color:var(--ms-public-btn-text)!important;
  border-color:var(--ms-public-btn-border)!important;
  box-shadow:var(--ms-public-btn-shadow)!important;
}

body.ms-public-unificado :is(
  .ms-btn:hover,
  a.ms-btn:hover,
  .btn:hover,
  a.btn:hover,
  .button:hover,
  a.button:hover,
  .ref-btn:hover,
  a.ref-btn:hover,
  .lux-btn:hover,
  a.lux-btn:hover,
  .whatsapp-quote-link:hover,
  .cta-actions a:hover,
  .ms-actions a:hover,
  input[type="button"]:hover,
  input[type="submit"]:hover,
  button[type="submit"]:hover,
  button.primary:hover,
  button.secondary:hover,
  button.danger:hover,
  button.green:hover,
  button.blue:hover,
  button.ghost:hover,
  button.btn:hover
):not(.ms-final-menu-btn):not(.menu-toggle):not(.ref-menu-btn):not(.site-menu-btn):not(.lux-photo-close):not(.lightbox-close):not(.modal-close):not(.close):not([aria-label="Fechar"]):not([aria-label="Close"]){
  background:var(--ms-public-btn-bg-hover)!important;
  color:#ffffff!important;
  border-color:var(--ms-public-btn-border-hover)!important;
  box-shadow:var(--ms-public-btn-shadow-hover)!important;
  transform:translateY(-1px)!important;
}

body.ms-public-unificado :is(
  .ms-btn:active,
  a.ms-btn:active,
  .btn:active,
  a.btn:active,
  .button:active,
  a.button:active,
  .ref-btn:active,
  a.ref-btn:active,
  .lux-btn:active,
  a.lux-btn:active,
  .whatsapp-quote-link:active,
  .cta-actions a:active,
  .ms-actions a:active,
  input[type="button"]:active,
  input[type="submit"]:active,
  button[type="submit"]:active,
  button.btn:active
):not(.ms-final-menu-btn){
  transform:translateY(0) scale(.99)!important;
  opacity:.94!important;
}

@media(max-width:860px){
  body.ms-public-unificado .ms-final-nav{
    gap:8px!important;
    padding:10px!important;
    border-radius:22px!important;
    background:rgba(0,0,0,.96)!important;
    border:1px solid rgba(255,255,255,.12)!important;
    box-shadow:0 22px 50px rgba(0,0,0,.42)!important;
    margin-top:4px!important;
  }

  body.ms-public-unificado .ms-final-nav a{
    width:100%!important;
    justify-content:flex-start!important;
    min-height:46px!important;
    padding:12px 14px!important;
    border-radius:14px!important;
    border-top:0!important;
    font-size:14px!important;
  }
}

@media(max-width:760px){
  body.ms-public-unificado :is(.ms-actions,.cta-actions){
    width:100%!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
  }

  body.ms-public-unificado :is(.ms-btn,a.ms-btn,.btn,a.btn,.button,a.button,.ref-btn,a.ref-btn,.lux-btn,a.lux-btn,button[type="submit"],input[type="submit"]):not(.ms-final-menu-btn){
    width:100%!important;
    min-width:0!important;
    min-height:50px!important;
  }
}


/* Correção final — botões públicos 100% iguais e sem bug em Serviços/Trabalhe conosco */
body.ms-public-unificado :is(.ms-actions,.hero-actions,.cta-actions,.btn-row){
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex-wrap:wrap!important;
  gap:12px!important;
  width:100%!important;
}

body.ms-public-unificado :is(
  .ms-btn,
  a.ms-btn,
  .btn,
  a.btn,
  .btn-primary,
  a.btn-primary,
  .btn-secondary,
  a.btn-secondary,
  .button,
  a.button,
  .ref-btn,
  a.ref-btn,
  .lux-btn,
  a.lux-btn,
  .whatsapp-quote-link,
  .cta-actions a,
  .hero-actions a,
  .ms-actions a,
  .btn-row a,
  .btn-row button,
  input[type="button"],
  input[type="submit"],
  button[type="submit"],
  button.primary,
  button.secondary,
  button.danger,
  button.green,
  button.blue,
  button.ghost,
  button.btn
):not(.ms-final-menu-btn):not(.cadastro-menu-ok-btn):not(.menu-toggle):not(.ref-menu-btn):not(.site-menu-btn):not(.lux-photo-close):not(.lightbox-close):not(.modal-close):not(.close):not([aria-label="Fechar"]):not([aria-label="Close"]){
  width:auto!important;
  min-width:190px!important;
  max-width:100%!important;
  min-height:52px!important;
  height:auto!important;
  padding:14px 24px!important;
  border-radius:999px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  background:var(--ms-public-btn-bg)!important;
  background-image:var(--ms-public-btn-bg)!important;
  color:var(--ms-public-btn-text)!important;
  border:1px solid var(--ms-public-btn-border)!important;
  box-shadow:var(--ms-public-btn-shadow)!important;
  text-decoration:none!important;
  text-shadow:none!important;
  font-size:13px!important;
  font-weight:950!important;
  letter-spacing:.02em!important;
  line-height:1.1!important;
  text-align:center!important;
  cursor:pointer!important;
  outline:0!important;
  white-space:normal!important;
  transform:none!important;
  opacity:1!important;
}

body.ms-public-unificado :is(
  .ms-btn:hover,
  a.ms-btn:hover,
  .btn:hover,
  a.btn:hover,
  .btn-primary:hover,
  a.btn-primary:hover,
  .btn-secondary:hover,
  a.btn-secondary:hover,
  .button:hover,
  a.button:hover,
  .ref-btn:hover,
  a.ref-btn:hover,
  .lux-btn:hover,
  a.lux-btn:hover,
  .whatsapp-quote-link:hover,
  .cta-actions a:hover,
  .hero-actions a:hover,
  .ms-actions a:hover,
  .btn-row a:hover,
  .btn-row button:hover,
  input[type="button"]:hover,
  input[type="submit"]:hover,
  button[type="submit"]:hover,
  button.btn:hover
):not(.ms-final-menu-btn):not(.cadastro-menu-ok-btn):not(.menu-toggle):not(.ref-menu-btn):not(.site-menu-btn):not(.lux-photo-close):not(.lightbox-close):not(.modal-close):not(.close):not([aria-label="Fechar"]):not([aria-label="Close"]){
  background:var(--ms-public-btn-bg-hover)!important;
  background-image:var(--ms-public-btn-bg-hover)!important;
  color:#fff!important;
  border-color:var(--ms-public-btn-border-hover)!important;
  box-shadow:var(--ms-public-btn-shadow-hover)!important;
  transform:translateY(-1px)!important;
}

body.ms-public-unificado :is(.ms-btn:active,a.ms-btn:active,.btn:active,a.btn:active,.btn-primary:active,a.btn-secondary:active,.button:active,a.button:active,.cta-actions a:active,.hero-actions a:active,.ms-actions a:active,.btn-row a:active,.btn-row button:active,button[type="submit"]:active,input[type="submit"]:active):not(.ms-final-menu-btn):not(.cadastro-menu-ok-btn){
  transform:translateY(0) scale(.98)!important;
  opacity:.96!important;
}

/* O menu do Trabalhe Conosco também segue o mesmo padrão do menu público. */
body.ms-public-unificado .cadastro-menu-ok,
body.ms-public-unificado .cadastro-menu-ok *{
  box-sizing:border-box!important;
}

body.ms-public-unificado .cadastro-menu-ok-nav{
  gap:8px!important;
}

body.ms-public-unificado .cadastro-menu-ok-nav a{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:38px!important;
  padding:9px 13px!important;
  border-radius:999px!important;
  color:rgba(255,255,255,.74)!important;
  text-decoration:none!important;
  font-size:13px!important;
  font-weight:850!important;
  line-height:1!important;
  letter-spacing:.01em!important;
  border:1px solid transparent!important;
  background:transparent!important;
  transition:transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease!important;
  box-shadow:none!important;
  white-space:nowrap!important;
  position:relative!important;
  overflow:hidden!important;
}

body.ms-public-unificado .cadastro-menu-ok-nav a:hover,
body.ms-public-unificado .cadastro-menu-ok-nav a.active,
body.ms-public-unificado .cadastro-menu-ok-nav a[aria-current="page"],
body.ms-public-unificado .cadastro-menu-ok-nav a.ms-clicked{
  color:#fff!important;
  border-color:rgba(255,255,255,.18)!important;
  background:rgba(255,255,255,.10)!important;
  transform:translateY(-1px)!important;
}

body.ms-public-unificado .cadastro-menu-ok-nav a:active,
body.ms-public-unificado .cadastro-menu-ok-nav a.ms-clicked{
  transform:translateY(0) scale(.98)!important;
}

body.ms-public-unificado .cadastro-menu-ok-nav a.ms-clicked::after{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  border-radius:inherit!important;
  background:radial-gradient(circle at center,rgba(210,178,112,.28),transparent 62%)!important;
  animation:msPublicMenuClick .42s ease-out both!important;
  pointer-events:none!important;
}

body.ms-public-unificado .cadastro-menu-ok-btn{
  appearance:none!important;
  -webkit-appearance:none!important;
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
  min-height:46px!important;
  max-width:46px!important;
  max-height:46px!important;
  padding:0!important;
  margin:0!important;
  border-radius:16px!important;
  border:1px solid rgba(255,255,255,.18)!important;
  background:rgba(255,255,255,.08)!important;
  color:#fff!important;
  font-size:22px!important;
  font-weight:900!important;
  line-height:1!important;
  cursor:pointer!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-shadow:none!important;
  text-shadow:none!important;
}

body.ms-public-unificado .cadastro-menu-ok-btn:hover,
body.ms-public-unificado .cadastro-menu-ok-btn.is-active{
  background:rgba(255,255,255,.14)!important;
  border-color:rgba(255,255,255,.24)!important;
  color:#fff!important;
  transform:none!important;
}

@media(max-width:860px){
  body.ms-public-unificado .cadastro-menu-ok-nav{
    gap:8px!important;
    padding:10px!important;
    border-radius:22px!important;
    background:rgba(0,0,0,.96)!important;
    border:1px solid rgba(255,255,255,.12)!important;
    box-shadow:0 22px 50px rgba(0,0,0,.42)!important;
    margin-top:4px!important;
  }
  body.ms-public-unificado .cadastro-menu-ok-nav a{
    width:100%!important;
    justify-content:flex-start!important;
    min-height:46px!important;
    padding:12px 14px!important;
    border-radius:14px!important;
    border-top:0!important;
    font-size:14px!important;
  }
}

@media(max-width:760px){
  body.ms-public-unificado :is(.ms-actions,.hero-actions,.cta-actions,.btn-row){
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
  body.ms-public-unificado :is(.ms-btn,a.ms-btn,.btn,a.btn,.btn-primary,a.btn-primary,.btn-secondary,a.btn-secondary,.button,a.button,.ref-btn,a.ref-btn,.lux-btn,a.lux-btn,button[type="submit"],input[type="submit"],.hero-actions a,.cta-actions a,.ms-actions a,.btn-row a,.btn-row button):not(.ms-final-menu-btn):not(.cadastro-menu-ok-btn){
    width:100%!important;
    min-width:0!important;
    min-height:52px!important;
  }
}
