/* Manutenção e Peças — assimetria intencional, imagem até a borda direita */

.manutencao-wrap {
  background: var(--bg-section);
}

.manutencao {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-shell);
  box-shadow: var(--shadow-shell-elevated);
  /* Mesma relação cromática do shell de Equipamentos: fundo externo
     --bg-section (.manutencao-wrap) / superfície interna --bg-page (o card). */
  background: var(--bg-page);
  display: flex;
  flex-wrap: wrap;
}

.manutencao__content {
  position: relative;
  z-index: 2;
  /*
    Grid fluida 5/12 (texto) + 7/12 (imagem): flex-basis em proporção exata
    5:7 somando 780px (325+455) preserva o breakpoint de empilhamento já
    existente (a soma dos flex-basis é o que decide o wrap em flex-wrap,
    não os min-width) — 379px e abaixo empilha, 780px e acima fica lado a
    lado nessa razão exata em qualquer largura, pois 325 = 5/12 × 780.
  */
  flex: 5 1 325px;
  min-width: 300px;
  box-sizing: border-box;
  padding: clamp(40px, 6vw, 56px) clamp(24px, 5vw, 56px) clamp(40px, 6vw, 56px) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-page);
}

.manutencao__title {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 380px;
  text-wrap: pretty;
}

.manutencao__text {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-body);
  max-width: 420px;
  text-wrap: pretty;
}

.manutencao__content p.manutencao__text:last-of-type {
  margin-bottom: 26px;
}

.manutencao__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted-accessible); /* contraste WCAG AA (axe-core, 2026-09-29) */
  margin-bottom: 28px;
  max-width: 383px;
}

.manutencao__cta {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 22px;
  border-radius: var(--radius-control);
  background: var(--green);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-cta);
  text-decoration: none;
}

.manutencao__cta:hover {
  background: var(--green-hover);
  color: #FFFFFF;
  text-decoration: none;
}

.manutencao__carousel {
  position: relative;
  flex: 7 1 455px;
  min-width: 280px;
  min-height: clamp(320px, 44vw, 760px);
}

/* Cada slide é um <figure> (imagem + figcaption) que aparece/desaparece
   como uma unidade só — a legenda segue exatamente a mesma transição da
   foto, sem animação própria. */
.manutencao__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 800ms ease;
}

.manutencao__slide[data-active="true"] {
  opacity: 1;
}

.manutencao__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% 42%;
  display: block;
}

/* Micro-label editorial — anotação discreta, não banner/pill */
.manutencao__slide-caption {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-control);
  background: rgba(18, 26, 24, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bg-page);
  white-space: nowrap;
}

.manutencao__slide-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

@media (min-width: 780px) {
  .manutencao__slide-caption {
    top: 24px;
    right: 24px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .manutencao__slide {
    transition: none;
  }
}
