/* استایل‌های ساده و مدرن برای تبسی */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Vazirmatn', sans-serif;
  direction: rtl;
  text-align: right;
  background: linear-gradient(135deg, #fef3c7, #fde68a, #fed7aa);
  min-height: 100vh;
}

/* هدر */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* بخش اصلی */
.services-section {
  padding: 4rem 0;
  width: 100%;
  background: linear-gradient(135deg, #e43636, #e43636);
}

.services-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.services-title {
  text-align: center;
  margin-bottom: 3rem;
}

.services-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.services-title p {
  font-size: 1rem;
  color: #ffffff;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* چیدمان اصلی */
.services-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .services-container {
    flex-direction: row;
    gap: 3rem;
  }
}

/* بخش سرویس‌ها */
.services-grid {
  flex: 1;
}

.services-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.service-item {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.service-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.service-item.active {
  background: #fff5f5;
  border-color: #e43636;
  transform: translateY(-2px);
}

.service-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.service-icon {
  width: 3rem;
  height: 3rem;
  background: #fee2e2;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon i {
  font-size: 1.25rem;
  color: #e43636;
}

.service-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1f2937;
}

/* متن زیر کارت موبایل در سکشن قرمز */
.service-details h3 {
  color: #ffffff;
}

.service-details p {
  color: #ffffff;
  opacity: 0.9;
}

/* اطمینان از سفید بودن این دو متن مشخص */
#service-title,
#service-description {
  color: #ffffff !important;
}

/* بخش موبایل */
.phone-section {
  flex: 1;
  max-width: 400px;
  margin: 0 auto;
}

.phone-mockup {
  background: #111827;
  border-radius: 2.5rem;
  padding: 0.5rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  margin-bottom: 2rem;
}

.phone-screen {
  background: #fbe3e3;
  border-radius: 2rem;
  height: 24rem;
  overflow: hidden;
}

.phone-status {
  background: #fbdada;
  padding: 0.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: #7a1e1e;
}

.phone-content {
  background: #f6baba;
  height: calc(100% - 2rem);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.phone-service-icon {
  background: #fee2e2;
  border-radius: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.phone-service-icon i {
  font-size: 1.5rem;
  color: #e43636;
}

.phone-service-title {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.phone-service-price {
  background: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.phone-locations {
  width: 100%;
}

.location-item {
  background: #fff0f0;
  border-radius: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.location-item:last-child {
  margin-bottom: 0;
}

.location-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.location-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

.location-dot.origin {
  background: #10b981;
}

.location-dot.destination {
  background: #e43636;
}

.location-label {
  font-size: 0.75rem;
  color: #ffffff;
}

.location-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: #7a1e1e;
}

/* بخش توضیحات */
.service-details {
  text-align: center;
}

.service-details h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
}

.service-details p {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.request-button {
  background: #ffffff;
  color: #e43636;
  border: 2px solid #e43636;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto;
}

.request-button:hover {
  background: #fff5f5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(228, 54, 54, 0.25);
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .services-title h2 {
    font-size: 2rem;
  }
  
  .service-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .service-icon i {
    font-size: 1rem;
  }
  
  .service-name {
    font-size: 0.75rem;
  }
  
  .phone-screen {
    height: 26rem;
  }
}

@media (max-width: 480px) {
  .phone-screen {
    height: 28rem;
  }
}

/* =========================== PROMO 3D SLIDER =========================== */
.promo-slider-section, .promo-slider-section * {
  font-family: 'Vazirmatn', 'Vazirmatn-fallback', Tahoma, Arial, sans-serif !important;
}

/* =========================== DRIVER SIGNUP RESPONSIVE =========================== */

/* در دسکتاپ ردیفی؛ در موبایل ستونی */
.driver-signup { 
  flex-direction: column; 
  align-items: center;
}
.driver-image, .driver-text { width: 100%; }
.driver-image { margin-top: 2rem; }
.driver-text { text-align: center; }

@media (min-width: 1024px) {
  .driver-signup { 
    flex-direction: row; 
    align-items: flex-start;
  }
  .driver-image { width: 50%; margin-top: 0; }
  .driver-text { width: 50%; text-align: right; }
  .driver-text .flex { justify-content: flex-end; flex-direction: row; }
  .driver-text ul { text-align: right; }
}

/* حذف اورراید قبلی */

@media (min-width: 1039px) {
  .driver-image img { max-width: 620px; margin: 0 auto; display: block; }
  .driver-text { text-align: center; }
  .driver-text .flex { justify-content: center; flex-direction: column; }
  .driver-text ul { text-align: center; }
}

@media (max-width: 1200px) {
  .driver-text .flex { margin-bottom: 3rem; }
}

@media (min-width: 700px) {
  .driver-text .flex { flex-direction: row; }
}

@media (max-width: 700px) {
  .driver-text .flex { 
    flex-direction: column; 
    gap: 1rem;
  }
}

@media (max-width: 500px) {
  .driver-text .flex { 
    flex-direction: column; 
    gap: 0.75rem; 
  }
  .driver-signup { margin-bottom: 2rem; }
  
  .footer-grid {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }
  
  .footer-grid h3,
  .footer-grid h4,
  .footer-grid p,
  .footer-grid ul {
    text-align: center !important;
  }
}

@media (min-width: 500px) and (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}


.promo-slider-section {
  background: #f5f0e8;
  padding: 4rem 0;
  position: relative;
  z-index: 1;
}

.promo-slider-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  perspective: 1200px;
  overflow: hidden;
}

.promo-slider-track {
  position: relative;
  height: 480px;
  transform-style: preserve-3d;
}

.promo-slide {
  position: absolute;
  inset: 0;
  display: block;
  transform-origin: center;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.2);
  background: transparent center/cover no-repeat;
  transition: transform .9s cubic-bezier(.22,.61,.36,1), opacity .5s ease;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}

.promo-slide.is-active {
  opacity: 1;
  transform: translateZ(0) rotateY(0deg) scale(1);
  z-index: 10;
  filter: saturate(1.05) contrast(1.05);
  pointer-events: auto;
}

.promo-slide.is-prev {
  opacity: .35;
  transform: translateX(-12%) rotateY(25deg) translateZ(-120px) scale(.88);
  z-index: 1;
  clip-path: inset(0 20% 0 10% round 1.25rem);
}

.promo-slide.is-next {
  opacity: .35;
  transform: translateX(12%) rotateY(-25deg) translateZ(-120px) scale(.88);
  z-index: 1;
  clip-path: inset(0 10% 0 20% round 1.25rem);
}

/* سایر اسلایدها (دور) */
.promo-slide.is-far {
  opacity: .2;
  transform: translateZ(-220px) scale(.85);
  z-index: 0;
}

.promo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #e43636;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
  transition: transform .2s ease, box-shadow .2s ease;
}

.promo-nav:hover { transform: translateY(-50%) scale(1.06); box-shadow: 0 14px 30px rgba(0,0,0,.18) }
.promo-nav.prev { right: 1rem }
.promo-nav.next { left: 1rem }

.promo-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
}

.promo-dot {
  width: 10px;
  height: 10px;
  background: #e5e7eb;
  border-radius: 50%;
  transition: background .2s ease, transform .2s ease;
}

.promo-dot.is-active { background: #e43636; transform: scale(1.2) }

.promo-caption {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-weight: 800;
  font-size: 1.125rem;
  text-shadow: 0 10px 30px rgba(0,0,0,.45);
  background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,.15));
  padding: .5rem 1rem;
  border-radius: .75rem;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .promo-slider-track { height: 400px }
}

@media (max-width: 640px) {
  .promo-slider-track { height: 240px }
  .promo-nav { width: 40px; height: 40px }
  .promo-caption { font-size: .95rem; bottom: 1.25rem }
  .promo-slider-container { padding: 0 .5rem; perspective: 900px }
  .promo-slide { border-radius: 14px; box-shadow: 0 18px 30px rgba(0,0,0,.12) }
  .promo-slide.is-prev { transform: translateX(-6%) rotateY(14deg) translateZ(-70px) scale(.92) }
  .promo-slide.is-next { transform: translateX(6%) rotateY(-14deg) translateZ(-70px) scale(.92) }
}

@media (max-width: 480px) {
  .promo-slider-track { height: 200px }
  .promo-nav { width: 34px; height: 34px }
  .promo-slider-container { padding: 0 .5rem; perspective: 800px }
  .promo-slide.is-prev { transform: translateX(-4%) rotateY(12deg) translateZ(-60px) scale(.94) }
  .promo-slide.is-next { transform: translateX(4%) rotateY(-12deg) translateZ(-60px) scale(.94) }
}

@media (max-width: 360px) {
  .promo-slider-track { height: 170px }
  .promo-caption { display:none }
  .promo-slide.is-prev { transform: translateX(-3%) rotateY(8deg) translateZ(-50px) scale(.95) }
  .promo-slide.is-next { transform: translateX(3%) rotateY(-8deg) translateZ(-50px) scale(.95) }
}

