/* Hub /servicos/ — diretório comercial */
.servicos-hub {
  --hub-deep: #0a0618;
  --hub-cyan: #72ffff;
  --hub-violet: #8051ff;
  --hub-lavender: #c7c1d9;
  --hub-max: 1120px;
  background: var(--hub-deep);
  color: #efeaf8;
}

.servicos-hub .wrap {
  width: min(100% - 2.5rem, var(--hub-max));
  margin-inline: auto;
}

.servicos-hub .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.servicos-hub .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.servicos-hub .btn:hover { border-color: var(--hub-cyan); color: var(--hub-cyan); }

.servicos-hub .btn.solid {
  background: var(--hub-violet);
  border-color: var(--hub-violet);
  color: #fff;
}

.servicos-hub .btn.solid:hover {
  filter: brightness(1.08);
  color: #fff;
  border-color: var(--hub-violet);
}

.servicos-hub .btn.ghost {
  border-color: rgba(114, 255, 255, 0.35);
  color: var(--hub-cyan);
  background: transparent;
  padding: 0.55rem 0.95rem;
  font-size: 0.8rem;
}

.servicos-hub .btn.ghost:hover {
  background: rgba(114, 255, 255, 0.08);
  color: #fff;
  border-color: var(--hub-cyan);
}

.servicos-hub .btn.tiny {
  padding: 0.5rem 0.85rem;
  font-size: 0.78rem;
}

.hub-hero {
  position: relative;
  padding: 7rem 0 2.75rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 88% 10%, rgba(114, 255, 255, 0.12), transparent 40%),
    radial-gradient(ellipse at 8% 0%, rgba(128, 81, 255, 0.28), transparent 42%),
    linear-gradient(180deg, #16102c 0%, #0a0618 100%);
  border-bottom: 1px solid rgba(114, 255, 255, 0.14);
}

.hub-crumb {
  display: inline-flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: Montserrat, sans-serif;
  font-size: 0.82rem;
}

.hub-crumb a:hover { color: var(--hub-cyan); }

.hub-kicker {
  margin: 0 0 0.65rem;
  color: var(--hub-cyan);
  font-family: Montserrat, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hub-hero h1 {
  margin: 0 0 1rem;
  max-width: 18ch;
  font-family: Poppins, sans-serif;
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

.hub-hero-lead {
  margin: 0 0 1.35rem;
  max-width: 40rem;
  color: rgba(239, 234, 248, 0.92);
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  line-height: 1.6;
}

.hub-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.hub-pillars li {
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(114, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(114, 255, 255, 0.06);
  color: #efeaf8;
  font-family: Montserrat, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hub-pillars strong {
  color: var(--hub-cyan);
  font-weight: 700;
}

.hub-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hub-hero-meta {
  margin: 1.25rem 0 0;
  color: rgba(199, 193, 217, 0.85);
  font-family: Montserrat, sans-serif;
  font-size: 0.82rem;
}

.hub-hero-meta strong { color: #fff; }

/* Filter bar */
.hub-filter {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0.85rem 0;
  background: rgba(10, 6, 24, 0.92);
  border-bottom: 1px solid rgba(114, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hub-filter__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.hub-search {
  flex: 1 1 16rem;
  min-width: 12rem;
  position: relative;
}

.hub-search input {
  width: 100%;
  padding: 0.7rem 0.95rem 0.7rem 2.35rem;
  border: 1px solid rgba(114, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(22, 16, 44, 0.85);
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-size: 0.9rem;
}

.hub-search input::placeholder { color: rgba(199, 193, 217, 0.65); }

.hub-search input:focus {
  outline: none;
  border-color: var(--hub-cyan);
  box-shadow: 0 0 0 2px rgba(114, 255, 255, 0.15);
}

.hub-search__ico {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.95rem;
  height: 0.95rem;
  opacity: 0.7;
  pointer-events: none;
}

.hub-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hub-chip {
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: transparent;
  color: rgba(239, 234, 248, 0.88);
  font-family: Montserrat, sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.hub-chip:hover { border-color: rgba(114, 255, 255, 0.4); color: #fff; }

.hub-chip.is-active {
  border-color: var(--hub-cyan);
  background: rgba(114, 255, 255, 0.12);
  color: var(--hub-cyan);
}

.hub-filter__count {
  margin-left: auto;
  color: var(--hub-lavender);
  font-family: Montserrat, sans-serif;
  font-size: 0.78rem;
  white-space: nowrap;
}

.hub-filter__count strong { color: #fff; }

.hub-section {
  padding: 3.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hub-section.is-hidden { display: none; }

.hub-section--alt {
  background:
    radial-gradient(ellipse at 12% 0%, rgba(128, 81, 255, 0.14), transparent 44%),
    linear-gradient(180deg, #120c24 0%, #0a0618 100%);
}

.hub-section--soft {
  background: linear-gradient(180deg, #100a20 0%, #0c0818 100%);
}

.hub-section--cta {
  background:
    radial-gradient(circle at 70% 30%, rgba(114, 255, 255, 0.12), transparent 42%),
    linear-gradient(160deg, #1a1234 0%, #0a0618 70%);
}

.hub-section-head {
  max-width: 42rem;
  margin-bottom: 1.5rem;
}

.hub-section-head h2 {
  margin: 0 0 0.65rem;
  font-family: Poppins, sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  color: #fff;
}

.hub-section-head .lede {
  margin: 0;
  color: var(--hub-lavender);
  font-size: 1.02rem;
  line-height: 1.65;
}

/* Featured commercial cards */
.hub-featured {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.hub-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.35rem 1.3rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(114, 255, 255, 0.18);
  background: linear-gradient(155deg, rgba(70, 44, 140, 0.32), rgba(16, 12, 34, 0.94));
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.hub-card:hover {
  border-color: rgba(114, 255, 255, 0.42);
  transform: translateY(-2px);
}

.hub-card.is-hidden { display: none; }

.hub-card--spotlight {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 1rem 1.5rem;
  align-items: end;
  padding: 1.6rem 1.5rem;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(114, 255, 255, 0.12), transparent 45%),
    linear-gradient(145deg, rgba(90, 55, 170, 0.4), rgba(14, 10, 30, 0.95));
  border-color: rgba(114, 255, 255, 0.28);
}

.hub-card__tag {
  margin: 0;
  color: var(--hub-cyan);
  font-family: Montserrat, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hub-card__title {
  margin: 0;
  color: #fff;
  font-family: Poppins, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
}

.hub-card--spotlight .hub-card__title {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
}

.hub-card__outcome {
  margin: 0;
  color: var(--hub-lavender);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 46rem;
}

.hub-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.hub-card--spotlight .hub-card__actions {
  justify-content: flex-end;
  align-self: end;
}

/* Directory rows for other groups */
.hub-dir {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hub-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem 1.25rem;
  align-items: center;
  padding: 1.05rem 1.15rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.hub-row:hover {
  border-color: rgba(114, 255, 255, 0.28);
  background: rgba(114, 255, 255, 0.04);
}

.hub-row.is-hidden { display: none; }

.hub-row__title {
  margin: 0 0 0.25rem;
  color: #fff;
  font-family: Poppins, sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
}

.hub-row__outcome {
  margin: 0;
  color: var(--hub-lavender);
  font-size: 0.9rem;
  line-height: 1.5;
}

.hub-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.hub-empty {
  display: none;
  margin: 2rem auto;
  max-width: 28rem;
  text-align: center;
  color: var(--hub-lavender);
}

.hub-empty.is-visible { display: block; }

.hub-empty p { margin: 0 0 1rem; line-height: 1.55; }

@media (max-width: 820px) {
  .hub-featured { grid-template-columns: 1fr; }
  .hub-card--spotlight {
    grid-template-columns: 1fr;
  }
  .hub-card--spotlight .hub-card__actions {
    justify-content: flex-start;
  }
  .hub-row {
    grid-template-columns: 1fr;
  }
  .hub-row__actions { justify-content: flex-start; }
  .hub-filter__count { margin-left: 0; width: 100%; }
}

@media (max-width: 720px) {
  .hub-hero { padding: 5.5rem 0 2.25rem; }
  .hub-hero h1 { max-width: none; }
  .hub-section { padding: 2.75rem 0; }
}
