:root {
  --bg: #09090b;
  --bg-2: #0e0e12;
  --card: #141418;
  --card-2: #1a1a20;
  --line: rgba(255, 255, 255, .07);
  --gold: #c9a44c;
  --gold-2: #e0c06a;
  --gold-d: #8a6a28;
  --text: #f4efe6;
  --muted: #9b968c;
  --soft: #cfc8b8;
  --r: 18px;
  --rs: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --tr: .4s cubic-bezier(.22, 1, .36, 1);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: Vazirmatn, Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; }
[hidden] { display: none !important; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 9, 11, .88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--gold), var(--gold-d));
  color: #1a1206;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand__text { font-size: 15px; }
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.nav__link {
  font-size: 13.5px;
  color: var(--soft);
  font-weight: 500;
  transition: color var(--tr);
}
.nav__link:hover { color: var(--gold); }
.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1a1206;
  font-weight: 800;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(201, 164, 76, .28);
  white-space: nowrap;
  transition: filter var(--tr), transform var(--tr), box-shadow var(--tr);
}
.header__cta:hover { filter: brightness(1.06); }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  flex-direction: column;
  gap: 5px;
  margin-inline-start: auto;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  background: #121216;
  border-bottom: 1px solid var(--line);
  padding: 8px 20px 18px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 13.5px;
  padding: 12px 20px;
  transition: filter var(--tr), transform var(--tr), box-shadow var(--tr), background var(--tr), border-color var(--tr);
}
.btn:hover { filter: brightness(1.06); }
.btn--gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1a1206;
  box-shadow: 0 8px 22px rgba(201, 164, 76, .28);
}
.btn--ghost {
  border: 1px solid rgba(201, 164, 76, .55);
  color: var(--gold-2);
  background: rgba(12, 12, 14, .35);
}
.btn--ghost:hover { background: rgba(201, 164, 76, .08); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: #09090b center / cover no-repeat;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9,9,11,.18) 0%, rgba(9,9,11,.55) 42%, rgba(9,9,11,.92) 100%),
    linear-gradient(180deg, rgba(9,9,11,.35) 0%, transparent 28%, rgba(9,9,11,.82) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 48px;
  padding: 48px 0 36px;
}
.hero__copy { max-width: 620px; }
.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 14px;
}
.hero__title {
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.22;
  font-weight: 800;
  max-width: 11ch;
  margin-bottom: 16px;
}
.hero__title .gold { color: var(--gold-2); }
.hero__desc {
  max-width: 42ch;
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 26px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stat {
  background: rgba(18, 18, 22, .78);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 14px;
  text-align: center;
  backdrop-filter: blur(10px);
}
.stat i {
  color: var(--gold);
  font-size: 22px;
  display: block;
  margin-bottom: 8px;
}
.stat strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
}
.stat span {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  margin-top: 2px;
}

/* ── Sections ── */
.section { padding: 84px 0; }
.section__head { text-align: center; margin-bottom: 42px; }
.section__title {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 800;
  margin-top: 6px;
}
.section__sub {
  color: var(--muted);
  max-width: 46ch;
  margin: 10px auto 0;
  font-size: 14.5px;
}

/* ── Services ── */
.services { background: var(--bg); }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.svc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 12px 12px 18px;
  transition: transform var(--tr), border-color var(--tr), box-shadow var(--tr);
}
.svc:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 164, 76, .28);
}
.svc__media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1.15 / 1;
  background: #0c0c10;
  margin-bottom: 14px;
}
.svc__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.svc__tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1a1206;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 99px;
}
.svc h3 { font-size: 15px; font-weight: 800; }
.svc p { color: var(--muted); font-size: 12px; margin-top: 4px; }

/* ── Why ── */
.why { background: var(--bg-2); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.why-card { text-align: center; padding: 8px 10px; transition: transform .22s ease, box-shadow .22s ease; }
.why-card:hover { transform: translateY(-6px); }
.why-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 1px solid rgba(201, 164, 76, .35);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 26px;
  background: rgba(201, 164, 76, .06);
}
.why-card h3 { font-size: 15.5px; margin-bottom: 8px; }
.why-card p { color: var(--muted); font-size: 13px; }

/* ── Portfolio ── */
.port-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.port-card {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #111;
}
.port-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.port-card:hover img { transform: scale(1.06); }
.port-more { text-align: center; }

/* ── Process ── */
.process { background: var(--bg-2); }
.process-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  position: relative;
}
.process-row::before {
  content: "";
  position: absolute;
  top: 34px;
  right: 8%;
  left: 8%;
  border-top: 1px dashed rgba(201, 164, 76, .35);
  pointer-events: none;
}
.step { text-align: center; position: relative; z-index: 1; }
.step__icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #151518;
  border: 1px solid rgba(201, 164, 76, .4);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 26px;
}
.step h3 { font-size: 14.5px; font-weight: 800; }
.step p { color: var(--muted); font-size: 12px; margin-top: 4px; }

/* ── Testimonials ── */
.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.test {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 20px;
}
.test__stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; font-size: 13px; }
.test p { color: var(--soft); font-size: 13.5px; min-height: 4.8em; }
.test__who {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.test__who img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.test__who strong { display: block; font-size: 13.5px; }
.test__who span { color: var(--muted); font-size: 11.5px; }

/* ── CTA ── */
.cta { padding: 20px 0 80px; }
.cta__box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
  background: #111 center / cover no-repeat;
}
.cta__box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,8,10,.2), rgba(8,8,10,.78) 38%, rgba(8,8,10,.78) 62%, rgba(8,8,10,.2));
}
.cta__content { position: relative; z-index: 1; padding: 48px 20px; }
.cta__content .eyebrow { color: var(--gold-2); }
.cta__content h2 {
  font-size: clamp(22px, 3vw, 34px);
  margin: 6px 0 10px;
}
.cta__content p { color: var(--muted); margin-bottom: 22px; }

/* ── Footer ── */
.footer {
  background: #08080a;
  border-top: 1px solid var(--line);
  padding: 56px 0 0;
  direction: rtl;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 36px;
  direction: rtl;
}
.footer__grid > div {
  text-align: right;
}
.footer__about {
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
  max-width: 36ch;
  text-align: right;
}
.footer__title {
  color: var(--gold);
  font-size: 14px;
  margin-bottom: 14px;
  text-align: right;
}
.footer__link {
  display: block;
  color: var(--soft);
  font-size: 13.5px;
  padding: 4px 0;
  text-align: right;
}
.footer__link:hover { color: var(--gold); }
.footer__link--address {
  color: var(--muted);
  text-align: right;
  order: 1;
}
.footer__link--phone,
.footer__link--mobile,
.footer__link--email {
  color: var(--muted);
  text-align: left;
  order: 2;
}
.footer__bottom {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 980px) {
  .header__inner { grid-template-columns: auto 1fr; }
  .nav, .header__cta { display: none; }
  .nav-toggle { display: grid; justify-self: start; }
  .hero__stats, .svc-grid, .why-grid, .port-grid { grid-template-columns: repeat(2, 1fr); }
  .process-row, .test-grid, .footer__grid { grid-template-columns: 1fr 1fr; }
  .process-row::before { display: none; }
  .hero__title { max-width: none; }
}
@media (max-width: 640px) {
  .svc-grid, .why-grid, .port-grid, .process-row, .test-grid, .footer__grid, .hero__stats {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; }
  .hero__inner { padding-top: 92px; }
}
