/**
 * صفحة الخدمات — تصميم v3
 * هيرو، روابط سريعة، بطاقات خدمات، CTA
 */

.home-v3.page-services {
  scroll-behavior: smooth;
}

/* ===== هيرو الخدمات ===== */
.home-v3.page-services .services-hero {
  position: relative;
  padding: 7rem 0 5rem;
  overflow: hidden;
}

.home-v3.page-services .services-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #0a0e3a 0%, #1e299c 40%, #2d3ab8 70%, #6366f1 100%);
}

.home-v3.page-services .services-hero__overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}

.home-v3.page-services .services-hero .container {
  position: relative;
  z-index: 1;
}

.home-v3.page-services .services-hero__inner {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}

.home-v3.page-services .services-hero__badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.15);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.home-v3.page-services .services-hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.home-v3.page-services .services-hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin: 0;
}

.home-v3.page-services .services-hero__cut {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--v3-bg);
  clip-path: polygon(0 100%, 0 25%, 50% 65%, 100% 15%, 100% 100%);
  z-index: 2;
}

/* ===== روابط سريعة للخدمات ===== */
.home-v3.page-services .services-nav {
  background: var(--v3-surface);
  border-bottom: 1px solid rgba(30, 41, 156, 0.08);
  padding: 1rem 0;
  position: sticky;
  top: 56px;
  z-index: 99;
  box-shadow: 0 2px 12px rgba(30, 41, 156, 0.06);
}

.home-v3.page-services .services-nav__wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
}

.home-v3.page-services .services-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--v3-text);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--v3-bg);
  border: 1px solid rgba(30, 41, 156, 0.1);
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}

.home-v3.page-services .services-nav__link:hover {
  color: var(--v3-p);
  background: rgba(30, 41, 156, 0.08);
  border-color: rgba(30, 41, 156, 0.2);
  transform: translateY(-2px);
}

/* ===== بطاقة خدمة ===== */
.home-v3.page-services .service-block {
  padding: 3.5rem 0;
}

.home-v3.page-services .service-block:first-of-type {
  padding-top: 4rem;
}

.home-v3.page-services .service-card {
  max-width: 48rem;
  margin-inline: auto;
  padding: 2rem 2.25rem;
  background: #fff;
  border-radius: 1.5rem;
  border: 1px solid rgba(30, 41, 156, 0.1);
  box-shadow: 0 16px 48px rgba(30, 41, 156, 0.08);
  border-inline-start: 4px solid var(--v3-p);
  transition: box-shadow 0.3s, transform 0.3s;
}

.home-v3.page-services .service-card:hover {
  box-shadow: 0 24px 56px rgba(30, 41, 156, 0.12);
  transform: translateY(-2px);
}

.home-v3.page-services .service-card--dark {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  border-inline-start-color: var(--v3-violet);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.home-v3.page-services .service-card--dark:hover {
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.2);
}

.home-v3.page-services .service-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.home-v3.page-services .service-card__badge {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--v3-p);
  background: rgba(30, 41, 156, 0.1);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}

.home-v3.page-services .service-card--dark .service-card__badge {
  color: #a5b4fc;
  background: rgba(255, 255, 255, 0.1);
}

.home-v3.page-services .service-card__icon {
  font-size: 2.25rem;
  line-height: 1;
}

.home-v3.page-services .service-card__title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--v3-text);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.home-v3.page-services .service-card--dark .service-card__title {
  color: #fff;
}

.home-v3.page-services .service-card__desc {
  font-size: 1.05rem;
  color: var(--v3-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.home-v3.page-services .service-card--dark .service-card__desc {
  color: rgba(255, 255, 255, 0.8);
}

.home-v3.page-services .service-card__features-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--v3-text);
  margin-bottom: 0.75rem;
}

.home-v3.page-services .service-card--dark .service-card__features-title {
  color: #fff;
}

.home-v3.page-services .service-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-v3.page-services .service-card__list li {
  position: relative;
  padding-inline-start: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--v3-muted);
  line-height: 1.6;
}

.home-v3.page-services .service-card__list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--v3-p);
}

.home-v3.page-services .service-card--dark .service-card__list li {
  color: rgba(255, 255, 255, 0.8);
}

.home-v3.page-services .service-card--dark .service-card__list li::before {
  background: var(--v3-violet);
}

/* ===== جدول مقارنة الخدمات ===== */
.home-v3.page-services .services-compare__table {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(30, 41, 156, 0.08);
  border: 1px solid rgba(30, 41, 156, 0.08);
}
.home-v3.page-services .services-compare__table th,
.home-v3.page-services .services-compare__table td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
}
.home-v3.page-services .services-compare__table thead th {
  background: var(--v3-p);
  color: #fff;
  font-weight: 700;
  border: none;
}
.home-v3.page-services .services-compare__table tbody tr:nth-child(even) {
  background: var(--v3-bg);
}
.home-v3.page-services .services-compare__table tbody a {
  color: var(--v3-p);
  font-weight: 600;
  text-decoration: none;
}
.home-v3.page-services .services-compare__table tbody a:hover {
  text-decoration: underline;
}

/* ===== CTA — زرّان ===== */
.home-v3.page-services .cta-v3__btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.home-v3.page-services .cta-v3__btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.home-v3.page-services .cta-v3__btn--outline:hover {
  color: var(--v3-p);
  background: #fff;
  border-color: #fff;
}

/* موبايل */
@media (max-width: 576px) {
  .home-v3.page-services .service-card {
    padding: 1.5rem 1.25rem;
  }
  .home-v3.page-services .services-nav__wrap {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .home-v3.page-services .services-nav__link {
    flex-shrink: 0;
    white-space: nowrap;
  }
}
