/*
 * social-proof-gbp.css
 * Card de prova social com rating do Google Business Profile.
 * Usado em /alltec.html (apos "Por que Alltec?") e /contato.html (apos box-contacts).
 *
 * Quando coletarmos reviews proprios no site (formulario interno),
 * este componente pode ser reaproveitado para aggregateRating de
 * SoftwareApplication (RHiD) com schema.org valido. Hoje so e visual.
 */

.box-google-rating {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease;
}

.box-google-rating:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.box-google-rating-header {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #5f6368;
  font-size: 14px;
  font-weight: 500;
}

.box-google-rating-header svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.box-google-rating-stars {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  margin: 8px 0 14px 0;
}

.box-google-rating-stars svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.box-google-rating-text {
  font-size: 22px;
  font-weight: 600;
  color: #151515;
  margin: 0 0 6px 0;
  line-height: 1.25;
}

.box-google-rating-text strong {
  color: var(--color-brand);
  font-weight: 700;
}

.box-google-rating-subtitle {
  font-size: 14px;
  color: #6b6b6b;
  margin: 0 auto 22px auto;
  max-width: 520px;
  line-height: 1.5;
}

.box-google-rating-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.box-google-rating-actions .button {
  /*
   * Width e height fixos sao a unica forma robusta de garantir que os
   * 2 variants (button-primary solido vs button-default-outline-2
   * outline) tenham EXATAMENTE a mesma dimensao visual lado a lado.
   * Tentativas anteriores com align-items: stretch + inline-flex
   * deram alturas ligeiramente diferentes por causa de calculo de
   * baseline/padding intrinseco entre os variants do tema.
   *
   * 56px de altura cobre o conteudo (texto Montserrat 16px line-height
   * 1.34 ~ 21px) + folga simetrica. Padding vertical zerado para a
   * altura ser exatamente 56px (sem somar padding em cima). Border 2px
   * do tema vai pra dentro (box-sizing border-box default Bootstrap).
   */
  box-sizing: border-box;
  width: 280px;
  height: 56px;
  min-width: 0;
  padding-top: 0;
  padding-bottom: 0;
  /*
   * Zera margem porque o tema tem a regra "* + .button { margin-top: 30px }"
   * (style.css linha 11799) — qualquer .button precedido de sibling ganha
   * 30px no topo. O segundo botao do card era o "Avaliar a Alltec", que
   * ficava deslocado 15px pra baixo (30/2 apos align-items: center).
   */
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 575px) {
  .box-google-rating {
    padding: 24px 18px;
  }
  .box-google-rating-stars svg {
    width: 24px;
    height: 24px;
  }
  .box-google-rating-text {
    font-size: 19px;
  }
  .box-google-rating-actions .button {
    width: 100%;
    min-width: 0;
    /* No mobile, deixa altura auto (botoes empilhados sem competicao
       lateral de altura). Restaura padding vertical original do tema. */
    height: auto;
    padding-top: 17px;
    padding-bottom: 15px;
  }
}
