/* ============================================================
   چرخ گستر سهند - Social Proof Section
   نسخه: 4.0 - شمارنده‌های متحرک + دیوار صنعتی (اصلاح‌شده)
   کاملاً Responsive - Mobile First
   ============================================================ */

:root {
  --atlas-deep-blue: #0a1a2f;
  --atlas-mid-blue: #0d2240;
  --atlas-tech-blue: #134074;
  --atlas-gold: #d4af37;
  --atlas-gold-light: #e5c767;
  --atlas-copper: #b87333;
  --atlas-white: #ffffff;
  --atlas-light-gray: #e8ecf1;
  --atlas-text-on-dark: #ccd6e0;
  --atlas-text-muted: #8899aa;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.2);
  --border-radius: 16px;
  --font-primary: 'IRANSans', 'Vazirmatn', 'Tahoma', sans-serif;
}

/* ==================== بخش اصلی ==================== */
.social-proof-section {
  background: linear-gradient(180deg, var(--atlas-deep-blue) 0%, var(--atlas-mid-blue) 100%);
  padding: 5rem 1rem;
  font-family: var(--font-primary);
  direction: rtl;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.social-proof-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
      transparent 0%,
      var(--atlas-gold) 30%,
      var(--atlas-copper) 70%,
      transparent 100%);
  z-index: 2;
}

.social-proof-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(184, 115, 51, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.sp-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ==================== هدر بخش ==================== */
.sp-header {
  text-align: center;
  margin-bottom: 4rem;
}

.sp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.1);
  color: var(--atlas-gold);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  letter-spacing: 2px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  margin-bottom: 1rem;
}

.sp-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--atlas-gold);
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.8);
    opacity: 0.4;
  }
}

.sp-title {
  color: var(--atlas-white);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.sp-title-accent {
  color: var(--atlas-gold);
}

.sp-subtitle {
  color: var(--atlas-text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ==================== شمارنده‌ها ==================== */
.sp-counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.counter-card {
  background: linear-gradient(145deg, rgba(19, 64, 116, 0.25), rgba(10, 26, 47, 0.5));
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--border-radius);
  padding: 2rem 1rem;
  text-align: center;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  cursor: default;
  backdrop-filter: blur(5px);
}

.counter-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-10px);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 175, 55, 0.3) inset;
}

.counter-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.2rem;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  /* دایره‌ای کردن آیکون */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--atlas-gold);
  transition: all 0.3s ease;
}

.counter-card:hover .counter-icon {
  background: var(--atlas-gold);
  color: var(--atlas-deep-blue);
  transform: scale(1.1);
}

.counter-icon svg {
  width: 28px;
  height: 28px;
}

.counter-number-wrapper {
  position: relative;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.2rem;
}

.counter-number {
  color: var(--atlas-white);
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  transition: color 0.3s;
}

.counter-card:hover .counter-number {
  color: var(--atlas-gold-light);
}

.counter-suffix {
  color: var(--atlas-gold);
  font-size: 1.8rem;
  font-weight: 700;
}

.counter-underline {
  width: 40px;
  height: 3px;
  background: var(--atlas-gold);
  margin: 0.8rem auto 1rem;
  opacity: 0.6;
  border-radius: 2px;
  transition: width 0.3s ease, opacity 0.3s;
}

.counter-card:hover .counter-underline {
  width: 60px;
  opacity: 1;
}

.counter-label {
  color: var(--atlas-text-on-dark);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ==================== دیوار صنعتی - بازطراحی شده ==================== */
.sp-clients {
  text-align: center;
}

.sp-clients-title {
  color: var(--atlas-text-muted);
  font-size: 0.9rem;
  letter-spacing: 3px;
  margin-bottom: 3rem;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.sp-clients-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: var(--atlas-gold);
  border-radius: 2px;
}

/* تغییر به 3 ستون برای ایجاد یک دیوار 2 ردیفه متقارن با 6 لوگو */
.industrial-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 800px;
  margin: 0 auto 2.5rem auto;
  /* فاصله از CTA جدید */
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(212, 175, 55, 0.2);
  border-radius: 5px;
  /* دندانه‌دار کمتر، صنعتی‌تر */
  overflow: hidden;
  box-shadow:
    inset 0 0 60px rgba(0, 0, 0, 0.5),
    0 20px 40px rgba(0, 0, 0, 0.5);
  position: relative;
}

/* خطوط جوش عمودی - اینبار دقیقاً بین 3 ستون */
.industrial-wall::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(100% / 3);
  width: 2px;
  background: linear-gradient(to bottom,
      transparent,
      rgba(212, 175, 55, 0.4) 10%,
      rgba(212, 175, 55, 0.4) 90%,
      transparent);
  z-index: 2;
  pointer-events: none;
}

.industrial-wall::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(100% / 3 * 2);
  width: 2px;
  background: linear-gradient(to bottom,
      transparent,
      rgba(212, 175, 55, 0.4) 10%,
      rgba(212, 175, 55, 0.4) 90%,
      transparent);
  z-index: 2;
  pointer-events: none;
}

/* خط جوش افقی - دقیقاً وسط ردیف اول و دوم */
.weld-line-h {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: linear-gradient(to right,
      transparent,
      rgba(212, 175, 55, 0.5) 10%,
      rgba(212, 175, 55, 0.5) 90%,
      transparent);
  z-index: 2;
  pointer-events: none;
}

.wall-brick {
  position: relative;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.2);
  cursor: default;
  background: linear-gradient(180deg,
      rgba(19, 64, 116, 0.1) 0%,
      rgba(10, 26, 47, 0.2) 100%);
  min-height: 150px;
  text-decoration: none;
}

.wall-brick:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.3);
  z-index: 5;
  /* بالاتر از خطوط جوش */
  box-shadow:
    0 0 30px rgba(212, 175, 55, 0.3),
    inset 0 0 30px rgba(212, 175, 55, 0.05);
  transform: scale(1.02);
}

.brick-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.brick-logo {
  width: 100px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  filter: grayscale(100%) brightness(0.6) opacity(0.8);
}

.wall-brick:hover .brick-logo {
  filter: grayscale(0%) brightness(1.1) opacity(1);
  transform: scale(1.1);
}

.brick-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.brick-placeholder {
  color: var(--atlas-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  opacity: 0.6;
}

.brick-name {
  color: var(--atlas-text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  text-align: center;
}

.wall-brick:hover .brick-name {
  color: var(--atlas-gold);
}

/* پرچ‌های صنعتی */
.brick-rivet {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle at 30% 30%, #a0a0a0, #404040);
  border-radius: 50%;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.4),
    0 2px 3px rgba(0, 0, 0, 0.7);
  transition: all 0.3s ease;
  z-index: 3;
}

.wall-brick:hover .brick-rivet {
  background: radial-gradient(circle at 30% 30%, var(--atlas-gold-light), var(--atlas-gold));
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.6),
    0 0 10px rgba(212, 175, 55, 0.8);
}

.brick-rivet-tl {
  top: 8px;
  left: 8px;
}

.brick-rivet-tr {
  top: 8px;
  right: 8px;
}

.brick-rivet-bl {
  bottom: 8px;
  left: 8px;
}

.brick-rivet-br {
  bottom: 8px;
  right: 8px;
}

/* ==================== CTA "جای شما اینجاست" (خارج از دیوار) ==================== */
.client-cta {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.15), rgba(10, 26, 47, 0.4));
  border: 2px dashed var(--atlas-gold);
  border-radius: 8px;
  color: var(--atlas-gold);
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.4s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-decoration: none;
}

.client-cta:hover {
  background: rgba(212, 175, 55, 0.2);
  border-style: solid;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
  transform: translateY(-3px);
}

.client-cta svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
  color: var(--atlas-gold);
}

.client-cta:hover svg {
  transform: rotate(90deg);
}

/* ==================== Responsive ==================== */

@media (max-width: 992px) {
  .sp-counters {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .sp-title {
    font-size: 2rem;
  }

  .industrial-wall {
    max-width: 650px;
  }
}

@media (max-width: 768px) {
  .social-proof-section {
    padding: 3rem 1rem;
  }

  .sp-header {
    margin-bottom: 2.5rem;
  }

  .sp-counters {
    gap: 0.8rem;
    margin-bottom: 2.5rem;
  }

  .counter-card {
    padding: 1.5rem 0.8rem;
  }

  .counter-icon {
    width: 50px;
    height: 50px;
  }

  .counter-icon svg {
    width: 24px;
    height: 24px;
  }

  .counter-number {
    font-size: 2.2rem;
  }

  .industrial-wall {
    max-width: 100%;
  }

  .wall-brick {
    min-height: 120px;
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 600px) {
  .industrial-wall {
    grid-template-columns: repeat(2, 1fr);
    /* 2 ستون برای موبایل */
    max-width: 400px;
  }

  /* تنظیم خطوط جوش برای 2 ستون */
  .industrial-wall::before {
    left: 50%;
    /* خط جوش وسط */
  }

  .industrial-wall::after {
    display: none;
    /* خط سوم حذف */
  }
}

@media (max-width: 480px) {
  .sp-title {
    font-size: 1.6rem;
  }

  .sp-counters {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .counter-number {
    font-size: 1.8rem;
  }

  .wall-brick {
    min-height: 100px;
    padding: 1rem 0.5rem;
  }

  .brick-rivet {
    width: 6px;
    height: 6px;
  }

  .brick-rivet-tl {
    top: 4px;
    left: 4px;
  }

  .brick-rivet-tr {
    top: 4px;
    right: 4px;
  }

  .brick-rivet-bl {
    bottom: 4px;
    left: 4px;
  }

  .brick-rivet-br {
    bottom: 4px;
    right: 4px;
  }
}

/* ==================== Fallback برای لوگوهای لود نشده ==================== */
.brick-placeholder-fallback {
  width: 90px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.08);
  border: 1px dashed rgba(212, 175, 55, 0.2);
  border-radius: 6px;
  padding: 4px;
  transition: all 0.3s ease;
}

.brick-placeholder-fallback span {
  color: var(--atlas-gold);
  font-size: 0.62rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.3px;
  opacity: 0.8;
}

.wall-brick:hover .brick-placeholder-fallback {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.5);
}