/* =============================================
   services.css — Grid bento de serviços + hover reveal
   ============================================= */

#servicos {
  padding: var(--section-pad-v) var(--section-pad-h);
  background: var(--color-primary);
}

.services__container {
  max-width: var(--container-max);
  margin: 0 auto;
}

/* ------ Cabeçalho da seção ------ */
.services__header {
  text-align: center;
  margin-bottom: 2rem;
}

.services__header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: var(--fw-black);
  margin-bottom: .5rem;
}

.services__header p {
  font-size: 1rem;
  color: var(--color-text-muted);
}

/* ------ Grid bento ------ */
/* 375px (base): coluna única */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}

/* ≥768px: 2 colunas */
@media (min-width: 768px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* ≥1024px: 3 colunas + destaque bento no primeiro card */
@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services__grid .card:nth-child(1) {
    grid-column: span 2;
  }
}

/* ------ Card ------ */
.card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin: 0;
  cursor: pointer;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.card:hover img {
  transform: scale(1.05);
}

/* ------ Overlay com hover reveal ------ */
.card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 20, 80, .9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  transform: translateY(100%);
  transition: transform var(--transition-slow);
}

/* Touch: overlay sempre visível (não existe :hover em toque) */
@media (hover: none) {
  .card__overlay {
    transform: translateY(0);
  }
}

/* Mouse: reveal no hover */
.card:hover .card__overlay {
  transform: translateY(0);
}

.card__overlay h3 {
  font-size: 1.125rem;
  font-weight: var(--fw-bold);
  margin-bottom: .25rem;
  color: var(--color-text);
}

.card__overlay p {
  font-size: .875rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}
