/* =========================================================
   الفبافت - استایل اصلی
   ---------------------------------------------------------
   ترتیب فایل:
   ۱. متغیرها (رنگ، فونت، فاصله، اندازه)
   ۲. فونت محلی وزیرمتن
   ۳. پایه و ریست
   ۴. اجزای مشترک (دکمه، آیکن، عنوان بخش)
   ۵. انیمیشن‌ها
   ۶. هدر و منو
   ۷. بخش‌ها به ترتیب صفحه
   ۸. فوتر
   ۹. نقاط شکست (۶۰۰ / ۹۰۰ / ۱۲۰۰)
   ========================================================= */


/* ========== ۱. متغیرها ========== */
/* رنگ‌ها: زمینه کرم گرم چون رنگ پارچه خام و نخ را تداعی می‌کند و چشم را
   در متن فارسی کمتر از سفید خالص خسته می‌کند. رنگ تاکیدی پسته‌ای تیره
   انتخاب شده چون به رنگ‌های طبیعی رنگرزی و پارچه خام نزدیک است و روی
   زمینه روشن کنتراست کافی برای دکمه و لینک دارد. */

:root {
  /* رنگ */
  --c-bg:            #f8f4e8;
  --c-bg-alt:        #efeedc;
  --c-surface:       #ffffff;
  --c-ink:           #1f2a1a;
  --c-muted:         #5b6650;
  --c-line:          #dcdfc9;
  /* فقط برای تب‌های غیرفعال نوار پیمایش پایین، کمی طوسی‌تر از --c-muted
     تا تب فعال سبزرنگ بیشتر به چشم بیاید */
  --c-nav-inactive:  #a7ab9c;
  --c-accent:        #4f6e36;
  --c-accent-strong: #3e5729;
  --c-accent-soft:   #e8f0d8;
  /* فقط برای دکمه‌های اصلی خرید/تماس (btn-accent)؛ بقیه‌ی برند همان سبز بالا می‌ماند */
  --c-cta:           #7a2635;
  --c-cta-strong:    #5e1c28;
  --c-pistachio:     #9cc474;
  --c-hero-dark:     #1e2a16;
  --c-on-dark:       #ffffff;
  --c-on-dark-soft:  #e6ebd8;
  --c-focus:         #1f6feb;

  /* فونت */
  --font-body: "Vazirmatn", Tahoma, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* فقط برای برچسب زیر آیکن‌های نوار پیمایش پایین، جایی که فضا کم است */
  --fs-2xs:  clamp(0.66rem, 0.64rem + 0.08vw, 0.7rem);

  /* کف این دو اندازه نسبت به معمول کمی بالاتر است چون حروف فارسی
     در وزیرمتن در همان اندازه از حروف لاتین ریزتر دیده می‌شوند */
  --fs-xs:   clamp(0.85rem, 0.82rem + 0.14vw, 0.92rem);
  --fs-sm:   clamp(0.92rem, 0.88rem + 0.18vw, 1rem);
  --fs-base: clamp(0.97rem, 0.92rem + 0.26vw, 1.09rem);
  --fs-md:   clamp(1.06rem, 0.99rem + 0.34vw, 1.25rem);
  --fs-lg:   clamp(1.24rem, 1.1rem  + 0.7vw,  1.6rem);
  --fs-xl:   clamp(1.6rem,  1.35rem + 1.2vw,  2.4rem);
  --fs-2xl:  clamp(2.1rem,  1.6rem  + 2.6vw,  4rem);

  --lh-tight: 1.5;
  --lh-body:  1.85;

  /* فاصله */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 2.75rem;
  --s-8: 3.5rem;
  --s-9: 5rem;
  --s-10: 7rem;

  /* اندازه و شکل */
  --wrap: 1200px;
  --gutter: 1.25rem;
  --header-h: 64px;
  --tap: 44px;
  /* فضای خالی زیر صفحه در موبایل تا محتوا زیر نوار پیمایش شناور پنهان نشود */
  --bottom-nav-space: 84px;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(31, 42, 26, .06), 0 2px 8px rgba(31, 42, 26, .06);
  --shadow-md: 0 6px 18px rgba(31, 42, 26, .1), 0 2px 6px rgba(31, 42, 26, .06);
  --shadow-lg: 0 18px 40px rgba(31, 42, 26, .17), 0 6px 14px rgba(31, 42, 26, .09);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out-back: cubic-bezier(.34, 1.4, .64, 1);
  --t-fast: .18s var(--ease);
  --t: .3s var(--ease);
  --t-slow: .55s var(--ease);
}


/* ========== ۲. فونت محلی ========== */
/* فونت وزیرمتن، نسخه متغیر. یک فایل، همه وزن‌ها.
   هیچ CDN بیرونی استفاده نشده تا از داخل ایران بدون مشکل بالا بیاید. */

@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-Variable.woff2") format("woff2-variations"),
       url("fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* اگر مرورگر خیلی قدیمی فونت متغیر را نگرفت، این سه خط را از کامنت خارج کنید
   و بلوک بالا را حذف کنید. فایل‌ها در همان پوشه fonts هستند.

@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-Medium.woff2")  format("woff2"); font-weight:500; font-display:swap; }
@font-face { font-family:"Vazirmatn"; src:url("fonts/Vazirmatn-Bold.woff2")    format("woff2"); font-weight:700; font-display:swap; }
*/


/* ========== ۳. پایه و ریست ========== */

*, *::before, *::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  line-height: var(--lh-tight);
  font-weight: 700;
}

p { margin: 0; }
ul, ol, li { margin: 0; padding: 0; list-style: none; }
dl, dt, dd { margin: 0; }

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

img { max-width: 100%; display: block; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* هایلایت مستطیلی پیش‌فرض مرورگر موبایل موقع لمس خاموش می‌شود؛
   حالت لمس خودمان (:active) روی دکمه‌ها و لینک‌ها جای آن را می‌گیرد */
a, button { -webkit-tap-highlight-color: transparent; }

.sprite { display: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

/* حالت فوکوس برای کیبورد */
:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-start: var(--s-4);
  z-index: 200;
  background: var(--c-ink);
  color: var(--c-on-dark);
  padding: var(--s-3) var(--s-5);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
}
.skip-link:focus { inset-block-start: 0; }


/* ========== ۴. اجزای مشترک ========== */

.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: var(--tap);
  padding: 0.7rem 1.5rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t), box-shadow var(--t), background-color var(--t), color var(--t), border-color var(--t);
}

/* موج روشن هنگام هاور روی دکمه */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 140% at 50% 120%, rgba(255, 255, 255, .28), transparent 62%);
  opacity: 0;
  transform: translateY(45%);
  transition: opacity var(--t), transform var(--t-slow);
}

.btn-accent {
  background: var(--c-cta);
  color: var(--c-on-dark);
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(122, 38, 53, .32);
}

.btn-outline {
  background: var(--c-surface);
  color: var(--c-accent);
  border: 1.5px solid var(--c-accent);
}

.btn-sm { padding: 0.55rem 1.15rem; font-size: var(--fs-xs); }
.btn-lg { padding: 0.95rem 2.1rem; font-size: var(--fs-md); }
.btn-block { display: flex; width: 100%; }

.btn:active { transform: translateY(1px) scale(.99); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  border-radius: var(--r-pill);
  color: inherit;
  transition: background-color var(--t-fast), color var(--t-fast), transform var(--t);
}
.icon-btn-lg { width: 52px; height: 52px; border: 1px solid var(--c-line); }

.section {
  padding-block: var(--s-8);
  position: relative;
}
.section-alt { background: var(--c-bg-alt); }

.section-head {
  max-width: 44ch;
  margin-block-end: var(--s-7);
}

/* زیرعنوان این بخش بلندتر از ۴۴ حرفه؛ نمی‌خواهیم زودتر از لازم بشکند */
#buy .section-head { max-width: none; }

.section-title {
  font-size: var(--fs-xl);
  margin-block-end: var(--s-3);
}

/* خط کوتاه تزیینی زیر عنوان بخش که با اسکرول باز می‌شود */
.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-block-start: var(--s-3);
  border-radius: 3px;
  background: var(--c-accent);
  transform-origin: right;
}

.section-sub {
  color: var(--c-muted);
  font-size: var(--fs-md);
}

.eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-on-dark-soft);
}


/* ========== ۵. انیمیشن‌ها ========== */
/* همه انیمیشن‌ها فقط CSS هستند. انیمیشن‌های وابسته به اسکرول با
   animation-timeline نوشته شده‌اند. اگر مرورگر پشتیبانی نکند، محتوا
   بدون انیمیشن و کاملا سالم دیده می‌شود. */

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

@keyframes rise-sm {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@keyframes card-rise {
  from { opacity: 0; transform: translateY(40px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

/* ورود از سمت راست چون خواندن فارسی از راست شروع می‌شود */
@keyframes slide-in {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: none; }
}

@keyframes pop {
  from { opacity: 0; transform: translateY(10px) scale(.78); }
  to   { opacity: 1; transform: none; }
}

@keyframes grow-line {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes drift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.16) translate3d(1.5%, -1.5%, 0); }
}

@keyframes sheen {
  from { transform: translateX(-120%) rotate(8deg); }
  to   { transform: translateX(320%) rotate(8deg); }
}

@keyframes bob {
  from { transform: translateY(0); }
  to   { transform: translateY(6px); }
}

@keyframes float {
  from { transform: translateY(0) rotate(var(--rot, 0deg)); }
  to   { transform: translateY(-14px) rotate(var(--rot, 0deg)); }
}

@keyframes swatch-in {
  from { opacity: 0; transform: translateY(40px) rotate(var(--rot, 0deg)) scale(.92); }
  to   { opacity: 1; transform: translateY(0) rotate(var(--rot, 0deg)) scale(1); }
}

/* انیمیشن ورود اولیه صفحه */
@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow,
  .hero-title,
  .hero-sub,
  .hero-cta {
    animation: rise .85s var(--ease) both;
  }
  .hero .eyebrow  { animation-delay: .05s; }
  .hero-title     { animation-delay: .16s; }
  .hero-sub       { animation-delay: .28s; }
  .hero-cta       { animation-delay: .4s; }

  /* نوار اعتماد با یک پرش کوچک و پشت‌سرهم وارد می‌شود، هم موبایل هم دسکتاپ */
  .trust-bar li { animation: pop .55s var(--ease-out-back) both; }
  .trust-bar li:nth-child(1) { animation-delay: .52s; }
  .trust-bar li:nth-child(2) { animation-delay: .62s; }
  .trust-bar li:nth-child(3) { animation-delay: .72s; }

  .hero-bg {
    animation: drift 24s ease-in-out infinite alternate;
  }

  .swatch {
    animation: swatch-in .9s var(--ease-out-back) both,
               float 7s ease-in-out infinite alternate;
  }
  .swatch-1 { animation-delay: .3s, 1.2s; }
  .swatch-2 { animation-delay: .42s, 1.6s; }
  .swatch-3 { animation-delay: .54s, 2s; }

  .scroll-hint { animation: rise .8s var(--ease) .9s both; }
  .scroll-hint-mouse > span { animation: bob 1.5s ease-in-out infinite alternate; }
}

/* انیمیشن‌های وابسته به اسکرول */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {

    .section-head,
    .about-media,
    .about-text > p,
    .stats {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 32%;
    }

    .section-title::after {
      animation: grow-line linear both;
      animation-timeline: view();
      animation-range: entry 18% cover 34%;
    }

    .card-grid > li,
    .feature,
    .contact-grid > li {
      animation: rise-sm linear both;
      animation-timeline: view();
      animation-range: entry 6% cover 30%;
    }

    /* نوارهای خرید بزرگ‌تر از آیتم‌های ریز گریدند، پس ورودشان هم محسوس‌تر است */
    .buy-band {
      animation: card-rise linear both;
      animation-timeline: view();
      animation-range: entry 6% cover 36%;
    }

    /* ورود پلکانی کارت‌ها */
    .card-grid > li:nth-child(2),
    .contact-grid > li:nth-child(2),
    .feature:nth-child(2) { animation-range: entry 11% cover 34%; }

    .card-grid > li:nth-child(3),
    .contact-grid > li:nth-child(3),
    .feature:nth-child(3) { animation-range: entry 16% cover 38%; }

    .card-grid > li:nth-child(4),
    .contact-grid > li:nth-child(4),
    .feature:nth-child(4) { animation-range: entry 21% cover 42%; }

    .contact-grid > li:nth-child(5) { animation-range: entry 26% cover 46%; }

    .buy-band:nth-child(2) { animation-range: entry 12% cover 42%; }

    .about-text > p:nth-of-type(2) { animation-range: entry 14% cover 36%; }

    /* نوار پیشرفت اسکرول بالای صفحه */
    .scroll-progress span {
      animation: grow-line linear both;
      animation-timeline: scroll(root block);
    }
  }
}

/* خاموش کردن کامل حرکت برای کاربرانی که آن را کم کرده‌اند */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}


/* ========== ۶. هدر و منو ========== */

.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--c-on-dark);
  background: transparent;
  transition: background-color var(--t), color var(--t), box-shadow var(--t), backdrop-filter var(--t);
}

.site-header.is-scrolled {
  background: rgba(248, 244, 232, .92);
  backdrop-filter: blur(10px);
  color: var(--c-ink);
  box-shadow: 0 1px 0 var(--c-line), 0 6px 20px rgba(31, 42, 26, .08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  height: var(--header-h);
}

.scroll-progress {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  height: 2px;
  overflow: hidden;
  opacity: 0;
  transition: opacity var(--t);
}
.site-header.is-scrolled .scroll-progress { opacity: 1; }

.scroll-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-strong));
  transform: scaleX(0);
  transform-origin: right;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-weight: 700;
  font-size: var(--fs-md);
  transition: opacity var(--t-fast);
}

/* روی هیرو، هدر شفاف است و رنگ اصلی لوگو رو زمینه‌ی تیره کم‌رنگ دیده می‌شود؛
   با فیلتر سفیدش می‌کنیم و بعد اسکرول (زمینه‌ی روشن هدر) رنگ واقعی برمی‌گردد */
.brand-logo {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter var(--t);
}

.site-header.is-scrolled .brand-logo {
  filter: none;
}

.brand-mark {
  position: relative;
  padding-inline-end: 2px;
}
/* نقطه کوچک کنار نام برند در فوتر (فوتر همچنان متنی است، نه لوگوی تصویری) */
.brand-mark::after {
  content: "";
  position: absolute;
  inset-block-end: .45em;
  inset-inline-start: -9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-cta);
}

.nav-desktop { display: none; }

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--s-5);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding-inline: 2px;
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: color var(--t-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  inset-block-end: 10px;
  inset-inline: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t);
}

.nav-link.is-active { color: var(--c-accent); }
.site-header:not(.is-scrolled) .nav-link.is-active { color: var(--c-on-dark); }
.nav-link.is-active::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.header-actions > a.icon-btn { display: none; }


/* ========== ۶-۱. نوار پیمایش پایین (فقط موبایل) ========== */
/* جایگزین منوی همبرگری قدیمی. شناور روی لبه‌ی پایین صفحه، با گرد‌شدگی و
   سایه، شبیه نوار تب اپ‌های موبایل بومی. فقط زیر ۷۶۸ پیکسل دیده می‌شود؛
   از ۷۶۸ به بالا منوی افقی بالای صفحه (nav-desktop) جای آن را می‌گیرد. */

.bottom-nav {
  position: fixed;
  inset-inline: var(--s-4);
  inset-block-end: calc(var(--s-3) + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  padding: 5px;
  background: var(--c-surface);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-line);
}

.bottom-nav-list {
  position: relative;
  display: flex;
  align-items: stretch;
}

.bottom-nav-list > li {
  flex: 1;
  display: flex;
}

/* جای خالی وسط لیست، زیر دکمه‌ی شناور تماس */
.bottom-nav-spacer {
  pointer-events: none;
}

.bottom-nav-link {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  min-height: var(--tap);
  padding-block: var(--s-2);
  color: var(--c-nav-inactive);
  transition: color var(--t-fast);
}

.bottom-nav-link .icon {
  width: 21px;
  height: 21px;
  transition: transform var(--t) var(--ease-out-back);
}

.bottom-nav-link span {
  font-size: var(--fs-2xs);
  font-weight: 600;
}

.bottom-nav-link.is-active { color: var(--c-accent); }
.bottom-nav-link.is-active .icon { transform: translateY(-1px) scale(1.1); }

/* دکمه‌ی گرد شناور تماس، وسط نوار، بالاتر از خط بار بیرون‌زده؛ لینک بخش نیست
   و در ردیابی بخش فعال (querySelectorAll('.nav-link, .bottom-nav-link')) شرکت نمی‌کند */
.bottom-nav-fab {
  position: absolute;
  inset-inline: 0;
  inset-block-start: -24px;
  margin-inline: auto;
  z-index: 2;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-strong));
  box-shadow: 0 0 0 5px var(--c-surface), var(--shadow-lg);
  transition: transform var(--t) var(--ease-out-back);
}

.bottom-nav-fab .icon {
  width: 24px;
  height: 24px;
  color: #fff;
}

.bottom-nav-fab:active { transform: scale(.94); }

/* تا آخرین بخش صفحه زیر نوار شناور گم نشود */
@media (max-width: 767px) {
  body { padding-block-end: var(--bottom-nav-space); }
}

@media (min-width: 768px) {
  .bottom-nav { display: none; }
}


/* ========== ۷-۱. بخش اصلی بالای صفحه ========== */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + var(--s-8)) var(--s-8);
  color: var(--c-on-dark);
  background: var(--c-hero-dark);
}

/* عکس واقعی هیرو. لایه تیره روی آن (hero::after) نگه داشته شده تا متن
   سفید خوانا بماند؛ opacity آن برای همین عکس (که نقطه‌های روشن نزدیک
   به سفید دارد) دوباره تنظیم شد، نه برای بافت CSS قبلی. */
.hero-bg {
  position: absolute;
  inset: -8%;
  z-index: -2;
  background: url("images/hero.jpg") center / cover no-repeat;
  transform: scale(1.06);
  will-change: transform;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(30, 42, 22, .7), rgba(30, 42, 22, .84));
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-4);
}

.hero-title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  max-width: 18ch;
}

.hero-sub {
  font-size: var(--fs-md);
  color: var(--c-on-dark-soft);
  max-width: 34ch;
}

.hero-cta {
  width: 100%;
  max-width: 420px;
  margin-block-start: var(--s-3);
}

.trust-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  margin-block-start: var(--s-5);
  font-size: var(--fs-sm);
  color: var(--c-on-dark-soft);
}

.trust-bar li {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.trust-bar li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  flex: none;
}

/* تکه‌های پارچه تزیینی سمت چپ، فقط روی صفحه‌های پهن */
.hero-swatches {
  display: none;
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: 8%;
  z-index: 0;
  width: 330px;
  height: 400px;
  transform: translateY(-50%);
  pointer-events: none;
}

.swatch {
  position: absolute;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .14);
}

.swatch-1 {
  inset-block-start: 0;
  inset-inline-start: 44px;
  width: 190px;
  height: 250px;
  --rot: -7deg;
  transform: rotate(var(--rot));
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.2) 0 3px, transparent 3px 9px),
    linear-gradient(160deg, var(--c-pistachio), var(--c-accent-strong));
}

.swatch-2 {
  inset-block-start: 96px;
  inset-inline-start: 0;
  width: 168px;
  height: 214px;
  --rot: 6deg;
  transform: rotate(var(--rot));
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,.16) 0 3px, transparent 3px 9px),
    linear-gradient(160deg, var(--c-bg), var(--c-pistachio));
}

.swatch-3 {
  inset-block-start: 150px;
  inset-inline-start: 152px;
  width: 150px;
  height: 190px;
  --rot: -2deg;
  transform: rotate(var(--rot));
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.14) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.12) 0 2px, transparent 2px 7px),
    linear-gradient(160deg, var(--c-muted), var(--c-hero-dark));
}

/* اشاره اسکرول زیر بخش اول */
.scroll-hint {
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  margin-block-start: var(--s-7);
  color: var(--c-on-dark-soft);
  border-radius: var(--r-pill);
  transition: color var(--t-fast), transform var(--t);
}

.scroll-hint-mouse {
  display: block;
  width: 22px;
  height: 34px;
  border: 2px solid currentColor;
  border-radius: var(--r-pill);
  position: relative;
}
.scroll-hint-mouse > span {
  position: absolute;
  inset-block-start: 6px;
  inset-inline-start: 50%;
  width: 3px;
  height: 7px;
  margin-inline-start: -1.5px;
  border-radius: 2px;
  background: currentColor;
}


/* ========== ۷-۲. محصولات ========== */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--c-bg-alt);
}

/* هر چهار کارت الان عکس واقعی دارند؛ .card-media img زیر همین کافی است */
.card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.card-arrow {
  position: absolute;
  inset-block-end: var(--s-3);
  inset-inline-start: var(--s-3);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.45rem 0.95rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .93);
  color: var(--c-ink);
  font-size: var(--fs-xs);
  font-weight: 700;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity var(--t), transform var(--t);
}
.card-arrow .icon { width: 17px; height: 17px; }

.card-body {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-5);
}

.card-title {
  font-size: var(--fs-md);
  font-weight: 700;
}

.card-text {
  font-size: var(--fs-sm);
  color: var(--c-muted);
}


/* ========== ۷-۳. نحوه خرید ========== */

.buy-bands {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}

.buy-band {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 280px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  isolation: isolate;
  transition: transform var(--t), box-shadow var(--t);
}

/* پوشش تیره‌ی پایین عکس تا متن سفید روش خوانا بماند */
.buy-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(20, 26, 16, .82), rgba(20, 26, 16, .25) 60%, transparent);
}

.buy-band-body {
  padding: var(--s-6);
  color: var(--c-on-dark);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  width: 100%;
}

.buy-band-title {
  font-size: var(--fs-xl);
  color: var(--c-on-dark);
}

.buy-band-text {
  color: var(--c-on-dark-soft);
  font-size: var(--fs-sm);
  max-width: 42ch;
}

.buy-band .btn { margin-block-start: var(--s-2); width: fit-content; }

@media (min-width: 768px) {
  .buy-bands { grid-template-columns: 1fr 1fr; }
  .buy-band { min-height: 380px; }
}


/* ========== ۷-۴. درباره ما ========== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  align-items: center;
}

.about-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  height: auto;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

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

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  margin-block-start: var(--s-3);
}

.feature {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-4);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}

.feature-icon {
  display: inline-flex;
  color: var(--c-accent);
  transition: transform var(--t-slow);
}

.feature-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.5;
}

/* نوار عددی، آماده برای وقتی عدد واقعی داشتید */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
  margin-block-start: var(--s-5);
  padding-block: var(--s-4);
  border-block-start: 1px solid var(--c-line);
}
.stat dd {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--c-accent);
}
.stat dt {
  font-size: var(--fs-xs);
  color: var(--c-muted);
}


/* ========== ۷-۵. تماس با ما ========== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}

.contact-card {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-height: 84px;
  height: 100%;
  padding: var(--s-4) var(--s-5);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: var(--r-sm);
  background: var(--c-accent-soft);
  color: var(--c-accent);
  transition: transform var(--t), background-color var(--t), color var(--t);
}

.contact-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-title { font-weight: 700; font-size: var(--fs-sm); }
.contact-text { color: var(--c-muted); font-size: var(--fs-sm); overflow-wrap: anywhere; }


/* ========== ۸. فوتر ========== */

.site-footer {
  background: var(--c-ink);
  color: var(--c-on-dark);
  padding-block: var(--s-7) var(--s-4);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}

.footer-tagline {
  margin-block-start: var(--s-2);
  color: var(--c-on-dark-soft);
  font-size: var(--fs-sm);
  max-width: 38ch;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding-inline: var(--s-1);
  font-size: var(--fs-sm);
  color: var(--c-on-dark-soft);
  transition: color var(--t-fast);
}

.footer-socials { display: flex; gap: var(--s-2); }
.footer-socials .icon-btn { border: 1px solid rgba(255, 255, 255, .18); }

.footer-bottom {
  margin-block-start: var(--s-6);
  padding-block-start: var(--s-4);
  border-block-start: 1px solid rgba(255, 255, 255, .14);
  font-size: var(--fs-xs);
  color: var(--c-on-dark-soft);
}


/* ========== ۹. نقاط شکست ========== */

/* --- از ۶۰۰ پیکسل --- */
@media (min-width: 600px) {
  :root { --gutter: 1.75rem; }

  .section { padding-block: var(--s-9); }

  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .trust-bar {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--s-5);
  }

  .hero-cta { width: auto; }

  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
  }
  .footer-brand { flex: 1 1 260px; }
}

/* --- از ۷۶۸ پیکسل: تبلت، همان ساختار منوی افقی دسکتاپ --- */
@media (min-width: 768px) {
  .nav-desktop { display: block; }
  .header-actions > a.icon-btn { display: inline-flex; }
}

/* --- از ۹۰۰ پیکسل --- */
@media (min-width: 900px) {
  :root { --gutter: 2.25rem; --header-h: 68px; }

  .hero {
    min-height: 100svh;
    padding-block: calc(var(--header-h) + var(--s-9)) var(--s-9);
  }

  .hero-inner {
    align-items: flex-start;
    text-align: start;
  }
  .hero-sub { max-width: 40ch; }

  .trust-bar { justify-content: flex-start; }

  .scroll-hint { display: inline-flex; }

  /* روی دسکتاپ متن سمت راست و تصویر سمت چپ. روی موبایل ترتیب خود کد است:
     اول تصویر، بعد متن */
  .about-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: var(--s-8);
  }
  .about-media {
    order: 2;
    aspect-ratio: 4 / 5;
    max-block-size: 520px;
  }
  .about-text { order: 1; }

  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feature { align-items: flex-start; }

  .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .section-head { margin-block-end: var(--s-8); }
}

/* --- از ۱۲۰۰ پیکسل --- */
@media (min-width: 1200px) {
  .section { padding-block: var(--s-10); }

  .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .buy-bands { gap: var(--s-6); }

  .hero-title { max-width: 16ch; }

  .hero-swatches { display: block; }
}


/* ========== هاور فقط برای دستگاه‌هایی که هاور دارند ========== */

@media (hover: hover) and (pointer: fine) {

  .btn:hover {
    transform: translateY(-2px);
  }
  .btn:hover::before {
    opacity: 1;
    transform: translateY(0);
  }
  .btn-accent:hover {
    background: var(--c-cta-strong);
    box-shadow: 0 12px 28px rgba(122, 38, 53, .36);
  }
  .btn-outline:hover {
    background: var(--c-accent);
    color: var(--c-on-dark);
    border-color: var(--c-accent);
  }

  .icon-btn:hover {
    background: rgba(79, 110, 54, .12);
    color: var(--c-accent);
    transform: translateY(-1px);
  }
  .site-header:not(.is-scrolled) .icon-btn:hover {
    background: rgba(255, 255, 255, .16);
    color: var(--c-on-dark);
  }
  .footer-socials .icon-btn:hover {
    background: rgba(255, 255, 255, .14);
    color: var(--c-on-dark);
  }

  .brand:hover { opacity: .8; }

  .nav-link:hover::after { transform: scaleX(1); }

  .bottom-nav-link:hover { color: var(--c-accent); }

  .card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
  }
  .card:hover .card-media img { transform: scale(1.09); }
  .card:hover .card-arrow { opacity: 1; transform: none; }

  .buy-band:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
  }

  .feature:hover {
    transform: translateY(-3px);
    border-color: var(--c-accent);
    box-shadow: var(--shadow-md);
  }
  .feature:hover .feature-icon { transform: rotate(-8deg) scale(1.1); }

  .contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--c-accent);
  }
  .contact-card:hover .contact-icon {
    background: var(--c-accent);
    color: var(--c-on-dark);
    transform: scale(1.06);
  }
  .contact-card-static:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--c-line);
  }
  .contact-card-static:hover .contact-icon {
    background: var(--c-accent-soft);
    color: var(--c-accent);
    transform: none;
  }

  .footer-nav a:hover { color: var(--c-on-dark); }
}
