/* ============================================================
   آتی دُر — atd-ui.css   (ساخته‌شده از atd-core.css و atd-page.css زنده، 2026-12-02)
   محتوا: کامپوننت‌های مشترک محتوا: دکمه، FAQ، فهرست مطالب، باکس نکته، اعتماد، سکشن سرمه‌ای، eyebrow، دیوایدر
   بارگذاری: صفحه‌هایی که این کلاس‌ها را دارند — توسط اسنیپت لودر atd-assets
   قانون: :root فقط در atd-base.css. کلاس جدید را در فایل همان بخش اضافه کنید.
   ============================================================ */

/* ════════════════════════════════════════════════════════════
   ۲) کامپوننت‌های مشترک   (منبع: atd-core.css نسخه ۲)
   ════════════════════════════════════════════════════════════ */

/* ---------- هایلایت کلیدواژه ---------- */

.atd-mark {
  background: linear-gradient(transparent 62%, rgba(244,112,12,.32) 62%);
  padding: 0 4px;
  border-radius: 3px;
}

/* ---------- eyebrow ----------
   دو نام قدیمی (.atd-eyebrow و .atd-eyebrow-top) عمداً حفظ شده‌اند
   تا صفحه‌های ساخته‌شده دست‌نخورده کار کنند. */

.atd-eyebrow,
.atd-eyebrow-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8em;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--atd-orange-deep);
  background: var(--atd-orange-tint);
  border: 1px solid #ffddbf;
  border-radius: 30px;
  padding: 5px 16px;
  margin-bottom: 10px;
}

.atd-eyebrow::before,
.atd-eyebrow-top::before {
  content: "";
  width: 14px; height: 2px;
  background: var(--atd-orange);
  border-radius: 2px;
}

.atd-eyebrow-start { margin-right: 0; }

/* ---------- دیوایدر ریلی با چرخ نارنجی ----------
   دو نام قدیمی: .divider.atd-rail (خانه) و .atd-divider (لندینگ)

   ⚠ اصلاح نسخه 3.1 — راست‌به‌چپ:
   قبلاً گرادیان با زاویه 90deg بود و همیشه از سمت چپ شروع می‌کرد،
   یعنی نیمه‌ی آبی زیر «انتهای» تیتر فارسی می‌افتاد و خط جدا و
   نامرتب دیده می‌شد. حالا با «to left» رنگ از سمت راست
   (شروع خط فارسی) آغاز می‌شود و نقطه نارنجی هم روی مرز رنگ می‌نشیند. */

.divider.atd-rail,
.atd-divider {
  border-top: 0 !important;
  height: 4px !important;
  background: linear-gradient(to left, var(--atd-blue) 0 55%, var(--atd-line) 55%);
  border-radius: 4px;
  position: relative;
  opacity: 1;
}

.atd-divider {
  min-width: 80px;
  margin-block: 10px 22px;   /* فقط عمودی — تراز افقی فلت‌سام دست‌نخورده می‌ماند */
}

.divider.atd-rail::after,
.atd-divider::after {
  content: "";
  position: absolute;
  top: 50%; left: 45%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--atd-orange);
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--atd-line);
}

/* ---------- بج شیشه‌ای ---------- */

.atd-glassbadge,
.atd-glassbadge-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: .82em;
  font-weight: 700;
}

.atd-glassbadge::before,
.atd-glassbadge-dark::before {
  content: "";
  width: 14px; height: 2px;
  background: var(--atd-orange);
  border-radius: 2px;
}

/* ---------- دکمه‌های شیشه‌ای ---------- */

.button.atd-gbtn {
  border-radius: 14px !important;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,.4) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.button.atd-gbtn:hover { transform: translateY(-3px); filter: brightness(1.08); }

.button.atd-gbtn-o {
  background: rgba(244,112,12,.88) !important;
  color: #fff !important;
  box-shadow: 0 10px 26px rgba(244,112,12,.4);
}

.button.atd-gbtn-w {
  background: rgba(255,255,255,.13) !important;
  color: #fff !important;
}

.button.atd-gbtn-b {
  background: rgba(26,95,208,.12) !important;
  color: var(--atd-blue-deep) !important;
  border-color: rgba(26,95,208,.35) !important;
}

/* ---------- هلپر هم‌ارتفاع شدن ستون‌های یک ردیف (نسخه 3.1) ----------
   روی هر [row class="atd-eqrow"] قابل استفاده است؛ نسخه عمومیِ
   همان الگویی که بالا برای .atd-cards نوشته شده. */

.atd-eqrow > .col { display: flex; }

.atd-eqrow > .col > .col-inner { display: flex; flex-direction: column; width: 100%; }

.atd-eqrow > .col > .col-inner > * { width: 100%; }

/* ---------- تصاویر با قاب ---------- */

.atd-img img {
  border-radius: var(--atd-r);
  border: 1px solid var(--atd-line);
  box-shadow: var(--atd-sh);
  transition: transform .25s ease, box-shadow .25s ease;
}

.atd-img:hover img {
  transform: translateY(-3px);
  box-shadow: var(--atd-sh-lg);
}

/* ---------- باکس نکته نارنجی ---------- */

.atd-note {
  background: var(--atd-orange-tint);
  border: 1px solid #ffddbf;
  border-radius: var(--atd-r);
  padding: 18px 24px;
  position: relative;
  margin-top: 14px;
  color: var(--atd-ink);
  font-weight: 600;
  font-size: .95em;
}

.atd-note::before {
  content: "";
  position: absolute;
  inset-inline: 24px;
  top: -1px;
  height: 3px;
  border-radius: 3px;
  background: var(--atd-orange);
}

.atd-note a { color: var(--atd-orange-deep); }

/* ---------- سکشن سرمه‌ای ---------- */

.atd-navy {
  background: linear-gradient(135deg, var(--atd-navy), var(--atd-blue-deep)) !important;
  position: relative;
}

.atd-navy::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 120px);
  pointer-events: none;
}

.atd-navy h1,
.atd-navy h2 { color: #fff; }

.atd-navy p { color: #cfe0f4; }

.atd-navy video,
.atd-navy .video-inner {
  border-radius: var(--atd-r);
  overflow: hidden;
  box-shadow: var(--atd-sh-lg);
}

/* ---------- دیوایدر داخل سکشن سرمه‌ای (نسخه 3.1) ----------
   آبیِ برند روی زمینه سرمه‌ای دیده نمی‌شود؛ نارنجی جایگزین می‌شود. */

.atd-navy .atd-divider {
  background: linear-gradient(to left, var(--atd-orange) 0 55%, rgba(255,255,255,.28) 55%);
}

.atd-navy .atd-divider::after {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.16);
}

.button.atd-gbtn:focus-visible {
  outline: 3px solid var(--atd-blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .atd-img img,
  .button.atd-gbtn { transition: none; }
}

/* ============================================================
   آتی دُر — atd-page.css
   نسخه: 3.1 (جایگزین atd-home.css + atd-rail.css)
   محل: wp-content/themes/flatsome-child/css/atd-page.css
   بارگذاری: صفحه اصلی + همه برگه‌ها + نوشته‌ها
   پیش‌نیاز: atd-core.css  (توکن‌ها و کامپوننت‌های مشترک)
   ------------------------------------------------------------
   این فایل «کامپوننت‌های صفحه‌های محتوایی» است، نه استایل یک
   صفحه خاص. هر لندینگ جدید (درب ضدسرقت، درب اتوماتیک، ...)
   از همین کلاس‌ها ساخته می‌شود؛ فایل جدید لازم نیست.

   قانون: هیچ :root در این فایل تعریف نمی‌شود.

   تغییرات نسخه 3.1 (هیچ چیزی حذف نشده):
     • بخش ۰  — سلکتور آفست لنگر عمومی شد (h2[id] به جای h2[id^="atd-"])
     • بخش ۱  — margin تیترها اصلاح شد تا به دیوایدر بچسبند
     • بخش ۷  — .atd-btn-group اضافه شد (فاصله دکمه‌های کنار هم)
     • بخش ۱۰ — .atd-links اضافه شد (چیپ لینک داخلی هم‌عرض)
     • بخش ۱۱ — .atd-spec-list و .atd-dl اضافه شد
     • بخش ۱۶ — قواعد موبایل و موشن این کامپوننت‌ها اضافه شد

   فهرست:
     ۰) گاردهای تداخل و سازگاری با نسخه قبل
     ۱) تایپوگرافی صفحه‌های محتوایی
     ۲) هیرو/اسلایدر صفحه اصلی
     ۳) نوار دسترسی سریع (صفحه اصلی)
     ۴) نوار و شمارنده اعتماد
     ۵) سکشن سرمه‌ای — ویدیو و H1
     ۶) هیرو لندینگ و باکس CTA
     ۷) دکمه‌های لندینگ
     ۸) فهرست مطالب
     ۹) ویدیو و کپشن
    ۱۰) کارت‌های دسته‌بندی لندینگ و لینک داخلی
    ۱۱) کارت قیمت، باکس نکته، چک‌لیست، مزایا، مشخصات، دانلود
    ۱۲) تایم‌لاین مراحل
    ۱۳) سوالات متداول
    ۱۴) مطالب مرتبط
    ۱۵) فرم مشاوره
    ۱۶) دسترس‌پذیری، موشن، موبایل
   ============================================================ */

/* ════════════════════════════════════════════════════════════
   ۰) گاردهای تداخل و سازگاری با نسخه قبل
   ------------------------------------------------------------
   در نسخه قدیم، atd-rail.css فقط روی برگه «درب ریلی» لود می‌شد و
   چند مقدار را کمی متفاوت از core داشت. برای اینکه ظاهر آن برگه
   دقیقاً همان بماند، همان مقادیر را فقط بیرونِ صفحه اصلی برمی‌گردانیم.
   وقتی تصمیم گرفتید ظاهر را یکدست کنید، کل این بلوک حذف می‌شود.
   ════════════════════════════════════════════════════════════ */

body:not(.home) .atd-eyebrow,
body:not(.home) .atd-eyebrow-top { font-size: .8rem; margin-bottom: 14px; }

body:not(.home) .atd-mark {
  background: linear-gradient(transparent 62%, rgba(244,112,12,.28) 62%);
}

/* ⚠ اصلاح نسخه 3.1:
   قبلاً فقط h2[id^="atd-"] بود، اما لنگرهای برگه‌ها با نام‌های
   کوتاه ساخته می‌شوند (shishe، parking، hospital، ...) و آفست
   نمی‌گرفتند؛ یعنی زیر هدر چسبان پنهان می‌شدند. */

h2[id],
h3[id],
.atd-faq[id] { scroll-margin-top: 110px; }

/* ════════════════════════════════════════════════════════════
   ۱) تایپوگرافی صفحه‌های محتوایی
   ------------------------------------------------------------
   تداخل حل‌شده: در صفحه اصلی، H1 داخل سکشن سرمه‌ای قواعد خودش
   را دارد (بخش ۵). برای همین این بلوک با body:not(.home) محدود شده.

   اصلاح نسخه 3.1: margin پایین تیترها کم شد تا دیوایدرِ زیرشان
   بچسبد و «جدا افتاده» به نظر نرسد.
   ════════════════════════════════════════════════════════════ */

body:not(.home) .atd-h1 {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--atd-ink);
  line-height: 1.55;
  margin-bottom: 4px;
  max-width: 860px;
  margin-inline: auto;
}

body:not(.home) .atd-h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--atd-ink);
  line-height: 1.7;
  margin: 0 0 4px;
}

body:not(.home) .atd-h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--atd-ink);
  margin: 0 0 4px;
}

.atd-h3 a {
  color: var(--atd-blue-deep);
  text-decoration: none;
  background: linear-gradient(transparent 70%, rgba(26,95,208,.18) 70%);
  transition: color .2s ease;
}

.atd-h3 a:hover { color: var(--atd-blue); }

body:not(.home) .atd-hero-sub {
  font-size: 1.02rem;
  color: var(--atd-gray);
  max-width: 700px;
  margin: 0 auto 8px;
  line-height: 2.1;
}

/* --- نسخه لندینگ: فلکس مستقل --- */

.atd-trust-wrap {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
  border-block: 1px solid var(--atd-line);
}

.atd-trust-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 22px 48px;
  position: relative;
}

.atd-trust-box + .atd-trust-box::before {
  content: "";
  position: absolute;
  right: 0; top: 24%; bottom: 24%;
  width: 1px;
  background: var(--atd-line);
}

.atd-trust-num {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--atd-blue-deep);
  line-height: 1.2;
}

.atd-trust-label {
  font-size: .88rem;
  color: var(--atd-gray);
  font-weight: 600;
}

.atd-trust-num::after {
  content: "";
  display: block;
  width: 26px; height: 3px;
  margin: 6px auto 0;
  border-radius: 3px;
  background: var(--atd-orange);
}

/* ════════════════════════════════════════════════════════════
   ۵) سکشن سرمه‌ای — اصلاح ویدیو و H1 صفحه اصلی
   (خودِ .atd-navy در atd-core.css است)
   ════════════════════════════════════════════════════════════ */

.atd-navy .video-fluid-width,
.atd-navy .video,
.atd-navy .video-inner {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

.atd-navy video,
.atd-navy .html5-video,
.atd-navy .video-fluid-width video,
.atd-navy iframe {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  border-radius: var(--atd-r);
  box-shadow: var(--atd-sh-lg);
}

.atd-navy .col > .col-inner > *:last-child { margin-bottom: 0 !important; }

/* اختیاری — قاب ویدئو همیشه دقیقاً ۱۶:۹:
.atd-navy video { aspect-ratio: 16 / 9; object-fit: cover; }
*/

/* H1 داخل سکشن سرمه‌ای — بعد از بلوک تایپوگرافی می‌آید تا برنده شود */

.atd-navy h1.atd-h1 {
  color: #fff;
  font-size: 2.1em;
  line-height: 1.55;
  font-weight: 800;
  margin-bottom: 6px;
  max-width: none;
}

@media (max-width: 849px) {
  .atd-navy h1.atd-h1 { font-size: 1.5em; line-height: 1.7; }
}

.atd-cta-box {
  background: #fff;
  border: 1px solid var(--atd-line);
  border-radius: var(--atd-r);
  box-shadow: var(--atd-sh);
  position: relative;
  overflow: hidden;
}

.atd-cta-box::before {
  content: "";
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--atd-blue) 0 68%, var(--atd-orange) 68%);
}

.atd-cta-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--atd-ink);
  margin-bottom: 18px;
}

/* ════════════════════════════════════════════════════════════
   ۷) دکمه‌های لندینگ
   ------------------------------------------------------------
   تداخل حل‌شده: .atd-btn در کارت محصول هم استفاده می‌شود
   (.atd-cta .atd-btn در core). این قواعد فقط دکمه‌هایی را
   می‌گیرند که کلاس .button فلت‌سام دارند و بیرون .atd-cta هستند؛
   گاردِ hover هم در core گذاشته شده.
   ════════════════════════════════════════════════════════════ */

.atd-btn.button {
  border-radius: 12px !important;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.atd-btn-primary.button {
  background: linear-gradient(135deg, var(--atd-blue) 0%, var(--atd-blue-deep) 100%) !important;
  box-shadow: 0 8px 22px rgba(26, 95, 208, .32);
}

.atd-btn-outline.button {
  background: #fff !important;
  color: var(--atd-orange-deep) !important;
  border: 2px solid var(--atd-orange) !important;
  box-shadow: none;
}

.atd-btn.button:hover { transform: translateY(-2px); filter: brightness(1.05); }

/* ---------- گروه دکمه‌های کنار هم (نسخه 3.1) ----------
   جایگزین [row_inner style="collapse"] که گاتر ستون‌ها را حذف
   می‌کرد و دکمه‌ها را به هم می‌چسباند. */

.atd-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 18px 0 4px;
}

.atd-btn-group .button {
  margin: 0 !important;
  min-width: 230px;
  justify-content: center;
}

/* ════════════════════════════════════════════════════════════
   ۸) فهرست مطالب
   ════════════════════════════════════════════════════════════ */

.atd-toc {
  background: #fff;
  border: 1px solid var(--atd-line);
  border-radius: var(--atd-r);
  box-shadow: var(--atd-sh);
  padding: 26px 32px;
  max-width: 840px;
  margin: 0 auto;
}

.atd-toc-title {
  font-weight: 900;
  color: var(--atd-ink);
  font-size: 1.02rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.atd-toc-title::before {
  content: "";
  width: 20px; height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--atd-blue) 55%, var(--atd-orange) 55%);
}

.atd-toc-list {
  columns: 2;
  column-gap: 44px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.atd-toc-list li {
  margin-bottom: 4px;
  break-inside: avoid;
  counter-increment: toc;
}

.atd-toc-list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--atd-ink);
  text-decoration: none;
  font-size: .93rem;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background .2s ease, color .2s ease;
}

.atd-toc-list a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: .72rem;
  font-weight: 800;
  color: var(--atd-orange);
  min-width: 20px;
}

.atd-toc-list a:hover {
  background: var(--atd-blue-tint);
  color: var(--atd-blue-deep);
}

/* باکس نکته — نسخه بلندِ لندینگ (نسخه فشرده .atd-note در core است) */

.atd-note-box {
  background: var(--atd-orange-tint);
  border: 1px solid #ffddbf;
  border-radius: var(--atd-r);
  padding: 24px 28px;
  text-align: right;
  margin: 12px 0 34px;
  position: relative;
}

.atd-note-box::before {
  content: "";
  position: absolute;
  inset-inline: 24px;
  top: -1px;
  height: 3px;
  border-radius: 3px;
  background: var(--atd-orange);
}

.atd-note-box p {
  margin-bottom: 8px;
  color: var(--atd-ink);
  font-size: .97rem;
  font-weight: 600;
}

.atd-note-box a { color: var(--atd-orange-deep); text-decoration: none; }

/* ════════════════════════════════════════════════════════════
   ۱۳) سوالات متداول (آکاردئون)
   ════════════════════════════════════════════════════════════ */

.atd-faq {
  background: #fff;
  border-radius: var(--atd-r);
  padding: 30px;
  border: 1px solid var(--atd-line);
  box-shadow: var(--atd-sh);
}

.atd-faq-title {
  color: var(--atd-ink);
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.atd-faq-title::before {
  content: "";
  width: 20px; height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--atd-blue) 55%, var(--atd-orange) 55%);
}

details.atd-faq-item {
  border: 1px solid var(--atd-line);
  border-radius: var(--atd-r-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .2s ease;
}

details.atd-faq-item[open] { border-color: #cfe0f7; }

details.atd-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 800;
  color: var(--atd-ink);
  font-size: .97rem;
  position: relative;
  padding-left: 48px;
  background: #fff;
  transition: background .2s ease;
}

details.atd-faq-item summary::-webkit-details-marker { display: none; }

details.atd-faq-item summary:hover { background: var(--atd-blue-tint); }

details.atd-faq-item summary::after {
  content: "+";
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  border-radius: 8px;
  background: var(--atd-orange-tint);
  color: var(--atd-orange-deep);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease;
}

details.atd-faq-item[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

.atd-faq-a {
  color: var(--atd-gray);
  line-height: 2.1;
  margin: 0;
  padding: 14px 20px 18px;
  text-align: justify;
  border-top: 1px dashed var(--atd-line);
}

.atd-toc-list a:focus-visible,
details.atd-faq-item summary:focus-visible {
  outline: 3px solid var(--atd-blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .atd-btn.button { transition: none; }
}

/* ---------- موبایل ---------- */

@media (max-width: 849px) {
  body:not(.home) .atd-h1 { font-size: 1.55rem; }
  body:not(.home) .atd-h2 { font-size: 1.32rem; }
  .atd-trust-box { padding: 16px 22px; }
  .atd-trust-num { font-size: 1.4rem; }
  .button.atd-gbtn { font-size: .82em; padding: 10px 16px !important; }
  .atd-toc-list { columns: 1; }
  .atd-toc { padding: 20px 18px; }
}

@media (max-width: 549px) {
  .atd-btn-group { gap: 10px; }
  .atd-btn-group .button { min-width: 100%; }
}
