/* =========================================================
   کابینت‌سازی مصطفی حسین‌زاده — mhcabinet.com
   نسخه ۳ — روی توکن‌های رنگی سفارشی کارفرما (پالت لایم + اسلیت)
   الگو: Portfolio Grid | چیدمان از دیزاین‌سیستم UI UX Pro Max
   ========================================================= */

/* ---------------------------------------------------------
   ۱) توکن‌های پایه (عیناً همان چیزی که تحویل داده شد)
   --------------------------------------------------------- */
:root {
  --card: #ffffff;
  --ring: #aff33e;
  --input: #e2e8f0;
  --muted: #f1f5f9;
  --accent: #f0fdf4;
  --border: #e2e8f0;
  --radius: 1rem;
  --chart-1: #aff33e;
  --chart-2: #334155;
  --chart-3: #22c55e;
  --chart-4: #64748b;
  --chart-5: #94a3b8;
  --popover: #ffffff;
  --primary: #aff33e;
  --sidebar: #ffffff;
  --spacing: 0.25rem;
  --font-mono: JetBrains Mono, monospace;
  --font-sans: Inter, system-ui, sans-serif;
  --secondary: #334155;
  --background: #fbfcf8;
  --font-serif: Georgia, serif;
  --foreground: #0f172a;
  --destructive: #ef4444;
  --shadow-blur: 20px;
  --shadow-color: #000000;
  --sidebar-ring: #aff33e;
  --shadow-spread: 0px;
  --letter-spacing: -0.01em;
  --shadow-opacity: 0.05;
  --sidebar-accent: #f8fafc;
  --sidebar-border: #f1f5f9;
  --card-foreground: #0f172a;
  --shadow-offset-x: 0px;
  --shadow-offset-y: 8px;
  --sidebar-primary: #aff33e;
  --muted-foreground: #64748b;
  --accent-foreground: #166534;
  --popover-foreground: #0f172a;
  --primary-foreground: #000000;
  --sidebar-foreground: #0f172a;
  --secondary-foreground: #f8fafc;
  --destructive-foreground: #ffffff;
  --sidebar-accent-foreground: #0f172a;
  --sidebar-primary-foreground: #000000;
}

.dark {
  --card: #0f172a;
  --ring: #aff33e;
  --input: #1e293b;
  --muted: #1e293b;
  --accent: #14532d;
  --border: #1e293b;
  --radius: 1rem;
  --chart-1: #aff33e;
  --chart-2: #3b82f6;
  --chart-3: #22c55e;
  --chart-4: #a855f7;
  --chart-5: #f59e0b;
  --popover: #0f172a;
  --primary: #aff33e;
  --sidebar: #020617;
  --spacing: 0.25rem;
  --font-mono: JetBrains Mono, monospace;
  --font-sans: Inter, system-ui, sans-serif;
  --secondary: #1e293b;
  --background: #020617;
  --font-serif: Georgia, serif;
  --foreground: #f8fafc;
  --destructive: #991b1b;
  --shadow-blur: 25px;
  --shadow-color: #000000;
  --sidebar-ring: #aff33e;
  --shadow-spread: 0px;
  --letter-spacing: -0.01em;
  --shadow-opacity: 0.4;
  --sidebar-accent: #1e293b;
  --sidebar-border: #1e293b;
  --card-foreground: #f8fafc;
  --shadow-offset-x: 0px;
  --shadow-offset-y: 10px;
  --sidebar-primary: #aff33e;
  --muted-foreground: #94a3b8;
  --accent-foreground: #aff33e;
  --popover-foreground: #f8fafc;
  --primary-foreground: #000000;
  --sidebar-foreground: #f8fafc;
  --secondary-foreground: #f8fafc;
  --destructive-foreground: #ffffff;
  --sidebar-accent-foreground: #f8fafc;
  --sidebar-primary-foreground: #000000;
}

/* توکن‌های Tailwind v4؛ در این سایت (CSS خالص) اثری ندارند و فقط
   برای مهاجرت احتمالی به Tailwind نگه داشته شده‌اند. */
@theme inline {
  --color-card: var(--card);
  --color-ring: var(--ring);
  --color-input: var(--input);
  --color-muted: var(--muted);
  --color-accent: var(--accent);
  --color-border: var(--border);
  --color-radius: var(--radius);
  --color-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --color-popover: var(--popover);
  --color-primary: var(--primary);
  --color-sidebar: var(--sidebar);
  --color-spacing: var(--spacing);
  --color-font-mono: var(--font-mono);
  --color-font-sans: var(--font-sans);
  --color-secondary: var(--secondary);
  --color-background: var(--background);
  --color-font-serif: var(--font-serif);
  --color-foreground: var(--foreground);
  --color-destructive: var(--destructive);
  --color-shadow-blur: var(--shadow-blur);
  --color-shadow-color: var(--shadow-color);
  --color-sidebar-ring: var(--sidebar-ring);
  --color-shadow-spread: var(--shadow-spread);
  --color-letter-spacing: var(--letter-spacing);
  --color-shadow-opacity: var(--shadow-opacity);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-border: var(--sidebar-border);
  --color-card-foreground: var(--card-foreground);
  --color-shadow-offset-x: var(--shadow-offset-x);
  --color-shadow-offset-y: var(--shadow-offset-y);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent-foreground: var(--accent-foreground);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary-foreground: var(--primary-foreground);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
}

/* ---------------------------------------------------------
   ۲) فونت‌ها و توکن‌های مشتق‌شده
   --------------------------------------------------------- */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-var.woff2') format('woff2-variations');
  font-weight: 300 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Estedad';
  src: url('../fonts/Estedad-var.woff2') format('woff2-variations');
  font-weight: 300 900; font-style: normal; font-display: swap;
}

:root {
  /* فونت فارسی جلوتر از Inter می‌آید، چون Inter حروف فارسی ندارد */
  --font-body: 'Vazirmatn', var(--font-sans);
  --font-display: 'Estedad', 'Vazirmatn', var(--font-sans);

  /* رنگ لایم روی زمینه روشن کنتراست کافی برای متن ندارد،
     پس متنِ تأکیدی از --accent-foreground می‌آید و لایم فقط پس‌زمینه است */
  --accent-text: var(--accent-foreground);
  --surface-2: var(--muted);

  /* بلوک‌های معکوس (بخش «درباره ما» و فوتر) */
  --invert-bg: #0f172a;
  --invert-fg: #f8fafc;
  --invert-muted: rgba(248, 250, 252, .64);
  --invert-line: rgba(248, 250, 252, .14);

  /* مقیاس فاصله‌گذاری: Density 3/10 (باز) */
  --space-1: calc(var(--spacing) * 2);   /*  8px */
  --space-2: calc(var(--spacing) * 4);   /* 16px */
  --space-3: calc(var(--spacing) * 6);   /* 24px */
  --space-4: calc(var(--spacing) * 10);  /* 40px */
  --space-5: calc(var(--spacing) * 16);  /* 64px */
  --space-6: calc(var(--spacing) * 24);  /* 96px */
  --section-y: clamp(72px, 10vw, 150px);

  --radius-lg: var(--radius);                 /* 16px */
  --radius-md: calc(var(--radius) * .75);     /* 12px */
  --radius-sm: calc(var(--radius) * .5);      /*  8px */
  --radius-pill: 999px;
  --line: 1px solid var(--border);

  --shadow: var(--shadow-offset-x) var(--shadow-offset-y) var(--shadow-blur) var(--shadow-spread)
            rgba(0, 0, 0, .06);
  --shadow-lift: 0 18px 40px -20px rgba(15, 23, 42, .28);

  --dur: .32s;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --container: 1280px;
  --header-h: 74px;
}

.dark {
  --invert-bg: #0f172a;
  --invert-fg: #f8fafc;
  --invert-muted: rgba(248, 250, 252, .62);
  --invert-line: rgba(248, 250, 252, .12);
  --shadow: var(--shadow-offset-x) var(--shadow-offset-y) var(--shadow-blur) var(--shadow-spread)
            rgba(0, 0, 0, .45);
  --shadow-lift: 0 18px 44px -20px rgba(0, 0, 0, .7);
}

@supports (color: color-mix(in srgb, red 50%, blue)) {
  :root, .dark {
    --shadow: var(--shadow-offset-x) var(--shadow-offset-y) var(--shadow-blur) var(--shadow-spread)
      color-mix(in srgb, var(--shadow-color) calc(var(--shadow-opacity) * 100%), transparent);
  }
}

/* ---------------------------------------------------------
   ۳) پایه
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
}
html.dark { color-scheme: dark; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: var(--letter-spacing);
  color: var(--foreground);
  background: var(--background);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 800; }

::selection { background: var(--primary); color: var(--primary-foreground); }

:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.dark :focus-visible { outline-color: var(--ring); }

.skip-link {
  position: fixed; top: -100px; inset-inline-start: 0; z-index: 200;
  background: var(--primary); color: var(--primary-foreground);
  padding: 12px 20px; font-weight: 700; border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top .2s;
}
.skip-link:focus { top: 0; }

.container { width: min(100% - 44px, var(--container)); margin-inline: auto; }
.container.narrow { width: min(100% - 44px, 900px); }

/* ---------------------------------------------------------
   ۴) اسکلت بخش‌ها
   --------------------------------------------------------- */
.section { padding: var(--section-y) 0; position: relative; }
.section + .section { border-top: var(--line); }

.section-head { margin-bottom: var(--space-5); }
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .1em;
  color: var(--accent-text);
  background: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent-text) 22%, transparent);
  padding: 6px 14px; border-radius: var(--radius-pill);
  margin-bottom: var(--space-3);
}
.label .num { font-family: var(--font-display); font-weight: 800; }

h2.display {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 900; line-height: 1.35; letter-spacing: -.03em;
  max-width: 20ch;
}
.section-sub {
  margin-top: var(--space-3); max-width: 58ch;
  color: var(--muted-foreground); font-size: 16.5px; line-height: 2.1;
}
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }

/* ---------------------------------------------------------
   ۵) دکمه‌ها
   --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 28px;
  border: 1px solid transparent; border-radius: var(--radius-md);
  cursor: pointer; white-space: nowrap;
  font-weight: 700; font-size: 15px; line-height: 1;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px); }

.btn-accent {
  background: var(--primary); color: var(--primary-foreground);
  box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--primary) 70%, transparent);
}
.btn-accent:hover { background: color-mix(in srgb, var(--primary) 82%, #000); }

.btn-primary { background: var(--secondary); color: var(--secondary-foreground); }
.btn-primary:hover { background: var(--foreground); }
.dark .btn-primary { background: var(--primary); color: var(--primary-foreground); }
.dark .btn-primary:hover { background: color-mix(in srgb, var(--primary) 85%, #fff); }

.btn-outline { background: transparent; color: inherit; border-color: var(--border); }
.btn-outline:hover { border-color: var(--foreground); background: var(--muted); }
.btn-block { width: 100%; }

/* ---------------------------------------------------------
   ۶) هدر
   --------------------------------------------------------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 90; height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
/* روی هیرو تمام‌صفحه شفاف است و متنش سفید؛ بعد از اسکرول به حالت عادی برمی‌گردد */
.site-header.is-scrolled {
  background: var(--background); border-bottom-color: var(--border);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
}
.site-header:not(.is-scrolled) { color: #fff; }
.header-inner { display: flex; align-items: center; gap: var(--space-3); height: 100%; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--primary); color: var(--primary-foreground);
  border-radius: var(--radius-md);
  transition: transform var(--dur) var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-4deg); }
.brand-mark svg { width: 23px; height: 23px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.45; }
.brand-text strong { font-family: var(--font-display); font-size: 15.5px; font-weight: 800; }
.brand-text small { font-size: 11px; color: var(--muted-foreground); }
.site-header:not(.is-scrolled) .brand-text small { color: rgba(255, 255, 255, .72); }

.nav { margin-inline-start: auto; }
.nav-pill { display: flex; align-items: center; gap: 2px; }
.nav a {
  display: block; padding: 9px 14px; font-size: 14.5px; font-weight: 600;
  color: var(--muted-foreground); border-radius: var(--radius-pill);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav a:hover { color: var(--foreground); background: var(--muted); }
.nav a.is-active { color: var(--foreground); background: var(--accent); }

@media (min-width: 961px) {
  /* قرص شیشه‌ای ناوبری، فقط وقتی روی تصویر هیرو هستیم */
  .site-header:not(.is-scrolled) .nav-pill {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--radius-pill); padding: 4px;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .site-header:not(.is-scrolled) .nav a { color: rgba(255, 255, 255, .82); }
  .site-header:not(.is-scrolled) .nav a:hover,
  .site-header:not(.is-scrolled) .nav a.is-active { color: #fff; background: rgba(255, 255, 255, .16); }
}

.header-cta { display: flex; align-items: center; gap: 8px; }
.phone-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px;
  font-weight: 700; font-size: 14.5px; border-radius: var(--radius-pill);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.phone-link svg { width: 16px; height: 16px; color: var(--accent-text); }
.phone-link:hover { background: var(--muted); }
.site-header:not(.is-scrolled) .phone-link svg { color: var(--primary); }
.site-header:not(.is-scrolled) .phone-link:hover { background: rgba(255, 255, 255, .14); }

.icon-btn {
  width: 46px; height: 46px; display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius-md);
  color: inherit; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.icon-btn:hover { background: var(--muted); border-color: var(--foreground); }
.icon-btn svg { width: 20px; height: 20px; }
.site-header:not(.is-scrolled) .icon-btn {
  background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.site-header:not(.is-scrolled) .icon-btn:hover { background: rgba(255, 255, 255, .2); }
.theme-toggle .moon { display: none; }
.dark .theme-toggle .sun { display: none; }
.dark .theme-toggle .moon { display: block; }

.nav-toggle { display: none; position: relative; }
.nav-toggle span {
  position: absolute; inset-inline-start: 50%; margin-inline-start: -9px;
  width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------------------------------
   ۷) هیرو تمام‌صفحه با تصویر پس‌زمینه
   --------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + var(--space-5)) 0 0;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center 58%;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, .78) 0%, rgba(2, 6, 23, .62) 38%, rgba(2, 6, 23, .86) 100%),
    radial-gradient(130% 85% at 50% 42%, rgba(2, 6, 23, .34) 0%, rgba(2, 6, 23, .62) 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3);
}

.hero-inner {
  position: relative; text-align: center;
  padding-bottom: var(--space-5); color: #fff;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--space-3);
  padding: 7px 7px 7px 16px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .92);
}
.hero-badge .chip {
  background: var(--primary); color: var(--primary-foreground);
  border-radius: var(--radius-pill); padding: 3px 12px;
  font-size: 12.5px; font-weight: 800;
}

.hero h1 {
  font-size: clamp(2.3rem, 6.2vw, 4.8rem);
  font-weight: 900; line-height: 1.3; letter-spacing: -.04em;
  color: #fff; max-width: 18ch; margin-inline: auto;
  text-shadow: 0 2px 30px rgba(2, 6, 23, .45);
}
.hero-lead {
  max-width: 60ch; margin: var(--space-3) auto 0;
  font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 2.1;
  color: rgba(255, 255, 255, .9);
  text-shadow: 0 1px 14px rgba(2, 6, 23, .55);
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; margin-top: var(--space-4);
}
.btn-glass {
  background: rgba(255, 255, 255, .1); color: #fff;
  border-color: rgba(255, 255, 255, .22);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255, 255, 255, .2); }

.hero-trust { margin-top: var(--space-5); }
.hero-trust-title { font-size: 13.5px; color: rgba(255, 255, 255, .72); margin-bottom: var(--space-3); }
.hero-trust ul {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-2);
  max-width: 980px; margin-inline: auto;
}
.hero-trust li {
  padding: var(--space-2) var(--space-1); border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.hero-trust li:hover { background: rgba(255, 255, 255, .14); border-color: rgba(175, 243, 62, .5); }
.hero-trust strong {
  display: block; font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.9vw, 1.5rem); font-weight: 900; line-height: 1.6;
  color: var(--primary);
}
.hero-trust span { font-size: 12.5px; color: rgba(255, 255, 255, .76); }

/* ورود پلکانی محتوای هیرو */
@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.js .fade-1, .js .fade-2, .js .fade-3, .js .fade-4, .js .fade-5 {
  opacity: 0; animation: fadeSlideIn .7s var(--ease) forwards;
}
.js .fade-1 { animation-delay: .05s; }
.js .fade-2 { animation-delay: .15s; }
.js .fade-3 { animation-delay: .27s; }
.js .fade-4 { animation-delay: .39s; }
.js .fade-5 { animation-delay: .51s; }

/* نوار متحرک پایین هیرو */
.strip {
  position: relative; overflow: hidden; padding: 14px 0; margin-top: auto;
  background: rgba(2, 6, 23, .55); color: #fff;
  border-top: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.strip-track { display: flex; gap: 40px; width: max-content; animation: slide 38s linear infinite; }
.strip span { font-size: 14px; font-weight: 600; white-space: nowrap; }
.strip i { font-style: normal; color: var(--primary); }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ---------------------------------------------------------
   ۸) نمونه‌کارها
   --------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  min-height: 44px; padding: 10px 20px; cursor: pointer;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-pill); font-size: 14px; font-weight: 600;
  color: var(--muted-foreground);
  transition: all var(--dur) var(--ease);
}
.filter:hover { color: var(--foreground); border-color: var(--foreground); }
.filter.is-active {
  background: var(--primary); border-color: var(--primary); color: var(--primary-foreground);
}

.work-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-2);
  grid-auto-flow: dense;
}

/* هر نمونه‌کار یک کارت کامل است: سطح --card، حاشیه، شعاع ۱rem و سایه توکنی */
.shot {
  position: relative; margin: 0; cursor: pointer; grid-column: span 4;
  display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  background: var(--card); color: var(--card-foreground);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.shot:nth-child(1), .shot:nth-child(2),
.shot:nth-child(6), .shot:nth-child(7) { grid-column: span 6; }

.shot img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  transition: transform .8s var(--ease);
}
.shot:nth-child(1) img, .shot:nth-child(2) img,
.shot:nth-child(6) img, .shot:nth-child(7) img { aspect-ratio: 16 / 11; }

/* وقتی فیلتر فعال است همه کاشی‌ها هم‌اندازه می‌شوند تا جای خالی نماند */
.work-grid.is-filtered .shot { grid-column: span 4; }
.work-grid.is-filtered .shot img { aspect-ratio: 4 / 5; }

/* برچسب دسته‌بندی روی تصویر، از data-label خوانده می‌شود */
.shot::before {
  content: attr(data-label);
  position: absolute; top: var(--space-2); inset-inline-start: var(--space-2); z-index: 2;
  padding: 6px 14px; border-radius: var(--radius-pill);
  background: var(--card); color: var(--card-foreground);
  border: 1px solid var(--border);
  font-size: 12px; font-weight: 700; line-height: 1.6;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.shot figcaption {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  padding: var(--space-3);
  border-top: 1px solid var(--border);
}
.shot figcaption b {
  display: block; font-family: var(--font-display);
  font-size: 16.5px; font-weight: 800; letter-spacing: -.015em; line-height: 1.7;
}
.shot figcaption .t > span { font-size: 12.5px; color: var(--muted-foreground); }
.shot figcaption .plus {
  flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--muted); color: var(--muted-foreground);
  border-radius: var(--radius-md); font-size: 20px; font-weight: 700; line-height: 1;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.shot:hover, .shot:focus-within {
  transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--primary);
}
.shot:hover img, .shot:focus-within img { transform: scale(1.04); }
.shot:hover::before, .shot:focus-within::before {
  background: var(--primary); color: var(--primary-foreground); border-color: var(--primary);
}
.shot:hover .plus, .shot:focus-within .plus {
  background: var(--primary); color: var(--primary-foreground);
}
.shot.is-hidden { display: none; }

/* ---------------------------------------------------------
   ۹) خدمات — فهرست ادیتوریال
   --------------------------------------------------------- */
.index-list { border-top: 1px solid var(--foreground); }
.index-row {
  display: grid; grid-template-columns: 90px 1.1fr 1.4fr auto;
  gap: var(--space-3); align-items: center;
  padding: var(--space-3) var(--space-2); border-bottom: var(--line);
  border-radius: var(--radius-md);
  transition: background var(--dur) var(--ease);
}
.index-row:hover { background: var(--muted); }
.index-row .n {
  font-family: var(--font-display); font-size: 15px; font-weight: 800;
  color: var(--accent-text); letter-spacing: .06em;
}
.index-row h3 { font-size: clamp(1.1rem, 1.7vw, 1.35rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.6; }
.index-row p { font-size: 14.5px; color: var(--muted-foreground); line-height: 1.95; }
.index-row .mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: var(--line); border-radius: var(--radius-md); color: var(--muted-foreground);
  transition: all var(--dur) var(--ease);
}
.index-row:hover .mark { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.index-row .mark svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------
   ۱۰) متریال
   --------------------------------------------------------- */
.mat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.mat {
  padding: var(--space-4) var(--space-3);
  background: var(--card); border: var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.mat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--primary); }
.mat .n { font-family: var(--font-display); font-size: 13px; font-weight: 800; color: var(--accent-text); letter-spacing: .08em; }
.mat h3 { font-size: 1.15rem; margin: var(--space-1) 0 10px; letter-spacing: -.02em; }
.mat p { font-size: 14.5px; color: var(--muted-foreground); line-height: 2; }

/* ---------------------------------------------------------
   ۱۱) مراحل کار
   --------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-3); }
.step {
  padding: var(--space-3); background: var(--card);
  border: var(--line); border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.step:hover { border-color: var(--primary); transform: translateY(-3px); }
.step .n {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px;
  background: var(--accent); color: var(--accent-text); border-radius: var(--radius-pill);
  font-family: var(--font-display); font-size: 15px; font-weight: 800;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.step:hover .n { background: var(--primary); color: var(--primary-foreground); }
.step h3 { font-size: 1.05rem; margin: var(--space-2) 0 8px; letter-spacing: -.015em; }
.step p { font-size: 14px; color: var(--muted-foreground); line-height: 1.95; }

/* ---------------------------------------------------------
   ۱۲) درباره ما (بلوک معکوس)
   --------------------------------------------------------- */
.section-invert {
  background: var(--invert-bg); color: var(--invert-fg);
  border-top: 0; border-radius: 0;
}
.section-invert .label {
  background: rgba(175, 243, 62, .14); color: var(--primary);
  border-color: rgba(175, 243, 62, .3);
}
.section-invert .section-sub { color: var(--invert-muted); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: start; }
.quote-block {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.5rem); font-weight: 800;
  line-height: 1.55; letter-spacing: -.03em; max-width: 24ch;
}
.quote-block em { font-style: normal; color: var(--primary); }

.why-list { display: grid; gap: var(--space-2); }
.why-list li {
  display: grid; grid-template-columns: 40px 1fr; gap: var(--space-2);
  padding: var(--space-3); border: 1px solid var(--invert-line);
  border-radius: var(--radius-lg);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.why-list li:hover { background: rgba(248, 250, 252, .05); border-color: rgba(175, 243, 62, .4); }
.why-list .n { font-family: var(--font-display); font-weight: 800; color: var(--primary); font-size: 14px; }
.why-list strong { display: block; font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.why-list span { font-size: 14px; color: var(--invert-muted); line-height: 1.95; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); margin-top: var(--space-5); }
.stat {
  padding: var(--space-3); border: 1px solid var(--invert-line);
  border-radius: var(--radius-lg); text-align: center;
  transition: background var(--dur) var(--ease);
}
.stat:hover { background: rgba(248, 250, 252, .05); }
.stat-num {
  display: block; font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 900; line-height: 1.35; letter-spacing: -.04em;
  color: var(--primary);
}
.stat-label { font-size: 12.5px; color: var(--invert-muted); }

/* ---------------------------------------------------------
   ۱۳) نظرات مشتریان
   --------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.quote {
  margin: 0; padding: var(--space-4) var(--space-3);
  background: var(--card); border: var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.quote:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.stars { color: var(--accent-text); letter-spacing: 2px; font-size: 14px; }
.quote blockquote { margin: var(--space-2) 0 0; font-size: 15.5px; line-height: 2.05; }
.quote figcaption { margin-top: var(--space-3); padding-top: var(--space-2); border-top: var(--line); font-weight: 700; font-size: 14.5px; }
.quote figcaption span { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted-foreground); }

/* ---------------------------------------------------------
   ۱۴) سوالات متداول
   --------------------------------------------------------- */
.faq-list { display: grid; gap: var(--space-1); }
.faq {
  background: var(--card); border: var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: border-color var(--dur) var(--ease);
}
.faq[open] { border-color: var(--primary); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-3); cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-text); }
.chev {
  position: relative; flex-shrink: 0; width: 30px; height: 30px;
  background: var(--muted); border-radius: var(--radius-sm);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.chev::before, .chev::after {
  content: ''; position: absolute; inset-inline-start: 50%; top: 50%;
  width: 12px; height: 2px; background: currentColor; border-radius: 2px;
  transform: translate(50%, -50%); transition: transform var(--dur) var(--ease);
}
.chev::after { transform: translate(50%, -50%) rotate(90deg); }
.faq[open] .chev { background: var(--primary); color: var(--primary-foreground); }
.faq[open] .chev::after { transform: translate(50%, -50%) rotate(0); }
.faq-body { padding: 0 var(--space-3) var(--space-3); max-width: 78ch; }
.faq-body p { font-size: 15px; color: var(--muted-foreground); line-height: 2.05; }

/* ---------------------------------------------------------
   ۱۵) تماس
   --------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: start; }
.contact-list { display: grid; gap: var(--space-1); margin-top: var(--space-4); }
.contact-list li {
  display: grid; grid-template-columns: 110px 1fr; gap: var(--space-2); align-items: baseline;
  padding: var(--space-3); background: var(--card);
  border: var(--line); border-radius: var(--radius-lg);
}
.contact-list small { font-size: 12.5px; color: var(--muted-foreground); letter-spacing: .04em; }
.contact-list a, .contact-list li > span { font-weight: 700; font-size: 16px; }
.contact-list a:hover { color: var(--accent-text); }

.contact-form {
  background: var(--card); border: var(--line); border-radius: var(--radius-lg);
  padding: var(--space-4); box-shadow: var(--shadow);
}
.contact-form h3 { font-size: 1.3rem; letter-spacing: -.02em; margin-bottom: var(--space-3); }
.field { margin-bottom: var(--space-2); }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.field label small { color: var(--muted-foreground); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 13px 15px;
  border: 1px solid var(--input); border-radius: var(--radius-md);
  background: var(--background); font-size: 15px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.9; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-foreground); opacity: .8; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 35%, transparent);
}
.field.has-error input, .field.has-error select { border-color: var(--destructive); }
.field.has-error label { color: var(--destructive); }
.form-note { margin-top: var(--space-2); font-size: 12.5px; color: var(--muted-foreground); text-align: center; }
.form-note a { font-weight: 700; color: var(--accent-text); }
.form-status { margin-top: 10px; font-size: 14px; font-weight: 700; text-align: center; color: var(--accent-text); }
.form-status a { text-decoration: underline; }

/* ---------------------------------------------------------
   ۱۶) فوتر
   --------------------------------------------------------- */
.site-footer { background: var(--invert-bg); color: var(--invert-muted); padding-top: var(--space-6); }
.footer-word {
  font-family: var(--font-display); font-weight: 900; letter-spacing: -.045em;
  font-size: clamp(2rem, 7.4vw, 5.8rem); line-height: 1.2; color: var(--invert-fg);
  padding-bottom: var(--space-4); border-bottom: 1px solid var(--invert-line);
}
.footer-word span { color: var(--primary); }
.footer-inner { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: var(--space-4); padding: var(--space-4) 0 var(--space-5); }
.footer-inner p { font-size: 14px; line-height: 2; max-width: 40ch; }
.site-footer h4 { font-size: 13px; letter-spacing: .08em; color: var(--invert-fg); margin-bottom: var(--space-2); }
.f-links li { margin-bottom: 10px; }
.f-links a, .f-contact a { font-size: 14px; transition: color var(--dur) var(--ease); }
.f-links a:hover, .f-contact a:hover { color: var(--primary); }
.f-contact p { font-size: 14px; margin-bottom: 10px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  padding: var(--space-3) 0; border-top: 1px solid var(--invert-line);
  font-size: 13px; color: var(--invert-muted);
}

/* ---------------------------------------------------------
   ۱۷) دکمه شناور و لایت‌باکس
   --------------------------------------------------------- */
.fab-group { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 80; display: grid; gap: 8px; }
.fab {
  width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: var(--radius-md);
  background: var(--primary); color: var(--primary-foreground);
  box-shadow: var(--shadow-lift);
  transition: transform var(--dur) var(--ease);
}
.fab svg { width: 24px; height: 24px; }
.fab:hover { transform: translateY(-3px); }

.lightbox {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  background: rgba(2, 6, 23, .94); padding: 64px 20px; opacity: 0; transition: opacity .3s;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox img { max-width: min(94vw, 1080px); max-height: 80vh; border-radius: var(--radius-lg); }
.lb-caption { position: absolute; bottom: 24px; inset-inline: 0; text-align: center; color: rgba(248, 250, 252, .82); font-size: 14px; }
.lb-close, .lb-nav {
  position: absolute; display: grid; place-items: center; cursor: pointer;
  background: rgba(248, 250, 252, .1); color: #fff; border: 1px solid rgba(248, 250, 252, .25);
  border-radius: var(--radius-md); transition: background var(--dur) var(--ease);
}
.lb-close { top: 18px; inset-inline-end: 18px; width: 48px; height: 48px; font-size: 16px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 26px; line-height: 1; }
.lb-prev { inset-inline-end: 16px; }
.lb-next { inset-inline-start: 16px; }
.lb-close:hover, .lb-nav:hover { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }

/* ---------------------------------------------------------
   ۱۸) انیمیشن ورود
   --------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .42s var(--ease), transform .42s var(--ease);
  transition-delay: var(--d, 0ms);
}

/* ---------------------------------------------------------
   ۱۹) واکنش‌گرایی — 375 / 768 / 1024 / 1440
   --------------------------------------------------------- */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: var(--space-3); }
  .index-row { grid-template-columns: 70px 1fr auto; }
  .index-row p { grid-column: 2 / 3; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; margin: 0;
    background: var(--background); border-bottom: var(--line);
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 22px 20px; }
  .nav a { padding: 15px 12px; font-size: 16.5px; border-bottom: var(--line); border-radius: var(--radius-sm); }
  .nav-toggle { display: block; }
  .phone-link span { display: none; }

  .why-grid, .contact-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .hero-trust ul { grid-template-columns: repeat(3, 1fr); }
  .work-grid .shot, .work-grid .shot:nth-child(n) { grid-column: span 6; }
  .work-grid .shot img, .work-grid .shot:nth-child(n) img { aspect-ratio: 4 / 5; }
  .mat-grid, .quotes { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container, .container.narrow { width: calc(100% - 32px); }
  .header-cta .btn { display: none; }
  .hero-actions .btn { width: 100%; }
  .hero-trust ul { grid-template-columns: repeat(2, 1fr); }
  .hero-trust li:last-child { grid-column: 1 / -1; }
  .work-grid .shot, .work-grid .shot:nth-child(n) { grid-column: span 12; }
  .steps, .mat-grid, .quotes { grid-template-columns: 1fr; }
  .index-row { grid-template-columns: 54px 1fr; row-gap: 6px; }
  .index-row .mark { display: none; }
  .index-row p { grid-column: 2 / -1; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .footer-inner { grid-template-columns: 1fr; gap: var(--space-3); }
  .fab-group { inset-inline-end: 14px; bottom: 14px; }
}

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

@media print {
  .site-header, .fab-group, .strip, .lightbox, .contact-form { display: none !important; }
  body { background: #fff; color: #000; }
}
