@import url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css");

:root {
  --c-primary: #1b3a4b;
  --c-primary-2: #122833;
  --navy: #1b3a4b;
  --navy-2: #122833;
  --c-gold: #2a9d8f;
  --c-gold-2: #34b1a1;
  --gold: #2a9d8f;
  --c-bg: #f5f7fa;
  --cream: #f5f7fa;
  --neo: #ffffff;
  --c-paper: #ffffff;
  --paper: #ffffff;
  --c-text: #1a1a1a;
  --ink: #1a1a1a;
  --c-muted: #64748b;
  --muted: #64748b;
  --c-line: #e8ecf0;
  --line: #d3dae2;
  --c-ok: #2f6f4e;
  --c-danger: #9b3b32;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-out: 0 8px 24px rgba(27, 58, 75, 0.06);
  --shadow-in: none;
  --shadow: 0 8px 24px rgba(27, 58, 75, 0.06);
  --font: Vazirmatn, Tahoma, sans-serif;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.8;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-gold); }
button, input, textarea, select { font: inherit; }

.container { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-line);
  box-shadow: 0 8px 24px rgba(27, 58, 75, 0.04);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--c-primary);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.logo img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid var(--c-line);
  padding: 4px;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav .btn-link {
  padding: 8px 12px;
  color: var(--c-primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
}
.nav a:hover { background: #eef2f5; color: var(--c-primary); }
.nav .btn { margin-right: 4px; }

.nav-mobile { display: none; position: relative; }
.nav-mobile > summary {
  list-style: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile > summary span,
.nav-mobile > summary::before,
.nav-mobile > summary::after {
  content: "";
  display: block;
  width: 16px;
  height: 2px;
  background: var(--c-primary);
  border-radius: 2px;
}
.nav-mobile-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: grid;
  gap: 2px;
  z-index: 50;
}
.nav-mobile-list a,
.nav-mobile-list button {
  display: block;
  width: 100%;
  text-align: right;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  color: var(--c-primary);
  font-weight: 600;
  cursor: pointer;
}
.nav-mobile-list a:hover,
.nav-mobile-list button:hover { background: #eef2f5; }

.btn, .btn.gold, .btn.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  min-height: 38px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.84rem;
  text-decoration: none !important;
  transition: background .15s, filter .15s, box-shadow .15s, transform .15s;
}
.btn-primary, .btn.primary { background: var(--c-primary); color: #fff !important; }
.btn-gold, .btn.gold { background: var(--c-gold); color: #fff !important; }
.btn-ghost, .btn.ghost {
  background: #fff;
  color: var(--c-primary) !important;
  border: 1px solid var(--c-line);
  box-shadow: none;
}
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }

.site-main { min-height: calc(100vh - var(--header-h) - 180px); }

.hero {
  padding: 76px 0 58px;
  background:
    radial-gradient(800px 280px at 0% 0%, rgba(42, 157, 143, 0.12), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--c-bg) 100%);
}
.hero-kicker {
  display: inline-block;
  color: var(--c-gold);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  font-weight: 800;
  margin-bottom: 12px;
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  color: var(--c-primary);
  line-height: 1.35;
  max-width: 16ch;
}
.hero p.lead {
  margin: 0 0 28px;
  color: var(--c-muted);
  max-width: 46ch;
  font-size: 1.05rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.features { padding: 12px 0 72px; }
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #d9cdb8;
  box-shadow: 0 18px 40px rgba(27, 58, 75, 0.1);
}
.card h3 { margin: 0 0 8px; color: var(--c-primary); font-size: 1.05rem; }
.card p { margin: 0; color: var(--c-muted); font-size: 0.95rem; }
.card .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eef2f5;
  color: var(--c-gold);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  font-size: 1.1rem;
}

.flash {
  width: min(1120px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
}
.flash-error { background: #f8e8e6; color: var(--c-danger); }
.flash-success { background: #e7f3ea; color: var(--c-ok); }

.site-footer {
  background:
    radial-gradient(520px 180px at 0% 0%, rgba(196, 163, 90, 0.18), transparent 60%),
    var(--c-primary);
  color: #e8e0d2;
  padding: 36px 0 28px;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  align-items: center;
}
.site-footer a { color: var(--c-gold-2); }

.panel-welcome { padding: 40px 0 72px; }
.panel-welcome h1 { color: var(--c-primary); margin-top: 0; }
a.card { color: inherit; }
.card label { display: grid; gap: 6px; margin-bottom: 12px; font-size: 0.9rem; color: var(--c-primary); }
.card input[type="text"],
.card input[type="password"],
.card input[type="date"],
.card input[type="email"],
.card input[type="file"] {
  border: 1px solid var(--c-line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; }
.field-label { font-size: 0.9rem; color: var(--c-primary); font-weight: 600; }
.jalali-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr 0.9fr;
  gap: 8px;
}
.jalali-row select {
  border: 1px solid var(--c-line);
  border-radius: 10px;
  padding: 10px 8px;
  background: #fff;
}

.float-actions {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.float-btn.call { background: var(--c-primary); }
.float-btn.wa { background: #128c7e; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.badge-ok {
  display: inline-block;
  background: #e7f3ea;
  color: #2f6f4e;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 6px;
}
.lock-note { color: var(--c-muted); font-size: 0.88rem; line-height: 1.8; }

.cms-page { padding: 40px 0 80px; }
.cms-head { margin-bottom: 22px; }
.cms-head h1 { color: var(--c-primary); margin: 0 0 10px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cms-head .lead { color: var(--c-muted); max-width: 52ch; }
.cms-head .meta { color: var(--c-muted); font-size: 0.88rem; }
.crumb { color: var(--c-gold); font-size: 0.85rem; }
.article-narrow { max-width: 760px; }
.hero-img { width: 100%; border-radius: 16px; margin: 8px 0 20px; }
.widget { margin: 0 0 36px; }
.widget h2 { color: var(--c-primary); font-size: 1.25rem; margin: 0 0 10px; }
.widget-body { line-height: 1.95; color: var(--c-text); }
.prose p { margin: 0 0 12px; }
.prose a { color: var(--c-gold); text-decoration: underline; }
.prose strong, .prose b { font-weight: 700; }
.widget-image img { width: 100%; border-radius: 14px; }
.widget-image figcaption { color: var(--c-muted); font-size: 0.88rem; margin-top: 8px; }
.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 14px; overflow: hidden; background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-file { width: 100%; border-radius: 14px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.post-card:hover {
  transform: translateY(-3px);
  border-color: #d9cdb8;
  color: inherit;
}
.post-card img { width: 100%; height: 160px; object-fit: cover; }
.post-card-body { padding: 14px 16px 18px; }
.post-card h2 { margin: 0 0 8px; font-size: 1.05rem; color: var(--c-primary); }
.post-card p { margin: 0; color: var(--c-muted); font-size: 0.9rem; }
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.cat-pills a {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--c-line);
  background: var(--c-paper);
  font-size: 0.85rem;
  color: var(--c-primary);
}
.cat-pills a.on { background: var(--c-primary); color: #fff; }
.pager { display: flex; gap: 10px; align-items: center; margin-top: 24px; }
.widget-title { color: var(--c-primary); margin: 0 0 12px; line-height: 1.35; }
.wt-h1 { font-size: 2rem; }
.wt-h2 { font-size: 1.45rem; }
.wt-h3 { font-size: 1.22rem; }
.wt-h4 { font-size: 1.08rem; }
.wt-h5 { font-size: 1rem; }
.wt-h6 { font-size: 0.92rem; color: var(--c-muted); }
.widget-contact.align-center { text-align: center; }
.widget-contact.align-left { text-align: left; }
.contact-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.align-center .contact-btns { justify-content: center; }
.align-left .contact-btns { justify-content: flex-end; }
.style-stack { flex-direction: column; align-items: stretch; max-width: 320px; }
.cbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: filter .15s, transform .15s;
}
.cbtn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.cbtn-call { background: var(--c-primary); color: #fff !important; }
.cbtn-wa { background: #128c7e; color: #fff !important; }
.style-pill .cbtn { border-radius: 999px; }
.style-ghost .cbtn-call,
.style-ghost .cbtn-wa {
  background: transparent;
  border: 1.5px solid var(--c-primary);
  color: var(--c-primary) !important;
}
.style-ghost .cbtn-wa { border-color: #128c7e; color: #128c7e !important; }
.svc-grid { display: grid; gap: 16px; }
.svc-grid.cols-1 { grid-template-columns: 1fr; max-width: 420px; }
.svc-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.svc-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.svc-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.svc-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--c-gold);
}
.svc-card:hover {
  transform: translateY(-3px);
  border-color: #d9cdb8;
}
.svc-card h3 { margin: 0; color: var(--c-primary); font-size: 1.08rem; }
.svc-card p { margin: 0; color: var(--c-muted); font-size: 0.9rem; flex: 1; }
.svc-price { color: var(--c-gold); font-weight: 800; font-size: 1.05rem; }
.svc-price.is-free { color: var(--c-ok); }
.svc-price s, .file-price s { color: var(--c-muted, #8a93a0); font-weight: 500; margin-left: 6px; }
.svc-card .btn { margin-top: 8px; align-self: flex-start; }

.file-grid { display: grid; gap: 12px; }
.file-grid.cols-1 { grid-template-columns: 1fr; max-width: 720px; }
.file-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.file-grid.cols-3 { grid-template-columns: 1fr; }
.file-tile {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  background: var(--c-paper);
  color: var(--c-text);
  border-radius: var(--radius);
  padding: 14px 16px 14px 18px;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow);
  position: relative;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.file-tile::after {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  right: 0;
  width: 3px;
  background: var(--c-gold);
  border-radius: 3px;
}
.file-tile:hover {
  transform: translateY(-2px);
  border-color: #d9cdb8;
}
.file-tile-ico {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #eef2f5;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--c-primary);
}
.file-tile-body h3 { margin: 0 0 4px; font-size: 1.02rem; color: var(--c-primary); }
.file-tile-body p { margin: 0; color: var(--c-muted); font-size: 0.84rem; line-height: 1.6; }
.file-tile-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 0.75rem; color: var(--c-muted); }
.file-tile-meta em { font-style: normal; background: #eef2f5; color: var(--c-primary); padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.file-tile-side { display: grid; gap: 8px; justify-items: end; }
.file-price { color: var(--c-gold); font-weight: 800; font-size: 0.95rem; }
.file-price.is-free { color: var(--c-ok); }
.file-cta { min-height: 36px; }

.album-grid { display: grid; gap: 10px; }
.album-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.album-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.album-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.album-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #eef2f5;
  aspect-ratio: 4 / 3;
}
.album-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-item span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 10px;
  background: linear-gradient(transparent, rgba(18, 40, 51, 0.72));
  color: #fff;
  font-size: 0.8rem;
}
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(18, 40, 51, 0.82);
  display: grid;
  place-items: center;
  padding: 24px;
  cursor: zoom-out;
}
.lb-overlay img { max-width: min(1100px, 100%); max-height: 90vh; border-radius: 10px; }

.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.review-marquee {
  overflow: hidden;
  margin: 4px -4px 0;
  padding: 6px 0 10px;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.review-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: review-scroll 38s linear infinite;
}
.review-marquee:hover .review-track { animation-play-state: paused; }
.review-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  flex: 0 0 280px;
  min-height: 148px;
  display: flex;
  flex-direction: column;
}
.review-card p {
  margin: 8px 0 12px;
  color: var(--c-text);
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.75;
}
.review-card strong { color: var(--c-primary); font-size: 0.88rem; }
.stars { color: #d8d0c4; letter-spacing: 2px; font-size: 1rem; }
.stars i { font-style: normal; }
.stars .on { color: var(--c-gold); }
@keyframes review-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .review-track { animation: none; flex-wrap: wrap; width: auto; }
  .review-marquee { mask-image: none; -webkit-mask-image: none; }
}

.dl-note { color: var(--c-muted); margin: 0 0 12px; }
.dl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dl-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dl-list small { color: var(--c-muted); }

@media (max-width: 800px) {
  .svc-grid.cols-3, .svc-grid.cols-2 { grid-template-columns: 1fr; }
  .album-grid.cols-3, .album-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .file-grid.cols-2 { grid-template-columns: 1fr; }
  .file-tile { grid-template-columns: 52px 1fr; }
  .file-tile-side { grid-column: 1 / -1; justify-items: stretch; }
  .file-cta { text-align: center; }
}

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

@media (max-width: 800px) {
  .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 28px; }
  .nav .hide-sm { display: none; }
  .nav-mobile { display: block; }
}

@media (max-width: 480px) {
  .header-inner { gap: 8px; }
  .btn { padding: 9px 12px; }
}
