/* ==========================================
   SAMAPARDAZ - Home Page Styles
   ========================================== */

/* Overlay gradient on hero */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,17,42,0.25) 0%,
    rgba(8,17,42,0.1) 50%,
    rgba(8,17,42,0.7) 90%,
    rgba(8,17,42,1) 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* Hero Text Content */
.hero-content {
  position: absolute;
  bottom: 120px;
  right: 80px;
  z-index: 5;
  max-width: 600px;
  direction: rtl;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(246,139,13, 0.15);
  border: 1px solid rgba(246,139,13, 0.35);
  border-radius: 50px;
  font-size: 0.78rem;
  color: var(--gold-light);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s 0.3s, transform 0.6s 0.3s;
}

.hero-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-gold 2s infinite;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s 0.5s, transform 0.7s 0.5s;
}

.hero-title span {
  color: var(--gold);
  display: block;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--white-80);
  line-height: 1.85;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s 0.7s, transform 0.7s 0.7s;
}

.hero-actions {
  display: flex;
  gap: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s 0.9s, transform 0.7s 0.9s;
}

.hero-content.loaded .hero-tag,
.hero-content.loaded .hero-title,
.hero-content.loaded .hero-subtitle,
.hero-content.loaded .hero-actions {
  opacity: 1;
  transform: translateY(0);
}

.btn-primary {
  padding: 14px 32px;
  background: var(--gold);
  color: var(--navy-dark);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(246,139,13,0.4);
}

.btn-secondary {
  padding: 14px 32px;
  background: transparent;
  color: var(--navy-dark);
  font-family: var(--font-main);
  font-size: 0.95rem;
  border: 1.5px solid rgba(13,27,62,0.3);
  border-radius: 50px;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(246,139,13,0.08);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 1;
  transition: opacity 0.4s;
}

.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 13px;
  position: relative;
}

.scroll-mouse::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollBounce 1.8s infinite;
}

.scroll-indicator span {
  font-size: 0.7rem;
  color: var(--white-60);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Frame progress bar */
.frame-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.1);
  z-index: 6;
}

.frame-progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--gold-dark), var(--gold-light));
  width: 0%;
  transition: width 0.1s linear;
}

/* Frame counter */
.frame-counter {
  position: absolute;
  bottom: 50px;
  left: 80px;
  z-index: 6;
  font-size: 0.75rem;
  color: var(--white-60);
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}

.frame-counter .current {
  color: var(--gold-light);
  font-weight: 700;
  font-size: 1rem;
}

/* ==========================================
   STATS STRIP
   ========================================== */

.stats-strip {
  background: #fff;
  border-top: 1px solid rgba(13,27,62,0.08);
  border-bottom: 1px solid rgba(13,27,62,0.08);
  padding: 40px 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 20px;
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(13,27,62,0.1);
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
  direction: ltr;
  display: block;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(13,27,62,0.6);
}

/* ==========================================
   INTRO SECTION
   ========================================== */

.intro-section {
  padding: 120px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  overflow: hidden;
}

.intro-visual {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 20px;
  overflow: hidden;
}

.intro-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-visual-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #dce4f0 0%, #c5d2e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  border-radius: 20px;
}

.intro-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--gold);
  color: var(--navy-dark);
  padding: 20px 24px;
  border-radius: 16px;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 20px 40px rgba(246,139,13,0.35);
}

.intro-badge .num {
  font-size: 2rem;
  line-height: 1;
  display: block;
}

.intro-badge .lbl {
  font-size: 0.75rem;
}

/* ==========================================
   PRODUCTS PREVIEW
   ========================================== */

.products-section {
  padding: 100px 80px;
  background: #fff;
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 60px;
}

.product-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
  cursor: pointer;
  transition: transform 0.4s, box-shadow 0.4s;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.product-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: transform 0.6s ease;
}

.product-card:hover .product-card-bg {
  transform: scale(1.05);
}

.product-card-bg.type-a {
  background: linear-gradient(135deg, #1e3a6e 0%, #2e5ba8 100%);
}

.product-card-bg.type-b {
  background: linear-gradient(135deg, #233d7a 0%, #1e3a6e 100%);
}

.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,17,42,0.9) 0%, transparent 60%);
  z-index: 1;
}

.product-card-content {
  position: relative;
  z-index: 2;
}

.product-card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.product-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.product-card-desc {
  font-size: 0.875rem;
  color: var(--white-80);
  line-height: 1.7;
  margin-bottom: 20px;
}

.product-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-light);
  font-size: 0.875rem;
  font-weight: 700;
  transition: gap 0.3s;
}

.product-card:hover .product-card-link {
  gap: 14px;
}

/* ==========================================
   SERVICES SECTION
   ========================================== */

/* ==========================================
   CLIENTS STRIP
   ========================================== */

.clients-strip {
  padding: 60px 80px;
  background: #fff;
  overflow: hidden;
}

.logo-marquee { overflow: hidden; direction: ltr; }
.logo-marquee-track { display: flex; width: max-content; will-change: transform; }
.logo-marquee-set { display: flex; flex-shrink: 0; align-items: center; }

.clients-strip .logo-cloud {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid rgba(13,27,62,0.15);
  border-radius: 8px;
  background: transparent;
}
.logo-cloud-beam {
  position: absolute; inset: -1px; border-radius: inherit; border: 1px solid transparent; pointer-events: none; overflow: hidden;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.logo-cloud-beam-dot {
  position: absolute; left: 0; top: 0; width: 100px; height: 100px; margin: -50px 0 0 -50px; border-radius: 50%;
  background: radial-gradient(circle, #9c40ff 0%, #ffaa40 35%, rgba(255,170,64,0) 70%);
  will-change: transform;
}
.logo-cloud-title {
  position: absolute; left: 0; right: 0; top: 0; transform: translateY(-50%);
  display: flex; justify-content: center; padding: 0 40px; pointer-events: none;
}
.logo-cloud-title p {
  margin: 0; padding: 0 24px; text-align: center; direction: rtl;
  font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; color: rgba(13,27,62,0.8);
}
#logo-cloud-wave {
  background-image: linear-gradient(90deg, currentColor 0%, currentColor 45%, #ffaa40 47%, #9c40ff 50%, #ffaa40 53%, currentColor 55%, currentColor 100%);
  background-size: 250% 100%; background-repeat: no-repeat; background-position: 0% center;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.logo-cloud-body { padding: 48px 40px 40px; min-width: 0; }
.logo-cloud-body .logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.logo-cloud-body .logo-marquee-set img { height: 56px; width: auto; flex-shrink: 0; object-fit: contain; user-select: none; }
@media (max-width: 768px) { .logo-cloud-body { padding: 40px 16px 28px; } .logo-cloud-title p { font-size: 0.95rem; padding: 0 12px; } }

/* ==========================================
   CTA SECTION
   ========================================== */

.cta-section {
  padding: 100px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(246,139,13,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-title span { color: var(--gold); }

.cta-desc {
  font-size: 1rem;
  color: rgba(13,27,62,0.65);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.85;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* ==========================================
   KEYFRAMES
   ========================================== */

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  80% { transform: translateX(-50%) translateY(10px); opacity: 0; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================
   RESPONSIVE HOME
   ========================================== */

@media (max-width: 1024px) {
  .intro-section {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 80px 50px;
  }
  .product-cards { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); padding: 40px; }
  .hero-content { right: 50px; bottom: 100px; }
  .frame-counter { left: 50px; }
}

@media (max-width: 768px) {
  .hero-content {
    right: 20px;
    left: 20px;
    bottom: 80px;
  }
  .stats-strip { padding: 30px 20px; gap: 0; }
  .intro-section { padding: 60px 20px; }
  .products-section, .cta-section, .clients-strip {
    padding: 60px 20px;
  }
  .frame-counter { left: 20px; bottom: 40px; }
  .hero-actions { flex-direction: column; }
  .cta-actions { flex-direction: column; align-items: center; }
}

/* بخش مشتریان: همان طرح قبلی با گرادینت خیلی کمرنگ و متحرک (برچسب عنوان همان گرادینت را دارد تا یکپارچه بماند) */
.clients-strip, .logo-cloud-title p {
  background-image: linear-gradient(120deg, #f3f5fa, #fafbfd, #eef1f7, #f8f9fc, #f3f5fa);
  background-size: 3000px 1600px;
  background-attachment: fixed;
  animation: softShift 14s ease-in-out infinite;
}
@keyframes softShift {
  0%   { background-position: 0 0; }
  50%  { background-position: -1500px 0; }
  100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) { .clients-strip, .logo-cloud-title p { animation: none; } }
/* بدون transform تا background-attachment: fixed برچسب عنوان درست هم‌رنگ پس‌زمینه بماند */
.logo-cloud-title { top: auto; bottom: 100%; transform: none; margin-bottom: -15px; }

/* ==========================================
   PURCHASE STEPS — صفحه قفل می‌شود و با اسکرول مرحله‌ها جلو می‌روند
   ========================================== */
.steps-lock { position: relative; height: calc(100vh + 1500px); height: calc(100dvh + 1500px); background: #fff; }
.steps-sticky {
  position: sticky; top: 0; height: 100vh; height: 100dvh; box-sizing: border-box;
  display: flex; flex-direction: column; justify-content: center; gap: 12vh;
  padding: 100px 80px 60px;
}
.steps-head { text-align: right; }
.steps-head .section-title { margin-bottom: 0; }
.steps-track-wrap { position: relative; width: 100%; direction: rtl; }
.steps-line { position: absolute; top: 34px; right: 16.667%; left: 16.667%; height: 5px; background: #e5e7eb; border-radius: 5px; overflow: hidden; }
.steps-line-fill { position: absolute; top: 0; bottom: 0; right: 0; width: 0; background: #1a5cff; border-radius: 5px; }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.step-item { display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.step-dot {
  width: 68px; height: 68px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #eef0f3; color: #6b7280; font-weight: 700; font-size: 1.6rem; border: 2px solid #dfe2e7;
  transition: background .4s, color .4s, border-color .4s, box-shadow .4s, transform .4s; position: relative; z-index: 1;
}
.step-label { font-size: clamp(1.05rem, 2vw, 1.6rem); color: #6b7280; transition: color .4s; }
.step-item.active .step-dot { background: #1a5cff; border-color: #1a5cff; color: #fff; box-shadow: 0 0 0 12px rgba(26,92,255,0.15); transform: scale(1.12); }
.step-item.active .step-label { color: var(--navy-dark, #0d1b3e); font-weight: 700; }
.step-item.done .step-dot { background: #1a5cff; border-color: #1a5cff; color: #fff; }
.step-item.done .step-label { color: var(--navy-dark, #0d1b3e); }
@media (max-width: 1024px) { .steps-sticky { padding: 90px 50px 50px; } }
@media (max-width: 768px) {
  .steps-sticky { padding: 80px 20px 40px; }
  .steps-line { top: 24px; height: 4px; }
  .step-dot { width: 48px; height: 48px; font-size: 1.1rem; }
  .step-item.active .step-dot { box-shadow: 0 0 0 8px rgba(26,92,255,0.15); }
  .step-item { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { .steps-lock { height: auto; } .steps-sticky { position: static; height: auto; } }

/* ==========================================
   SERVICES — ۵ تصویر تمام‌عرض؛ صفحه قفل می‌شود و با اسکرول عمودیِ موس، تصاویر افقی جابه‌جا می‌شوند
   ========================================== */
.svc-scroll { position: relative; background: #fff; height: calc(100vh + 240vh); height: calc(100dvh + 240vh); }
.svc-sticky {
  position: sticky; top: 0; height: 100vh; height: 100dvh; box-sizing: border-box;
  display: flex; flex-direction: column; padding-top: 100px; overflow: hidden;
}
.svc-head { padding: 22px 80px 18px; text-align: right; flex: 0 0 auto; }
.svc-head .section-label { margin-bottom: 4px; }
.svc-head .section-title { margin: 0; }
.svc-stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; background: #0d1b3e; }
.svc-track {
  position: absolute; top: 0; bottom: 0; right: 0; width: 500%; display: flex; direction: rtl;
  will-change: transform; transform: translate3d(0,0,0);
}
.svc-slide { position: relative; flex: 0 0 20%; height: 100%; display: block; color: #fff; text-decoration: none; overflow: hidden; }
.svc-slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.svc-slide-caption {
  position: absolute; z-index: 2; top: 50%; right: 80px; width: min(440px, 80%); text-align: right;
  transform: translateY(-50%) translateX(26px); opacity: 0; transition: opacity .55s ease, transform .7s cubic-bezier(.22,.61,.36,1);
}
.svc-slide.is-active .svc-slide-caption { opacity: 1; transform: translateY(-50%); }
.svc-slide-title { margin: 0 0 14px; font-size: clamp(1.7rem, 3.2vw, 2.8rem); font-weight: 700; line-height: 1.35; color: #fff; }
.svc-slide-text { margin: 0; font-size: clamp(.95rem, 1.25vw, 1.1rem); line-height: 2; color: rgba(255,255,255,.88); }
.svc-slide .chevron-anim { display: block; margin: 18px 0 0; color: var(--gold); overflow: visible; }
@media (max-width: 1024px) { .svc-head { padding-left: 50px; padding-right: 50px; } .svc-slide-caption { right: 50px; } }
@media (max-width: 768px) {
  .svc-sticky { padding-top: 84px; }
  .svc-head { padding: 16px 20px 14px; }
  .svc-slide-caption { right: 20px; top: auto; bottom: 64px; width: calc(100% - 40px); transform: translateY(26px); }
  .svc-slide.is-active .svc-slide-caption { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-scroll { height: auto; }
  .svc-sticky { position: static; height: auto; overflow: visible; }
  .svc-stage { overflow: visible; background: none; }
  .svc-track { position: static; width: auto; flex-direction: column; transform: none !important; }
  .svc-slide { flex: none; height: 62vh; }
  .svc-slide-caption { opacity: 1; transform: translateY(-50%); }
}

/* آیکن chevron-left انیمیشنی انتهای سمت چپ متن کارت‌های خدمات (AnimateIcons / Lucide، MIT) */
.chevron-trail { opacity: 0; }
.svc-slide:hover .chevron-arrow { animation: chev-arrow 1s ease-in-out; }
.svc-slide:hover .chevron-trail { animation: chev-trail 1s ease-out .08s; }
@keyframes chev-arrow { 0% { transform: translateX(0); } 20% { transform: translateX(1.5px); } 55% { transform: translateX(-4px); } 100% { transform: translateX(0); } }
@keyframes chev-trail { 0% { transform: translateX(0); opacity: 0; } 50% { opacity: .45; } 100% { transform: translateX(-9px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .chevron-arrow, .chevron-trail { animation: none !important; } }

.steps-sticky { justify-content: flex-start; padding-top: 110px; gap: 9vh; }
@media (max-width: 768px) { .steps-sticky { padding-top: 100px; } }

/* ==========================================
   SOFTWARE BAND — تصویر تمام‌عرض صفحات نرم‌افزار + ابر افقی پیوسته در پایین
   ========================================== */
.products-section { overflow: hidden; padding-bottom: 0; }
.sw-band { position: relative; margin: 10px -80px 0; line-height: 0; }
.sw-band-img { display: block; width: 100%; height: auto; }
.sw-clouds {
  --h: clamp(90px, 14vw, 220px);
  position: absolute; left: 0; right: 0; bottom: 14px; height: var(--h); pointer-events: none;
  background: url('../images/clouds-strip.webp') repeat-x 0 100% / calc(var(--h) * 5) var(--h);
  animation: sw-clouds-move 60s linear infinite;
}
@keyframes sw-clouds-move { from { background-position-x: 0; } to { background-position-x: calc(var(--h) * -5); } }
@media (max-width: 1024px) { .sw-band { margin-left: -50px; margin-right: -50px; } }
@media (max-width: 768px) { .sw-band { margin-left: -20px; margin-right: -20px; } }
@media (prefers-reduced-motion: reduce) { .sw-clouds { animation: none; } }

/* انیمیشن ورود: تصویر نرم‌افزارها آرام زوم می‌شود و ابرها از پایین بالا می‌آیند */
.sw-band-img.anim-scale { transform: scale(.88) translateY(30px); transform-origin: 50% 100%; transition: opacity 1.2s ease, transform 1.4s cubic-bezier(.22,.61,.36,1); }
.sw-clouds.anim-fade-up { transition: opacity 1.4s ease .5s, transform 1.4s cubic-bezier(.22,.61,.36,1) .5s; transform: translateY(60px); }
@media (prefers-reduced-motion: reduce) { .sw-band-img.anim-scale, .sw-clouds.anim-fade-up { opacity: 1; transform: none; transition: none; } }

/* پارالاکس موس (ملایم): تصویر کمی بزرگ‌تر تا لبه‌ها هنگام حرکت دیده نشوند */
.sw-band { --px: 0; --py: 0; }
.sw-band-img { scale: 1.04; translate: calc(var(--px) * -14px) calc(var(--py) * -8px); will-change: translate; }
.sw-clouds { translate: calc(var(--px) * 10px) calc(var(--py) * 4px); }

/* تصویر تمام‌عرض واقعی (بدون فضای سفید کناره‌ها) + شناوری بالا/پایین همراه با ابر */
.sw-band { overflow: hidden; }
.sw-float { direction: ltr; position: relative; animation: sw-bob 7s ease-in-out infinite; }
.sw-band-img { width: 122%; max-width: none; margin-left: -11%; }
.sw-clouds { left: -11%; right: -11%; }
@keyframes sw-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .sw-float { animation: none; } }

/* ==========================================
   INTRO MOSAIC — موزاییک مربع‌ها با fade نامنظم تصویر دوم
   ========================================== */
.intro-visual { aspect-ratio: 1826 / 1232; border-radius: 0; overflow: visible; }
.mosaic-scene { position: absolute; inset: 0; }
.mo-base { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mo-overlay { position: absolute; inset: 0; pointer-events: none; }
.mo-tile { position: absolute; background: #fff; border-radius: 7.6%; opacity: 0; will-change: opacity; }
.mo-overlay { pointer-events: none; }
.mosaic-scene { cursor: crosshair; }

/* انیمیشن ورود موزاییک: مربع‌ها پشت‌سرهم از راست و پایین وارد می‌شوند */
.mo-pics { position: absolute; inset: 0; pointer-events: none; }
.mo-pic { position: absolute; background-image: url('../images/mosaic.webp'); background-repeat: no-repeat; border-radius: 7.6%; }
.mosaic-scene.mo-prep .mo-base { visibility: hidden; }
.mosaic-scene:not(.mo-prep) .mo-pics { display: none; }
.mosaic-scene.mo-prep .mo-pic { opacity: 0; transform: translate(70px, 60px) scale(.85); }
.mosaic-scene.mo-prep.in .mo-pic { opacity: 1; transform: none;
  transition: opacity 1.5s ease var(--d), transform 1.9s cubic-bezier(.22,.61,.36,1) var(--d); }
.mo-overlay { z-index: 2; }

/* ۵ تصویر روی موزاییک ثابت: هر ۲ ثانیه یک تصویر fade in و fade out می‌شود (mosaic1..5.webp) */
.mo-cycle { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 1; }
.mo-cycle img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0;
  animation: mo-cycle 18s linear infinite; animation-delay: calc(var(--i) * 2s); }
@keyframes mo-cycle { 0% { opacity: 0; } 5.56% { opacity: 1; } 11.11% { opacity: 0; } 100% { opacity: 0; } }
.mosaic-scene.mo-prep .mo-cycle { opacity: 0; }
.mosaic-scene.mo-prep.in .mo-cycle { opacity: 1; transition: opacity .8s ease 2.6s; }
@media (prefers-reduced-motion: reduce) { .mo-cycle { display: none; } }

/* ==========================================
   TESTIMONIALS — کاروسل نظرات مشتریان
   ========================================== */
/* ==================== نظرات مشتریان ==================== */
.tm-section { padding: 90px 80px 100px; background: #fff; position: relative; overflow: hidden; }
.tm-head { text-align: center; margin-bottom: 56px; }
.tm-title { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; line-height: 1.4; color: #162560; margin: 0 0 14px; }
.tm-title .tm-word { color: #162560; }
.tm-title .tm-gold .tm-word { color: var(--gold); }
.tm-word { display: inline-block; opacity: 0; filter: blur(6px); transform: translateY(12px); }
.tm-title.in .tm-word { opacity: 1; filter: blur(0); transform: none; transition: opacity .5s ease calc(var(--wi) * .1s), filter .5s ease calc(var(--wi) * .1s), transform .5s ease calc(var(--wi) * .1s); }
.tm-sub { margin: 0 auto; max-width: 560px; color: rgba(13,27,62,0.6); line-height: 1.9; }

/* ---- carousel ---- */
.tm-carousel { max-width: 1200px; margin: 0 auto; }
.tm-viewport { overflow: hidden; direction: rtl; padding: 10px 0 14px; }
.tm-track { display: flex; align-items: stretch; position: relative; transition: transform .7s cubic-bezier(.22,.61,.36,1); }

/* ---- کارت‌ها: ارتفاع یکسان با flex stretch ---- */
.tm-card {
  box-sizing: border-box;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  /* 1. کارت‌های کناری شفاف‌تر (opacity بالاتر از قبل) */
  opacity: .62;
  transform: scale(.95);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1), box-shadow .3s;
}
.tm-card.is-center { opacity: 1; transform: scale(1); }

/* درون کارت: بالا (متن) + پایین (پروفایل) هم‌ارتفاع */
.tm-card-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  border-radius: 18px;
  box-shadow: none;
  overflow: hidden;
  border: 1px solid rgba(13,27,62,.1);
  transition: border-color .3s;
  background: #fff;
}
.tm-card.is-center .tm-card-inner { border-color: rgba(246,139,13,.28); }
.tm-card:hover .tm-card-inner { border-color: rgba(246,139,13,.38); }

/* 3. متن نظر: خوانایی بهتر */
.tm-text {
  flex: 1;
  margin: 0;
  padding: 32px 26px 22px;
  background: #fff;
  color: rgba(13,27,62,.82);
  line-height: 1.95;
  font-size: 1rem;
  position: relative;
}
/* 5. نقل‌قول: ظریف‌تر، موقعیت ثابت گوشه راست-بالا */
.tm-text::before {
  content: '\201C';
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--gold);
  opacity: .28;
  font-family: Georgia, serif;
  pointer-events: none;
}

/* 4. اطلاعات مشتری: چیدمان منظم */
.tm-who {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px 20px;
  background: rgba(13,27,62,.03);
  border-top: 1px solid rgba(13,27,62,.08);
  flex-shrink: 0;
}
.tm-avatar {
  width: 50px; height: 50px;
  border-radius: 10px;
  background: rgba(246,139,13,.12);
  color: var(--gold-dark);
  font-weight: 700; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
  border: 1px solid rgba(246,139,13,.2);
}
.tm-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tm-who-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tm-who strong { display: block; color: var(--navy-dark, #0d1b3e); font-size: .97rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-who span { display: block; color: rgba(13,27,62,.5); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 6. کنترل‌ها: فاصله متناسب */
.tm-controls { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 38px; }
.tm-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid rgba(13,27,62,.15);
  background: #fff; color: var(--navy-dark);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
  box-shadow: none;
}
.tm-btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; transform: translateY(-2px); }
.tm-dots { display: flex; gap: 7px; align-items: center; }
.tm-dot { width: 8px; height: 8px; border-radius: 8px; border: none; padding: 0; background: rgba(13,27,62,.18); cursor: pointer; transition: width .3s ease, background .3s ease; }
.tm-dot.active { width: 28px; background: var(--gold); }

/* ---- ریسپانسیو ---- */
@media (max-width: 1024px) { .tm-section { padding: 70px 40px 80px; } }
@media (max-width: 768px) { .tm-section { padding: 60px 0 70px; } .tm-controls { margin-top: 28px; } }

/* 7. موبایل: تک‌کارت + swipe آسان */
@media (max-width: 600px) {
  .tm-viewport { padding: 8px 0; }
  .tm-card { padding: 0 16px; touch-action: pan-y; }
  .tm-text { padding: 26px 20px 18px; font-size: .95rem; }
  .tm-who { padding: 14px 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .tm-word { opacity: 1; filter: none; transform: none; }
  .tm-track { transition: none; }
  .tm-card { transition: opacity .2s, transform .2s; }
}

/* کم کردن فاصلهٔ تیتر «نرم‌افزارهای تخصصی گردشگری» تا تصویر: بخش سفید بالای تصویر (۱۹۰۰×۶۸۷) بریده می‌شود
   (متناسب با عرض صفحه، چون تصویر هم با عرض صفحه مقیاس می‌شود) */
.sw-float { display: flow-root; }
.sw-band-img { margin-top: -9.5vw; }

/* روی موبایل بخش تیرهٔ سمت راست تصویر دیده شود تا متن خوانا بماند */
/* موبایل: سوژهٔ تصاویر در سمت چپ است (نیمهٔ راست تیره/خالی)؛ پس بخش چپ را نشان می‌دهیم و پایین را برای خوانایی متن تیره می‌کنیم */
@media (max-width: 768px) {
  .svc-slide-img { object-position: 14% center; }
  .svc-slide::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(8,17,42,.92) 0%, rgba(8,17,42,.7) 32%, rgba(8,17,42,0) 62%); }
}
