/* Author: Teja C. */
/* Services page styles — extends style.css */


/* Page header */
#services-header {
  padding: 140px 6% 60px;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.services-header-inner {
  max-width: 680px;
  margin: 0 auto;
}

.page-tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.6rem;
}

#services-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.page-desc {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.8;
}


/* Scroll pop-up animation */
.service-block {
  padding: 60px 6%;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* Alternating background for visual separation */
.service-block-alt {
  background-color: var(--bg-alt);
}

.service-block-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

/* Icon circle */
.service-icon-wrap {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 12px;
  background-color: var(--blue-faint);
  border: 1px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--blue);
}

.service-block-content {
  flex: 1;
}

.service-block-content h2 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.service-intro {
  font-size: 0.93rem;
  color: var(--text-soft);
  line-height: 1.85;
  margin-bottom: 1.2rem;
}

/* Tag pills for each service item */
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-tags span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  background-color: var(--blue-faint);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 5px 12px;
  border-radius: 20px;
  cursor: default;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.service-tags span:hover {
  background-color: var(--blue);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}


/* CTA section */
#services-cta {
  padding: 80px 6%;
  background-color: var(--bg-alt);
  text-align: center;
  border-top: 1px solid var(--border);
}

#services-cta h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 0.75rem;
}

#services-cta p {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-bottom: 2rem;
}


/* Mobile */
@media (max-width: 768px) {

  #services-header {
    padding: 110px 6% 40px;
  }

  .service-block {
    padding: 40px 6%;
  }

  .service-block-inner {
    flex-direction: column;
    gap: 1.5rem;
  }

  .service-icon-wrap {
    width: 52px;
    height: 52px;
    min-width: 52px;
    font-size: 1.3rem;
  }

}