/* ======================    SERVICES SECTION ====================== */
.services-overview {
  background: var(--background-color--dark);
  color: var(--color-white);
  text-align: center;
  padding: 2rem 1rem;
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .services-overview {
    padding: 1.5rem 0.5rem;
  }
}

.services-tagline {
  font-size: 1.25rem;
  max-width: 900px;
  margin: 0 auto 2rem;
  font-weight: 400;
  line-height: 1.8;
  font-style: italic;
}

@media (max-width: 992px) {
  .services-tagline {
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .services-tagline {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .services-tagline {
    font-size: 1rem;
    line-height: 1.5;
  }
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem;
  align-items: center;
  gap: 0.75rem;
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden;
}

/* Each service item */
.service-item {
  font-weight: 500;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  padding: 0.25rem 0.75rem;
  position: relative;
  text-decoration: none;
  color: inherit;
  border-radius: 1.5rem;
  background-color: rgba(255, 255, 255, 0);
  transition: background-color 0.2s ease;
  max-width: 100%;
  word-break: break-word;
  text-align: center;
}

@media (max-width: 768px) {
  .service-item {
    font-size: clamp(0.85rem, 2vw, 1rem);
    padding: 0.2rem 0.6rem;
  }
}

/* Pipe separator - now placed between items */
.service-separator {
  color: var(--color-white);
  opacity: 0.5;
  font-size: 1rem;
  padding: 0 0.25rem;
}

/* For small screens, change layout to vertical */
@media (max-width: 768px) {
  .services-container {
    flex-direction: column;
    gap: 0.5rem;
  }

  .service-separator {
    display: none; /* Hide separators in vertical layout */
  }
}

/* CTA Button */
.services-cta {
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .services-cta {
    margin-top: 1.5rem;
  }
}

.services-cta .btn-primary {
  text-decoration: none;
  padding: 0.75rem 1.8rem;
  background-color: var(--btn-bg);
  color: var(--btn-text);
  border: 1px solid var(--btn-border);
  border-radius: var(--btn-radius);
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: var(--btn-shadow);
  display: inline-block;
}

.services-cta .btn-primary:hover {
  background-color: var(--btn-hover-bg);
  color: var(--btn-hover-text);
  transform: translateY(-2px);
  box-shadow: var(--btn-hover-shadow);
}

@media (max-width: 480px) {
  .services-cta .btn-primary {
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* Landscape mode optimization */
@media (max-height: 500px) and (orientation: landscape) {
  .services-overview {
    padding: 1rem 0.5rem;
  }

  .services-tagline {
    margin-bottom: 1rem;
  }

  .services-cta {
    margin-top: 1rem;
  }

  .services-container {
    padding: 0.5rem 0;
  }
}

/* Safety net for entire page */
body {
  overflow-x: hidden;
}
