/* === Vazirmatn local font === */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn[wght].woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* استفاده عمومی در سایت */
html[dir="rtl"] body {
  font-family: 'Vazirmatn', system-ui, -apple-system, Segoe UI, Roboto, 'Noto Sans Arabic', Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* انیمیشن fade-in */
.fade-in {
  animation: fadein .6s ease both;
}
@keyframes fadein {
  from {opacity:0; transform: translateY(6px);}
  to   {opacity:1; transform:none;}
}

/* کارت‌ها */
.card {
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px rgba(0,0,0,.08);
}

/* تصاویر lazy */
img[loading="lazy"] {
  color: transparent;
}

/* دکمه اصلی */
.btn-primary {
  background: #2563eb;
  color: #fff;
  border-radius: .6rem;
  padding: .75rem 1.25rem;
  font-weight: 600;
}
.btn-primary:hover {
  filter: brightness(1.05);
}

/* فیکس فضای RTL */
[dir="rtl"] .space-x-reverse > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 1;
}
