/**
 * Ajustes do CMS por cima do tema original (theme.css).
 * theme.css é a cópia fiel do CSS do site oficial — não editar lá.
 */

/*
 * Grade de serviços: o site original mantém todas as fotos na mesma
 * proporção (500x454) porque o CDN dele gerava o recorte. Aqui as imagens
 * são enviadas pelo painel, então travamos a proporção no CSS para que uma
 * foto fora do padrão não deixe a grade irregular.
 *
 * Mesma ideia que o próprio tema já usa nos cards de notícia
 * (`.servs .card-servico-component .img-card`, com height fixo + cover).
 */
.card-servico-component .img-card {
  width: 100%;
  aspect-ratio: 900 / 818;
  -o-object-fit: cover;
  object-fit: cover;
}

/* Nos cards de notícia o tema já define height: 250px — não sobrescrever. */
.servs .card-servico-component .img-card {
  aspect-ratio: auto;
}

/*
 * "Bairros que atendemos": o tema não estiliza os itens, então eles ficavam
 * com o margin-bottom padrão do <p> (16px) + o padding do .p-1, muito soltos.
 * Aqui seguem o mesmo ritmo da lista "Cidades que atendemos" do rodapé
 * (8px entre itens, texto #585858).
 */
.bairrosbox .row > div > p {
  margin-bottom: 0.5rem;
  color: #585858;
  /* o .p-1 do markup é utility do Bootstrap (já vem com !important) */
  padding: 0 !important;
}

/*
 * Topo sem logo cadastrado (Aparência › Topo): mostra o nome do site no
 * lugar da imagem, para o cabeçalho não ficar vazio.
 */
.navbar-logo-texto {
  display: inline-block;
  padding: 0.5rem 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: #003060;
  text-decoration: none;
}

/*
 * Aviso de cookies (LGPD). Estava escrito em classes do Tailwind, que NÃO é
 * carregado no site público — o banner caía sem estilo no fim da página e
 * ninguém o via, então o consentimento nunca era dado e GTM/Pixel jamais
 * carregavam. Aqui vai em CSS próprio, na identidade do tema.
 */
.cms-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  /* acima da barra .contato-component, que é z-index 1000 */
  z-index: 1001;
  padding: 1rem 1.25rem;
  background-color: #fff;
  border-top: 3px solid #003060;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
}
.cms-consent__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.cms-consent__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: #29292a;
  text-align: center;
}
.cms-consent__actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.5rem;
}
.cms-consent__btn {
  padding: 0.5rem 1.25rem;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 6px;
  border: 2px solid #003060;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.cms-consent__btn--recusar {
  background-color: transparent;
  color: #003060;
}
.cms-consent__btn--recusar:hover {
  background-color: rgba(0, 48, 96, 0.08);
}
.cms-consent__btn--aceitar {
  background-color: #003060;
  color: #fff;
}
.cms-consent__btn--aceitar:hover {
  background-color: #1b5299;
  border-color: #1b5299;
}

@media screen and (min-width: 768px) {
  .cms-consent__inner {
    flex-direction: row;
    justify-content: space-between;
  }
  .cms-consent__text {
    text-align: left;
  }
}

/* Abaixo de 576px a .contato-component vira uma barra fixa no rodapé —
   o aviso sobe para não cobri-la. */
@media screen and (max-width: 576px) {
  .cms-consent {
    bottom: 41px;
  }
}

.contato-cidade {
  margin-bottom: 1.5rem;
}

.contato-page .header {
  overflow: hidden;
}

.contato-page .image {
  display: flex;
  align-items: center;
  min-height: 520px;
  background: #f7f8fa;
}

.contato-page .image .img-header {
  height: min(520px, 70vh);
  object-fit: contain;
  object-position: center;
}

.contato-page .content {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.contato-cidade .title {
  margin-bottom: 0.75rem;
  font-size: 30px;
  line-height: 1.1;
  color: #003060;
}

.contato-cidade label {
  margin-bottom: 0.35rem;
  color: #585858;
  font-weight: 700;
}

.contato-cidade .form-control {
  height: 48px;
  border: 1px solid #d6dbe3;
  color: #003060;
  font-weight: 700;
}

.contato-cidade-card {
  margin-top: 0.9rem;
  padding: 1rem;
  border: 1px solid #e5e9ef;
  background: #fff;
}

.contato-cidade-card .cidade {
  display: block;
  color: #585858;
  font-size: 16px;
  font-weight: 700;
}

.contato-cidade-card .numero {
  display: inline-block;
  margin-top: 0.25rem;
  color: #003060;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.contato-cidade-card .acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.contato-cidade-card .btn-contato {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  border-radius: 0;
}

.contato-cidade-card .btn-ligue {
  background: #003060;
}

.contato-cidade-card .btn-whatsapp {
  background: #0e8e11;
}

@media screen and (max-width: 576px) {
  .contato-page .image {
    min-height: 280px;
  }

  .contato-page .image .img-header {
    height: 280px;
  }

  .contato-page .content {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .contato-cidade .title {
    font-size: 24px;
  }

  .contato-cidade-card .numero {
    font-size: 23px;
  }

  .contato-cidade-card .btn-contato {
    width: 100%;
  }
}
