/* ==========================================================================
   HM2 FACTORY — DOBRA SERVIÇOS (neutro, V8)
   Seletores: .h2-secao--servicos  e  .view-hm2-lp-servicos
   ========================================================================== */

body:not(.path-admin) .h2-secao--servicos .view-hm2-lp-servicos,
body:not(.path-admin) .view-hm2-lp-servicos {
  background-color: transparent;
}

body:not(.path-admin) .view-hm2-lp-servicos .views-view-responsive-grid {
  justify-content: flex-start;
}
body:not(.path-admin) .h2-secao.text-center .view-hm2-lp-servicos .views-view-responsive-grid {
  justify-content: center;
}
body:not(.path-admin) .h2-secao.text-end .view-hm2-lp-servicos .views-view-responsive-grid {
  justify-content: flex-end;
}

/* Card */
body:not(.path-admin) .view-hm2-lp-servicos .views-view-responsive-grid__item-inner {
  background-color: var(--hm2-surface-light, #f8f9fa);
  border-radius: var(--hm2-border-radius-card, 6px);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

body:not(.path-admin) .view-hm2-lp-servicos .views-view-responsive-grid__item-inner:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
  transform: translateY(-2px);
}

/* Imagem */
body:not(.path-admin) .view-hm2-lp-servicos .views-field-field-servico-imagem {
  flex-shrink: 0;
}

body:not(.path-admin) .view-hm2-lp-servicos .views-field-field-servico-imagem img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* Conteúdo textual */
body:not(.path-admin) .view-hm2-lp-servicos .views-field-title,
body:not(.path-admin) .view-hm2-lp-servicos .views-field-field-servico-descricao {
  padding-inline: 20px;
}

body:not(.path-admin) .view-hm2-lp-servicos .views-field-title {
  padding-top: 18px;
  padding-bottom: 8px;
}

body:not(.path-admin) .view-hm2-lp-servicos .views-field-title .field-content,
body:not(.path-admin) .view-hm2-lp-servicos .views-field-title a {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--hm2-on-surface-title, var(--hm2-color-heading, #1a1a2e));
  text-decoration: none;
  display: block;
  line-height: 1.3;
}

body:not(.path-admin) .view-hm2-lp-servicos .views-field-field-servico-descricao {
  padding-bottom: 20px;
  flex: 1;
}

body:not(.path-admin) .view-hm2-lp-servicos .views-field-field-servico-descricao .field-content {
  font-size: 0.875rem;
  color: var(--hm2-on-surface-muted, #6b7280);
  line-height: 1.6;
}

/* Sem imagem: borda topo primária */
body:not(.path-admin) .view-hm2-lp-servicos .views-view-responsive-grid__item-inner:not(:has(.views-field-field-servico-imagem img)) .views-field-title {
  padding-top: 24px;
  padding-bottom: 10px;
  border-top: 3px solid var(--hm2-on-surface-accent, var(--hm2-color-primary, var(--bs-primary, #0d6efd)));
}

/* Badge / Pill de cobrança */
body:not(.path-admin) .view-hm2-lp-servicos .views-field-field-servico-badge {
  padding: 0 20px 20px;
  text-align: center;
  margin-top: auto;
}

body:not(.path-admin) .view-hm2-lp-servicos .views-field-field-servico-badge .field-content {
  display: inline-block;
  background: var(--hm2-color-primary, var(--bs-primary, #0d6efd));
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* Link "Saiba mais" (views-field-nid, quando exibido no display da view) */
body:not(.path-admin) .view-hm2-lp-servicos .views-field-nid {
  padding: 0 20px 20px;
  text-align: center;
}

body:not(.path-admin) .view-hm2-lp-servicos .views-field-nid a {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hm2-on-surface-accent);
  text-decoration: none;
  border-bottom: 2px solid var(--hm2-on-surface-accent);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

body:not(.path-admin) .view-hm2-lp-servicos .views-field-nid a:hover {
  color: var(--hm2-on-surface-accent-hover);
  border-color: var(--hm2-on-surface-accent-hover);
}

/* Hover com sombra brand-tinted */
body:not(.path-admin) .view-hm2-lp-servicos .views-row {
  border-radius: 16px !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
body:not(.path-admin) .view-hm2-lp-servicos .views-row:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 40px color-mix(in srgb, var(--hm2-color-primary) 18%, transparent) !important;
}

/* Paginação */
body:not(.path-admin) .view-hm2-lp-servicos .pager {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}
