/* ==========================================================================
   VIMO — Landing Page
   assets/css/styles.css
   ========================================================================== */

/* ---------- 1. فونت ---------- */
/* IRANSansX فقط در دو وزن Regular و Bold موجود است. با بازه‌ی وزن،
   وزن‌های ۵۰۰ و ۸۰۰ هم بدون بولد مصنوعی به نزدیک‌ترین فایل نگاشت می‌شوند. */
@font-face {
  font-family: "IRANSansX";
  src: url("../fonts/IRANSansX-Regular.woff2") format("woff2"),
       url("../fonts/IRANSansX-Regular.woff") format("woff");
  font-weight: 100 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANSansX";
  src: url("../fonts/IRANSansX-Bold.woff2") format("woff2"),
       url("../fonts/IRANSansX-Bold.woff") format("woff");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

/* وزیرمتن (متن‌باز) در assets/fonts/ باقی مانده است.
   اگر خواستی به آن برگردی، دو @font-face بالا را به Vazirmatn-400/700 اشاره بده. */

/* ---------- 2. توکن‌های طراحی ---------- */
:root {
  --font: "IRANSansX", "Segoe UI", Tahoma, system-ui, sans-serif;

  /* رنگ برند — قرمز اصلی */
  --red-300: #ff8188;
  --red-400: #ff4b54;
  --red-500: #e11d2a;
  --red-600: #c0111d;
  --red-700: #8e0a14;
  --green-500: #12a75c;

  --maxw: 1180px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --pill: 999px;

  /* مقیاس تایپوگرافی — به‌جای اندازه‌های پراکنده، همه از این توکن‌ها */
  --fs-h2: clamp(1.6rem, 3.4vw, 2.4rem);
  --fs-h3: 1.12rem;
  --fs-h3-lg: 1.3rem;
  --text-xs: 0.8rem;
  --text-sm: 0.88rem;
  --text-md: 0.95rem;
  --text-lg: 1.02rem;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 72px;
}

/* تم تیره — تنها تم سایت */
:root {
  color-scheme: dark;
  --bg: #08080a;
  --bg-2: #0d0d10;
  --surface: #131317;
  --surface-2: #1a1a20;
  --border: #26262d;
  --border-strong: #34343d;
  --text: #f4f4f6;
  --text-2: #b6b6bf;
  --text-3: #7e7e89;
  --brand: var(--red-500);
  --brand-hover: var(--red-400);
  --on-brand: #ffffff;
  --glow: rgba(225, 29, 42, 0.42);
  --grid-line: rgba(255, 255, 255, 0.045);
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.9);
  --header-bg: rgba(8, 8, 10, 0.72);
  --danger: var(--red-400);
  /* پرده‌ی خوانایی روی عکس هیرو */
  --hero-veil-strong: rgba(8, 8, 10, 0.95);
  --hero-veil-mid: rgba(8, 8, 10, 0.86);
  --hero-veil-soft: rgba(8, 8, 10, 0.45);
}


/* ---------- 3. ریست و پایه ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  /* آبیِ پیش‌فرض اندروید موقع لمس، خارج از برند است */
  -webkit-tap-highlight-color: rgba(225, 29, 42, 0.18);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

/* بدون letter-spacing: حروف فارسی سرهم‌اند و فاصله‌ی حرفی اتصالشان را می‌شکند.
   وزن ۷۰۰ چون فایل Bold همان است که واقعاً رندر می‌شود. */
h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.45;
  font-weight: 700;
}

/* بخش‌های جای‌گیر (لوگو/نظرات) تا رسیدن داده‌ی واقعی مخفی‌اند */
[hidden] {
  display: none !important;
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  max-width: 100%;
  display: block;
}
img {
  max-width: 100%;
  /* بدون این، ویژگی height در تگ img نسبت تصویر را خراب می‌کند */
  height: auto;
  display: block;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--brand);
  color: var(--on-brand);
}

/* اعداد فارسی در متن‌های آماری */
.num {
  font-variant-numeric: tabular-nums;
}

/* ---------- 4. اجزای عمومی ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  /* env در گوشی‌های ناچ‌دار حالت افقی، محتوا را از زیر بریدگی بیرون می‌آورد */
  padding-inline: max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-left));
}

.section {
  padding-block: clamp(64px, 9vw, 120px);
  position: relative;
}
.section--alt {
  background: var(--bg-2);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 660px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section-head h2 {
  font-size: var(--fs-h2);
  margin-bottom: 14px;
}
.section-head p {
  color: var(--text-2);
  font-size: var(--text-lg);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: var(--text-xs);
  font-weight: 400;
  margin-bottom: 18px;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--glow);
}

.grad-text {
  background: linear-gradient(105deg, var(--red-400), var(--red-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* دکمه‌ها */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: var(--text-md);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
    border-color 0.2s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn--primary {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 10px 26px -10px var(--glow);
}
.btn--primary:hover {
  background: var(--brand-hover);
  box-shadow: 0 16px 34px -10px var(--glow);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn--sm {
  padding: 9px 18px;
  font-size: var(--text-sm);
}
.btn--block {
  width: 100%;
}

/* ---------- 5. هدر ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.header.is-stuck {
  border-bottom-color: var(--border);
}
.header .container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.22rem;
  flex: none;
  /* ناحیه‌ی لمسی ۴۴px بدون تغییر ارتفاع بصری */
  padding-block: 7px;
}
.brand__mark {
  width: 36px;
  height: auto;
  color: var(--brand);
  flex: none;
}
.brand__sub {
  font-size: 0.62rem;
  font-weight: 400;
  color: var(--text-3);
  letter-spacing: 0.34em;
  margin-top: -6px;
  display: block;
}

.nav {
  margin-inline-start: auto;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__list a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--pill);
  font-size: var(--text-md);
  color: var(--text-2);
  font-weight: 400;
  transition: color 0.2s, background-color 0.2s;
}
.nav__list a:hover {
  color: var(--text);
  background: var(--surface-2);
}
.nav__list a.is-active {
  color: var(--brand);
  background: var(--surface-2);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.icon-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.icon-btn svg {
  width: 19px;
  height: 19px;
}

/* آیکن تم: بسته به تم فعال یکی نمایش داده می‌شود */

.burger {
  display: none;
}

/* ---------- 6. منوی موبایل ---------- */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 99;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 18px 20px 26px;
  transform: translateY(-115%);
  transition: transform 0.35s var(--ease);
  box-shadow: var(--shadow);
}
.mobile-nav.is-open {
  transform: translateY(0);
}
.mobile-nav a {
  display: block;
  padding: 13px 12px;
  border-radius: var(--radius-sm);
  font-weight: 400;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-of-type {
  border-bottom: 0;
}
.mobile-nav .btn {
  margin-top: 14px;
}

/* ---------- 7. هیرو ---------- */
/* عکس تیم به‌عنوان پس‌زمینه‌ی تمام‌عرض؛ لایه‌ی گرادیان زیر متن، خوانایی را در هر دو تم تضمین می‌کند */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(560px, 78vh);
  display: flex;
  align-items: center;
  padding-block: clamp(64px, 9vw, 104px);
  /* contain به‌جای cover: کل عکس دیده می‌شود و بریده نمی‌شود.
     عکس سمت چپ می‌نشیند (مقابل ستون متن که در RTL سمت راست است). */
  background-color: var(--bg);
  background-image: url("../img/hero-team.webp");
  background-size: contain;
  background-position: left center;
  background-repeat: no-repeat;
}

/* گرادیان خوانایی: از سمت شروع (راست در RTL) تیره، به سمت عکس شفاف */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* پرده تا انتهای ستون متن تقریباً کدر می‌ماند و فقط در یک‌سوم چپ عکس را آزاد می‌کند.
     نقاط توقف با محاسبه‌ی بدترین‌حالت کنتراست (پیکسل سفید زیر متن) انتخاب شده‌اند. */
  background:
    linear-gradient(to left, var(--hero-veil-strong) 0%, var(--hero-veil-strong) 48%,
      var(--hero-veil-mid) 60%, var(--hero-veil-soft) 72%, transparent 84%),
    linear-gradient(to top, var(--hero-veil-mid) 0%, transparent 34%);
}

/* هاله‌ی قرمز برند روی عکس */
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block-start: -20%;
  inset-inline-start: -10%;
  width: min(720px, 90vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--glow) 0%, transparent 66%);
  filter: blur(60px);
  opacity: 0.7;
  pointer-events: none;
}

.hero .container {
  position: relative;
}
.hero__text {
  max-width: 40rem;
}

.hero__title {
  font-size: clamp(2rem, 5.2vw, 3.5rem);
  line-height: 1.35;
  margin-bottom: 20px;
}
.hero__lead {
  color: var(--text-2);
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  max-width: 52ch;
  margin-bottom: 30px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}
.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  /* روی عکس، خاکستریِ کم‌رنگ (--text-3) کنتراست را رد می‌کند */
  color: var(--text-2);
  font-size: var(--text-sm);
}
.hero__note svg {
  width: 17px;
  height: 17px;
  color: var(--green-500);
  flex: none;
}

/* ---------- 8. نوار آمار ---------- */
.stats {
  border-block: 1px solid var(--border);
  background: var(--bg-2);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-strong);
}
.stat {
  background: var(--bg-2);
  padding: 30px 18px;
  text-align: center;
}
.stat__val {
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  font-weight: 700;
  color: var(--brand);
  line-height: 1.25;
}
.stat__label {
  color: var(--text-2);
  font-size: var(--text-sm);
}

/* ---------- 9. کارت‌های سرویس ---------- */
.cards {
  display: grid;
  gap: 18px;
}
.cards--2 {
  grid-template-columns: repeat(2, 1fr);
}
.cards--3 {
  grid-template-columns: repeat(3, 1fr);
}
.cards--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(to left, transparent, var(--brand), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.card:hover::before {
  opacity: 1;
}

.card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--glow), transparent);
  border: 1px solid var(--border);
  color: var(--brand);
  margin-bottom: 18px;
}
.card__icon svg {
  width: 23px;
  height: 23px;
}

/* آیکن تصویری (رندرهای سه‌بعدی ابزارهای ویمویار) — PNG شفاف، بدون قاب */
.card__icon--img {
  width: 84px;
  height: 84px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  margin-bottom: 14px;
}
.card__icon--img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px var(--glow));
  transition: transform 0.4s var(--ease);
}
.card:hover .card__icon--img img {
  transform: scale(1.08) rotate(-3deg);
}
.card h3 {
  font-size: var(--fs-h3);
  margin-bottom: 9px;
}
.card p {
  color: var(--text-2);
  font-size: var(--text-md);
}
.card__tag {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 12px;
  border-radius: var(--pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-3);
  font-size: var(--text-xs);
}

/* «چرا ویمو» بدون قاب کارت — شکستن یکنواختی شش بخش کارتی پشت‌سرهم */
#why .cards--3 {
  gap: 26px 34px;
}
#why .card {
  background: none;
  border: 0;
  padding: 8px 0;
  box-shadow: none;
  overflow: visible;
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 16px;
  row-gap: 2px;
}
#why .card::before {
  display: none;
}
#why .card:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}
#why .card .card__icon {
  grid-column: 1;
  grid-row: 1 / 3;
  margin-bottom: 0;
}
#why .card h3,
#why .card p {
  grid-column: 2;
}

/* آیکن‌های جهت‌دار که در RTL باید رو به جلو (چپ) باشند */
.icon-flip {
  transform: scaleX(-1);
}

/* کارت بزرگ ستون خدمات */
.pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.pillar:hover {
  transform: translateY(-5px);
  border-color: var(--brand);
  box-shadow: var(--shadow);
}
.pillar__num {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  font-size: 1.1rem;
}
.pillar h3 {
  font-size: var(--fs-h3-lg);
  margin-bottom: 10px;
}
.pillar p {
  color: var(--text-2);
  margin-bottom: 16px;
}
.pillar__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pillar__list li {
  padding: 5px 13px;
  border-radius: var(--pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-2);
}

/* ---------- 9.5. نوار لوگوی مشتری‌ها ---------- */
.logos {
  padding-block: 44px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.logos__title {
  text-align: center;
  color: var(--text-3);
  font-size: var(--text-sm);
  margin-bottom: 26px;
}
.logos__track {
  display: flex;
  gap: 56px;
  align-items: center;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.logos:hover .logos__track {
  animation-play-state: paused;
}
@keyframes marquee {
  to {
    transform: translateX(50%);
  }
}
.logos__mask {
  -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);
}
.logos__item {
  flex: none;
  height: 40px;
  display: grid;
  place-items: center;
  padding-inline: 8px;
  color: var(--text-2);
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
  opacity: 0.7;
  filter: grayscale(1);
  transition: opacity 0.25s var(--ease), filter 0.25s var(--ease);
}
.logos__item:hover {
  opacity: 1;
  filter: none;
}
.logos__item img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

/* ---------- 9.6. نوار CTA میان‌صفحه ---------- */
.cta-band {
  margin-top: clamp(40px, 6vw, 68px);
  padding: clamp(24px, 3.5vw, 34px) clamp(24px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.cta-band h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.cta-band p {
  color: var(--text-2);
  font-size: var(--text-md);
}
/* نسخه‌ی کم‌صداتر — درست بالای بخش قرمز تمام‌عرض، تا سه CTA قرمز پشت‌سرهم نشود */
.cta-band--slim {
  padding-block: 18px;
  margin-top: clamp(28px, 4vw, 44px);
  background: color-mix(in srgb, var(--brand) 5%, var(--surface));
}
@supports not (background: color-mix(in srgb, red 5%, white)) {
  .cta-band--slim {
    background: var(--surface);
  }
}

/* ---------- 9.7. بخش تمام‌عرض قرمز ---------- */
.band {
  position: relative;
  overflow: hidden;
  /* گرادیان به‌عنوان فالبک زیر تصویر می‌ماند؛ لایه‌ی تیره برای خوانایی متن سفید */
  background-color: var(--red-600);
  /* لایه‌ی تیره برای خوانایی متن سفید؛ گرادیان آخر فالبک تصویر است */
  background-image: linear-gradient(rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.32)),
    url("../img/band-bg.webp"),
    linear-gradient(135deg, var(--red-700), var(--red-500) 55%, var(--red-600));
  background-size: cover;
  background-position: center;
  color: #fff;
  padding-block: clamp(56px, 8vw, 92px);
  text-align: center;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000, transparent 75%);
  pointer-events: none;
}
.band__logo {
  width: 62px;
  margin: 0 auto 22px;
  color: #fff;
  opacity: 0.9;
}
.band h2 {
  position: relative;
  font-size: var(--fs-h2);
  margin-bottom: 14px;
}
.band p {
  position: relative;
  max-width: 60ch;
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--text-lg);
}
.band__cta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.band .btn--primary {
  background: #fff;
  color: var(--red-600);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.5);
}
.band .btn--primary:hover {
  background: #fff;
  color: var(--red-700);
}
.band .btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.band .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
  color: #fff;
}

/* ---------- 10. مراحل کار ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.step__num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--brand);
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 16px;
}
.step h3 {
  font-size: var(--fs-h3);
  margin-bottom: 8px;
}
.step p {
  color: var(--text-2);
  font-size: var(--text-md);
}
/* عدد فارسی بزرگِ محو پشت هر قدم — ریتم تایپوگرافیک بدون رنگ جدید */
.step {
  overflow: hidden;
  counter-increment: step;
}
.step::after {
  content: counter(step, persian);
  position: absolute;
  /* کاملاً داخل کادر — به کلیپِ overflow تکیه نمی‌کنیم */
  inset-inline-end: 12px;
  top: 4px;
  font-size: 4.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brand);
  opacity: 0.07;
  pointer-events: none;
}

/* ---------- 11. نظرات ---------- */
.quote {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.quote p {
  color: var(--text-2);
  font-size: var(--text-md);
  margin-bottom: 20px;
}
.quote__by {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quote__av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--brand);
  font-weight: 700;
  flex: none;
}
.quote__name {
  font-weight: 700;
  font-size: var(--text-md);
  line-height: 1.5;
}
.quote__role {
  color: var(--text-3);
  font-size: var(--text-xs);
  line-height: 1.5;
}

/* لینک‌های درون‌متنی (مراحل کار) */
.step p a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- 13. تماس ---------- */
.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}
.contact__info h2 {
  font-size: var(--fs-h2);
  margin-bottom: 14px;
}
.contact__info > p {
  color: var(--text-2);
  margin-bottom: 26px;
}
.contact__links {
  display: grid;
  gap: 10px;
}
.contact__link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.contact__link:hover {
  border-color: var(--brand);
  transform: translateX(-4px);
}
.contact__link svg {
  width: 20px;
  height: 20px;
  color: var(--brand);
  flex: none;
}
.contact__link span {
  font-size: var(--text-xs);
  color: var(--text-3);
  display: block;
  line-height: 1.5;
}
.contact__link b {
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.5;
}

.form {
  padding: clamp(24px, 3.5vw, 34px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 400;
  margin-bottom: 7px;
}
.field label .req {
  color: var(--brand);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea {
  min-height: 108px;
  resize: vertical;
}

/* تله‌ی ربات — باید نامرئی باشد ولی هیچ سرریزی نسازد.
   با left منفی نمی‌شود: در صفحه‌ی RTL مبدأ اسکرول سمت راست است و
   محتوای رفته به چپ، عرض اسکرول صفحه را همان‌قدر زیاد می‌کند. */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
/* سرگروه‌های قابل‌انتخاب در منوی سرویس (بولد فقط در مرورگرهای دسکتاپ اعمال می‌شود) */
#f-service option.opt-group {
  font-weight: 700;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--glow);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-3);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--red-500);
}
.field__err {
  display: none;
  color: var(--danger);
  font-size: var(--text-xs);
  margin-top: 6px;
}
.field.has-error .field__err {
  display: block;
}

.form__status {
  display: none;
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  text-align: center;
}
.form__status.is-ok {
  display: block;
  background: rgba(18, 167, 92, 0.12);
  border: 1px solid rgba(18, 167, 92, 0.4);
  color: var(--green-500);
}
.form__status.is-err {
  display: block;
  background: var(--glow);
  border: 1px solid var(--danger);
  color: var(--danger);
}
/* وضعیت «یک قدم مانده» — سفارش هنوز ارسال نشده */
.form__status.is-warn {
  display: block;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.5);
  color: #eab308;
}

/* پنل فالبک ایتا: متن سفارش + کپی + لینک واقعی چت (لینک واقعی پاپ‌آپ‌بلاک نمی‌شود) */
.form__panel {
  margin-top: 14px;
  padding: 16px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
}
.form__panel p {
  color: var(--text-2);
  font-size: var(--text-sm);
  margin-bottom: 10px;
}
.form__panel textarea {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  resize: vertical;
  font-size: var(--text-sm);
}
.form__panel-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.form__panel-actions .btn {
  flex: 1 1 auto;
}

/* ---------- 14. فوتر ---------- */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding-block: 52px 26px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr);
  gap: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--border);
}
.footer__about p {
  color: var(--text-2);
  font-size: var(--text-md);
  margin-block: 16px 20px;
  max-width: 42ch;
}
.footer h3 {
  font-size: var(--text-md);
  margin-bottom: 16px;
}
.footer__links {
  display: grid;
  gap: 2px;
}
.footer__links a {
  color: var(--text-2);
  font-size: var(--text-md);
  /* ناحیه‌ی لمسی ۴۴px بدون اینکه فاصله‌ی بصری زیاد شود */
  padding-block: 9px;
  transition: color 0.2s;
}
.footer__links a:hover {
  color: var(--brand);
}
.footer__domain {
  margin-top: 18px;
  font-size: var(--text-sm);
  color: var(--text-3);
  letter-spacing: 0.02em;
}

.socials {
  display: flex;
  gap: 10px;
}
.socials a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.socials a:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-3px);
}
.socials svg {
  width: 18px;
  height: 18px;
}
.footer__bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--text-3);
  font-size: var(--text-sm);
}

/* ---------- 15. دکمه بازگشت به بالا ---------- */
.to-top {
  position: fixed;
  inset-block-end: calc(24px + env(safe-area-inset-bottom));
  inset-inline-start: calc(24px + env(safe-area-inset-left));
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--brand);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all 0.3s var(--ease);
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top svg {
  width: 20px;
  height: 20px;
}

/* ---------- 16. انیمیشن ظاهر شدن ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 17. ریسپانسیو ---------- */
@media (max-width: 1024px) {
  .cards--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  /* در تبلت عکس زیر متن می‌رود تا هر دو کامل دیده شوند */
  .hero {
    min-height: auto;
    background-position: center bottom;
    background-size: min(100%, 560px) auto;
    padding-block: clamp(56px, 8vw, 88px) clamp(300px, 46vw, 420px);
  }
  .contact {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  /* دکمه‌ی «ثبت سفارش» عمداً می‌ماند — تنها CTA همیشه‌درمعرض موبایل است */
  .nav {
    display: none;
  }
  body.nav-open {
    overflow: hidden;
  }
  .burger {
    display: grid;
    width: 44px;
    height: 44px;
  }
  .header .container {
    justify-content: space-between;
  }
  .header__actions {
    margin-inline-start: auto;
  }
  .cards--2,
  .cards--3 {
    grid-template-columns: 1fr;
  }
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .cards--4 {
    grid-template-columns: 1fr;
  }
  #why .card {
    grid-template-columns: 44px 1fr;
  }
  .cta-band {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .cta-band .btn {
    width: 100%;
  }
  .logos__track {
    gap: 36px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .pillar {
    grid-template-columns: 1fr;
  }
  .hero__cta .btn {
    flex: 1 1 100%;
  }
  /* موبایل: عکس کامل زیر متن، پرده از بالا تیره و پایین شفاف */
  .hero {
    background-size: 100% auto;
    padding-block: 44px clamp(240px, 72vw, 300px);
  }
  .hero::before {
    /* ناحیه‌ی کدر تا زیر آخرین خط متن ادامه دارد، بعد روی عکس باز می‌شود */
    background: linear-gradient(
      to bottom,
      var(--hero-veil-strong) 0%,
      var(--hero-veil-strong) 60%,
      var(--hero-veil-mid) 72%,
      transparent 92%
    );
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* هدر در موبایل‌های خیلی باریک: CTA سفارش مهم‌تر از کلید تم است */
@media (max-width: 420px) {
  .brand__sub {
    display: none;
  }
  .header .container {
    gap: 12px;
  }
}

/* ==========================================================================
   بهینه‌سازی موبایل
   ========================================================================== */

/* تصاویر سبک‌تر برای موبایل — روی صفحه‌ی ۳۷۵px نسخه‌ی دسکتاپ
   بیش از دو برابر چیزی است که رتینا لازم دارد */
@media (max-width: 768px) {
  .hero {
    background-image: url("../img/hero-team-mobile.webp");
  }
  .band {
    background-image: linear-gradient(rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.32)),
      url("../img/band-bg-mobile.webp"),
      linear-gradient(135deg, var(--red-700), var(--red-500) 55%, var(--red-600));
  }
}

@media (max-width: 860px) {
  /* بازخورد فشردن — روی موبایل جای hover را می‌گیرد */
  .btn:active {
    transform: scale(0.97);
  }
  .card:active,
  .pillar:active {
    border-color: var(--border-strong);
  }
  /* hover روی موبایل «می‌چسبد»؛ فقط جایی اعمال شود که واقعاً اشاره‌گر هست */
  .btn:hover {
    transform: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-2px);
  }
}

/* گوشی‌های باریک: فضا را به محتوا بده نه به فاصله */
@media (max-width: 380px) {
  .container {
    padding-inline: max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-left));
  }
  .card,
  .pillar,
  .step {
    padding-inline: 18px;
  }
  .form {
    padding: 20px 16px;
  }
  .btn {
    padding-inline: 20px;
  }
  .brand {
    font-size: 1.1rem;
  }
  .brand__mark {
    width: 30px;
  }
}

/* حالت افقی روی گوشی: ارتفاع کم است، هیرو نباید کل صفحه را بگیرد */
@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-block: 56px clamp(180px, 40vh, 240px);
  }
  .hero__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }
}
