/* ═══════════════════════════════════════════════════════════
   محله‌ی تاریخی و شهیدپرور حسن‌آباد مشیر یزد — استایل اصلی
   تم: تیره و نئونی (پیش‌فرض) + حالت روز
   ═══════════════════════════════════════════════════════════ */

/* ── حالت شب (پیش‌فرض) ── */
:root,
[data-theme="dark"] {
  --bg:        #07080b;
  --bg-2:      #0c0e13;
  --panel:     #11141b;
  --panel-2:   #171b24;
  --line:      rgba(255, 255, 255, .08);
  --line-2:    rgba(255, 255, 255, .14);

  --txt:       #eef1f7;
  --txt-soft:  #b9c1d0;
  --txt-mute:  #7d879b;

  --gold:      #f3c250;
  --gold-2:    #ffdf8a;
  --green:     #2fd977;
  --green-2:   #7bffb4;
  --red:       #ff4257;
  --red-2:     #ff8a97;

  --hero-veil-a: rgba(7, 8, 11, .48);
  --hero-veil-b: rgba(7, 8, 11, .62);
  --hero-veil-c: rgba(7, 8, 11, .93);
  --hero-veil-d: rgba(7, 8, 11, .55);
  --hero-veil-e: rgba(7, 8, 11, .86);
  --card-bg-a:  rgba(255, 255, 255, .05);
  --card-bg-b:  rgba(255, 255, 255, .012);
  --card-bg-c:  rgba(255, 255, 255, .035);
  --input-bg:   rgba(0, 0, 0, .32);
  --input-bg-f: rgba(0, 0, 0, .5);
  --header-bg:  rgba(7, 8, 11, .72);
  --header-bg2: rgba(7, 8, 11, .93);
  --nav-mobile: rgba(9, 11, 15, .98);
  --martyr-bg-a: #151922;
  --martyr-bg-b: #0c0f14;
  --media-bg:   #0d1015;
  --scroll-trk: #0a0c11;
  --scroll-thb: #262c38;
  --scroll-thb2:#39414f;
  --chip-bg:    rgba(255,255,255,.035);
  --blur-bg:    rgba(14, 17, 23, .62);
  --lightbox-bg: rgba(4,5,7,.96);
  --shadow:    0 24px 60px -20px rgba(0, 0, 0, .85);

  --radius:    20px;
  --radius-sm: 13px;
  --maxw:      1180px;
  --ease:      cubic-bezier(.22, .8, .28, 1);
}

/* ── حالت روز ── */
[data-theme="light"] {
  --bg:        #f7f4ec;
  --bg-2:      #fdfbf6;
  --panel:     #ffffff;
  --panel-2:   #f6f1e4;
  --line:      rgba(60, 45, 20, .12);
  --line-2:    rgba(60, 45, 20, .2);

  --txt:       #241d10;
  --txt-soft:  #5a5142;
  --txt-mute:  #8b8271;

  --gold:      #c99413;
  --gold-2:    #e0ac2e;
  --green:     #1a9e50;
  --green-2:   #158a45;
  --red:       #d82a41;
  --red-2:     #c01e34;

  --hero-veil-a: rgba(247, 244, 236, .35);
  --hero-veil-b: rgba(247, 244, 236, .55);
  --hero-veil-c: rgba(247, 244, 236, .9);
  --hero-veil-d: rgba(247, 244, 236, .5);
  --hero-veil-e: rgba(247, 244, 236, .8);
  --card-bg-a:  rgba(255, 255, 255, .95);
  --card-bg-b:  rgba(255, 255, 255, .75);
  --card-bg-c:  rgba(120, 95, 40, .05);
  --input-bg:   rgba(255, 255, 255, .9);
  --input-bg-f: #ffffff;
  --header-bg:  rgba(247, 244, 236, .8);
  --header-bg2: rgba(247, 244, 236, .96);
  --nav-mobile: rgba(250, 248, 242, .99);
  --martyr-bg-a: #ffffff;
  --martyr-bg-b: #f2ece0;
  --media-bg:   #efe9dc;
  --scroll-trk: #e8e1d3;
  --scroll-thb: #cdc3ae;
  --scroll-thb2:#b9ad94;
  --chip-bg:    rgba(120, 95, 40, .06);
  --blur-bg:    rgba(255, 255, 255, .75);
  --lightbox-bg: rgba(250, 248, 242, .97);
  --shadow:    0 20px 50px -22px rgba(80, 60, 20, .35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: Vazirmatn, "Vazir", IRANSans, "IRANSansX", Tahoma, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--txt);
  line-height: 1.85;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* انتقال نرم هنگام تغییر تم روز/شب */
  transition: background-color .6s var(--ease), color .6s var(--ease);
}

/* بافت پس‌زمینه */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  transition: opacity .6s var(--ease);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(243, 194, 80, .10), transparent 65%),
    radial-gradient(800px 500px at 5% 15%, rgba(47, 217, 119, .07), transparent 65%),
    radial-gradient(700px 600px at 50% 110%, rgba(255, 66, 87, .07), transparent 65%);
}
[data-theme="light"] body::before {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(230, 176, 40, .16), transparent 65%),
    radial-gradient(800px 500px at 5% 15%, rgba(26, 158, 80, .10), transparent 65%),
    radial-gradient(700px 600px at 50% 110%, rgba(216, 42, 65, .07), transparent 65%);
}

/* عناصر ساختاری هم انتقال نرم داشته باشند */
.header, .section, .footer, .card, .feature, .martyr, .linkcard,
.contact__form, .photo, .videobox, .filter, .chips span, .btn,
.field input, .field select, .field textarea, .hero__facts,
.about__frame, .about__badge, .theme-toggle__track, .theme-toggle__thumb {
  transition:
    background-color .5s var(--ease),
    border-color .5s var(--ease),
    color .5s var(--ease),
    box-shadow .5s var(--ease),
    transform .35s var(--ease);
}
/* اما انیمیشن ورود (transform/opacity) را خراب نکن */
[data-reveal] { transition: opacity .8s var(--ease), transform .8s var(--ease); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
code { font-family: ui-monospace, Consolas, monospace; background: var(--card-bg-a); padding: 2px 7px; border-radius: 6px; font-size: .86em; direction: ltr; display: inline-block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; position: relative; z-index: 1; }

::selection { background: var(--gold); color: var(--bg); }

/* اسکرول‌بار */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--scroll-trk); }
::-webkit-scrollbar-thumb { background: var(--scroll-thb); border-radius: 20px; border: 2px solid var(--scroll-trk); }
::-webkit-scrollbar-thumb:hover { background: var(--scroll-thb2); }

/* ─────────────── نوار اطلاع‌رسانی ─────────────── */
.notice {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px;
  background: linear-gradient(90deg, rgba(243,194,80,.14), rgba(47,217,119,.10));
  border-bottom: 1px solid rgba(243,194,80,.28);
  font-size: 13.5px;
  color: #f6e7c4;
  transition: .4s var(--ease);
}
.notice.is-hidden { display: none; }
.notice p { flex: 1; }
.notice__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(243,194,80,.6);
  animation: pulse 2s infinite;
  flex: none;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(243,194,80,0); }
  100% { box-shadow: 0 0 0 0 rgba(243,194,80,0); }
}
.notice__close {
  font-size: 22px; line-height: 1; color: #f6e7c4; opacity: .6;
  padding: 0 4px; transition: .2s;
}
.notice__close:hover { opacity: 1; transform: rotate(90deg); }

/* ─────────────── هدر ─────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  transition: .35s var(--ease);
}
.header.is-stuck {
  background: var(--header-bg2);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 40px -18px rgba(0,0,0,.9);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 74px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 42px; height: 42px; flex: none;
  color: var(--gold);
  filter: drop-shadow(0 0 12px rgba(243,194,80,.5));
}
.brand__text { display: flex; flex-direction: column; line-height: 1.3; }

/* ── نام برند: دو خط زیبا با گرادیان طلایی-سبز ── */
.brand__title {
  display: flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 800;
  letter-spacing: -.2px;
  background: linear-gradient(100deg, var(--gold-2), var(--gold) 45%, var(--green-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: filter .4s var(--ease);
}
.brand:hover .brand__title { filter: drop-shadow(0 0 12px rgba(243,194,80,.45)); }
.brand__title-a { white-space: nowrap; }
.brand__title-b { white-space: nowrap; }
.brand__amp {
  font-size: 11px;
  font-weight: 600;
  color: var(--txt-mute);
  -webkit-text-fill-color: var(--txt-mute);
  transform: translateY(1px);
}
.brand__sub { display: flex; align-items: center; gap: 7px; margin-top: 1px; }
.brand__sub-name {
  font-size: 12.5px; font-weight: 700;
  color: var(--txt);
  letter-spacing: .2px;
  position: relative;
  padding-right: 12px;
}
.brand__sub-name::before {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(243,194,80,.9);
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 14px;
  font-size: 14px;
  color: var(--txt-soft);
  border-radius: 10px;
  transition: .25s var(--ease);
  position: relative;
}
.nav a:hover { color: var(--txt); background: var(--card-bg-c); }
/* «ارتباط با ما» و «درباره محله» هم‌رنگ بقیه‌ی لینک‌های منو هستند */
.nav__cta {
  color: var(--txt-soft) !important;
  background: transparent !important;
  font-weight: 600;
  box-shadow: none;
}
.nav__cta:hover { color: var(--txt) !important; background: var(--card-bg-c) !important; }

.burger { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--txt); border-radius: 3px; transition: .3s var(--ease); }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─────────────── کلید روز / شب ─────────────── */
.theme-toggle {
  margin-right: 8px;
  padding: 0;
  border: none;
  background: none;
  flex: none;
  display: grid;
  place-items: center;
}
.theme-toggle__track {
  position: relative;
  display: block;
  width: 52px; height: 28px;
  border-radius: 100px;
  border: 1px solid var(--line-2);
  background:
    linear-gradient(135deg, rgba(243,194,80,.16), rgba(243,194,80,.05));
  transition: background .45s var(--ease), border-color .45s var(--ease),
              box-shadow .45s var(--ease);
}
.theme-toggle__thumb {
  position: absolute;
  top: 2px; right: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #1a1408;
  box-shadow: 0 4px 12px -3px rgba(243,194,80,.85);
  transition: transform .5s cubic-bezier(.34,1.56,.64,1), background .45s var(--ease),
              box-shadow .45s var(--ease);
}
.theme-toggle__icon {
  position: absolute;
  width: 14px; height: 14px;
  transition: opacity .35s var(--ease), transform .5s var(--ease);
}
.theme-toggle__icon--sun  { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-toggle__icon--moon { opacity: 0; transform: rotate(-70deg) scale(.5); }

/* حالت شب (پیش‌فرض): دستگیره سمت راست، آیکون ماه */
[data-theme="dark"] .theme-toggle__icon--sun  { opacity: 0; transform: rotate(70deg) scale(.5); }
[data-theme="dark"] .theme-toggle__icon--moon { opacity: 1; transform: rotate(0deg) scale(1); }

/* حالت روز: دستگیره سمت چپ، آیکون خورشید */
[data-theme="light"] .theme-toggle__track {
  background: linear-gradient(135deg, rgba(255,196,60,.35), rgba(255,224,138,.22));
  border-color: rgba(220,160,30,.5);
}
[data-theme="light"] .theme-toggle__thumb {
  transform: translateX(-24px);
  background: linear-gradient(135deg, #fff2cf, #ffd76a);
  color: #7a5400;
}
.theme-toggle:hover .theme-toggle__thumb { transform: scale(1.08); }
[data-theme="light"] .theme-toggle:hover .theme-toggle__thumb { transform: translateX(-24px) scale(1.08); }
.theme-toggle:focus-visible .theme-toggle__track {
  outline: none;
  box-shadow: 0 0 0 4px rgba(243,194,80,.28);
}

/* ─────────────── دکمه‌ها ─────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px;
  border-radius: 14px;
  font-size: 15px; font-weight: 700;
  transition: .3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #1a1408;
  box-shadow: 0 14px 34px -12px rgba(243,194,80,.75);
}
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 20px 42px -12px rgba(243,194,80,.9); }
.btn--ghost {
  border: 1px solid var(--line-2);
  color: var(--txt);
  background: var(--card-bg-c);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--line-2); background: var(--card-bg-a); transform: translateY(-3px); }
.btn--block { width: 100%; }

/* ─────────────── تیترهای کوچک ─────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600;
  color: var(--gold);
  letter-spacing: .3px;
  margin-bottom: 16px;
}
.eyebrow i {
  width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
  display: block;
}

h1, h2, h3 { line-height: 1.45; font-weight: 800; letter-spacing: -.4px; }

.sec-head { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.sec-head h2 { font-size: clamp(26px, 4.2vw, 40px); margin-bottom: 14px; }
.sec-head p { color: var(--txt-soft); font-size: 16px; }

.section { padding: 100px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, var(--card-bg-c), transparent 60%); }

/* ─────────────── هیرو ─────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 90px 0 70px;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  animation: heroZoom 22s ease-in-out infinite alternate;
}
@keyframes heroZoom { to { transform: scale(1.14); } }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--hero-veil-a) 0%, var(--hero-veil-b) 40%, var(--hero-veil-c) 80%, var(--bg) 100%),
    radial-gradient(72% 58% at 50% 44%, var(--hero-veil-d), var(--hero-veil-e) 100%);
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .38;
  pointer-events: none;
}
.hero__glow--gold  { width: 420px; height: 420px; background: var(--gold);  top: 8%;  right: 18%; animation: float 12s ease-in-out infinite; }
.hero__glow--green { width: 320px; height: 320px; background: var(--green); bottom: 12%; left: 14%; animation: float 15s ease-in-out infinite reverse; }
.hero__glow--red   { width: 280px; height: 280px; background: var(--red);   bottom: 26%; right: 8%; animation: float 18s ease-in-out infinite; }
@keyframes float {
  50% { transform: translate3d(28px, -34px, 0) scale(1.12); }
}

.hero__inner { position: relative; z-index: 2; text-align: center; max-width: 900px; }

.hero h1 {
  font-size: clamp(32px, 6.4vw, 62px);
  line-height: 1.3;
  margin-bottom: 22px;
  text-shadow: 0 4px 40px rgba(0,0,0,.8);
}
.neon {
  background: linear-gradient(100deg, var(--gold-2), var(--gold) 40%, var(--green-2) 78%, var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(243,194,80,.42));
}
.hero__lead {
  font-size: clamp(15px, 1.7vw, 18px);
  color: #d7dde8;
  max-width: 700px;
  margin: 0 auto 34px;
  text-shadow: 0 2px 20px rgba(0,0,0,.9);
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 58px; }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--blur-bg);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.hero__facts li { display: flex; flex-direction: column; gap: 2px; }
.hero__facts li + li { border-right: 1px solid var(--line); }
.hero__facts b {
  font-size: clamp(19px, 2.6vw, 26px);
  color: var(--gold);
  font-weight: 800;
  direction: ltr;
}
.hero__facts b.is-word { direction: rtl; font-size: clamp(16px, 2vw, 21px); }
.hero__facts span { font-size: 12.5px; color: var(--txt-mute); }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid var(--line-2); border-radius: 14px;
  z-index: 3;
}
.hero__scroll span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 3px; background: var(--gold);
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translate(-50%, -4px); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 16px); }
}

/* ─────────────── درباره ─────────────── */
.about { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.about__text h2 { font-size: clamp(25px, 3.8vw, 38px); margin-bottom: 20px; }
.about__text p { color: var(--txt-soft); margin-bottom: 16px; }
.about__text p b { color: var(--txt); }

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 26px 0 28px; }
.chips span {
  font-size: 13px;
  padding: 8px 15px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--chip-bg);
  color: var(--txt-soft);
  transition: .25s var(--ease);
}
.chips span:hover {
  color: var(--gold);
  border-color: rgba(243,194,80,.5);
  background: rgba(243,194,80,.08);
  transform: translateY(-2px);
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-weight: 700; font-size: 14.5px;
  transition: .25s var(--ease);
}
.link-arrow svg { width: 18px; height: 18px; transition: .25s var(--ease); }
.link-arrow:hover { gap: 14px; }

.about__media { position: relative; }
.about__frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  position: relative;
}
.about__frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, var(--hero-veil-c));
}
.about__frame img { width: 100%; height: 460px; object-fit: cover; transition: 1s var(--ease); }
.about__frame:hover img { transform: scale(1.06); }

.about__badge {
  position: absolute;
  bottom: -22px; right: -14px;
  background: linear-gradient(135deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  max-width: 300px;
}
.about__badge b { color: var(--gold); font-size: 15px; }
.about__badge span { font-size: 12px; color: var(--txt-mute); }

/* ─────────────── کارت‌ها ─────────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--card-bg-a), var(--card-bg-b));
  overflow: hidden;
  transition: .4s var(--ease);
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(320px 160px at 100% 0%, rgba(243,194,80,.13), transparent 70%);
  opacity: 0; transition: .4s var(--ease);
}
.card:hover { transform: translateY(-7px); border-color: rgba(243,194,80,.32); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }

.card__icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  position: relative; z-index: 1;
}
.card__icon svg { width: 25px; height: 25px; }
.card__icon--gold  { background: rgba(243,194,80,.12); color: var(--gold);  box-shadow: inset 0 0 0 1px rgba(243,194,80,.28); }
.card__icon--green { background: rgba(47,217,119,.12); color: var(--green); box-shadow: inset 0 0 0 1px rgba(47,217,119,.28); }
.card__icon--red   { background: rgba(255,66,87,.12);  color: var(--red);   box-shadow: inset 0 0 0 1px rgba(255,66,87,.28); }

.card h3 { font-size: 18px; margin-bottom: 9px; position: relative; z-index: 1; }
.card p { font-size: 14.5px; color: var(--txt-soft); position: relative; z-index: 1; }

.card__tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--txt-mute);
  border: 1px solid var(--line);
  padding: 4px 11px;
  border-radius: 100px;
  position: relative; z-index: 1;
}

/* ─────────────── یادواره شهدا ─────────────── */
.martyrs { background: linear-gradient(180deg, transparent, rgba(255,66,87,.05), transparent); }

/* نسخه‌ی ابتدای صفحه (بلافاصله پس از هیرو) */
.martyrs--top {
  padding-top: 84px;
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(243,194,80,.09), transparent 70%),
    linear-gradient(180deg, transparent, rgba(255,66,87,.05), transparent);
}

/* ── چیدمان سه‌ستونی شهدا ──
   ستون‌ها از راست به چپ:
   ستون ۱ = سمت راست، ستون ۲ = وسط، ستون ۳ = سمت چپ
   هر ستون مستقل است و کارت‌ها هم‌نسبت (۵:۷) نمایش داده می‌شوند.  */
.martyrs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.martyrs__col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
/* کارت‌های هر ستون هم‌عرض و هم‌نسبت هستند و از بالا چیده می‌شوند */
.martyrs__col--mid { justify-content: flex-start; }
.martyrs__inner { text-align: center; max-width: 860px; margin: 0 auto 54px; }
.martyrs h2 { font-size: clamp(25px, 3.8vw, 38px); margin-bottom: 26px; }
.martyrs blockquote {
  font-size: clamp(17px, 2.2vw, 22px);
  color: var(--gold-2);
  line-height: 2;
  margin: 0 auto 24px;
  padding: 26px 30px;
  border-radius: var(--radius);
  border: 1px solid rgba(243,194,80,.24);
  background: rgba(243,194,80,.05);
  max-width: 680px;
  font-weight: 600;
}
.martyrs blockquote cite { display: block; margin-top: 10px; font-size: 13px; color: var(--txt-mute); font-style: normal; font-weight: 400; }
.martyrs__inner p { color: var(--txt-soft); max-width: 720px; margin: 0 auto; }
.martyrs__inner p b { color: var(--gold); }

.martyr {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(170deg, var(--martyr-bg-a), var(--martyr-bg-b));
  transition: .4s var(--ease);
  display: flex; flex-direction: column;
}
.martyr:hover { transform: translateY(-7px); border-color: rgba(243,194,80,.45); box-shadow: 0 26px 60px -22px rgba(0,0,0,.9), 0 0 50px -24px rgba(243,194,80,.6); }
.martyr__photo { position: relative; overflow: hidden; aspect-ratio: 5 / 7; background: var(--media-bg); }
.martyr__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: .9s var(--ease); }
.martyr:hover .martyr__photo img { transform: scale(1.05); }
.martyr__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 62%, var(--hero-veil-c));
}
.martyr__name {
  position: relative;
  padding: 14px 14px 18px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--txt);
  line-height: 1.6;
}
.martyr__name::before {
  content: "";
  display: block;
  width: 34px; height: 2px;
  margin: 0 auto 11px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.martyr__name small { display: block; font-size: 11.5px; font-weight: 400; color: var(--txt-mute); margin-top: 3px; }

/* ─────────────── میراث محله (کارت‌های شاخص) ─────────────── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 60px; }

.feature {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--card-bg-a), var(--card-bg-b));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: .4s var(--ease);
}
.feature:hover { transform: translateY(-7px); border-color: rgba(243,194,80,.34); box-shadow: var(--shadow); }

.feature__media { position: relative; height: 220px; overflow: hidden; background: var(--media-bg); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: .9s var(--ease); }
.feature:hover .feature__media img { transform: scale(1.07); }
.feature__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, var(--hero-veil-c));
}
.feature__media--pattern {
  display: grid; place-items: center;
  color: rgba(243,194,80,.55);
  background:
    radial-gradient(340px 180px at 50% 120%, rgba(47,217,119,.14), transparent 70%),
    linear-gradient(160deg, var(--panel-2), var(--media-bg));
}
.feature__media--pattern svg { width: 62%; height: auto; position: relative; z-index: 1; }
.feature__media--pattern::after { background: linear-gradient(180deg, transparent 60%, var(--hero-veil-c)); }

.feature__badge {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  font-size: 12.5px; font-weight: 700;
  padding: 6px 14px; border-radius: 100px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #1a1408;
  box-shadow: 0 8px 22px -8px rgba(243,194,80,.8);
}
.feature__badge--soft {
  background: var(--blur-bg);
  color: var(--gold-2);
  border: 1px solid rgba(243,194,80,.4);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.feature__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.feature__body h3 { font-size: 19px; margin-bottom: 11px; }
.feature__body p { font-size: 14.5px; color: var(--txt-soft); margin-bottom: 20px; flex: 1; }

.feature__map {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  font-size: 13.5px; font-weight: 700;
  color: var(--gold);
  padding: 9px 16px;
  border-radius: 11px;
  border: 1px solid rgba(243,194,80,.3);
  background: rgba(243,194,80,.07);
  transition: .28s var(--ease);
}
.feature__map svg { width: 17px; height: 17px; }
.feature__map:hover { background: rgba(243,194,80,.16); border-color: rgba(243,194,80,.6); transform: translateY(-2px); }

/* ─────────────── ویدیو ─────────────── */
.videobox {
  max-width: 920px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  box-shadow: var(--shadow), 0 0 70px -30px rgba(243,194,80,.5);
}
.videobox video { width: 100%; display: block; max-height: 72vh; background: var(--bg-2); }

/* ─────────────── گالری ─────────────── */
.filters {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 10px; margin-bottom: 34px;
}
.filter {
  font-size: 14px; font-weight: 600;
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid var(--line-2);
  color: var(--txt-soft);
  background: var(--card-bg-c);
  transition: .28s var(--ease);
}
.filter:hover { color: var(--txt); border-color: var(--line-2); transform: translateY(-2px); }
.filter.is-active {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #1a1408;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 10px 26px -10px rgba(243,194,80,.8);
}

.photogrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--media-bg);
  cursor: zoom-in;
  transition: .4s var(--ease);
  animation: photoIn .5s var(--ease) both;
}
@keyframes photoIn { from { opacity: 0; transform: scale(.95); } }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: .7s var(--ease); }
.photo:hover { border-color: rgba(243,194,80,.5); transform: translateY(-4px); box-shadow: var(--shadow); }
.photo:hover img { transform: scale(1.09); }
.photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, var(--hero-veil-c));
  opacity: 0; transition: .4s var(--ease);
}
.photo:hover::after { opacity: 1; }
.photo__zoom {
  position: absolute; bottom: 12px; left: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(243,194,80,.92); color: #1a1408;
  opacity: 0; transform: translateY(8px);
  transition: .35s var(--ease);
}
.photo__zoom svg { width: 17px; height: 17px; }
.photo:hover .photo__zoom { opacity: 1; transform: translateY(0); }
.photo.is-hidden { display: none; }

.photogrid__empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--txt-mute);
  padding: 40px;
  font-size: 14px;
}

/* ─────────────── عنوان گروه لینک‌ها ─────────────── */
.group-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 700;
  color: var(--txt);
  margin: 0 0 20px;
}
.group-title .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.group-title__logo { width: 28px; height: 28px; border-radius: 8px; display: block; }
/* آیکون وکتور ایتا هم‌سبک با آیکون‌های کنارش (اینستاگرام/آپارات) */
.group-title__ico {
  width: 28px; height: 28px; flex: none;
  border-radius: 8px;
  display: grid; place-items: center;
  color: #f5a623;
  background: rgba(245,166,35,.12);
  box-shadow: inset 0 0 0 1px rgba(245,166,35,.32);
}
.group-title__ico svg { width: 19px; height: 19px; }
.dot--eitaa { background: #f5a623; box-shadow: 0 0 12px rgba(245,166,35,.8); }
.dot--mix { background: var(--green); box-shadow: 0 0 12px rgba(47,217,119,.8); }
#socialGrid { margin-bottom: 12px; }

/* ─────────────── لینک‌ها ─────────────── */
.linkgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 880px; margin: 0 auto; }
.linkcard {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: linear-gradient(140deg, var(--card-bg-a), var(--card-bg-b));
  transition: .35s var(--ease);
}
.linkcard:hover { transform: translateY(-4px) scale(1.008); border-color: rgba(243,194,80,.4); box-shadow: var(--shadow); }
.linkcard__ico {
  width: 46px; height: 46px; flex: none;
  border-radius: 13px;
  display: grid; place-items: center;
}
.linkcard__ico svg { width: 23px; height: 23px; }
.linkcard__ico img { display: block; }

/* آیکون تصویری کانال: تصویر روی آیکون وکتور می‌نشیند.
   اگر تصویر لود نشد، آیکون وکتور ایتا نمایان می‌ماند. */
.linkcard__ico { position: relative; overflow: hidden; }
.linkcard__ico .ico__vector {
  position: absolute; inset: 0;
  display: grid; place-items: center;
}
.linkcard__ico .ico__vector svg { width: 23px; height: 23px; }
.linkcard__ico.has-photo img { position: relative; z-index: 1; width: 30px; height: 30px; object-fit: cover; }
.linkcard__ico.has-photo:not(.is-fallback) .ico__vector { opacity: 0; }
.linkcard__ico.has-photo.is-fallback .ico__vector { opacity: 1; }
.linkcard__txt { flex: 1; min-width: 0; }
.linkcard__txt b { display: block; font-size: 15px; font-weight: 700; }
.linkcard__txt span { font-size: 12.5px; color: var(--txt-mute); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkcard__go { color: var(--txt-mute); transition: .3s var(--ease); flex: none; }
.linkcard__go svg { width: 18px; height: 18px; }
.linkcard:hover .linkcard__go { color: var(--gold); transform: translateX(-4px); }

/* ─────────────── تماس ─────────────── */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: start; }
.contact__info h2 { font-size: clamp(25px, 3.6vw, 36px); margin-bottom: 18px; }
.contact__info > p { color: var(--txt-soft); margin-bottom: 32px; }

.contact__list { display: flex; flex-direction: column; gap: 8px; }
.contact__list li {
  display: flex; gap: 15px; align-items: flex-start;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: .3s var(--ease);
}
.contact__list li:hover { background: var(--chip-bg); border-color: var(--line); }
.contact__ico {
  width: 42px; height: 42px; flex: none;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(243,194,80,.1);
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(243,194,80,.25);
}
.contact__ico svg { width: 21px; height: 21px; }
.contact__list b { display: block; font-size: 13px; color: var(--txt-mute); font-weight: 600; margin-bottom: 1px; }
.contact__list a, .contact__list div > span { font-size: 15px; color: var(--txt); }
.contact__list a:hover { color: var(--gold); }

.contact__form {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--card-bg-a), var(--card-bg-b));
  box-shadow: var(--shadow);
}
.contact__form h3 { font-size: 19px; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--txt-soft); margin-bottom: 7px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--input-bg);
  color: var(--txt);
  font-family: inherit;
  font-size: 14.5px;
  transition: .25s var(--ease);
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #5c6579; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(243,194,80,.65);
  background: var(--input-bg-f);
  box-shadow: 0 0 0 4px rgba(243,194,80,.12);
}
.field select option { background: var(--panel-2); }
.form__hint { margin-top: 14px; font-size: 13.5px; text-align: center; min-height: 22px; }
.form__hint.is-ok { color: var(--green); }
.form__hint.is-err { color: var(--red); }

/* ─────────────── فوتر ─────────────── */
.footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card-bg-c), transparent);
  padding: 54px 0 26px;
  position: relative;
  z-index: 1;
}
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; padding-bottom: 32px; }
.footer__brand { display: flex; flex-direction: column; }
.footer__brand strong { font-size: 16px; color: #b8860b; }
.footer__brand span { font-size: 12.5px; color: rgba(184,134,11,.55); }

.footer__nav { display: flex; gap: 6px; flex-wrap: wrap; }
.footer__nav a { font-size: 13.5px; color: var(--txt-soft); padding: 6px 11px; border-radius: 9px; transition: .25s; }
.footer__nav a:hover { color: var(--gold); background: var(--card-bg-c); }

.footer__social { display: flex; gap: 9px; }
.footer__social a {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  color: var(--txt-soft);
  transition: .3s var(--ease);
}
.footer__social a svg { width: 19px; height: 19px; }
.footer__social a:hover { color: var(--gold); border-color: rgba(243,194,80,.5); transform: translateY(-3px); }

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--txt-mute);
}
.footer__love { color: #b8860b; }

/* ─────────────── بازگشت به بالا ─────────────── */
.toTop {
  position: fixed;
  bottom: 26px; left: 26px;
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #1a1408;
  box-shadow: 0 14px 32px -10px rgba(243,194,80,.8);
  z-index: 40;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: .35s var(--ease);
}
.toTop svg { width: 22px; height: 22px; }
.toTop.is-on { opacity: 1; visibility: visible; transform: translateY(0); }
.toTop:hover { transform: translateY(-4px); }

/* ─────────────── لایت‌باکس ─────────────── */
.lightbox {
  position: fixed; inset: 0;
  background: var(--lightbox-bg);
  backdrop-filter: blur(12px);
  display: grid; place-items: center;
  z-index: 100;
  padding: 56px 20px 30px;
  opacity: 0; visibility: hidden;
  transition: .35s var(--ease);
}
.lightbox.is-on { opacity: 1; visibility: visible; }

.lightbox__stage { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; }
.lightbox__stage img {
  max-width: 100%; max-height: 80vh;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  transform: scale(.94);
  transition: .4s var(--ease);
  object-fit: contain;
}
.lightbox.is-on .lightbox__stage img { transform: scale(1); }
.lightbox__stage figcaption { font-size: 13.5px; color: var(--txt-mute); direction: ltr; }

.lightbox__close {
  position: absolute; top: 20px; left: 26px;
  font-size: 32px; line-height: 1;
  color: var(--txt-soft);
  transition: .25s;
  z-index: 3;
}
.lightbox__close:hover { color: var(--gold); transform: rotate(90deg); }

.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card-bg-a);
  border: 1px solid var(--line-2);
  color: var(--txt);
  z-index: 3;
  transition: .28s var(--ease);
  backdrop-filter: blur(8px);
}
.lightbox__nav svg { width: 24px; height: 24px; }
.lightbox__nav:hover { background: var(--gold); color: #1a1408; border-color: transparent; }
.lightbox__nav--prev { right: 24px; }
.lightbox__nav--next { left: 24px; }

/* ─────────────── انیمیشن ورود ─────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ─────────────── واکنش‌گرایی ─────────────── */
@media (max-width: 1100px) {
  .photogrid { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 60px; }
  .about__badge { right: 14px; bottom: -18px; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  /* در تبلت: ستون وسط تمام‌عرض بالا، دو ستون کناری کنار هم پایین */
  .martyrs__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .martyrs__col { gap: 16px; }
  .martyrs__col--mid { grid-column: 1 / -1; flex-direction: row; }
  .martyrs__col--mid .martyr { flex: 1; }
  .features { grid-template-columns: 1fr; }
  .feature__media { height: 260px; }
}

@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .nav {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 18px 22px;
    background: var(--nav-mobile);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-14px);
    opacity: 0; visibility: hidden;
    transition: .35s var(--ease);
    max-height: calc(100vh - 74px);
    overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 16px; font-size: 15px; border-radius: 12px; }
  .nav__cta { text-align: center; margin-top: 6px; }
  .burger { display: flex; }

  .hero { min-height: auto; padding: 64px 0 60px; }
  .hero__facts { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .hero__facts li + li { border-right: none; }
  .hero__facts li:nth-child(even) { border-right: 1px solid var(--line); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__scroll { display: none; }

  .cards { grid-template-columns: 1fr; }
  .linkgrid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  /* در موبایل: همه در یک ستون */
  .martyrs__grid { grid-template-columns: 1fr; }
  .martyrs__col--mid { flex-direction: column; }
  .photogrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .filter { font-size: 13px; padding: 9px 15px; }
  .feature__media { height: 210px; }
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__nav--prev { right: 10px; }
  .lightbox__nav--next { left: 10px; }

  .about__frame img { height: 320px; }
  .about__badge { position: static; margin-top: 16px; max-width: 100%; }
  .contact__form { padding: 24px 20px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .toTop { bottom: 18px; left: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════════
   تنظیمات مخصوص «حالت روز»  (data-theme="light")
   ═══════════════════════════════════════════════════════════ */

[data-theme="light"] .hero h1 { text-shadow: 0 4px 34px rgba(247,244,236,.9); }
[data-theme="light"] .hero__lead { color: #3d3628; text-shadow: 0 2px 16px rgba(247,244,236,.95); }
[data-theme="light"] .hero__glow { opacity: .22; }

[data-theme="light"] .martyrs {
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(200,150,30,.12), transparent 70%),
    linear-gradient(180deg, transparent, rgba(216,42,65,.05), transparent);
}
[data-theme="light"] .martyr {
  box-shadow: 0 14px 34px -20px rgba(90, 70, 30, .35);
}
[data-theme="light"] .martyr__photo::after {
  background: linear-gradient(180deg, transparent 62%, rgba(247,244,236,.88));
}
[data-theme="light"] .martyr__name { color: var(--txt); }

/* در حالت روز، لایه‌ی محوکننده‌ی عکس‌ها ملایم‌تر است تا تصویر دیده شود */
[data-theme="light"] .feature__media::after,
[data-theme="light"] .photo::after,
[data-theme="light"] .about__frame::after {
  background: linear-gradient(180deg, transparent 62%, rgba(247, 244, 236, .55));
}
[data-theme="light"] .photo::after {
  background: linear-gradient(180deg, transparent 62%, rgba(247, 244, 236, .35));
}

/* کارت‌های میراث در حالت روز سایه‌ی ملایم بگیرند */
[data-theme="light"] .feature,
[data-theme="light"] .linkcard,
[data-theme="light"] .contact__form {
  box-shadow: 0 10px 30px -18px rgba(90, 70, 30, .4);
}

/* لایت‌باکس روشن */
[data-theme="light"] .lightbox { background: rgba(250, 248, 242, .97); }
[data-theme="light"] .lightbox__nav { background: rgba(120, 95, 40, .1); color: var(--txt); }
[data-theme="light"] .lightbox__nav:hover { background: var(--gold); color: #fff; }
[data-theme="light"] .lightbox__close:hover { color: var(--gold); }

/* هیرو اسکرول و اینپوت‌ها */
[data-theme="light"] .field input::placeholder,
[data-theme="light"] .field textarea::placeholder { color: #a79c88; }

/* اسکرین‌شات بنر هیرو: در حالت روز روشن‌تر شود */
[data-theme="light"] .hero__bg { filter: brightness(1.04) saturate(1.02); }

/* تغییر تم: یک «موج نور» کوتاه روی صفحه */
.theme-flash {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--fx, 50%) var(--fy, 6%),
              rgba(255, 224, 138, .55), rgba(255, 224, 138, 0) 55%);
}
.theme-flash.is-on { animation: themeFlash .7s var(--ease); }
@keyframes themeFlash {
  0%   { opacity: 0; }
  35%  { opacity: 1; }
  100% { opacity: 0; }
}

/* چرخش آرام آیکون کلید هنگام تغییر تم */
.theme-toggle.is-switching .theme-toggle__thumb svg { animation: themeSpin .55s var(--ease); }
@keyframes themeSpin { from { transform: rotate(0); } to { transform: rotate(180deg); } }

/* ═══════════════════════════════════════════════════════════
   فرم تماس — دام ضدربات، حالت ارسال، یادداشت
   ═══════════════════════════════════════════════════════════ */

/* 🔒 فیلد مخفی honeypot: برای کاربر نامرئی است ولی ربات‌ها پرش می‌کنند */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* یادداشت زیر فرم */
.form__note {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--muted, #9aa3b2);
  text-align: center;
}

/* دکمه در حال ارسال */
.btn.is-busy {
  opacity: .82;
  cursor: progress;
  pointer-events: none;
}

/* اسپینر داخل دکمه */
.spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-inline-end: 8px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  vertical-align: -2px;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* پیام خطای فرم کمی پررنگ‌تر */
.form__hint.is-err { color: #ff6b6b; }
.form__hint.is-ok  { color: #2fd977; }
[data-theme="light"] .form__hint.is-err { color: #d02a3a; }
[data-theme="light"] .form__hint.is-ok  { color: #12864a; }
[data-theme="light"] .form__note { color: #7d7361; }

/* ── راه پشتیبان ارسال مستقیم در ایتا ── */
.form__alt { margin-top: 14px; }
.form__alt[hidden] { display: none !important; }

.form__alt-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 14px;
  font-size: 12.5px;
  color: var(--muted, #9aa3b2);
}
.form__alt-line::before,
.form__alt-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line, rgba(255,255,255,.12));
}
.form__alt-line i { font-style: normal; }

/* دکمه‌ی شیشه‌ای (نقره‌ای طلایی ملایم) */
.btn--ghost {
  background: transparent;
  color: var(--gold, #f3c250);
  box-shadow: inset 0 0 0 1.6px rgba(243, 194, 80, .55);
}
.btn--ghost:hover {
  background: rgba(243, 194, 80, .12);
  box-shadow: inset 0 0 0 1.6px rgba(243, 194, 80, .9);
}
[data-theme="light"] .btn--ghost { color: #9a7412; box-shadow: inset 0 0 0 1.6px rgba(190, 145, 30, .55); }
[data-theme="light"] .btn--ghost:hover { background: rgba(190, 145, 30, .12); }
