@import url('fonts.css');

/* ==========================================================================
   دفتر حقوقی برزگر — Design System
   White canvas · Emerald glass · Ink typography
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Emerald ramp */
  --em-950: #022c22;
  --em-900: #04372a;
  --em-800: #055240;
  --em-700: #047857;
  --em-600: #059669;
  --em-500: #10b981;
  --em-400: #34d399;
  --em-300: #6ee7b7;
  --em-200: #a7f3d0;
  --em-100: #d1fae5;
  --em-50:  #ecfdf5;

  /* Ink */
  --ink-900: #07100d;
  --ink-800: #0f1a16;
  --ink-700: #1c2a25;
  --ink-600: #34443d;
  --ink-500: #55665e;
  --ink-400: #7d8d86;
  --ink-300: #a8b5af;
  --ink-200: #d5dcd9;
  --ink-100: #eef2f0;

  --white: #ffffff;

  /* Semantic */
  --bg: #ffffff;
  --text: var(--ink-900);
  --text-muted: var(--ink-500);
  --brand: var(--em-600);
  --brand-strong: var(--em-700);
  --line: rgba(4, 55, 42, 0.10);
  --line-soft: rgba(4, 55, 42, 0.06);

  /* Glass */
  --glass-bg: linear-gradient(152deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.58));
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-blur: saturate(180%) blur(20px);

  /* Elevation */
  --sh-xs: 0 1px 2px rgba(4, 55, 42, 0.06);
  --sh-sm: 0 2px 8px -2px rgba(4, 55, 42, 0.10), 0 1px 2px rgba(4, 55, 42, 0.04);
  --sh-md: 0 12px 32px -12px rgba(4, 55, 42, 0.20), 0 2px 6px rgba(4, 55, 42, 0.05);
  --sh-lg: 0 28px 64px -24px rgba(4, 55, 42, 0.28), 0 4px 12px rgba(4, 55, 42, 0.06);
  --sh-xl: 0 48px 96px -32px rgba(4, 55, 42, 0.34), 0 8px 20px rgba(4, 55, 42, 0.07);
  --glow: 0 0 0 1px rgba(16, 185, 129, 0.20), 0 12px 40px -8px rgba(16, 185, 129, 0.45);
  --glow-soft: 0 0 48px -8px rgba(16, 185, 129, 0.35);

  /* Radius */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-2xl: 44px;
  --r-full: 999px;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 88px;
  --s-10: 120px;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(46px, 5.6vw, 84px);
  --header-h: 76px;

  /* Type */
  --font-display: 'Anjoman', 'IRANYekan', 'YekanBakh EN', system-ui, sans-serif;
  --font-body: 'IRANYekan', 'YekanBakh EN', system-ui, sans-serif;

  --t-xs: clamp(0.72rem, 0.7rem + 0.1vw, 0.78rem);
  --t-sm: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --t-base: clamp(0.94rem, 0.9rem + 0.2vw, 1.03rem);
  --t-lg: clamp(1.05rem, 1rem + 0.28vw, 1.2rem);
  --t-xl: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --t-2xl: clamp(1.45rem, 1.28rem + 0.85vw, 2rem);
  --t-3xl: clamp(1.8rem, 1.5rem + 1.5vw, 2.85rem);
  --t-4xl: clamp(2.2rem, 1.7rem + 2.4vw, 3.9rem);
  --t-5xl: clamp(2.6rem, 1.9rem + 3.2vw, 4.8rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.45s;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
  /* در RTL، `overflow-x: hidden` روی body جلوی اسکرول افقی برنامه‌ای و
     scroll-anchoring را نمی‌گیرد؛ نتیجه‌اش لغزیدن تدریجی کل صفحه به راست
     هنگام اسکرول بود. `clip` اصلاً viewport افقی نمی‌سازد. */
  overflow-x: hidden; /* fallback برای مرورگرهای قدیمی */
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  max-width: 100%;
  overflow-x: hidden; /* fallback */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Decorative canvas — emerald aurora mesh */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(64rem 44rem at 88% -12%, rgba(16, 185, 129, 0.18), transparent 62%),
    radial-gradient(52rem 40rem at 2% 14%, rgba(5, 150, 105, 0.13), transparent 60%),
    radial-gradient(46rem 34rem at 60% 48%, rgba(110, 231, 183, 0.10), transparent 62%),
    radial-gradient(58rem 40rem at 15% 96%, rgba(4, 120, 87, 0.10), transparent 62%),
    var(--white);
}

/* Decorative canvas — engineering grid + film grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M56 0H0v56' fill='none' stroke='%23047857' stroke-opacity='.07' stroke-width='1'/%3E%3Ccircle cx='0' cy='0' r='1.4' fill='%23047857' fill-opacity='.14'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
  background-size: 56px 56px, 180px 180px;
  opacity: 0.85;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 8%, rgba(0, 0, 0, 0.35) 55%, transparent 92%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 8%, rgba(0, 0, 0, 0.35) 55%, transparent 92%);
}

img, svg, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

ul, ol { list-style: none; }

:focus-visible {
  outline: 3px solid var(--em-500);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

::selection { background: var(--em-200); color: var(--em-950); }

/* Scrollbar */
@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar { width: 11px; height: 11px; }
  ::-webkit-scrollbar-track { background: var(--em-50); }
  ::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--em-500), var(--em-700));
    border-radius: var(--r-full);
    border: 3px solid var(--em-50);
  }
  ::-webkit-scrollbar-thumb:hover { background: var(--em-700); }
}

.skip-link {
  position: absolute;
  inset-inline-start: 50%;
  top: -100px;
  transform: translateX(50%);
  z-index: 999;
  background: var(--em-700);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 700;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  text-wrap: balance;
}

h1 { font-size: var(--t-5xl); line-height: 1.16; }
h2 { font-size: var(--t-3xl); line-height: 1.22; }
h3 { font-size: var(--t-xl); }
h4 { font-size: var(--t-lg); }

p { text-wrap: pretty; }

.lead {
  font-size: var(--t-lg);
  color: var(--ink-600);
  font-weight: 300;
  line-height: 2;
}

.muted { color: var(--text-muted); }

.accent {
  background: linear-gradient(100deg, var(--em-600), var(--em-400) 45%, var(--em-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 880px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(32px, 4vw, 54px); }

.stack > * + * { margin-top: var(--s-4); }

.grid { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* --------------------------------------------------------------------------
   5. Glass surfaces
   -------------------------------------------------------------------------- */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 0 0 1px rgba(16, 185, 129, 0.05),
    var(--sh-md);
}

.glass-em {
  background: linear-gradient(152deg, rgba(16, 185, 129, 0.14), rgba(255, 255, 255, 0.55) 55%, rgba(52, 211, 153, 0.10));
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(16, 185, 129, 0.26);
  border-radius: var(--r-lg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 24px 60px -28px rgba(5, 150, 105, 0.55);
}

/* Sheen sweep on hover-capable devices */
.sheen { position: relative; overflow: hidden; isolation: isolate; }
.sheen::after {
  content: '';
  position: absolute;
  inset-block: -60%;
  inset-inline-start: -70%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}
@media (hover: hover) {
  .sheen:hover::after {
    animation: sheen-sweep 0.9s var(--ease) forwards;
  }
}
@keyframes sheen-sweep {
  0%   { opacity: 0; inset-inline-start: -70%; }
  15%  { opacity: 1; }
  100% { opacity: 0; inset-inline-start: 130%; }
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-py: 14px;
  --btn-px: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--btn-py) var(--btn-px);
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  white-space: nowrap;
  transition:
    transform 0.32s var(--ease),
    box-shadow 0.32s var(--ease),
    background-color 0.32s var(--ease),
    color 0.32s var(--ease),
    border-color 0.32s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: linear-gradient(135deg, var(--em-500) 0%, var(--em-600) 45%, var(--em-700) 100%);
  color: var(--white);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 30px -10px rgba(5, 150, 105, 0.75);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, var(--em-400), var(--em-500) 50%, var(--em-600));
  opacity: 0;
  transition: opacity 0.32s var(--ease);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 18px 42px -12px rgba(16, 185, 129, 0.85);
}
.btn-primary:hover::before { opacity: 1; }

.btn-glass {
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-color: rgba(4, 55, 42, 0.12);
  color: var(--ink-900);
  box-shadow: var(--sh-sm);
}
.btn-glass:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.45);
  color: var(--em-700);
  box-shadow: var(--sh-md), 0 0 0 4px rgba(16, 185, 129, 0.10);
}

.btn-dark {
  background: var(--ink-900);
  color: var(--white);
  box-shadow: 0 10px 30px -12px rgba(7, 16, 13, 0.7);
}
.btn-dark:hover {
  transform: translateY(-2px);
  background: var(--em-900);
  box-shadow: 0 18px 40px -14px rgba(4, 55, 42, 0.8);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.btn-sm { --btn-py: 10px; --btn-px: 22px; min-height: 44px; font-size: var(--t-xs); }
.btn-lg { --btn-py: 18px; --btn-px: 38px; min-height: 60px; font-size: var(--t-base); }
.btn-block { width: 100%; }

/* روی صفحه‌های خیلی باریک، پدینگ ثابت دکمه‌ها برچسب را از کادر بیرون
   می‌انداخت و چون `.btn` مقدار overflow:hidden دارد، متن بریده می‌شد.
   کنار کم‌کردن پدینگ، به دکمه تمام‌عرض اجازه شکستن خط می‌دهیم تا برای هر
   طول برچسبی امن باشد. */
.btn > svg { flex: none; }

@media (max-width: 430px) {
  .btn { --btn-px: 18px; gap: 8px; }
  .btn-lg { --btn-px: 22px; }
  .btn-block {
    --btn-px: 14px;
    white-space: normal;
    line-height: 1.45;
    text-align: center;
  }
}

.btn[disabled], .btn[aria-disabled='true'] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

/* Arrow nudge (RTL: arrow points left = "forward") */
.btn .arrow { transition: transform 0.32s var(--ease); }
.btn:hover .arrow { transform: translateX(-4px); }

/* Text link with animated underline */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: var(--t-sm);
  color: var(--em-700);
  padding-block: 4px;
  position: relative;
}
.link-arrow::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s var(--ease);
}
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.32s var(--ease); }
.link-arrow:hover svg { transform: translateX(-4px); }

/* --------------------------------------------------------------------------
   7. Section headers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--em-700);
  padding: 8px 18px;
  border-radius: var(--r-full);
  background: linear-gradient(120deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.04));
  border: 1px solid rgba(16, 185, 129, 0.22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--em-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
  animation: pulse-dot 2.6s var(--ease-in-out) infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22); }
  50%      { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0.04); }
}

.section-head {
  display: grid;
  gap: var(--s-3);
  margin-bottom: clamp(26px, 3.4vw, 44px);
}
.section-head--split {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  gap: var(--s-5);
}
.section-head--center {
  justify-items: center;
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
}
@media (max-width: 860px) {
  .section-head--split { grid-template-columns: 1fr; align-items: start; }
}

/* --------------------------------------------------------------------------
   8. Header / navigation
   -------------------------------------------------------------------------- */
/* Frosted glass at rest, denser once the page scrolls under it */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-block: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.30));
  -webkit-backdrop-filter: saturate(200%) blur(26px);
  backdrop-filter: saturate(200%) blur(26px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition:
    padding 0.4s var(--ease),
    background 0.4s var(--ease),
    border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
}
/* Emerald sheen along the bottom edge */
.site-header::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.site-header.is-stuck {
  padding-block: 7px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.56));
  -webkit-backdrop-filter: saturate(215%) blur(34px);
  backdrop-filter: saturate(215%) blur(34px);
  border-bottom-color: rgba(255, 255, 255, 0.75);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 12px 36px -20px rgba(4, 55, 42, 0.45);
}
.site-header.is-stuck::after { opacity: 1; }

.nav-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: 60px;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.brand-mark {
  position: relative;
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--em-500), var(--em-700));
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 8px 22px -8px rgba(5, 150, 105, 0.8);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.brand-mark span { transform: translateY(-2px); }
.brand:hover .brand-mark {
  transform: rotate(-6deg) scale(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 12px 30px -8px rgba(16, 185, 129, 0.95);
}
.brand-text { display: grid; line-height: 1.35; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Desktop nav */
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: var(--r-full);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-600);
  position: relative;
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.nav-link:hover { color: var(--em-700); background: rgba(16, 185, 129, 0.07); }
.nav-link[aria-current='page'] {
  color: var(--em-800);
  font-weight: 700;
  background: linear-gradient(120deg, rgba(16, 185, 129, 0.16), rgba(16, 185, 129, 0.06));
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.24);
}

.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--ink-700);
  padding: 10px 14px;
  border-radius: var(--r-full);
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.nav-phone svg { width: 17px; height: 17px; color: var(--em-600); }
.nav-phone:hover { color: var(--em-700); background: rgba(16, 185, 129, 0.07); }

/* Burger */
.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
  position: relative;
  flex: none;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.nav-toggle:hover { border-color: rgba(16, 185, 129, 0.4); }
.nav-toggle span {
  position: absolute;
  inset-inline: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-800);
  transition: transform 0.4s var(--ease), opacity 0.25s var(--ease), width 0.4s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 23px; inset-inline-end: 13px; width: 12px; inset-inline-start: auto; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(180%) blur(26px);
  backdrop-filter: saturate(180%) blur(26px);
  padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.nav-drawer.is-open { opacity: 1; visibility: visible; transform: none; }
.nav-drawer a.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.75);
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-weight: 700;
  color: var(--ink-800);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-drawer a.drawer-link svg { width: 18px; height: 18px; color: var(--em-500); }
.nav-drawer a.drawer-link:hover,
.nav-drawer a.drawer-link[aria-current='page'] {
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--em-800);
  transform: translateX(-6px);
}
.drawer-foot { margin-top: 20px; display: grid; gap: 12px; }

@media (max-width: 1080px) {
  .nav-list, .nav-phone { display: none; }
  .nav-toggle { display: block; }
  .nav-actions { margin-inline-start: auto; }
}
@media (max-width: 560px) {
  .nav-actions .btn-primary { display: none; }
  .brand-sub { display: none; }
}

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */
/* Open hero — no card, the page canvas carries it */
.hero {
  position: relative;
  padding-top: clamp(20px, 3.4vw, 48px);
  padding-bottom: clamp(16px, 2.6vw, 34px);
}
.hero::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: -20%;
  height: 135%;
  pointer-events: none;
  background:
    radial-gradient(40rem 32rem at 26% 34%, rgba(16, 185, 129, 0.20), transparent 62%),
    radial-gradient(34rem 26rem at 88% 8%, rgba(52, 211, 153, 0.16), transparent 62%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(20px, 3.4vw, 52px);
}
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { justify-items: center; }
  .hero-cta { justify-content: center; }
  .hero-meta { justify-content: center; }
}

.hero-copy { display: grid; gap: var(--s-5); justify-items: start; }
.hero-title { font-size: var(--t-5xl); }
.hero-title .accent { display: inline-block; }
.hero-lead { max-width: 52ch; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding-top: var(--s-2);
}
.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--t-sm);
  color: var(--ink-600);
  font-weight: 500;
}
.hero-meta-item svg { width: 18px; height: 18px; color: var(--em-600); flex: none; }

/* Hero visual — must stay positioned: the orb, rings and chips anchor to it.
   Deliberately NOT isolated and never wrapped in a transformed/reveal element:
   .hero-photo blends with the page canvas, which a stacking context would cut off. */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(330px, 42vw, 540px);
}

/* The source photo sits on flat white; multiply drops that white into the
   page canvas so the statue reads as a cut-out with no visible box. */
.hero-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(330px, 42vw, 540px);
  object-fit: cover;
  /* Subject sits at the left of the source frame — never crop into it */
  object-position: left center;
  mix-blend-mode: multiply;
  filter: saturate(1.08) contrast(1.04);
}
@media (max-width: 940px) {
  .hero-photo { max-width: 480px; margin-inline: auto; }
}
/* Halo behind the cut-out: the photo multiplies over it, so white areas
   pick up this tint instead of reading as a white block. */
.hero-orb {
  position: absolute;
  inset: 4% 2%;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(167, 243, 208, 0.62), rgba(16, 185, 129, 0.20) 48%, transparent 72%);
  filter: blur(34px);
  animation: orb-breathe 9s var(--ease-in-out) infinite;
}
@keyframes orb-breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50%      { transform: scale(1.08); opacity: 1; }
}
.hero-rings {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  /* حلقه‌ها مربع‌های چرخانی هستند که دایره رسم می‌کنند؛ کادر layoutشان با
     چرخش تا ۴۱٪ پهن‌تر می‌شود و صفحه را افقی سرریز می‌کرد. تصویر رسم‌شده
     تغییری نمی‌کند، فقط کادر مهار می‌شود. */
  overflow: hidden;
  overflow: clip;
}
.hero-rings i {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(5, 150, 105, 0.22);
  animation: spin-slow 42s linear infinite;
}
.hero-rings i:nth-child(1) { width: 78%; aspect-ratio: 1; }
.hero-rings i:nth-child(2) { width: 96%; aspect-ratio: 1; border-style: solid; border-color: rgba(5, 150, 105, 0.12); animation-duration: 60s; animation-direction: reverse; }
@keyframes spin-slow { to { transform: rotate(360deg); } }

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* Floating stat chips */
.chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--sh-lg);
  animation: float-y 6s var(--ease-in-out) infinite;
}
.chip-ico {
  width: 38px; height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--em-400), var(--em-700));
  color: var(--white);
  box-shadow: 0 6px 18px -6px rgba(5, 150, 105, 0.9);
}
.chip-ico svg { width: 19px; height: 19px; }
.chip-txt { display: grid; line-height: 1.4; }
.chip-label { font-size: 0.62rem; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 500; }
.chip-value { font-size: 0.94rem; font-weight: 800; color: var(--ink-900); white-space: nowrap; }

/* Scattered over the photo's empty side so nothing crowds the statue */
.chip--1 { top: 8%;    inset-inline-start: 0;  animation-delay: -1.5s; }
.chip--2 { bottom: 26%; inset-inline-end: 0;   animation-delay: -3.5s; }
.chip--3 { bottom: 4%;  inset-inline-start: 8%; animation-delay: -5s; }

@media (max-width: 940px) {
  .hero-visual { width: 100%; max-width: 540px; margin-inline: auto; }
}
@media (max-width: 520px) {
  .chip { padding: 9px 12px; gap: 9px; }
  .chip-ico { width: 30px; height: 30px; border-radius: 9px; }
  .chip-ico svg { width: 15px; height: 15px; }
  .chip-value { font-size: 0.8rem; }
  .chip--3 { display: none; }
}

/* Practice-area bar — its own section, matching the hero's content width */
.band-section { padding-block: clamp(6px, 1.4vw, 16px); }

.practice-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(115deg, var(--em-900) 0%, var(--em-800) 42%, var(--em-950) 100%);
  color: var(--white);
  padding-block: clamp(16px, 2vw, 22px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    var(--sh-lg);
}
.practice-band::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(28rem 12rem at 18% 0%, rgba(52, 211, 153, 0.32), transparent 66%),
    radial-gradient(24rem 12rem at 86% 100%, rgba(16, 185, 129, 0.26), transparent 66%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M40 0H0v40' fill='none' stroke='%23ffffff' stroke-opacity='.07'/%3E%3C/svg%3E");
  background-size: auto, auto, 40px 40px;
}

.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding-inline-end: clamp(28px, 4vw, 56px);
  flex: none;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.28rem);
  font-weight: 700;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.94);
}
.marquee-item svg { width: 18px; height: 18px; color: var(--em-300); flex: none; }
@keyframes marquee { to { transform: translateX(50%); } }

/* Compact page hero (inner pages) */
.page-hero {
  position: relative;
  padding-top: clamp(48px, 7vw, 92px);
  padding-bottom: clamp(40px, 6vw, 72px);
  overflow: hidden;
}
.page-hero-inner {
  position: relative;
  display: grid;
  gap: var(--s-5);
  justify-items: center;
  text-align: center;
  max-width: 860px;
  margin-inline: auto;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: -40%;
  height: 120%;
  background: radial-gradient(46rem 26rem at 50% 30%, rgba(16, 185, 129, 0.16), transparent 68%);
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: var(--t-xs);
  color: var(--text-muted);
}
.breadcrumb a { transition: color 0.25s var(--ease); }
.breadcrumb a:hover { color: var(--em-700); }
.breadcrumb svg { width: 13px; height: 13px; opacity: 0.5; }
.breadcrumb [aria-current] { color: var(--ink-800); font-weight: 700; }

/* --------------------------------------------------------------------------
   10. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: grid;
  gap: var(--s-4);
  align-content: start;
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  backdrop-filter: saturate(170%) blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--sh-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(16, 185, 129, 0.6), transparent 40%, transparent 65%, rgba(52, 211, 153, 0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), var(--sh-lg), var(--glow-soft);
  border-color: rgba(255, 255, 255, 0.95);
}
.card:hover::before { opacity: 1; }

.card-title { font-size: var(--t-lg); }
.card-text { font-size: var(--t-sm); color: var(--ink-500); line-height: 1.95; }

/* Icon tile */
.ico-tile {
  width: 58px;
  height: 58px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.16), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.24);
  color: var(--em-700);
  transition: transform 0.45s var(--ease), background 0.45s var(--ease), color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.ico-tile svg { width: 27px; height: 27px; }
.card:hover .ico-tile,
.ico-tile.is-active {
  background: linear-gradient(145deg, var(--em-500), var(--em-700));
  color: var(--white);
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 12px 28px -10px rgba(5, 150, 105, 0.9);
}

/* Numbered card (process) */
.step-card { position: relative; overflow: hidden; }
.step-num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 2rem + 2.4vw, 4rem);
  font-weight: 700;
  line-height: 0.9;
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.85), rgba(16, 185, 129, 0.18));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step-card::after {
  content: '';
  position: absolute;
  inset-block: 26px;
  inset-inline-start: 0;
  width: 3px;
  border-radius: var(--r-full);
  background: linear-gradient(var(--em-400), transparent);
  opacity: 0.5;
}

/* Service card with cover strip */
.service-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  backdrop-filter: saturate(170%) blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: var(--sh-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sh-lg), var(--glow-soft);
}
.service-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(150deg, var(--em-800), var(--em-600) 55%, var(--em-900));
}
.service-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M40 0H0v40' fill='none' stroke='%23ffffff' stroke-opacity='.13'/%3E%3C/svg%3E");
  background-size: 40px 40px;
}
.service-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(20rem 14rem at 70% 15%, rgba(167, 243, 208, 0.4), transparent 62%);
  transition: transform 0.7s var(--ease);
}
.service-card:hover .service-cover::after { transform: scale(1.25); }
.service-cover svg {
  position: relative;
  width: clamp(52px, 8vw, 76px);
  height: auto;
  color: rgba(255, 255, 255, 0.94);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
  transition: transform 0.6s var(--ease);
}
.service-card:hover .service-cover svg { transform: translateY(-6px) scale(1.06); }
.service-tag {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 2;
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--em-900);
  padding: 7px 16px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--sh-sm);
}
.service-body { display: grid; gap: 12px; align-content: start; padding: clamp(20px, 2.6vw, 28px); }
.service-list { display: grid; gap: 8px; margin-top: 4px; }
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: var(--t-sm);
  color: var(--ink-500);
  line-height: 1.75;
}
.service-list svg { width: 16px; height: 16px; color: var(--em-600); flex: none; margin-top: 6px; }

/* --------------------------------------------------------------------------
   11. Profile / about block
   -------------------------------------------------------------------------- */
.profile {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}
@media (max-width: 900px) { .profile { grid-template-columns: 1fr; } }

.portrait {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--em-800), var(--em-950));
  box-shadow: var(--sh-xl);
  isolation: isolate;
}
.portrait::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23ffffff' fill-opacity='.18'/%3E%3C/svg%3E");
  background-size: 30px 30px;
}
/* Bottom scrim rides ABOVE the photo so the badge stays legible.
   Deliberately no emerald wash over the face — it would green the skin. */
.portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, rgba(2, 44, 34, 0.62), rgba(2, 44, 34, 0.12) 34%, transparent 58%);
}
.portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* source is already cropped 4:5 on the subject */
}
/* Illustrated stand-in shown until a real photograph is dropped in */
.portrait img.is-fallback,
.portrait svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
}

.portrait-badge {
  position: absolute;
  z-index: 3;
  inset-inline-start: 18px;
  bottom: 18px;
  inset-inline-end: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--sh-md);
}

.credential-list { display: grid; gap: 14px; }
.credential-list li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  font-size: var(--t-sm);
  color: var(--ink-600);
  line-height: 1.85;
}
.credential-list .tick {
  width: 26px; height: 26px;
  flex: none;
  margin-top: 3px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--em-400), var(--em-700));
  color: var(--white);
  box-shadow: 0 5px 14px -5px rgba(5, 150, 105, 0.8);
}
.credential-list .tick svg { width: 14px; height: 14px; }

.signature {
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  font-weight: 300;
  color: var(--em-800);
  letter-spacing: 0.02em;
  opacity: 0.75;
}

/* --------------------------------------------------------------------------
   12. Statement / big quote
   -------------------------------------------------------------------------- */
.statement {
  text-align: center;
  max-width: 940px;
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: var(--t-3xl);
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-400);
}
.statement b { font-weight: 700; color: var(--ink-900); }
.statement .accent { font-weight: 700; }

/* --------------------------------------------------------------------------
   13. Stats
   -------------------------------------------------------------------------- */
.stats-band {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(120deg, var(--em-900), var(--em-800) 45%, var(--em-950));
  color: var(--white);
  box-shadow: var(--sh-xl);
}
.stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(30rem 20rem at 12% 0%, rgba(52, 211, 153, 0.30), transparent 62%),
    radial-gradient(28rem 20rem at 88% 100%, rgba(16, 185, 129, 0.24), transparent 62%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M48 0H0v48' fill='none' stroke='%23ffffff' stroke-opacity='.08'/%3E%3C/svg%3E");
  background-size: auto, auto, 48px 48px;
  pointer-events: none;
}
/* Dividers: the 1px grid gaps expose the brighter track colour behind the
   slightly-tinted cells, so hairlines appear at any wrap count. */
.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
}
.stat {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  padding: clamp(28px, 4vw, 48px) clamp(16px, 2vw, 28px);
  background: rgba(255, 255, 255, 0.03);
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(150deg, #ffffff, var(--em-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { font-size: var(--t-sm); color: rgba(255, 255, 255, 0.72); }

/* --------------------------------------------------------------------------
   14. Feature split (why choose)
   -------------------------------------------------------------------------- */
.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 3.5vw, 52px);
}
@media (max-width: 1000px) {
  .feature-split { grid-template-columns: 1fr 1fr; }
  .feature-split .feature-center { grid-column: 1 / -1; order: -1; max-width: 480px; margin-inline: auto; }
}
@media (max-width: 620px) { .feature-split { grid-template-columns: 1fr; } }

.feature-col { display: grid; gap: clamp(24px, 3vw, 40px); }
.feature-item { display: grid; gap: 10px; }
.feature-item .eyebrow { justify-self: start; }
.feature-title { font-size: var(--t-xl); }
.feature-text { font-size: var(--t-sm); color: var(--ink-500); line-height: 1.95; }

.feature-center {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, var(--em-800), var(--em-950));
  box-shadow: var(--sh-xl);
  display: grid;
  place-items: center;
}
.feature-center img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.feature-center img.is-fallback { object-fit: contain; object-position: bottom; }
.feature-center::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, rgba(2, 44, 34, 0.58), rgba(2, 44, 34, 0.1) 36%, transparent 60%);
}
.feature-center::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(22rem 18rem at 50% 8%, rgba(52, 211, 153, 0.34), transparent 66%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Cpath d='M36 0H0v36' fill='none' stroke='%23ffffff' stroke-opacity='.10'/%3E%3C/svg%3E");
  background-size: auto, 36px 36px;
}

/* --------------------------------------------------------------------------
   15. Logos row
   -------------------------------------------------------------------------- */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(20px, 2.6vw, 30px) clamp(24px, 4vw, 48px);
  border-radius: var(--r-lg);
}
.logo-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-sm);
  color: var(--ink-500);
  opacity: 0.72;
  transition: opacity 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}
.logo-item svg { width: 22px; height: 22px; flex: none; }
.logo-item:hover { opacity: 1; color: var(--em-700); transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   16. Testimonials
   -------------------------------------------------------------------------- */
.quote-card {
  position: relative;
  display: grid;
  gap: var(--s-4);
  align-content: start;
  padding: clamp(26px, 3vw, 38px);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  backdrop-filter: saturate(170%) blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: var(--sh-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.quote-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg), var(--glow-soft); }
.quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.6;
  color: rgba(16, 185, 129, 0.22);
  height: 30px;
}
.quote-text { font-size: var(--t-base); color: var(--ink-700); line-height: 2; }
.quote-foot { display: flex; align-items: center; gap: 13px; padding-top: var(--s-2); border-top: 1px solid var(--line-soft); }
.avatar {
  width: 46px; height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--em-400), var(--em-700));
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 8px 20px -8px rgba(5, 150, 105, 0.8);
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 6%; /* square crop lands on the face */
}
.quote-name { font-weight: 700; font-size: var(--t-sm); color: var(--ink-900); line-height: 1.5; }
.quote-role { font-size: var(--t-xs); color: var(--text-muted); }
.stars { display: inline-flex; gap: 3px; color: var(--em-500); }
.stars svg { width: 15px; height: 15px; }

/* --------------------------------------------------------------------------
   17. Accordion (FAQ / details)
   -------------------------------------------------------------------------- */
.accordion { display: grid; gap: 12px; }
.acc-item {
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: saturate(170%) blur(14px);
  backdrop-filter: saturate(170%) blur(14px);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.35s var(--ease);
}
.acc-item[open] {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: var(--sh-md), 0 0 0 4px rgba(16, 185, 129, 0.07);
}
.acc-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px clamp(18px, 2.4vw, 28px);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-base);
  color: var(--ink-800);
  list-style: none;
  transition: color 0.3s var(--ease);
}
.acc-head::-webkit-details-marker { display: none; }
.acc-head:hover { color: var(--em-700); }
.acc-item[open] .acc-head { color: var(--em-800); }
.acc-icon {
  margin-inline-start: auto;
  width: 32px; height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.10);
  color: var(--em-700);
  transition: transform 0.4s var(--ease), background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.acc-icon svg { width: 16px; height: 16px; }
.acc-item[open] .acc-icon {
  transform: rotate(45deg);
  background: linear-gradient(140deg, var(--em-500), var(--em-700));
  color: var(--white);
}
.acc-body {
  padding: 0 clamp(18px, 2.4vw, 28px) 24px;
  font-size: var(--t-sm);
  color: var(--ink-500);
  line-height: 2;
}
.acc-item[open] .acc-body { animation: acc-reveal 0.4s var(--ease); }
@keyframes acc-reveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   18. Blog cards
   -------------------------------------------------------------------------- */
.post-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  backdrop-filter: saturate(170%) blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: var(--sh-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.post-card:hover { transform: translateY(-7px); box-shadow: var(--sh-lg), var(--glow-soft); }
.post-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(150deg, var(--em-700), var(--em-900));
}
.post-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34'%3E%3Cpath d='M34 0H0v34' fill='none' stroke='%23ffffff' stroke-opacity='.12'/%3E%3C/svg%3E");
  background-size: 34px 34px;
}
.post-cover svg {
  position: relative;
  width: clamp(44px, 6vw, 62px);
  color: rgba(255, 255, 255, 0.9);
  transition: transform 0.6s var(--ease);
}
.post-card:hover .post-cover svg { transform: scale(1.12) rotate(-4deg); }

/* Cover artwork — sits above the fallback pattern and fills the frame */
.post-cover img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.post-card:hover .post-cover img { transform: scale(1.05); }
.post-body { display: grid; gap: 12px; align-content: start; padding: clamp(20px, 2.6vw, 28px); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: var(--t-xs); color: var(--text-muted); }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta svg { width: 14px; height: 14px; color: var(--em-600); }
.post-title { font-size: var(--t-lg); line-height: 1.5; }
.post-card a.stretched::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.post-card:focus-within { box-shadow: var(--sh-lg), 0 0 0 3px var(--em-500); }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-chip {
  padding: 10px 22px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-600);
  cursor: pointer;
  min-height: 44px;
  transition: all 0.3s var(--ease);
}
.filter-chip:hover { border-color: rgba(16, 185, 129, 0.45); color: var(--em-700); }
.filter-chip[aria-pressed='true'] {
  background: linear-gradient(135deg, var(--em-600), var(--em-700));
  border-color: transparent;
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 10px 24px -10px rgba(5, 150, 105, 0.85);
}

.is-hidden { display: none !important; }

.empty-state {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
  padding: clamp(40px, 6vw, 72px) var(--s-5);
  border-radius: var(--r-lg);
  border: 1px dashed rgba(4, 55, 42, 0.18);
  background: rgba(255, 255, 255, 0.5);
}
.empty-state svg { width: 52px; height: 52px; color: var(--em-400); }

/* --------------------------------------------------------------------------
   19. Forms
   -------------------------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--s-4);
}
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--ink-700);
  display: flex;
  align-items: center;
  gap: 6px;
}
.field label .req { color: var(--em-600); }
.field .hint { font-size: var(--t-xs); color: var(--text-muted); font-weight: 400; }

.input, .select, .textarea {
  width: 100%;
  padding: 15px 18px;
  min-height: 54px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  /* background-color, not the shorthand: the select keeps its arrow image */
  background-color: rgba(255, 255, 255, 0.85);
  font-size: var(--t-sm);
  color: var(--ink-900);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}
.textarea { min-height: 148px; resize: vertical; line-height: 1.9; }
.input::placeholder, .textarea::placeholder { color: var(--ink-300); }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(4, 55, 42, 0.2); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--em-500);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2334443d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 18px center;
  padding-inline-end: 48px;
  cursor: pointer;
}

.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea {
  border-color: #dc2626;
  background-color: #fef2f2;
}
.field.has-error .input:focus,
.field.has-error .select:focus,
.field.has-error .textarea:focus { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14); }
.error-msg {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: var(--t-xs);
  font-weight: 500;
  color: #b91c1c;
}
.error-msg svg { width: 14px; height: 14px; flex: none; }
.field.has-error .error-msg { display: flex; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: var(--t-sm);
  color: var(--ink-600);
  cursor: pointer;
  line-height: 1.7;
}
.checkbox-row input {
  width: 22px; height: 22px;
  flex: none;
  margin-top: 3px;
  accent-color: var(--em-600);
  cursor: pointer;
}
.checkbox-row.has-error {
  color: #b91c1c;
  background: #fef2f2;
  border-radius: var(--r-xs);
  padding: 10px 12px;
  margin: -10px -12px;
  box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.35);
}
.checkbox-row.has-error input { outline: 2px solid #dc2626; outline-offset: 2px; }

.form-status {
  display: none;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
  font-weight: 500;
  line-height: 1.8;
}
.form-status svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.form-status.is-visible { display: flex; animation: acc-reveal 0.4s var(--ease); }
.form-status--ok { background: var(--em-50); border: 1px solid rgba(16, 185, 129, 0.35); color: var(--em-800); }
.form-status--err { background: #fef2f2; border: 1px solid rgba(220, 38, 38, 0.3); color: #b91c1c; }

/* Loading state on button */
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   20. Contact panel
   -------------------------------------------------------------------------- */
.contact-shell {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: linear-gradient(140deg, var(--em-900), var(--em-800) 48%, var(--em-950));
  box-shadow: var(--sh-xl);
}
.contact-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(34rem 24rem at 88% 6%, rgba(52, 211, 153, 0.32), transparent 62%),
    radial-gradient(28rem 22rem at 6% 96%, rgba(16, 185, 129, 0.24), transparent 62%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='52'%3E%3Cpath d='M52 0H0v52' fill='none' stroke='%23ffffff' stroke-opacity='.07'/%3E%3C/svg%3E");
  background-size: auto, auto, 52px 52px;
  pointer-events: none;
}
.contact-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 4vw, 60px);
  align-items: start;
}
@media (max-width: 900px) { .contact-inner { grid-template-columns: 1fr; } }

.contact-aside { display: grid; gap: var(--s-5); align-content: start; color: rgba(255, 255, 255, 0.86); }
.contact-aside h2, .contact-aside h3 { color: var(--white); }
.contact-aside .eyebrow {
  color: var(--em-200);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.24);
  justify-self: start;
}
.contact-aside .eyebrow::before { background: var(--em-300); box-shadow: 0 0 0 3px rgba(110, 231, 183, 0.25); }

.contact-list { display: grid; gap: 16px; }
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
a.contact-row:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateX(-4px);
}
.contact-row .ico {
  width: 42px; height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--em-200);
}
.contact-row .ico svg { width: 20px; height: 20px; }
.contact-row .txt { display: grid; gap: 3px; line-height: 1.6; min-width: 0; }
.contact-row .k { font-size: var(--t-xs); color: rgba(255, 255, 255, 0.6); }
.contact-row .v { font-size: var(--t-sm); font-weight: 700; color: var(--white); word-break: break-word; }

.form-panel {
  position: relative;
  padding: clamp(24px, 3.2vw, 40px);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--sh-lg);
  display: grid;
  gap: var(--s-5);
}

/* --------------------------------------------------------------------------
   21. Map placeholder
   -------------------------------------------------------------------------- */
.map-frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  min-height: 300px;
  max-width: 100%;
  background: linear-gradient(150deg, var(--em-50), #ffffff 55%, var(--em-100));
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
  display: grid;
  place-items: center;
  padding: 16px;
}
/* زیر ~۷۰۰px، `min-height` از طریق aspect-ratio به یک min-width معادل
   ۷۰۰px ترجمه می‌شد (۳۰۰ × ۲۱⁄۹) و کادر نقشه از عرض صفحه بیرون می‌زد.
   با برداشتن نسبت‌تصویر، ارتفاع از محتوا/min-height می‌آید و عرض عادی است. */
@media (max-width: 760px) {
  .map-frame {
    aspect-ratio: auto;
    min-height: 320px;
  }
}
.map-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M64 0H0v64' fill='none' stroke='%23047857' stroke-opacity='.14'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M16 0H0v16' fill='none' stroke='%23047857' stroke-opacity='.06'/%3E%3C/svg%3E");
  background-size: 64px 64px, 16px 16px;
}
.map-pin {
  position: relative;
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  max-width: 100%;
  padding: clamp(18px, 4vw, 24px) clamp(18px, 5vw, 32px);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--sh-lg);
}
.map-pin .pin-ico {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--em-500), var(--em-700));
  color: var(--white);
  box-shadow: 0 10px 26px -8px rgba(5, 150, 105, 0.9);
  animation: pin-pulse 2.4s var(--ease-in-out) infinite;
}
.map-pin .pin-ico svg { width: 26px; height: 26px; }
@keyframes pin-pulse {
  0%, 100% { box-shadow: 0 10px 26px -8px rgba(5, 150, 105, 0.9), 0 0 0 0 rgba(16, 185, 129, 0.45); }
  70%      { box-shadow: 0 10px 26px -8px rgba(5, 150, 105, 0.9), 0 0 0 22px rgba(16, 185, 129, 0); }
}

/* --------------------------------------------------------------------------
   22. Timeline
   -------------------------------------------------------------------------- */
.timeline { position: relative; display: grid; gap: clamp(20px, 3vw, 34px); }
.timeline::before {
  content: '';
  position: absolute;
  inset-block: 12px;
  inset-inline-start: 21px;
  width: 2px;
  background: linear-gradient(var(--em-400), rgba(16, 185, 129, 0.08));
  border-radius: var(--r-full);
}
.tl-item {
  position: relative;
  display: grid;
  gap: 8px;
  padding-inline-start: 62px;
}
.tl-dot {
  position: absolute;
  inset-inline-start: 8px;
  top: 4px;
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--em-500);
  color: var(--em-700);
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.12);
}
.tl-dot svg { width: 13px; height: 13px; }
.tl-year {
  font-family: var(--font-display);
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--em-700);
}
.tl-title { font-size: var(--t-lg); }
.tl-text { font-size: var(--t-sm); color: var(--ink-500); line-height: 1.9; }

/* --------------------------------------------------------------------------
   23. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  background: linear-gradient(160deg, var(--em-950), var(--em-900) 55%, #010f0b);
  color: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40rem 24rem at 82% 0%, rgba(16, 185, 129, 0.22), transparent 62%),
    radial-gradient(30rem 20rem at 5% 100%, rgba(52, 211, 153, 0.14), transparent 62%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M56 0H0v56' fill='none' stroke='%23ffffff' stroke-opacity='.05'/%3E%3C/svg%3E");
  background-size: auto, auto, 56px 56px;
  pointer-events: none;
}
.footer-main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(48px, 6vw, 80px);
}
@media (max-width: 960px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }

.footer-brand { display: grid; gap: var(--s-4); align-content: start; }
.footer-brand .brand-name { color: var(--white); font-size: 1.2rem; }
.footer-brand .brand-sub { color: rgba(255, 255, 255, 0.55); }
.footer-about { font-size: var(--t-sm); line-height: 2; color: rgba(255, 255, 255, 0.62); max-width: 42ch; }

.footer-col h4 {
  color: var(--white);
  font-size: var(--t-base);
  margin-bottom: 6px;
}
.footer-links { display: grid; gap: 12px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--t-sm);
  color: rgba(255, 255, 255, 0.66);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.footer-links a::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--em-400);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.footer-links a:hover { color: var(--white); transform: translateX(-4px); }
.footer-links a:hover::before { opacity: 1; }

.social-row { display: flex; gap: 10px; }
.social-btn {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.35s var(--ease);
}
.social-btn svg { width: 19px; height: 19px; }
.social-btn:hover {
  background: linear-gradient(140deg, var(--em-500), var(--em-700));
  border-color: transparent;
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 12px 26px -10px rgba(16, 185, 129, 0.9);
}

.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: var(--t-xs);
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom a:hover { color: var(--white); }
/* دکمه شناور «بازگشت به بالا» روی موبایل دقیقاً روی این نوار می‌افتاد */
@media (max-width: 720px) {
  .footer-bottom {
    justify-content: center;
    text-align: center;
    padding-bottom: calc(50px + 22px + 18px);
  }
}
.footer-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-note svg { width: 14px; height: 14px; color: var(--em-300); flex: none; }

/* --------------------------------------------------------------------------
   24. Floating actions
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  inset-inline-end: 22px;
  bottom: 22px;
  z-index: 90;
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  color: var(--em-700);
  cursor: pointer;
  box-shadow: var(--sh-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all 0.4s var(--ease);
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover {
  background: linear-gradient(140deg, var(--em-500), var(--em-700));
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--sh-lg), var(--glow-soft);
}

/* Scroll progress bar */
.progress-bar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: 3px;
  z-index: 200;
  background: linear-gradient(90deg, var(--em-700), var(--em-400));
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.1s linear;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   24b. Article prose
   -------------------------------------------------------------------------- */
.prose { max-width: 72ch; margin-inline: auto; }
.prose > * + * { margin-top: var(--s-5); }
.prose p { font-size: var(--t-base); line-height: 2.15; color: var(--ink-700); }
.prose h2 {
  font-size: var(--t-2xl);
  margin-top: clamp(36px, 5vw, 56px);
  padding-inline-start: 18px;
  border-inline-start: 4px solid var(--em-500);
  border-radius: 2px;
}
.prose h3 { font-size: var(--t-xl); margin-top: clamp(28px, 4vw, 40px); }
.prose ul, .prose ol { display: grid; gap: 12px; padding-inline-start: 4px; }
.prose li {
  position: relative;
  padding-inline-start: 30px;
  font-size: var(--t-base);
  line-height: 2.05;
  color: var(--ink-700);
}
.prose ul li::before {
  content: '';
  position: absolute;
  inset-inline-start: 6px;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--em-400), var(--em-700));
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}
.prose ol { counter-reset: prose-ol; }
.prose ol li { padding-inline-start: 42px; }
.prose ol li::before {
  counter-increment: prose-ol;
  content: counter(prose-ol, persian);
  position: absolute;
  inset-inline-start: 0;
  top: 8px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--em-500), var(--em-700));
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 16px -6px rgba(5, 150, 105, 0.8);
}
.prose strong { font-weight: 800; color: var(--ink-900); }
.prose a:not(.btn) {
  color: var(--em-700);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: color 0.25s var(--ease);
}
.prose a:not(.btn):hover { color: var(--em-500); }

.callout {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(20px, 2.6vw, 28px);
  border-radius: var(--r-md);
  background: linear-gradient(140deg, rgba(16, 185, 129, 0.12), rgba(255, 255, 255, 0.6));
  border: 1px solid rgba(16, 185, 129, 0.28);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--sh-sm);
}
.callout .ico-tile { width: 46px; height: 46px; border-radius: 14px; }
.callout .ico-tile svg { width: 22px; height: 22px; }
.callout p { font-size: var(--t-sm); line-height: 2; margin: 0; }
.callout strong { display: block; margin-bottom: 4px; color: var(--em-800); }

.article-head {
  display: grid;
  gap: var(--s-4);
  justify-items: center;
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
}
.article-hero-art {
  position: relative;
  margin-top: clamp(28px, 4vw, 48px);
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  min-height: 220px;
  max-width: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--em-700), var(--em-900));
  box-shadow: var(--sh-xl);
}
/* همان تله‌ی `.map-frame`: ۲۲۰px × ۲۱⁄۹ یک min-width معادل ۵۱۳px می‌ساخت. */
@media (max-width: 620px) {
  .article-hero-art {
    aspect-ratio: auto;
    min-height: 200px;
  }
}
.article-hero-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(24rem 16rem at 70% 10%, rgba(110, 231, 183, 0.35), transparent 62%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='42'%3E%3Cpath d='M42 0H0v42' fill='none' stroke='%23ffffff' stroke-opacity='.12'/%3E%3C/svg%3E");
  background-size: auto, 42px 42px;
}
.article-hero-art svg { position: relative; width: clamp(58px, 8vw, 88px); color: rgba(255, 255, 255, 0.92); }
.article-hero-art img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: var(--s-5);
  margin-top: var(--s-6);
  border-top: 1px solid var(--line);
}
.share-row .label { font-size: var(--t-sm); font-weight: 700; color: var(--ink-700); }
.share-btn {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-600);
  transition: all 0.3s var(--ease);
}
.share-btn svg { width: 18px; height: 18px; }
.share-btn:hover {
  background: linear-gradient(140deg, var(--em-500), var(--em-700));
  border-color: transparent;
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 12px 26px -10px rgba(16, 185, 129, 0.85);
}

.author-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
  margin-top: var(--s-6);
  border-radius: var(--r-lg);
}
.author-box .avatar { width: 62px; height: 62px; font-size: 1.2rem; }
.author-box .txt { display: grid; gap: 4px; min-width: 220px; flex: 1; }

/* --------------------------------------------------------------------------
   25. Reveal animations
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.75s var(--ease),
    transform 0.75s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal='right'] { transform: translateX(30px); }
[data-reveal='left']  { transform: translateX(-30px); }
[data-reveal='zoom']  { transform: scale(0.94); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* روی صفحه باریک، ورود افقی ۳۰px نسبت به عرض صفحه زیاد است و لبه محتوا را
   لحظه‌ای می‌بُرد؛ همان ورود عمودی استفاده می‌شود. */
@media (max-width: 720px) {
  [data-reveal='right'],
  [data-reveal='left'] { transform: translateY(26px); }
}

/* --------------------------------------------------------------------------
   26. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none; }
  .chip, .hero-orb, .hero-rings i { animation: none; }
}

/* --------------------------------------------------------------------------
   27. Print
   -------------------------------------------------------------------------- */
@media print {
  body::before, body::after,
  .site-header, .to-top, .progress-bar, .band-section, .nav-drawer { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .glass, .quote-card { box-shadow: none; border: 1px solid #ccc; }
}
