/* ============ مطب شما — طراحی با الهام از معماری و کاشی‌کاری ایرانی ============
   پالت: لاجورد (ink)، فیروزه‌ای (teal)، طلایی (gold)، سفید گچی (plaster)
   فونت: 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-Bold.woff2") format("woff2");
  font-weight: 700; font-display: swap;
}

:root {
  --ink: #0c2a47;
  --ink-2: #123c63;
  --teal: #14a3a0;
  --teal-d: #0b7377;
  --gold: #e7c36b;
  --gold-d: #b98a24;
  --plaster: #f3f8f7;
  --paper: #ffffff;
  --line: #d5e3e1;
  --text: #17293b;
  --muted: #526879;
  --radius: 14px;
  --font: "Vazirmatn", "IRANSansX", "IRANSans", "Segoe UI", Tahoma, "Noto Naskh Arabic", system-ui, sans-serif;

  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%2314a3a0' stroke-opacity='.2' stroke-width='1.2'%3E%3Cpath d='M14 14h36v36H14z'/%3E%3Cpath d='M32 5l27 27-27 27L5 32z'/%3E%3C/g%3E%3C/svg%3E");
  --star-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23e7c36b' stroke-opacity='.13' stroke-width='1.2'%3E%3Cpath d='M14 14h36v36H14z'/%3E%3Cpath d='M32 5l27 27-27 27L5 32z'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.95;
  color: var(--text); background: var(--paper); -webkit-text-size-adjust: 100%;
}
img, svg { max-width: 100%; }
a { color: var(--teal-d); }
h1, h2, h3 { line-height: 1.5; margin: 0; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold-d); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; top: -60px; inset-inline-start: 12px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { top: 8px; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }

.tile-bg { background-color: var(--plaster); background-image: var(--star); }
.tile-bg-dark { background-color: var(--ink); background-image: var(--star-dark); }

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 16px/1 var(--font); padding: 15px 26px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: background .2s, color .2s, border-color .2s;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #f1d27f; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- هدر ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 38px; }
.brand-name { font-weight: 700; font-size: 22px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--teal-d); }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- قهرمان ---------- */
.hero { padding: 64px 0 80px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.kicker { color: var(--teal-d); font-weight: 700; margin-bottom: 14px; font-size: 16px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 700; letter-spacing: -.3px; }
.lead { margin-top: 20px; font-size: 19px; color: var(--muted); max-width: 40em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--ink-2); font-size: 15px; font-weight: 500; }
.hero-facts li { padding-inline-start: 22px; position: relative; }
.hero-facts li::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; width: 11px; height: 11px; margin-top: -6px; background: var(--teal); transform: rotate(45deg); }

.hero-arch { position: relative; width: min(100%, 420px); margin-inline: auto; aspect-ratio: 400 / 540; }
.arch-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.arch-panel { position: absolute; inset: 27% 11% 8%; color: #fff; display: flex; flex-direction: column; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-bottom: 1px solid rgba(231,195,107,.45); padding-bottom: 8px; font-weight: 700; }
.panel-head small { color: var(--gold); font-weight: 500; font-size: 13px; }
.panel-list { margin-top: 6px; flex: 1; }
.panel-list li { display: grid; grid-template-columns: 46px 1fr auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px dashed rgba(255,255,255,.18); font-size: 14px; line-height: 1.5; }
.panel-list time { color: var(--gold); font-weight: 700; }
.panel-list b { display: block; font-weight: 700; }
.panel-list span { color: #b8cadb; font-size: 12.5px; }
.st { font-style: normal; font-size: 11.5px; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.st-done { background: #1d6b4f; } .st-go { background: var(--teal); } .st-ok { background: #2b5a8c; } .st-wait { background: #6c5a1e; }
.panel-foot { display: flex; justify-content: space-between; align-items: center; background: rgba(20,163,160,.22); border: 1px solid rgba(20,163,160,.6); border-radius: 10px; padding: 8px 12px; margin-top: 8px; font-size: 14px; }
.panel-foot b { color: var(--gold); }
.panel-note { font-size: 11px; color: #8fa7bd; text-align: center; margin-top: 6px; line-height: 1.4; }

/* ---------- بخش‌ها ---------- */
.sec { padding: 84px 0; }
.sec-tint { background: var(--plaster); }
.sec-title { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; }
.sec-title.light { color: #fff; }
.sec-sub { margin-top: 14px; color: var(--muted); max-width: 46em; }
.sec-sub.light { color: #c6d6e5; }

/* مخاطبان */
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.aud { position: relative; padding: 34px 28px 30px; border: 1px solid var(--line); border-radius: 160px 160px var(--radius) var(--radius); background: var(--paper); text-align: center; }
.aud-arch { width: 44px; height: 52px; color: var(--teal); margin-bottom: 8px; }
.aud h3 { font-size: 21px; margin-bottom: 10px; }
.aud p { color: var(--muted); font-size: 16px; line-height: 1.9; }
.aud-1 .aud-arch { color: var(--gold-d); }
.aud-2 .aud-arch { color: var(--ink); }

/* امکانات */
.feat-layout { display: grid; grid-template-columns: 270px 1fr; gap: 44px; margin-top: 44px; align-items: start; }
.feat-index { position: sticky; top: 90px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 8px 12px; max-height: calc(100vh - 110px); overflow: auto; }
.feat-index-title { padding: 0 14px 8px; font-weight: 700; color: var(--ink); font-size: 15px; }
.feat-index a { display: block; padding: 7px 14px; text-decoration: none; color: var(--muted); font-size: 14.5px; border-radius: 8px; line-height: 1.6; }
.feat-index a:hover, .feat-index a.on { background: var(--plaster); color: var(--teal-d); font-weight: 700; }
.feat-list { display: grid; gap: 22px; }
.feat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 32px; border-inline-start: 5px solid var(--teal); }
.feat h3 { font-size: 23px; }
.feat-lead { margin-top: 10px; color: var(--muted); }
.star-list { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; }
.star-list li { position: relative; padding-inline-start: 24px; font-size: 16px; line-height: 1.85; }
.star-list li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .8em; width: 9px; height: 9px; background: var(--teal); transform: rotate(45deg); }
.feat-out { margin-top: 18px; padding: 12px 16px; background: var(--plaster); border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: 16px; }

/* مسیر پذیرش */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 40px; counter-reset: x; }
.flow li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.flow-n { position: relative; width: 36px; height: 36px; display: grid; place-items: center; color: var(--gold); font-weight: 700; font-size: 15px; z-index: 0; }
.flow-n::before { content: ""; position: absolute; inset: 4px; background: var(--ink); transform: rotate(45deg); border-radius: 4px; z-index: -1; }
.flow li b { display: block; font-size: 16px; line-height: 1.6; color: var(--ink); }
.flow li small { display: block; color: var(--muted); font-size: 14px; line-height: 1.7; margin-top: 2px; }

/* اعتماد */
.sec-night { color: #fff; }
.trust { display: grid; grid-template-columns: .9fr 1.4fr; gap: 56px; align-items: start; }
.trust-grid { display: grid; gap: 22px; }
.trust-grid div { border-inline-start: 3px solid var(--gold); padding-inline-start: 20px; }
.trust-grid h3 { color: var(--gold); font-size: 20px; margin-bottom: 6px; }
.trust-grid p { color: #d6e2ee; font-size: 16px; }

/* شروع */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.step { padding: 22px 20px; border-top: 4px solid var(--teal); background: var(--plaster); border-radius: 0 0 var(--radius) var(--radius); }
.step b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15.5px; line-height: 1.85; }

/* سؤالات */
.faq { margin-top: 32px; display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: var(--teal-d); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 18px; color: var(--muted); }

/* فرم دمو */
.demo-sec { padding: 90px 0; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.demo-phone { margin-top: 24px; color: #fff; }
.demo-phone a { color: var(--gold); font-weight: 700; }
.demo-form { background: var(--paper); border-radius: 22px 22px 22px 22px; padding: 30px 28px 26px; box-shadow: 0 24px 60px rgba(0,0,0,.28); border-top: 6px solid var(--gold); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; color: var(--ink); }
.req { color: #b3261e; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.6 var(--font); color: var(--text); background: #fbfdfd;
  border: 1.5px solid #b9cfcc; border-radius: 10px; padding: 11px 14px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20,163,160,.25); }
.field .invalid { border-color: #b3261e; }
.err { color: #b3261e; font-size: 14px; min-height: 0; margin-top: 4px; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-weight: 700; min-height: 1.6em; text-align: center; }
.form-status.ok { color: #1d6b4f; }
.form-status.bad { color: #b3261e; }

/* پایین صفحه */
.foot { background: #081c31; color: #c6d6e5; padding: 34px 0 30px; border-top: 4px solid var(--gold); }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 14px 30px; align-items: center; }
.foot-brand { display: flex; gap: 12px; align-items: center; color: #fff; }
.foot-brand b { display: block; font-size: 19px; }
.foot-brand span { font-size: 14px; color: #8fb3cc; }
.foot-copy { font-size: 14px; text-align: end; }
.foot-power { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); text-align: center; font-size: 15px; }
.foot-power a { color: var(--gold); font-weight: 700; text-decoration: none; margin-inline-start: 6px; }
.foot-power a:hover { text-decoration: underline; }

/* ---------- واکنش‌گرا ---------- */
@media (max-width: 1020px) {
  .hero-grid, .demo-grid, .trust { grid-template-columns: 1fr; gap: 40px; }
  .hero-arch { order: -1; width: min(100%, 340px); }
  .feat-layout { grid-template-columns: 1fr; }
  .feat-index { display: none; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .aud-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 18px; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; }
  .sec, .demo-sec { padding: 56px 0; }
  .hero { padding: 36px 0 52px; }
  .star-list { grid-template-columns: 1fr; }
  .feat { padding: 24px 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .foot-in { grid-template-columns: 1fr; text-align: center; }
  .foot-brand { justify-content: center; }
  .foot-copy { text-align: center; }
}
@media (max-width: 480px) {
  .flow, .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
