/* Services Section Styles */
.services-section {
  background-color: var(--background-light);
}

/* Section Header */
.section-header {
  margin-bottom: 3rem;
}

.section-title {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
  justify-items: center;
  max-width: 100%;
}

/* Special layout for 5 services - 3 on top, 2 centered on bottom */
.services-grid .service-card:nth-child(1) {
  grid-column: 1 / 3;
}

.services-grid .service-card:nth-child(2) {
  grid-column: 3 / 5;
}

.services-grid .service-card:nth-child(3) {
  grid-column: 5 / 7;
}

.services-grid .service-card:nth-child(4) {
  grid-column: 2 / 4;
  grid-row: 2;
}

.services-grid .service-card:nth-child(5) {
  grid-column: 4 / 6;
  grid-row: 2;
}

/* Service Card */
.service-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-base);
  border: 1px solid var(--border-light);
  width: 100%;
  max-width: 450px;
  display: flex;
  flex-direction: column;
}

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

/* Service Image */
.service-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--transition-base);
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(43, 92, 230, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--transition-base);
}

.service-card:hover .service-overlay {
  opacity: 1;
}

.service-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-lg);
  padding: 1rem 2rem;
  border: 2px solid var(--white);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.service-link:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

.service-link img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
  transition: all var(--transition-base);
}

.service-link:hover img {
  filter: none;
}

/* Service Content */
.service-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.service-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Service Features */
.service-features {
  list-style: none;
  margin: 0 0 2rem 0;
  padding: 0;
}

.service-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
}

.feature-icon {
  width: 16px;
  height: 16px;
  filter: hue-rotate(200deg);
}

/* Service Actions */
.service-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
}

.service-contact {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-base);
  padding: 0.5rem 0;
}

.service-contact:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Call to Action */
.services-cta {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
  color: var(--white);
}

.cta-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-description {
  font-size: var(--font-size-lg);
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.cta-phone {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-lg);
  transition: all var(--transition-base);
}

.cta-phone:hover {
  opacity: 0.8;
  transform: translateX(5px);
}

.cta-phone img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.cta-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-image img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

/* Responsive Design */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Reset special positioning for smaller screens */
  .services-grid .service-card:nth-child(1),
  .services-grid .service-card:nth-child(2),
  .services-grid .service-card:nth-child(3),
  .services-grid .service-card:nth-child(4),
  .services-grid .service-card:nth-child(5) {
    grid-column: auto;
    grid-row: auto;
    justify-self: center;
    margin-left: 0;
    margin-right: 0;
  }

  .services-cta {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: var(--font-size-3xl);
  }

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

  /* Reset special positioning for mobile */
  .services-grid .service-card:nth-child(1),
  .services-grid .service-card:nth-child(2),
  .services-grid .service-card:nth-child(3),
  .services-grid .service-card:nth-child(4),
  .services-grid .service-card:nth-child(5) {
    grid-column: auto;
    grid-row: auto;
    justify-self: center;
    margin-left: 0;
    margin-right: 0;
  }

  .service-content {
    padding: 1.5rem;
  }

  .service-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .cta-title {
    font-size: var(--font-size-2xl);
  }

  .cta-description {
    font-size: var(--font-size-base);
  }

  .cta-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .btn-lg {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .section-header {
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: var(--font-size-2xl);
  }

  .section-subtitle {
    font-size: var(--font-size-base);
  }

  .service-image {
    height: 150px;
  }

  .service-content {
    padding: 1rem;
  }

  .service-title {
    font-size: var(--font-size-lg);
  }

  .services-cta {
    padding: 1.5rem;
  }

  .cta-title {
    font-size: var(--font-size-xl);
  }
}