/* ============================ SERVICES ============================ */
.services {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-bottom: clamp(60px, 8vw, 30px);
}

.services__head {
  max-width: 680px;
  margin-bottom: clamp(36px, 5vw, 64px);
  margin-top: clamp(30px, 4vw, 45px);
}

.services__flex {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 20px);
  margin-bottom: 34px;
  align-items: stretch;
}

.services__cta {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

.services__card {
  position: relative;
  padding: clamp(24px, 3vw, 34px) clamp(20px, 2.5vw, 30px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease;
}

.services__card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 0px 8px 30px rgba(34, 197, 94, 0.425);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.services__card--brand {
  background: linear-gradient(
    145deg,
    rgba(34, 197, 94, 0.12),
    rgba(34, 197, 94, 0.02)
  );
  border-color: rgba(34, 197, 94, 0.3);
}

.services__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  margin-bottom: 22px;
}

.services__icon--brand {
  background: rgba(34, 197, 94, 0.16);
  color: var(--brand);
}

.services__icon svg {
  width: 26px;
  height: 26px;
}

/* ---------- Service logos (Crédito / Seguros / Energia) ---------- */
.services__logo-box {
  height: 72px;
  width: fit-content;
  min-width: 72px;
  max-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: transform 0.35s ease;
}

.services__logo-box img {
  max-height: 100%;
  max-width: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

.services__logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.services__logo-group .services__logo-box {
  margin-bottom: 0;
  width: 64px;
  height: 64px;
  min-width: 64px;
}

.services__logo-group .services__logo-box img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.services__card:hover .services__logo-box {
  transform: scale(1.05);
}

@media (max-width: 640px) {
  .services__logo-box {
    height: 60px;
    min-width: 60px;
    max-width: 150px;
  }
  .services__logo-group .services__logo-box {
    width: 52px;
    height: 52px;
    min-width: 52px;
  }
  .services__logo-group .services__logo-box img {
    width: 100%;
    height: 100%;
  }
  .services__logo-group {
    gap: 10px;
  }
}

.services__card h3 {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.services__card p {
  color: var(--text-muted);
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  line-height: 1.55;
  max-width: 44ch;
}

.services__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.services__tags li:hover {
  background: var(--brand);
  color: var(--surface);
  transition:
    background 0.35s ease,
    color 0.35s ease;
}

.services__tags li {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.services_min li {
  font-size: 0.68rem;
}

.services__card--brand .services__tags li {
  color: var(--brand);
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.08);
}

.services__card--brand a {
  height: 44px;
  width: 100%;
  margin-top: 20px;
}

/* ---------- HUB+ expansion animation (replaces the 4 tag buttons) ---------- */
.services__expansion {
  margin-top: 22px;
  padding: 16px 18px 18px;
}

.services__expansion-eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  text-align: center;
}

.services__expansion-caption {
  margin: 8px 0 10px 30px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.services__expansion-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 18px;
}

.services__expansion-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
  background: rgba(34, 197, 94, 0.18);
}

.services__expansion-track::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -30%;
  width: 36%;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    var(--brand) 50%,
    transparent
  );
  animation: expansionFlow 5s ease-in-out infinite;
}

.services__expansion-dot {
  position: relative;
  z-index: 1;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-dim);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.08);
  animation: expansionPulse 5s ease-in-out infinite;
}

.services__expansion-dot:nth-child(1) {
  animation-delay: 0s;
}
.services__expansion-dot:nth-child(2) {
  animation-delay: 0.75s;
}
.services__expansion-dot:nth-child(3) {
  animation-delay: 1.5s;
}
.services__expansion-dot:nth-child(4) {
  animation-delay: 2.25s;
}
.services__expansion-dot:nth-child(5) {
  animation-delay: 3s;
}

@keyframes expansionFlow {
  0% {
    left: -30%;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

@keyframes expansionPulse {
  0%,
  90%,
  100% {
    background: var(--brand-dim);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.08);
  }
  5% {
    background: var(--brand);
    box-shadow:
      0 0 0 5px rgba(34, 197, 94, 0.22),
      0 0 8px 1px var(--brand-glow);
  }
}

@media (prefers-reduced-motion: reduce) {
  .services__expansion-track::after {
    animation: none;
    left: 32%;
    opacity: 0.6;
  }
  .services__expansion-dot {
    animation: none;
  }
}

@media (max-width: 640px) {
  .services__flex {
    grid-template-columns: 1fr;
  }
  .services__soon {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Cards em 2 colunas no desktop é o padrão definido acima */
