/*
 * Estrutura institucional compartilhada com o portal Mangalarga.
 * Mantém o menu e o rodapé visualmente alinhados ao site principal,
 * sem interferir nos componentes internos da plataforma de leilões.
 */

.shell-container{
  width:min(calc(100% - 64px),1680px);
  margin:0 auto;
}

/* Cabeçalho institucional */
.site-header{
  position:sticky;
  top:0;
  z-index:60;
  width:100%;
  background:rgba(255,255,255,.96);
  border-bottom:1px solid rgba(23,58,53,.12);
  backdrop-filter:blur(18px);
}
.header-inner{
  min-height:92px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
}
.site-header .brand-logo{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  height:72px;
  gap:0;
  letter-spacing:0;
}
.site-header .brand-logo img{
  width:72px;
  height:72px;
  object-fit:contain;
}
.menu-trigger,
.menu-trigger-lines,
.menu-trigger-label,
.menu-trigger-bars,
.menu-trigger>span{
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  text-decoration:none!important;
}
.menu-trigger,
.menu-trigger-lines{
  background:transparent;
}
.menu-trigger-lines{
  width:auto;
  min-width:112px;
  height:48px;
  padding:0;
  display:inline-flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-end;
  gap:14px;
  cursor:pointer;
  transform:none!important;
}
.menu-trigger-label{
  order:2;
  position:relative;
  margin:0;
  padding:0;
  color:#173A35;
  background:transparent;
  font-size:12px;
  line-height:1;
  font-weight:500;
  letter-spacing:.12em;
  transition:none!important;
}
.menu-trigger-bars{
  order:1;
  flex:0 0 40px;
  width:40px;
  height:24px;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:center;
  gap:6px;
  overflow:visible;
  transform:none!important;
}
.menu-trigger-bars i{
  display:block;
  flex:0 0 1px;
  height:1px;
  min-height:1px;
  max-height:1px;
  margin:0;
  border-radius:0;
  background:#173A35;
  transition:width .28s cubic-bezier(.2,.7,.2,1);
}
.menu-trigger-bars i:nth-child(1),
.menu-trigger-bars i:nth-child(3){width:40px}
.menu-trigger-bars i:nth-child(2){width:25px}
.menu-trigger-lines:hover .menu-trigger-bars i:nth-child(2){width:40px}

/* Menu em tela cheia */
.menu-overlay{
  position:fixed;
  inset:0;
  z-index:120;
  display:grid;
  grid-template-columns:minmax(360px,42vw) minmax(0,1fr);
  overflow:hidden;
  visibility:hidden;
  pointer-events:none;
  background:#fff;
}
.menu-overlay::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background:#fff;
  opacity:0;
  transition:opacity .25s ease;
}
.menu-overlay.open{
  visibility:visible;
  pointer-events:auto;
}
.menu-overlay.open::before{opacity:1}
.menu-cover,
.menu-panel{
  position:relative;
  z-index:1;
  min-height:100vh;
  transition:transform .72s cubic-bezier(.76,0,.24,1);
}
.menu-cover{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  overflow:hidden;
  background:#173A35;
  transform:translateX(-102%);
}
.menu-cover img{
  display:block;
  width:100%;
  height:100%;
  min-width:0;
  max-width:none;
  object-fit:cover;
  object-position:center center;
  margin:0;
}
.menu-panel{
  padding:70px clamp(38px,5vw,90px) 56px;
  display:flex;
  flex-direction:column;
  background:#fff;
  transform:translateX(102%);
}
.menu-overlay.open .menu-cover,
.menu-overlay.open .menu-panel{transform:translateX(0)}
.menu-panel-logo{
  position:absolute;
  top:34px;
  left:clamp(38px,5vw,90px);
  z-index:3;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:74px;
  height:74px;
}
.menu-panel-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.menu-close{
  position:absolute;
  top:30px;
  right:34px;
  z-index:3;
  width:52px;
  height:52px;
  padding:0;
  border:0;
  background:transparent;
  color:#173A35;
  font-size:44px;
  line-height:1;
  font-weight:200;
  cursor:pointer;
}
.menu-content{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:minmax(330px,1.2fr) minmax(250px,.8fr);
  gap:clamp(56px,7vw,120px);
  margin-top:104px;
  max-width:1060px;
}
.menu-primary{
  display:grid;
  align-content:start;
  gap:25px;
}
.menu-primary a{
  display:flex;
  align-items:flex-start;
  gap:18px;
  width:max-content;
  max-width:100%;
  color:#173A35;
  font-size:clamp(26px,2.1vw,42px);
  line-height:1.04;
  font-weight:300;
  transition:transform .2s ease;
}
.menu-primary a span{
  min-width:20px;
  margin-top:7px;
  color:#BFAA7C;
  font-size:11px;
  line-height:1;
  font-weight:400;
}
.menu-primary a:hover,
.menu-primary a.active{transform:translateX(8px)}
.menu-primary a.active::after{
  content:"";
  width:36px;
  height:1px;
  margin:18px 0 0 12px;
  background:#BFAA7C;
}
.menu-secondary{
  display:grid;
  grid-template-columns:1fr;
  align-content:start;
  gap:34px;
  padding-top:8px;
}
.menu-secondary>div{
  display:grid;
  gap:12px;
}
.menu-label{
  margin-bottom:6px;
  color:#BFAA7C;
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.menu-secondary a{
  width:max-content;
  max-width:100%;
  padding-bottom:3px;
  border-bottom:1px solid transparent;
  color:#173A35;
  font-size:16px;
  font-weight:300;
}
.menu-secondary a:hover{border-bottom-color:#173A35}
.menu-meta{
  position:relative;
  z-index:2;
  margin-top:auto;
  max-width:1060px;
  display:grid;
  grid-template-columns:.65fr 1.35fr .7fr;
  gap:44px;
  padding-top:42px;
  border-top:1px solid rgba(23,58,53,.14);
  color:#6F746F;
  font-size:13px;
  font-weight:300;
}
.menu-meta>div{
  display:grid;
  align-content:start;
  gap:8px;
}
.menu-meta strong{
  color:#173A35;
  font-size:12px;
  font-weight:500;
}
.menu-meta a{
  width:max-content;
  color:#173A35;
}
body.menu-open{overflow:hidden}

/* Rodapé institucional */
.site-footer{
  width:100%;
  margin-top:auto;
  padding:0;
  overflow:hidden;
  color:#fff;
  background:#173A35;
  font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;
  font-weight:300;
}
.footer-main{
  width:min(calc(100% - 64px),1260px);
  min-height:570px;
  margin:0 auto;
  padding:106px 0 86px;
  display:flex;
  align-items:center;
}
.footer-columns{
  width:100%;
  display:grid;
  grid-template-columns:minmax(330px,1.25fr) minmax(180px,.75fr);
  gap:clamp(68px,7vw,118px);
  align-items:start;
}
.footer-block h3{
  margin:0 0 28px;
  color:#fff;
  font-size:17px;
  line-height:1;
  font-weight:300;
  letter-spacing:.015em;
  text-transform:uppercase;
}
.footer-block p,
.footer-block a{
  color:rgba(255,255,255,.78);
  font-size:15px;
  line-height:1.56;
  font-weight:300;
}
.footer-block p{margin:0 0 22px}
.footer-block a{
  display:block;
  width:max-content;
  margin:0 0 7px;
  transition:transform .28s ease,opacity .28s ease;
}
.footer-block a:hover{
  color:#fff;
  transform:translateX(4px);
  opacity:.86;
}
.footer-social{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
}
.footer-social h3{margin-bottom:18px}
.footer-social a{margin:0}
.footer-phone{
  margin-top:30px!important;
  color:#fff!important;
  font-size:17px!important;
}
.footer-title{
  margin:0 0 26px;
  color:#fff;
  font-size:48px;
  line-height:1;
  font-weight:300;
  letter-spacing:-.035em;
  text-transform:uppercase;
}
.footer-signup-copy{
  max-width:480px;
  margin:0 0 36px;
  color:rgba(255,255,255,.72);
  font-size:15px;
  line-height:1.56;
}
.newsletter{
  width:100%;
  margin:0;
}
.newsletter-row{
  display:grid;
  grid-template-columns:minmax(260px,1fr) auto;
  align-items:end;
  gap:34px;
}
.newsletter input{
  width:100%;
  min-height:42px;
  padding:0 4px 10px;
  color:#fff;
  background:transparent;
  border:0;
  border-bottom:1px solid rgba(191,170,124,.68);
  border-radius:0;
  outline:none;
  font-weight:300;
}
.newsletter input::placeholder{color:rgba(255,255,255,.50)}
.newsletter input:focus{border-bottom-color:#BFAA7C}
.newsletter input.is-invalid{border-bottom-color:#ef8d7d}
.newsletter input.is-valid{border-bottom-color:#8fc7a3}
.newsletter .footer-newsletter-button{
  min-height:38px;
  padding:0 19px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid transparent;
  border-radius:999px;
  color:#173A35;
  background-color:#BFAA7C;
  background-image:linear-gradient(to left,#fff 0 50%,#BFAA7C 50% 100%);
  background-size:205% 100%;
  background-position:100% 0;
  background-repeat:no-repeat;
  font-size:14px;
  font-weight:300;
  cursor:pointer;
  transition:background-position .42s cubic-bezier(.2,.7,.2,1),color .25s ease;
}
.newsletter .footer-newsletter-button:hover{
  color:#173A35;
  background-position:0 0;
}
.field-message{
  min-height:20px;
  margin:12px 0 0;
  color:rgba(255,255,255,.62);
  font-size:12px;
  font-weight:300;
}
.field-message.error{color:#efaa9f}
.field-message.success{color:#9fd0ad}
.footer-bottom{
  width:min(calc(100% - 64px),1260px);
  min-height:68px;
  margin:0 auto;
  border-top:1px solid rgba(191,170,124,.58);
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:28px;
  align-items:center;
  color:rgba(255,255,255,.72);
  font-size:13px;
  font-weight:300;
}
.footer-bottom .footer-legal{
  display:flex;
  gap:24px;
  justify-content:center;
}
.footer-bottom .footer-credit{text-align:right}
.footer-bottom a{
  position:relative;
  display:inline-block;
  color:inherit;
  transition:transform .28s ease,opacity .28s ease;
}
.footer-bottom a:hover{
  transform:translateX(4px);
  opacity:.86;
}
.toast{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:200;
  max-width:min(360px,calc(100% - 48px));
  padding:13px 16px;
  border-radius:12px;
  color:#173A35;
  background:#fff;
  box-shadow:0 20px 52px rgba(8,34,30,.22);
  opacity:0;
  transform:translateY(12px);
  pointer-events:none;
  transition:opacity .25s ease,transform .25s ease;
}
.toast.show{
  opacity:1;
  transform:translateY(0);
}

@media(max-width:1180px){
  .menu-overlay{grid-template-columns:minmax(320px,38vw) 1fr}
  .menu-panel{padding-left:54px;padding-right:54px}
  .menu-panel-logo{left:54px}
  .menu-content{grid-template-columns:1fr .72fr;gap:58px}
  .menu-meta{grid-template-columns:1fr 1fr}
  .menu-meta>div:last-child{display:none}
  .footer-main{min-height:auto;padding:82px 0 68px}
  .footer-columns{grid-template-columns:1fr 1fr;gap:64px 80px}
  .footer-signup{grid-column:1/-1;max-width:680px}
}

@media(max-width:760px){
  .shell-container{width:min(calc(100% - 32px),1680px)}
  .header-inner{min-height:72px}
  .site-header .brand-logo,
  .site-header .brand-logo img{width:58px;height:58px}
  .menu-trigger-lines{min-width:88px;gap:11px}
  .menu-trigger-label{font-size:10px}
  .menu-trigger-bars{flex-basis:36px;width:36px}
  .menu-trigger-bars i:nth-child(1),
  .menu-trigger-bars i:nth-child(3){width:36px}
  .menu-trigger-bars i:nth-child(2){width:23px}
  .menu-trigger-lines:hover .menu-trigger-bars i:nth-child(2){width:36px}
  .menu-overlay{grid-template-columns:1fr}
  .menu-cover{display:none}
  .menu-panel{padding:80px 26px 34px}
  .menu-panel-logo{top:18px;left:22px;width:58px;height:58px}
  .menu-close{top:16px;right:18px}
  .menu-content{grid-template-columns:1fr;gap:40px;margin-top:42px}
  .menu-primary{gap:19px}
  .menu-primary a{font-size:28px}
  .menu-secondary{grid-template-columns:1fr 1fr;gap:26px 24px}
  .menu-meta{grid-template-columns:1fr;gap:20px;margin-top:42px;padding-top:28px}
  .menu-meta>div:nth-child(2),
  .menu-meta>div:last-child{display:none}
  .footer-main{width:min(calc(100% - 32px),1260px);padding:66px 0 54px}
  .footer-columns{grid-template-columns:1fr;gap:48px}
  .footer-signup{grid-column:auto;max-width:none}
  .footer-title{font-size:40px}
  .newsletter-row{grid-template-columns:1fr;gap:24px}
  .newsletter .footer-newsletter-button{width:max-content}
  .footer-bottom{
    width:min(calc(100% - 32px),1260px);
    grid-template-columns:1fr;
    gap:18px;
    padding:24px 0 28px;
  }
  .footer-bottom .footer-legal{
    justify-content:flex-start;
    flex-wrap:wrap;
    gap:12px 20px;
  }
  .footer-bottom .footer-credit{text-align:left}
}

@media(max-width:520px){
  .menu-secondary{grid-template-columns:1fr}
}

@media(prefers-reduced-motion:reduce){
  .menu-cover,
  .menu-panel,
  .menu-trigger-bars i,
  .toast{transition:none!important}
}

/* Ajustes da navegação da plataforma de leilões */
.header-tools{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:24px;
  min-width:0;
}
.header-account{
  display:flex;
  align-items:center;
  gap:10px;
}
.header-auth-link{
  min-height:40px;
  padding:0 17px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(23,58,53,.24);
  border-radius:999px;
  color:#173A35;
  font-size:12px;
  line-height:1;
  font-weight:400;
  white-space:nowrap;
  transition:background-color .25s ease,color .25s ease,border-color .25s ease,transform .25s ease;
}
.header-auth-link:hover{transform:translateY(-1px)}
.header-auth-login:hover{
  border-color:#173A35;
  background:#173A35;
  color:#fff;
}
.header-auth-register{
  border-color:#BFAA7C;
  background:#BFAA7C;
}
.header-auth-register:hover{
  border-color:#173A35;
  background:#173A35;
  color:#fff;
}
.menu-panel{justify-content:center}
.menu-panel .menu-content{
  width:100%;
  margin-top:0;
  grid-template-columns:minmax(300px,1.18fr) minmax(210px,.62fr);
  align-items:center;
}
.menu-panel .menu-secondary{
  padding-top:0;
  align-self:center;
}
.menu-panel .menu-secondary>div{gap:15px}
.menu-panel .menu-secondary a{font-size:17px}

@media(max-width:760px){
  .header-inner{gap:12px}
  .header-tools{gap:12px}
  .header-account{gap:7px}
  .header-auth-link{min-height:36px;padding:0 13px;font-size:11px}
  .menu-panel{justify-content:flex-start}
  .menu-panel .menu-content{grid-template-columns:1fr;gap:38px;margin-top:42px}
  .menu-panel .menu-secondary{align-self:start}
}

@media(max-width:520px){
  .site-header .brand-logo,
  .site-header .brand-logo img{width:50px;height:50px}
  .header-tools{gap:8px}
  .header-auth-link{padding:0 10px;font-size:10px}
  .menu-trigger-lines{min-width:38px;width:38px;gap:0}
  .menu-trigger-label{display:none}
  .menu-trigger-bars{flex-basis:36px}
}

@media(max-width:390px){
  .shell-container{width:min(calc(100% - 24px),1680px)}
  .header-auth-link{padding:0 8px}
}

/* Aviso de cookies */
.cookie-notice[hidden]{display:none!important}
.cookie-notice{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:500;
  padding:18px 24px;
  border-top:1px solid rgba(191,170,124,.42);
  background:rgba(15,43,39,.97);
  box-shadow:0 -18px 45px rgba(8,34,30,.16);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  opacity:0;
  transform:translateY(100%);
  transition:opacity .35s ease,transform .35s cubic-bezier(.2,.7,.2,1);
}
.cookie-notice.is-visible{
  opacity:1;
  transform:translateY(0);
}
.cookie-notice-inner{
  width:min(100%,1260px);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:34px;
}
.cookie-notice-copy{
  min-width:0;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:baseline;
  gap:8px 18px;
}
.cookie-notice-copy strong{
  color:#fff;
  font-size:14px;
  font-weight:500;
  white-space:nowrap;
}
.cookie-notice-copy p{
  margin:0;
  color:rgba(255,255,255,.73);
  font-size:13px;
  font-weight:300;
  line-height:1.6;
}
.cookie-notice-copy a{
  color:#D5C59F;
  text-decoration:underline;
  text-decoration-color:rgba(213,197,159,.52);
  text-underline-offset:3px;
  transition:color .2s ease,text-decoration-color .2s ease;
}
.cookie-notice-copy a:hover{
  color:#fff;
  text-decoration-color:#fff;
}
.cookie-notice-button{
  flex:0 0 auto;
  min-width:112px;
  min-height:42px;
  padding:0 22px;
  border:1px solid #BFAA7C;
  border-radius:999px;
  color:#173A35;
  background:#BFAA7C;
  font:inherit;
  font-size:12px;
  font-weight:500;
  cursor:pointer;
  transition:background-color .22s ease,border-color .22s ease,color .22s ease,transform .22s ease;
}
.cookie-notice-button:hover{
  border-color:#fff;
  background:#fff;
  transform:translateY(-1px);
}
.cookie-notice-button:focus-visible{
  outline:2px solid #fff;
  outline-offset:3px;
}
body.cookie-notice-visible .toast{
  bottom:calc(var(--cookie-notice-height,100px) + 24px);
}

@media(max-width:900px){
  .cookie-notice-copy{
    grid-template-columns:1fr;
    gap:5px;
  }
}

@media(max-width:640px){
  .cookie-notice{
    padding:18px 16px calc(18px + env(safe-area-inset-bottom));
  }
  .cookie-notice-inner{
    align-items:stretch;
    flex-direction:column;
    gap:16px;
  }
  .cookie-notice-copy strong{white-space:normal}
  .cookie-notice-button{
    width:100%;
    min-height:46px;
  }
}

@media(prefers-reduced-motion:reduce){
  .cookie-notice{transition:none!important}
}
