/* ============================================================
   B1Hub — camada 2026 (carregada por último)
   1) conteúdo centralizado dentro dos boxes
   2) home com imagens reais (hero, sobre, faixa de contato)
   3) números com contraste legível
   ============================================================ */

/* ---------- 1. BOXES CENTRALIZADOS ---------- */
.card,
.feature-card,
.feature-item,
.af-feature,
.step,
.af-step,
.stat-card,
.stat-block,
.stat-item,
.version-item {
  text-align: center;
}

.card,
.feature-card,
.af-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-icon,
.feature-icon {
  margin-left: auto;
  margin-right: auto;
}

/* botão "Saiba Mais" no pé do card, alinhado entre cards da mesma linha */
.card .btn {
  margin-top: auto !important;
}
.card .card-description {
  margin-bottom: 1.25rem;
}

.feature-card p,
.card-description,
.feature-text {
  max-width: 34ch;
  margin-left: auto;
  margin-right: auto;
}

/* lista de benefícios: vira grade de cards com o check no topo */
.benefits-list li {
  padding: 22px 20px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.benefits-list li::before {
  position: static;
  margin-bottom: 6px;
}
.benefits-list li strong {
  display: block;
  font-family: var(--m-display);
  font-size: 1.02rem;
}
.benefits-list li span {
  display: block;
  color: var(--m-muted);
  font-size: .94rem;
  line-height: 1.55;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* ---------- 2. HOME: HERO COM IMAGEM ---------- */
.hero-grid {
  align-items: center;
}
.hero-image {
  position: relative;
  min-height: 0;
}
.hero-image picture,
.hero-image img {
  display: block;
  width: 100%;
}
.hero-image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(4, 16, 45, .45);
}
.hero-image-tag {
  position: absolute;
  left: -18px;
  bottom: 22px;
  background: #fff;
  color: #14213B;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: .85rem;
  line-height: 1.35;
  box-shadow: 0 12px 30px rgba(4, 16, 45, .25);
  max-width: 230px;
}
.hero-image-tag strong {
  display: block;
  font-family: var(--m-display);
  font-size: 1rem;
  color: var(--primary, #1857C7);
}

/* números do hero sobre fundo azul: cor sólida, sem degradê apagado */
.hero .stat-number {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: #FFC43D;
}
.hero .stat-label {
  color: rgba(255, 255, 255, .85);
}
.hero-stats {
  text-align: center;
}

/* ---------- 2b. HOME: SOBRE COM FOTO ---------- */
.about-image img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius-xl, 20px);
  box-shadow: 0 18px 48px rgba(15, 25, 50, .18);
}

/* ---------- 2c. FAIXA DE CONTATO COM FOTO ---------- */
.cta-lead-photo {
  background:
    linear-gradient(100deg, rgba(8, 29, 74, .94) 0%, rgba(15, 61, 138, .88) 48%, rgba(15, 61, 138, .55) 100%),
    url('../images/b1hub-operacao-tablet.webp') center / cover no-repeat;
}

/* ---------- 4. AJUSTES DE LEITURA ---------- */
/* selo do hero: era azul sobre azul (invisível) */
.hero .hero-badge {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
}
.hero .hero-badge-dot {
  background: #FFC43D;
}

/* versões: linha centralizada, sem item órfão à esquerda */
.versions-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.versions-grid .version-item {
  flex: 0 1 170px;
}

@media (max-width: 680px) {
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .hero .stat-number {
    font-size: 1.7rem;
  }
  .hero .stat-label {
    font-size: .78rem;
  }
  .versions-grid {
    gap: 10px;
  }
  .versions-grid .version-item {
    flex: 0 1 calc(33.333% - 7px);
    padding: 14px 6px;
  }
  .versions-grid .version-number {
    font-size: 1.35rem;
  }
  .versions-grid .version-name {
    font-size: .72rem;
  }
}

/* ---------- 5. SUBPÁGINAS ---------- */
/* título do banner institucional: herdava a cor escura dos h1 e sumia no fundo azul */
.page-header .page-title,
.page-header h1,
.page-header h1.page-title {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.page-header .page-description {
  color: rgba(255, 255, 255, .9);
}
.page-header .breadcrumb,
.page-header .breadcrumb a {
  color: rgba(255, 255, 255, .8);
}

/* banners com foto (page-header institucional e page-hero de conteúdo) */
.page-header-foto,
.page-hero-foto {
  background:
    linear-gradient(100deg, rgba(8, 29, 74, .95) 0%, rgba(15, 61, 138, .86) 55%, rgba(15, 61, 138, .62) 100%),
    var(--hero-foto-g, var(--hero-foto)) center / cover no-repeat;
}
@media (max-width: 680px) {
  .page-header-foto,
  .page-hero-foto {
    background:
      linear-gradient(180deg, rgba(8, 29, 74, .93), rgba(15, 61, 138, .88)),
      var(--hero-foto) center / cover no-repeat;
  }
}

/* foto no lugar dos antigos blocos coloridos */
.about-image {
  position: relative;
}
.section-photo {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius-xl, 20px);
  box-shadow: 0 18px 48px rgba(15, 25, 50, .18);
}
.photo-tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: #fff;
  color: #14213B;
  font-family: var(--m-display, 'Sora', sans-serif);
  font-weight: 700;
  font-size: .92rem;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(4, 16, 45, .25);
}

/* grades de cartões: linha incompleta fica centralizada, sem card órfão à esquerda */
.features-grid,
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.features-grid > *,
.services-grid > * {
  flex: 1 1 300px;
  max-width: 370px;
}
.services-grid > .card {
  max-width: 370px;
}
/* itens sem caixa ("Como trabalhamos"): 4 por linha */
.features-grid > .feature-item {
  flex: 1 1 200px;
  max-width: 280px;
}

/* ---------- 6. BLOG ---------- */
.blog-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.blog-card {
  display: flex;
  flex-direction: column;
}
.blog-card-image {
  display: block;
  height: auto;
  background: #0F3D8A;
  overflow: hidden;
}
.blog-card-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .4s ease;
}
.blog-card:hover .blog-card-image img {
  transform: scale(1.04);
}
.blog-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-title a {
  color: inherit;
  text-decoration: none;
}
.blog-card-title a:hover {
  color: var(--m-primary, #1857C7);
}
.blog-card-meta {
  margin-top: auto;
}

/* matéria em destaque: imagem ao lado do texto */
.blog-destaque {
  margin-bottom: 2.5rem;
}
.blog-card-destaque {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: stretch;
}
.blog-card-destaque .blog-card-image img {
  height: 100%;
  aspect-ratio: auto;
  min-height: 320px;
}
.blog-card-destaque .blog-card-content {
  padding: 2.2rem;
  justify-content: center;
}
.blog-card-destaque .blog-card-title {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-family: var(--m-display, 'Sora', sans-serif);
  line-height: 1.25;
}
.blog-card-destaque .blog-card-meta {
  margin-top: 1rem;
}
.blog-duvida {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.blog-duvida .btn {
  margin-top: 1.4rem;
}

/* página da matéria */
.blog-post-hero h1 {
  max-width: 24ch;
}
.blog-post-categoria {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.blog-post-meta {
  color: rgba(255, 255, 255, .82);
  font-size: .95rem;
  margin: 0;
}
.blog-post-container {
  max-width: 800px !important;
  padding-top: 40px;
  padding-bottom: 56px;
}
.blog-post-capa {
  margin: 0 0 28px;
}
.blog-post-capa img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(15, 25, 50, .14);
}
.blog-post-lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--m-ink, #0E1525);
  margin: 0 0 12px;
}
.blog-post-secao {
  padding-top: 26px;
}
.blog-post-secao h2 {
  font-family: var(--m-display, 'Sora', sans-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.3;
  color: var(--m-ink, #0E1525);
  margin: 0 0 14px;
}
.blog-post-secao h3 {
  font-family: var(--m-display, 'Sora', sans-serif);
  font-size: 1.1rem;
  color: var(--m-ink, #0E1525);
  margin: 22px 0 8px;
}
.blog-post-secao p,
.blog-post-secao li {
  font-size: 1.06rem;
  line-height: 1.8;
  color: var(--m-body, #3a4660);
}
.blog-post-secao p {
  margin: 0 0 16px;
}
.blog-post-secao ul,
.blog-post-secao ol {
  padding-left: 1.3rem;
  margin: 0 0 16px;
}
.blog-post-secao li {
  margin-bottom: 6px;
}
.blog-post-servico {
  margin-top: 40px;
  padding: 26px 28px;
  border-radius: 18px;
  background: var(--m-bg-soft, #f5f7fb);
  border: 1px solid var(--m-line, #e7ebf3);
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.blog-post-servico strong {
  display: block;
  font-family: var(--m-display, 'Sora', sans-serif);
  font-size: 1.1rem;
  color: var(--m-ink, #0E1525);
}
.blog-post-servico span {
  color: var(--m-muted, #6c7891);
}
.blog-post-servico-botoes {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .blog-card-destaque {
    grid-template-columns: 1fr;
  }
  .blog-card-destaque .blog-card-image img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .blog-card-destaque .blog-card-content {
    padding: 1.5rem;
  }
}
@media (max-width: 680px) {
  .blog-post-servico {
    text-align: center;
    justify-content: center;
  }
  .blog-post-servico-botoes {
    justify-content: center;
  }
}

/* ---------- 3. RESPONSIVO ---------- */
@media (max-width: 1024px) {
  .hero-image {
    display: block;
    max-width: 560px;
    margin: 2rem auto 0;
  }
  .hero-image-tag {
    left: 12px;
  }
}
@media (max-width: 680px) {
  .hero-image img {
    aspect-ratio: 16 / 11;
  }
  .hero-image-tag {
    position: static;
    margin: 12px auto 0;
    text-align: center;
  }
  .benefits-list {
    grid-template-columns: 1fr;
  }
  .cta-lead-photo {
    background:
      linear-gradient(180deg, rgba(8, 29, 74, .95), rgba(15, 61, 138, .9)),
      url('../images/b1hub-operacao-tablet-800.webp') center / cover no-repeat;
  }
}
