/* ===========================
   Services Section
   =========================== */
.services {
  padding: 5rem 0;
  background-color: #fff;
}

.services-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #382a25;
  margin-bottom: 3rem;
  text-align: left;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Service Card */
.service-card {
  background-color: #fff;
  border-radius: 5px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e5e5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding-bottom: 1.25rem;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

/* Service Image */
.service-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 100%);
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.15);
}

/* Overlay on hover */
.service-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover .service-image::after {
  opacity: 1;
}

/* Service Content */
.service-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 1.25rem 1.25rem 0.75rem 1.25rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.service-card:hover .service-name {
  color: var(--primary-color);
}

.service-description {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #666;
  margin: 0 1.25rem;
  flex-grow: 1;
}

/* View All Button Container */
.services-footer {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.services-view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background-color: var(--primary-color);
  color: white;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(163, 133, 101, 0.2);
}

.services-view-all:hover {
  background-color: #8b7355;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(163, 133, 101, 0.3);
}

.services-view-all svg {
  transition: transform 0.3s ease;
}

.services-view-all:hover svg {
  transform: translateX(5px);
}

/* Responsive */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .services {
    padding: 4rem 0;
  }

  .services-title {
    font-size: 2.25rem;
    margin-bottom: 2.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .service-image {
    height: 180px;
  }
}

@media (max-width: 600px) {
  .services {
    padding: 3rem 0;
  }

  .services-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-image {
    height: 220px;
  }

  .service-name {
    font-size: 1.15rem;
  }

  .service-description {
    font-size: 0.95rem;
  }
}
