/* in-depth-services.css */

.in-depth-services {
  padding: 5rem 0;
}

.in-depth-services__header {
  text-align: center;
  margin-bottom: 4rem;
}

.in-depth-services__header h2 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.in-depth-services__header p {
  font-size: 1.125rem;
  color: var(--clr-text);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

.in-depth-services__grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.service-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.service-item--visible {
  opacity: 1;
  transform: translateY(0);
}

.service-item__image {
  flex: 1 1 300px;
}

.service-item__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

.service-item__content {
  flex: 1 1 450px;
}

.service-item__content h3 {
  font-size: 1.875rem;
  margin-bottom: 1rem;
  color: var(--clr-primary);
  font-weight: 600;
}

.service-item__content p {
  margin-bottom: 1rem;
  line-height: 1.65;
  color: var(--clr-text);
}

/* Alternate layout */
.service-item--right {
  flex-direction: row-reverse;
}

/* Responsive */
@media (max-width: 992px) {
  .service-item,
  .service-item--right {
    flex-direction: column;
  }

  .service-item__image,
  .service-item__content {
    flex: 1 1 100%;
  }
}
