﻿/* ==========================================================================
   responsive.css
   این فایل را در انتهای CSS اصلی (بعد از همه‌ی قوانین) قرار بده،
   یا به‌صورت فایل جدا بعد از CSS اصلی در <head> لینک کن.
   Breakpoints:  1100 (لپ‌تاپ کوچک / تبلت افقی) | 900 (تبلت) | 650 | 480 (موبایل)
   ========================================================================== */

/* ---------- پایه ---------- */
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { max-width: 100%; }

/* ==========================================================================
   رفع تداخل نام کلاس‌ها (.dots و .dot در چند بخش تعریف شده بود)
   ========================================================================== */

/* نقطه‌های اسلایدر هیرو */
.hero .dots {
  position: static;
  top: auto; left: auto; right: auto; bottom: auto;
  width: auto; height: auto;
  opacity: 1;
  background: none;
}
.hero .dot {
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: var(--line);
}

/* دکوراسیون نقطه‌ای بخش خدمات */
.services-section > .dots {
  display: block;
  gap: 0;
  margin: 0;
  right: auto; left: 3%; bottom: 20px;
  width: 400px; height: 230px;
  max-width: 60%;
  opacity: .1;
  background-image: radial-gradient(#9fc2ec 2px, transparent 2px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* ==========================================================================
   HERO + لپ‌تاپ
   ========================================================================== */
.hero.gradient-background {
  height: auto;
  min-height: clamp(560px, 80vh, 780px);
  padding-top: 40px;
  padding-bottom: 40px;
  justify-content: center;
}
.hero-inner {
  max-width: 1500px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}
.hero-text,
.hero-visual { min-width: 0; }
.hero-text { margin-right: min(10%, 4vw); }

/* اندازه‌ی متن چرخان و ارتفاع آن همیشه با هم هماهنگ‌اند */
.rotator {
  --rot-fs: clamp(28px, 5.4vw, 45px);
  --rot-h: calc(var(--rot-fs) * 1.5);
  height: var(--rot-h);
}
.rotator-item {
  height: var(--rot-h);
  font-size: var(--rot-fs);
}
.sub { max-width: 460px; }

.cta-group { margin-top: 34px; }
.cta-group .cta { margin-top: 0; }

/* لپ‌تاپ */
.laptop-wrap {
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
}
.laptop-img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-user-drag: none;
  user-select: none;
}
.screen-clip {
  pointer-events: none;
  -webkit-clip-path: polygon(15.6% 13.5%, 83.7% 13.5%, 83.3% 73.7%, 16.3% 73.7%);
  clip-path: polygon(15.6% 13.5%, 83.7% 13.5%, 83.3% 73.7%, 16.3% 73.7%);
}

@media (max-width: 900px) {
  .hero.gradient-background { min-height: 0; padding-top: 110px; padding-bottom: 56px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-text {
    margin-right: 0;
    align-items: center;
    text-align: center;
  }
  .rotator-item { justify-content: center; }
  .sub { margin-inline: auto; min-height: 0; }
  .dots, .hero .dots { justify-content: center; }
  .cta-group { justify-content: center; }
  .hero-visual { margin-top: 0; order: -1; }
  .laptop-wrap { max-width: min(100%, 560px); }
}

@media (max-width: 480px) {
  .hero.gradient-background { padding: 13% 16px 44px; }
  .lead-line { font-size: 18px; }
  .cta { padding: 13px 22px; font-size: 14px; }
  .cta-group { gap: 12px; }
}



/* ==========================================================================
   پروژه‌های طراحی‌شده (pin-stage)
   ========================================================================== */
.img-box { width: min(70vw, 120vh); }

.sub-section[data-i] {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

@supports (height: 100svh) {
  .pin-stage { height: 500svh; }
  .sub-section,
  .pin-layer { height: 100svh; }
}

.sub-section h2 {
  right: 50%;
  transform: translateX(50%);
  white-space: nowrap;
  padding: 8px 18px;
  font-size: clamp(1rem, 2vw, 1.3rem);
}

@media (max-width: 1100px) {
  .img-box { width: 100% }
  .sub-section { padding: 24px 16px; }
  .sub-section .label {
    top: auto;
    bottom: max(28px, 5vh);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(92vw, 340px);
    text-align: center;
    padding: 12px 16px;
    border-radius: 14px;
    z-index: 10;
  }
  .sub-section .label br { display: none; }
  .sub-section .label p + p { margin-top: 2px; }
  .sub-section .label a { display: inline-block; margin-top: 6px; }
}

/* عکس‌ها هنگام اسکرول از روی متن و کادر رد می‌شوند */
/* (این بلوک عمداً بعد از قانون z-index:10 بالا آمده تا آن را override کند) */
.sub-section h2,
.sub-section .label { z-index: 1; }
.img-box { z-index: 5; }

/* ==========================================================================
   سئو
   ========================================================================== */
.seo-hero__inner {
  max-width: min(82%, 1300px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
}
.seo-hero__content,
.seo-hero__visual { min-width: 0; }
.seo-hero__title { font-size: clamp(30px, 3.6vw, 48px); }
.seo-hero__actions { flex-wrap: wrap; }

@media (max-width: 900px) {
  .seo-hero { padding: 60px 16px; }
  .seo-hero__inner {
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .seo-hero__visual { min-height: 0; padding: 24px 20px; margin-top: 0; order: -1; }
  .float-badge { right: 0; }
  .float-icon--search { left: 0; }
  .float-icon--rocket { right: 0; }
  .seo-hero__desc { max-width: 100%; }
}

@media (max-width: 560px) {
  .seo-services { gap: 16px; justify-content: center; }
  .seo-services__item { width: 80px; }
  .seo-hero__actions .btn { padding: 12px 20px; }
}

/* ==========================================================================
   ساخت تیزر (اسلایدر ویدیو)
   ========================================================================== */
.wd-grid > * { min-width: 0; }

@media (max-width: 1000px) {
  .wd-section { padding: 64px 5vw; min-height: 0; }
  .wd-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .wd-media-wrap { order: -1; width: 100%; max-width: 640px; margin: 0 auto; }
  .wd-media { transform: none; }
  .wd-tabs { width: 100%; max-width: 640px; margin: 0 auto; }
  .wd-title { margin-right: 0; margin-bottom: 32px; }
}

@media (max-width: 480px) {
  .wd-tab { padding: 14px 16px; }
  .wd-media { border-radius: 18px; }
  .wd-media-caption { right: 14px; left: 14px; bottom: 12px; }
}

/* ==========================================================================
   باکس پشتیبانی (قبلاً همه‌چیز absolute بود)
   ========================================================================== */
.support-area1 { height: auto; padding: 53px 0 44px; }

.support-box1 {
  height: auto;
  min-height: 339px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  padding: 36px 4%;
  padding-right: 42%;
}

.title1,
.description1,
.features1,
.bottom1 {
  position: static;
  top: auto; left: auto; right: auto;
}
.title1 { font-size: clamp(18px, 2vw, 23px); line-height: 1.6; }
.description1 { font-size: clamp(13px, 1.2vw, 14px); line-height: 1.9; }

.features1 { display: flex; flex-wrap: wrap; gap: 14px 36px; }
.column1 { width: auto; gap: 14px; }
.bottom1 { flex-wrap: wrap; gap: 16px 30px; margin-top: 6px; }

.RequestR img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40%;
  height: auto;
  pointer-events: none;
}

@media (max-width: 1000px) {
  .support-area1 { padding: 40px 0; }
  .support-box1 {
    width: 92%;
    min-height: 0;
    padding: 28px 20px;
    align-items: center;
    text-align: center;
  }
  .RequestR { order: -1; width: 100%; }
  .RequestR img {
    position: static;
    display: block;
    margin: 0 auto;
    width: min(60%, 260px);
  }
  .features1 { justify-content: center; }
  .column1 { align-items: flex-start; }
  .bottom1 { justify-content: center; }
}

@media (max-width: 480px) {
  .features1 { flex-direction: column; align-items: center; gap: 12px; }
  .bottom1 { flex-direction: column; align-items: center; }
  .ticket-button1 { max-width: 260px; }
}

/* ==========================================================================
   مشتریان (لوگوها)
   ========================================================================== */
.brands-section {
  max-width: min(83%, 1300px);
  gap: clamp(24px, 5vw, 60px);
}
.logo-grid { min-width: 0; }

@media (max-width: 900px) {
  .brands-section {
    flex-direction: column;
    max-width: 100%;
    padding: 56px 20px;
    gap: 36px;
  }
  .brands-text { flex: none; max-width: 100%; text-align: center; }
  .brands-text h2 { margin-bottom: 20px; font-size: 26px; }
  .logo-grid { flex: none; width: 100%; max-width: 100%; }
}

@media (max-width: 480px) {
  .logo-cell { padding: 12px; }
}

/* ==========================================================================
   درباره‌ی ما
   ========================================================================== */
.frx-about-container {
  max-width: min(80%, 1300px);
  flex-wrap: nowrap;
  gap: clamp(30px, 5vw, 60px);
}
.frx-about-text { flex: 1 1 0; min-width: 0; }
.zx-about-visual { flex: 1 1 0; min-width: 0; width: auto; max-width: 720px; }
.frx-about-title { font-size: clamp(26px, 3vw, 34px); }

@media (max-width: 900px) {
  .frx-about-section { padding: 60px 0; }
  .frx-about-container {
    max-width: 100%;
    padding: 0 20px;
    flex-direction: column-reverse;
    flex-wrap: nowrap;
    gap: 44px;
  }
  .frx-about-text { flex: none; width: 100%; }
  .zx-about-visual { flex: none; width: 100%; max-width: 560px; margin: 0 auto 30px; }
  .zx-blob { inset: -3%; }
}

/* ==========================================================================
   نظرات مشتریان
   ========================================================================== */
.wsat-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.wsat-card { min-width: 0; }
.wsat-waveform { gap: 2px; min-width: 0; }
.wsat-bar { flex: 1 1 0; min-width: 1px; max-width: 3px; }

@media (max-width: 640px) {
  .wsat-section { padding: 44px 16px; }
  .wsat-title { font-size: 22px; line-height: 1.6; }
}

/* ==========================================================================
   صفحه‌ی تماس
   ========================================================================== */
@media (max-width: 900px) {
  #contact { width: 90%; flex-wrap: wrap; }
  .contact1 { width: 100%; margin: 3% 0; }
}