/* ===== HOME | SERVIÇOS ===== */

.svc{
  padding: 80px 0;
  background: #fef9f5;   /* off-white */
}
/* Texto escuro APENAS na seção de serviços */
.svc,
.svc h2,
.svc h3,
.svc p{
  color: #191919;
}

/* Cabeçalho */
.svc__head{
  display: grid;
  grid-template-columns: 1fr 4px 1fr;
  gap: 24px;
  margin-bottom: 28px;
  align-items: center; /* 🔥 ISSO resolve */
}


.svc__eyebrow{
  color: var(--brand);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.svc__title{
  margin-top: 10px;
  font-size: 40px;
  font-weight: 900;
  line-height: 1.1;
}

.svc__divider{
  width: 4px;
  height: 60px;
  background: #191919;
  opacity: .85;
  border-radius: 99px;
  justify-self: center;
}


.svc__head-right{
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  opacity: .9;
  max-width: 520px; /* deixa mais elegante */
}


/* Grid */
.svc__grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

/* Card base */
/* Cards normais (brancos) */
.svc-card{
  grid-column: span 4;
  background: #fef9f5;                 /* branco/offwhite */
  border: 2px solid rgba(25,25,25,.10);
  border-radius: 15px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  color: #191919;                       /* texto preto no card */
}

/* Sombra suave ao redor (efeito borda/radius premium) */
.svc-card{
  box-shadow:
    0 10px 24px rgba(0,0,0,.10),        /* sombra externa */
    0 0 0 1px rgba(0,0,0,.04);          /* “borda” suave */
}

.svc-card:hover{
  transform: translateY(-4px);
  border-color: rgba(204,0,0,.25);
  box-shadow:
    0 16px 34px rgba(0,0,0,.16),
    0 0 0 1px rgba(204,0,0,.10);
}


.svc-card__title{ color: #191919; }
.svc-card__text{ color: rgba(25,25,25,.75); }
.svc-card__link{ color: #191919; font-weight: 800; }
.svc-card__link:hover{ color: var(--brand); }

.svc-card:hover{
  transform: translateY(-4px);
  border-color: rgba(204,0,0,.6);
  background: rgba(255,255,255,.06);
}

/* Imagem */
.svc-card__media{
  display: block;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.svc-card__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 0;
  transition: transform .3s ease;
}

.svc-card:hover .svc-card__media img{
  transform: scale(1.06);
}

/* Escurece a imagem COMPLETA dos cards normais */
.svc-card:not(.svc-card--featured) .svc-card__media::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  pointer-events: none;
}


/* Conteúdo */
.svc-card__body{
  padding: 18px;
}

.svc-card__title{
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 10px;
}

.svc-card__text{
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

.svc-card__link{
  display: inline-block;
  margin-top: 14px;
  font-weight: 800;
}

.svc-card__link:hover{
  color: var(--brand);
}

/* ===== CARD DESTAQUE ===== */

/* Card destaque (mantém escuro e texto branco) */
.svc-card--featured{
  background: #191919;
  border-color: rgba(255,255,255,.12);
  color: #fef9f5;
}

.svc-card--featured .svc-card__overlay-title,
.svc-card--featured .svc-card__badge{
  color: #fef9f5;
}

.svc-card--featured .svc-card__media{
  height: 100%;
  min-height: 100%;
}

.svc-card__overlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.15) 0%,
    rgba(0,0,0,.65) 65%,
    rgba(0,0,0,.85) 100%
  );
}

.svc-card__badge{
  display: inline-block;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(204,0,0,.2);
  border: 1px solid rgba(204,0,0,.4);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}

.svc-card__overlay-title{
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

/* Responsivo */
@media (max-width: 980px){
  .svc__head{
    grid-template-columns: 1fr;
  }

  .svc__divider{
    display: none;
  }

  .svc-card{
    grid-column: span 6;
  }

  .svc-card--featured{
    grid-column: span 12;
  }
}

@media (max-width: 600px){
  .svc-card{
    grid-column: span 12;
  }

  .svc-card__media{
    height: 200px;
  }
  /* Overlay escuro nas imagens dos cards */
  .svc-card__media::after{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.30);
    z-index: 1;
    pointer-events: none;
    }
   .svc-card__media > *:not(img){
    position: relative;
    z-index: 2;
}
}
