/* ============================================================================
   BASE
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  overflow-y: auto;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0;
  text-wrap: balance;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

/* تیتر اصلی هر صفحه با قلم نمایشی — تنها جایی که آن قلم ظاهر می‌شود،
   دقیقاً چون یک صفحه فقط یک h1 دارد. تکرار آن در h2/h3 اثرش را کم می‌کرد. */
h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
}

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

:focus-visible {
  outline: 2px solid var(--color-brand-500);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

::selection {
  background-color: color-mix(in oklab, var(--color-brand-500) 22%, transparent);
  color: var(--color-brand-800);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--color-surface-sunken); }
::-webkit-scrollbar-thumb {
  background: var(--color-line-strong);
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-surface-sunken);
}
::-webkit-scrollbar-thumb:hover { background: var(--color-brand-300); }

.skip-link {
  position: fixed;
  top: -100%;
  right: 1rem;
  z-index: var(--z-modal);
  background: var(--color-brand-500);
  color: var(--color-ink-inverse);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
}
.skip-link:focus { top: 1rem; }

/* ============================================================================
   LAYOUT
   ========================================================================== */

.container-page {
  width: 100%;
  max-width: var(--container-page);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 48rem) { .container-page { padding-inline: 2rem; } }

.container-content {
  width: 100%;
  max-width: var(--container-content);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section { padding-block: 5rem; }
@media (min-width: 40rem) { .section { padding-block: 7rem; } }
.section--sunken { background-color: var(--color-surface-sunken); }
.section--inverse { background-color: var(--color-surface-inverse); color: var(--color-ink-inverse); }

.surface-grain {
  position: relative;
  isolation: isolate;
}
.surface-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in oklab, var(--color-line-strong) 55%, transparent) 1px, transparent 0);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}

.section-header { display: flex; flex-direction: column; gap: 1rem; max-width: 42rem; }
.section-header--center { margin-inline: auto; align-items: center; text-align: center; }
.eyebrow {
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand-500);
}
.section-header h2 { font-size: var(--text-h2); }
.section-header .lead { font-size: var(--text-lead); color: var(--color-ink-muted); }

.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(1, 1fr); }
.grid--3 { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 40rem) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64rem) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================================
   COMPONENTS: buttons, cards, badges
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  white-space: nowrap;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.8rem 1.4rem;
  font-size: var(--text-small);
  transition: background-color 200ms var(--ease-out-soft), box-shadow 200ms var(--ease-out-soft), transform 200ms var(--ease-out-soft);
}
.btn:active { transform: scale(0.98); }

.btn--primary { background: var(--color-brand-500); color: var(--color-ink-inverse); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--color-brand-600); box-shadow: var(--shadow-md); }

.btn--outline { background: transparent; color: var(--color-ink); border: 1px solid var(--color-line-strong); }
.btn--outline:hover { border-color: var(--color-brand-300); background: var(--color-brand-50); }

.btn--secondary { background: var(--color-brand-50); color: var(--color-brand-700); }
.btn--secondary:hover { background: var(--color-brand-100); }

.btn--inverse { background: var(--color-ink-inverse); color: var(--color-brand-700); }
.btn--inverse:hover { background: #fff; }

/* دکمه شیشه‌ای — برای نشستن مستقیم روی ویدیو یا تصویر، جایی که هیچ پنل
   روشنی پشتش نیست تا از رنگ آن قرض بگیرد. */
/* دکمه‌ی «شیشه‌ی مایع» (الهام از Liquid Glass اپل، iOS 26) — بدون فیلتر
   SVG یا جاوااسکریپت (آن روش فقط در Chrome/Edge با backdrop-filter: url()
   کار می‌کند و در Safari/iOS اصلاً پشتیبانی نمی‌شود). به‌جایش با لایه‌های
   CSS معمولی (blur، گرادیان نور بالا، سایه‌ی داخلی برای عمق و لبه‌ی نورانی)
   همان حس شیشه‌ی محدب و نورگذر را می‌سازیم — در همه مرورگرها یکسان است. */
.btn--glass {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 0.16);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgb(255 255 255 / 0.4);
  color: #fff;
  box-shadow:
    inset 0 1px 1px rgb(255 255 255 / 0.7),
    inset 0 -8px 12px -6px rgb(0 0 0 / 0.25),
    0 12px 36px -8px rgb(0 0 0 / 0.35);
  transition: background-color 250ms var(--ease-out-soft), box-shadow 250ms var(--ease-out-soft), transform 250ms var(--ease-out-soft), border-color 250ms var(--ease-out-soft);
}
/* جرقه‌ی نور بالا — مثل انعکاس نور روی سطح محدب شیشه. */
.btn--glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(165deg, rgb(255 255 255 / 0.55) 0%, rgb(255 255 255 / 0.08) 45%, rgb(255 255 255 / 0) 65%);
  mix-blend-mode: overlay;
  pointer-events: none;
}
.btn--glass:hover {
  background: rgb(255 255 255 / 0.26);
  border-color: rgb(255 255 255 / 0.55);
  box-shadow:
    inset 0 1px 1px rgb(255 255 255 / 0.8),
    inset 0 -8px 12px -6px rgb(0 0 0 / 0.2),
    0 16px 40px -8px rgb(0 0 0 / 0.4);
}
.btn--glass:active {
  transform: scale(0.96);
  box-shadow:
    inset 0 1px 2px rgb(255 255 255 / 0.6),
    inset 0 4px 10px -4px rgb(0 0 0 / 0.35),
    0 6px 18px -6px rgb(0 0 0 / 0.35);
}

/* آیکون شیشه‌ای مایع — بدون هیچ رنگ اضافه؛ کاملاً شفاف (رنگ دکمه‌ی پشتش
   با backdrop-filter دیده می‌شود)، فقط یک لبه‌ی نورانی سفید دورش و یک
   جرقه‌ی نور مورب رویش — دقیقاً منطق نمونه‌ای که فرستادید، بدون تینت آبی. */
.btn--orb { padding-inline-end: 0.5rem; gap: 0.75rem; }
.icon-orb {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: rgb(255 255 255 / 0.06);
  backdrop-filter: blur(3px) saturate(1.3);
  -webkit-backdrop-filter: blur(3px) saturate(1.3);
  border: 1px solid rgb(255 255 255 / 0.7);
  box-shadow:
    inset 0 1px 2px rgb(255 255 255 / 0.85),
    inset 0 -3px 5px rgb(0 0 0 / 0.15),
    0 0 8px 0.5px rgb(255 255 255 / 0.5),
    0 3px 8px -2px rgb(0 0 0 / 0.35);
  transition: transform 250ms var(--ease-out-soft), box-shadow 250ms var(--ease-out-soft);
}
.icon-orb::after {
  content: "";
  position: absolute;
  top: 10%;
  left: 18%;
  width: 40%;
  height: 26%;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.85);
  filter: blur(2px);
  transform: rotate(-25deg);
}
.btn--orb:hover .icon-orb {
  transform: scale(1.1) translateY(-1px);
  box-shadow:
    inset 0 1px 2px rgb(255 255 255 / 0.85),
    inset 0 -3px 5px rgb(0 0 0 / 0.15),
    0 0 12px 1px rgb(255 255 255 / 0.65),
    0 3px 8px -2px rgb(0 0 0 / 0.35);
}
.icon-orb svg { position: relative; z-index: 1; color: #fff; filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.3)); }

.btn--sm { padding: 0.55rem 1rem; }
.btn--lg { padding: 1rem 1.75rem; font-size: var(--text-body); }
.btn--icon { padding: 0.7rem; border-radius: var(--radius-pill); }
.btn--full { width: 100%; }

/* باکس‌های سفید محتوایی هم به همان زبان «شیشه‌ی مایع» دکمه‌ها وصل شدند —
   پس‌زمینه‌ی نیمه‌شفاف + بلور + لبه‌ی نورانی بالا، به‌جای سفید تخت. روی
   پس‌زمینه‌ی کرمی صفحه (روشن) اجرا می‌شود، پس نسخه‌ی روشن شیشه استفاده
   شده، نه نسخه‌ی تیره‌ی روی ویدیو. */
.card {
  position: relative;
  border: 1px solid rgb(255 255 255 / 0.6);
  background: rgb(255 255 255 / 0.55);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow:
    inset 0 1px 1px rgb(255 255 255 / 0.8),
    0 8px 24px -6px rgb(30 27 24 / 0.08);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.8rem;
  font-size: var(--text-caption);
  font-weight: 600;
  background: var(--color-brand-50);
  color: var(--color-brand-700);
}
.badge--mint  { background: color-mix(in oklab, var(--color-accent-mint) 35%, white); color: var(--color-brand-800); }
.badge--sage  { background: color-mix(in oklab, var(--color-accent-sage) 50%, white); color: var(--color-brand-800); }
.badge--sand  { background: color-mix(in oklab, var(--color-accent-sand) 55%, white); color: var(--color-brand-800); }
.badge--lilac { background: color-mix(in oklab, var(--color-accent-lilac) 45%, white); color: var(--color-spark-ink); }
.badge--coral { background: color-mix(in oklab, var(--color-accent-coral) 60%, white); color: var(--color-spark-ink); }

.icon-tile {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-lg);
  flex-shrink: 0;
  backdrop-filter: blur(12px) saturate(1.6);
  -webkit-backdrop-filter: blur(12px) saturate(1.6);
  border: 1px solid rgb(255 255 255 / 0.55);
  overflow: hidden;
}
/* برجستگی شیشه‌ای بالای کاشی — یک هایلایت نرم که حس محدب‌بودن شیشه را می‌سازد. */
.icon-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgb(255 255 255 / 0.55), transparent 55%);
  pointer-events: none;
}
/* هر لهجه رنگی، رنگ خودش را هم در شیشه دارد هم در درخشش زیرش. */
.icon-tile--mint  { background: color-mix(in oklab, var(--color-accent-mint) 40%, white 55%); color: var(--color-brand-800); box-shadow: 0 14px 28px -12px color-mix(in oklab, var(--color-accent-mint) 85%, transparent); }
.icon-tile--sage  { background: color-mix(in oklab, var(--color-accent-sage) 42%, white 55%); color: var(--color-brand-800); box-shadow: 0 14px 28px -12px color-mix(in oklab, var(--color-accent-sage) 85%, transparent); }
.icon-tile--sand  { background: color-mix(in oklab, var(--color-accent-sand) 45%, white 55%); color: var(--color-brand-800); box-shadow: 0 14px 28px -12px color-mix(in oklab, var(--color-accent-sand) 85%, transparent); }
.icon-tile--lilac { background: color-mix(in oklab, var(--color-accent-lilac) 38%, white 55%); color: var(--color-spark-ink); box-shadow: 0 14px 28px -12px color-mix(in oklab, var(--color-accent-lilac) 85%, transparent); }
.icon-tile--coral { background: color-mix(in oklab, var(--color-accent-coral) 45%, white 55%); color: var(--color-spark-ink); box-shadow: 0 14px 28px -12px color-mix(in oklab, var(--color-accent-coral) 85%, transparent); }
.icon-tile svg { position: relative; z-index: 1; }

/* ============================================================================
   COMPONENTS: header, nav, footer, quick actions
   ========================================================================== */

/* ----------------------------------------------------------------------
   هدر شیشه‌ای شناور
   position:fixed (نه sticky) تا روی ویدیوی صفحه اصلی هم شفاف بنشیند.
   بقیه صفحات با padding-top روی .site-main جای خالی آن را جبران می‌کنند؛
   صفحه اصلی این padding را ندارد تا ویدیو زیر هدر ادامه پیدا کند.
   ---------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 1rem;
  inset-inline: 1rem;
  max-width: calc(var(--container-page) + 2rem);
  margin-inline: auto;
  z-index: var(--z-header);
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  transition: background-color 300ms, box-shadow 300ms;
}
@media (min-width: 64rem) { .site-header { inset-inline: 2rem; } }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4.25rem;
  padding-inline: 0.75rem;
}
@media (min-width: 40rem) { .site-header__inner { padding-inline: 1.25rem; } }

.site-main { padding-top: 6.5rem; }
body.home .site-main { padding-top: 0; }
.site-header__brand { display: flex; flex-direction: column; line-height: 1.3; flex-shrink: 0; }
.site-header__brand strong { font-size: var(--text-body); font-weight: 700; color: var(--color-brand-700); }
.site-header__brand span { font-size: var(--text-caption); color: var(--color-ink-subtle); }

.main-nav { display: none; }
@media (min-width: 64rem) { .main-nav { display: block; } }
.main-nav ul { display: flex; align-items: center; gap: 0.25rem; }
.main-nav a {
  display: block;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: var(--text-small);
  color: var(--color-ink-muted);
  transition: background-color 200ms, color 200ms;
}
.main-nav a:hover { background: var(--color-brand-50); color: var(--color-brand-700); }
.main-nav a[aria-current="page"] { background: var(--color-brand-50); color: var(--color-brand-700); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-phone { display: none; font-size: var(--text-small); font-weight: 600; color: var(--color-brand-700); }
@media (min-width: 48rem) { .header-phone { display: inline; } }

.mobile-nav-toggle { display: inline-flex; }
@media (min-width: 64rem) { .mobile-nav-toggle { display: none; } }

.header-cta { display: none; }
@media (min-width: 40rem) { .header-cta { display: inline-flex; } }

.mobile-nav {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: var(--z-modal);
  width: min(22rem, 88vw);
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-inline-end: 1px solid var(--glass-border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transform: translateX(-100%);
  transition: transform 320ms var(--ease-out-soft);
}
[dir="rtl"] .mobile-nav { inset: 0 0 0 auto; transform: translateX(100%); }
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgb(30 27 24 / 0.4);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms;
}
.mobile-nav-backdrop.is-open { opacity: 1; pointer-events: auto; }
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; }
.mobile-nav a { display: flex; flex-direction: column; gap: 0.2rem; border-radius: var(--radius-md); padding: 0.85rem 1rem; }
.mobile-nav a:hover { background: var(--color-brand-50); }
.mobile-nav a strong { font-weight: 600; }
.mobile-nav a span { font-size: var(--text-caption); color: var(--color-ink-subtle); }

.site-footer { border-top: 1px solid var(--color-line); background: var(--color-surface-sunken); }
.site-footer__grid {
  display: grid;
  gap: 3rem;
  padding-block: 4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 40rem) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .site-footer__grid { grid-template-columns: 1.5fr repeat(3, 1fr); } }
.site-footer__brand { display: flex; flex-direction: column; gap: 1rem; }
.site-footer nav { display: flex; flex-direction: column; gap: 0.75rem; }
.site-footer nav p { font-size: var(--text-caption); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-ink-subtle); }
.site-footer nav ul { display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer nav a { font-size: var(--text-small); color: var(--color-ink-muted); }
.site-footer nav a:hover { color: var(--color-brand-600); }
.site-footer__bottom {
  border-top: 1px solid var(--color-line);
  padding-block: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: var(--text-caption);
  color: var(--color-ink-subtle);
}
@media (min-width: 40rem) { .site-footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; } }

.quick-actions {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: var(--z-sticky);
  padding: 1rem;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
@media (min-width: 40rem) { .quick-actions { display: none; } }
.quick-actions__bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 24rem;
  border: 1px solid var(--color-line);
  background: color-mix(in oklab, var(--color-surface-raised) 95%, transparent);
  border-radius: var(--radius-pill);
  padding: 0.4rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}
.quick-actions__bar .btn--primary { flex: 1; }

/* ============================================================================
   COMPONENTS: hero, journey, faq, form, media placeholder
   ========================================================================== */

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; font-size: var(--text-caption); color: var(--color-ink-subtle); }
.breadcrumbs a:hover { color: var(--color-brand-600); }

/* ----------------------------------------------------------------------
   HERO
   یک لحظه بزرگ و اتمسفریک، نه یک ردیف متن با یک جعبه خالی کنارش.
   عمق از سه لایه می‌آید: دانه‌ی نویز ظریف + دو لکه‌ی رنگ محو و بزرگ که
   با پیمایش صفحه به‌آرامی حرکت می‌کنند + تیتر با قلم نمایشی.
   ---------------------------------------------------------------------- */

/* ----------------------------------------------------------------------
   HERO — ویدیو تمام‌صفحه، بدون هیچ شعار یا متنی؛ فقط ویدیو و یک دکمه.
   هدر شناور شیشه‌ای مستقیم روی آن می‌نشیند (position:fixed در .site-header،
   بدون padding-top رقیب روی body.home).
   ---------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  height: 100vh;
  min-height: 34rem;
  max-height: 54rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* روی موبایل، برش عمودی وسط‌چین دقیقاً بین دکتر و کودک می‌افتد و صورت
   کودک از قاب بیرون می‌رود (تست شد با گرفتن فریم واقعی). آفست افقی
   کادر را به سمت کودک می‌برد بدون نیاز به فایل ویدیوی جداگانه. */
@media (max-width: 39.99rem) {
  .hero__video { object-position: 72% 32%; }
}

/* گرادیان تیره‌کننده: پایین صفحه (جای دکمه) تیره‌تر برای خوانایی،
   بالای صفحه ملایم‌تر تا زیر هدر شیشه‌ای شفاف بماند. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to top, rgb(19 37 38 / 0.75) 0%, rgb(19 37 38 / 0.15) 45%, rgb(19 37 38 / 0.32) 100%);
}

.hero__cta-wrap {
  position: relative;
  z-index: 2;
  padding-bottom: 4.5rem;
  display: flex;
  justify-content: center;
  width: 100%;
}
@media (min-width: 40rem) { .hero__cta-wrap { padding-bottom: 5.5rem; } }

.hero__cta-wrap .btn--glass {
  font-size: var(--text-body);
}

.temp-photo {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.temp-photo img { width: 100%; height: 100%; object-fit: cover; }
.temp-photo__tag {
  position: absolute;
  top: 0.75rem;
  inset-inline-end: 0.75rem;
  background: rgb(0 0 0 / 0.55);
  color: #fff;
  font-size: var(--text-caption);
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
}

.media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  border: 1px dashed var(--color-line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-brand-50), var(--color-surface-sunken) 60%, color-mix(in oklab, var(--color-accent-mint) 25%, transparent));
  padding: 1.5rem;
  text-align: center;
  color: var(--color-ink-subtle);
  font-size: var(--text-caption);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: box-shadow 300ms var(--ease-out-soft), transform 300ms var(--ease-out-soft);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card h3 { font-size: var(--text-h3); color: var(--color-ink); }
.service-card p { font-size: var(--text-small); color: var(--color-ink-muted); }
.service-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding-top: 0.5rem; }

/* یک‌درمیان سبزآبی برند / آجری — بدون رنگ سوم، همان دو رنگ اصلی سایت. */
.service-card--brand { background: rgb(179 201 214 / 0.6); backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5); border: 1px solid rgb(255 255 255 / 0.5); box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.7), 0 8px 24px -6px rgb(30 27 24 / 0.1); }
.service-card--spark { background: rgb(152 170 157 / 0.6); backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5); border: 1px solid rgb(255 255 255 / 0.5); box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.7), 0 8px 24px -6px rgb(30 27 24 / 0.1); }

.badge--glass {
  background: rgb(255 255 255 / 0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgb(255 255 255 / 0.4);
  color: #fff;
}

.journey { display: grid; gap: 3.5rem; }
@media (min-width: 64rem) { .journey { grid-template-columns: 0.9fr 1.1fr; gap: 5rem; } }
.journey__sticky { align-self: start; }
@media (min-width: 64rem) { .journey__sticky { position: sticky; top: 8rem; } }
.journey__list { position: relative; display: flex; flex-direction: column; gap: 2.5rem; padding-inline-end: 2rem; }
.journey__rail { position: absolute; inset-block: 0.5rem; inset-inline-end: 0.9375rem; width: 1px; background: var(--color-line-strong); }
.journey__rail-fill { height: 100%; width: 100%; background: var(--color-brand-400); transform-origin: top; }
.journey__item { position: relative; }
.journey__number {
  position: absolute;
  top: 0.25rem;
  inset-inline-end: -2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--color-brand-200);
  background: var(--color-surface);
  font-size: var(--text-caption);
  font-weight: 700;
  color: var(--color-brand-600);
}
.journey__item h3 { font-size: var(--text-h3); color: var(--color-brand-800); }
.journey__item p { margin-top: 0.5rem; max-width: 32rem; font-size: var(--text-small); color: var(--color-ink-muted); }

.principles-grid {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: var(--color-line);
  border-radius: var(--radius-lg);
  grid-template-columns: 1fr;
}
@media (min-width: 40rem) { .principles-grid { grid-template-columns: repeat(2, 1fr); } }
.principles-grid > li {
  display: flex; flex-direction: column; gap: 0.75rem; padding: 2rem;
  background: rgb(255 255 255 / 0.55);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.8);
}
.principles-grid h3 { font-size: var(--text-h3); color: var(--color-brand-700); }
.principles-grid p { font-size: var(--text-small); color: var(--color-ink-muted); }

/* ----------------------------------------------------------------------
   MANIFESTO
   یک لحظه‌ی بزرگ و ساکت وسط صفحه؛ تنها بخشی که تیتر آن هم از قلم نمایشی
   استفاده می‌کند بیرون از h1 — چون این خودش قرار است حس یک «بیانیه» را
   بدهد، نه یک سرتیتر بخش معمولی.
   ---------------------------------------------------------------------- */
/* ----------------------------------------------------------------------
   AMBIENT NODES — پترن «باغ گره‌ها»، برای پر کردن زمینه‌های سفید ساکت با
   یک بافت زنده و بسیار کم‌رنگ. رنگ و پالس نورونی داخل خودِ فایل SVG
   تعریف شده‌اند (self-contained)، پس اینجا فقط به‌عنوان یک background-image
   تکرارشونده با اندازه‌ی ثابت (نه کشیده‌شده) استفاده می‌شود — همین باعث
   می‌شود ریزیِ بافت روی هر صفحه‌نمایشی یکسان بماند.
   .section (سفید) در سراسر سایت هم به همین پترن وصل است؛ بخش‌های
   sunken/inverse را نمی‌گیرد چون زمینه‌شان دیگر سفید نیست.
   ---------------------------------------------------------------------- */
.ambient-nodes,
.section:not(.section--sunken):not(.section--inverse)::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: 0;
  opacity: 0.18;
  pointer-events: none;
  animation: node-drift 70s var(--ease-in-out-soft) infinite alternate;
}
/* .section::before نسخه‌ی ساده (background-image، بدون پالس نورونی) را نگه
   می‌دارد؛ .ambient-nodes خودش SVG را inline چاپ می‌کند (پایین‌تر) چون
   Safari/iOS انیمیشن داخل SVGِ استفاده‌شده به‌عنوان background را اجرا
   نمی‌کند و این المان دقیقاً برای همان پالس متحرک استفاده می‌شود. */
.section:not(.section--sunken):not(.section--inverse)::before {
  background-image: url('../images/node-garden.svg');
  background-repeat: repeat;
  background-position: center;
  background-size: 145px 152px;
}
@media (min-width: 700px) {
  .section:not(.section--sunken):not(.section--inverse)::before {
    background-size: 328px 345px;
  }
}
.ambient-nodes--terracotta { filter: hue-rotate(180deg) saturate(1.3); }
.ambient-nodes__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.ambient-nodes__fill--lg { display: none; }
@media (min-width: 700px) {
  .ambient-nodes__fill--sm { display: none; }
  .ambient-nodes__fill--lg { display: block; }
}
.section { position: relative; overflow: hidden; }
.section > * { position: relative; z-index: 1; }
@keyframes node-drift {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate(-1.5%, 1%) scale(1.04) rotate(0.6deg); }
  100% { transform: translate(1.5%, -1%) scale(1.02) rotate(-0.5deg); }
}

.manifesto {
  position: relative;
  padding-block: 6rem;
  text-align: center;
  overflow: hidden;
}
.manifesto::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, color-mix(in oklab, var(--color-brand-100) 60%, transparent), transparent 70%);
  pointer-events: none;
}
.manifesto__mark {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--color-brand-200);
  margin-bottom: 0.5rem;
}
.manifesto blockquote {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  margin-inline: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem);
  line-height: 1.55;
  color: var(--color-brand-900);
}
.manifesto cite {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 1.5rem;
  font-style: normal;
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-ink-subtle);
}

.faq-item {
  border: 1px solid var(--color-line);
  background: var(--color-surface-raised);
  border-radius: var(--radius-md);
}
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  padding: 1.25rem;
  font-weight: 600;
  color: var(--color-brand-800);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform 300ms; flex-shrink: 0; color: var(--color-brand-400); }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item__answer { border-top: 1px solid var(--color-line); padding: 1.25rem; font-size: var(--text-small); color: var(--color-ink-muted); }

/* ----------------------------------------------------------------------
   FEATURED — بند اختصاصی برای برجسته‌کردن یک خدمت خاص (بیهوشی عمومی)،
   جدا از شبکه عمومی خدمات؛ رنگ لیلاک همان لهجه‌ای است که خود آن خدمت دارد.
   ---------------------------------------------------------------------- */
.featured-service {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgb(179 201 214 / 0.6);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid rgb(255 255 255 / 0.5);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.7), 0 8px 24px -6px rgb(30 27 24 / 0.1);
  padding: 2.5rem;
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 56rem) {
  .featured-service { padding: 3.5rem; grid-template-columns: 1fr auto; align-items: center; gap: 2.5rem; }
}
.featured-service__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-ink);
  background: rgb(255 255 255 / 0.45);
  border: 1px solid rgb(255 255 255 / 0.6);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.9rem;
  width: fit-content;
}
.featured-service h2 { font-size: var(--text-h2); color: var(--color-ink); }
.featured-service p { margin-top: 0.75rem; font-size: var(--text-body); color: var(--color-ink-muted); max-width: 34rem; }
.featured-service__cta { display: flex; flex-direction: column; gap: 0.6rem; }

.cta-band { background: var(--color-surface-inverse); color: var(--color-ink-inverse); }
.cta-band__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-block: 5rem;
}
@media (min-width: 64rem) { .cta-band__inner { flex-direction: row; align-items: center; justify-content: space-between; padding-block: 6rem; } }
.cta-band h2 { font-size: var(--text-h1); }
.cta-band p { font-size: var(--text-lead); color: var(--color-brand-100); max-width: 40rem; margin-top: 1rem; }
.cta-band .btn--inverse-outline { background: rgb(255 255 255 / 0.1); border: 1px solid rgb(255 255 255 / 0.25); color: var(--color-ink-inverse); }
.cta-band .btn--inverse-outline:hover { background: rgb(255 255 255 / 0.2); }

/* ============================================================================
   FORM
   ========================================================================== */

.appointment-grid { display: grid; gap: 3rem; }
@media (min-width: 64rem) { .appointment-grid { grid-template-columns: 1.25fr 0.75fr; align-items: start; } }
.appointment-grid aside { position: static; }
@media (min-width: 64rem) { .appointment-grid aside { position: sticky; top: 8rem; } }

.form-grid { display: grid; gap: 1.5rem; }
@media (min-width: 40rem) { .form-grid--2 { grid-template-columns: repeat(2, 1fr); } }

.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: var(--text-small); font-weight: 600; }
.field .required { color: var(--color-danger); }
.field .hint, .field .error { font-size: var(--text-caption); }
.field .hint { color: var(--color-ink-subtle); }
.field .error { color: var(--color-danger); }

.control {
  width: 100%;
  border: 1px solid var(--color-line-strong);
  background: var(--color-surface-raised);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: var(--text-small);
  color: var(--color-ink);
  transition: border-color 200ms, box-shadow 200ms;
}
.control::placeholder { color: var(--color-ink-subtle); }
.control:focus {
  outline: none;
  border-color: var(--color-brand-400);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-brand-500) 12%, transparent);
}
.control[aria-invalid="true"] {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-danger) 12%, transparent);
}
textarea.control { min-height: 7rem; resize: vertical; }

.consent-row { display: flex; align-items: flex-start; gap: 0.75rem; font-size: var(--text-small); color: var(--color-ink-muted); }
.consent-row input { margin-top: 0.2rem; accent-color: var(--color-brand-500); }

.form-alert {
  border: 1px solid color-mix(in oklab, var(--color-danger) 30%, transparent);
  background: color-mix(in oklab, var(--color-danger) 5%, transparent);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: var(--text-small);
  color: var(--color-danger);
}
.form-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid var(--color-brand-200);
  background: var(--color-brand-50);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.form-success .tracking-code { font-weight: 700; letter-spacing: 0.15em; color: var(--color-brand-700); }

/* honeypot: از دید بینا و صفحه‌خوان پنهان است */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============================================================================
   SCROLL-DRIVEN ANIMATIONS
   ========================================================================== */

@keyframes reveal-up    { from { opacity: 0; transform: translateY(2.5rem); } to { opacity: 1; transform: translateY(0); } }
@keyframes reveal-scale { from { opacity: 0; transform: scale(0.94) translateY(1.5rem); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes reveal-inline{ from { opacity: 0; transform: translateX(2rem); } to { opacity: 1; transform: translateX(0); } }
@keyframes reveal-blur  { from { opacity: 0; filter: blur(12px); transform: translateY(1.5rem); } to { opacity: 1; filter: blur(0); transform: translateY(0); } }
@keyframes progress-grow{ from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes parallax-rise{ from { transform: translateY(10%); } to { transform: translateY(-10%); } }
@keyframes rail-fill    { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes hero-settle  { from { opacity: 1; transform: scale(1) translateY(0); } to { opacity: 0.2; transform: scale(0.96) translateY(-3rem); } }

@supports (animation-timeline: view()) {
  [data-reveal] { animation: reveal-up linear both; animation-timeline: view(); animation-range: entry 5% cover 32%; }
  [data-reveal="scale"]  { animation-name: reveal-scale; }
  [data-reveal="inline"] { animation-name: reveal-inline; }
  [data-reveal="blur"]   { animation-name: reveal-blur; }

  [data-scroll-progress] { animation: progress-grow linear both; animation-timeline: scroll(root block); transform-origin: right center; }
  [data-parallax] { animation: parallax-rise linear both; animation-timeline: view(); animation-range: cover; will-change: transform; }
  [data-rail] { animation: rail-fill linear both; animation-timeline: view(); animation-range: entry 60% exit 40%; }
  [data-hero-settle] { animation: hero-settle linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
}

@supports not (animation-timeline: view()) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(2.5rem);
    transition: opacity 720ms var(--ease-out-soft), transform 720ms var(--ease-out-soft), filter 720ms var(--ease-out-soft);
  }
  [data-reveal="scale"]  { transform: scale(0.94) translateY(1.5rem); }
  [data-reveal="inline"] { transform: translateX(2rem); }
  [data-reveal="blur"]   { filter: blur(12px); }
  [data-reveal].is-visible { opacity: 1; transform: none; filter: none; }
}

/* ----------------------------------------------------------------------
   TRAVEL — کارت‌ها با ورود/خروج از صفحه محو و بزرگ/کوچک می‌شوند. عمداً به
   «مدت‌زمان» وصل است نه به «مقدار اسکرول» (بر خلاف نسخه‌ی قبلی که از
   animation-timeline: view() استفاده می‌کرد) — چون آن روش به سرعت اسکرول
   کاربر، اندازه‌ی صفحه‌نمایش و پشتیبانی مرورگر وابسته بود و می‌توانست عملاً
   نامحسوس شود. این نسخه با IntersectionObserver در main.js کنترل می‌شود و
   همیشه یک ترانزیشن با مدت ثابت (لمس‌پذیر و تضمینی) اجرا می‌کند.
   ---------------------------------------------------------------------- */
[data-travel] {
  opacity: 0;
  transform: translateY(9rem) scale(0.8);
  transition: opacity 1300ms var(--ease-out-soft), transform 1300ms var(--ease-out-soft);
  will-change: transform, opacity;
}
[data-travel="rise"] { transform: translateY(11rem) scale(0.74); }
[data-travel].is-visible { opacity: 1; transform: none; }
[data-travel].is-leaving { opacity: 0; transform: translateY(-9rem) scale(0.8); }

[data-reveal-delay="1"] { animation-delay: 60ms;  transition-delay: 60ms; }
[data-reveal-delay="2"] { animation-delay: 120ms; transition-delay: 120ms; }
[data-reveal-delay="3"] { animation-delay: 180ms; transition-delay: 180ms; }
[data-reveal-delay="4"] { animation-delay: 240ms; transition-delay: 240ms; }
[data-reveal-delay="5"] { animation-delay: 300ms; transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal], [data-travel], [data-parallax], [data-hero-settle], [data-rail] {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .ambient-nodes svg { animation: none !important; }
}
