/*
 * Services Grid + Page Banner - Hygienize Child
 *
 * O HTML destes componentes replica os blocos Stackable do Starter Site
 * (template-parts/services-grid, service-card e page-banner). O CSS
 * estrutural (colunas, responsividade, hover-effect) vem do proprio
 * Stackable (frontend_blocks.css, carregado por inc/enqueue.php). Aqui ficam
 * apenas os estilos que o Stackable gerava POR BLOCO e injetava na pagina,
 * portados 1:1 (mesmos valores, breakpoints e !important) para as
 * classes-gancho "hyg-*" — assim nao dependem do conteudo de nenhuma pagina.
 *
 * Breakpoints do Stackable: tablet <= 999px, mobile <= 689px.
 */

/* ---- Espacadores ---- */
/* Espacador do topo: originalmente 100px, pensado para respirar embaixo
   do banner do Starter Site (removido). Sem o banner, o cabecalho passou
   a colar direto no espacador, deixando um vao maior que o resto do site
   — reduzido para bater com o espacamento usado logo abaixo do cabecalho
   em outras paginas (ex.: Sobre, ~24px). */
.hyg-services__spacer-top {
  height: 24px !important;
}

.hyg-services__spacer-bottom {
  height: 100px !important;
}

/* ---- Texto de apoio (eyebrow) ---- */
.hyg-services__eyebrow {
  margin-bottom: 15px !important;
}

.hyg-services__eyebrow .stk-block-text__text {
  font-weight: 700 !important;
}

/* ---- Titulo da secao ---- */
.hyg-services__title {
  margin-bottom: 40px !important;
}

.hyg-services__subtitle {
  margin-bottom: 40px !important;
}

/* ---- Linhas de cards ---- */
.hyg-services__row + .hyg-services__row {
  margin-top: 30px;
}

.hyg-services .stk-column {
  top: 0 !important;
}

.hyg-services .stk-column:hover {
  top: -10px !important;
}

/* ---- Card de servico ---- */
.hyg-service-card {
  position: relative;
  margin: 0 !important;
  box-shadow: none !important;
  border-style: solid !important;
  border-color: var(--theme-palette-color-5, #edeff2) !important;
  padding: 70px !important;
}

.hyg-service-card:hover {
  background-color: var(--theme-palette-color-1, #ffcd05) !important;
  box-shadow: 0 20px 80px 0 rgba(17, 24, 39, 0.25) !important;
  border-color: #ffffff !important;
}

.hyg-service-card:hover:before {
  background-color: var(--theme-palette-color-1, #ffcd05) !important;
}

/* Texto e icone ficam brancos no hover, para continuar legivel sobre o
   fundo colorido (a cor padrao deles e escura, pensada para o fundo claro
   do card em repouso). */
.hyg-service-card:hover .stk-block-heading__text,
.hyg-service-card:hover .stk-block-text__text,
.hyg-service-card:hover .stk-button__inner-text {
  color: #ffffff !important;
}

.hyg-service-card:hover .hyg-service-card__icon .stk--svg-wrapper .stk--inner-svg svg:last-child,
.hyg-service-card:hover .hyg-service-card__icon .stk--svg-wrapper .stk--inner-svg svg:last-child :is(g, path, rect, polygon, ellipse) {
  fill: #ffffff !important;
}

/* Icone */
.hyg-service-card__icon {
  margin-bottom: 30px !important;
}

.hyg-service-card__icon .stk--svg-wrapper .stk--inner-svg svg:last-child {
  height: 70px !important;
  width: 70px !important;
}

.hyg-service-card__icon .stk--svg-wrapper .stk--inner-svg svg:last-child,
.hyg-service-card__icon .stk--svg-wrapper .stk--inner-svg svg:last-child :is(g, path, rect, polygon, ellipse) {
  fill: var(--theme-palette-color-4, #0a0500) !important;
}

/* Quando o servico tem imagem destacada, ela ocupa o lugar do icone. */
.hyg-service-card__image {
  display: block;
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
}

/* Titulo (h5) e texto */
.hyg-service-card .stk-block-heading {
  margin-bottom: 20px !important;
}

.hyg-service-card .stk-block-text {
  margin-bottom: 45px !important;
}

/* Card inteiro clicavel ("stretched link"): o link do titulo ganha um
   pseudo-elemento que cobre o card, sem aninhar <a>. O botao fica acima. */
.hyg-service-card > .stk-block-content,
.hyg-service-card .stk-block-heading {
  position: static;
}

.hyg-service-card .stk-block-heading__text a {
  color: inherit;
  text-decoration: none;
}

.hyg-service-card .stk-block-heading__text a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hyg-service-card .stk-block-button-group {
  position: relative;
  z-index: 2;
}

/* Botao (texto simples, sem fundo) */
.hyg-service-card .stk-button {
  padding: 0 !important;
  background: transparent !important;
}

.hyg-service-card .stk-button__inner-text {
  font-size: 18px !important;
  color: var(--theme-palette-color-4, #0a0500) !important;
  font-weight: 700 !important;
}

.hyg-service-card .stk-button:hover:after,
.hyg-service-card.stk-hover-parent:hover .stk-button:after {
  background: transparent !important;
  opacity: 1 !important;
}

/* ---- Banner de pagina ---- */
.hyg-page-banner {
  background-color: #000000 !important;
  padding-top: 300px !important;
  padding-bottom: 150px !important;
  margin-bottom: 0 !important;
}

.hyg-page-banner:before {
  background-color: #000000 !important;
  opacity: 0.7 !important;
}

.hyg-page-banner__column {
  max-width: 900px !important;
  min-width: auto !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

.hyg-page-banner__column .stk-container {
  margin: 0 !important;
}

.hyg-page-banner__title .stk-block-heading__text {
  font-size: 70px !important;
  color: var(--theme-palette-color-8, #ffffff) !important;
}

/* ---- Tablet ---- */
@media screen and (max-width: 999px) {
  .hyg-services__spacer-bottom {
    height: 70px !important;
  }

  .hyg-services__eyebrow {
    margin-bottom: 10px !important;
  }

  .hyg-services__title .stk-block-heading__text {
    font-size: 30px !important;
  }

  .hyg-service-card {
    padding: 50px 30px !important;
  }

  .hyg-service-card__icon .stk--svg-wrapper .stk--inner-svg svg:last-child {
    height: 50px !important;
    width: 50px !important;
  }

  .hyg-service-card__image {
    width: 50px;
    height: 50px;
  }

  .hyg-page-banner {
    padding-top: 250px !important;
    padding-bottom: 100px !important;
  }

  .hyg-page-banner__title .stk-block-heading__text {
    font-size: 40px !important;
  }
}

/* ---- Mobile ---- */
@media screen and (max-width: 689px) {
  .hyg-services__title .stk-block-heading__text {
    font-size: 25px !important;
  }

  .hyg-page-banner__title .stk-block-heading__text {
    font-size: 35px !important;
  }
}
