/* ========================================
   RENOVA — Serviços Page Styles
   ======================================== */

/* === SERVICES GRID === */
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-8);
}

/* === SERVICE CARD === */
.servico-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  border: 1px solid var(--color-border-light);
  display: flex;
  flex-direction: column;
}

.servico-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

/* Image Wrapper */
.servico-card__image-wrapper {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.servico-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.servico-card:hover .servico-card__image {
  transform: scale(1.08);
}

.servico-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 31, 63, 0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: var(--space-4);
  pointer-events: none;
}

.servico-card__number {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
  color: rgba(255, 255, 255, 0.3);
  line-height: 1;
}

/* Body */
.servico-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.servico-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--gradient-glow);
  border: 1px solid rgba(37, 99, 235, 0.15);
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  transition: all var(--transition-base);
}

.servico-card:hover .servico-card__icon {
  background: var(--gradient-accent);
  color: #fff;
  transform: scale(1.1);
}

.servico-card__icon svg {
  width: 22px;
  height: 22px;
}

.servico-card__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
  line-height: var(--leading-tight);
}

.servico-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  flex: 1;
}

.servico-card .card__link {
  margin-top: auto;
}

/* === CTA SECTION === */
.servicos-cta {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.servicos-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.servicos-cta::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.servicos-cta__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.servicos-cta__title {
  font-size: var(--text-3xl);
  font-weight: var(--weight-extrabold);
  color: #fff;
  margin-bottom: var(--space-4);
}

.servicos-cta__text {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-8);
  line-height: var(--leading-relaxed);
}

.servicos-cta__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* === RESPONSIVE === */
@media (max-width: 479px) {
  .servicos-grid {
    grid-template-columns: 1fr;
  }

  .servicos-cta__buttons {
    flex-direction: column;
  }

  .servicos-cta__buttons .btn {
    width: 100%;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .servicos-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .servicos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .servicos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1280px) {
  .servicos-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }

  .servico-card__image-wrapper {
    height: 180px;
  }
}

/* Links "Saiba mais" + "Solicitar Orçamento" no rodapé do card */
.servico-card__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  margin-top: auto;
}
