/* Segmentos atendidos (Figma: O Mercanet / Sessão segmentos, 510:4083). */

.segmentos-teaser { padding: 56px 0; }
@media (min-width: 1024px) {
  .segmentos-teaser { padding: 96px 0; }
}

.segmentos-teaser-intro { text-align: center; margin-bottom: 32px; }
.segmentos-teaser-intro .badge { margin-bottom: 20px; }
.segmentos-teaser-intro h2 { max-width: 700px; margin: 0 auto 16px; }
.segmentos-teaser-intro .lead { max-width: 600px; margin: 0 auto; }
@media (min-width: 1024px) {
  .segmentos-teaser-intro { margin-bottom: 48px; }
}

.segmentos-teaser-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  /* Largura máxima igual à do frame no Figma (1142px): é o que faz as
     pills quebrarem exatamente em 4 / 3 / 2 por linha, como no design —
     sem isso, no container de 1280px do tema cabem 4 pills também na
     segunda linha e sobra só 1 na terceira. */
  max-width: 1142px;
  margin-inline: auto;
}

.segmento-pill {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1.05px solid var(--color-border-blue);
  border-radius: 13px;
  padding: 23px 24px;
  background: linear-gradient(160deg, #FFFFFF 8%, #F5F9FF 91%);
  cursor: pointer;
}
@media (max-width: 767px) {
  /* Empilhadas em uma coluna só, a largura de cada pill acompanhava o
     tamanho do próprio texto ("Farmacêutico" bem mais estreita que
     "Utilidades domésticas") e ficava com um visual desalinhado — no
     mobile todas passam a ocupar 100% da largura disponível. */
  .segmento-pill { width: 100%; }
}
.segmento-pill-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 41px;
  height: 41px;
  background: var(--color-orange);
  border-radius: 100px;
  position: relative;
  z-index: 1;
  transition: opacity 200ms ease;
}
.segmento-pill-icon img { width: 18px; height: 18px; }
.segmento-pill-label {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--color-navy);
  white-space: nowrap;
  position: relative;
  z-index: 1;
  transition: opacity 200ms ease;
}

/* Hover/toque: o card enche de laranja da esquerda pra direita e o
   conteúdo troca pra "Veja mais →". :active entra no lugar de :hover
   pra funcionar em toque (mobile) também, não só com mouse — por isso
   "em todas as versões". tabindex no card (render.php) + :focus-visible
   dão o mesmo efeito pra quem navega por teclado. */
.segmento-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 350ms ease;
  z-index: 0;
}
.segmento-pill:hover::before,
.segmento-pill:focus-visible::before,
.segmento-pill:active::before {
  transform: scaleX(1);
}

.segmento-pill:hover .segmento-pill-icon,
.segmento-pill:hover .segmento-pill-label,
.segmento-pill:focus-visible .segmento-pill-icon,
.segmento-pill:focus-visible .segmento-pill-label,
.segmento-pill:active .segmento-pill-icon,
.segmento-pill:active .segmento-pill-label {
  opacity: 0;
}

.segmento-pill-more {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--color-white);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.18px;
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}
.segmento-pill-more img { width: 20px; height: 20px; }
.segmento-pill:hover .segmento-pill-more,
.segmento-pill:focus-visible .segmento-pill-more,
.segmento-pill:active .segmento-pill-more {
  opacity: 1;
}
