@font-face {
  font-family: 'IRANYekan';
  src: url('/fonts/IRANYekanRegular.ttf') format('truetype');
  font-weight: 400;
}
@font-face {
  font-family: 'IRANYekan';
  src: url('/fonts/IRANYekanMedium.ttf') format('truetype');
  font-weight: 500;
}
@font-face {
  font-family: 'IRANYekan';
  src: url('/fonts/IRANYekanBold.ttf') format('truetype');
  font-weight: 700;
}
@font-face {
  font-family: 'IRANYekan';
  src: url('/fonts/IRANYekanExtraBold.ttf') format('truetype');
  font-weight: 800;
}

:root {
  --ink: #241b2f;
  --ink-soft: #5c4a70;
  --indigo: #8b3fd1;
  --indigo-deep: #5b21b6;
  --terracotta: #d63384;
  --gold: #c94fbf;
  --cream: #faf5fb;
  --card: #ffffff;
  --line: #eee0f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: 'IRANYekan', 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 2;
  -webkit-font-smoothing: antialiased;
  direction: rtl;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 245, 251, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--indigo-deep); }
.brand .brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: transparent;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.brand-mark { display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.footer-brand .brand-mark { width: 30px; height: 30px; }
.nav { display: flex; gap: 18px; align-items: center; }
.nav a { font-size: 13.5px; color: var(--ink-soft); font-weight: 500; }
.nav a:hover { color: var(--terracotta); }
.nav .btn-primary {
  background: var(--indigo-deep); color: #fff; padding: 8px 18px; border-radius: 10px; font-weight: 700;
}
.nav .btn-primary:hover { background: var(--indigo); color: #fff; }

/* hero for subpages */
.page-hero {
  background: linear-gradient(135deg, var(--indigo-deep), var(--indigo));
  color: #fff; padding: 48px 0 42px; text-align: center;
}
.page-hero .crumb { font-size: 12.5px; opacity: 0.7; margin-bottom: 8px; }
.page-hero h1 { font-size: 30px; font-weight: 800; }
.page-hero p { font-size: 14.5px; opacity: 0.85; max-width: 620px; margin: 10px auto 0; }

/* content */
.section { padding: 34px 0; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 28px; margin-bottom: 20px;
}
.card h2 { font-size: 18px; font-weight: 800; color: var(--indigo-deep); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.card h2 .mark { width: 26px; height: 26px; color: var(--terracotta); flex-shrink: 0; }
.card h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin: 16px 0 6px; }
.card p, .card li { font-size: 14px; color: var(--ink-soft); }
.card ul, .card ol { padding-right: 22px; }
.card li { margin-bottom: 6px; }
.note {
  background: #fff5fb; border: 1px solid #f3d9f0; border-radius: 12px;
  padding: 14px 18px; font-size: 13.5px; color: #8a3a76; margin: 14px 0;
}

/* two-column grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.tile .ic { width: 42px; height: 42px; border-radius: 12px; background: #f3e4f5; color: var(--terracotta); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.tile h3 { font-size: 15px; font-weight: 800; color: var(--indigo-deep); margin-bottom: 6px; }
.tile p { font-size: 13.5px; color: var(--ink-soft); }

/* faq */
.faq-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.faq-item summary { padding: 14px 18px; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--indigo-deep); list-style: none; }
.faq-item summary::before { content: '+'; margin-left: 10px; color: var(--terracotta); font-weight: 800; }
.faq-item .faq-body { padding: 0 18px 16px; font-size: 13.5px; color: var(--ink-soft); }

/* contact */
.contact-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.contact-row:last-child { border-bottom: 0; }
.contact-row .ic { width: 38px; height: 38px; border-radius: 10px; background: #f3e4f5; color: var(--terracotta); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-row b { color: var(--indigo-deep); }

/* footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.72); padding: 44px 0 28px; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 26px; }
.footer-brand { font-size: 17px; font-weight: 800; color: #fff; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.footer-desc { font-size: 13px; max-width: 300px; }
.site-footer h4 { color: #fff; font-size: 13.5px; font-weight: 800; margin-bottom: 12px; }
.site-footer a { display: block; font-size: 13px; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 32px; padding-top: 20px; text-align: center; font-size: 12.5px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 11px; font-size: 14px; font-weight: 700; cursor: pointer; border: none; font-family: inherit; }
.btn-primary { background: var(--indigo-deep); color: #fff; }
.btn-terracotta { background: var(--terracotta); color: #fff; }
.btn:hover { filter: brightness(1.08); }

@media (max-width: 768px) {
  .grid-2, .grid-3, .footer-grid { grid-template-columns: 1fr; }
  .nav a:not(.btn-primary) { display: none; }
  .page-hero h1 { font-size: 24px; }
}
