@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #faf8f5;
  --bg-alt: #f1ede6;
  --ink: #241f2b;
  --ink-soft: #5b5568;
  --plum: #2e2140;
  --plum-deep: #1b1526;
  --gold: #c9a15a;
  --gold-soft: #e8d5ab;
  --line: #e4ddd1;
  --radius: 18px;
  --shadow: 0 20px 45px -20px rgba(46, 33, 64, 0.25);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.9;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 92%;
  max-width: 1180px;
  margin: 0 auto;
}

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--plum);
}

.brand .mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--plum), var(--plum-deep));
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

nav.main-nav ul {
  display: flex;
  gap: 34px;
  font-weight: 500;
  color: var(--ink-soft);
}

nav.main-nav a {
  position: relative;
  padding: 6px 2px;
  transition: color .2s ease;
}
nav.main-nav a:hover,
nav.main-nav a.active { color: var(--plum); }
nav.main-nav a.active::after {
  content: "";
  position: absolute;
  right: 0; left: 0; bottom: -4px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.cta-btn {
  display: inline-block;
  background: var(--plum);
  color: #fff;
  padding: 11px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .2s ease, background .2s ease;
  border: none;
  cursor: pointer;
}
.cta-btn:hover { background: var(--plum-deep); transform: translateY(-2px); }
.cta-btn.ghost {
  background: transparent;
  color: var(--plum);
  border: 1.5px solid var(--plum);
}
.cta-btn.ghost:hover { background: var(--plum); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 26px; height: 2px; background: var(--plum); border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset-inline-end: -180px;
  top: -160px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-soft) 0%, rgba(232,213,171,0) 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-alt);
  color: var(--plum);
  font-size: .85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
}
.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.5;
  color: var(--plum-deep);
  margin-bottom: 22px;
}
.hero h1 span { color: var(--gold); }
.hero p.lead {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 46ch;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  height: 420px;
  border-radius: 28px;
  background: linear-gradient(155deg, var(--plum) 0%, var(--plum-deep) 60%);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-visual .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
}
.hero-visual .blob.b1 { width: 220px; height: 220px; background: rgba(201,161,90,.35); top: -50px; right: -50px; }
.hero-visual .blob.b2 { width: 160px; height: 160px; background: rgba(255,255,255,.08); bottom: 30px; left: -30px; }
.hero-visual .card-float {
  position: absolute;
  bottom: 26px;
  right: 26px;
  left: 26px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  padding: 20px 22px;
  color: #fff;
  backdrop-filter: blur(6px);
}
.hero-visual .card-float strong { color: var(--gold-soft); display:block; font-size: 1.4rem; margin-bottom: 4px; }
.hero-visual .card-float span { color: rgba(255,255,255,.75); font-size: .85rem; }

/* ---------- Stats ---------- */
.stats {
  padding: 50px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stats-grid strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--plum);
}
.stats-grid span { color: var(--ink-soft); font-size: .9rem; }

/* ---------- Sections generic ---------- */
section { padding: 90px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { margin-inline: auto; }
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--plum-deep);
  margin: 14px 0 12px;
}
.section-head p { color: var(--ink-soft); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--bg-alt);
  color: var(--plum);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--plum-deep); }
.service-card p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Portfolio ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.portfolio-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.portfolio-thumb {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.85);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .5px;
}
.portfolio-body { padding: 20px 22px; }
.portfolio-body .tag { color: var(--gold); font-size: .8rem; font-weight: 600; }
.portfolio-body h3 { margin: 8px 0 6px; color: var(--plum-deep); font-size: 1.05rem; }
.portfolio-body p { color: var(--ink-soft); font-size: .9rem; }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.testimonial-card p.quote { color: var(--ink); margin-bottom: 20px; font-size: .95rem; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--plum), var(--gold));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem;
}
.testimonial-person strong { display: block; font-size: .9rem; color: var(--plum-deep); }
.testimonial-person span { font-size: .8rem; color: var(--ink-soft); }

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.blog-thumb {
  height: 150px;
}
.blog-body { padding: 22px; }
.blog-date { font-size: .8rem; color: var(--gold); font-weight: 600; margin-bottom: 8px; display:block; }
.blog-body h3 { font-size: 1.05rem; color: var(--plum-deep); margin-bottom: 10px; }
.blog-body p { color: var(--ink-soft); font-size: .9rem; margin-bottom: 14px; }
.read-more { font-size: .85rem; font-weight: 600; color: var(--plum); }
.read-more::after { content: " ←"; }

.post-full { max-width: 760px; margin: 0 auto; }
.post-full .meta { color: var(--ink-soft); font-size: .9rem; margin-bottom: 26px; }
.post-full h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--plum-deep); margin-bottom: 16px; }
.post-full p { color: var(--ink); margin-bottom: 18px; }
.post-full h2 { color: var(--plum-deep); font-size: 1.3rem; margin: 30px 0 14px; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.about-visual {
  height: 380px;
  border-radius: 24px;
  background: linear-gradient(160deg, var(--gold-soft), var(--bg-alt));
  position: relative;
  overflow: hidden;
}
.timeline { border-inline-start: 2px solid var(--line); padding-inline-start: 26px; margin-top: 30px; }
.timeline li { position: relative; padding-bottom: 26px; }
.timeline li::before {
  content: "";
  position: absolute;
  inline-size: 11px; block-size: 11px;
  border-radius: 50%;
  background: var(--gold);
  right: -32px;
  top: 4px;
}
.timeline li strong { color: var(--plum-deep); display: block; margin-bottom: 4px; }
.timeline li span { color: var(--ink-soft); font-size: .9rem; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 50px;
}
.team-card { text-align: center; }
.team-avatar {
  width: 84px; height: 84px; border-radius: 50%;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.3rem; color: #fff;
}
.team-card strong { display: block; color: var(--plum-deep); font-size: .95rem; }
.team-card span { color: var(--ink-soft); font-size: .82rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 50px;
}
.contact-info-card {
  background: var(--plum);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px 30px;
}
.contact-info-card h3 { margin-bottom: 22px; font-size: 1.15rem; color: var(--gold-soft); }
.contact-item { display: flex; gap: 12px; margin-bottom: 20px; align-items: flex-start; }
.contact-item .icon-sm {
  width: 34px; height: 34px; border-radius: 9px;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item strong { display: block; font-size: .88rem; color: rgba(255,255,255,.6); margin-bottom: 3px; }
.social-row { display: flex; gap: 10px; margin-top: 26px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; color: var(--ink-soft); margin-bottom: 8px; font-weight: 500; }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: .92rem;
  background: var(--bg);
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--gold-soft); border-color: var(--gold); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--plum), var(--plum-deep));
  border-radius: 28px;
  padding: 56px 50px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: 1.6rem; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.75); }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--plum-deep);
  color: rgba(255,255,255,.65);
  padding: 70px 0 30px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: 18px; }
.footer-grid li { margin-bottom: 10px; font-size: .88rem; }
.footer-grid li a:hover { color: var(--gold-soft); }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: .88rem; line-height: 1.9; max-width: 34ch; }
.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  nav.main-nav, .hero-actions .cta-btn.ghost { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .portfolio-grid, .testimonial-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .services-grid, .portfolio-grid, .testimonial-grid, .blog-grid, .team-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
}
