/* =============================================================================
   DRI — هنگام دندان | لندینگ کمپین
   تم روشن، رنگ برند #b02e30
============================================================================= */

:root {
  --ink:        #fdfcfc;   /* پس‌زمینه‌ی اصلی */
  --ink-2:      #f5f2f1;   /* پس‌زمینه‌ی فرعی */
  --surface:    #ffffff;
  --surface-2:  #faf7f7;
  --line:       rgba(28, 22, 22, .13);
  --line-soft:  rgba(28, 22, 22, .07);

  --text:       #1a1618;
  --text-dim:   #5d5559;
  --text-faint: #8e8489;

  --accent:     #b02e30;   /* قرمز برند */
  --accent-hi:  #c8393b;   /* حالت hover */
  --accent-dp:  #7e1f21;   /* تیره‌تر، برای تأکید */
  --accent-ink: #ffffff;   /* متن روی قرمز */

  /* تینت‌های قرمز — برای شفافیت‌ها یک‌جا تعریف شده تا تنظیمشان آسان باشد */
  --a-04: rgba(176, 46, 48, .04);
  --a-08: rgba(176, 46, 48, .08);
  --a-14: rgba(176, 46, 48, .14);
  --a-22: rgba(176, 46, 48, .22);
  --a-35: rgba(176, 46, 48, .35);
  --a-55: rgba(176, 46, 48, .55);

  --shell: 1220px;
  --pad: clamp(20px, 5vw, 40px);
  --radius: 18px;

  /* زاویه‌ی نقشه. فقط همین دو عدد را عوض کنید؛ چرخشِ معکوسِ پین‌ها
     (که باعث می‌شود برچسب‌ها ایستاده بمانند) خودکار هماهنگ می‌شود.
       --map-tilt : شیب رو به عقب  — ۰ کاملاً تخت، ۵۰ شیب زیاد
       --map-spin : چرخش در صفحه   — ۰ کاملاً صاف، ۲۰- کجیِ زیاد */
  --map-tilt: 26deg;
  --map-spin: -7deg;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: 'Vazirmatn', system-ui, 'Segoe UI', Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* ⚠ اینجا overflow نگذارید: هر مقدارِ غیر visible روی html، عنصر را
     به یک ظرفِ اسکرول تبدیل می‌کند و position:sticky هیرو از کار می‌افتد.
     مهار سرریز افقی روی body انجام می‌شود. */
}

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

img, svg, canvas { display: block; max-width: 100%; }
.btn { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

.shell {
  width: min(var(--shell), 100% - var(--pad) * 2);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 18px;
  border-radius: 0 0 12px 0;
}
.skip-link:focus { inset-inline-start: 0; }

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

/* ─────────────────────────── دکمه‌ها ─────────────────────────── */

.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--text);
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background .3s var(--ease), border-color .3s var(--ease),
              transform .3s var(--ease), color .3s var(--ease);
}
.btn svg { width: 17px; height: 17px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }

.btn--ghost:hover {
  border-color: var(--a-55);
  color: var(--accent);
  background: var(--a-04);
}

.btn--solid {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  box-shadow: 0 10px 26px -10px rgba(176, 46, 48, .6);
}
.btn--solid:hover { background: var(--accent-hi); border-color: var(--accent-hi); }

/* ─────────────────────────── هدر ─────────────────────────── */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .45s var(--ease), border-color .45s var(--ease),
              backdrop-filter .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(253, 252, 252, .86);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  flex: none;
  text-decoration: none;
}
.brand-logo {
  height: 46px;
  width: auto;
  transition: opacity .3s var(--ease);
}
.brand:hover .brand-logo { opacity: .78; }

.header-nav {
  display: flex;
  gap: 26px;
  margin-inline-start: auto;
}
.header-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: .92rem;
  transition: color .3s var(--ease);
}
.header-nav a:hover { color: var(--accent); }

/* دکمه‌ی اصلی تماس — روی موبایل هم قرمز و با متن می‌ماند.
   flex-shrink باید مجاز باشد وگرنه در عرض کم از لبه بیرون می‌زند. */
.header-call {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
}
.header-call-short { display: none; }
.header-call-tiny { display: none; }

/* ═════════════════════════ هیرو ═════════════════════════ */

.hero {
  position: relative;
  /* ارتفاع اضافه = مسافت اسکرول برای باز شدن اجزای ایمپلنت */
  height: 360vh;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
}

/* پس‌زمینه */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 68px 68px;
  /* شبکه با اسکرول کمی عقب می‌رود */
  transform: perspective(700px) rotateX(58deg) translateY(calc(var(--p, 0) * -60px));
  transform-origin: 50% 100%;
  opacity: .9;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 55%, #000 20%, transparent 78%);
}

.hero-glow {
  position: absolute;
  left: 50%; top: 46%;
  width: min(900px, 120vw);
  aspect-ratio: 1;
  translate: -50% -50%;
  background: radial-gradient(circle, rgba(176, 46, 48, .09), transparent 62%);
  /* هرچه اجزا بازتر می‌شوند، هاله گسترده‌تر می‌شود */
  scale: calc(.85 + var(--p, 0) * .4);
  opacity: calc(.5 + var(--p, 0) * .5);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 50%, transparent 45%, var(--ink) 100%),
    linear-gradient(to bottom, rgba(253,252,252,.9), transparent 22%, transparent 78%, var(--ink));
}

/* چیدمان دو ستونی: متن کنارِ ایمپلنت */
.hero-inner {
  position: relative;
  z-index: 3;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 64px);
}

.hero-copy { max-width: 46ch; }

/* نشان کمپین اکسیدا، بالای عنوان */
.hero-campaign {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.hero-campaign-logo {
  height: clamp(26px, 3.2vw, 34px);
  width: auto;
  flex: none;
}
.hero-campaign-label {
  padding-inline-start: 14px;
  border-inline-start: 1px solid var(--line);
  font-size: .76rem;
  line-height: 1.5;
  letter-spacing: .04em;
  color: var(--text-dim);
}

.hero-title {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.02em;
}
.hero-line { display: block; }
.hero-line--accent {
  color: transparent;
  background: linear-gradient(100deg, var(--accent-dp), var(--accent) 60%, #d8555a);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-sub {
  max-width: 38ch;
  margin: 18px 0 0;
  color: var(--text-dim);
  font-size: clamp(.9rem, 1.6vw, 1rem);
}

/* ── فهرست اجزا ── */
.parts {
  list-style: none;
  margin: clamp(22px, 3.4vh, 34px) 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.part {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 12px;
  border-radius: 12px;
  /* پیش از رسیدن اسکرول، کم‌رنگ و عقب‌نشسته */
  opacity: .38;
  transform: translateX(8px);
  transition: opacity .45s var(--ease), transform .45s var(--ease),
              background .45s var(--ease);
}
.part.is-on {
  opacity: 1;
  transform: none;
  background: var(--a-04);
}

.part-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: .74rem;
  font-weight: 700;
  color: var(--text-faint);
  transition: all .45s var(--ease);
}
.part.is-on .part-num {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.part-text { display: flex; flex-direction: column; line-height: 1.4; }
.part-text b { font-size: .95rem; font-weight: 700; }
.part-text i {
  font-style: normal;
  font-size: .7rem;
  color: var(--text-faint);
  direction: ltr;
  text-align: start;
  letter-spacing: .04em;
}

.hero-cta {
  margin-top: clamp(22px, 3.4vh, 34px);
  padding: 15px 32px;
  font-size: 1.04rem;
  font-weight: 800;
  box-shadow: 0 16px 38px -12px rgba(176, 46, 48, .7);
}
.hero-cta-arrow {
  width: 19px; height: 19px;
  fill: currentColor;
  /* در RTL فلش باید به چپ اشاره کند */
  transform: scaleX(-1);
  transition: translate .3s var(--ease);
}
.hero-cta:hover .hero-cta-arrow { translate: -4px 0; }

/* ── صحنه‌ی ایمپلنت ── */
.hero-stage {
  position: relative;
  height: 100%;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.implant-canvas {
  /* فریم‌ها روی خودِ ایمپلنت بریده شده‌اند: ۲۱۲×۶۹۰ */
  height: min(80vh, 680px);
  max-width: 100%;
  width: auto;
  aspect-ratio: 212 / 690;
  /* با باز شدن اجزا کمی جلو می‌آید */
  transform: scale(calc(.94 + var(--p, 0) * .06));
  transition: opacity .6s var(--ease);
}
.implant-canvas:not(.is-ready) { opacity: 0; }

/* نوار پیشرفت لود فریم‌ها */
.implant-loading {
  position: absolute;
  bottom: 16%;
  width: 180px;
  transition: opacity .4s var(--ease);
}
.implant-loading.is-done { opacity: 0; }
.implant-loading-bar {
  display: block;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.implant-loading-bar i {
  display: block;
  height: 100%;
  width: var(--load, 0%);
  background: var(--accent);
  transition: width .25s linear;
}

/* راهنمای اسکرول */
.scroll-cue {
  position: absolute;
  bottom: 26px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: calc(1 - var(--p, 0) * 6);
  pointer-events: none;
}
.scroll-cue-text { font-size: .74rem; color: var(--text-faint); letter-spacing: .06em; }
.scroll-cue-rail {
  width: 1px; height: 42px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.scroll-cue-rail i {
  position: absolute;
  inset-inline: 0;
  height: 14px;
  background: var(--accent);
  animation: cue 1.9s var(--ease) infinite;
}
@keyframes cue {
  0%   { top: -14px; opacity: 0; }
  30%  { opacity: 1; }
  100% { top: 42px; opacity: 0; }
}

/* ═════════════════════ گزاره‌ی برند ═════════════════════ */

.statement {
  position: relative;
  z-index: 5;
  background: var(--ink);
  padding: clamp(80px, 13vw, 150px) 0 clamp(50px, 8vw, 90px);
}

.statement-text {
  max-width: 30ch;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.3rem, 3.6vw, 2.1rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dim);
}
.statement-text b { color: var(--text); font-weight: 700; }

/* ═════════════════════ بخش نقشه ═════════════════════ */

.map-section {
  position: relative;
  padding: clamp(60px, 10vw, 110px) 0 clamp(80px, 12vw, 140px);
  background:
    radial-gradient(ellipse 80% 55% at 50% 30%, var(--a-04), transparent 70%),
    var(--ink-2);
}

.section-head { text-align: center; margin-bottom: clamp(30px, 5vw, 56px); }
.section-kicker {
  margin: 0 0 10px;
  font-size: .78rem;
  letter-spacing: .14em;
  color: var(--accent);
  font-weight: 600;
}
.section-title {
  margin: 0;
  font-size: clamp(1.7rem, 4.6vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.section-sub {
  max-width: 48ch;
  margin: 14px auto 0;
  color: var(--text-dim);
  font-size: .95rem;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

/* ── سکوی سه‌بعدی ── */
.map-holder { position: relative; }

.map-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / .92;
  perspective: 1500px;
  perspective-origin: 50% 45%;
}

.map-plane {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 92%;
  aspect-ratio: var(--map-ratio, 1.1);
  transform-style: preserve-3d;
  /* حالت اولیه: خوابیده‌تر و پایین‌تر — با ورود به کادر به زاویه‌ی اصلی می‌آید */
  transform: rotateX(calc(var(--map-tilt) + 20deg)) rotateZ(var(--map-spin)) translateY(36px);
  opacity: 0;
  transition: transform .6s var(--ease), opacity .9s var(--ease);
}

/* زاویه‌ی نهایی. --tilt-dx و --tilt-dz را جاوااسکریپت از حرکت ماوس پر می‌کند،
   برای همین همین ترنزیشن هم ورود را روان می‌کند و هم دنبال‌کردنِ ماوس را. */
.map-holder.is-visible .map-plane {
  transform:
    rotateX(calc(var(--map-tilt) + var(--tilt-dx, 0deg)))
    rotateZ(calc(var(--map-spin) + var(--tilt-dz, 0deg)));
  opacity: 1;
}

.map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
/* لایه‌های ضخامت — دیواره‌ی حجمی نقشه */
.map-svg--slab path { fill: #b9aeae; }

.map-outline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
}
.map-graticule {
  fill: none;
  stroke: rgba(176, 46, 48, .16);
  stroke-width: .8;
}
.map-lake {
  fill: rgba(255, 255, 255, .55);
  stroke: var(--a-35);
  stroke-width: 1;
}
.map-arcs {
  fill: none;
  stroke: var(--a-55);
  stroke-width: 1.4;
  stroke-dasharray: 5 7;
  animation: dash 22s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -240; } }

/* خط اسکن که روی نقشه بالا و پایین می‌رود */
.map-scanline {
  fill: none;
  stroke: rgba(176, 46, 48, .45);
  stroke-width: 3;
  filter: blur(2px);
  animation: scan 6s var(--ease) infinite;
}
@keyframes scan {
  0%, 100% { transform: translateY(0); opacity: 0; }
  10%      { opacity: .7; }
  90%      { opacity: .7; }
  50%      { transform: translateY(620px); }
}

.map-shadow {
  position: absolute;
  left: 50%; bottom: 6%;
  width: 60%; height: 46px;
  translate: -50% 0;
  background: radial-gradient(ellipse, rgba(60, 35, 35, .22), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}

.map-hint {
  text-align: center;
  font-size: .78rem;
  color: var(--text-faint);
  margin: 6px 0 0;
}

/* ── پین شهرها ── */
.pin {
  position: absolute;
  width: 0; height: 0;
  padding: 0;
  border: 0;
  background: none;
  transform-style: preserve-3d;
  cursor: pointer;
  z-index: 5;
}

/* حلقه‌ی روی سطح نقشه (در همان صفحه می‌ماند) */
.pin-base {
  position: absolute;
  left: 50%; top: 50%;
  width: 30px; height: 30px;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1px solid var(--a-55);
  background: radial-gradient(circle, var(--a-22), transparent 65%);
  animation: ping 2.8s var(--ease) infinite;
  animation-delay: var(--pin-delay, 0s);
}
@keyframes ping {
  0%   { transform: scale(.4); opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* بخش ایستاده: با چرخش معکوس، رو به دوربین می‌ایستد */
.pin-upright {
  position: absolute;
  left: 50%; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-style: preserve-3d;
  /* عکسِ چرخشِ صفحه‌ی نقشه (به ترتیب معکوس) تا برچسب ایستاده و روبه‌رو بماند */
  transform:
    translateX(-50%)
    rotateZ(calc(-1 * (var(--map-spin) + var(--tilt-dz, 0deg))))
    rotateX(calc(-1 * (var(--map-tilt) + var(--tilt-dx, 0deg))));
  transform-origin: 50% 100%;
}

/* --stem از داده‌ی شهر می‌آید؛ اگر نبود، این مقادیر پیش‌فرض‌اند */
.pin-stem {
  width: 1px;
  height: var(--stem, 34px);
  background: linear-gradient(to top, var(--accent), var(--a-14));
  order: 3;
}
.pin--primary .pin-stem { height: var(--stem, 54px); }

.pin-head {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(176, 46, 48, .16);
  order: 2;
  transition: transform .3s var(--ease);
}
.pin--primary .pin-head {
  width: 12px; height: 12px;
  background: var(--accent-dp);
  box-shadow: 0 0 0 4px rgba(126, 31, 33, .18);
}

.pin-label {
  order: 1;
  margin-bottom: 7px;
  padding: 4px 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px -6px rgba(40, 20, 20, .35);
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text);
  transition: border-color .3s var(--ease), color .3s var(--ease),
              background .3s var(--ease);
}

.pin:hover .pin-head { transform: scale(1.35); }
.pin:hover .pin-label,
.pin.is-active .pin-label {
  border-color: var(--accent);
  color: var(--accent-ink);
  background: var(--accent);
}
.pin.is-active .pin-head { transform: scale(1.5); }

/* ── پنل شهر ── */
.city-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 46px -28px rgba(40, 20, 20, .4);
  padding: clamp(22px, 3vw, 32px);
  min-height: 340px;
  overflow: hidden;
}
.city-panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(to left, transparent, var(--accent), transparent);
}

.panel-card { animation: panelIn .5s var(--ease) both; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.panel-role {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid var(--a-22);
  background: var(--a-08);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 600;
}
.panel-card--primary .panel-role {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.panel-city {
  margin: 0;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 800;
  line-height: 1.3;
}
.panel-city span {
  display: block;
  font-size: .74rem;
  font-weight: 400;
  color: var(--text-faint);
  direction: ltr;
  letter-spacing: .1em;
  text-align: start;
}

.panel-rows { margin: 22px 0 0; display: grid; gap: 14px; }

.panel-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.panel-row:last-child { border-bottom: 0; padding-bottom: 0; }

.panel-row-icon {
  flex: none;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--a-08);
  color: var(--accent);
}
.panel-row-icon svg { width: 15px; height: 15px; fill: currentColor; }

.panel-row-body { min-width: 0; }
.panel-row-body h4 {
  margin: 0 0 2px;
  font-size: .72rem;
  font-weight: 400;
  color: var(--text-faint);
}
.panel-row-body p { margin: 0; font-size: .9rem; line-height: 1.7; }

.panel-phone {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  direction: ltr;
  text-align: start;
  transition: color .25s var(--ease);
}
.panel-phone:hover { color: var(--accent); }

.panel-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.panel-actions .btn { flex: 1 1 auto; padding: 11px 16px; font-size: .86rem; }

.panel-empty {
  display: grid;
  place-content: center;
  gap: 10px;
  text-align: center;
  min-height: 300px;
  color: var(--text-faint);
}
.panel-empty svg { width: 34px; height: 34px; fill: currentColor; opacity: .45; margin-inline: auto; }

/* ── چیپ شهرها ── */
.city-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 0;
}
.city-chip {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-dim);
  font-size: .88rem;
  cursor: pointer;
  transition: all .3s var(--ease);
}
.city-chip:hover { border-color: var(--a-55); color: var(--accent); }
.city-chip.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}


/* ═════════════════════ کمپین اکسیدا پلاس ═════════════════════ */

.campaign {
  padding: clamp(70px, 11vw, 130px) 0;
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, var(--a-04), transparent 70%),
    var(--ink-2);
}

/* لوگوی اکسیدا در سربرگ بخش کمپین */
.campaign-logo {
  height: clamp(46px, 7vw, 68px);
  width: auto;
  margin: 0 auto 20px;
}

/* ── قرعه‌کشی: یک قاب که هر دو جایزه داخلش‌اند ── */
.draw {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(28px, 4.5vw, 48px) clamp(20px, 4vw, 44px);
  margin-bottom: clamp(30px, 5vw, 52px);
  border-radius: clamp(20px, 3vw, 28px);
  color: #fff;
  background:
    radial-gradient(ellipse 70% 90% at 15% 0%, rgba(255,255,255,.16), transparent 60%),
    linear-gradient(135deg, var(--accent-dp), var(--accent) 55%, #d0484a);
  box-shadow: 0 26px 60px -26px rgba(126, 31, 33, .8);
}

/* برق نرمی که آرام از روی قاب رد می‌شود */
.draw-shine {
  position: absolute;
  top: -60%;
  inset-inline-start: -40%;
  width: 45%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
  transform: rotate(18deg);
  animation: shine 6.5s var(--ease) infinite;
  pointer-events: none;
}
@keyframes shine {
  0%, 62% { inset-inline-start: -40%; }
  92%, 100% { inset-inline-start: 130%; }
}

.draw-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.34);
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
  font-size: .82rem;
  font-weight: 600;
}
.draw-badge svg { width: 17px; height: 17px; fill: currentColor; }

.draw-title {
  margin: 16px 0 clamp(22px, 3vw, 32px);
  font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.01em;
}

.draw-prizes {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(12px, 2vw, 22px);
}

.draw-prize {
  flex: 1 1 0;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: clamp(18px, 2.6vw, 26px) 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.26);
  background: rgba(255,255,255,.13);
  backdrop-filter: blur(8px);
}
.draw-prize-num {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-shadow: 0 3px 18px rgba(0,0,0,.22);
}
.draw-prize-label {
  font-size: clamp(.82rem, 1.6vw, .95rem);
  line-height: 1.6;
  opacity: .95;
}

/* شرط هر جایزه، زیر خودش — با یک خط جداکننده‌ی نازک، تا مشخص باشد
   کدام قرعه‌کشی دارد و کدام به همه می‌رسد. */
.draw-prize-cond {
  align-self: stretch;      /* خط جداکننده تمام عرض کارت را بگیرد */
  text-align: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .28);
  font-style: normal;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .01em;
  opacity: .95;
}

.draw-note {
  margin: clamp(20px, 3vw, 28px) 0 0;
  font-size: .84rem;
  opacity: .88;
}

/* ── چیدمان فرم و راهنما ── */
/* ── چیدمان فرم و راهنما ── */
.upload-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(20px, 3.5vw, 44px);
  align-items: start;
}

.upload-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 46px -30px rgba(40, 20, 20, .4);
}
.upload-form .btn--solid { grid-column: 1 / -1; padding: 14px; }

/* ── ناحیه‌ی رها کردن فایل ── */
.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 168px;
  padding: 20px;
  border: 2px dashed var(--line);
  border-radius: 14px;
  background: var(--ink-2);
  cursor: pointer;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.dropzone:hover,
.dropzone:focus-visible { border-color: var(--a-55); background: var(--a-04); }
/* حین کشیدن فایل روی ناحیه */
.dropzone.is-over {
  border-color: var(--accent);
  border-style: solid;
  background: var(--a-08);
}
.dropzone.has-file { cursor: default; border-style: solid; border-color: var(--line); }

.dropzone-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  pointer-events: none;
}
.dropzone-icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--a-08);
  color: var(--accent);
}
.dropzone-icon svg { width: 22px; height: 22px; fill: currentColor; }
.dropzone-idle b { font-size: .95rem; font-weight: 700; }
.dropzone-idle span { font-size: .78rem; color: var(--text-faint); }

.dropzone-file {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.dropzone-preview {
  flex: none;
  width: 104px;
  height: 104px;
  border-radius: 12px;
  object-fit: cover;
  background: #ded5d4;
}
.dropzone-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dropzone-meta b {
  font-size: .9rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.dropzone-meta span { font-size: .78rem; color: var(--text-faint); direction: ltr; text-align: start; }
.dropzone-clear {
  align-self: flex-start;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: .78rem;
  text-decoration: underline;
  cursor: pointer;
}

/* ── نوار پیشرفت آپلود ── */
.upload-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}
.upload-progress-bar {
  flex: 1;
  height: 6px;
  border-radius: 6px;
  background: var(--line-soft);
  overflow: hidden;
}
.upload-progress-bar i {
  display: block;
  height: 100%;
  width: var(--pct, 0%);
  background: var(--accent);
  transition: width .2s linear;
}
.upload-progress-text {
  flex: none;
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 3.5em;
  text-align: start;
}

/* ── راهنمای کنار فرم ── */
.upload-guide {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--a-04);
}
.upload-guide h3 { margin: 0 0 18px; font-size: 1.05rem; font-weight: 800; }

.guide-steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.guide-steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-inline-start: 38px;
}
.guide-steps li::before {
  counter-increment: step;
  content: counter(step, persian);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: .76rem;
  font-weight: 700;
}
.guide-steps b { font-size: .92rem; font-weight: 700; }
.guide-steps span { font-size: .84rem; color: var(--text-dim); line-height: 1.7; }

.guide-note {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  line-height: 1.8;
  color: var(--text-faint);
}

/* ═════════════════════ تماس ═════════════════════ */

.contact {
  padding: clamp(70px, 11vw, 130px) 0;
  border-top: 1px solid var(--line-soft);
  background: var(--ink);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: start;
}
.contact-copy .section-kicker,
.contact-copy .section-title,
.contact-copy .section-sub { text-align: start; margin-inline: 0; }

.contact-direct { display: grid; gap: 12px; margin-top: 30px; }

.direct-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color .3s var(--ease), background .3s var(--ease),
              transform .3s var(--ease);
}
.direct-card:hover {
  border-color: var(--a-55);
  background: var(--a-04);
  transform: translateX(-4px);
}
.direct-icon {
  flex: none;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--a-08);
  color: var(--accent);
}
.direct-icon svg { width: 18px; height: 18px; fill: currentColor; }
.direct-text { display: flex; flex-direction: column; line-height: 1.45; min-width: 0; }
.direct-text b { font-size: .84rem; font-weight: 500; color: var(--text-dim); }
.direct-text i {
  font-style: normal;
  font-weight: 700;
  direction: ltr;
  text-align: start;
  overflow-wrap: anywhere;
}

/* ── فرم ── */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 46px -30px rgba(40, 20, 20, .4);
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field--wide { grid-column: 1 / -1; }

.field label { font-size: .82rem; color: var(--text-dim); }
.field label .opt { color: var(--text-faint); font-size: .74rem; }

.field input,
.field select,
.field textarea {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--ink-2);
  font-size: .92rem;
  transition: border-color .25s var(--ease), background .25s var(--ease);
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--surface); }

.field input:user-invalid,
.field select:user-invalid { border-color: #d94a4a; }

.contact-form .btn--solid { grid-column: 1 / -1; padding: 14px; }

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 1.2em;
  font-size: .82rem;
  color: var(--text-faint);
  text-align: center;
}
.form-note.is-error { color: #c0392b; }
.form-note.is-ok { color: #1e7a4a; }

/* ═════════════════════ فوتر ═════════════════════ */

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: var(--ink-2);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-brand { display: flex; align-items: center; }
.footer-logo { height: 78px; width: auto; }

.footer-copy { margin: 0; font-size: .8rem; color: var(--text-faint); }

/* ═════════════════════ ظهور تدریجی ═════════════════════ */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ═════════════════════ ریسپانسیو ═════════════════════ */

@media (max-width: 1000px) {
  .upload-layout { grid-template-columns: 1fr; }
  .map-layout { grid-template-columns: 1fr; }
  .city-panel { min-height: 0; }
  .contact-inner { grid-template-columns: 1fr; }
}

/* زیر ۹۰۰px دو ستون جا نمی‌شود: متن بالا، ایمپلنت پایین */
@media (max-width: 900px) {
  /* هیرو روی موبایل اسکرول‌محور نیست: یک صفحه‌ی عادی که انیمیشنش
     خودش پخش می‌شود. ارتفاع اضافه فقط باعث می‌شد صفحه ناقص به نظر برسد. */
  .hero { height: auto; }
  .hero-sticky {
    /* relative، نه static: باید مرجعِ موقعیتِ .hero-bg بماند وگرنه
       .hero-grid (که inset:-20% دارد) از overflow:hidden فرار می‌کند
       و صفحه را از پهنا سرریز می‌کند. relative نمی‌چسبد، پس هیرو
       روی موبایل مثل یک بخش عادی جریان پیدا می‌کند. */
    position: relative;
    height: auto;
    min-height: 100svh;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    align-items: start;
    gap: clamp(8px, 2vh, 20px);
    padding-block: 88px 32px;
    text-align: center;
  }
  .hero-copy { max-width: none; }
  .hero-sub { margin-inline: auto; }
  .hero-campaign { justify-content: center; }

  /* فهرست اجزا افقی می‌شود تا ارتفاع کمتری بگیرد */
  .parts {
    grid-auto-flow: column;
    justify-content: center;
    gap: 6px;
  }
  .part { flex-direction: column; gap: 6px; padding: 8px 10px; text-align: center; }
  .part-text i { display: none; }
  .part-text b { font-size: .82rem; }

  /* ارتفاع صریح: چون .hero-sticky دیگر ارتفاع ثابت ندارد،
     height:100% مرجعی برای محاسبه پیدا نمی‌کرد و کادر جمع می‌شد. */
  .implant-canvas {
    height: min(44svh, 380px);
    width: auto;
    margin-inline: auto;
  }
  .only-desktop { display: none; }

  /* نوار پیشرفت لود روی موبایل لازم نیست؛ انیمیشن خودش پخش می‌شود */
  .implant-loading { display: none; }
}

@media (max-width: 720px) {
  .header-nav { display: none; }
  /* روی موبایل متن کوتاه‌تر می‌شود ولی دکمه قرمز و خوانا می‌ماند —
     مهم‌ترین اقدام صفحه است و نباید به آیکن تنها تبدیل شود. */
  .header-inner { gap: 10px; }
  .header-call {
    margin-inline-start: auto;
    padding: 9px 14px;
    font-size: .78rem;
    gap: 6px;
  }
  .header-call-label { display: none; }
  .header-call-short { display: inline; }
  .header-call svg { width: 15px; height: 15px; }
  .brand-logo { height: 34px; }

  /* راهنمای اسکرول روی موبایل حذف — هیرو دیگر اسکرول‌محور نیست */
  .scroll-cue { display: none; }

  /* دکمه‌ی تماس اینجا تنها اقدام صفحه است، پس باید دیده شود */
  .hero-cta {
    display: inline-flex;
    margin-top: 18px;
    padding: 13px 26px;
    font-size: .96rem;
  }

  /* چیدمان فشرده‌تر تا ایمپلنت جای بیشتری بگیرد */
  .hero-inner { padding-block: 74px 26px; gap: 6px; }
  .hero-campaign { margin-bottom: 12px; }
  .hero-campaign-logo { height: 30px; }
  .hero-title { font-size: clamp(1.7rem, 7.4vw, 2.3rem); line-height: 1.25; }
  .parts { margin-top: 14px; }
  .part { padding: 6px 8px; }
  .part-num { width: 22px; height: 22px; font-size: .68rem; }

  .brand-logo { height: 38px; }
  .footer-logo { height: 62px; }

  /* پین‌ها روی موبایل کوچک‌تر تا نقشه شلوغ نشود.
     میله‌ها نسبتی کوتاه می‌شوند تا اختلاف ارتفاعشان حفظ شود. */
  .pin-label { font-size: .68rem; padding: 3px 8px; }
  .pin-stem { height: calc(var(--stem, 34px) * .65); }
  .pin--primary .pin-stem { height: calc(var(--stem, 54px) * .65); }

  .contact-form { grid-template-columns: 1fr; }
  .upload-form { grid-template-columns: 1fr; }
  /* روی موبایل دو جایزه زیر هم، با + بینشان */
  .draw-prizes { flex-direction: column; align-items: stretch; }
  .draw-prize { max-width: none; }
  .dropzone-file { flex-direction: column; align-items: flex-start; }
  .dropzone-preview { width: 100%; height: 150px; }
}

@media (max-width: 480px) {
  /* در عرض کم، متن کنار لوگو حذف می‌شود تا لوگو کوچک نشود */
  .hero-campaign-label { display: none; }
}


@media (max-width: 400px) {
  /* در این عرض حتی متن کوتاه هم دکمه را از لبه بیرون می‌برد */
  .header-call-short { display: none; }
  .header-call-tiny { display: inline; }
  .header-call { padding: 9px 12px; }
  .brand-logo { height: 30px; }
}

/* ═════════════════════ کاهش حرکت ═════════════════════ */

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