/* Pricing Section */
.pricing {
  padding: 80px 20px;
  background-color: #fafafa;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

.pricing h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #111;
}

.pricing-intro {
  max-width: 650px;
  margin: 0 auto 50px;
  color: #666;
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 400;
}

/* Cards Container */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Individual Card */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 30px 25px 35px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: default;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}

.card h3 {
  margin-bottom: 18px;
  font-size: 1.6rem;
  font-weight: 600;
  color: #222;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: #0077cc; /* subtle accent color */
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.card li {
  margin-bottom: 12px;
  color: #555;
  font-size: 1rem;
  line-height: 1.5;
}


.card {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.card:hover::before {
  opacity: 1;
}

/* Overlay to keep text readable */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.7); /* Light overlay to contrast against background */
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
  z-index: 1;
}

.card:hover::after {
  background: rgba(255, 255, 255, 0.5); /* Slightly more transparent on hover */
  backdrop-filter: blur(3px); /* Increase blur on hover */
}


/* Ensure content sits above the image */
.card * {
  position: relative;
  z-index: 2;
}


/* Responsive tweaks */
@media (max-width: 480px) {
  .pricing h2 {
    font-size: 2rem;
  }
  .pricing-intro {
    font-size: 1rem;
  }
  .card h3 {
    font-size: 1.3rem;
  }
  .price {
    font-size: 1.5rem;
  }
}




.card-family:hover::before {
  background-image: url('/assets/images/price\ cards/family.jpg');
}

.card-self:hover::before {
  background-image: url('/assets/images/price\ cards/self.jpg');
}

.card-pets:hover::before {
  background-image: url('/assets/images/price\ cards/pets.jpg');
}

.card-weddings:hover::before {
  background-image: url('/assets/images/price\ cards/wedding.jpg');
}

.card-gender:hover::before {
  background-image: url('/assets/images/price\ cards/gender.jpg');
}

.card-small-events:hover::before {
  background-image: url('/assets/images/price\ cards/small-events.jpg');
}

.card-large-events:hover::before {
  background-image: url('/assets/images/price\ cards/large-event.jpg');
}
