/* ===================================== */
/* NEW SERVICES LAYOUT - PRICING OUTSIDE */
/* No more overlapping issues!           */
/* ===================================== */

/* Service Card Wrapper - New Container */
.service-card-wrapper {
  margin-bottom: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Service Card - Simplified (No flip) */
.service-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(233, 30, 99, 0.15);
  border: 1px solid rgba(233, 30, 99, 0.1);
  min-height: 400px; /* Reduced height since no pricing inside */
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
  margin-bottom: 20px; /* Space between card and pricing */
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(233, 30, 99, 0.2);
}

/* Remove old flip card CSS */
.service-card-inner,
.service-card-front,
.service-card-back {
  display: none !important; /* Hide old flip structure */
}

/* Service Card Content */
.service-card .service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: linear-gradient(135deg, #e91e63, #c2185b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.3);
  flex-shrink: 0;
}

.service-card .service-title {
  font-size: clamp(1.3rem, 3vw, 1.5rem);
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  font-family: 'Playfair Display', serif;
  text-align: center;
  line-height: 1.3;
}

.service-card .service-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: center;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.service-card .service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  text-align: left;
}

.service-card .service-features .feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: clamp(0.85rem, 1.8vw, 0.95rem);
  line-height: 1.5;
}

.service-card .service-features .feature-item i {
  color: #e91e63;
  margin-right: 12px;
  font-size: 12px;
  margin-top: 4px;
  flex-shrink: 0;
}

/* Hide old pricing inside cards */
.service-card .service-price {
  display: none !important;
}

/* ===================================== */
/* PRICING SECTION - OUTSIDE CARDS       */
/* ===================================== */

/* FORCE WHITE TEXT - Override all conflicts */
.pricing-section,
.pricing-section *,
.pricing-section .price-main,
.pricing-section .price-label,
.pricing-section .price-amount,
.pricing-section .price-currency,
.pricing-section .price-note {
  color: white !important;
}

/* Buttons override */
.pricing-section .btn-primary {
  color: #e91e63 !important;
}

.pricing-section .btn-secondary {
  color: white !important;
}

.pricing-section {
  background: linear-gradient(135deg, #e91e63, #c2185b);
  color: white !important; /* Force white text */
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(233, 30, 99, 0.3);
  position: relative;
  overflow: hidden;
  margin-top: auto; /* Push to bottom of wrapper */
}

/* Shine animation effect */
.pricing-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.price-main {
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
  color: white !important; /* Ensure white text */
}

.price-label {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 5px;
  display: block;
  color: white !important; /* Force white */
}

.price-amount {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: block;
  color: white !important; /* Force white */
}

.price-currency {
  font-size: 0.9rem;
  opacity: 0.9;
  display: block;
  color: white !important; /* Force white */
}

.price-note {
  font-size: clamp(0.75rem, 1.5vw, 0.85rem);
  margin-top: 15px;
  opacity: 0.9;
  font-style: italic;
  line-height: 1.4;
  color: white !important; /* Force white */
}

/* Service CTA Buttons - Inside Pricing */
.service-cta {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

.service-cta .btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: clamp(0.8rem, 1.8vw, 0.9rem);
  text-align: center;
  line-height: 1.2;
}

.service-cta .btn-primary {
  background: white;
  color: #e91e63 !important; /* Force pink text on white button */
  border: 1px solid transparent;
}

.service-cta .btn-primary:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

.service-cta .btn-secondary {
  background: rgba(255,255,255,0.2);
  color: white !important; /* Force white text */
  border: 1px solid rgba(255,255,255,0.3);
}

.service-cta .btn-secondary:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.5);
}

/* Service Badges - Adjusted for new layout */
.service-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #e91e63, #c2185b);
  color: white;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: clamp(0.7rem, 1.5vw, 0.8rem);
  font-weight: 600;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4);
  white-space: nowrap;
}

.popular-badge {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.new-badge {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.special-badge {
  background: linear-gradient(135deg, #ff6b9d, #e91e63);
}

.elegant-badge {
  background: linear-gradient(135deg, #6a1b9a, #9c27b0);
}

/* ===================================== */
/* SERVICES GRID - UPDATED FOR NEW LAYOUT */
/* ===================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
  align-items: start; /* Important: align to start for new layout */
}

/* ===================================== */
/* RESPONSIVE DESIGN                      */
/* ===================================== */

/* Mobile Styles (up to 767px) */
@media (max-width: 767px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .service-card-wrapper {
    margin-bottom: 30px;
  }
  
  .service-card {
    min-height: 350px;
    padding: 25px;
    margin-bottom: 15px;
  }
  
  .service-card .service-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    font-size: 1.8rem;
  }
  
  .service-card .service-features {
    text-align: center;
  }
  
  .pricing-section {
    padding: 20px;
  }
  
  .service-cta {
    flex-direction: column;
    gap: 10px;
  }
  
  .price-amount {
    font-size: 1.8rem !important;
  }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
  .services-grid {
    gap: 20px;
  }
  
  .service-card {
    min-height: 320px;
    padding: 20px;
  }
  
  .service-card .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .pricing-section {
    padding: 15px;
  }
  
  .price-amount {
    font-size: 1.6rem !important;
  }
}

/* Tablet Styles (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
  }
  
  .service-card {
    min-height: 380px;
  }
}

/* Desktop Styles (1024px and up) */
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
  }
  
  .service-card {
    min-height: 400px;
  }
}

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin: 0 auto 80px;
  }
}

/* ===================================== */
/* ACCESSIBILITY & PERFORMANCE           */
/* ===================================== */

/* Focus States */
.service-card:focus-within {
  outline: 2px solid #e91e63;
  outline-offset: 4px;
  border-radius: 15px;
}

.service-cta .btn:focus {
  outline: 2px solid rgba(255,255,255,0.8);
  outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .service-card {
    border: 2px solid #000;
  }
  
  .service-badge {
    background: #000;
    color: #fff;
  }
  
  .pricing-section {
    background: #000;
    color: #fff;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-cta .btn,
  .pricing-section::before {
    transition: none;
    animation: none;
  }
  
  .service-card:hover {
    transform: none;
  }
  
  .service-cta .btn:hover {
    transform: none;
  }
}

/* Print Styles */
@media print {
  .service-card-wrapper {
    break-inside: avoid;
    margin-bottom: 30px;
  }
  
  .service-card {
    box-shadow: none;
    border: 1px solid #000;
  }
  
  .pricing-section {
    background: none !important;
    color: #000 !important; /* Black text for print */
    border: 1px solid #000;
  }
  
  /* Override all pricing text for print */
  .pricing-section,
  .price-main,
  .price-label,
  .price-amount,
  .price-currency,
  .price-note {
    color: #000 !important; /* Black text for print */
  }
  
  .pricing-section::before {
    display: none;
  }
}
