/* ══════════════════════════════════════════════════════════════════════
   استایل مشترک همه‌ی صفحه‌ها — amirrahbar.ir
   ----------------------------------------------------------------------
   این فایل تنها جای تعریف پایه، نو، فوتر و دکمه‌هاست. پیش از این، همین
   قاعده‌ها در هفت فایل کپی شده بودند و هر تغییر باید هفت‌بار تکرار می‌شد.
   نسخه‌ی نو و فوتر از index.php گرفته شده (تازه‌ترین نسخه) و حالا همه‌ی
   صفحه‌ها همان را می‌گیرند.

   استایلِ مخصوصِ هر صفحه در خود آن صفحه می‌ماند.
   ══════════════════════════════════════════════════════════════════════ */

:root {
  color-scheme: dark;
  /* پالت — تنها جای تعریف رنگ‌ها */
  --ink:        #080A0D;   /* پس‌زمینه‌ی اصلی */
  --ink-2:      #0C0E12;   /* پس‌زمینه‌ی بخش تیره */
  --ink-3:      #111318;   /* پس‌زمینه‌ی کارت */
  --line:       #1E2028;   /* خط جداکننده */
  --line-2:     #2C2F39;
  --line-3:     #3A3D49;
  --gold:       #C8A84B;   /* رنگ برند */
  --gold-soft:  #DABF6E;
  --text:       #B8B6AD;   /* متن معمول */
  --text-hi:    #F0EDE4;   /* متن روشن */
  --text-dim:   #6E6D68;   /* متن کم‌رنگ */
  --text-faint: #35342F;
  --font-fa:    'Yekan Bakh', 'Vazirmatn', sans-serif;
  --font-en:    'Inter', sans-serif;
}

@font-face {
  font-family: 'Yekan Bakh';
  src: url('/fonts/yekanbakh/YekanBakh-VF.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-fa);
  background: var(--ink);
  color: var(--text);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ───────────────────────── نو ───────────────────────── */
nav {
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  position: sticky;
  top: 0;
  z-index: 100;
  direction: ltr;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 42px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 44px; list-style: none; direction: rtl; }
.nav-links a {
  position: relative;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .2px;
  padding: 6px 0;
  transition: color .2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  right: 0; left: 0; bottom: -4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-hi); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  padding: 11px 26px;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  direction: rtl;
  font-family: var(--font-fa);
  transition: background .25s, color .25s;
}
.nav-cta:hover { background: var(--gold); color: var(--ink); }
.hb-btn { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.hbl { width: 22px; height: 1.5px; background: var(--text-dim); display: block; }

/* کلیدزبان FA / EN / AR */
.lang-wrap { display: flex; align-items: center; gap: 6px; margin: 0 10px; font-family: var(--font-en); font-size: 12px; direction: ltr; }
.lang-sw { color: var(--text-dim); transition: color .2s; letter-spacing: .5px; }
.lang-sw:hover, .lang-sw.on { color: var(--gold); }
.lang-sep { color: var(--text-faint); font-size: 11px; }
.mob-lang { display: flex; gap: 18px; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.mob-lang a { display: inline; padding: 0; border: none; font-family: var(--font-en); font-size: 14px; font-weight: 600; color: var(--text-dim); }
.mob-lang a.on { color: var(--gold); }

/* ───────────────────── منوی موبایل ───────────────────── */
#mob { display: none; background: var(--ink-2); border-bottom: 1px solid var(--line); position: sticky; top: 88px; z-index: 99; }
#mob.open { display: block; }
#mob a { display: block; padding: 16px 24px; color: var(--text); border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 700; }
#mob .mob-cta { background: var(--gold); color: var(--ink); font-weight: 700; }

/* ─────────────────── عنوان کوچک بالای بخش ─────────────────── */
.ey {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.ey::before { content: ''; width: 18px; height: 1px; background: var(--gold); }

/* ───────────────────────── دکمه‌ها ───────────────────────── */
.btn-gold {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 34px;
  background: var(--gold); color: var(--ink);
  border-radius: 999px;
  font-family: var(--font-fa); font-size: 14px; font-weight: 700;
  transition: background .25s, transform .25s, box-shadow .25s;
}
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: 0 10px 26px -12px rgba(200,168,75,.45); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 28px;
  border: 1px solid var(--line-3); color: var(--text);
  border-radius: 999px; font-size: 13px; font-weight: 600;
  transition: border-color .25s, color .25s, background .25s, transform .25s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: rgba(200,168,75,.07); transform: translateY(-2px); }
.ltr { direction: ltr; unicode-bidi: embed; text-align: right; }

/* ───────────────────────── فوتر ───────────────────────── */
footer { background: var(--ink-2); border-top: 1px solid var(--line); padding: 40px 48px; }
.f-grid { display: grid; grid-template-columns: 200px 1fr 1fr 180px; gap: 40px; margin-bottom: 28px; }
.f-logo img { height: 26px; width: auto; margin-bottom: 8px; opacity: .7; }
.f-tag { font-size: 12px; color: var(--text-dim); line-height: 1.8; }
.f-col-t {
  font-family: var(--font-en); font-size: 9px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 12px;
}
.f-links { display: flex; flex-direction: column; gap: 9px; }
.f-links a { font-size: 13px; color: var(--text-dim); transition: color .2s; }
.f-links a:hover { color: var(--text-hi); }
.f-contact { font-size: 13px; color: var(--text-dim); line-height: 2; }
.f-contact a { color: var(--text-dim); transition: color .2s; }
.f-contact a:hover { color: var(--gold); }
.f-bottom { padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.f-copy { font-size: 11px; color: var(--text-faint); }

/* شبکه‌های اجتماعی */
.f-soc { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.f-soc a {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #15171D; border: 1px solid var(--line-2);
  transition: transform .22s, background .22s, border-color .22s, color .22s, box-shadow .22s;
}
.f-soc a svg { width: 18px; height: 18px; display: block; }
.f-soc a:hover { transform: translateY(-3px); }
.f-soc .s-instagram { color: #FF5C93; }
.f-soc .s-instagram:hover { background: #E1306C; border-color: #E1306C; color: #fff; box-shadow: 0 8px 20px -8px rgba(225,48,108,.75); }
.f-soc .s-aparat { color: #FF4A61; }
.f-soc .s-aparat:hover { background: #E8112D; border-color: #E8112D; color: #fff; box-shadow: 0 8px 20px -8px rgba(232,17,45,.75); }
.f-soc .s-linkedin { color: #57A9FF; }
.f-soc .s-linkedin:hover { background: #0A66C2; border-color: #0A66C2; color: #fff; box-shadow: 0 8px 20px -8px rgba(10,102,194,.75); }
.f-soc .s-threads { color: #EDEAE1; }
.f-soc .s-threads:hover { background: #EDEAE1; border-color: #EDEAE1; color: var(--ink-2); box-shadow: 0 8px 20px -8px rgba(237,234,225,.6); }
.f-soc .s-whatsapp { color: #3FE07C; }
.f-soc .s-whatsapp:hover { background: #25D366; border-color: #25D366; color: var(--ink-2); box-shadow: 0 8px 20px -8px rgba(37,211,102,.75); }

/* ───────────────────── واکنش‌گرا ───────────────────── */
@media (max-width: 1024px) {
  nav { padding: 0 20px; }
  .nav-links, .nav-cta { display: none; }
  .hb-btn { display: flex; }
  footer { padding: 32px 20px; }
  .f-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  nav { height: 54px; }
  #mob { top: 54px; }
  .f-grid { grid-template-columns: 1fr; }
}

/* ─────────────── مکان‌نمای سفارشی (نقطه + حلقه) ───────────────
   در هر ۷ صفحه استفاده می‌شد و در هر ۷ فایل کپی شده بود.
   روی دستگاه لمسی خودکار خاموش می‌شود. */
#cur-dot, #cur-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity .3s;
}
#cur-dot { width: 8px; height: 8px; background: var(--gold); }
#cur-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(200, 168, 75, .5);
  transition: width .2s, height .2s, border-color .2s, transform .12s ease-out;
}
@media (hover: none) {
  #cur-dot, #cur-ring { display: none; }
}

/* ───────── ظاهرشدن نرم عناصر با اسکرول (اگر JS فعال بود) ───────── */
@media (prefers-reduced-motion: no-preference) {
  .js-rv .sec-hdr, .js-rv .pc, .js-rv .sc, .js-rv .tg-tile,
  .js-rv .ic, .js-rv .bs-item, .js-rv .ts-card, .js-rv .ccard {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s ease;
  }
  .js-rv .rv-in { opacity: 1; transform: none; }

  /* لوگوی برندها: ورود پلکانی. عمداً به هاور وابسته نیست تا روی
     موبایل هم دیده شود. */
  .js-rv .bi {
    opacity: 0;
    transform: translateY(16px) scale(.96);
    transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1);
  }
  .js-rv .bi.rv-in { opacity: 1; transform: none; }
  .js-rv .bi:nth-child(2) { transition-delay: .06s; }
  .js-rv .bi:nth-child(3) { transition-delay: .12s; }
  .js-rv .bi:nth-child(4) { transition-delay: .18s; }
  .js-rv .bi:nth-child(5) { transition-delay: .24s; }
  .js-rv .bi:nth-child(6) { transition-delay: .30s; }
  .js-rv .bi:nth-child(7) { transition-delay: .36s; }
}
