/* =============================================================
   BDA — Segmentos (layout editorial — diferente de Soluções)
   ============================================================= */

.bda-segmentos-section {
  background: #fff;
  padding: 100px 0 100px;
  overflow: hidden;
}

/* Cabeçalho centralizado */
.bda-seg-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 72px;
}

.bda-seg-hero .heading-subtitle {
  color: var(--bda-navy, #003366) !important;
  margin-bottom: 12px;
}

.bda-seg-hero-title {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 600;
  color: var(--bda-navy, #003366);
  line-height: 1.15;
  margin: 0 0 16px;
}

.bda-seg-hero-lead {
  font-size: 1.05rem;
  color: #5a6472;
  line-height: 1.65;
  margin: 0;
}

/* Rótulo de bloco (01 — Indústrias) */
.bda-seg-block {
  margin-bottom: 64px;
}

.bda-seg-block-label {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--bda-navy, #003366);
}

.bda-seg-block-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: #e8ecf0;
  line-height: 1;
  letter-spacing: -0.02em;
}

.bda-seg-block-label h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--bda-navy, #003366);
  margin: 0;
}

.bda-seg-block-label p {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: #6b7785;
  font-weight: 400;
}

/* —— Indústrias: cards — foto em cima, texto embaixo (par sempre junto) —— */
.bda-seg-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.bda-seg-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid #dde2e8;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 51, 102, 0.04);
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}

.bda-seg-card:hover {
  color: inherit;
  border-color: #c5d0dc;
  box-shadow: 0 8px 24px rgba(0, 51, 102, 0.1);
  transform: translateY(-2px);
}

.bda-seg-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.bda-seg-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 34, 68, 0.75) 100%);
}

.bda-seg-card-img-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
}

.bda-seg-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
  border-top: 3px solid var(--bda-navy, #003366);
}

.bda-seg-card-meta {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7785;
  margin-bottom: 6px;
}

.bda-seg-card-body h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--bda-navy, #003366);
  margin: 0 0 8px;
  line-height: 1.3;
}

.bda-seg-card-body p {
  font-size: 0.88rem;
  color: #5a6472;
  line-height: 1.55;
  margin: 0 0 14px;
  flex: 1;
}

.bda-seg-card-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bda-navy, #003366);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap 0.2s;
}

.bda-seg-card:hover .bda-seg-card-cta {
  gap: 10px;
}

.bda-seg-card-cta .bi {
  font-family: bootstrap-icons !important;
  font-size: 0.95rem;
}

/* Divisor entre blocos */
.bda-seg-split {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 56px 0;
  color: #9aa5b1;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bda-seg-split::before,
.bda-seg-split::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #dde2e8;
}

/* —— Departamentos: diretório em 2 colunas —— */
.bda-seg-block--deptos {
  background: linear-gradient(180deg, #f4f6f9 0%, #eef1f5 100%);
  border-radius: 16px;
  padding: 40px 44px 36px;
  margin-bottom: 0;
}

.bda-seg-block--deptos .bda-seg-block-label {
  border-bottom-color: #c5d0dc;
  margin-bottom: 28px;
}

.bda-seg-directory {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  row-gap: 0;
}

.bda-seg-directory li {
  border-bottom: 1px solid #dde2e8;
}

.bda-seg-directory a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 8px 16px 0;
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.2s, background 0.2s;
}

.bda-seg-directory a:hover {
  padding-left: 8px;
  color: inherit;
}

.bda-seg-dir-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: #b0bcc8;
  min-width: 22px;
  font-variant-numeric: tabular-nums;
}

.bda-seg-dir-text {
  flex: 1;
  min-width: 0;
}

.bda-seg-dir-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bda-navy, #003366);
  margin-bottom: 2px;
  line-height: 1.3;
}

.bda-seg-dir-text span {
  display: block;
  font-size: 0.8rem;
  color: #6b7785;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bda-seg-directory a > .bi {
  font-family: bootstrap-icons !important;
  color: #9aa5b1;
  font-size: 1rem;
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
}

.bda-seg-directory a:hover > .bi {
  color: var(--bda-navy, #003366);
  transform: translate(2px, -2px);
}

/* CTA */
.bda-seg-cta-wrap {
  text-align: center;
  margin-top: 56px;
}

.bda-seg-cta-wrap .btn-primary {
  padding: 14px 32px;
  font-weight: 600;
  background-color: var(--bda-navy, #003366) !important;
  border-color: var(--bda-navy, #003366) !important;
}

.bda-seg-cta-wrap .btn-primary:hover {
  background-color: var(--bda-navy-hover, #002244) !important;
  border-color: var(--bda-navy-hover, #002244) !important;
}

/* Responsivo */
@media (max-width: 991.98px) {
  .bda-seg-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .bda-seg-directory {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .bda-seg-block--deptos {
    padding: 28px 20px;
  }
}

@media (max-width: 575.98px) {
  .bda-segmentos-section {
    padding: 70px 0 80px;
  }

  .bda-seg-hero {
    margin-bottom: 48px;
    text-align: left;
  }

  .bda-seg-dir-text span {
    white-space: normal;
  }
}
