@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-Regular.ttf") format("truetype");
  font-weight: 400;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-Medium.ttf") format("truetype");
  font-weight: 500;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-SemiBold.ttf") format("truetype");
  font-weight: 600;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-Bold.ttf") format("truetype");
  font-weight: 700;
}

:root {
  --blue-900: #0b2545;
  --blue-700: #123a6b;
  --blue-600: #1a4c8c;
  --blue-500: #2e6bb8;
  --blue-100: #eaf1fb;
  --ink: #16212e;
  --muted: #5b6b7c;
  --bg: #f6f9fd;
  --card: #ffffff;
  --border: #e3ebf5;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  direction: rtl;
  text-align: right;
  scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- header / nav --- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--blue-900);
}
.brand img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; }

nav.main-nav {
  display: flex;
  gap: 26px;
  font-weight: 500;
  font-size: 15px;
  color: var(--blue-700);
}
nav.main-nav a { padding: 6px 2px; border-bottom: 2px solid transparent; transition: border-color .15s; }
nav.main-nav a:hover, nav.main-nav a.active { border-color: var(--blue-500); }

.nav-toggle { display: none; }

@media (max-width: 720px) {
  nav.main-nav {
    position: absolute;
    top: 100%;
    right: 0; left: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .2s ease;
  }
  nav.main-nav.open { max-height: 260px; }
  nav.main-nav a { padding: 14px 20px; border-bottom: 1px solid var(--border); }
  .nav-toggle {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    font-size: 18px;
    cursor: pointer;
  }
}

/* --- hero --- */
.hero {
  background: linear-gradient(160deg, var(--blue-900), var(--blue-600) 70%);
  color: #fff;
  padding: 72px 0 90px;
}
.hero-inner { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.hero-text { flex: 1 1 380px; }
.hero-text h1 { font-size: 34px; line-height: 1.5; margin: 0 0 18px; font-weight: 700; }
.hero-text p { font-size: 16.5px; line-height: 2; color: #dce8fb; margin: 0 0 26px; max-width: 560px; }
.hero-logo { flex: 0 0 180px; }
.hero-logo img { width: 180px; height: 180px; border-radius: 28px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
}
.btn-primary { background: #fff; color: var(--blue-800, var(--blue-700)); }
.btn-primary:hover { background: #eaf1fb; }
.btn-outline { border: 1.5px solid rgba(255,255,255,.6); color: #fff; margin-inline-start: 12px; }
.btn-outline:hover { background: rgba(255,255,255,.12); }

/* --- sections --- */
section { padding: 64px 0; }
.section-title { text-align: center; margin-bottom: 46px; }
.section-title h2 { font-size: 26px; font-weight: 700; color: var(--blue-900); margin: 0 0 10px; }
.section-title p { color: var(--muted); font-size: 15px; margin: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 820px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 8px 28px rgba(20,50,90,.05);
}

.product-card { display: flex; flex-direction: column; gap: 14px; }
.product-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-100);
  font-size: 26px;
}
.product-card h3 { margin: 0; font-size: 18.5px; color: var(--blue-900); }
.product-card p { margin: 0; color: var(--muted); line-height: 1.9; font-size: 14.5px; }
.product-card .tag {
  align-self: flex-start;
  font-size: 12.5px;
  background: var(--blue-100);
  color: var(--blue-700);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
}

.about-block { background: var(--blue-100); }
.about-block .card { background: #fff; }
.about-text { line-height: 2.1; font-size: 15.5px; color: var(--ink); }

.stats-row { display: flex; justify-content: center; gap: 50px; flex-wrap: wrap; margin-top: 40px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 28px; color: var(--blue-700); }
.stat span { color: var(--muted); font-size: 13.5px; }

.placeholder {
  background: #fff8e6;
  border: 1px dashed #e0b34d;
  color: #8a6412;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 13.5px;
}

.contact-list { display: flex; flex-direction: column; gap: 18px; }
.contact-item { display: flex; align-items: center; gap: 14px; }
.contact-item .ic {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--blue-100); color: var(--blue-700);
  display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0;
}
.contact-item b { display: block; font-size: 14px; color: var(--muted); font-weight: 500; }
.contact-item span { font-size: 15.5px; font-weight: 600; }

.legal h2 { font-size: 20px; color: var(--blue-900); margin: 34px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { line-height: 2.1; color: var(--ink); font-size: 15px; }
.legal ul { padding-inline-start: 22px; }
.legal .updated { color: var(--muted); font-size: 13.5px; margin-bottom: 30px; }

footer.site-footer {
  background: var(--blue-900);
  color: #b9c9e0;
  padding: 46px 0 26px;
  margin-top: 40px;
}
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-col h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.footer-col a { display: block; color: #b9c9e0; font-size: 14px; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 30px; padding-top: 20px;
  text-align: center; font-size: 13px; color: #8ba3c4;
}

.page-hero {
  background: linear-gradient(160deg, var(--blue-900), var(--blue-600) 70%);
  color: #fff;
  padding: 50px 0;
  text-align: center;
}
.page-hero h1 { margin: 0; font-size: 28px; }
