/* ==========================================================================
   کارینا بتن ایرانیان — سیستم طراحی پایه
   استخراج‌شده از سند پیاده‌سازی (نسخهٔ ۱) — هماهنگ با محاسبه‌گر نسخهٔ ۳
   ========================================================================== */

/* ---------- فونت Vazirmatn (محلی — میزبانی روی خود هاست) ---------- */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

/* ---------- متغیرها (پالت + توکن‌های طراحی) ---------- */
:root {
  /* رنگ */
  --paper:     #FBF4EC;
  --paperDeep: #F3E8DA;
  --white:     #FFFFFF;
  --ink:       #2B231C;
  --inkSoft:   #6B5E51;
  --mute:      #9B8E7E;
  --clay:      #C8703D;
  --clayDeep:  #A85A2D;
  --clayPale:  #F3DCC8;
  --line:      #E4D5C2;

  /* شعاع */
  --r-card: 18px;
  --r-btn:  12px;
  --r-pill: 20px;

  /* سایه */
  --shadow-sm: 0 1px 4px rgba(43,35,28,.05);
  --shadow-md: 0 4px 18px rgba(200,112,61,.10);
  --shadow-lg: 0 12px 36px rgba(43,35,28,.10);

  /* لایه‌بندی */
  --maxw: 1140px;
  --pad: 16px;
}

/* ---------- ریست سبک ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  direction: rtl;
  font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--clay); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--clayDeep); }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- تایپوگرافی ---------- */
h1, h2, h3 { margin: 0; line-height: 1.4; color: var(--ink); }
h1 { font-size: 34px; font-weight: 800; line-height: 1.4; }
h2 { font-size: 24px; font-weight: 800; line-height: 1.5; }
h3 { font-size: 19px; font-weight: 700; line-height: 1.6; }
p  { margin: 0 0 16px; }
.small { font-size: 13px; font-weight: 600; line-height: 1.7; }
.lead { font-size: 17px; color: var(--inkSoft); }

@media (max-width: 640px) {
  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
}

/* ---------- چیدمان عمومی ---------- */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: 64px; }
.section--tight { padding-block: 48px; }
.section--paper { background: var(--paper); }
.section--deep  { background: var(--paperDeep); }
.section--ink   { background: var(--ink); color: var(--paper); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--paper); }

.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--clay);
  margin-bottom: 8px;
}
.section-head p { color: var(--inkSoft); margin: 0; }
.section--ink .section-head p { color: var(--mute); }

.text-soft { color: var(--inkSoft); }
.text-mute { color: var(--mute); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1;
  padding: 14px 24px; border-radius: var(--r-btn);
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--clay); color: var(--paper); box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--clayDeep); color: var(--white); transform: translateY(-1px); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--secondary:hover { border-color: var(--clay); color: var(--clay); }
.btn--ghost-light { background: transparent; color: var(--paper); border-color: rgba(251,244,236,.28); }
.btn--ghost-light:hover { border-color: var(--clay); color: var(--clay); }
.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn--block { display: flex; width: 100%; justify-content: center; }

/* پالس نرم خیلی ملایم برای CTA اصلی */
@keyframes softPulse {
  0%, 100% { box-shadow: var(--shadow-md); }
  50%      { box-shadow: 0 6px 24px rgba(200,112,61,.22); }
}
.btn--pulse { animation: softPulse 2.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .btn--pulse { animation: none; } }

/* ---------- پیل / بَج ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--clayPale); color: var(--clayDeep);
  font-size: 13px; font-weight: 700;
}

/* ==========================================================================
   تاپ‌بار (چسبان)
   ========================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: var(--paper);
  border-bottom: 1px solid rgba(251,244,236,.08);
}
.topbar__inner {
  display: flex; align-items: center; gap: 16px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--paper); font-weight: 800; }
.brand:hover { color: var(--paper); }
.brand__mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--clay); color: var(--white);
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
}
.brand__logo {
  height: 44px; width: auto; display: block;
}
.brand__name { font-size: 17px; line-height: 1.2; }
.brand__name small { display: block; font-size: 11px; font-weight: 600; color: var(--mute); }

.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a {
  color: var(--paper); font-size: 15px; font-weight: 600;
  padding: 8px 14px; border-radius: 8px;
}
.nav a:hover, .nav a.is-active { color: var(--clay); background: rgba(251,244,236,.05); }

.topbar .btn--primary { margin-inline-start: 8px; }

.nav-toggle {
  display: none; margin-inline-start: auto;
  background: transparent; border: 0; color: var(--paper); cursor: pointer; padding: 8px;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; margin: 0; padding: 8px var(--pad) 16px;
    background: var(--ink); border-bottom: 1px solid rgba(251,244,236,.08);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px 10px; border-radius: 8px; }
  /* دکمهٔ نارنجی همیشه بیرون از منوی همبرگری */
  .topbar .btn--primary { display: none; }
}

/* ==========================================================================
   هیرو
   ========================================================================== */
.hero { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding-block: 72px;
}
.hero h1 { color: var(--paper); margin-bottom: 18px; }
.hero p { color: var(--mute); font-size: 17px; max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__media {
  border-radius: var(--r-card); overflow: hidden;
  border: 1px solid rgba(251,244,236,.10); box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; gap: 28px; padding-block: 48px; }
  .hero__media { order: -1; aspect-ratio: 16 / 10; }
}

/* ==========================================================================
   نوار اعتماد
   ========================================================================== */
.trust {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.trust__item {
  text-align: center; padding: 8px;
}
.trust__icon { color: var(--clay); display: inline-grid; place-items: center; margin-bottom: 8px; }
.trust__icon svg { width: 28px; height: 28px; }
.trust__num { font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.trust__label { font-size: 13px; color: var(--inkSoft); font-weight: 600; }
@media (max-width: 760px) {
  .trust { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
}

/* ==========================================================================
   گرید کارت‌ها
   ========================================================================== */
.grid { display: grid; gap: 20px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 880px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow-sm); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__media { aspect-ratio: 4 / 3; }
.card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__body h3 { color: var(--ink); }
.card__body p { color: var(--inkSoft); font-size: 15px; margin: 0; }
.card__link {
  margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 4px;
}
.card__meta { font-size: 13px; font-weight: 700; color: var(--clayDeep); }

/* ---------- جای‌نگه‌دار تصویر (placeholder) ---------- */
.ph {
  width: 100%; height: 100%;
  background:
    linear-gradient(135deg, rgba(200,112,61,.10), rgba(43,35,28,.06)),
    var(--paperDeep);
  display: grid; place-items: center; text-align: center;
  color: var(--inkSoft); font-size: 13px; font-weight: 600; padding: 12px;
  position: relative;
}
.ph::after {
  content: ""; position: absolute; inset: 10px; border: 1px dashed var(--line); border-radius: 10px;
}
.ph span { position: relative; z-index: 1; }
.ph--ink { background: linear-gradient(135deg, #34291f, #221b14); color: var(--mute); }
.ph--ink::after { border-color: rgba(251,244,236,.12); }

/* ==========================================================================
   مزیت‌ها (آیکن + متن)
   ========================================================================== */
.feature {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 22px; box-shadow: var(--shadow-sm);
}
.feature__icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  background: var(--clayPale); color: var(--clayDeep);
  display: grid; place-items: center;
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 18px; margin-bottom: 4px; }
.feature p { margin: 0; font-size: 15px; color: var(--inkSoft); }

/* ==========================================================================
   مراحل فرایند
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { text-align: center; position: relative; padding: 8px; }
.step__num {
  width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--clay); color: var(--white);
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
  box-shadow: var(--shadow-md);
}
.step h3 { font-size: 16px; }
.step p { font-size: 14px; color: var(--inkSoft); margin: 4px 0 0; }
@media (max-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; } }

/* ==========================================================================
   بنر CTA (زغالی)
   ========================================================================== */
.cta-banner { text-align: center; }
.cta-banner h2 { color: var(--paper); margin-bottom: 10px; }
.cta-banner p { color: var(--mute); max-width: 54ch; margin: 0 auto 24px; }

/* ==========================================================================
   آکاردئون سؤالات متداول
   ========================================================================== */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--white); margin-bottom: 12px; overflow: hidden; }
.faq__q {
  width: 100%; text-align: right; background: transparent; border: 0; cursor: pointer;
  font-family: inherit; font-size: 16px; font-weight: 700; color: var(--ink);
  padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq__q .chev { flex: none; color: var(--clay); transition: transform .2s ease; }
.faq__item.is-open .chev { transform: rotate(180deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq__a-inner { padding: 0 20px 18px; color: var(--inkSoft); font-size: 15px; }

/* ==========================================================================
   محاسبه‌گر (iframe)
   ========================================================================== */
.calc-frame {
  width: 100%;
  /* ارتفاع محدود به صفحه‌نمایش تا overlay/مودال‌های داخل محاسبه‌گر درست دیده شوند؛
     محتوای بلندتر داخل خود قاب اسکرول می‌شود. */
  height: calc(100vh - 110px);
  min-height: 540px;
  max-height: 880px;
  border: 0; border-radius: var(--r-card);
  background: var(--paper); box-shadow: var(--shadow-sm);
  display: block;
}
@media (max-width: 880px) {
  .calc-frame { height: calc(100vh - 150px); max-height: none; }
}
.note {
  background: var(--paperDeep); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 16px 20px; color: var(--inkSoft); font-size: 14px; margin-top: 20px;
}

/* ==========================================================================
   فرم تماس
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 15px; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-btn);
  padding: 12px 14px; width: 100%; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--clay); box-shadow: 0 0 0 3px var(--clayPale);
}
.field textarea { resize: vertical; min-height: 110px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

.panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 28px; box-shadow: var(--shadow-sm);
}

/* بلوک اطلاعات تماس */
.contact-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ic { flex: none; color: var(--clay); }
.contact-list .ic svg { width: 22px; height: 22px; }
.contact-list strong { display: block; color: var(--ink); }
.contact-list span { color: var(--inkSoft); font-size: 15px; }

/* ==========================================================================
   فوتر
   ========================================================================== */
.footer { background: var(--ink); color: var(--mute); padding-block: 48px 24px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 32px; }
.footer h4 { color: var(--paper); font-size: 16px; margin: 0 0 14px; font-weight: 700; }
.footer a { color: var(--mute); }
.footer a:hover { color: var(--clay); }
.footer__links li { padding: 5px 0; }
.footer__contact li { padding: 6px 0; font-size: 14px; }
.footer__tagline { font-size: 14px; line-height: 1.9; margin-top: 12px; }
.footer__bottom {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(251,244,236,.08);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  font-size: 13px; color: var(--mute);
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- امضای طراح (همهٔ صفحات) ---------- */
.design-credit { text-align: center; padding: 14px 16px 4px; }
.design-credit::before {
  content: ""; display: block; width: 90px; height: 1px; margin: 0 auto 11px;
  background: linear-gradient(90deg, transparent, rgba(230,177,122,.45), transparent);
}
.design-credit__inner {
  display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center;
  font-size: 11px; font-weight: 600; color: var(--mute); letter-spacing: .2px;
}
.design-credit__name {
  position: relative; font-weight: 800; font-size: 12px; letter-spacing: .4px; padding: 0 1px;
  background-image: linear-gradient(100deg, #C8703D 0%, #E6B17A 25%, #F4DEB3 50%, #E6B17A 75%, #C8703D 100%);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: creditShine 5.5s linear infinite;
}
.design-credit__spark { display: none; }
@keyframes creditShine { to { background-position: -220% center; } }
@keyframes creditPulse { 0%, 100% { opacity: .45; transform: scale(.85) rotate(0deg); } 50% { opacity: 1; transform: scale(1.2) rotate(45deg); } }
@media (prefers-reduced-motion: reduce) {
  .design-credit__name { animation: none; }
  .design-credit__spark { animation: none; }
}

/* ==========================================================================
   CTA چسبان موبایل (نوار پایین)
   ========================================================================== */
.mobile-cta {
  display: none;
  position: fixed; inset: auto 0 0 0; z-index: 60;
  gap: 10px; padding: 10px var(--pad);
  background: var(--white); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(43,35,28,.08);
}
.mobile-cta .btn { flex: 1; padding: 13px; }
.mobile-cta .btn--whatsapp { background: transparent; color: var(--ink); border-color: var(--line); }
.mobile-cta .btn--whatsapp:hover { border-color: var(--clay); color: var(--clay); }
@media (max-width: 880px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 76px; }
}

/* ==========================================================================
   انیمیشن fade-up هنگام اسکرول
   ========================================================================== */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity .4s ease, transform .4s ease; }
.fade-up.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
}

/* ---------- کمکی‌ها ---------- */
.stack-sm > * + * { margin-top: 8px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.page-head { background: var(--paperDeep); padding-block: 48px; border-bottom: 1px solid var(--line); }
.page-head .container { max-width: 820px; }
.page-head h1 { margin-bottom: 10px; }
.page-head p { color: var(--inkSoft); margin: 0; }
.breadcrumb { font-size: 13px; color: var(--mute); margin-bottom: 10px; }
.breadcrumb a { color: var(--inkSoft); }

/* ==========================================================================
   دکمهٔ شناور تماس مستقیم (در همهٔ صفحات — تزریق‌شده با main.js)
   ========================================================================== */
.call-float {
  position: fixed; inset: auto auto 22px 22px; z-index: 70;
  display: inline-flex; align-items: center; gap: 0;
  height: 48px; padding: 0; border-radius: 24px;
  background: linear-gradient(135deg, var(--clay) 0%, var(--clayDeep) 100%); color: #fff;
  box-shadow: 0 8px 22px rgba(200,112,61,.38), 0 2px 6px rgba(43,35,28,.16);
  overflow: hidden; cursor: pointer;
  max-width: 48px; transition: max-width .42s cubic-bezier(.22,1,.36,1), box-shadow .2s ease, transform .2s ease;
  will-change: max-width;
}
.call-float:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 36px rgba(200,112,61,.52); }
.call-float__icon {
  flex: 0 0 48px; width: 48px; height: 48px;
  display: grid; place-items: center;
}
.call-float__icon svg { width: 22px; height: 22px; fill: #fff; }
.call-float__label {
  white-space: nowrap; font-weight: 700; font-size: 15px;
  padding-inline-end: 22px; padding-inline-start: 2px; opacity: 0;
  transition: opacity .3s ease .08s;
}
/* لرزش لطیف گوشی برای جلب توجه */
@keyframes callRing {
  0%, 92%, 100% { transform: rotate(0); }
  94% { transform: rotate(-12deg); }
  96% { transform: rotate(12deg); }
  98% { transform: rotate(-8deg); }
}
.call-float__icon svg { animation: callRing 3.2s ease-in-out infinite; transform-origin: 50% 55%; }
/* باز شدن خودکار نرم پس از لود + باز ماندن هنگام هاور */
.call-float.is-open, .call-float:hover { max-width: 280px; }
.call-float.is-open .call-float__label, .call-float:hover .call-float__label { opacity: 1; }

/* حلقهٔ پالس */
.call-float::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 48px; height: 48px;
  border-radius: 50%; background: var(--clay); z-index: -1;
  animation: callPulse 2.4s ease-out infinite;
}
@keyframes callPulse {
  0%   { transform: scale(1); opacity: .5; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}
/* روی موبایل بالاتر از نوار CTA چسبان قرار بگیرد و جمع‌وجور بماند */
@media (max-width: 880px) {
  .call-float { inset: auto auto 84px 14px; height: 46px; max-width: 46px; }
  .call-float__icon { flex-basis: 46px; width: 46px; height: 46px; }
  .call-float::after { width: 46px; height: 46px; }
  .call-float.is-open { max-width: 46px; }          /* روی موبایل فقط آیکن */
  .call-float.is-open .call-float__label { opacity: 0; }
  .call-float:hover { max-width: 240px; }
  .call-float:hover .call-float__label { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .call-float::after { animation: none; }
  .call-float__icon svg { animation: none; }
  .call-float { transition: box-shadow .2s ease; }
}

/* ==========================================================================
   بلاگ — لیست، کارت مقاله، صفحه‌بندی
   ========================================================================== */
.blog-grid { gap: 26px; }
.blog-card { overflow: hidden; }
.blog-card__media {
  position: relative; display: block; aspect-ratio: 16 / 10;
  background: var(--paperDeep); overflow: hidden;
}
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.blog-card:hover .blog-card__media img { transform: scale(1.05); }
.blog-card__media .ph { position: absolute; inset: 0; }
.blog-card__tag {
  position: absolute; inset: 12px 12px auto auto;
  background: rgba(43,35,28,.78); color: var(--paper);
  font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: var(--r-pill);
  backdrop-filter: blur(4px);
}
.blog-card__meta { display: flex; gap: 8px; align-items: center; color: var(--mute); font-size: 12.5px; font-weight: 600; margin-bottom: 8px; }
.blog-card h3 { font-size: 18px; margin-bottom: 8px; }
.blog-card h3 a { color: var(--ink); }
.blog-card h3 a:hover { color: var(--clay); }
.blog-card .card__body p { color: var(--inkSoft); font-size: 14.5px; margin-bottom: 14px; }

.blog-empty { text-align: center; max-width: 460px; margin-inline: auto; padding: 40px 0; color: var(--inkSoft); }
.blog-empty svg { width: 56px; height: 56px; color: var(--mute); margin-bottom: 12px; }
.blog-empty h3 { margin-bottom: 8px; }

.pager { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pager__item {
  min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-weight: 700; padding-inline: 12px;
}
.pager__item:hover { border-color: var(--clay); color: var(--clay); }
.pager__item.is-active { background: var(--clay); color: var(--paper); border-color: var(--clay); }

/* ==========================================================================
   مقاله — صفحهٔ تک‌نوشته
   ========================================================================== */
.article__head { background: var(--paperDeep); padding-block: 48px 36px; border-bottom: 1px solid var(--line); }
.article__head-inner { max-width: 820px; }
.article__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.article__head h1 { font-size: 32px; line-height: 1.5; margin-bottom: 16px; }
.article__meta { display: flex; gap: 20px; flex-wrap: wrap; color: var(--inkSoft); font-size: 14px; font-weight: 600; }
.article__meta span { display: inline-flex; align-items: center; gap: 6px; }
.article__meta svg { width: 17px; height: 17px; color: var(--clay); }
@media (max-width: 640px) { .article__head h1 { font-size: 24px; } }

.article__cover {
  max-width: 900px; margin: 32px auto 0; border-radius: var(--r-card); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; background: var(--paperDeep);
}
.article__cover img { width: 100%; height: 100%; object-fit: cover; }

.article__body { max-width: 760px; margin: 40px auto 0; font-size: 17px; line-height: 2.1; color: #38302a; }
.article__body > *:first-child { margin-top: 0; }
.article__body h2 { font-size: 24px; margin: 38px 0 14px; }
.article__body h3 { font-size: 20px; margin: 30px 0 12px; }
.article__body p { margin: 0 0 20px; }
.article__body a { color: var(--clay); text-decoration: underline; text-underline-offset: 3px; }
.article__body ul, .article__body ol { margin: 0 0 20px; padding-inline-start: 26px; }
.article__body li { margin-bottom: 8px; }
.article__body ul { list-style: disc; }
.article__body ol { list-style: decimal; }
.article__body img { border-radius: var(--r-card); margin: 24px auto; box-shadow: var(--shadow-md); }
.article__body blockquote {
  margin: 24px 0; padding: 16px 22px; border-inline-start: 4px solid var(--clay);
  background: var(--paperDeep); border-radius: 0 12px 12px 0; color: var(--inkSoft); font-weight: 600;
}
.article__body pre { background: var(--ink); color: var(--paper); padding: 16px; border-radius: 12px; overflow: auto; direction: ltr; text-align: left; }
.article__body code { background: var(--paperDeep); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.article__body pre code { background: none; padding: 0; }
.article__body table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.article__body th, .article__body td { border: 1px solid var(--line); padding: 10px 12px; text-align: right; }
.article__body th { background: var(--paperDeep); font-weight: 700; }

.article__share { max-width: 760px; margin: 36px auto 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; }
.article__share > span { font-weight: 700; color: var(--inkSoft); }
.share-btn { font-size: 13px; font-weight: 700; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--ink); }
.share-btn:hover { border-color: var(--clay); color: var(--clay); }
.share-btn--wa { background: var(--wa); color: #fff; border-color: var(--wa); }
.share-btn--wa:hover { background: var(--waDeep); color: #fff; }
