/* =========================================================
   ویراستو — Design System
   Concept: proofreading & ink. A Persian-turquoise accent
   (fīrūzeh, the colour of Persian tilework) for the brand,
   and the red spellcheck squiggle as the one signature mark.
   ========================================================= */

@font-face {
  font-family: 'Dana';
  src: url('fonts/dana-regular.ttf');
  font-display: swap;
}

:root {
  /* Ink */
  --ink: #14122a;
  --ink-2: #1d1a3d;
  --ink-3: #292460;

  /* Paper */
  --paper: #f1ece0;
  --paper-2: #e8e1d0;
  --paper-ink: #211d33;

  /* Accents */
  --firuze: #2fb6ac;
  --firuze-deep: #1f948c;
  --redpen: #e1543a;

  /* Text on dark */
  --cream: #f4f0e6;
  --muted: #b3aed6;

  --radius: 10px;
  --wrap: 880px;
}

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

html, body {
  font-family: 'Vazirmatn', 'Dana', Tahoma, 'Segoe UI', sans-serif;
  font-size: 16px;
  background: var(--ink);
  color: var(--cream);
}

body { direction: rtl; }

ul, li { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.display {
  font-family: 'Dana', 'Vazirmatn', Tahoma, sans-serif;
}

/* ---------- layout shell ---------- */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(20, 18, 42, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(244, 240, 230, 0.08);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.brand span {
  font-family: 'Dana', 'Vazirmatn', sans-serif;
  font-size: 19px;
  letter-spacing: 0.5px;
  color: var(--cream);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 14px;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover {
  color: var(--cream);
  background: rgba(244, 240, 230, 0.06);
}

.nav-links a.is-accent {
  color: var(--firuze);
}

.nav-links a.is-accent:hover {
  background: rgba(47, 182, 172, 0.12);
}

/* ---------- hero (home) ---------- */

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 64px 0 80px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(20,18,42,0.86) 0%, rgba(20,18,42,0.94) 55%, var(--ink) 100%),
    url("img/PassionateTeamOfVirasto.png") center 18% / cover no-repeat;
}

.hero-inner {
  max-width: 620px;
  margin: 0 auto;
  opacity: 0;
  animation: rise 0.9s ease 0.15s forwards;
}

.hero-title {
  position: relative;
  display: inline-block;
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.1;
}

.hero-title::after {
  content: "";
  display: block;
  width: 62%;
  height: 14px;
  margin: 2px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20'%3E%3Cpath d='M0 12 Q15 2 30 12 T60 12 T90 12 T120 12 T150 12 T180 12 T210 12 T240 12 T270 12 T300 12' stroke='%23e1543a' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hero-tagline {
  margin-top: 22px;
  font-size: 18px;
  color: var(--muted);
}

.cta-row {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--firuze);
  color: #0c2422;
  font-weight: 700;
}

.btn-primary:hover { background: var(--firuze-deep); }

.btn-ghost {
  border-color: rgba(244, 240, 230, 0.28);
  color: var(--cream);
}

.btn-ghost:hover {
  border-color: var(--firuze);
  color: var(--firuze);
}

.more-link {
  display: inline-block;
  margin-top: 30px;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid rgba(179, 174, 214, 0.4);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.more-link:hover {
  color: var(--firuze);
  border-color: var(--firuze);
}

/* ---------- inner pages (about / contact / rules) ---------- */

.page-hero {
  padding: 72px 0 28px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 400;
  color: var(--cream);
}

.breadcrumb {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb:hover { color: var(--firuze); }

.content-shell {
  flex: 1;
  padding: 12px 0 90px;
}

.card {
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.28);
}

.card p {
  line-height: 2;
  font-size: 15px;
  text-align: justify;
}

.card p + p { margin-top: 18px; }

.card .lede {
  margin-top: 22px;
  font-family: 'Dana', 'Vazirmatn', sans-serif;
  font-size: 22px;
  text-align: center;
  color: var(--firuze-deep);
}

.about-photo {
  margin-top: 28px;
  border-radius: 8px;
  overflow: hidden;
}

.about-photo img { width: 100%; }

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 420px;
  margin: 0 auto;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 17px;
}

.contact-row .bi {
  color: var(--firuze-deep);
  font-size: 20px;
}

/* ---------- footer ---------- */

.site-footer {
  text-align: center;
  padding: 22px 0;
  font-size: 12px;
  color: rgba(179, 174, 214, 0.5);
}

/* ---------- motion ---------- */

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

@media (prefers-reduced-motion: reduce) {
  .hero-inner { animation: none; opacity: 1; }
}

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  .nav-links { justify-content: center; width: 100%; order: 3; }
  .card { padding: 28px 22px; }
}
