/* SM Serviços — Frontend CSS v1.2.0 */

/* ── FAQ Accordion ──────────────────────────────────────────────────────────── */
.sm-faq-accordion {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.sm-faq-item {
  border: 1px solid #e0d9f5;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.sm-faq-item:hover {
  border-color: #b2a1e8;
}

.sm-faq-item[open] {
  box-shadow: 0 4px 20px rgba(64, 36, 148, 0.1);
  border-color: #402494;
}

.sm-faq-pergunta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  color: #1F0F3D;
  cursor: pointer;
  list-style: none;
  gap: 16px;
  transition: background 0.15s ease, color 0.15s ease;
  user-select: none;
}

.sm-faq-pergunta::-webkit-details-marker { display: none; }
.sm-faq-pergunta::marker { display: none; }

/* Chevron via CSS border — sem dependência de font */
.sm-faq-pergunta::after {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  border-right: 2px solid #402494;
  border-bottom: 2px solid #402494;
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.25s ease, border-color 0.2s ease;
  margin-bottom: 3px;
}

.sm-faq-item[open] .sm-faq-pergunta::after {
  transform: rotate(-135deg);
  margin-bottom: -3px;
  border-color: #402494;
}

.sm-faq-pergunta:hover {
  background: #f5f3fb;
  color: #402494;
}

.sm-faq-item[open] .sm-faq-pergunta {
  background: #edeaf5;
  color: #402494;
}

.sm-faq-resposta {
  padding: 0 22px 18px;
  color: #333;
  font-size: 15.5px;
  line-height: 1.75;
  border-top: 1px solid #e0d9f5;
}

.sm-faq-resposta p { margin: 12px 0 0; }
.sm-faq-resposta p:last-child { margin-bottom: 0; }

@media (max-width: 478px) {
  .sm-faq-pergunta {
    padding: 14px 16px;
    font-size: 14.5px;
  }
  .sm-faq-resposta {
    padding: 0 16px 14px;
    font-size: 14.5px;
  }
}

/* ── Grid de Serviços [sm_servicos] ─────────────────────────────────────────── */
.sm-servicos-grid {
  display: grid;
  gap: 28px;
  width: 100%;
}

.sm-servicos-cols-1 { grid-template-columns: 1fr; }
.sm-servicos-cols-2 { grid-template-columns: repeat(2, 1fr); }
.sm-servicos-cols-3 { grid-template-columns: repeat(3, 1fr); }
.sm-servicos-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .sm-servicos-cols-2,
  .sm-servicos-cols-3,
  .sm-servicos-cols-4 { grid-template-columns: 1fr; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .sm-servicos-cols-3,
  .sm-servicos-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

.sm-servico-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sm-servico-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.sm-servico-destaque { border: 2px solid #402494; }

.sm-servico-card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.sm-servico-card-icone {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f6ff;
}

.sm-servico-card-icone .dashicons {
  font-size: 48px;
  width: 48px;
  height: 48px;
  color: #402494;
}

.sm-servico-card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sm-servico-card-titulo {
  font-size: 19px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.sm-servico-card-titulo a { color: #1F0F3D; text-decoration: none; }
.sm-servico-card-titulo a:hover { color: #402494; }

.sm-servico-card-texto {
  color: #555;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.sm-servico-card-link {
  display: inline-block;
  margin-top: auto;
  padding: 10px 20px;
  background: #402494;
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s ease;
  align-self: flex-start;
}

.sm-servico-card-link:hover { background: #532fc1; }
