/* ============================================
   SERVICES PAGE STYLES - Naved Infratech
   ============================================ */

/* Services Hero Section */
.services-hero {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  padding: 8rem 2rem 4rem;
  margin-top: 70px;
  position: relative;
  overflow: hidden;
}

.services-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    );
}

.services-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.services-hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--white);
  margin-bottom: 1rem;
  font-weight: 900;
}

.services-hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  line-height: 1.6;
}

/* Services Introduction */
.services-intro {
  padding: 4rem 0 2rem;
  background: var(--white);
}

.intro-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.intro-content h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.intro-content p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-gray);
}

/* Services Main Section */
.services-main {
  padding: 3rem 0 6rem;
  background: var(--white);
}

/* Featured Service - Diaphragm Wall */
.service-detailed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
  padding: 3rem;
  background: var(--light-bg);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-light);
}

.service-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.service-detailed-content h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.service-lead {
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.service-detailed-content p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-gray);
  margin-bottom: 1.25rem;
}

.service-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feature-icon {
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.feature-item span:last-child {
  color: var(--text-dark);
  font-weight: 500;
}

.service-detailed-image {
  position: relative;
}

.service-detailed-image .image-placeholder {
  background: var(--white);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border-light);
}

.service-detailed-image .placeholder-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
}

.service-detailed-image .image-placeholder p {
  color: var(--text-gray);
  font-weight: 600;
  font-size: 1.125rem;
}

/* Services Grid - Other Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

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

.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  transform: translateY(-8px);
}

.service-card-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.service-card h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: rgba(0, 102, 204, 0.08);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Services Benefits Section */
.services-benefits {
  padding: 6rem 0;
  background: var(--light-bg);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.benefit-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.benefit-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.benefit-card h4 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.benefit-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-gray);
}

/* Services CTA Section */
.services-cta {
  padding: 5rem 0;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  position: relative;
  overflow: hidden;
}

.services-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    );
}

.services-cta .cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.services-cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.services-cta p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
}

.services-cta .cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.services-cta .btn-primary {
  background: var(--white);
  color: var(--primary);
}

.services-cta .btn-primary:hover {
  background: var(--light-bg);
  color: var(--primary-dark);
}

.services-cta .btn-secondary {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.services-cta .btn-secondary:hover {
  background: var(--white);
  color: var(--primary);
}

/* Responsive Design */
@media (max-width: 968px) {
  .services-hero {
    padding: 6rem 2rem 3rem;
  }

  .service-detailed {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-features {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .services-cta .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .services-cta .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 640px) {
  .services-hero {
    padding: 5rem 1.5rem 2.5rem;
  }

  .services-intro,
  .services-main,
  .services-benefits,
  .services-cta {
    padding: 4rem 0;
  }

  .service-detailed {
    margin-bottom: 3rem;
  }

  .service-detailed-content h2 {
    font-size: 2rem;
  }

  .service-card {
    padding: 2rem;
  }

  .service-card-icon {
    font-size: 3rem;
  }

  .benefit-icon {
    font-size: 2.5rem;
  }
}

/* Smooth Scroll Offset for Anchor Links */
html {
  scroll-padding-top: 100px;
}

/* Animation for service cards on scroll */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card.animate {
  animation: fadeInUp 0.6s ease forwards;
}
