/* ================= پالت و فونت ================= */
:root {
  --bg: #faf7f2;
  --bg-dark: #191817;
  --bg-mute: #f1ece3;
  --ink: #22201d;
  --ink-soft: #6b665e;
  --accent: #d64a1e;      /* نارنجی-قرمز اصلی */
  --accent-deep: #a83a16;
  --line: #e2dbce;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

@font-face { font-family: "Vazirmatn"; src: url("fonts/Vazirmatn-Regular.ttf"); font-weight: 400; }
@font-face { font-family: "Vazirmatn"; src: url("fonts/Vazirmatn-Bold.ttf"); font-weight: 700; }

html { scroll-behavior: smooth; }
body {
  font-family: "Vazirmatn", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.9;
  font-size: 16px;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }

/* ================= تاپ‌بار ================= */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,247,242,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 700; font-size: 20px; letter-spacing: -0.5px; }
.brand span { color: var(--accent); margin-inline-start: 6px; }
.nav { display: flex; gap: 26px; font-size: 15px; }
.nav a { padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--accent); color: var(--accent); }
.menu-btn { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* ================= HERO ================= */
.hero { padding: 72px 0 0; overflow: hidden; }
.hero-kicker { color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.hero-title {
  font-size: clamp(38px, 7vw, 76px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -1px;
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-text { max-width: 560px; color: var(--ink-soft); margin-top: 18px; font-size: 17px; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-marquee {
  margin-top: 56px;
  border-block: 1px solid var(--line);
  background: var(--bg-dark);
  color: var(--bg);
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track { display: inline-block; padding: 14px 0; animation: slide 26s linear infinite; font-size: 22px; font-weight: 700; letter-spacing: 1px; }
.marquee-track span { margin-inline: 24px; }
.marquee-track .dot { color: var(--accent); }
@keyframes slide { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ================= سکشن‌ها ================= */
.section { padding: 84px 0; }
.section-dark { background: var(--bg-dark); color: var(--bg); }
.section-mute { background: var(--bg-mute); }
.sec-eyebrow { color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.sec-title { font-size: clamp(28px, 4vw, 44px); font-weight: 700; line-height: 1.4; letter-spacing: -0.5px; }
.sec-title-light { color: var(--bg); }
.sec-lead { color: var(--ink-soft); margin-top: 10px; max-width: 540px; }
.section-dark .sec-lead { color: #b9b3a8; }
.center { text-align: center; margin-top: 40px; }

/* ================= درباره ================= */
.about-grid { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: center; }
.portrait-img {
  aspect-ratio: 3/4; width: 100%; object-fit: cover; object-position: center 20%;
  border-radius: var(--radius); border: 1px solid var(--line); display: block;
}
.about-text { color: var(--ink-soft); margin-top: 16px; max-width: 620px; }
.about-stats { display: flex; gap: 40px; margin-top: 32px; }
.about-stats b { display: block; font-size: 30px; color: var(--accent); }
.about-stats span { font-size: 13px; color: var(--ink-soft); }

/* ================= تیزر دوره ================= */
.course-sub { color: #b9b3a8; margin-top: 10px; }
.course-chapters { margin-top: 40px; display: grid; gap: 14px; }
.chapter-strip {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: #23211f; border: 1px solid #322f2c; border-radius: var(--radius);
  padding: 16px 20px; font-size: 15px;
}
.chapter-strip .less { color: #b9b3a8; font-size: 13px; }
.chapter-strip:hover { border-color: var(--accent); }

/* ================= پلن‌ها ================= */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.plan {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  background: #fff; display: flex; flex-direction: column; position: relative;
}
.plan--hl { border: 2px solid var(--accent); box-shadow: 0 12px 30px rgba(214,74,30,.12); }
.plan-badge {
  position: absolute; top: -13px; inset-inline-start: 24px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
  padding: 3px 12px; border-radius: 20px;
}
.plan h3 { font-size: 22px; }
.plan-tagline { color: var(--ink-soft); font-size: 14px; }
.plan-price { font-weight: 700; color: var(--accent); margin: 14px 0 18px; font-size: 17px; }
.plan ul { list-style: none; flex: 1; }
.plan li { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.plan li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.plan .btn { margin-top: 20px; text-align: center; }

/* ================= مشتریان ================= */
.clients-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.client-cell {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  min-height: 88px; display: grid; place-items: center;
  font-weight: 700; color: var(--ink-soft); font-size: 15px;
}
.testimonials { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tst {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; font-size: 14.5px;
}
.tst .who { margin-top: 14px; font-weight: 700; color: var(--accent); font-size: 13px; }

/* ================= فوتر ================= */
.footer { background: var(--bg-dark); color: var(--bg); padding: 72px 0 40px; }
.footer-title { font-size: clamp(30px, 5vw, 52px); font-weight: 700; }
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1.3fr 0.8fr;
  gap: 40px; margin-top: 44px; padding-top: 40px;
  border-top: 1px solid #322f2c;
}
.footer-col-title { font-size: 15px; font-weight: 700; color: var(--accent); margin-bottom: 16px; }
.footer-list { list-style: none; }
.footer-list li { margin-bottom: 10px; font-size: 14.5px; }
.footer-list a { color: #cfc9bf; }
.footer-list a:hover { color: var(--accent); }
.footer-addr { color: #cfc9bf; font-size: 14.5px; max-width: 320px; }
.footer-hours { color: #8f8a82; font-size: 13px; margin-top: 12px; }
.footer-copy { margin-top: 56px; color: #7c766d; font-size: 13px; border-top: 1px solid #322f2c; padding-top: 24px; }

/* ================= دکمه‌ها ================= */
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 40px;
  font-weight: 700; font-size: 15px; transition: .2s;
}
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: var(--accent-deep); }
.btn-ghost { border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-block { display: block; text-align: center; }

/* ================= صفحه دوره ================= */
.course-page { background: var(--bg); }
.course-hero { background: var(--bg-dark); color: var(--bg); padding: 48px 0 40px; }
.back-link { font-size: 14px; color: #b9b3a8; }
.back-link:hover { color: var(--accent); }
.course-hero h1 { font-size: clamp(28px, 4.5vw, 46px); margin-top: 14px; }
.course-hero p { color: #b9b3a8; margin-top: 6px; }
.course-meta { display: flex; gap: 18px; margin-top: 18px; font-size: 14px; color: #d8d2c8; flex-wrap: wrap; align-items: center; }
.price-badge { background: var(--accent); color: #fff; font-weight: 700; padding: 4px 16px; border-radius: 20px; }

.course-layout { display: grid; grid-template-columns: 340px 1fr; gap: 28px; padding-block: 40px 80px; align-items: start; }

.curriculum { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 84px; max-height: calc(100vh - 110px); overflow: auto; }
.cur-title { font-size: 17px; margin-bottom: 14px; }
.sec-group { margin-bottom: 18px; }
.sec-name { font-size: 13.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 8px; }
.lesson {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  width: 100%; text-align: start; background: none; border: none; cursor: pointer;
  font: inherit; font-size: 14.5px; padding: 10px 12px; border-radius: 10px; color: var(--ink);
}
.lesson:hover { background: var(--bg-mute); }
.lesson.active { background: var(--accent); color: #fff; }
.lesson .dur { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.lesson.active .dur { color: #ffe1d6; }
.free-mini { font-size: 11px; color: var(--accent); font-weight: 700; margin-inline-start: 6px; }
.enroll-box { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; font-size: 14px; color: var(--ink-soft); }
.enroll-box .btn { margin-top: 12px; }

.player-shell { background: #141312; border-radius: var(--radius); overflow: hidden; }
.video-stage { aspect-ratio: 16/9; background: #000; position: relative; }
.video-stage iframe, .video-stage video { width: 100%; height: 100%; border: 0; display: block; }
.player-empty {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center;
  gap: 12px; color: #8f8a82; text-align: center; padding: 20px; font-size: 15px;
}
.play-big {
  width: 74px; height: 74px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 26px;
}
.now-playing { padding: 18px 22px; color: var(--bg); }
.np-label { font-size: 12px; color: #8f8a82; }
.now-playing h3 { font-size: 18px; margin-top: 2px; }
.free-badge {
  display: inline-block; margin-top: 10px; background: rgba(214,74,30,.18); color: #ff9d7a;
  font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 20px;
}
.player-hint { color: var(--ink-soft); font-size: 13.5px; margin-top: 14px; }

/* ================= ریسپانسیو ================= */
@media (max-width: 900px) {
  .nav {
    display: none; position: absolute; top: 64px; inset-inline: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 18px 20px; gap: 4px;
  }
  .nav.open { display: flex; }
  .menu-btn { display: block; }
  .about-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .course-layout { grid-template-columns: 1fr; }
  .curriculum { position: static; max-height: none; }
  .about-stats { gap: 24px; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ================= فرم‌ها ================= */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 14.5px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form-error { color: #c22; font-size: 13.5px; margin-bottom: 14px; font-weight: 700; }
.btn-big { padding: 15px 30px; font-size: 16px; }

/* فرم مشاوره در صفحه اصلی */
.consult-box {
  margin-top: 56px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px;
}
.consult-box h3 { font-size: 22px; }
.consult-lead { color: var(--ink-soft); font-size: 14.5px; margin: 6px 0 24px; }
.consult-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.consult-ok { color: #1a7a3c; font-weight: 700; font-size: 14.5px; margin-top: 14px; }

/* ================= مشتریان با لوگو ================= */
.client-cell { flex-direction: column; gap: 8px; display: flex; align-items: center; justify-content: center; padding: 18px 10px; }
.client-photo {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--line);
}
.client-logo { max-height: 44px; max-width: 80%; object-fit: contain; }
.client-initial {
  width: 46px; height: 46px; border-radius: 50%; background: var(--bg-mute);
  border: 1px solid var(--line); display: grid; place-items: center;
  font-size: 20px; font-weight: 700; color: var(--accent);
}
.client-name { font-size: 12.5px; color: var(--ink-soft); font-weight: 400; }
.client-role { font-size: 11px; color: var(--ink-soft); font-weight: 400; text-align: center; }
.client-ig {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink-soft); background: #fff;
  transition: color .2s, border-color .2s;
}
.client-ig:hover { color: var(--accent); border-color: var(--accent); }

/* ================= صفحه پرداخت ================= */
.checkout-layout { display: grid; grid-template-columns: 340px 1fr; gap: 28px; padding-block: 40px 80px; align-items: start; }
.order-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 84px; }
.order-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.order-price { color: var(--accent); white-space: nowrap; }
.order-notes { list-style: none; margin-top: 14px; font-size: 13.5px; color: var(--ink-soft); }
.order-notes li { padding: 5px 0; }
.order-notes li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.order-support { margin-top: 18px; font-size: 13.5px; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 14px; }
.order-support a { color: var(--accent); font-weight: 700; }
.pay-form-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.pay-secure { text-align: center; color: var(--ink-soft); font-size: 13px; margin-top: 14px; }
.success-box { text-align: center; padding: 30px 10px; }
.success-icon {
  width: 64px; height: 64px; border-radius: 50%; background: #1a7a3c; color: #fff;
  display: inline-grid; place-items: center; font-size: 30px; margin-bottom: 16px;
}
.success-box h3 { font-size: 22px; margin-bottom: 8px; }
.success-box p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 22px; }

@media (max-width: 900px) {
  .consult-grid { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .order-box { position: static; }
}


/* ================= بلاگ ================= */
.blog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.blog-grid-page { margin-top: 0; }
.blog-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; text-decoration: none; color: inherit; display: flex;
  flex-direction: column; gap: 10px; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.blog-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(34,32,29,.08); }
.blog-meta { font-size: 12.5px; color: var(--ink-soft); }
.blog-card h3 { font-size: 18.5px; line-height: 1.6; }
.blog-excerpt { font-size: 14px; color: var(--ink-soft); line-height: 1.9; flex: 1; }
.blog-more { font-size: 13.5px; font-weight: 700; color: var(--accent); }
.article-body { max-width: 720px; margin: 0 auto; font-size: 16.5px; line-height: 2.2; color: var(--ink); }
.article-body p { margin-bottom: 22px; }
.article-body h2 { font-size: 21px; margin: 34px 0 14px; padding-right: 14px; border-right: 3px solid var(--accent); }
.article-nav { text-align: center; margin-top: 40px; }
.empty-note { text-align: center; color: var(--ink-soft); padding: 40px 0; }
.back-link { color: #b9b3a8; font-size: 13.5px; text-decoration: none; display: inline-block; margin-bottom: 14px; }
.back-link:hover { color: var(--bg); }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ================= FAQ ================= */
.faq-wrap { max-width: 780px; }
.faq-group { margin-top: 40px; }
.faq-group:first-child { margin-top: 0; }
.faq-group-title { font-size: 20px; margin-bottom: 16px; color: var(--accent); }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 16px 18px; font-weight: 700; font-size: 15px;
  list-style: none; position: relative; user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  font-size: 20px; font-weight: 400; color: var(--accent); transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-a { padding: 14px 18px 18px; font-size: 14.5px; line-height: 2; color: var(--ink-soft); }
.faq-a a { color: var(--accent); }

/* ================= Privacy ================= */
.policy-wrap { max-width: 780px; }
.policy-updated { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 32px; }
.policy-wrap h2 { font-size: 19px; margin: 32px 0 12px; }
.policy-wrap h2:first-of-type { margin-top: 0; }
.policy-wrap p, .policy-wrap li { font-size: 14.5px; line-height: 2.1; color: var(--ink-soft); }
.policy-wrap ul { padding-right: 22px; margin: 10px 0; }
.policy-wrap li { margin-bottom: 6px; list-style: disc; }
.policy-wrap b { color: var(--ink); }
.policy-wrap a { color: var(--accent); }
.policy-contact {
  margin-top: 40px; background: var(--bg-mute); border-radius: 12px;
  padding: 24px; text-align: center;
}
.policy-contact p { margin-bottom: 14px; color: var(--ink); font-weight: 700; }

/* ================= Footer legal links ================= */
.footer-legal {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
}
.footer-legal a { color: rgba(255,255,255,.65); text-decoration: none; }
.footer-legal a:hover { color: #fff; }
.footer-legal .sep { margin: 0 10px; color: rgba(255,255,255,.3); }
