/* ==========================================================
   9. SERVICES PAGE STYLES (Advanced, Animations, FAQ, Process)
   ========================================================== */

/* --- Advanced Page Header --- */
.page-header {
  background: linear-gradient(135deg, var(--clr-primary-900) 0%, var(--clr-primary-500) 100%);
  padding: calc(var(--sp-16) + 20px) 0 var(--sp-12) 0;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--rad-lg) var(--rad-lg);
  margin-bottom: var(--sp-12);
}

/* انیمیشن اَشکال شناور در هدر داخلی */
.ph-blob {
  position: absolute; border-radius: 50%; background: rgba(255,255,255,0.05);
  animation: float 8s ease-in-out infinite; z-index: 1;
}
.ph-blob-1 { width: 300px; height: 300px; top: -50px; right: -50px; }
.ph-blob-2 { width: 200px; height: 200px; bottom: -50px; left: 10%; animation-delay: -4s; }

.page-header .container { position: relative; z-index: 2; }
.page-title { font-size: clamp(2.2rem, 4vw, 3.5rem); font-weight: 900; margin-bottom: 15px; letter-spacing: -1px; }
.page-subtitle { font-size: 1.15rem; opacity: 0.9; max-width: 650px; margin: 0 auto; font-weight: 300; line-height: 1.8; }

/* --- Enhanced Service Cards (3D Hover Effect) --- */
.service-detail-card {
  background: var(--clr-surface); border-radius: var(--rad-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--clr-border);
  display: flex; flex-direction: column; height: 100%;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
/* انیمیشن هاور جذاب‌تر */
.service-detail-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(2, 132, 199, 0.12);
  border-color: var(--clr-primary-300);
}
.sdc-img-wrap { position: relative; overflow: hidden; height: 240px; }
.sdc-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.service-detail-card:hover .sdc-img { transform: scale(1.08); }

/* برچسب شناور روی عکس */
.sdc-badge {
  position: absolute; top: 15px; right: 15px;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(4px);
  color: var(--clr-primary-700); padding: 5px 12px; border-radius: var(--rad-pill);
  font-size: 0.8rem; font-weight: 700; z-index: 2;
}

.sdc-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.sdc-title { font-size: 1.3rem; color: var(--clr-primary-900); margin-bottom: 10px; }
.sdc-desc { color: var(--clr-text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; flex-grow: 1; }

.sdc-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 25px; padding-top: 15px; border-top: 1px dashed var(--clr-border); }
.sdc-features li { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--clr-text-main); font-weight: 700; }
.sdc-features svg { width: 18px; height: 18px; color: #10B981; }

.sdc-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.sdc-price { font-size: 0.85rem; color: var(--clr-text-muted); background: var(--clr-bg-main); padding: 6px 12px; border-radius: 6px; }
.sdc-link { background: var(--clr-primary-100); color: var(--clr-primary-700); padding: 8px 18px; border-radius: var(--rad-pill); font-size: 0.9rem; font-weight: 700; transition: var(--trans-fast); }
.service-detail-card:hover .sdc-link { background: var(--clr-primary-500); color: white; }

/* --- Work Process Section (مراحل درمان) --- */
/* خطا در این خط بود که اصلاح شد: position: relative; اضافه گردید */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--sp-6); margin-top: var(--sp-8); position: relative; }
.process-step { text-align: center; padding: var(--sp-6); position: relative; }
.process-icon {
  width: 80px; height: 80px; background: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto var(--sp-4);
  box-shadow: var(--shadow-md); color: var(--clr-primary-500); position: relative; z-index: 2;
  transition: transform 0.4s ease;
}
.process-step:hover .process-icon { transform: rotateY(180deg); }
.process-icon svg { width: 35px; height: 35px; }
.step-num {
  position: absolute; top: -10px; right: 0; width: 30px; height: 30px;
  background: var(--clr-primary-900); color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 0.9rem;
}
.process-step h3 { font-size: 1.2rem; color: var(--clr-primary-900); margin-bottom: 10px; }
.process-step p { color: var(--clr-text-muted); font-size: 0.95rem; }

/* --- FAQ Accordion Section (سوالات متداول) --- */
.faq-container { max-width: 800px; margin: var(--sp-8) auto 0; }
.faq-item { background: white; border: 1px solid var(--clr-border); border-radius: var(--rad-md); margin-bottom: 15px; overflow: hidden; transition: var(--trans-fast); }
.faq-item.active { border-color: var(--clr-primary-300); box-shadow: var(--shadow-sm); }
.faq-header {
  padding: 20px 25px; display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-weight: 700; color: var(--clr-text-main); font-size: 1.05rem;
}
.faq-icon { width: 24px; height: 24px; color: var(--clr-primary-500); transition: transform 0.3s ease; }
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-body { padding: 0 25px 25px; color: var(--clr-text-muted); line-height: 1.7; font-size: 0.95rem; }

/* --- CTA Banner --- */
.services-cta {
  background: url('https://wsrv.nl/?url=images.unsplash.com/photo-1606811841689-23dfddce3e95&w=1200&h=400&fit=cover') center/cover fixed;
  position: relative; border-radius: var(--rad-lg); overflow: hidden; margin-top: var(--sp-12); padding: var(--sp-12) var(--sp-8); text-align: center;
}
.services-cta::before { content: ''; position: absolute; inset: 0; background: rgba(12, 74, 110, 0.85); backdrop-filter: blur(5px); }
.cta-inner { position: relative; z-index: 2; color: white; }
.cta-inner h2 { font-size: 2.2rem; margin-bottom: 15px; color: white; }