/* public/css/fm/route-hub.css
 *
 * Layout da rota /hub-de-startups reconstruída (fatia 3). React-pura sobre o
 * PageShell, composta dos oficiais (fm-filterbar, fm-card, fm-chip, fm-badge,
 * fm-button). Só layout aqui; estilo de componente nos fm/<componente>.css.
 */

/* —— hero escuro (imagem + scrim) full-screen —— */
.fm-hub-hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--fm-white);
  border-radius: var(--fm-radius-screen) var(--fm-radius-screen) 0 0;
  padding: var(--fm-space-16) var(--fm-space-6);
}
.fm-hub-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.fm-hub-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(1, 18, 34, 0.55), rgba(1, 18, 34, 0.85));
}
.fm-hub-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--fm-space-4);
  max-width: 46rem;
}
.fm-hub-hero-inner .fm-display {
  color: var(--fm-white);
}

/* —— intro: section branca CENTRALIZADA que sobrepõe o hero (= .section_intro_startups
   do skin: radius 6rem + margin-top -6rem). Texto empilhado + stats em cards. —— */
.fm-hub-intro {
  position: relative;
  z-index: 1;
  margin-top: calc(-1 * var(--fm-radius-screen)); /* overlap c/ o hero (revela nos cantos) */
  background: var(--fm-white);
  border-top-left-radius: var(--fm-radius-screen);
  border-top-right-radius: var(--fm-radius-screen);
  padding: var(--fm-space-24) var(--fm-space-6) var(--fm-space-16);
  text-align: center;
}
.fm-hub-intro-inner {
  box-sizing: border-box;
  max-width: var(--fm-max-width);
  margin: 0 auto;
}
.fm-hub-intro-title {
  margin: 0 auto;
  max-width: 52rem;
  font-family: var(--fm-font-display); /* Oswald = .heading-h2 */
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  color: var(--fm-navy);
}
.fm-hub-intro-sub {
  margin: var(--fm-space-6) auto 0;
  max-width: 46rem;
  color: var(--fm-gray-500);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* —— stats: 3 cards numa linha (= .home-stats-grid-right + .features-overview-card-small) —— */
.fm-hub-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--fm-space-4);
  margin-top: var(--fm-space-16); /* = margin-top 4rem do skin */
}
.fm-hub-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--fm-space-1);
  background: var(--fm-surface); /* #f8f8f8 */
  border-radius: var(--fm-radius-lg); /* 2rem */
  padding: var(--fm-space-12); /* 3rem */
}
.fm-hub-stat-num {
  font-family: var(--fm-font-display); /* Oswald = .heading-h2 */
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--fm-navy); /* escuro, não teal */
}
.fm-hub-stat-label {
  font-family: var(--fm-font-body); /* = .text-meta */
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--fm-navy);
}
.fm-hub-stat-sub {
  font-family: var(--fm-font-body);
  font-size: 0.95rem;
  color: var(--fm-gray-300);
}
@media (max-width: 767px) {
  .fm-hub-stats {
    grid-template-columns: 1fr;
  }
}

/* —— seção do diretório (busca/filtro/grid) —— */
.fm-hub-section {
  box-sizing: border-box;
  max-width: var(--fm-max-width);
  margin: 0 auto;
  padding: 0 var(--fm-space-6) var(--fm-space-24);
}
.fm-hub-list {
  display: flex;
  flex-direction: column;
  gap: var(--fm-space-8);
}
/* searchbar centralizada, mais larga e em pílula (convidativa) + contador centralizado.
   width:100% é necessário: margin-inline:auto num flex item encolheria pro conteúdo. */
.fm-hub-section .fm-filterbar-search,
.fm-hub-section .fm-searchbar {
  width: 100%;
  max-width: 44rem;
  margin-inline: auto;
}
.fm-hub-count {
  color: var(--fm-gray-300);
  margin: 0;
  text-align: center;
}
.fm-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: var(--fm-space-6);
}
.fm-hub-empty {
  color: var(--fm-gray-500);
}
/* logo de startup: band compacto de 50px (= .container_logo da home), esquerda,
   cinza — sobrescreve o bloco 3:2 de imagem do .fm-card-media */
.fm-hub-grid .fm-card-media {
  aspect-ratio: auto;
  background: transparent;
  overflow: visible;
  padding: var(--fm-space-6) var(--fm-space-6) 0;
}
.fm-hub-grid .fm-card-media img {
  height: 50px;
  width: auto;
  max-width: 60%;
  object-fit: contain;
  object-position: left center;
  filter: grayscale(1);
}
.fm-hub-desc {
  margin: 0;
  color: var(--fm-gray-500);
  font-size: 0.95rem;
  line-height: 1.5;
}
.fm-hub-site {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--fm-gray-100);
  color: var(--fm-navy);
}
.fm-hub-site:hover {
  background: var(--fm-teal);
  border-color: var(--fm-teal);
  color: var(--fm-white);
}
.fm-hub-loadmore {
  display: flex;
  justify-content: center;
  padding-top: var(--fm-space-4);
}
