@charset "utf-8";
@import url("../fonts/fonts.css");

/* ===========================================================
   دفتر وکالت مهسا جهاد — Design System (نسخه‌ی حرفه‌ای)
   فلسفه‌ی حرکت: آرام، باوقار، هدفمند. بدون افکت‌های پرزرق‌وبرق.
   پالت: سرمه‌ای (پایه) + طلایی (لهجه، با اقتصاد کامل)
   تمام منابع لوکال — بدون CDN
   =========================================================== */

/* ----------------------------------------------------------
   ۱. توکن‌های طراحی
   ---------------------------------------------------------- */
:root {
  /* — رنگ پایه (سرمه‌ای) — */
  --navy-950: #081a2e;
  --navy-900: #0a2138;
  --navy-800: #0f2d49;
  --navy-700: #163a5c;
  --navy-600: #20496e;
  --navy-500: #335f86;
  --navy-300: #7d96ad;

  /* — طلایی (لهجه) — */
  --gold-700: #8a6a2c;
  --gold-600: #a6843c;
  --gold-500: #bf9a4c;
  --gold-400: #d2b270;
  --gold-200: #ecddbd;

  /* — خنثی‌های گرم — */
  --paper:     #fbfaf7;  /* پس‌زمینه‌ی اصلی */
  --paper-2:   #f4f1ea;  /* بخش‌های متناوب */
  --surface:   #ffffff;
  --line:      #e7e1d6;  /* خطوط و حاشیه‌ها */
  --line-soft: #f0ebe1;

  --ink:       #14202e;  /* متن اصلی */
  --ink-2:     #3a4655;  /* متن ثانویه */
  --muted:     #66707d;  /* متن کم‌رنگ */
  --muted-2:   #93999f;  /* بسیار کم‌رنگ */

  /* — معنایی — */
  --bg: var(--paper);
  --text: var(--ink);
  --accent: var(--gold-600);

  /* — گرادیان‌های منضبط — */
  --grad-navy: linear-gradient(165deg, #0f2d49 0%, #0a2138 100%);
  --grad-hero: linear-gradient(160deg, #0c2741 0%, #0a2138 60%, #0f2d49 100%);

  /* — تایپوگرافی (مقیاس مدولار) — */
  --font: "Vazirmatn", system-ui, "Segoe UI", Tahoma, sans-serif;
  --fs-display: clamp(2.35rem, 1.55rem + 3.4vw, 3.85rem);
  --fs-h1:      clamp(1.95rem, 1.45rem + 2.1vw, 2.9rem);
  --fs-h2:      clamp(1.6rem, 1.28rem + 1.4vw, 2.2rem);
  --fs-h3:      clamp(1.18rem, 1.08rem + 0.42vw, 1.4rem);
  --fs-lead:    clamp(1.08rem, 1.02rem + 0.3vw, 1.22rem);
  --fs-body:    1.0625rem;   /* 17px */
  --fs-sm:      0.9375rem;   /* 15px */
  --fs-xs:      0.8125rem;   /* 13px */
  --fs-eyebrow: 0.8rem;

  --lh-tight: 1.28;
  --lh-snug:  1.5;
  --lh-body:  1.92;

  /* — فاصله‌گذاری (مقیاس ثابت) — */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.75rem;
  --sp-8: 3.5rem;
  --sp-9: 4.5rem;

  --container: 1180px;
  --container-narrow: 760px;
  --gutter: clamp(1.25rem, 0.6rem + 2.6vw, 2.5rem);
  --section-y: clamp(4rem, 2.4rem + 6vw, 7.5rem);

  /* — شعاع — */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* — سایه‌ها (نرم و لایه‌ای) — */
  --sh-1: 0 1px 2px rgba(10, 33, 56, 0.05), 0 1px 1px rgba(10, 33, 56, 0.04);
  --sh-2: 0 4px 12px -2px rgba(10, 33, 56, 0.08), 0 2px 4px -2px rgba(10, 33, 56, 0.05);
  --sh-3: 0 12px 28px -8px rgba(10, 33, 56, 0.14), 0 4px 10px -4px rgba(10, 33, 56, 0.08);
  --sh-4: 0 28px 60px -22px rgba(10, 33, 56, 0.28);

  /* — حرکت — */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.16s;
  --t: 0.28s;
  --t-slow: 0.5s;
  --t-reveal: 0.7s;

  --header-h: 80px;
  --header-h-sm: 66px;
}

/* ----------------------------------------------------------
   ۲. ریست
   ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-sm) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, picture, video { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-200); color: var(--navy-900); }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: var(--lh-tight);
  color: var(--navy-900);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
p { color: var(--ink-2); }
strong { font-weight: 700; color: var(--navy-800); }

/* ----------------------------------------------------------
   ۳. ابزارهای چیدمان
   ---------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--paper-2); }
.section--navy { background: var(--grad-navy); color: var(--paper); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: rgba(251, 250, 247, 0.74); }

.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; }

/* سرتیتر بخش‌ها */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: 0.08em;
  color: var(--gold-700); margin-bottom: var(--sp-4);
}
.eyebrow::before { content: ""; width: 24px; height: 1.5px; background: var(--gold-500); }
.section--navy .eyebrow { color: var(--gold-400); }
.section--navy .eyebrow::before { background: var(--gold-400); }

.section-head { max-width: 620px; margin-bottom: var(--sp-8); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-title { font-size: var(--fs-h2); margin-bottom: var(--sp-4); }
.section-sub { font-size: var(--fs-lead); line-height: var(--lh-snug); color: var(--muted); }
.section--navy .section-sub { color: rgba(251,250,247,0.72); }

/* ----------------------------------------------------------
   ۴. دکمه‌ها  (تعامل ظریف: تغییر رنگ + بالاآمدن کوتاه)
   ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--r-sm);
  font-weight: 700; font-size: var(--fs-sm); line-height: 1;
  border: 1.5px solid transparent;
  transition: background var(--t) var(--ease), color var(--t) var(--ease),
              border-color var(--t) var(--ease), transform var(--t) var(--ease),
              box-shadow var(--t) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn:active { transform: translateY(1px); }
/* برچسب دکمه: آیکون و متن همیشه در یک خط */
.btn__label { display: inline-flex; align-items: center; gap: 0.5rem; }

.btn--primary { background: var(--navy-800); color: var(--paper); }
.btn--primary:hover { background: var(--navy-900); transform: translateY(-2px); box-shadow: var(--sh-3); }

.btn--gold { background: var(--gold-600); color: var(--navy-950); }
.btn--gold:hover { background: var(--gold-500); transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(166,132,60,0.6); }

.btn--outline { background: transparent; color: var(--navy-800); border-color: var(--line); }
.btn--outline:hover { border-color: var(--navy-800); background: var(--navy-800); color: var(--paper); transform: translateY(-2px); }

.btn--ghost-light { background: rgba(255,255,255,0.06); color: var(--paper); border-color: rgba(255,255,255,0.22); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.4); transform: translateY(-2px); }

.btn--block { width: 100%; }
.btn--lg { padding: 0.95rem 1.9rem; font-size: var(--fs-body); }

/* لینک با زیرخط ظریف */
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 700; font-size: var(--fs-sm); color: var(--navy-700);
  transition: color var(--t) var(--ease), gap var(--t) var(--ease);
}
.link-arrow svg { width: 1.05em; height: 1.05em; transition: transform var(--t) var(--ease); }
.link-arrow:hover { color: var(--gold-700); gap: 0.65rem; }
.link-arrow:hover svg { transform: translateX(-3px); }

/* ----------------------------------------------------------
   ۵. هدر / ناوبری
   ---------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: height var(--t) var(--ease), background var(--t) var(--ease),
              box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.site-header__inner { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-header.is-scrolled {
  height: var(--header-h-sm);
  background: rgba(251, 250, 247, 0.9);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(10,33,56,0.02);
}

/* حالت اولیه: هدر روی هیروی تیره می‌نشیند → متن روشن */
.site-header .brand__name { color: #fff; }
.site-header .brand__role { color: var(--gold-400); }
.site-header .brand__mark { border: 1px solid rgba(255,255,255,0.14); }
.site-header .nav__link { color: rgba(255,255,255,0.84); }
.site-header .nav__link::after { background: var(--gold-400); }
.site-header .nav__link:hover, .site-header .nav__link.is-active { color: #fff; }
.site-header .nav-toggle { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); }
.site-header .nav-toggle span,
.site-header .nav-toggle span::before,
.site-header .nav-toggle span::after { background: #fff; }

/* پس از اسکرول: پس‌زمینه روشن → متن تیره */
.site-header.is-scrolled .brand__name { color: var(--navy-900); }
.site-header.is-scrolled .brand__role { color: var(--gold-700); }
.site-header.is-scrolled .brand__mark { border-color: transparent; }
.site-header.is-scrolled .nav__link { color: var(--ink-2); }
.site-header.is-scrolled .nav__link::after { background: var(--gold-500); }
.site-header.is-scrolled .nav__link:hover, .site-header.is-scrolled .nav__link.is-active { color: var(--navy-900); }
.site-header.is-scrolled .nav-toggle { background: var(--surface); border-color: var(--line); }
.site-header.is-scrolled .nav-toggle span,
.site-header.is-scrolled .nav-toggle span::before,
.site-header.is-scrolled .nav-toggle span::after { background: var(--navy-800); }

/* دکمه‌ی «درخواست مشاوره» داخل منو فقط در موبایل دیده می‌شود (جلوگیری از دکمه‌ی تکراری در دسکتاپ) */
.nav > .btn { display: none; }

/* لوگو */
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand__mark {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center; border-radius: 11px;
  background: var(--grad-navy); color: var(--gold-400);
  transition: width var(--t) var(--ease), height var(--t) var(--ease);
}
.brand__mark svg { width: 24px; height: 24px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.3; }
.brand__name { font-weight: 800; font-size: 1.1rem; color: var(--navy-900); letter-spacing: -0.01em; }
.brand__role { font-size: 0.7rem; font-weight: 600; color: var(--gold-700); letter-spacing: 0.01em; }
.is-scrolled .brand__mark { width: 38px; height: 38px; }

/* منو */
.nav { display: flex; align-items: center; gap: 0.15rem; }
.nav__link {
  position: relative; padding: 0.5rem 0.8rem;
  font-weight: 600; font-size: var(--fs-sm); color: var(--ink-2);
  transition: color var(--t) var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; bottom: 0.1rem; right: 0.8rem; left: 0.8rem;
  height: 1.5px; background: var(--gold-500);
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--t) var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--navy-900); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 0.7rem; }

/* همبرگر */
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 20px; height: 2px; background: var(--navy-800); border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform var(--t) var(--ease), opacity var(--t-fast);
}
.nav-toggle span::before { transform: translate(-50%, -7px); }
.nav-toggle span::after  { transform: translate(-50%, 7px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translate(-50%, 0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translate(-50%, 0) rotate(-45deg); }

/* ----------------------------------------------------------
   ۶. هیرو
   ---------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--grad-hero); color: var(--paper);
  padding-top: calc(var(--header-h) + clamp(2.5rem, 1.5rem + 5vw, 5rem));
  padding-bottom: clamp(3.5rem, 2rem + 6vw, 6.5rem);
}
/* پس‌زمینه‌ی استاتیک و ظریف: شبکه‌ی خطی محو */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 70% 30%, #000 30%, transparent 80%);
}
/* درخشش طلایی ثابت و بسیار ملایم گوشه */
.hero::after {
  content: ""; position: absolute; top: -20%; left: -10%; width: 50%; height: 80%;
  background: radial-gradient(circle, rgba(191,154,76,0.16), transparent 65%);
  z-index: 0; pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.9rem; border-radius: var(--r-pill);
  background: rgba(191,154,76,0.12); border: 1px solid rgba(191,154,76,0.3);
  color: var(--gold-200); font-size: var(--fs-xs); font-weight: 600;
  margin-bottom: var(--sp-5);
}
.hero__badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-400); }
.hero h1 { color: #fff; font-size: var(--fs-display); line-height: 1.18; margin-bottom: var(--sp-5); }
.hero h1 .accent { color: var(--gold-400); }
.hero__lead { font-size: var(--fs-lead); line-height: var(--lh-snug); color: rgba(251,250,247,0.8); max-width: 48ch; margin-bottom: var(--sp-6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: var(--sp-7); }

/* خط اعتبار (نشانه‌های اعتماد، نه عدد تکراری) */
.hero__proof { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,0.1); }
.hero__proof li { display: flex; align-items: center; gap: 0.5rem; font-size: var(--fs-sm); color: rgba(251,250,247,0.78); }
.hero__proof svg { width: 17px; height: 17px; color: var(--gold-400); flex: none; }

/* پرتره */
.hero__figure { position: relative; justify-self: center; width: min(470px, 90vw); }
.hero__portrait {
  position: relative; aspect-ratio: 4/3; border-radius: var(--r-xl); overflow: hidden;
  background: var(--navy-900); box-shadow: var(--sh-4); border: 1px solid rgba(255,255,255,0.08);
}
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__figure::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border: 1px solid rgba(191,154,76,0.45); border-radius: var(--r-xl); z-index: -1;
}
.hero__cred {
  position: absolute; right: -16px; bottom: 26px;
  display: flex; align-items: center; gap: 0.65rem;
  background: var(--surface); color: var(--navy-900);
  padding: 0.7rem 0.95rem; border-radius: var(--r); box-shadow: var(--sh-4);
}
.hero__cred .ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--gold-200); color: var(--gold-700); }
.hero__cred .ic svg { width: 18px; height: 18px; }
.hero__cred b { display: block; font-size: 0.85rem; font-weight: 700; }
.hero__cred span { font-size: var(--fs-xs); color: var(--muted); }

/* ----------------------------------------------------------
   ۷. شبکه و کارت‌ها
   ---------------------------------------------------------- */
.grid { display: grid; gap: clamp(1rem, 0.6rem + 1.4vw, 1.6rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 1.1rem + 1vw, 2rem);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--line); }

/* کارت تخصص (کل کاشی لینک است) */
.service-card { display: flex; flex-direction: column; height: 100%; color: inherit; }
a.service-card { text-decoration: none; }
.service-card__icon {
  width: 54px; height: 54px; display: grid; place-items: center;
  border-radius: var(--r); background: var(--paper-2); color: var(--navy-700);
  margin-bottom: var(--sp-5);
  transition: background var(--t) var(--ease), color var(--t) var(--ease), transform var(--t) var(--ease);
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-3); transition: color var(--t) var(--ease); }
.service-card p { color: var(--muted); font-size: var(--fs-sm); line-height: var(--lh-snug); margin-bottom: var(--sp-5); flex: 1; }
.service-card__more { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; font-size: var(--fs-sm); color: var(--navy-700); transition: color var(--t) var(--ease), gap var(--t) var(--ease); }
.service-card__more svg { width: 1.05em; height: 1.05em; transition: transform var(--t) var(--ease); }
/* هاور: کل کاشی واکنش هماهنگ نشان می‌دهد */
.service-card:hover { border-color: var(--gold-400); }
.service-card:hover .service-card__icon { background: var(--navy-800); color: var(--gold-400); transform: translateY(-2px); }
.service-card:hover h3 { color: var(--gold-700); }
.service-card:hover .service-card__more { color: var(--gold-700); gap: 0.65rem; }
.service-card:hover .service-card__more svg { transform: translateX(-4px); }

/* بخش چشم‌نواز «پیگیری منظم پرونده» */
.follow-up {
  margin-top: clamp(1.6rem, 1rem + 2vw, 2.6rem);
  display: grid; grid-template-columns: auto 1fr; align-items: center;
  gap: clamp(1.2rem, 0.8rem + 2vw, 2.4rem);
  background: var(--grad-navy); color: var(--paper);
  border: 1px solid rgba(191,154,76,0.28); border-radius: var(--r-xl);
  padding: clamp(1.6rem, 1.1rem + 2vw, 2.6rem);
  position: relative; overflow: hidden;
}
.follow-up::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 88% 12%, rgba(191,154,76,0.2), transparent 55%);
}
.follow-up__icon {
  position: relative; z-index: 1; flex: none;
  width: clamp(64px, 8vw, 86px); height: clamp(64px, 8vw, 86px);
  border-radius: var(--r-lg); display: grid; place-items: center;
  background: rgba(191,154,76,0.14); border: 1px solid rgba(191,154,76,0.32);
  color: var(--gold-400);
}
.follow-up__icon svg { width: 46%; height: 46%; }
.follow-up:hover .follow-up__icon svg { animation: spin 0.9s var(--ease); }
.follow-up__body { position: relative; z-index: 1; }
.follow-up__tag { display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; color: var(--gold-400); margin-bottom: var(--sp-3); }
.follow-up h3 { color: #fff; font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem); line-height: 1.35; margin-bottom: var(--sp-3); }
.follow-up p { color: rgba(251,250,247,0.8); line-height: var(--lh-snug); max-width: 62ch; margin-bottom: var(--sp-4); }
.follow-up__chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.follow-up__chips li { display: inline-flex; align-items: center; gap: 0.45rem; font-size: var(--fs-sm); font-weight: 600; color: var(--gold-200); background: rgba(191,154,76,0.12); border: 1px solid rgba(191,154,76,0.28); padding: 0.4rem 0.85rem; border-radius: var(--r-pill); }
.follow-up__chips li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-400); flex: none; }
@media (max-width: 680px) {
  .follow-up { grid-template-columns: 1fr; text-align: center; }
  .follow-up__icon { margin-inline: auto; }
  .follow-up p { margin-inline: auto; }
  .follow-up__chips { justify-content: center; }
}

/* ----------------------------------------------------------
   ۸. درباره (خلاصه)
   ---------------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--r-lg); box-shadow: var(--sh-3); width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center; }
.about__media::after {
  content: ""; position: absolute; inset: 16px -16px -16px 16px;
  border: 1px solid var(--gold-400); border-radius: var(--r-lg); z-index: -1;
}
.about__badge {
  position: absolute; right: -14px; top: 24px;
  background: var(--grad-navy); color: var(--gold-400);
  border-radius: var(--r); padding: 0.85rem 1rem; text-align: center; box-shadow: var(--sh-4);
}
.about__badge b { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1; }
.about__badge span { font-size: var(--fs-xs); color: rgba(251,250,247,0.78); }

.feature-list { display: grid; gap: var(--sp-4); margin: var(--sp-5) 0; }
.feature-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.feature-list .tick { flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; margin-top: 4px; background: var(--gold-200); color: var(--gold-700); }
.feature-list .tick svg { width: 14px; height: 14px; }
.feature-list b { display: block; color: var(--navy-900); font-size: var(--fs-body); line-height: 1.5; }
.feature-list span.txt { font-size: var(--fs-sm); color: var(--muted); line-height: var(--lh-snug); }

/* ----------------------------------------------------------
   ۹. آمار
   ---------------------------------------------------------- */
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.stat-block { text-align: center; position: relative; }
.stat-block:not(:last-child)::after { content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; width: 1px; background: rgba(255,255,255,0.12); }
.stat-block .num { font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.1rem); font-weight: 800; color: var(--gold-400); line-height: 1; letter-spacing: -0.02em; }
.stat-block .num .suffix { font-size: 0.5em; color: var(--gold-200); margin-inline-start: 0.12em; font-weight: 700; }
.stat-block .label { margin-top: var(--sp-3); color: rgba(251,250,247,0.74); font-size: var(--fs-sm); }

/* ----------------------------------------------------------
   ۱۰. روند همکاری
   ---------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 0.6rem + 1.4vw, 1.6rem); }
.step {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 1.1rem + 1vw, 2rem);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--sh-3); border-color: var(--gold-400); }
/* شماره‌ی واترمارک گوشه */
.step__index {
  position: absolute; top: 0.4rem; left: 1.1rem; z-index: 0;
  font-size: 3.4rem; font-weight: 800; line-height: 1; color: var(--paper-2);
  letter-spacing: -0.03em; transition: color var(--t) var(--ease);
}
.step:hover .step__index { color: var(--gold-200); }
.step__badge {
  position: relative; z-index: 1;
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-navy); color: var(--gold-400); margin-bottom: var(--sp-5);
  box-shadow: var(--sh-2);
  transition: transform var(--t) var(--ease);
}
.step:hover .step__badge { transform: translateY(-2px); }
.step__badge svg { width: 26px; height: 26px; }
.step h3 { position: relative; z-index: 1; font-size: var(--fs-h3); margin-bottom: var(--sp-3); }
.step p { position: relative; z-index: 1; font-size: var(--fs-sm); color: var(--muted); line-height: var(--lh-snug); }

/* ----------------------------------------------------------
   ۱۱. نظرات موکلان
   ---------------------------------------------------------- */
.testi__viewport { overflow: hidden; }
.testi__track { display: flex; transition: transform var(--t-slow) var(--ease); }
.testi__slide { min-width: 100%; padding-inline: clamp(0.2rem, 1vw, 0.6rem); }
.testi-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); box-shadow: var(--sh-1);
  max-width: 820px; margin-inline: auto;
}
.testi-card .mark { font-size: 2.6rem; line-height: 1; color: var(--gold-400); font-weight: 800; margin-bottom: var(--sp-3); }
.testi-card p { font-size: clamp(1.12rem, 1rem + 0.5vw, 1.4rem); line-height: 1.65; color: var(--navy-800); margin-bottom: var(--sp-5); font-weight: 500; }
.testi-card__person { display: flex; align-items: center; gap: 0.8rem; }
.testi-card__avatar { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--navy-700); }
.testi-card__person b { display: block; color: var(--navy-900); }
.testi-card__person span { font-size: var(--fs-sm); color: var(--muted); }
.testi__controls { display: flex; justify-content: center; align-items: center; gap: 1.2rem; margin-top: var(--sp-6); }
.testi__dots { display: flex; gap: 0.5rem; }
.testi__dot { width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--line); transition: width var(--t) var(--ease), background var(--t) var(--ease); }
.testi__dot.is-active { background: var(--gold-600); width: 24px; }
.testi__btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--navy-700); transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease); }
.testi__btn:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.testi__btn svg { width: 19px; height: 19px; }

/* ----------------------------------------------------------
   ۱۲. آکوردئون / سوالات متداول
   ---------------------------------------------------------- */
.accordion { display: grid; gap: 0.7rem; }
.acc-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color var(--t) var(--ease); }
.acc-item.is-open { border-color: var(--gold-400); }
.acc-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.4rem; text-align: right; font-weight: 700; color: var(--navy-900); font-size: 1.02rem; line-height: 1.5; }
.acc-trigger .acc-icon { flex: none; width: 26px; height: 26px; position: relative; color: var(--gold-700); }
.acc-trigger .acc-icon::before, .acc-trigger .acc-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; border-radius: 2px;
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}
.acc-trigger .acc-icon::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.acc-trigger .acc-icon::after  { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.acc-item.is-open .acc-icon::after { transform: translate(-50%, -50%) scaleY(0); opacity: 0; }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height var(--t-slow) var(--ease); }
.acc-panel__inner { padding: 0 1.4rem 1.3rem; color: var(--muted); line-height: var(--lh-body); }

/* ----------------------------------------------------------
   ۱۳. فرم تماس (یک فرم واحد)
   ---------------------------------------------------------- */
.contact__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.5rem, 1rem + 2.5vw, 3rem); align-items: stretch; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); box-shadow: var(--sh-2); }

.field { margin-bottom: var(--sp-4); }
.field label { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--navy-800); margin-bottom: 0.5rem; }
.field label .req { color: #b3322a; margin-inline-start: 2px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.82rem 1rem; border: 1.5px solid var(--line);
  border-radius: var(--r-sm); background: var(--paper); color: var(--ink);
  font-size: var(--fs-sm);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), background var(--t) var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; line-height: var(--lh-body); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field 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='%2366707d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 1rem center; padding-left: 2.6rem; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold-500); background: var(--surface); box-shadow: 0 0 0 3px rgba(191,154,76,0.16); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #b3322a; box-shadow: 0 0 0 3px rgba(179,50,42,0.1); }
.field__error { display: none; font-size: var(--fs-xs); color: #b3322a; margin-top: 0.35rem; }
.field.has-error .field__error { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-status { display: none; padding: 0.85rem 1.1rem; border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 600; margin-top: var(--sp-4); align-items: center; gap: 0.55rem; }
.form-status.is-visible { display: flex; }
.form-status--ok { background: #eef5ef; color: #1f5b42; border: 1px solid #cfe3d4; }
.form-status--err { background: #fbeeed; color: #9c2820; border: 1px solid #f0d2cf; }
.form-status svg { width: 18px; height: 18px; flex: none; }

/* اسپینر ارسال */
.btn.is-loading { pointer-events: none; opacity: 0.9; position: relative; }
.btn.is-loading .btn__label { visibility: hidden; }
.btn .spinner { display: none; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(0,0,0,0.2); border-top-color: currentColor; animation: spin 0.7s linear infinite; }
.btn--gold .spinner, .btn--primary .spinner { border-color: rgba(255,255,255,0.3); border-top-color: #fff; }
.btn--gold .spinner { border-color: rgba(10,33,56,0.25); border-top-color: var(--navy-950); }
.btn.is-loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* پنل اطلاعات تماس */
.contact-info { background: var(--grad-navy); color: var(--paper); border-radius: var(--r-lg); padding: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); display: flex; flex-direction: column; }
.contact-info h3 { color: #fff; font-size: var(--fs-h3); margin-bottom: 0.5rem; }
.contact-info > p { color: rgba(251,250,247,0.7); font-size: var(--fs-sm); margin-bottom: var(--sp-5); line-height: var(--lh-snug); }
.contact-line { display: flex; align-items: flex-start; gap: 0.8rem; padding: 0.7rem 0; }
.contact-line .ic { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(191,154,76,0.14); color: var(--gold-400); }
.contact-line .ic svg { width: 19px; height: 19px; }
.contact-line b { color: #fff; display: block; font-size: var(--fs-sm); margin-bottom: 1px; }
.contact-line span, .contact-line a { color: rgba(251,250,247,0.74); font-size: var(--fs-sm); transition: color var(--t) var(--ease); }
.contact-line a:hover { color: var(--gold-400); }
.contact-hours { margin-top: auto; padding-top: var(--sp-5); }
.contact-hours li { display: flex; justify-content: space-between; font-size: var(--fs-sm); padding: 0.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); color: rgba(251,250,247,0.74); }
.contact-hours li:last-child { border-bottom: none; }
.contact-hours li b { color: var(--gold-200); font-weight: 600; }

/* ----------------------------------------------------------
   ۱۴. CTA نواری
   ---------------------------------------------------------- */
.cta__inner { background: var(--grad-navy); border-radius: var(--r-xl); padding: clamp(2.2rem, 1.4rem + 4vw, 4rem); text-align: center; position: relative; overflow: hidden; }
.cta__inner::after { content: ""; position: absolute; top: -30%; left: -5%; width: 40%; height: 100%; background: radial-gradient(circle, rgba(191,154,76,0.14), transparent 65%); }
.cta__inner h2 { color: #fff; position: relative; }
.cta__inner p { color: rgba(251,250,247,0.76); max-width: 50ch; margin: var(--sp-4) auto var(--sp-6); position: relative; line-height: var(--lh-snug); }
.cta__inner .hero__actions { justify-content: center; margin: 0; position: relative; }

/* ----------------------------------------------------------
   ۱۵. فوتر
   ---------------------------------------------------------- */
.site-footer { background: var(--navy-950); color: rgba(251,250,247,0.68); padding-top: clamp(3rem, 2rem + 3vw, 4.5rem); }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); padding-bottom: var(--sp-7); border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer__brand .brand__name { color: #fff; }
.footer__about { font-size: var(--fs-sm); line-height: var(--lh-snug); margin: var(--sp-4) 0; max-width: 36ch; }
.footer__social { display: flex; gap: 0.5rem; }
.footer__social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,0.05); color: var(--paper); transition: background var(--t) var(--ease), color var(--t) var(--ease); }
.footer__social a:hover { background: var(--gold-600); color: var(--navy-950); }
.footer__social svg { width: 18px; height: 18px; }
.footer__col h4 { color: #fff; font-size: var(--fs-sm); font-weight: 700; margin-bottom: var(--sp-4); letter-spacing: 0.02em; }
.footer__col ul { display: grid; gap: 0.6rem; }
.footer__col li { font-size: var(--fs-sm); }
.footer__col a { font-size: var(--fs-sm); display: inline-flex; align-items: center; gap: 0; color: inherit; transition: color var(--t) var(--ease), gap var(--t) var(--ease); }
.footer__col a::before { content: ""; width: 0; height: 2px; background: var(--gold-500); border-radius: 2px; transition: width var(--t) var(--ease); }
.footer__col a:hover { color: var(--gold-400); gap: 0.5rem; }
.footer__col a:hover::before { width: 13px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; padding: var(--sp-5) 0; font-size: var(--fs-xs); color: var(--muted-2); }

/* ----------------------------------------------------------
   ۱۶. دکمه‌های شناور
   ---------------------------------------------------------- */
.to-top { position: fixed; left: 22px; bottom: 22px; z-index: 90; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-800); color: var(--gold-400); box-shadow: var(--sh-3); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity var(--t) var(--ease), visibility var(--t), transform var(--t) var(--ease), background var(--t) var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--navy-900); }
.to-top svg { width: 20px; height: 20px; }

.quick-call { position: fixed; left: 22px; bottom: 78px; z-index: 90; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #1f8a4c; color: #fff; box-shadow: var(--sh-3); transition: transform var(--t) var(--ease), background var(--t) var(--ease); }
.quick-call:hover { background: #18763f; transform: translateY(-2px); }
.quick-call svg { width: 26px; height: 26px; }

/* ----------------------------------------------------------
   ۱۷. صفحات داخلی
   ---------------------------------------------------------- */
.page-hero { background: var(--grad-hero); color: var(--paper); padding-top: calc(var(--header-h) + clamp(2.5rem, 1.5rem + 4vw, 4.5rem)); padding-bottom: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); position: relative; overflow: hidden; text-align: center; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, #000, transparent 75%); }
.page-hero h1 { color: #fff; font-size: var(--fs-h1); position: relative; }
.page-hero p { color: rgba(251,250,247,0.78); max-width: 58ch; margin: var(--sp-4) auto 0; position: relative; line-height: var(--lh-snug); }
.breadcrumb { position: relative; display: flex; gap: 0.5rem; justify-content: center; align-items: center; font-size: var(--fs-sm); color: rgba(251,250,247,0.6); margin-bottom: var(--sp-4); }
.breadcrumb a:hover { color: var(--gold-400); }
.breadcrumb .sep { opacity: 0.5; }

/* تایم‌لاین */
.timeline { position: relative; margin-inline-start: 0.5rem; padding-inline-start: 2rem; border-inline-start: 2px solid var(--line); display: grid; gap: var(--sp-6); }
.timeline__item { position: relative; }
.timeline__item::before { content: ""; position: absolute; right: calc(-2rem - 6px); top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--gold-500); box-shadow: 0 0 0 4px var(--paper); }
.timeline__date { font-size: var(--fs-sm); font-weight: 700; color: var(--gold-700); margin-bottom: 0.3rem; }
.timeline__item h3 { font-size: var(--fs-h3); margin-bottom: 0.3rem; }
.timeline__item p { color: var(--muted); font-size: var(--fs-sm); line-height: var(--lh-snug); }

/* ----------------------------------------------------------
   ۱۸. حرکت ورود هنگام اسکرول (آرام و باوقار)
   ---------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out); will-change: opacity, transform; }
[data-reveal="right"] { transform: translateX(22px); }
[data-reveal="left"]  { transform: translateX(-22px); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: 0.06s; }
[data-delay="2"] { transition-delay: 0.12s; }
[data-delay="3"] { transition-delay: 0.18s; }
[data-delay="4"] { transition-delay: 0.24s; }

/* ----------------------------------------------------------
   ۱۹. واکنش‌گرایی
   ---------------------------------------------------------- */
@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .hero__proof { justify-content: center; }
  .hero__proof { border-top: none; padding-top: 0; }
  .hero__figure { order: -1; margin-bottom: 2.6rem; }
  /* کارت اعتبار در موبایل: پهن‌تر، پایین‌تر و وسط‌چین تا از وسط تصویر شروع نشود */
  .hero__cred {
    right: 50%; left: auto; transform: translateX(50%);
    bottom: -24px;
    width: min(92%, 430px);
    justify-content: center;
  }
  .hero__cred b { white-space: nowrap; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 400px; margin-inline: auto; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .nav-toggle { display: grid; }
  /* در موبایل backdrop-filter باعث می‌شد منوی fixed نسبت به هدر محصور و بریده شود؛
     آن را خاموش و پس‌زمینه‌ی مات جایگزین می‌کنیم تا منو کامل دیده شود. */
  .site-header.is-scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(251, 250, 247, 0.98);
  }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(84vw, 330px); flex-direction: column; align-items: stretch; gap: 0.1rem; background: var(--surface); padding: calc(var(--header-h) + 1rem) 1.4rem 2rem; box-shadow: var(--sh-4); transform: translateX(100%); transition: transform var(--t) var(--ease); overflow-y: auto; }
  .nav.is-open { transform: translateX(0); }
  .nav__link { padding: 0.9rem 1rem; font-size: 1.05rem; border-radius: var(--r-sm); }
  .nav__link::after { display: none; }
  /* پنل موبایل پس‌زمینه‌ی روشن دارد → متن تیره صرف‌نظر از حالت اسکرول */
  .site-header .nav__link, .site-header.is-scrolled .nav__link { color: var(--ink-2); }
  .site-header .nav__link:hover, .site-header .nav__link.is-active { color: var(--navy-900); background: var(--paper-2); }
  .nav > .btn { display: inline-flex; margin-top: var(--sp-4); }
  .header-cta > .btn { display: none; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(10,33,56,0.55); opacity: 0; visibility: hidden; transition: opacity var(--t) var(--ease); z-index: 99; }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
  .stat-block:not(:last-child)::after { display: none; }
}

@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* ----------------------------------------------------------
   ۲۰. کاهش حرکت / چاپ
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
@media print {
  .site-header, .to-top, .quick-call, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
}
