/* =========================================================
   صفحه‌ی هر خدمت
   شیء سه‌بعدی همان کارت خدمات (services.css) — بزرگ، چسبان کنار متن،
   با پیشرفت خواندن می‌چرخد و با ماوس کج می‌شود.
   تایپوگرافی: همان قانون «درباره ما» — عنوان ۲۳ / متن ۱۵
   ========================================================= */

.svd {
  --ab-h: var(--fs-h);
  --ab-t: var(--fs-t);
  overflow-x: clip;
}

.svd__wrap {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 96px);
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(40px, 7vh, 96px) var(--gutter) clamp(56px, 9vh, 110px);
}

/* ---------- ستون شیء ---------- */
.svd__visual { position: relative; }
.svd__sticky {
  position: sticky;
  top: calc(var(--header-h-scrolled) + 24px);
  height: min(calc(100svh - var(--header-h-scrolled) - 48px), 640px);
  display: grid;
  place-items: center;
  perspective: 1200px;
}
.svd__glow {
  position: absolute;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 106, 0, .2), transparent);
  pointer-events: none;
}
/* مدارهای دوار دور شیء */
.svd__orbit {
  position: absolute;
  width: min(92%, 500px);
  aspect-ratio: 1;
  transform: rotateX(70deg);
  transform-style: preserve-3d;
  pointer-events: none;
}
.svd__orbit span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 140, 60, .18);
  animation: svd-spin 18s linear infinite;
}
.svd__orbit span::after {            /* ذره‌ی نورانی روی مدار */
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 14px 2px rgba(255, 106, 0, .8);
}
.svd__orbit span:nth-child(2) { inset: 12%; animation-duration: 13s; animation-direction: reverse; border-color: rgba(255, 140, 60, .12); }
.svd__orbit span:nth-child(3) { inset: 26%; animation-duration: 9s; border-style: dashed; border-color: rgba(255, 140, 60, .14); }
.svd__orbit span:nth-child(3)::after { width: 6px; height: 6px; margin-left: -3px; top: -3px; background: #ffd2ad; }
@keyframes svd-spin { to { transform: rotate(360deg); } }

.svd__tilt {
  --rx: 0deg;
  --ry: 0deg;
  --spin: 0deg;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(calc(var(--ry) + var(--spin)));
}
/* شیء: کارت خدمات بدون قاب، بزرگ‌تر */
.svd__obj { perspective: none; }
.svd .obj { --sz: clamp(230px, 24vw, 380px); top: 0; }
.svd .obj--identity { --gap: 30px; }
.svd .svc.is-active .obj--identity { --gap: 34px; }

/* ---------- ستون متن ---------- */
.svd__copy { padding-top: clamp(8px, 4vh, 48px); max-width: 680px; }
.svd__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  color: var(--fg-mute);
  font-size: var(--ab-t);
  font-weight: 400;
  line-height: 1.6;
  text-decoration: none;
  transition: color .3s var(--ease-out);
}
.svd__back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease-out); }
.svd__back:hover { color: var(--brand); }
.svd__back:hover svg { transform: translateX(4px); }

.svd__title {
  margin: 0 0 24px;
  font-size: var(--ab-h);
  font-weight: 700;
  line-height: 1.6;
  color: var(--brand);
}
.svd__text {
  margin: 0 0 1.2em;
  font-size: var(--ab-t);
  font-weight: 300;
  line-height: 2.15;
  color: var(--fg-dim);
  text-wrap: pretty;               /* justify روی خطوط دارای کلمات انگلیسی فاصله‌های بد می‌سازد */
}
.svd__text:first-of-type { color: #fff; font-weight: 400; }

/* فهرست (صفحه‌ی ادمین) */
.svd__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0 2em;
  padding: 0;
  list-style: none;
}
.svd__list li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01) 50%), #120803;
  font-size: var(--ab-t);
  font-weight: 400;
  line-height: 1.8;
  color: #fff;
  transition: border-color .4s var(--ease-out), transform .5s var(--ease-out);
}
.svd__list li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--brand);
  transform: rotate(45deg);
}
.svd__list li:hover { border-color: rgba(255, 140, 60, .4); transform: translateY(-2px); }
/* ورود آبشاری آیتم‌های فهرست */
.svd__list[data-reveal] { opacity: 1; transform: none; }
.svd__list li { opacity: 0; translate: 0 18px; transition: opacity .7s var(--ease-out), translate .8s var(--ease-out), border-color .4s, transform .5s; }
.svd__list.is-in li { opacity: 1; translate: 0 0; }
.svd__list.is-in li:nth-child(n) { transition-delay: calc(var(--n, 0) * 50ms), calc(var(--n, 0) * 50ms), 0s, 0s; }

/* ---------- ظاهر شدن ---------- */
[data-reveal] { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- قبلی / بعدی ---------- */
.svd__pn {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px var(--gutter) clamp(64px, 10vh, 120px);
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.svd__pn-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: #fff;
  font-size: var(--ab-t);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background .35s var(--ease-out), border-color .35s var(--ease-out);
}
.svd__pn-link svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease-out); }
.svd__pn-link:hover, .svd__pn-link:focus-visible { background: var(--brand); border-color: var(--brand); }
.svd__pn-link--prev:hover svg { transform: translateX(4px); }
.svd__pn-link--next:hover svg { transform: translateX(-4px); }
.svd__pn-link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------------------------------------------------------
   ریسپانسیو
   --------------------------------------------------------- */
@media (max-width: 899px) {
  .svd__wrap { grid-template-columns: 1fr; gap: 8px; }
  .svd__sticky { position: relative; top: 0; height: clamp(300px, 52vh, 420px); }
  .svd .obj { --sz: min(56vw, 260px); }
  .svd__copy { padding-top: 0; }
}
@media (max-width: 559px) {
  .svd__list { grid-template-columns: 1fr; }
  .svd__pn-link { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal], .svd__list li { opacity: 1 !important; transform: none !important; translate: none !important; transition: none !important; }
  .svd__orbit span { animation: none; }
}
