/* Modern service cards grid layout */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin: 50px 0;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: #222;
  margin-bottom: 15px;
  margin-top: 30px;
}

.section-subtitle {
  font-size: 18px;
  color: #666;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.service-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
  transition: transform 0.3s ease;
}

.service-card-link:hover {
  transform: translateY(-10px);
}

.service-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 35px 30px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  height: 100%;
}

.service-card-link:hover .service-card {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: #e0e0e0;
}

.service-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: #ad2324;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card-link:hover .service-card:before {
  opacity: 1;
}

.service-card h4 {
  color: #222;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 15px;
}

.service-card h4:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: #ad2324;
  transition: width 0.3s ease;
}

.service-card-link:hover .service-card h4:after {
  width: 70px;
}

.service-card p {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.link-indicator {
  color: #ad2324;
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  position: relative;
  padding: 5px 15px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.link-indicator:after {
  content: "→";
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.service-card-link:hover .link-indicator {
  background-color: rgba(173, 35, 36, 0.15);
  padding-right: 20px;
}

.service-card-link:hover .link-indicator:after {
  transform: translateX(5px);
}

.services-cta {
  text-align: center;
  margin: 60px auto;
  max-width: 800px;
  padding: 40px;
  background: #f8f8f8;
  border-radius: 12px;
}

.services-cta p {
  color: #444;
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 30px;
}

.btn-primary {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 12px 24px;
  justify-self: center;
  height: fit-content;
  gap: 10px;
  background: #ad2324;
  width: fit-content;
  border-radius: 8px;
  text-decoration: none;
  color: #ffffff;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 21px;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #8a1c1d;
  transform: translateY(-2px);
  color: white;
}

.btn-primary img {
  width: 18px;
  margin-left: 10px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.btn-primary:hover img {
  transform: translateX(5px);
}

.text-center {
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .service-card {
    padding: 25px;
  }

  .service-card h4 {
    font-size: 20px;
  }

  .link-indicator {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-cta {
    padding: 30px 20px;
  }
}
