/* ==========================================================================
   مرکز توانبخشی کیانُت — Kianot Rehabilitation Center
   Custom styles & design tokens (rebuild of the original Elementor theme)
   ========================================================================== */

:root {
  /* ============================================================
     Kianot Design Tokens — synced with design.md
     رنگ/لوگو/فونت نهایی‌اند. این بلوک منبعِ توکنِ CSS است.
     لایه‌بندی: primitive → semantic → state/gradient → alias.
     ============================================================ */

  /* ── Layer 1: primitives ─────────────────────────────────── */
  --c-navy-900:  #0F2E40;
  /* Teal scale — رسمی (teal-600 = Primary) */
  --c-teal-50:   #E7FDFF;
  --c-teal-100:  #C8FAFF;
  --c-teal-200:  #90F4FF;
  --c-teal-300:  #00EBFC;
  --c-teal-400:  #00D9E8;
  --c-teal-500:  #00C9D8;
  --c-teal-600:  #00AAB7;  /* ⭐ Primary / accent */
  --c-teal-700:  #00818C;
  --c-teal-800:  #00646D;
  --c-teal-900:  #00515A;
  --c-teal-950:  #002F34;
  --c-teal-deep: #008691;  /* wordmark «کیانُت» (توکنِ مستقل) */
  --c-cyan-050:  #E1FBFD;  /* نوارِ هدر/فوتر */
  --c-gray-100:  #F1F1F1;
  --c-lilac-050: #F4F3FB;
  --c-gray-500:  #7A7A7A;
  --c-white:     #FFFFFF;

  /* ── Layer 2: semantic ───────────────────────────────────── */
  --brand:         var(--c-navy-900);
  --brand-deep:    var(--c-teal-deep);
  --accent:        var(--c-teal-600);
  --surface:       var(--c-white);
  --surface-soft:  var(--c-cyan-050);
  --card:          var(--c-gray-100);
  --card-alt:      var(--c-lilac-050);
  --text:          var(--c-gray-500);
  --heading:       var(--c-navy-900);
  --on-dark:       var(--c-white);
  --on-dark-muted: rgba(255, 255, 255, 0.72);
  --border:        rgba(15, 46, 64, 0.10);
  --border-strong: rgba(15, 46, 64, 0.16);
  --watermark:     rgba(15, 46, 64, 0.06);  /* مونوگرامِ ghost */
  --ring:          var(--c-teal-600);

  /* ── state derivatives (از مقیاسِ رسمیِ فیروزه) ───────────── */
  --accent-soft:   var(--c-teal-100);  /* chip/badge bg */
  --accent-tint:   var(--c-teal-50);
  --accent-hover:  var(--c-teal-700);  /* hoverِ دکمه */
  --accent-press:  var(--c-teal-800);  /* active/press */

  /* ── gradients (teal ↔ dark only) ────────────────────────── */
  --grad-flow:   linear-gradient(135deg, var(--accent) 0%, var(--brand) 100%);
  --grad-cta:    linear-gradient(120deg, var(--accent) 0%, var(--brand-deep) 100%);
  --grad-stroke: linear-gradient(90deg,  var(--accent) 0%, var(--brand) 100%);
  --grad-halo:   radial-gradient(closest-side, rgba(0,170,183,.12) 0%, rgba(0,170,183,0) 70%);

  /* ── radii ───────────────────────────────────────────────── */
  --radius-sm:   10px;
  --radius:      15px;
  --radius-lg:   20px;
  --radius-flow: 40px;  /* گوشهٔ نامتقارنِ جریان */

  /* ── elevation ───────────────────────────────────────────── */
  --shadow-soft: 0 18px 40px -18px rgba(15, 46, 64, 0.25);
  --shadow-card: 0 12px 30px -16px rgba(15, 46, 64, 0.20),
                 inset 0 1px 0 0 rgba(255, 255, 255, 0.6);

  /* ── motion ──────────────────────────────────────────────── */
  --ease-flow: cubic-bezier(.22, .61, .36, 1);

  /* ── back-compat aliases (کلاس‌های فعلیِ این فایل نشکنند) ──── */
  --color-dark:      var(--brand);
  --color-teal:      var(--accent);
  --color-cyan-soft: var(--surface-soft);
  --color-card:      var(--card);
  --color-lavender:  var(--card-alt);
  --color-text:      var(--text);
  --color-heading:   var(--heading);
  --color-watermark: rgba(229, 229, 229, 0.65); /* eyebrowِ انگلیسیِ محو (بدون تغییر) */
}

/* ==========================================================================
   لایهٔ افزودنیِ Calm Flow — توکن‌های مشتق (همگی از :root نهایی مشتق شده‌اند،
   هیچ رنگِ خارج از پالت معرفی نشده). این‌ها بیرونِ بلوکِ قفل‌شدهٔ :root هستند.
   ========================================================================== */
:root {
  /* — deep-teal alias برای linkِ active/wordmark — */
  --color-teal-deep: var(--c-teal-deep);

  /* — Motion: duration — */
  --dur-instant: 120ms;
  --dur-fast:    180ms;
  --dur-base:    250ms;
  --dur-slow:    420ms;
  --dur-reveal:  600ms;
  --dur-flow:    1600ms;

  /* — Motion: easing (هم‌خانوادهٔ منحنیِ لوگو) — */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);  /* easeOutQuint — امضای برند */
  --ease-soft:  cubic-bezier(0.4, 0, 0.2, 1);
  --ease-exit:  cubic-bezier(0.4, 0, 1, 1);
  --ease-draw:  cubic-bezier(0.65, 0, 0.35, 1);
  --stagger-step: 90ms;

  /* — soft-card: سایهٔ دولایه و teal sweep — */
  --shadow-card-hover:
    0 22px 48px -18px rgba(15, 46, 64, 0.30),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.95);
  --flow-edge: linear-gradient(90deg, var(--accent) 0%, var(--brand) 100%);

  /* — navigation / glass — */
  --header-gap:       12px;
  --glass-bg:         rgba(225, 251, 253, 0.62);
  --glass-bg-strong:  rgba(225, 251, 253, 0.86);
  --glass-border:     rgba(255, 255, 255, 0.7);
  --glass-blur:       20px;
  --flow-from: var(--accent);
  --flow-to:   var(--brand);
}

/* fallbackِ مات وقتی backdrop-filter پشتیبانی نمی‌شود */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass-bg: #E9FCFD; --glass-bg-strong: #E1FBFD; }
}

/* ==========================================================================
   Base
   ========================================================================== */
html { scroll-behavior: smooth; }

body {
  font-family: "Dana", "Vazirmatn", "IRANSans", Tahoma, system-ui, sans-serif;
  color: var(--color-text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.9;
  overflow-x: hidden;
}

/* اعدادِ فارسیِ پایدار (تلفن/تاریخ) */
.nums { font-variant-numeric: tabular-nums; letter-spacing: 0; }

/* وزن‌های تایپوگرافی (کلاس‌های سفارشی چون utility آفلاین موجود نیست) */
.t-light   { font-weight: 300; }
.t-regular { font-weight: 400; }
.t-medium  { font-weight: 500; }
.t-semibold{ font-weight: 600; }
.t-bold    { font-weight: 700; }
.t-black   { font-weight: 800; }

/* کلاس‌های ابزاریِ سفارشی (آفلاین، خارج از build شده) */
.kn-overflow-hidden { overflow: hidden; }
.kn-relative { position: relative; }

/* skip-link دسترس‌پذیر */
.skip-link {
  position: fixed; inset-block-start: 8px; inset-inline-end: 8px; z-index: 100;
  transform: translateY(-160%);
  background: var(--color-dark); color: #fff;
  padding: 10px 18px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); outline: 3px solid var(--color-teal); outline-offset: 2px; }

/* ---- نشانگرِ فوکوسِ عمومی (specificity صفر با :where تا کامپوننت‌های دارای
   نشانگرِ اختصاصی را override نکند). پوششِ .ot-card، لینکِ لوگو و هر focusableِ بی‌نشان. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: inherit;
}

/* اسپرایتِ آیکونِ مخفی نباید جای بگیرد */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ==========================================================================
   Section heading — eyebrow واترمارک + تیترِ برند با جداکنندهٔ منحنی
   ========================================================================== */
/* eyebrowِ انگلیسی = واترمارکِ دست‌نویسِ Caveat، پشتِ عنوانِ فارسی و کمی زیرِ آن.
   height:0 تا فضای flow اشغال نشود؛ z-index پایین تا عنوانِ فارسی رویش بنشیند. */
.section-eyebrow {
  height: 0;
  margin: 0;
  overflow: visible;
  font-family: "Caveat", "Dana", cursive;
  font-weight: 700;
  font-size: 21px;
  line-height: 1;
  letter-spacing: 0.5px;
  white-space: nowrap;
  color: rgba(15, 46, 64, 0.14);
  opacity: 0.9;
  transform: translateY(0.1em);
  position: relative;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
/* عنوانِ فارسی روی واترمارک می‌نشیند */
.section-eyebrow + .section-title,
.section-eyebrow + h1,
.section-eyebrow + h2 { position: relative; z-index: 1; }
.section-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(22px, 4.5vw, 28px);
  font-weight: 700;
  color: var(--color-heading);
  margin: 6px 0 0;
  white-space: nowrap;   /* عنوانِ فارسی همیشه یک‌خطی */
  max-width: 100%;
}
/* عنوان‌های فارسیِ ساده هم یک‌خطی بمانند */
.kn-1line { white-space: nowrap; }
/* جداکنندهٔ موجیِ K به‌جای خطِ خاکستریِ صاف */
.section-title::after {
  content: "";
  flex: 0 0 48px;
  min-width: 48px;
  height: 14px;
  background-color: var(--color-teal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='14' viewBox='0 0 84 14'%3E%3Cpath d='M1 8 C24 -2 44 16 64 7 C72 3 78 5 83 8' stroke='%23000' stroke-width='3' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='14' viewBox='0 0 84 14'%3E%3Cpath d='M1 8 C24 -2 44 16 64 7 C72 3 78 5 83 8' stroke='%23000' stroke-width='3' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") no-repeat center / contain;
}
.section-title--center { justify-content: center; }
.section-title--center::before {
  content: "";
  flex: 0 0 48px;
  min-width: 48px;
  height: 14px;
  background-color: var(--color-teal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='14' viewBox='0 0 84 14'%3E%3Cpath d='M1 8 C6 5 12 3 20 7 C40 16 60 -2 83 8' stroke='%23000' stroke-width='3' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='14' viewBox='0 0 84 14'%3E%3Cpath d='M1 8 C6 5 12 3 20 7 C40 16 60 -2 83 8' stroke='%23000' stroke-width='3' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
/* سیستمِ دکمهٔ یکدست: همهٔ variantها هم‌ابعاد (ارتفاع/پدینگ/شعاع/وزن یکسان)،
   فقط «تم» فرق می‌کند. مرزِ ۱.۵px پایه تا height بین solid و outline نلرزد. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color var(--dur-base) var(--ease-soft),
              color var(--dur-base) var(--ease-soft),
              border-color var(--dur-base) var(--ease-soft),
              box-shadow var(--dur-base) var(--ease-soft),
              transform var(--dur-instant) var(--ease-soft);
  will-change: transform;
}
.btn:active { transform: scale(.97); }
/* رینگِ دولایه: outlineِ فیروزه + box-shadowِ سفیدِ داخلی تا روی سطوحِ هم‌رنگ هم دیده شود */
.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #fff;
}

/* primary — CTA اصلی: گرادیانِ فیروزه↔عمیق + lift */
.btn-primary { background: var(--grad-cta); color: #fff; box-shadow: 0 12px 26px -14px rgba(0,134,145,.75); }
.btn-primary:hover { box-shadow: var(--shadow-soft); transform: translateY(-2px); }

/* teal — solidِ navy (سفید روی navy = AAA)، هم‌ابعاد با primary */
.btn-teal { background: var(--brand); color: #fff; }
.btn-teal:hover { background: var(--brand-deep); box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.btn-teal:focus-visible { outline-color: var(--accent); }

/* secondary (ghost) — دکمهٔ outlineِ فیروزه‌ایِ تعریف‌شده (نه خطِ نازکِ محو)؛
   هم‌ابعاد با بقیه و در hover با فیروزه پر می‌شود. */
.btn-ghost { background: #fff; color: var(--brand-deep); border-color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-soft); }

/* آیکونِ درون‌خطیِ تک‌ضرب (currentColor) */
.ic    { width: 18px; height: 18px; display: inline-block; vertical-align: middle; flex: none; }
.ic-lg { width: 30px; height: 30px; display: inline-block; vertical-align: middle; flex: none; }

/* اسپینرِ loading */
.btn[aria-busy="true"] { pointer-events: none; opacity: .9; }
.btn-spinner {
  width: 18px; height: 18px; flex: none;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Header / Footer — glass شناورِ هم‌خانوادهٔ K
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: var(--header-gap);
  transition: padding-top var(--dur-base) var(--ease-out);
}
.site-header[data-shrink="true"] { padding-top: 4px; }

.glass-bar {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,0) 62%),
    var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(165%);
  backdrop-filter: blur(var(--glass-blur)) saturate(165%);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 16px 38px -18px rgba(15, 46, 64, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 0 0 1px rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  border-start-end-radius: 34px;   /* گوشهٔ جریان در RTL: بالا-راست گردتر */
}

.header-bar {
  min-height: 60px;
  padding-inline: clamp(16px, 2.5vw, 26px);
  transition: min-height var(--dur-base) var(--ease-out),
              background-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.site-header[data-shrink="true"] .header-bar { min-height: 54px; }
.site-header[data-shrink="true"] .glass-bar {
  background: var(--glass-bg-strong);
  box-shadow:
    0 18px 44px -20px rgba(15, 46, 64, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.logo-img { transition: height var(--dur-base) var(--ease-out); }
.site-header[data-shrink="true"] .logo-img { height: 36px; }

/* نوار پیشرفتِ اسکرول — تمامِ عرضِ ویوپورت (fixed)، بالای همه‌چیز. RTL: از راست رشد */
.scroll-progress {
  position: fixed;
  inset-inline: 0; top: 0; height: 3px;
  z-index: 60; pointer-events: none;
}
.scroll-progress > span {
  display: block; height: 100%; width: 0%;
  margin-inline-start: auto;   /* RTL: انباشت از سمت راست */
  background: linear-gradient(90deg, var(--flow-to), var(--flow-from));
  transition: width .08s linear;
}

/* nav-link + active — پیلِ نرمِ شیشه‌ای در hover/active برای منوی جذاب‌تر */
.nav-link {
  position: relative;
  color: var(--color-dark);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 12px;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}
.nav-link::after {
  content: "";
  position: absolute; inset-inline: 14px; bottom: 4px;
  height: 2px; width: 0; margin-inline-start: auto;
  background: linear-gradient(90deg, var(--flow-to), var(--flow-from));
  border-radius: 2px;
  transition: width var(--dur-base) var(--ease-out);
}
.nav-link:hover { color: var(--color-teal); background: rgba(0,170,183,.10); }
.nav-link:hover::after,
.nav-link:focus-visible::after { width: calc(100% - 28px); }
.nav-link:focus-visible { outline: none; color: var(--color-teal); background: rgba(0,170,183,.12); }
.nav-link[aria-current="page"] { color: var(--color-teal-deep); }
.nav-link[aria-current="page"]::after { width: calc(100% - 28px); }

/* ── منوی تبِ شیشه‌ایِ دسکتاپ ─────────────────────────────────────────────
   نوارِ هدر بی‌پس‌زمینه است و فقط همین nav-pill پیلِ شناور است؛ پس‌زمینهٔ آن
   تینتِ فیروزه‌ایِ شفاف (#44b6bf33) با بلورِ پشت است. لوگو در راست و دو دکمهٔ
   تمام‌گرد در چپ کنارش می‌نشینند. فقط تبِ فعال پیلِ سفید می‌گیرد. */
.nav-pill {
  gap: 4px;
  margin-inline: auto;   /* پیلِ شناور وسطِ هدر، میانِ لوگو و دکمه‌ها */
  padding: 6px;
  border-radius: 999px;
  background: #44b6bf33;
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(165%);
  backdrop-filter: blur(var(--glass-blur)) saturate(165%);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 16px 38px -18px rgba(15, 46, 64, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.nav-pill .nav-link {
  padding: 9px 18px;
  font-size: 15px;
  line-height: 1;
  border-radius: 999px;
  color: rgba(15, 46, 64, 0.66);          /* متنِ غیرفعالِ سرمه‌ایِ ملایم */
  transition: color var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.nav-pill .nav-link::after { content: none; }   /* حذفِ زیرخطِ نسخهٔ قبلی */
.nav-pill .nav-link:hover,
.nav-pill .nav-link:focus-visible {
  color: var(--color-teal);
  background: rgba(0, 170, 183, 0.10);          /* هالهٔ فیروزه‌ایِ برند */
  outline: none;
}
.nav-pill .nav-link[aria-current="page"] {
      color: white !important;
    background: var(--color-teal-deep);
  font-weight: 700;
  box-shadow:
    0 6px 16px -8px rgba(0, 134, 145, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

/* ── دکمه‌های تمام‌گردِ هدر (دارک/لایت + تماس) ─────────────────────────────── */
.round-btn {
  width: 44px; height: 44px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: #44b6bf33;            /* هم‌رنگِ منو */
  color: var(--color-teal-deep);
  cursor: pointer; text-decoration: none;
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(165%);
  backdrop-filter: blur(var(--glass-blur)) saturate(165%);
  transition: background var(--dur-fast) var(--ease-soft),
              color var(--dur-fast) var(--ease-soft),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-soft);
}
.round-btn .ic { width: 20px; height: 20px; }
.round-btn:hover { background: #44b6bf55; transform: translateY(-1px); }
.round-btn:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }

/* دکمهٔ تماس — هم‌تمِ منو (تینتِ فیروزه‌ای)، در موبایل فقط آیکون و در
   دسکتاپ آیکون + شمارهٔ خطِ ۰۲۱ */
.call-btn {
  height: 44px; width: 44px; flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--grad-cta);     /* هم‌رنگِ دکمهٔ پرایمری */
  color: #fff;
  font-weight: 700; font-size: 14.5px; letter-spacing: .2px;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 12px 26px -14px rgba(0, 134, 145, 0.75);
  transition: box-shadow var(--dur-fast) var(--ease-soft),
              filter var(--dur-fast) var(--ease-soft),
              transform var(--dur-fast) var(--ease-out);
}
.call-btn .ic { width: 18px; height: 18px; }
.call-btn .call-num { display: none; }
.call-btn:hover { filter: brightness(1.06); box-shadow: var(--shadow-soft); transform: translateY(-1px); }
.call-btn:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
@media (min-width: 1024px) {
  .call-btn { width: auto; padding-inline: 16px; }
  .call-btn .call-num { display: inline; }
}

/* جابه‌جایی آیکونِ ماه/خورشید بر اساسِ تم */
.ic-sun { display: none; }
html[data-theme="dark"] .ic-moon { display: none; }
html[data-theme="dark"] .ic-sun  { display: inline-block; }

/* برگرِ موبایل → ضربدر */
.burger {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-dark); background: transparent; border: 0; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-soft);
}
/* در دسکتاپ برگر حذف می‌شود (lg:hidden به‌خاطر بارگذاریِ بعدیِ styles.css بی‌اثر می‌شد) */
@media (min-width: 1024px) { .burger { display: none; } }
.burger:hover { background: rgba(255,255,255,.6); }
.burger:focus-visible { outline: 3px solid var(--color-teal); outline-offset: 2px; }
.burger-box { position: relative; width: 22px; height: 16px; }
.burger-line {
  position: absolute; inset-inline: 0; height: 2px; border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur-base) var(--ease-out),
              opacity var(--dur-fast) var(--ease-soft);
}
.burger-line:nth-child(1) { top: 0; }
.burger-line:nth-child(2) { top: 7px; }
.burger-line:nth-child(3) { top: 14px; }
.burger[aria-expanded="true"] .burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger-line:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* منوی موبایل — انیمیشنِ ارتفاع + stagger آیتم‌ها */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 8px;
  transition: max-height var(--dur-slow) var(--ease-out),
              opacity var(--dur-fast) var(--ease-soft);
}
.mobile-menu.open { max-height: 520px; opacity: 1; }
.mobile-panel { padding: 10px; display: flex; flex-direction: column; gap: 2px; border-start-end-radius: 28px; }
.m-link {
  display: block; padding: 13px 14px; border-radius: var(--radius-sm);
  color: var(--color-dark); font-weight: 600; text-decoration: none;
  transform: translateY(-8px); opacity: 0;
  transition: background var(--dur-fast) var(--ease-soft),
              color var(--dur-fast) var(--ease-soft),
              transform var(--dur-base) var(--ease-out),
              opacity var(--dur-base) var(--ease-out);
}
.mobile-menu.open .m-link { transform: none; opacity: 1; }
.mobile-menu.open .m-link:nth-child(1) { transition-delay: 60ms; }
.mobile-menu.open .m-link:nth-child(2) { transition-delay: 120ms; }
.mobile-menu.open .m-link:nth-child(3) { transition-delay: 180ms; }
.mobile-menu.open .m-link:nth-child(4) { transition-delay: 240ms; }
.mobile-menu.open .m-link:nth-child(5) { transition-delay: 300ms; }
.mobile-menu.open .m-link:nth-child(6) { transition-delay: 360ms; }
.m-link:hover, .m-link:focus-visible { background: rgba(0,170,183,.10); color: var(--color-teal); outline: none; }
.m-link[aria-current="page"] { color: var(--color-teal-deep); }

/* جداکنندهٔ موجیِ K پیش از فوتر */
.kn-wave { display: block; width: 100%; height: clamp(36px, 5vw, 56px); margin-bottom: -1px; line-height: 0; }

/* فوتر — بالای صاف تا با جداکنندهٔ موجی جوش بخورد، پایینِ گرد، بدونِ فاصلهٔ بالا */
.footer-bar {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  border-start-start-radius: 0;
  margin-top: 0 !important;
  padding-top: 4px !important;
}
.footer-h {
  color: var(--color-dark); font-weight: 700; font-size: 17px;
  margin-bottom: 16px; position: relative; padding-bottom: 8px;
}
.footer-h::after {
  content: ""; position: absolute; inset-inline-end: 0; bottom: 0;
  width: 34px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--flow-to), var(--flow-from));
}
.footer-list { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.f-link {
  color: var(--color-dark); font-weight: 600; font-size: 14px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
/* رنگِ hover/focus به brand-deep (#008691) — کنتراستِ بهتر روی فوترِ روشن نسبت به teal-600 */
.f-link:hover, .f-link:focus-visible { color: var(--brand-deep); transform: translateX(-3px); }
.f-link:focus-visible { outline: none; text-decoration: underline; text-underline-offset: 4px; }
.newsletter { display: flex; gap: 8px; }
@media (max-width: 380px) { .newsletter { flex-direction: column; } }
.copyright {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  text-align: center; font-size: 12px; color: var(--color-text);
  margin-top: 22px;
}

/* ==========================================================================
   soft-card — ژنِ مشترکِ کارت‌ها (لبهٔ سفید + سایهٔ دولایه + گوشهٔ جریان + teal sweep)
   ========================================================================== */
.soft-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  will-change: transform;
}
/* گوشهٔ جریانِ نامتقارن در RTL: بالا-چپ گردترین نقطه */
.soft-card--flow { border-top-left-radius: var(--radius-flow); }
.soft-card::after {
  content: "";
  position: absolute;
  inset-inline: 0; bottom: 0;
  height: 3px;
  background: var(--flow-edge);
  transform: scaleX(0);
  transform-origin: right center;   /* RTL: رسم از راست به چپ */
  transition: transform .45s var(--ease-out);
}
.soft-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.soft-card:hover::after { transform: scaleX(1); }

/* ==========================================================================
   svc-tile — کارتِ خدمت با آیکونِ اختصاصی در هالهٔ سه‌خطیِ برند
   (روی ژنِ soft-card؛ lift + teal-sweep + گوشهٔ جریان از همان‌جا می‌آید)
   ========================================================================== */
.svc-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 38px 26px 32px;
  background: #fff;
  text-decoration: none; color: inherit;
  /* فلت: بدونِ سایه؛ مرزِ ظریف تا کارت روی پس‌زمینهٔ سفید دیده شود */
  box-shadow: none;
  border-color: var(--border);
}
.svc-tile:hover { box-shadow: none; }
/* حذفِ نوارِ گرادیانِ فیروزه‌ایِ لبهٔ پایین (ارثِ soft-card) */
.svc-tile::after { content: none; }
.svc-tile:focus-visible { outline: 3px solid var(--color-teal); outline-offset: 3px; }

/* هالهٔ سه‌خطیِ مراقبت دورِ آیکون: لاجوردی ← گپِ سفید ← فیروزه + گلوِ رادیال */
.svc-tile__halo {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  width: 104px; height: 104px; border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 1px var(--brand),
    0 0 0 6px #fff,
    0 0 0 7px rgba(0, 170, 183, .5);
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.svc-tile__halo::before {            /* گلوِ رادیالِ فیروزه پشتِ هاله */
  content: ""; position: absolute; inset: -22px; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 170, 183, .18), rgba(0, 170, 183, 0) 72%);
  opacity: .85; transition: opacity var(--dur-base) var(--ease-out);
}
.svc-tile:hover .svc-tile__halo {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--brand), 0 0 0 6px #fff, 0 0 0 7px var(--accent);
}
.svc-tile:hover .svc-tile__halo::before { opacity: 1; }

/* آیکونِ خدمت — تک‌ضربِ فیروزه (با آیکونِ اختصاصی هم‌خانواده جایگزین می‌شود) */
.svc-tile__icon {
  width: 50px; height: 50px;
  color: var(--color-teal);
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  transition: transform var(--dur-base) var(--ease-out);
}
.svc-tile:hover .svc-tile__icon { transform: scale(1.06) rotate(-4deg); }

.svc-tile__title { color: var(--color-heading); font-weight: 700; font-size: 18px; margin-top: 22px; }
.svc-tile__desc {
  color: var(--color-text); font-weight: 300; font-size: 14px; line-height: 1.85;
  margin-top: 8px; max-width: 26ch;
}

/* ---- why-card v2: کارتِ ادیتوریالِ مدرن، چپ‌چین (RTL: راست‌چین)،
   با حبابِ tintِ رنگیِ مخصوصِ هر کارت + شمارهٔ دست‌نویسِ کم‌رنگ + آیکونِ رنگیِ اصلی ---- */
.why-card {
  background: #fff;
  padding: 26px 22px 26px;
  text-align: start;
  --tint: rgba(0,170,183,.12);
  --tint-ink: var(--accent);
}
.why-card__num {
  position: absolute;
  top: 14px; left: 18px;   /* گوشهٔ بالا-چپ، مقابلِ آیکون (که بالا-راست است) */
  direction: ltr;   /* عددِ لاتین همیشه چپ‌به‌راست بماند (۰۱ نه ۱۰) */
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 38px; font-weight: 800; line-height: 1;
  letter-spacing: -.5px;
  font-variant-numeric: tabular-nums lining-nums;   /* رقم‌های هم‌عرضِ ردیف‌شده */
  color: var(--tint-ink); opacity: .2;
  transition: opacity .35s var(--ease-out);
  pointer-events: none; user-select: none;
}
.why-card:hover .why-card__num { opacity: .32; }
.why-bubble {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 60px; height: 60px;
  border-radius: 18px;   /* مربعِ گردِ هم‌خانوادهٔ K */
  background: var(--tint);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.why-bubble svg { width: 32px; height: 34px; display: block; }
.why-card:hover .why-bubble { transform: translateY(-3px) rotate(-4deg); box-shadow: inset 0 0 0 1px #fff, 0 12px 18px -10px var(--tint-ink); }
.why-card h3 { margin-top: 2px; }
/* ریبونِ پایینِ کارت — جایگزینِ نوارِ teal→navyِ مشترکِ soft-card با گرادیانِ دو-رنگیِ
   مخصوصِ هر کارت که echoِ گرادیانِ آیکونِ همان کارت است (روشن→اشباع). همیشه دیده می‌شود
   (نه فقط hover، تا در reduced-motion هم درست بماند)، با گوشه‌های گرد و هاله‌ی نرمِ هم‌رنگ. */
.why-card::after {
  inset-inline: 16px;
  height: 4px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(90deg, var(--tint-ink-2) 0%, var(--tint-ink) 100%);
  box-shadow: 0 -2px 12px -4px var(--tint-ink);
  transform: scaleX(1);
  transition: filter var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.why-card:hover::after {
  transform: scaleX(1);
  filter: saturate(1.12) brightness(1.06);
  box-shadow: 0 -3px 16px -3px var(--tint-ink);
}
/* tintهای مخصوصِ هر کارت — هم‌رنگ با آیکونِ رنگیِ همان کارت (تنوعِ بصری).
   --tint-ink = رنگِ اصلیِ آیکون (عدد + هاله)، --tint-ink-2 = نقطهٔ روشن‌ترِ گرادیانِ ریبون
   که echoِ گرادیانِ خودِ آیکون است (light→saturated). */
.why-card--1 { --tint: rgba(0,170,217,.13);  --tint-ink: #00A6D8; --tint-ink-2: #5FE2FF; }  /* اعزام فوری — آبی */
.why-card--2 { --tint: rgba(242,104,60,.13); --tint-ink: #F2683C; --tint-ink-2: #FFA763; }  /* برنامه درمان — نارنجی */
.why-card--3 { --tint: rgba(1,158,148,.13);  --tint-ink: #019E94; --tint-ink-2: #46D8C4; }  /* پشتیبانی — فیروزه */
.why-card--4 { --tint: rgba(158,107,240,.13);--tint-ink: #9E6BF0; --tint-ink-2: #CDA0FF; }  /* گزارش — بنفش */

/* ---- ot-card: کاشیِ کاردرمانیِ بزرگسالان روی سطحِ یاسی ----
   چیدمانِ عمودی: ردیفِ بالا [پدِ آیکون (راست) ↔ چِورونِ هدایت (چپ)]، سپس عنوان + زیرنویس */
.ot-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-radius: var(--radius);
  border-top-right-radius: 26px;   /* گوشهٔ جریان در RTL = بالا-راست */
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.ot-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.ot-card::after { inset-inline: 16px; }      /* teal sweep هم‌تراز با padding */

/* ردیفِ بالا: آیکون در لبهٔ شروع (راست) و چِورون در لبهٔ پایان (چپ) */
.ot-card__top { display: flex; align-items: center; justify-content: space-between; }

/* متنِ کاشی: عنوان + زیرنویسِ آرام، عرضِ کامل تا زیرنویس یک‌خطی بماند */
.ot-card__txt h3 { line-height: 1.3; letter-spacing: -.2px; }
.ot-card__txt p  { color: var(--color-text); font-size: 12.5px; line-height: 1.5; margin-top: 3px; }

/* پدِ آیکون — مربعِ گردِ هم‌خانوادهٔ K؛ روی hover با گرادیانِ برند پر و آیکون سفید می‌شود */
.ot-pad {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 16px; flex: none;
  color: var(--color-teal);
  background: linear-gradient(150deg, var(--c-teal-50) 0%, #ffffff 100%);
  box-shadow:
    0 0 0 1px rgba(0,170,183,.18) inset,
    0 8px 16px -10px rgba(0,170,183,.55);
  transition: background var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.ot-pad img { width: 28px; height: 28px; object-fit: contain; transition: transform var(--dur-base) var(--ease-out); }
/* آیکونِ duotone: رنگ از طریقِ currentColor (پد) می‌آید؛ fill/stroke را خودِ symbol تعریف می‌کند */
.ot-pad svg { width: 30px; height: 30px; transition: transform var(--dur-base) var(--ease-out); }
.ot-card:hover .ot-pad {
  color: #fff;
  background: var(--grad-flow);   /* teal → navy */
  box-shadow: 0 12px 22px -10px rgba(0,170,183,.65);
  transform: rotate(-4deg);
}
.ot-card:hover .ot-pad img,
.ot-card:hover .ot-pad svg { transform: translateX(-2px); }

/* چِورونِ هدایت در لبهٔ پایانی (RTL = چپ): آرام در سکون، روشن و لغزان روی hover */
.ot-go {
  width: 17px; height: 17px; flex: none; align-self: center;
  color: var(--color-teal); opacity: .3;
  transform: translateX(5px);   /* RTL: کمی به راست، روی hover سرِ جایش می‌نشیند */
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.ot-card:hover .ot-go { opacity: 1; transform: translateX(0); }

/* ==========================================================================
   Bento — چیدمانِ بِنتویِ کاردرمانیِ بزرگسالان
   هیروی سرمه‌ایِ تمام‌قد + ۶ کاشیِ افقیِ یکدست (آیکون ↔ متن ↔ چِورون).
   موبایل: تک‌ستون | تبلت: هیرو بنرِ بالا + کاشی‌ها ۲ستونه | دسکتاپ: هیرو راست + کاشی‌ها ۲×۳ چپ.
   ========================================================================== */
.kn-bento {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;   /* موبایل: تک‌ستون */
}
/* جلوگیری از سرریزِ گرید: اجازهٔ کوچک‌شدنِ سلول‌ها زیرِ عرضِ محتوا (min-width:auto پیش‌فرض) */
.kn-bento > * { min-width: 0; }

@media (min-width: 640px) {            /* تبلت: هیرو بنرِ تمام‌عرضِ بالا + کاشی‌ها ۲ستونه */
  .kn-bento { grid-template-columns: repeat(2, 1fr); }
  .kn-bento__feature { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {           /* دسکتاپ: هیروی ۱/۳ راست + ۶ کاشیِ بزرگ‌ترِ ۲×۳ در ۲/۳ چپ */
  .kn-bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; }
  .kn-bento__feature { grid-column: span 1; grid-row: span 3; }
}

/* ---- سلولِ هیرو: پایهٔ سرمه‌ای + هالهٔ فیروزه (کنتراستِ متنِ سفید حفظ می‌شود) ---- */
.kn-bento__feature {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 24px;
  border-top-left-radius: var(--radius-flow);   /* گوشهٔ جریان در RTL = بالا-چپ */
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  color: #fff;
  background:
    radial-gradient(125% 90% at 100% 0%, rgba(0,170,183,.55) 0%, rgba(0,170,183,0) 55%),
    radial-gradient(110% 110% at 0% 100%, rgba(0,129,140,.50) 0%, rgba(0,129,140,0) 60%),
    var(--brand);
  box-shadow: var(--shadow-soft);
}
/* بافتِ نقطه‌ای + مونوگرامِ K روی هیرو */
.kn-bento__feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(rgba(255,255,255,.10) 1.1px, transparent 1.2px) 0 0 / 20px 20px;
  -webkit-mask: radial-gradient(140% 120% at 0% 100%, #000 25%, transparent 100%);
          mask: radial-gradient(140% 120% at 0% 100%, #000 25%, transparent 100%);
}
.kn-bento__k {
  position: absolute;
  z-index: -1;
  inset-block-start: -18px; inset-inline-start: -14px;
  width: 150px; height: 150px;
  object-fit: contain;
  /* PNGِ برند → سفیدِ خالص، سپس کم‌رنگ تا روی سرمه‌ای مثلِ واترمارکِ خاکستری دیده شود */
  filter: brightness(0) invert(1);
  opacity: .2;   /* ~۳۰٪ کم‌تر از قبل */
  pointer-events: none;
}
.kn-bento__eyebrow {
  font-family: "Caveat", "Dana", cursive;
  font-weight: 700; letter-spacing: .5px;
  font-size: clamp(15px, 2vw, 20px);
  color: rgba(255,255,255,.55);
  margin: 0 0 8px;
}
.kn-bento__title {
  font-size: clamp(21px, 2.6vw, 29px);
  font-weight: 800; line-height: 1.4;
  color: #fff; margin: 0;
}
.kn-bento__lead {
  margin: 12px 0 0;
  font-size: 14px; line-height: 1.9; font-weight: 300;
  color: rgba(255,255,255,.82);
  max-width: 40ch;
}
.kn-bento__cta {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--brand);
  padding: 11px 20px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  box-shadow: 0 12px 26px -14px rgba(0,0,0,.55);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.kn-bento__cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.kn-bento__cta:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(0,0,0,.6); }

/* ---- کاشیِ خدمت: چیدمانِ افقیِ یکدست و فشرده (آیکونِ راست ↔ متن ↔ چِورونِ چپ) ---- */
.kn-bento__item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 15px;
  border-radius: 16px;
  border-top-right-radius: 22px;
  /* بوردرِ نرمِ فیروزه دورتادورِ کارت (هم‌خوان با گوشه‌های گرد) + ته‌رنگِ ملایم */
  border: 1px solid rgba(0,170,183,.20);
  background: linear-gradient(180deg, #ffffff 0%, #f1fafb 100%);
  box-shadow: 0 8px 22px -16px rgba(15,46,64,.30);
  color: inherit; text-decoration: none;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.kn-bento__item::after { content: none; }   /* حذفِ خطِّ teal فقط-پایین؛ بوردر حالا دورتادوره */
.kn-bento__item:hover {                       /* hover: بوردرِ پررنگ‌ترِ فیروزه + بالاآمدن */
  border-color: rgba(0,170,183,.55);
  box-shadow: 0 16px 32px -16px rgba(0,170,183,.40);
}
.kn-bento__item .ot-pad { width: 50px; height: 50px; border-radius: 15px; }
.kn-bento__item .ot-pad svg { width: 29px; height: 29px; }
.kn-bento__item .ot-card__txt { flex: 1 1 auto; min-width: 0; }
.kn-bento__item .ot-card__txt p { margin-top: 2px; }
.kn-bento__item:hover .ot-pad {
  color: #fff;
  background: var(--grad-flow);
  box-shadow: 0 12px 22px -10px rgba(0,170,183,.65);
  transform: rotate(-4deg);
}
.kn-bento__item:hover .ot-pad svg { transform: translateX(-2px); }
.kn-bento__item:hover .ot-go { opacity: 1; transform: translateX(0); }

/* ==========================================================================
   Inputs — فیلدهای روشن
   ========================================================================== */
.field {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-dark);
  font: inherit;
  outline: none;
  transition: box-shadow var(--dur-fast) var(--ease-soft), border-color var(--dur-fast) var(--ease-soft);
}
.field::placeholder { color: #9aa3a8; }
.field:focus { border-color: var(--color-teal); box-shadow: 0 0 0 3px rgba(0, 170, 183, 0.25); }
.field--light { background: #fff; border-color: var(--border); }
.field[aria-invalid="true"] { border-color: var(--brand-deep); box-shadow: 0 0 0 3px rgba(0,134,145,.22); }

/* پیامِ خطای در-خطِ فرم (درون-پالت؛ وزنِ بولد به‌جای رنگِ قرمزِ خارج از پالت).
   روی سطحِ روشن brand-deep، روی سطحِ تیرهٔ مشاوره سفید/فیروزهٔ روشن. */
.kn-error {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-deep);
  margin-top: 6px;
}
.kn-error.hidden { display: none; }
.kn-form .kn-error { color: var(--surface-soft); }
.kn-input[aria-invalid="true"] { border-bottom-color: var(--surface-soft); }

/* ==========================================================================
   Hero — هالهٔ رادیال + قابِ هاله + Flowline + چیپِ اعتماد
   ========================================================================== */
.aura-glow { position: relative; }
.aura-glow::before {
  content: "";
  position: absolute; z-index: 0; pointer-events: none;
  inset-block-start: -6%; inset-inline-start: 10%;
  width: min(70vw, 760px); height: min(70vw, 760px);
  background: var(--grad-halo);
  filter: blur(2px);
}
.aura-glow > * { position: relative; z-index: 1; }

/* ==========================================================================
   Section aura — هالهٔ نورِ آبیِ ظریف («از لبهٔ صفحه به داخل»)
   نوری کم‌جان و آبی که از یک سمتِ ویوپورت به داخلِ سکشن می‌تابد، پشتِ محتوا
   می‌نشیند و فضای سفیدِ یک جهت را پر می‌کند — ظریف، رنگی و بدونِ کاهشِ خوانایی.
   پیاده‌سازی: ::before تمام‌عرض (full-bleed تا لبهٔ ویوپورت، با تکیه بر
   body{overflow-x:hidden}) + isolation:isolate تا z-index:-1 درونِ همان سکشن
   بماند (هم‌الگوی .footer-shell / .kn-bento__feature). رنگ‌ها از هم‌خانوادهٔ
   آبیِ گرادیانِ آیکون‌ها و مقیاسِ فیروزه گرفته شده‌اند (درون‌پالت).
   ========================================================================== */
:root {
  --aura-blue: 0, 197, 255;   /* #00C5FF — آبیِ آسمانی (هم‌رنگِ گرادیانِ آیکون‌ها) */
  --aura-cyan: 0, 217, 232;   /* #00D9E8 — teal-400 */
  --aura-op:   .16;           /* شدتِ پایه — بسیار ظریف */
  --aura-op-2: .10;
}

.kn-aura { position: relative; isolation: isolate; }
.kn-aura::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset-block: -6%;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: radial-gradient(
    var(--aura-rx, 52vw) var(--aura-ry, 42vw)
      at var(--aura-x, 90%) var(--aura-y, 32%),
    rgba(var(--aura-blue), var(--aura-op)) 0%,
    rgba(var(--aura-cyan), var(--aura-op-2)) 40%,
    transparent 72%
  );
}

/* جهتِ نور — کانونِ گرادیان از یک لبه به داخل (سمتِ بصری، مستقل از RTL).
   روی سکشن‌های منتخب به‌صورتِ متناوب اعمال می‌شود تا حسِ «جریانِ نور» بدهد. */
.kn-aura--right  { --aura-x: 92%; --aura-y: 30%; }   /* نور از راستِ بالا */
.kn-aura--left   { --aura-x: 8%;  --aura-y: 32%; }   /* نور از چپِ بالا */
.kn-aura--bottom { --aura-x: 50%; --aura-y: 104%; --aura-rx: 74vw; --aura-ry: 30vw; }  /* نور از پایین، زیرِ سکشن */

/* دارک‌مود: روی پس‌زمینهٔ سرمه‌ای کمی پررنگ‌تر تا هالهٔ آبی دیده شود (هنوز ملایم) */
html[data-theme="dark"] {
  --aura-op:   .24;
  --aura-op-2: .15;
}

.hero-title { color: var(--color-dark); font-weight: 800; line-height: 1.15; }
.hero-tagline { color: var(--color-teal-deep); font-weight: 600; }
.hero-lead { color: var(--color-text); font-weight: 300; }

/* Flowline زیرِ عنوان (draw-on-scroll) */
.flowline { display: block; }
.flowline__path {
  stroke-dasharray: var(--len, 600);
  stroke-dashoffset: var(--len, 600);
  transition: stroke-dashoffset var(--dur-flow) var(--ease-draw);
}
.flowline__path.is-drawn { stroke-dashoffset: 0; }
@media (max-width: 640px) { .flowline { display: none; } }

/* قابِ هالهٔ مراقبت دورِ عکس‌های انسانی */
.halo-frame {
  position: relative;
  display: block;
  border-radius: 24px 24px 80px 24px;   /* نوکِ پایین-راست = امضای K در RTL */
  outline-offset: 7px;
  overflow: hidden;
  background: #fff;
}
.halo-frame--mirror { border-radius: 24px 24px 24px 80px; }   /* قرینه: نوکِ پایین-چپ */
.halo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) {
  .halo-frame { outline-offset: 5px; box-shadow: 0 0 0 7px var(--accent), var(--shadow-soft); }
}

/* چیپِ شناورِ اعتماد روی عکس */
.trust-chip {
  position: absolute;
  inset-block-end: 14px; inset-inline-end: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 14px;
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.85);
  color: var(--color-dark); font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow-soft);
}
.trust-chip .ic { color: var(--color-teal); }
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .trust-chip { background: #fff; }
}

/* ── المان‌های شناورِ تزئینیِ هیرو: بَج‌های شیشه‌ای + نقاطِ نرم ────────── */
.hero-stage { position: relative;margin-left: 20px; }

.hero-badge {
  position: absolute;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 13px;
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: var(--shadow-soft);
  color: var(--color-dark);
  white-space: nowrap;
  animation: floaty 6s var(--ease-soft) infinite;
  will-change: transform;
}
.hero-badge__ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 12px; flex: none;
  background: var(--grad-flow); color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.65);
}
.hero-badge__body { display: flex; flex-direction: column; gap: 1px; line-height: 1.15; }
.hero-badge__num  { font-weight: 800; font-size: 16px; color: var(--color-dark); }
.hero-badge__txt  { font-size: 11.5px; font-weight: 500; color: var(--color-text); }

.hero-badge--exp { inset-block-start: 7%;  inset-inline-start: -5%; animation-delay: -1.2s; }
.hero-badge--sat { inset-block-start: 47%; inset-inline-end: -7%;   animation-delay: -3.4s; }

/* نقاطِ نرمِ شناور برای عمق و حسِ زنده */
.hero-dot {
  position: absolute; z-index: 2; border-radius: 999px;
  background: var(--grad-flow);
  animation: floaty 7s var(--ease-soft) infinite;
}
.hero-dot--1 { width: 14px; height: 14px; inset-block-start: 30%; inset-inline-start: -3%; opacity: .55; animation-delay: -2s; }
.hero-dot--2 { width: 9px;  height: 9px;  inset-block-end: 13%;  inset-inline-start: 9%;  opacity: .7;  animation-delay: -4s; }
.hero-dot--3 {
  width: 22px; height: 22px; inset-block-start: 5%; inset-inline-end: 17%;
  background: radial-gradient(closest-side, rgba(0,170,183,.45), rgba(0,170,183,0));
  animation-delay: -3s;
}

@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .hero-badge { background: #fff; }
}

@media (max-width: 640px) {
  .hero-badge { padding: 7px 10px; gap: 8px; }
  .hero-badge__ic { width: 30px; height: 30px; border-radius: 10px; }
  .hero-badge__num { font-size: 14px; }
  .hero-badge__txt { font-size: 10.5px; }
  .hero-badge--exp { inset-inline-start: 0; }
  .hero-badge--sat { inset-inline-end: 0; inset-block-start: 52%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge, .hero-dot { animation: none; }
}

/* حبابِ گرادیانیِ آیکون (خدمات/چرا کیانت) */
.icon-bubble {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 18px; color: #fff;
  background: var(--grad-flow);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.85), var(--shadow-card);
  transition: transform .4s var(--ease-out);
}
.flow-card:hover .icon-bubble { transform: rotate(-6deg) scale(1.06); }
.icon-bubble img { width: 40px; height: 40px; object-fit: contain; }

/* ==========================================================================
   Pediatric panel — نقطه‌چینِ برند + چیپ‌های فهرست + watermark K
   ========================================================================== */
.kn-children {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: clamp(24px, 4vw, 40px);
  background:
    radial-gradient(rgba(15,46,64,.06) 1.5px, transparent 1.5px) 0 0 / 22px 22px,
    var(--color-lavender);
  border: 1px solid #fff;
}
.panel-ghost-k {
  position: absolute; bottom: -24px; inset-inline-start: -10px;
  width: 220px; height: 220px; opacity: .05; color: var(--brand);
  pointer-events: none;
}
@media (max-width: 640px) {
  .kn-children { background-size: 26px 26px, auto; }
}

.kn-chip-list { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .kn-chip-list { grid-template-columns: 1fr 1fr; } }
.kn-chip {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.7); border: 1px solid #fff;
  border-radius: 12px; padding: 10px 14px;
  color: var(--color-dark); font-weight: 600; font-size: 15px; line-height: 1.7;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.kn-chip:hover { transform: translateX(-4px); box-shadow: var(--shadow-card); }
.kn-chip__dot {
  width: 18px; height: 18px; flex: none; fill: none;
  stroke: var(--color-teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.kn-chip-trust {
  position: absolute; inset-block-end: 16px; inset-inline-start: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.85);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: 999px; padding: 8px 14px; box-shadow: var(--shadow-soft);
  color: var(--color-dark); font-weight: 600; font-size: 13px;
}
.kn-chip-trust svg { width: 18px; height: 18px; fill: var(--color-teal); }
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .kn-chip, .kn-chip-trust { background: #fff; }
}

/* tick گرادیانیِ فهرستِ فیزیوتراپی */
.kn-feature-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.kn-feature-list li { display: inline-flex; align-items: center; gap: 8px; color: var(--color-dark); font-weight: 500; font-size: 14px; }
.kn-tick { width: 8px; height: 8px; border-radius: 999px; flex: none; background: var(--grad-flow); }

/* ==========================================================================
   Consultation — «قلبِ تپنده»: سطحِ تیره + مونوگرام ghost + فرمِ خطِ زیرین
   ========================================================================== */
/* کانتینرِ سکشنِ مشاوره: باریک‌تر از سایرِ سکشن‌ها (max-w-container = 1400px) برای تمایزِ بصری */
.consult-shell { max-width: 1100px; }

/* ── طرحِ «دو تیکه»: پنلِ اطلاعات (راست) + پنلِ فرم (چپ) به‌صورتِ دو کارتِ مجزا با فاصلهٔ کم ── */
.consult-split { display: grid; gap: 16px; }
@media (min-width: 1024px) {
  .consult-split { grid-template-columns: 1.04fr .96fr; align-items: stretch; }
}
.kn-lead { max-width: 30rem; }

/* تیکهٔ ۱ — پنلِ سرمه‌ایِ اطلاعات (هالهٔ فیروزه + کمان‌ها + مونوگرامِ ghost) */
.consult-info {
  position: relative; overflow: hidden;
  background: linear-gradient(158deg, #0F2E40 0%, #0F2E40 40%, #123c49 100%);
  border-radius: 26px;
  padding: clamp(26px, 3.4vw, 44px);
  box-shadow: var(--shadow-soft);
}
.consult-info > :not(.consult-ghost-k) { position: relative; z-index: 1; }
.consult-info::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(0, 170, 183, 0.32) 0%, transparent 46%),
    radial-gradient(120% 120% at 0% 100%, rgba(0, 170, 183, 0.16) 0%, transparent 46%);
}
/* کمان‌های هم‌مرکزِ فیروزهٔ کم‌رنگ */
.consult-info::after {
  content: ""; position: absolute; pointer-events: none; opacity: .6;
  inset-block: -40px; inset-inline-start: -60px;
  width: 520px; height: 520px;
  background:
    radial-gradient(circle at 30% 50%, transparent 38%, rgba(0,170,183,.10) 39%, rgba(0,170,183,.10) 40%, transparent 41%),
    radial-gradient(circle at 30% 50%, transparent 50%, rgba(0,170,183,.07) 51%, rgba(0,170,183,.07) 52%, transparent 53%),
    radial-gradient(circle at 30% 50%, transparent 62%, rgba(0,170,183,.05) 63%, rgba(0,170,183,.05) 64%, transparent 65%);
}
.consult-ghost-k {
  position: absolute; pointer-events: none; z-index: 0;
  inset-block-start: 12px; inset-inline-end: 24px;
  width: 200px; height: 200px; object-fit: contain;
  filter: brightness(0) invert(1);   /* PNGِ برند → سفید (واترمارک روی سرمه‌ای) */
  opacity: .3;
}

/* تیکهٔ ۲ — پنلِ فرم: تنِ روشن‌ترِ فیروزه‌ای + لبه و بَجِ شناور (حالتِ «خاص») */
.consult-form-panel {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(165deg, #15434f 0%, #0e313f 100%);
  border: 1px solid rgba(0,170,183,.30);
  border-radius: 26px;
  padding: clamp(24px, 3vw, 34px);
  box-shadow: 0 24px 60px -28px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.10);
}
/* نوارِ تأکیدِ فیروزه‌ایِ بالای پنل (امضای بصری) */
.consult-form-panel::before {
  content: ""; position: absolute; inset-inline: 26px; inset-block-start: 0;
  height: 3px; border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, var(--color-teal), transparent);
}
.consult-form-panel .kn-label { color: rgba(255,255,255,.72); }
/* بَجِ شناورِ گوشهٔ پنلِ فرم */
.consult-badge {
  position: absolute; inset-block-start: -13px; inset-inline-end: 26px;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--grad-cta); color: #fff; font-weight: 700; font-size: 12.5px;
  padding: 6px 13px; border-radius: 999px;
  box-shadow: 0 12px 26px -10px rgba(0,170,183,.7);
}
.consult-badge svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* «چطور کار می‌کند» — توالیِ سه‌گامیِ شماره‌دار با خطِ اتصالِ عمودی (امضای حرفه‌ای) */
.consult-steps {
  list-style: none; margin: 30px 0 0; padding: 0;
  display: grid; gap: 22px; position: relative;
}
/* خطِ اتصالِ عمودیِ پشتِ مدال‌های شماره (مرکزِ بَجِ ۳۶px = ۱۸px از لبهٔ شروع) */
.consult-steps::before {
  content: ""; position: absolute; pointer-events: none;
  inset-block: 22px; inset-inline-start: 17px; width: 2px;
  background: linear-gradient(rgba(0,170,183,.55), rgba(0,170,183,.06));
}
.consult-step { display: flex; align-items: flex-start; gap: 14px; text-align: right; position: relative; }
.consult-step__num {
  flex: none; width: 36px; height: 36px; border-radius: 999px;
  display: grid; place-items: center; position: relative; z-index: 1;
  background: var(--color-dark);
  box-shadow: inset 0 0 0 1.5px rgba(0,170,183,.55), 0 0 0 5px rgba(15,46,64,1);
  color: #fff; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums;
}
.consult-step__body { display: flex; flex-direction: column; gap: 3px; padding-top: 2px; }
.consult-step__title { color: #fff; font-weight: 600; font-size: 15.5px; line-height: 1.6; }
.consult-step__meta {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  color: var(--color-teal); font-size: 12.5px; font-weight: 600;
}
.consult-step__meta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.kn-quote { color: #fff; }
.kn-quote__mark { width: 28px; height: 28px; fill: none; stroke: var(--color-teal); stroke-width: 1.6; stroke-linecap: round; margin-inline-start: auto; }
.kn-quote p { font-weight: 600; line-height: 1.9; margin: 8px 0 0; }
.kn-quote__by { display: block; color: rgba(255,255,255,.55); font-size: 13px; margin-top: 6px; }

/* فیلدِ floating-label با خطِ زیرینِ فیروزه‌ایِ focus (RTL: از راست پر می‌شود) */
.kn-form { display: grid; gap: 0; }
.kn-field { position: relative; }
.kn-input {
  width: 100%; min-height: 48px; padding: 20px 4px 8px;
  background: transparent; border: 0; border-bottom: 1.5px solid rgba(255,255,255,.22);
  color: #fff; font: inherit; outline: none;
}
.kn-input::placeholder { color: transparent; }
.kn-label {
  position: absolute; inset-inline-start: 4px; top: 18px;
  color: rgba(255,255,255,.6); pointer-events: none;
  transform-origin: right top;
  transition: transform var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.kn-input:focus + .kn-label,
.kn-input:not(:placeholder-shown) + .kn-label {
  transform: translateY(-18px) scale(.82);
  color: var(--color-teal);
}
.kn-underline {
  position: absolute; inset-inline: 0; bottom: 0; height: 2px;
  background: var(--color-teal);
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur-base) var(--ease-out);
}
.kn-input:focus ~ .kn-underline { transform: scaleX(1); }
.kn-status { background: rgba(255,255,255,.10); color: var(--surface-soft); }

/* عنوان/زیرعنوانِ فرم (استایلِ پنل در .consult-form-panel تعریف شده) */
.kn-form-title { color: #fff; font-weight: 700; font-size: 18px; margin: 0 0 4px; }
.kn-form-sub { color: rgba(255,255,255,.6); font-size: 13px; margin: 0 0 18px; }
.kn-form-note { color: rgba(255,255,255,.55); font-size: 12.5px; margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; }
.kn-form-note svg { width: 15px; height: 15px; stroke: var(--color-teal); fill: none; stroke-width: 1.7; }

/* ردیفِ سیگنال‌های اعتماد (جایگزینِ پاراگراف/نقل‌قولِ شلوغ) */
.kn-trust-row { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 24px; }
.kn-trust-item {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px; padding: 8px 14px;
  color: #fff; font-weight: 600; font-size: 13.5px;
}
.kn-trust-item svg { width: 18px; height: 18px; stroke: var(--color-teal); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ==========================================================================
   Magazine — کارتِ مقالهٔ overlay + حالتِ feature
   ========================================================================== */
.mag-card {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius-lg);
  border-top-right-radius: 36px;   /* گوشهٔ جریان در RTL */
  box-shadow: var(--shadow-card);
  background: var(--brand);
  text-decoration: none;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.mag-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.mag-card:focus-visible { outline: 3px solid var(--color-teal); outline-offset: 3px; }
.mag-card__img {
  width: 100%; height: 100%; min-height: 260px; object-fit: cover; display: block;
  transition: transform .5s var(--ease-out);
}
.mag-card:hover .mag-card__img { transform: scale(1.05); }
.mag-card__body {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: 8px; padding: 18px;
  background: linear-gradient(to top, rgba(15,46,64,.86) 0%, rgba(15,46,64,.25) 55%, transparent 100%);
}
.mag-card--feature { min-height: 360px; }
.mag-tag {
  align-self: flex-start;
  background: var(--color-teal); color: #fff;
  font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 12px;
}
.mag-card__title { color: #fff; font-weight: 700; font-size: 17px; line-height: 1.7; }
.mag-card--feature .mag-card__title { font-size: clamp(20px, 2.4vw, 26px); }
.mag-card__more {
  color: var(--surface-soft); font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}
.mag-card__more .ic { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-out); }
.mag-card:hover .mag-card__more .ic { transform: translateX(-4px); }
@media (max-width: 640px) { .mag-card--feature { min-height: 300px; } }

/* ==========================================================================
   Decorative — نقطه‌چینِ عمومی (back-compat)
   ========================================================================== */
.dotted-pattern {
  background-image: radial-gradient(rgba(15, 46, 64, 0.07) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}

/* ==========================================================================
   Motion — scroll-reveal با stagger + floaty
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-reveal) var(--ease-out),
              transform var(--dur-reveal) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
.animate-floaty { animation: floaty 5s var(--ease-soft) infinite; will-change: transform; }
.animate-floaty--delay { animation-delay: -2.5s; }

/* ==========================================================================
   prefers-reduced-motion — همهٔ حرکت‌های غیرضروری خاموش، محتوا کاملاً دیده شود
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal { opacity: 1; transform: none; transition: none; }
  .animate-floaty { animation: none; }
  .btn:active { transform: none; }

  .soft-card, .soft-card:hover,
  .why-card:hover, .ot-card:hover,
  .kn-bento__item:hover, .kn-bento__cta:hover,
  .mag-card:hover, .kn-chip:hover, .f-link:hover { transform: none; }
  .soft-card::after { transition: none; transform: scaleX(1); }
  .mag-card__img, .mag-card:hover .mag-card__img { transform: none; }
  /* کارت‌های خدمت: حرکت‌های hover خاموش، محتوا کاملاً خوانا */
  .svc-tile:hover .svc-tile__halo,
  .svc-tile:hover .svc-tile__icon { transform: none; }
  .why-bubble, .why-card:hover .why-bubble,
  .icon-bubble, .flow-card:hover .icon-bubble,
  .ot-card:hover .ot-pad, .ot-card:hover .ot-go,
  .kn-bento__item:hover .ot-pad, .kn-bento__item:hover .ot-go,
  .ot-pad img, .ot-pad svg { transform: none; }
  /* چِورونِ هدایت در reduced-motion همیشه دیده شود (بدون لغزش) */
  .ot-go { opacity: 1; transform: none; }

  .flowline__path { stroke-dashoffset: 0 !important; transition: none !important; }
  .scroll-progress > span,
  .nav-link::after, .burger-line,
  .mobile-menu, .m-link { transition: none; }

  .btn-spinner { animation-duration: 1.2s; }
}

/* ==========================================================================
   Dark mode — تمِ تیره (سوییچ با دکمهٔ هدر؛ data-theme روی <html>)
   چون طراحی توکن‌محور است، با بازنویسیِ توکن‌های اصلی بیشترِ صفحه تیره می‌شود؛
   چند سطحِ سفیدِ هاردکد هم به‌صورت هدفمند پوشش داده شده‌اند.
   ========================================================================== */
html[data-theme="dark"] {
  --brand:          #eaf6f8;   /* عنوان/متنِ تیره → روشن */
  --heading:        #eaf6f8;
  --text:           #9fb3bb;
  --surface:        #0e2531;
  --surface-soft:   #102b38;
  --card:           #122a35;
  --card-alt:       #14303c;
  --glass-bg:        rgba(18, 42, 53, 0.55);
  --glass-bg-strong: rgba(18, 42, 53, 0.82);
  --glass-border:    rgba(255, 255, 255, 0.12);
  --color-teal-deep: #39cdd8;  /* فیروزهٔ روشن‌تر برای کنتراست روی تیره */
  --border:          rgba(255, 255, 255, 0.12);
  --border-strong:   rgba(255, 255, 255, 0.18);
  --watermark:       rgba(255, 255, 255, 0.06);
  --color-watermark: rgba(255, 255, 255, 0.05);
}
html[data-theme="dark"] body { background: #0a1922; }

/* لوگو: نسخهٔ روشن برای پس‌زمینهٔ روشن، نسخهٔ تیره برای حالتِ دارک */
.logo-img--dark { display: none; }
html[data-theme="dark"] .logo-img--light { display: none; }
html[data-theme="dark"] .logo-img--dark { display: inline-block; }

/* منو روی تیره: متنِ تب‌ها روشن، پیلِ فعال همچنان روشن می‌ماند */
html[data-theme="dark"] .nav-pill .nav-link { color: rgba(255, 255, 255, 0.72); }
html[data-theme="dark"] .nav-pill .nav-link:hover,
html[data-theme="dark"] .nav-pill .nav-link:focus-visible { color: #7fe7ef; background: rgba(0, 170, 183, 0.18); }
html[data-theme="dark"] .nav-pill .nav-link[aria-current="page"] { background: rgba(255, 255, 255, 0.94); color: #00646d; }

/* کارت‌ها/سطوحِ سفیدِ هاردکد → شیشهٔ تیره */
html[data-theme="dark"] .soft-card { background: rgba(255, 255, 255, 0.035); border-color: rgba(255, 255, 255, 0.10); }
html[data-theme="dark"] .btn-ghost,
html[data-theme="dark"] .field--light,
html[data-theme="dark"] .trust-chip { background: var(--card); color: var(--heading); border-color: var(--border); }
html[data-theme="dark"] .field { background: var(--surface-soft); color: var(--heading); }

/* گذارِ نرمِ تم */
html { transition: background-color var(--dur-base) var(--ease-soft); }

/* ==========================================================================
   FAB دوگانهٔ ثابت + مودالِ ارتباط — شیشه‌ای، هم‌خانوادهٔ K
   راست (RTL=inline-start): تریگرِ تماس/شبکه‌ها (همیشه دیده می‌شود، هالهٔ تپنده)
   چپ  (RTL=inline-end):     بازگشت به بالا (تا اسکرول‌نکردن مخفی است)
   ========================================================================== */
.fab {
  position: fixed;
  bottom: clamp(16px, 3.2vw, 26px);
  z-index: 45;
  width: 56px; height: 56px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  cursor: pointer; isolation: isolate;
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(165%);
  backdrop-filter: blur(var(--glass-blur)) saturate(165%);
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-soft),
              background var(--dur-fast) var(--ease-soft),
              color var(--dur-fast) var(--ease-soft),
              opacity var(--dur-base) var(--ease-out),
              visibility var(--dur-base) var(--ease-out);
}
.fab .fab__icon { width: 24px; height: 24px; position: relative; z-index: 1; }
.fab:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
.fab:active { transform: scale(.95); }

/* راست: تریگرِ ارتباط — گرادیانِ CTA + هالهٔ تپندهٔ فیروزه‌ای */
.fab--contact {
  inset-inline-start: clamp(14px, 3.2vw, 26px);
  background: var(--grad-cta);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 16px 30px -12px rgba(0,134,145,.7);
}
.fab--contact:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -14px rgba(0,134,145,.85); }
.fab--contact[aria-expanded="true"] .fab__pulse { animation: none; opacity: 0; }
/* هالهٔ تپنده پشتِ دکمه برای جلبِ توجه */
.fab__pulse {
  position: absolute; inset: 0; z-index: 0;
  border-radius: inherit; background: var(--accent); opacity: .55;
  animation: fab-pulse 2.4s var(--ease-soft) infinite;
}
@keyframes fab-pulse {
  0%   { transform: scale(1);   opacity: .55; }
  70%  { transform: scale(1.75); opacity: 0; }
  100% { transform: scale(1.75); opacity: 0; }
}

/* چپ: بازگشت به بالا — شیشه‌ای، تا اسکرول مخفی (out of tab order) */
.fab--top {
  inset-inline-end: clamp(14px, 3.2vw, 26px);
  width: 52px; height: 52px;
  background: var(--glass-bg-strong);
  color: var(--color-teal-deep);
  box-shadow: 0 14px 30px -14px rgba(15,46,64,.5), inset 0 1px 0 rgba(255,255,255,.6);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(14px) scale(.92);
}
.fab--top.is-shown { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.fab--top:hover { transform: translateY(-3px); background: #fff; color: var(--brand-deep); }
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .fab--top { background: #fff; }
}

/* ---- مودالِ ارتباط ---- */
.social-modal { position: fixed; inset: 0; z-index: 90; }
.social-modal[hidden] { display: none; }

.social-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(15,46,64,.5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity var(--dur-base) var(--ease-soft);
}
.social-modal.is-open .social-modal__backdrop { opacity: 1; }

.social-modal__panel {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -46%) scale(.96);
  width: min(94vw, 460px);
  max-height: min(88vh, 760px); overflow: auto;
  padding: clamp(22px, 4vw, 30px);
  border-radius: var(--radius-lg);
  border-start-end-radius: 38px;   /* امضای جریانِ K در RTL = بالا-چپ گردتر */
  background:
    linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,0) 52%),
    var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  backdrop-filter: blur(26px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 40px 90px -30px rgba(15,46,64,.6), inset 0 1px 0 rgba(255,255,255,.7);
  opacity: 0; isolation: isolate;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.social-modal.is-open .social-modal__panel { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.social-modal__panel:focus { outline: none; }
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .social-modal__panel { background: var(--glass-bg-strong); }
}
/* هالهٔ فیروزه + مونوگرامِ ghost برای حسِ «خفنِ» برند */
.social-modal__panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(0,170,183,.18), transparent 55%),
    radial-gradient(120% 90% at 0% 100%, rgba(0,170,183,.10), transparent 55%);
}
.social-modal__ghost-k {
  position: absolute; z-index: -1; pointer-events: none;
  inset-block-start: -14px; inset-inline-start: -10px;
  width: 130px; height: 130px; object-fit: contain; opacity: .1;
}

.social-modal__close {
  position: absolute; inset-block-start: 14px; inset-inline-end: 14px;
  width: 38px; height: 38px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(15,46,64,.06); border: 1px solid var(--border);
  color: var(--heading); cursor: pointer;
  transition: background var(--dur-fast) var(--ease-soft),
              color var(--dur-fast) var(--ease-soft),
              transform var(--dur-base) var(--ease-out);
}
.social-modal__close svg { width: 18px; height: 18px; }
.social-modal__close:hover { background: rgba(0,170,183,.14); color: var(--brand-deep); transform: rotate(90deg); }

.social-modal__head { text-align: center; margin-bottom: 20px; }
.social-modal__badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 12px;
  color: #fff; background: var(--grad-cta);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.5), 0 14px 26px -12px rgba(0,134,145,.7);
}
.social-modal__badge svg { width: 28px; height: 28px; }
.social-modal__title { color: var(--heading); font-weight: 800; font-size: 20px; margin: 0; }
.social-modal__sub { color: var(--text); font-size: 13.5px; line-height: 1.8; margin: 6px auto 0; max-width: 32ch; }

/* گریدِ کاشی‌های شبکه — دو ستونه (دسکتاپ)، تک‌ستونه روی شیتِ موبایل */
.social-grid { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }

.social-tile {
  position: relative; display: flex; align-items: center; gap: 12px;
  min-width: 0;   /* اجازهٔ کوچک‌شدنِ trackِ گرید زیرِ عرضِ نام‌های بلند */
  padding: 12px 14px; border-radius: 16px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.7);
  text-decoration: none; color: var(--heading);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-soft);
}
.social-tile:hover { transform: translateY(-3px); background: #fff; box-shadow: 0 16px 30px -16px var(--tile, rgba(15,46,64,.5)); }
.social-tile:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }

.social-tile__badge {
  flex: none; width: 44px; height: 44px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: var(--tile-grad, var(--grad-cta));
  box-shadow: 0 8px 16px -8px var(--tile, rgba(0,134,145,.6)), inset 0 0 0 1px rgba(255,255,255,.18);
  transition: transform var(--dur-base) var(--ease-out);
}
.social-tile__badge svg { width: 25px; height: 25px; }
.social-tile:hover .social-tile__badge { transform: rotate(-5deg) scale(1.05); }

.social-tile__txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.social-tile__name { font-weight: 700; font-size: 14.5px; color: var(--heading); line-height: 1.4; }
.social-tile__meta {
  font-size: 11.5px; color: var(--text); line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.social-modal__foot {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 18px; color: var(--text); font-size: 12.5px; font-weight: 600;
}
.social-modal__foot svg { width: 15px; height: 15px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* رنگِ برندِ هر کاشی: --tile = رنگِ سایه، --tile-grad = گرادیانِ بَج */
.social-tile--call      { --tile: rgba(0,134,145,.55); --tile-grad: linear-gradient(145deg, #00C9D8, #00818C); }
.social-tile--whatsapp  { --tile: rgba(18,140,126,.5); --tile-grad: linear-gradient(145deg, #25D366, #0F9D58); }
.social-tile--telegram  { --tile: rgba(34,158,217,.5); --tile-grad: linear-gradient(145deg, #2AABEE, #1E96D4); }
.social-tile--eitaa     { --tile: rgba(242,104,12,.5); --tile-grad: linear-gradient(145deg, #FF9E2C, #F2680C); }
.social-tile--bale      { --tile: rgba(14,128,116,.5); --tile-grad: linear-gradient(145deg, #2BC4A6, #0E8074); }
.social-tile--rubika    { --tile: rgba(228,12,123,.5); --tile-grad: linear-gradient(145deg, #FF8A00, #E40C7B); }
.social-tile--instagram { --tile: rgba(214,36,159,.5); --tile-grad: radial-gradient(circle at 30% 110%, #FFDB7D 0%, #FF7A3D 28%, #E60E6C 55%, #B0249C 78%, #5B4FE8 100%); }
.social-tile--email     { --tile: rgba(15,46,64,.45); --tile-grad: linear-gradient(145deg, #1B5468, #0F2E40); }

/* موبایل: مودال به‌صورتِ شیتِ پایین که از کف بالا می‌آید + گریدِ تک‌ستونهٔ تپ‌پذیر */
@media (max-width: 520px) {
  .social-modal__panel {
    left: 0; top: auto; bottom: 0;
    width: 100%; max-width: none; max-height: 90vh;
    border-radius: 28px 28px 0 0;
    transform: translateY(100%);
  }
  .social-modal.is-open .social-modal__panel { transform: translateY(0); }
  .social-grid { grid-template-columns: 1fr; }
}

/* دارک‌مود: کاشی‌ها و دکمهٔ بستن روی شیشهٔ تیره (پنل خودش با توکن‌ها تطبیق می‌یابد) */
html[data-theme="dark"] .social-tile { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.10); }
html[data-theme="dark"] .social-tile:hover { background: rgba(255,255,255,.09); }
html[data-theme="dark"] .social-modal__close { background: rgba(255,255,255,.08); }

/* احترام به reduced-motion: حذفِ تپش/لغزش/چرخش، فقط محو شدن می‌ماند */
@media (prefers-reduced-motion: reduce) {
  .fab__pulse { animation: none; opacity: 0; }
  .fab:active, .fab--contact:hover, .fab--top:hover,
  .social-tile:hover, .social-tile:hover .social-tile__badge,
  .social-modal__close:hover { transform: none; }
  .social-modal__panel,
  .social-modal.is-open .social-modal__panel {
    transform: translate(-50%, -50%);
    transition: opacity var(--dur-fast) linear;
  }
}
@media (prefers-reduced-motion: reduce) and (max-width: 520px) {
  .social-modal__panel,
  .social-modal.is-open .social-modal__panel { transform: none; }
}

/* ==========================================================================
   فوترِ سرمه‌ایِ غنی — Rich navy footer
   هم‌خانوادهٔ سلولِ هیرویِ بِنتو: پایهٔ navy + هالهٔ فیروزه + بافتِ نقطه‌ای +
   مونوگرامِ K. تمام رنگ‌ها از توکن‌ها مشتق شده‌اند (هیچ رنگِ خارج از پالت).
   ========================================================================== */
.site-footer { margin-top: 64px; }
@media (min-width: 768px) { .site-footer { margin-top: 88px; } }

.footer-wave {
  display: block; width: 100%;
  height: clamp(40px, 5vw, 68px);
  margin-bottom: -1px;
}

.footer-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--on-dark);
  padding: clamp(36px, 5vw, 56px) 0 24px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(0,170,183,.22) 0%, rgba(0,170,183,0) 55%),
    radial-gradient(120% 90% at 0% 100%, rgba(0,129,140,.30) 0%, rgba(0,129,140,0) 60%),
    var(--brand);
}
.footer-shell::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(rgba(255,255,255,.08) 1.1px, transparent 1.2px) 0 0 / 22px 22px;
  -webkit-mask: linear-gradient(180deg, #000 0%, transparent 70%);
          mask: linear-gradient(180deg, #000 0%, transparent 70%);
}

/* contact quick-strip */
.footer-contact {
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
  padding-bottom: clamp(28px, 4vw, 40px);
  margin-bottom: clamp(28px, 4vw, 40px);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
@media (min-width: 720px) { .footer-contact { grid-template-columns: repeat(3, 1fr); } }

.fc-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  text-decoration: none; color: inherit;
  transition: background var(--dur-fast) var(--ease-soft),
              border-color var(--dur-fast) var(--ease-soft),
              transform var(--dur-fast) var(--ease-out);
}
a.fc-card:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(0,170,183,.55);
  transform: translateY(-2px);
}
a.fc-card:focus-visible { outline: 3px solid var(--c-teal-300); outline-offset: 3px; }
.fc-ic {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px;
  color: var(--c-teal-200);
  background: linear-gradient(150deg, rgba(0,170,183,.30) 0%, rgba(0,170,183,.10) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.fc-ic .ic { width: 22px; height: 22px; }
.fc-txt { display: grid; gap: 3px; min-width: 0; }
.fc-label { font-size: 12.5px; font-weight: 600; color: var(--on-dark-muted); }
.fc-value { font-size: 14.5px; font-weight: 700; color: #fff; line-height: 1.5; }
a.fc-card:hover .fc-value { color: var(--c-teal-200); }

/* main grid */
.footer-main {
  display: grid; gap: 34px 30px;
  grid-template-columns: 1fr;
}
.footer-main > * { min-width: 0; }
@media (min-width: 560px) {
  .footer-main { grid-template-columns: repeat(2, 1fr); }
  .footer-about { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .footer-main { grid-template-columns: 1.7fr .85fr .85fr .85fr 1.35fr; }
  .footer-about { grid-column: auto; }
}

.footer-logo { height: 96px; width: auto; display: block; margin-bottom: 18px; }
.footer-about__lead {
  font-size: 14px; line-height: 1.95; font-weight: 300;
  color: var(--on-dark-muted); max-width: 42ch; margin: 0;
}
.footer-about__motto {
  display: block; margin-top: 8px;
  font-weight: 700; color: var(--c-teal-200);
}

/* social */
.footer-social {
  list-style: none; margin: 20px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.soc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 13px;
  color: #fff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  transition: background var(--dur-fast) var(--ease-soft),
              color var(--dur-fast) var(--ease-soft),
              border-color var(--dur-fast) var(--ease-soft),
              transform var(--dur-fast) var(--ease-out);
}
.soc-btn svg { width: 20px; height: 20px; }
.soc-btn:hover {
  color: #fff;
  background: var(--grad-cta);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 12px 22px -12px rgba(0,170,183,.8);
}
.soc-btn:focus-visible { outline: 3px solid var(--c-teal-300); outline-offset: 2px; }

/* footer heads/links on dark */
.site-footer .footer-h { color: #fff; }
.site-footer .footer-h::after {
  background: linear-gradient(90deg, var(--c-teal-300), var(--c-teal-600));
}
.site-footer .f-link { color: rgba(255,255,255,.74); }
.site-footer .f-link:hover,
.site-footer .f-link:focus-visible { color: var(--c-teal-200); }
.footer-news__lead {
  font-size: 13.5px; line-height: 1.8;
  color: var(--on-dark-muted); margin: 0 0 14px;
}

/* trust badges */
.footer-trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
  margin-top: clamp(30px, 4vw, 44px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid rgba(255,255,255,.10);
}
.footer-trust__title {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 700; color: var(--on-dark-muted);
}
.footer-trust__title .ic { width: 18px; height: 18px; color: var(--c-teal-200); }
.trust-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.95);
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-soft);
}
.trust-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.trust-badge:focus-visible { outline: 3px solid var(--c-teal-300); outline-offset: 3px; }
.trust-badge__seal {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 11px;
  color: #fff; background: var(--grad-flow);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.7);
}
.trust-badge__seal svg { width: 22px; height: 22px; }
.trust-badge__txt { display: grid; gap: 2px; }
.trust-badge__name { font-size: 13px; font-weight: 700; color: var(--brand); line-height: 1.4; }
.trust-badge__meta { font-size: 11px; font-weight: 600; color: var(--accent); direction: ltr; }

/* bottom bar */
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px 20px;
  align-items: center; justify-content: space-between;
  margin-top: clamp(26px, 3.5vw, 38px);
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.footer-copy { margin: 0; font-size: 12.5px; color: var(--on-dark-muted); }
.footer-legal {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
}
.footer-legal a {
  font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.72);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-legal a:hover, .footer-legal a:focus-visible { color: var(--c-teal-200); }
.footer-legal li + li { position: relative; padding-inline-start: 18px; }
.footer-legal li + li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 50%;
  width: 1px; height: 13px; transform: translateY(-50%);
  background: rgba(255,255,255,.22);
}

@media (prefers-reduced-motion: reduce) {
  .fc-card, .soc-btn, .trust-badge, .site-footer .f-link { transition: none; }
  a.fc-card:hover, .soc-btn:hover, .trust-badge:hover { transform: none; }
}

/* ==========================================================================
   فوتر — بازچینش: خبرنامه هم‌ردیفِ نمادها + لوگوی بزرگ‌تر
   (این بلوک بعد از تعاریفِ قبلیِ فوتر می‌آید، پس override می‌کند)
   ========================================================================== */

/* گریدِ اصلی حالا ۴ ستون است (خبرنامه از گرید خارج شد) → ستونِ برند جا برای لوگوی بزرگ‌تر دارد */
@media (min-width: 1024px) {
  .footer-main { grid-template-columns: 1.9fr 1fr 1fr 1fr; }
}

/* لوگوی بزرگ‌تر در سکشنِ برند */
.footer-logo { height: 132px; margin-bottom: 22px; }
@media (min-width: 768px) { .footer-logo { height: 152px; } }
.footer-about__lead { max-width: 46ch; font-size: 14.5px; }

/* ── نوارِ خبرنامه + نمادها (هم‌ردیف، تمام‌عرض، کارتِ ظریف) ── */
.footer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px 48px;
  margin-top: clamp(32px, 4vw, 48px);
  padding: clamp(20px, 3vw, 28px) clamp(18px, 3vw, 28px);
  border-radius: 22px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
}

/* خبرنامه — همهٔ المان‌ها ردیفی: [آیکون] [عنوان+متن] [اینپوتِ پهن + دکمه] */
.footer-news {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  flex: 1 1 480px;
  min-width: 0;
  margin: 0;
}
.footer-news__icon {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 15px;
  color: var(--c-teal-200);
  background: linear-gradient(150deg, rgba(0,170,183,.30) 0%, rgba(0,170,183,.10) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.footer-news__icon .ic { width: 24px; height: 24px; }
.footer-news__txt { flex: 0 1 auto; min-width: 0; }
.footer-news__txt .footer-h { margin-bottom: 3px; padding-bottom: 0; font-size: 16px; }
.footer-news__txt .footer-h::after { content: none; }   /* در چیدمانِ ردیفی خطِ زیرِ عنوان لازم نیست */
.footer-news__lead { margin: 0; font-size: 13px; }

/* بخشِ فرم رشد می‌کند تا اینپوتِ ایمیل پهن و جادار شود */
.footer-news__form { flex: 1 1 340px; min-width: 0; }
.footer-news__form .newsletter { display: flex; gap: 10px; margin: 0; }
.footer-news__form .field { flex: 1 1 auto; min-width: 0; }
@media (max-width: 440px) { .footer-news__form .newsletter { flex-direction: column; } }

/* نمادهای اعتماد داخلِ نوار — بدونِ بوردر/فاصلهٔ بالاییِ مستقل */
.footer-cta .footer-trust {
  flex: 0 1 auto;
  margin-top: 0; padding-top: 0; border-top: 0;
}

@media (max-width: 1023px) {
  .footer-cta { justify-content: flex-start; }
}

/* ==========================================================================
   فوتر — خبرنامهٔ تک‌خطیِ جمع‌وجور و هم‌تراز
   آیکون + متن + اینپوت + دکمه همگی در یک خط، هم‌قد و مرتب.
   (آخرین بلوک → بر تعاریفِ قبلیِ خبرنامه override می‌کند)
   ========================================================================== */

/* خوشهٔ خبرنامه به‌اندازهٔ محتوا (رشد نمی‌کند) تا با نمادها space-between شود */
.footer-news { flex: 0 1 auto; gap: 12px 14px; }
@media (min-width: 768px) { .footer-news { flex-wrap: nowrap; } }

/* آیکونِ کوچک‌ترِ هم‌قدِ اینپوت/دکمه */
.footer-news__icon { width: 44px; height: 44px; border-radius: 13px; }
.footer-news__icon .ic { width: 22px; height: 22px; }

/* بلوکِ عنوان+متن جمع‌وجور (متن در صورت نیاز دو خط می‌شود) */
.footer-news__txt { max-width: 220px; }
.footer-news__txt .footer-h { font-size: 15px; }
.footer-news__lead { font-size: 12px; line-height: 1.55; }

/* فرم رشد نمی‌کند؛ اینپوت کوتاه‌تر، کم‌عرض‌تر و هم‌قدِ دکمه (۴۴px) */
.footer-news__form { flex: 0 1 auto; }
.footer-news__form .newsletter { align-items: center; gap: 8px; margin: 0; }
.footer-news__form .field {
  flex: 0 1 230px;
  width: 230px;
  min-height: 44px;
  padding-block: 9px;
}
.footer-news__form .btn {
  min-height: 44px;
  padding-inline: 20px;
  font-size: 14px;
}

/* موبایلِ کوچک: فرم تمام‌عرض و ستونی */
@media (max-width: 480px) {
  .footer-news__form { flex-basis: 100%; width: 100%; }
  .footer-news__form .field { width: 100%; flex-basis: auto; }
}

/* ==========================================================================
   فوتر — هم‌قد کردنِ اینپوت و کاشی‌های نماد با دکمهٔ «عضویت» (۴۴px)
   (آخرین بلوک → بر همهٔ تعاریفِ قبلی override می‌کند)
   ========================================================================== */

/* اینپوتِ ایمیل دقیقاً ۴۴px — حذفِ ارتفاعِ اضافیِ ناشی از line-height/padding */
.footer-news__form .field {
  height: 44px;
  min-height: 44px;
  padding: 0 14px;
  line-height: 1.2;
}

/* دکمهٔ عضویت هم همان ۴۴px (مرجعِ ترازِ ردیف) */
.footer-news__form .btn { height: 44px; min-height: 44px; }

/* کاشی‌های نماد هم‌قدِ دکمه — پدینگِ کم‌تر و مهرِ کوچک‌ترِ ۳۰px */
.trust-badge {
  padding: 6px 14px 6px 8px;
  gap: 9px;
  border-radius: 12px;
}
.trust-badge__seal {
  width: 30px; height: 30px;
  border-radius: 9px;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7);
}
.trust-badge__seal svg { width: 17px; height: 17px; }
.trust-badge__txt { gap: 1px; }
.trust-badge__name { font-size: 12px; line-height: 1.3; }
.trust-badge__meta { font-size: 10.5px; line-height: 1.2; }
