/* Complete redesign matching the template and homepage styles */

/* Service Hero Section */
.service-hero {
  padding: 140px 0 80px;
  text-align: center;
  background: var(--bg-primary);
  position: relative;
}

.service-hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.service-hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* Gradient text effect matching template */
.service-hero-content h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.service-hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Button styles matching homepage with proper gradients */
.service-hero-buttons .btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.service-hero-buttons .btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.service-hero-buttons .btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.service-hero-buttons .btn-secondary:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* Service Features Section */
.service-features {
  padding: 80px 0;
  background: var(--bg-primary);
}

.service-section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3.5rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* Fixed grid layout with proper card alignment */
.service-features-grid {
  display: grid;
  /* Updated to 3 columns for symmetric 3x2 grid layout with 6 cards */
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Card styling matching template with borders and shadows */
.service-feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Only color change on hover, no transform animation */
.service-feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

/* Icon styling with proper size and color */
.service-feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  display: inline-block;
  color: var(--primary);
}

.service-feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}

.service-feature-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Service Steps Section */
.service-steps {
  padding: 80px 0;
  background: var(--bg-secondary);
}

/* Fixed grid layout for steps */
.service-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* Step card styling matching template */
.service-step-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  padding-top: 3rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  text-align: center;
  height: 100%;
}

.service-step-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

/* Numbered badge matching template design */
.service-step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  box-shadow: var(--shadow-md);
}

.service-step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}

.service-step-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Service CTA Section */
.service-cta {
  padding: 80px 0;
  background: var(--bg-primary);
}

.service-cta-content {
  text-align: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 4rem 2.5rem;
  box-shadow: var(--shadow-sm);
}

.service-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.service-cta p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

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

/* CTA button styles matching homepage */
.service-cta-buttons .btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.service-cta-buttons .btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.service-cta-buttons .btn-secondary {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.service-cta-buttons .btn-secondary:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* Service Industries Section */
.service-industries {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.service-section-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.service-industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-industry-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

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

.service-industry-card iconify-icon {
  color: var(--primary);
}

.service-industry-card h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.service-industry-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Service Related Section - Reduced padding and made more compact */
.service-related {
  padding: 60px 0;
  background: var(--bg-primary);
}

.service-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.service-related-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

/* Added proper icon styling with color */
.service-related-icon {
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.service-related-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.service-related-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1rem;
  margin: 0;
  flex-grow: 1;
}

.service-related-link {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s ease;
}

.service-related-card:hover .service-related-link {
  gap: 0.75rem;
}

/* Responsive Design */
@media (max-width: 968px) {
  .service-hero {
    padding: 120px 0 60px;
  }

  .service-hero-content h1 {
    font-size: 2.5rem;
  }

  .service-hero-description {
    font-size: 1.125rem;
  }

  .service-section-title,
  .service-cta h2 {
    font-size: 2rem;
  }

  .service-features-grid,
  .service-steps-grid {
    /* 2 columns on tablet for better layout */
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .service-industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-cta-content {
    padding: 3rem 2rem;
  }

  /* Responsive layout for related services on tablet */
  .service-related-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .service-hero {
    padding: 100px 0 50px;
  }

  .service-hero-content h1 {
    font-size: 2rem;
  }

  .service-hero-description {
    font-size: 1rem;
  }

  .service-section-title,
  .service-cta h2 {
    font-size: 1.75rem;
  }

  .service-cta p {
    font-size: 1rem;
  }

  .service-hero-buttons,
  .service-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .service-hero-buttons .btn,
  .service-cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  .service-cta-content {
    padding: 2.5rem 1.5rem;
  }

  .service-feature-card,
  .service-step-card {
    padding: 1.5rem;
  }

  .service-features-grid,
  .service-steps-grid {
    /* Single column on mobile */
    grid-template-columns: 1fr;
  }

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

  /* Single column layout for related services on mobile */
  .service-related-grid {
    grid-template-columns: 1fr;
  }

  .service-related-card {
    padding: 2rem;
  }
}
