@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f1ea;
  --bg-alt: #fffdf9;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #e7ddd2;
  --teal: #0f5c57;
  --teal-dark: #0a3f3b;
  --teal-soft: #d7ece9;
  --gold: #b0894d;
  --danger: #9f1239;
  --ok: #166534;
  --shadow: 0 1px 0 rgba(28, 25, 23, 0.04);
  --radius: 16px;
  --max: 1120px;
  --text: 720px;
  --header: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@font-face {
  font-family: 'Vazirmatn-Fallback';
  src: local('Tahoma');
  size-adjust: 105%;
  ascent-override: 90%;
  descent-override: 20%;
  line-gap-override: 0%;
}
body {
  margin: 0;
  font-family: "Vazirmatn", "Vazirmatn-Fallback", "Tahoma", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.85;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.45; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 0.6em; }
h2 { font-size: 1.45rem; margin: 1.6em 0 0.5em; }
h3 { font-size: 1.15rem; margin: 1.3em 0 0.4em; }
p { margin: 0 0 1em; }
ul, ol { padding-right: 1.3em; }

.skip {
  position: absolute;
  right: -999px;
}
.skip:focus {
  right: 12px;
  top: 12px;
  background: #fff;
  padding: 8px 12px;
  z-index: 100;
}

.wrap { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.narrow { width: min(var(--text), calc(100% - 32px)); margin-inline: auto; }

.glass-surface {
  background: linear-gradient(135deg, rgba(255,253,249,0.84), rgba(215,236,233,0.5));
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow: 0 10px 30px rgba(15, 92, 87, 0.08), inset 0 1px 0 rgba(255,255,255,0.8);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: auto;
  background: transparent;
  border: 0;
  padding: 12px 16px 8px;
}
.header-pill {
  width: min(var(--max), 100%);
  margin-inline: auto;
  min-height: 60px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  position: relative;
  background: linear-gradient(135deg, rgba(255,253,249,0.84), rgba(215,236,233,0.5));
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow: 0 10px 30px rgba(15, 92, 87, 0.08), inset 0 1px 0 rgba(255,255,255,0.8);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
}
.header-inner {
  height: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  position: relative;
  z-index: 2;
  flex: none;
}
.brand img { width: 42px; height: 42px; border-radius: 50%; background: #0b0b0b; }
.brand span {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: font-size 0.38s ease, font-weight 0.38s ease;
}
.site-header.is-scrolled .brand span {
  font-size: 0.92rem;
  font-weight: 700;
}
.brand:hover { text-decoration: none; color: var(--teal); }
.header-motto {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  justify-self: center;
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  transform: translateY(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  transition: opacity 0.38s ease, transform 0.38s ease, visibility 0.38s ease;
}
.site-header.is-scrolled .header-motto {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.motto-text {
  font-size: clamp(0.78rem, 1.2vw, 1.02rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: linear-gradient(105deg, #6a501f 0%, #f3dc9f 36%, #b0894d 50%, #f3dc9f 64%, #6a501f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
.motto-rule {
  width: 22px;
  height: 1px;
  flex: none;
  background: linear-gradient(90deg, transparent, #b0894d, transparent);
  box-shadow: 0 0 0 0.5px rgba(176, 137, 77, 0.15);
}
.header-end {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
  flex: none;
  justify-self: end;
}
.nav {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}
.nav a {
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
}
.nav a:hover, .nav a[aria-current="page"] {
  background: var(--teal-soft);
  color: var(--teal-dark);
  text-decoration: none;
}
.nav-cta {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(240, 217, 160, 0.75);
  background: linear-gradient(135deg, #1a8a82 0%, #0f5c57 52%, #0a3f3b 100%);
  color: #fff;
  padding: 6px 11px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(176, 137, 77, 0.28), 0 0 14px rgba(176, 137, 77, 0.4);
}
.nav-cta svg { width: 13px; height: 13px; flex: none; display: block; }
.nav-cta:hover {
  color: #fff;
  background: linear-gradient(135deg, #1f9a91 0%, #147a73 50%, #0f5c57 100%);
  text-decoration: none;
}
.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
}
.menu-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 14px;
}
.menu-bars span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
}

.hero {
  padding: 56px 0 40px;
}
.hero-kicker {
  color: var(--gold);
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  margin-bottom: 8px;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 40em; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.grid-3, .grid-2, .cards {
  display: grid;
  gap: 16px;
}
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.card h3 { margin-top: 0.6em; }
.card p:last-child { margin-bottom: 0; }
.card img { width: 100%; height: 160px; object-fit: cover; border-radius: 10px; margin: 0 0 8px; }
.muted { color: var(--muted); }
.section { padding: 36px 0; }
.section-title { margin-top: 0; }

.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.point {
  padding: 16px;
  border-right: 3px solid var(--gold);
  background: var(--bg-alt);
}

.article-hero { padding: 36px 0 12px; }
.crumbs { font-size: 0.88rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.meta-row { color: var(--muted); font-size: 0.92rem; margin-bottom: 18px; }
.share-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 8px 0 28px;
  padding: 10px 12px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,253,249,0.84), rgba(215,236,233,0.5));
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow: 0 10px 30px rgba(15, 92, 87, 0.08), inset 0 1px 0 rgba(255,255,255,0.8);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
}
.share-card svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px;
  max-height: 16px;
  display: block;
  flex: none;
  overflow: hidden;
}
.share-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.share-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0b0b0b;
  object-fit: cover;
  flex: none;
  box-shadow: 0 0 0 1px rgba(176, 137, 77, 0.35);
}
.share-brand strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.3;
}
.share-brand span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.3;
}
.share-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
a.share-pill,
button.share-pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.55);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  flex: none;
}
a.share-pill:hover,
button.share-pill:hover {
  color: var(--teal-dark);
  text-decoration: none;
  background: rgba(255,255,255,0.9);
  border-color: rgba(176, 137, 77, 0.45);
}
@media (max-width: 640px) {
  .share-card { border-radius: 22px; }
  .share-pills { width: 100%; }
  a.share-pill, button.share-pill { flex: 1 1 auto; }
}
.featured {
  border-radius: 18px;
  overflow: hidden;
  margin: 12px 0 28px;
  border: 1px solid var(--line);
}
.prose iframe, .prose video { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 12px; }
.prose img { border-radius: 12px; margin: 16px 0; }
.prose a { text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px; }
.video-wrap { margin: 20px 0; }

.form {
  display: grid;
  gap: 12px;
}
.form label { font-weight: 600; font-size: 0.92rem; }
.form input, .form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  background: #fff;
}
.form-status { min-height: 1.4em; font-size: 0.92rem; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--danger); }
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  margin-top: 48px;
  padding: 12px 16px 108px;
  border: 0;
  background: transparent;
  font-size: 0.95rem;
}
.footer-pill {
  width: min(var(--max), 100%);
  margin-inline: auto;
  padding: 28px 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,253,249,0.84), rgba(215,236,233,0.5));
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow: 0 10px 30px rgba(15, 92, 87, 0.08), inset 0 1px 0 rgba(255,255,255,0.8);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}
.site-footer h2 { font-size: 1rem; margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 6px; }
.footer-credit {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 92, 87, 0.12);
  text-align: center;
  font-size: 0.88rem;
  color: rgba(15, 92, 87, 0.72);
}
.footer-credit a {
  color: var(--accent, #0f5c57);
  font-weight: 600;
  text-decoration: none;
}
.footer-credit a:hover { text-decoration: underline; }

.sticky-consult {
  position: fixed;
  z-index: 55;
  bottom: 16px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #fff5f8 0%, #f7cdd9 55%, #f3bccb 100%);
  color: #4a2432;
  border: 1px solid rgba(214, 130, 156, 0.45);
  border-radius: 999px;
  padding: 8px 22px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(180, 80, 110, 0.16);
}
.sticky-consult:hover {
  background: linear-gradient(135deg, #ffeef3 0%, #f4c0cf 55%, #eeadc0 100%);
  color: #3f1e2b;
}

body.modal-open { overflow: hidden; }
.modal[hidden] { display: none !important; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.46);
}
.modal-dialog {
  position: relative;
  width: min(440px, 100%);
  background: var(--bg-alt);
  border-radius: 20px;
  padding: 28px 24px 22px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(28, 25, 23, 0.18);
}
.modal-dialog h2 { margin-top: 0; }
.modal-close {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.cta-card {
  margin: 28px 0;
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(160deg, #0f5c57 0%, #147a73 100%);
  color: #fff;
  border: 0;
}
.cta-card h2, .cta-card p { color: #fff; }
.cta-card .cta-kicker {
  margin: 0 0 6px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: #d9c38a;
}
.cta-card .btn-primary {
  background: #fff;
  color: var(--teal-dark);
}
.cta-card .btn-primary:hover { background: var(--teal-soft); color: var(--teal-dark); }

.hero-home { padding: 28px 0 12px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}
.hero-visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 340px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(15, 92, 87, 0.12);
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 340px;
  animation: heroZoom 18s ease-in-out infinite alternate;
}
.hero-visual.diagram img {
  object-fit: contain;
  background: #f6f1ea;
  animation: none;
}
.service-card img { height: 180px; }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}
.about-visual {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 280px;
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
[data-reveal].is-in { opacity: 1; transform: none; }

.service-card .btn { margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  .hero-visual img { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .nav { transition: none; }
  .header-motto, .brand span { transition: none; }
}

.post-list { display: grid; gap: 14px; }
.post-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.post-item img { width: 100%; height: 100%; object-fit: cover; min-height: 120px; }
.post-item-body { padding: 14px 14px 14px 0; }
.post-item h2 { margin: 0 0 8px; font-size: 1.1rem; }

.cats { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 24px; }
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  font-size: 0.9rem;
}
.chip:hover, .chip.active { background: var(--teal); color: #fff; text-decoration: none; border-color: var(--teal); }

@media (max-width: 1100px) {
  .site-header.is-scrolled .header-motto { opacity: 0; visibility: hidden; }
}
@media (max-width: 860px) {
  .grid-3, .grid-2, .points, .footer-grid, .post-item,
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-flex; }
  .site-header.is-scrolled .header-motto { opacity: 1; visibility: visible; }
  .brand span { display: inline; font-size: 1.08rem; }
  .site-header.is-scrolled .brand span { font-size: 0.8rem; }
  .brand img { width: 36px; height: 36px; }
  .motto-text {
    font-size: 0.75rem;
    letter-spacing: 0;
    white-space: nowrap;
    text-align: center;
    line-height: 1.2;
  }
  .motto-rule { display: none; }
  .header-motto { max-width: 100%; }
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    padding: 0 12px;
    border-radius: 22px;
    background: #fffdf9;
    border: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(28, 25, 23, 0.12);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: translateY(-8px);
    transition: max-height 0.18s ease, opacity 0.16s ease, transform 0.16s ease, padding 0.16s ease;
  }
  .nav.open {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    padding: 12px;
  }
  .hero { padding-top: 28px; }
  .hero-visual, .hero-visual img { min-height: 220px; }
  .sticky-consult {
    left: 16px;
    right: 16px;
    bottom: 12px;
    transform: none;
    width: auto;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 16px;
  }
}

.callout-box {
  background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 100%);
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
}
.callout-box h3 {
  color: var(--teal);
  margin: 0 0 12px;
  font-size: 1.15rem;
}
.callout-box ul {
  margin: 16px 0;
  padding-right: 20px;
}
.callout-box li {
  margin-bottom: 8px;
}
.callout-box a {
  color: var(--teal);
}
.callout-box > p:last-child {
  margin-bottom: 0;
  text-align: center;
}
