/* ========================================
   Zarin Bazaar - Become a Vendor Landing
   Clean • Fast • Responsive • RTL • Local Fonts
   Brand: #e03e2d | #f97316 | #e67e23
   ======================================== */

/* ----- Local Fonts (woff2 + font-display:swap) ----- */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ----- Reset & Base ----- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Vazirmatn', Tahoma, system-ui, sans-serif;
  background: #fff;
  color: #333;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  direction: rtl;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ----- Buttons ----- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e03e2d, #f97316);
  color: #fff !important;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 18px; font-weight: 800;
  padding: 16px 48px; border-radius: 18px;
  box-shadow: 0 10px 28px rgba(224,62,45,.32);
  transition: transform .35s ease, box-shadow .35s ease;
  position: relative; overflow: hidden; z-index: 1;
}
.btn-primary::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 0; height: 0; background: rgba(255,255,255,.22);
  border-radius: 50%; transform: translate(-50%,-50%);
  transition: width .55s ease, height .55s ease; z-index: -1;
}
.btn-primary:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(224,62,45,.42); }
.btn-primary:hover::after { width: 300px; height: 300px; }
.btn-primary:active { transform: translateY(-2px); }
.btn-large { font-size: 20px; padding: 18px 56px; }

/* ----- Section Titles ----- */
.section-title {
  text-align: center;
  font-size: clamp(26px, 5.5vw, 38px);
  font-weight: 800; color: #e03e2d;
  margin-bottom: 48px; position: relative;
}
.section-title::after {
  content: ''; display: block; width: 80px; height: 4px;
  background: linear-gradient(90deg, #e67e23, #e03e2d);
  margin: 14px auto 0; border-radius: 2px;
}

/* ----- Animations ----- */
.section-animate { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s ease; }
.section-animate.visible { opacity: 1; transform: translateY(0); }
.feature-card, .step-card, .doc-item {
  opacity: 0; transform: translateY(30px);
  transition: opacity .5s ease, transform .5s ease, box-shadow .3s ease;
}
.feature-card.visible, .step-card.visible, .doc-item.visible { opacity: 1; transform: translateY(0); }
.feature-card:nth-child(1) { transition-delay: .05s; }
.feature-card:nth-child(2) { transition-delay: .10s; }
.feature-card:nth-child(3) { transition-delay: .15s; }
.feature-card:nth-child(4) { transition-delay: .20s; }
.feature-card:nth-child(5) { transition-delay: .25s; }
.feature-card:nth-child(6) { transition-delay: .30s; }
.feature-card:nth-child(7) { transition-delay: .35s; }
.feature-card:nth-child(8) { transition-delay: .40s; }
.feature-card:nth-child(9) { transition-delay: .45s; }
.feature-card:nth-child(10) { transition-delay: .50s; }
.feature-card:nth-child(11) { transition-delay: .55s; }

/* ----- HERO ----- */
.hero { padding: 60px 0 40px; background: linear-gradient(180deg, #fff8f5 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-content { text-align: right; }
.hero-title { font-size: clamp(26px,4.5vw,36px); font-weight: 800; color: #e67e23; margin-bottom: 12px; line-height: 1.3; }
.hero-subtitle { font-size: clamp(20px,3.5vw,26px); font-weight: 800; color: #e03e2d; margin-bottom: 20px; line-height: 1.3; }
.hero-desc { font-size: 17px; color: #555; line-height: 1.9; margin-bottom: 32px; max-width: 480px; text-align: justify; }

.hero-video-wrapper { position: relative; }
.video-container { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 16px 48px rgba(0,0,0,.12); background: #000; }
.hero-video { width: 100%; display: block; border-radius: 20px; aspect-ratio: 16/9; object-fit: cover; }

.video-controls {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  opacity: 0; transition: opacity .3s ease;
}
.video-container:hover .video-controls, .video-controls.show { opacity: 1; }
.video-btn {
  background: none; border: none; color: #fff; cursor: pointer;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background .2s; flex-shrink: 0;
}
.video-btn:hover { background: rgba(255,255,255,.15); }
.video-btn svg { width: 22px; height: 22px; }
.video-progress { flex: 1; height: 6px; background: rgba(255,255,255,.3); border-radius: 3px; cursor: pointer; }
.progress-bar { width: 100%; height: 100%; border-radius: 3px; position: relative; }
.progress-filled { height: 100%; background: #f97316; border-radius: 3px; width: 0%; transition: width .1s linear; }

/* ----- WHY ZARIN ----- */
.why-zarin { padding: 70px 0; background: linear-gradient(135deg, #fff8f5 0%, #fff2eb 100%); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.feature-card {
  background: #fff; border-radius: 18px; padding: 24px 18px; text-align: center;
  border: 1.5px solid #ffdbcc; box-shadow: 0 6px 20px rgba(230,126,35,.1);
  transition: transform .35s ease, box-shadow .35s ease;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 14px 32px rgba(230,126,35,.18); }
.feature-icon {
  width: 52px; height: 52px; margin: 0 auto 14px; padding: 8px;
  background: linear-gradient(135deg, #fff2e8, #ffe0d0); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(230,126,35,.15);
}
.feature-icon img { width: 32px; height: 32px; object-fit: contain; }
.feature-title { font-size: 15px; font-weight: 700; color: #e03e2d; margin-bottom: 6px; line-height: 1.4; }
.feature-desc { font-size: 13px; color: #666; line-height: 1.55; }

/* ----- STEPS ----- */
.steps { padding: 70px 0; background: #fff; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.step-card {
  background: #fff; border: 1px solid #eee; border-radius: 18px;
  padding: 28px 16px 24px; text-align: center; position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,.05);
  transition: transform .35s ease, box-shadow .35s ease;
}
.step-card:hover { transform: translateY(-8px); box-shadow: 0 14px 32px rgba(0,0,0,.1); }
.step-card::before {
  content: attr(data-step); position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; background: #e03e2d; color: #fff;
  font-weight: 800; font-size: 15px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.step-icon { width: 48px; height: 48px; margin: 0 auto 14px; object-fit: contain; }
.step-title { font-size: 16px; font-weight: 700; color: #e03e2d; margin-bottom: 6px; }
.step-desc { font-size: 13.5px; color: #777; }

/* ----- DOCUMENTS ----- */
.docs { padding: 70px 0; background: #fafafa; }
.docs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.docs-column-title { text-align: center; font-size: 20px; font-weight: 700; color: #e03e2d; margin-bottom: 24px; }
.doc-list { display: flex; flex-direction: column; gap: 14px; }
.doc-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  background: #fff; border-radius: 14px; border-right: 5px solid transparent;
  transition: transform .3s ease, box-shadow .3s ease; font-size: 15px;
}
.doc-item:nth-child(1) { border-right-color: #4caf50; }
.doc-item:nth-child(2) { border-right-color: #ff9800; }
.doc-item:nth-child(3) { border-right-color: #f44336; }
.doc-item:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.doc-num {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 16px; flex-shrink: 0;
}
.num-green { background: #4caf50; }
.num-orange { background: #ff9800; }
.num-red { background: #f44336; }

/* ----- COMMISSION ----- */
.commission { padding: 70px 0; background: #fff; }
.commission-intro { text-align: center; color: #666; font-size: 16px; max-width: 700px; margin: -20px auto 40px; line-height: 1.8; }
.commission-table {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.08); max-width: 800px; margin: 0 auto;
}
.table-header, .table-row {
  display: grid; grid-template-columns: 1.4fr 1fr; padding: 14px 24px;
  text-align: center; font-size: 15.5px; align-items: center;
}
.table-header { background: #ffd700; color: #b71c1c; font-weight: 800; font-size: 17px; }
.table-row { border-bottom: 1px solid #eee; transition: background .25s; }
.table-row:nth-child(odd) { background: #fffaf0; }
.table-row:hover { background: #fff3cd; }
.table-row:last-child { border-bottom: none; }

/* ----- WHY NOT WEBSITE ----- */
.why-not-website { padding: 70px 0; background: linear-gradient(180deg, #fff8f5 0%, #fff 100%); }
.content-box { max-width: 860px; margin: 0 auto; }
.content-box > p { font-size: 16.5px; color: #444; line-height: 1.9; text-align: justify; margin-bottom: 36px; }
.reasons { display: grid; gap: 24px; }
.reason {
  background: #fff; border-radius: 16px; padding: 24px 28px;
  border-right: 4px solid #e03e2d; box-shadow: 0 4px 16px rgba(0,0,0,.05);
}
.reason h3 { font-size: 17px; font-weight: 700; color: #e03e2d; margin-bottom: 8px; }
.reason p { font-size: 15px; color: #555; line-height: 1.75; }

/* ----- FAQ ----- */
.faq { padding: 70px 0; background: #fafafa; }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff; border-radius: 16px; border: 1.5px solid #ffe0d0;
  overflow: hidden; transition: box-shadow .3s ease, border-color .3s ease;
}
.faq-item.active { border-color: #e03e2d; box-shadow: 0 8px 28px rgba(224,62,45,.12); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; font-size: 16px; font-weight: 700; color: #333; text-align: right;
  transition: color .25s ease;
}
.faq-item.active .faq-question { color: #e03e2d; }
.faq-icon { width: 22px; height: 22px; flex-shrink: 0; color: #e03e2d; transition: transform .35s ease; }
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-item.active .faq-answer { max-height: 300px; }
.faq-answer p { padding: 0 22px 20px; font-size: 15px; color: #555; line-height: 1.85; text-align: justify; }

/* ----- FINAL CTA ----- */
.final-cta { padding: 80px 0; background: linear-gradient(135deg, #e03e2d, #f97316); text-align: center; color: #fff; }
.final-cta h2 { font-size: clamp(26px,5vw,36px); font-weight: 800; margin-bottom: 12px; }
.final-cta p { font-size: 18px; margin-bottom: 32px; opacity: .95; }
.final-cta .btn-primary { background: #fff; color: #e03e2d !important; box-shadow: 0 10px 28px rgba(0,0,0,.2); }
.final-cta .btn-primary:hover { box-shadow: 0 16px 36px rgba(0,0,0,.28); }

/* ----- RESPONSIVE ----- */
@media (max-width: 991px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-content { text-align: center; order: 1; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-video-wrapper { order: 2; }
  .docs-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .hero { padding: 40px 0 30px; }
  .btn-primary { padding: 15px 40px; font-size: 17px; }
  .features-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 14px; padding: 8px 4px 24px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .features-grid::-webkit-scrollbar { display: none; }
  .feature-card { flex: 0 0 46%; scroll-snap-align: start; padding: 20px 14px; }
  .feature-icon { width: 46px; height: 46px; padding: 7px; }
  .feature-icon img { width: 28px; height: 28px; }
  .feature-title { font-size: 14px; }
  .feature-desc { font-size: 12.5px; }
  .steps-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .step-card { padding: 24px 12px 20px; }
  .step-icon { width: 42px; height: 42px; }
  .step-card::before { width: 28px; height: 28px; font-size: 13px; top: 8px; right: 8px; }
  .table-header, .table-row { padding: 12px 14px; font-size: 14px; }
  .table-header { font-size: 15px; }
  .reason { padding: 20px; }
  .faq-question { font-size: 15px; padding: 16px 18px; }
  .faq-answer p { padding: 0 18px 16px; font-size: 14px; }
}

/* ----- Big Play Button (وسط ویدیو) ----- */
.big-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: rgba(224, 62, 45, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 5;
  transition: transform 0.25s ease, background 0.25s ease, opacity 0.25s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.big-play-btn svg {
  width: 32px;
  height: 32px;
  margin-left: 3px; /* کمی به راست برای حس بهتر */
}
.big-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: #e03e2d;
}
.big-play-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

/* تنظیم ترتیب کنترل‌ها در RTL */
.video-controls {
  flex-direction: row; /* در RTL این باعث می‌شود Play سمت چپ بیاید */
}

/* وقتی ویدیو فول‌اسکرین است */
.hero-video:fullscreen,
.hero-video:-webkit-full-screen {
  object-fit: contain;
  background: #000;
  width: 100%;
  height: 100%;
}

.video-container:fullscreen .big-play-btn,
.video-container:-webkit-full-screen .big-play-btn,
.hero-video:fullscreen ~ .big-play-btn,
.hero-video:-webkit-full-screen ~ .big-play-btn {
  display: none !important;
}

/* در حالت فول‌اسکرین کنترل‌ها همیشه دیده شوند */
.video-container:fullscreen .video-controls,
.video-container:-webkit-full-screen .video-controls {
  opacity: 1;
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .feature-card { flex: 0 0 72%; }
  .steps-grid { grid-template-columns: 1fr; }
  .btn-large { font-size: 17px; padding: 16px 36px; }
}
