/* ============================================================
   همراه کلیه — استایل سایت عمومی (Header / Hero / Footer)
   ============================================================ */

/* ── Navbar ─────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
}
.navbar { display: flex; align-items: center; justify-content: space-between; padding: .75rem 0; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--c-text); }
.brand:hover { text-decoration: none; }
.brand-logo { width: 44px; height: 44px; flex-shrink: 0; }
.brand-name { font-size: 1.05rem; line-height: 1.3; }
.brand-name small { display: block; font-size: .78rem; font-weight: 600; color: var(--c-text-muted); }

.nav-menu { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  display: block; padding: .5rem .8rem; border-radius: var(--radius-sm);
  color: var(--c-text); font-weight: 600; font-size: .95rem;
}
.nav-menu a:hover, .nav-menu a.active {
  background: var(--c-primary-50); color: var(--c-primary-700); text-decoration: none;
}
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--c-surface); border-bottom: 1px solid var(--c-border);
    padding: .5rem 1rem 1rem; box-shadow: var(--shadow); display: none;
  }
  .nav-menu.open { display: flex; }
  .navbar { position: relative; }
}

/* ── Hero ───────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 400px at 80% -10%, var(--c-primary-50), transparent),
    linear-gradient(180deg, var(--c-surface), var(--c-bg));
}
.hero-inner {
  display: grid; gap: 2rem; align-items: center; padding: clamp(2.5rem, 6vw, 5rem) 0;
}
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.1fr .9fr; } }
.hero h1 { margin-bottom: .5rem; }
.hero .eyebrow { color: var(--c-primary-600); font-weight: 800; margin-bottom: .5rem; }
.hero-highlight { color: var(--c-primary-600); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.hero-art {
  aspect-ratio: 4/3; border-radius: var(--radius-lg); background: var(--c-surface-2);
  border: 1px solid var(--c-border); display: grid; place-items: center; box-shadow: var(--shadow);
}

/* ── Stat cards ─────────────────────────────────────── */
.stat { text-align: center; }
.stat-value { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--c-primary-600); }
.stat-label { color: var(--c-text-muted); font-size: .95rem; }

/* ── Steps ──────────────────────────────────────────── */
.step { position: relative; padding-top: 1rem; }
.step-num {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-accent-500); color: #fff; font-weight: 800; margin-bottom: .8rem;
}

/* ── Footer ─────────────────────────────────────────── */
.site-footer { background: var(--c-text); color: #d9e2dc; margin-top: 3rem; }
.site-footer a { color: #cfe3d6; }
.footer-grid { display: grid; gap: 2rem; padding: 3rem 0 2rem; }
@media (min-width: 720px)  { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-title { color: #fff; font-weight: 800; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 1.2rem 0;
  text-align: center; font-size: .88rem; color: #9fb2a7;
}

/* ── Ribbon (شعار پایین صفحه) ───────────────────────── */
.ribbon {
  background: var(--c-accent-600); color: #fff; text-align: center;
  padding: .9rem 1rem; font-weight: 700;
}

/* ── محتوای غنی (خروجی ادیتور) ──────────────────────── */
.content-body { font-size: 1.08rem; line-height: 2; color: var(--c-text); }
.content-body h2 { margin: 1.8rem 0 .8rem; }
.content-body h3 { margin: 1.4rem 0 .6rem; }
.content-body p { margin: 0 0 1.1rem; }
.content-body ul, .content-body ol { margin: 0 0 1.1rem; padding-inline-start: 1.5rem; }
.content-body li { margin-bottom: .4rem; }
.content-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.content-body a { color: var(--c-accent-600); text-decoration: underline; }
.content-body blockquote {
  margin: 1.5rem 0; padding: .8rem 1.2rem;
  border-inline-start: 4px solid var(--c-primary-500);
  background: var(--c-primary-50); border-radius: var(--radius-sm); color: var(--c-primary-700);
}
.content-body table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; }
.content-body th, .content-body td { border: 1px solid var(--c-border); padding: .6rem .8rem; text-align: start; }
.content-body th { background: var(--c-surface-2); }

/* ── خروجی عمومی صفحه‌ساز ───────────────────────────── */
.pb-section { position: relative; overflow: hidden; }
.pb-section__container { width: 100%; margin-inline: auto; }
.pb-section h1, .pb-section h2, .pb-section h3 { color: inherit; }
.pb-section .text-muted { color: color-mix(in srgb, currentColor 68%, transparent); }
.pb-hero { display: grid; align-items: center; gap: clamp(1.5rem, 5vw, 4rem); }
.pb-hero__content { max-width: 680px; }
.pb-hero__image { width: 100%; max-height: 520px; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-lg); }
.pb-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }
.pb-stats, .pb-cards, .pb-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.25rem; margin-top: 1.8rem; }
.pb-heading, .pb-cta { max-width: 780px; margin-inline: auto; }
.pb-image-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.pb-image-text > img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 18px; }
.pb-faq { display: grid; gap: .75rem; margin-top: 1.5rem; }
.pb-faq details { border: 1px solid var(--c-border); border-radius: 12px; background: rgba(255,255,255,.72); padding: 1rem 1.2rem; text-align: start; }
.pb-faq summary { cursor: pointer; font-weight: 800; }
.pb-faq p { margin: .8rem 0 0; color: var(--c-text-muted); }
.pb-video { display: block; width: min(100%, 980px); max-height: 620px; margin: 1.5rem auto 0; border-radius: 18px; background: #111; }
.pb-divider hr { margin: 0; border: 0; border-top: 1px solid var(--c-border); }
/* افکت ورود هنگام اسکرول (Scroll Reveal). فقط وقتی JS فعال است پنهان می‌شوند تا بدون JS محتوا دیده شود. */
html.pb-js .pb-animate-fade,
html.pb-js .pb-animate-slide-up,
html.pb-js .pb-animate-zoom { opacity: 0; will-change: transform, opacity; }
.pb-animate-fade.pb-in { animation: pbFade .6s ease both; }
.pb-animate-slide-up.pb-in { animation: pbSlideUp .7s cubic-bezier(.22,.61,.36,1) both; }
.pb-animate-zoom.pb-in { animation: pbZoom .6s ease both; }
@keyframes pbFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pbSlideUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes pbZoom { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html.pb-js .pb-animate-fade, html.pb-js .pb-animate-slide-up, html.pb-js .pb-animate-zoom { opacity: 1 !important; animation: none !important; }
}
/* شمارنده متحرک اعداد */
.stat-value[data-count-to] { font-variant-numeric: tabular-nums; }
@media (min-width: 850px) { .pb-hero { grid-template-columns: 1.05fr .95fr; } }
@media (max-width: 720px) { .pb-image-text { grid-template-columns: 1fr; } }
