/* Services with Parallax Image - Redesigned Cards */
.services-parallax {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
  max-width: 100% !important;
}

.services-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://images.unsplash.com/photo-1551836022-deb4988cc6c0?w=1600&q=80")
    center/cover fixed;
  transform: translateZ(0);
}

.services-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(125, 189, 182, 0.92) 0%,
    rgba(138, 165, 176, 0.92) 100%
  );
  opacity: 0.95; /* overall opacity */
}

.services-content {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  padding: 0px 2rem;
}

.services-content h2 {
  color: white;
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.services-content h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: white;
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 3rem;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--soft-teal), var(--coral-peach));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

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

.service-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--deep-teal);
}

.service-card p {
  color: var(--text);
  font-size: 1.05rem;
}

.service-features {
  list-style: none;
  margin-top: 1.5rem;
}

.service-features li {
  padding: 0.5rem 0;
  padding-left: 2rem;
  position: relative;
  color: #666;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--coral-peach);
  font-weight: bold;
  font-size: 1.2rem;
}

.services-subtitle {
  text-align: center;
  color: white;
  font-size: 1.3rem;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
  font-weight: 400;
}

.service-price {
  color: var(--coral-peach);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 1rem 0;
  font-family: "Playfair Display", serif;
}

.service-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-weight: 500;
}

.service-ideal {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  padding: 0.8rem;
  background: rgba(125, 189, 182, 0.08);
  border-left: 3px solid var(--soft-teal);
  border-radius: 0 5px 5px 0;
}

.service-card {
  background: rgba(255, 249, 244, 0.98);
  padding: 2.5rem;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  box-shadow: 0 15px 50px rgba(125, 189, 182, 0.25);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  height: 100%; /* Make all cards equal height */
  display: flex;
  flex-direction: column;
}

/* Update the services-grid for better layout with 5 cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

/* Ensure features list takes available space */
.service-features {
  list-style: none;
  margin-top: auto; /* Push to bottom */
  padding-top: 1.5rem;
  border-top: 1px solid rgba(125, 189, 182, 0.2);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

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