/* =========================
   RESET E CONFIGURAÇÕES GERAIS
   Reset de estilos e configurações base
========================== */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Arial,Helvetica,sans-serif;
}

html,body{
  width:100%;
  min-height:100%;
}

body{
  min-height:100vh;
  display:flex;
  justify-content:center;
  position:relative;
  overflow:hidden;
  background:linear-gradient(180deg,var(--cor-fundo-gradiente-topo) 0%, var(--cor-fundo-gradiente-meio) 45%, var(--cor-fundo-gradiente-baixo) 100%);
}

/* =========================
   FUNDO ANIMADO
========================== */
.bg-stage{
  position:fixed;
  inset:0;
  z-index:0;
  overflow:hidden;
}

.bg-layer{
  position:absolute;
  width:150%;
  height:150%;
  left:-25%;
  top:-25%;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  transform:rotate(5deg);
  transform-origin:center center;
}

.bg-row{
  display:flex;
  width:100%;
  margin-bottom:0;
  animation: slideRow 20s linear infinite;
  flex-wrap:nowrap;
}

.bg-row:nth-child(even){
  margin-left:0;
  animation-direction: reverse;
  animation-duration: 25s;
}

@keyframes slideRow{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

.bg-item{
  width:200px;
  height:260px;
  flex-shrink:0;
  opacity:0.25;
  overflow:hidden;
}

.bg-item img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.bg-overlay{
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
}

/* =========================
   CABEÇALHO
   Logo + lista de serviços lado a lado (padrão)
========================== */
.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:12px;
  gap:8px;
}

.logo{
  width:120px;
  flex:0 0 auto;
  display:block;
}

.servicos{
  list-style:none;
  text-align:left;
  margin:0;
  padding:0;
  flex:1;
}

.servicos li{
  font-size:13px;
  color:var(--cor-texto-principal);
  font-weight:600;
  line-height:1.3;
  margin-bottom:2px;
}

/* =========================
   CONTAINER PRINCIPAL
========================== */
.container{
  position:relative;
  z-index:10;
  width:100%;
  max-width:420px;
  padding:28px 15px 26px;
  text-align:center;
  max-height:100vh;
  overflow-y:auto;
  scrollbar-width:thin;
  scrollbar-color:var(--cor-scrollbar-thumb) var(--cor-scrollbar-track);
}

.container::-webkit-scrollbar{
  width:6px;
}

.container::-webkit-scrollbar-track{
  background:var(--cor-scrollbar-track);
}

.container::-webkit-scrollbar-thumb{
  background:var(--cor-scrollbar-thumb);
  border-radius:3px;
}

/* =========================
   LOGO DO SITE
========================== */
.logo{
  width:180px;
  margin:0 auto 12px;
  display:block;
}

/* =========================
   TÍTULO PRINCIPAL
========================== */
.title{
  font-size:15px;
  color:var(--cor-texto-principal);
  font-weight:700;
  margin-bottom:10px;
  line-height:1.4;
  text-shadow:0 1px 2px rgba(255,255,255,0.10);
}

/* =========================
   RODAPÉ
========================== */
.footer{
  margin-top:18px;
  color:var(--cor-texto-rodape);
  font-size:13px;
  font-weight:700;
  letter-spacing:0.3px;
}

/* =========================
   RESPONSIVO - TABLET (501px até 768px)
========================== */
@media (max-width:768px) and (min-width: 501px){
  .bg-item{
    width:150px;
    height:200px;
  }

  .title{
    font-size:18px;
  }

  .logo{
    width:140px;
  }

  .header{
    justify-content:space-between;
  }

  .servicos{
    text-align:right;
  }
  
  .container{
    max-width:400px;
    padding:24px 14px 24px;
  }
}

/* =========================
   RESPONSIVO - MOBILE (até 500px)
========================== */
@media (max-width:500px){
  .bg-item{
    width:120px;
    height:160px;
  }

  .title{
    font-size:14px;
  }

  .header{
    justify-content:space-between;
  }

  .logo{
    width:165px;
    flex:0 0 auto;
    padding:0;
  }

  .servicos{
    text-align:left;
    flex:1;
  }

  .servicos li{
    font-size:12px;
  }

  .card-sub{
    font-size:10px;
  }
}