/* =========================================================
   SERVICES-PAGE.CSS
   فقط روی صفحه /khadamat لود می‌شود
   ========================================================= */

.services-hero {
  text-align: center;
  padding: 3.5rem 1.25rem 2.5rem;
  background: var(--white, #fff);
}
.services-hero h1 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0.5rem 0;
}
.services-hero .hero-subtitle { color: var(--muted); }

/* گرید خدمات با جزئیات */
.services-detail-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.service-detail-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 4px 16px rgba(34,53,72,0.08);
  border-inline-start: 4px solid var(--primary);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(34,53,72,0.14);
}

.service-detail-card .service-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  border-radius: 16px;
  margin-bottom: 1rem;
}

.service-detail-card h2 {
  font-size: 1.15rem;
  color: var(--dark);
  margin: 0 0 0.5rem;
}
.service-detail-card > p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1rem;
  line-height: 1.8;
}

.service-features {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.service-features li {
  font-size: 0.85rem;
  color: var(--dark);
  padding-inline-start: 1.4rem;
  position: relative;
}
.service-features li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--blue);
  font-weight: 800;
}

/* روند کار */
.how-it-works {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.step-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.25rem;
  box-shadow: 0 4px 14px rgba(34,53,72,0.08);
  position: relative;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.step-item h3 { font-size: 1rem; color: var(--dark); margin: 0 0 0.4rem; }
.step-item p { font-size: 0.85rem; color: var(--muted); margin: 0; }

@media (min-width: 768px) {
  .services-hero h1 { font-size: 2.3rem; }
  .services-detail-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
}

/* سایر خدمات فنی */
.other-services {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  text-align: center;
}

.other-services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.other-service-chip {
  background: #fff;
  border: 1.5px solid var(--muted);
  color: var(--dark);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem 1.1rem;
  border-radius: 20px;
  transition: all 0.2s ease;
}
.other-service-chip:hover {
  border-color: var(--primary);
  background: var(--bg);
}

/* ===== استایل‌های مشترک لازم برای این صفحه ===== */

.eyebrow {
  display: block;
  text-align: center;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.section-title-lg {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 2rem;
}

/* بخش عمومی (برای مزایا) */
.home-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

/* گرید مزایا */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.why-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 14px rgba(34,53,72,0.08);
  border-inline-start: 4px solid var(--primary);
  transition: transform 0.25s ease;
  text-align: center;
}
.why-item:hover { transform: translateY(-4px); }
.why-item h3 {
  color: var(--blue);
  margin: 0 0 0.5rem;
  font-size: 1rem;
}
.why-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.8;
}

/* لینک ثانویهٔ زیر دکمهٔ CTA */
.cta-alt-link {
  margin: 1rem 0 0;
  font-size: 0.88rem;
}
.cta-alt-link a {
  color: var(--blue);
  font-weight: 700;
  border-bottom: 1.5px solid var(--primary);
  padding-bottom: 1px;
}
.cta-alt-link a:hover { color: var(--primary); }

/* فراخوان پایانی */
.home-cta {
  text-align: center;
  padding: 3rem 1.25rem 4rem;
  background: linear-gradient(180deg, var(--bg) 0%, #fff 100%);
  border-radius: 32px 32px 0 0;
}
.home-cta h2 {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.home-cta p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .other-services-grid {
    gap: 0.5rem;
  }
  .other-service-chip {
    font-size: 0.78rem;
    padding: 0.45rem 0.85rem;
    max-width: 100%;
    word-break: break-word;
  }

  .services-detail-grid,
  .other-services,
  .how-it-works,
  .home-section,
  .home-cta {
    padding-inline: 1rem;
  }

  .service-detail-card {
    padding: 1.25rem;
  }
}