/* ===== SERVIÇOS SECTION ===== */

.servicos-section {
  padding: 5rem 0;
  background: white;
  position: relative;
}

/* Header da Seção */
.servicos-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 400;
  color: #1f2937;
  margin: 0 0 1rem;
  line-height: 1.3;
}

.section-title .highlight {
  font-weight: 800;
  color: #004968;
  display: block;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

/* Grid de Serviços */
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Card de Serviço */
.servico-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.servico-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #004968 0%, #0077aa 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.servico-card:hover::before {
  transform: scaleX(1);
}

.servico-card:hover {
  border-color: #004968;
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 73, 104, 0.15);
}

/* Ícone do Serviço */
.servico-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.25rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.servico-card:hover .servico-icon {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 8px 30px rgba(0, 119, 170, 0.2);
}

.servico-icon img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.servico-card:hover .servico-icon img {
  transform: scale(1.1);
}

/* Conteúdo do Serviço */
.servico-content {
  position: relative;
}

.servico-titulo {
  font-size: 1.15rem;
  font-weight: 700;
  color: #004968;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.servico-card:hover .servico-titulo {
  color: #0077aa;
}

.servico-descricao {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #6b7280;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Loading State */
.servicos-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  min-height: 300px;
}

.servicos-loading .loading-spinner {
  position: relative;
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
}

.servicos-loading .spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top-color: #004968;
  border-radius: 50%;
  animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.servicos-loading .spinner-ring:nth-child(1) {
  animation-delay: -0.3s;
  border-top-color: #004968;
}

.servicos-loading .spinner-ring:nth-child(2) {
  animation-delay: -0.15s;
  border-top-color: #0077aa;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.servicos-loading .loading-text {
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
  margin: 0;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Empty State */
.servicos-empty {
  text-align: center;
  padding: 5rem 2rem;
  color: #6b7280;
}

.servicos-empty i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.3;
  color: #004968;
}

.servicos-empty p {
  font-size: 1.05rem;
  margin: 0;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1400px) {
  .servicos-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 1200px) {
  .servicos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .servicos-section {
    padding: 4rem 0;
  }

  .servicos-header {
    margin-bottom: 3rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .servicos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .servicos-section {
    padding: 3rem 0;
  }

  .servicos-header {
    margin-bottom: 2.5rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .servicos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .servico-card {
    padding: 1.75rem 1.25rem;
  }

  .servico-icon {
    width: 90px;
    height: 90px;
  }

  .servico-icon img {
    width: 60px;
    height: 60px;
  }

  .servico-titulo {
    font-size: 1.05rem;
  }

  .servico-descricao {
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .servicos-section {
    padding: 2.5rem 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .servicos-grid {
    grid-template-columns: 1fr;
  }

  .servico-card {
    padding: 1.75rem 1.25rem;
  }

  .servico-icon {
    width: 90px;
    height: 90px;
  }

  .servico-icon img {
    width: 60px;
    height: 60px;
  }

  .servico-titulo {
    font-size: 1.1rem;
  }

  .servico-descricao {
    font-size: 0.9rem;
  }

  .servicos-empty i {
    font-size: 3rem;
  }
}

/* Animação de entrada dos cards */
.servico-card {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Delay progressivo para cada card */
.servico-card:nth-child(1) {
  animation-delay: 0.1s;
}

.servico-card:nth-child(2) {
  animation-delay: 0.2s;
}

.servico-card:nth-child(3) {
  animation-delay: 0.3s;
}

.servico-card:nth-child(4) {
  animation-delay: 0.4s;
}

.servico-card:nth-child(5) {
  animation-delay: 0.5s;
}

.servico-card:nth-child(6) {
  animation-delay: 0.6s;
}
