/* Serviços (guia): cards abaixo de "Como trabalhamos". Tokens do site. */
.sg {
  margin-top: 96px;
  padding: 72px 0 80px;
  background: #FFF6DA;
  color: #0B0B0B;
  /* o header fixo (77px) não pode cobrir o título no salto pra #servicos-guia */
  scroll-margin-top: 77px;
}
.sg__head { text-align: center; }
.sg .h-lg { line-height: 1.15; color: #0B0B0B; }
.sg__sub {
  margin: 16px auto 0;
  max-width: 640px;
  font-size: 20px;
  line-height: 1.55;
  color: #5D5D5D;
}
.sg__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.sg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 22px 22px 20px;
  background: #fff;
  border: 1.5px solid rgba(184, 186, 191, .5);
  border-radius: 22px;
  box-shadow: 0 8px 28px rgba(11, 11, 11, .06);
  transition: transform .18s ease, border-color .18s ease;
}
.sg-card:hover { transform: translateY(-3px); border-color: #FEB704; }
.sg-card:focus-within { outline: 3px solid #FEB704; outline-offset: 3px; }
.sg-card__ico {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  background: #FFF6DA;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.sg-card__ico img {
  width: 84px;
  height: 84px;
  max-width: 100%;
  object-fit: contain;
}
.sg-card h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.2px;
  color: #0B0B0B;
}
.sg-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: #5D5D5D;
  flex: 1;
}
.sg-card__go {
  font-size: 14px;
  font-weight: 600;
  color: #0B0B0B;
  border-bottom: 2px solid #FEB704;
  padding-bottom: 1px;
}
.sg-card__hit {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  cursor: pointer;
}
.sg-card__hit:focus-visible { outline: none; }

/* pop-up: fundo abaixo do dock do carrinho (z 60), caixa acima dele */
.sg-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(15, 15, 15, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.sg-dialog, .sg-dialog * { box-sizing: border-box; font-family: 'Poppins', system-ui, sans-serif; }
.sg-dialog {
  position: fixed;
  z-index: 80;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100% - 32px));
  max-height: min(88vh, 760px);
  max-height: min(88dvh, 760px);
  overflow: auto;
  background: #fff;
  color: #2B2B2B;
  border-radius: 22px;
  padding: 28px 28px 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}
.sg-dialog:focus { outline: none; }
.sg-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #F3F4F6;
  color: #0B0B0B;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.sg-x:hover { background: #E5E7EB; }
.sg-x:focus-visible, .sg-cta:focus-visible, .sg-ghost:focus-visible {
  outline: 3px solid #0B0B0B;
  outline-offset: 2px;
}
.sg-kicker {
  margin: 0 48px 8px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #4B5563;
}
.sg-dialog h2 {
  margin: 0 40px 10px 0;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  color: #0B0B0B;
  letter-spacing: -.3px;
}
.sg-dialog h2:focus { outline: none; }
.sg-price {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: #ED8B00;
}
.sg-body {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: #2B2B2B;
}
.sg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.sg-cta {
  flex: 1 1 200px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  background: #FEB704;
  color: #0B0B0B;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(254, 183, 4, .35);
}
.sg-cta:hover { background: #E8A600; }
.sg-cta[hidden] { display: none !important; }
.sg-cta.is-on {
  background: #FFF6DA;
  box-shadow: none;
  border: 1.5px solid #FEB704;
}
.sg-ghost {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 0 18px;
  border: 1.5px solid #E5E7EB;
  border-radius: 14px;
  background: #fff;
  color: #2B2B2B;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.sg-ghost:hover { background: #F9FAFB; }
.sg-status {
  min-height: 1.2em;
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #166534;
}
/* Legacy comercial: lista de itens do planeta 4, cada um com o seu botão */
.sg-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.sg-item {
  padding: 14px 16px 16px;
  border: 1.5px solid #E5E7EB;
  border-radius: 16px;
  background: #FFFCF3;
  min-width: 0;
}
.sg-item h3 { margin: 0; font-size: 16.5px; line-height: 1.3; font-weight: 700; color: #0B0B0B; }
.sg-item__price { margin: 4px 0 0; font-size: 15px; font-weight: 700; color: #ED8B00; }
.sg-item__desc { margin: 6px 0 0; font-size: 14.5px; line-height: 1.55; color: #2B2B2B; }
.sg-cta--item { flex: none; width: 100%; min-height: 46px; margin-top: 12px; font-size: 15px; }
.sg-list[hidden] { display: none; }
html.sg-lock { overflow: hidden; }

@media (max-width: 1100px) {
  .sg__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1020px) and (min-width: 768px) {
  /* header com altura automática (69px medidos com a fonte carregada) */
  .sg { scroll-margin-top: 69px; }
}
@media (max-width: 767px) {
  .sg { scroll-margin-top: 81px; }
}
@media (max-width: 700px) {
  .sg { margin-top: 56px; padding: 48px 0 56px; scroll-margin-top: 81px; }
  .sg__sub { font-size: 16px; }
  .sg__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 28px; }
  .sg-card h3 { font-size: 18px; }
  .sg-card__go {
    font-weight: 700;
    color: #8C4A00;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    border-bottom: 0;
  }
  .sg-cta { flex: 1 1 100%; }
  .sg-dialog {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    transform: none;
    width: 100%;
    padding: 24px 20px 18px;
    border-radius: 20px 20px 0 0;
    max-height: calc(100dvh - 20px);
  }
  .sg-dialog h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .sg-card { transition: none; }
}
