@font-face {
  font-family: "Vazir";
  font-weight: normal;
  src: url("fonts/Vazir-FD-WOL.woff2");
  font-display: swap;
}
@font-face {
  font-family: "Vazir";
  font-weight: bold;
  src: url("fonts/Vazir-Bold-FD-WOL.woff2");
  font-display: swap;
}

:root {
  --bg: #f7f1f4;
  --surface: #fffdfd;
  --ink: #2b1c2a;
  --muted: #6f5d6c;
  --accent: #8a4767;
  --gold: #a98650;
  --line: #e6d9e0;
  --dark: #2b1c2a;
  --on-dark: #f6ecf1;
  --ph1: #ead9e2;
  --ph2: #f4e8d6;
  --serif: "Vazir", "Vazirmatn", Tahoma, serif;
  --sans: "Vazir", Tahoma, "Segoe UI", sans-serif;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b131a;
    --surface: #251a24;
    --ink: #f3e8ee;
    --muted: #b9a6b3;
    --accent: #d891b3;
    --gold: #d3b27a;
    --line: #3a2b38;
    --dark: #120c11;
    --on-dark: #f6ecf1;
    --ph1: #35243a;
    --ph2: #3b2d2a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1b131a;
  --surface: #251a24;
  --ink: #f3e8ee;
  --muted: #b9a6b3;
  --accent: #d891b3;
  --gold: #d3b27a;
  --line: #3a2b38;
  --dark: #120c11;
  --on-dark: #f6ecf1;
  --ph1: #35243a;
  --ph2: #3b2d2a;
  color-scheme: dark;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 72px);
  height: 100%;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.95;
  -webkit-text-size-adjust: 100%;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}
p {
  margin: 0;
}
a {
  color: inherit;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
}
.sec {
  padding: 76px 0;
}
.sec h2 {
  font-size: clamp(30px, 5vw, 44px);
  margin-bottom: 18px;
}
.lead {
  color: var(--muted);
  max-width: 62ch;
}

/* header */
header.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--bg);
  z-index: 30;
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}
.logo {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 24px;
  color: var(--gold);
  line-height: 1;
}
.brand b {
  font-family: var(--serif);
  font-size: 19px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
nav.links {
  display: none;
  gap: 26px;
  font-size: 15px;
}
nav.links a {
  text-decoration: none;
  color: var(--muted);
}
nav.links a:hover {
  color: var(--accent);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  border: 1.5px solid var(--accent);
  transition:
    transform 0.2s,
    background 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn.gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #241a22;
}
@media (min-width: 860px) {
  nav.links {
    display: flex;
  }
}

/* hero */
.hero {
  padding: 56px 0 40px;
}
.hero .wrap {
  display: grid;
  gap: 36px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 9vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.hero .sub {
  margin: 20px 0 28px;
  font-size: 18px;
  color: var(--muted);
  max-width: 46ch;
}
.hero .acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero .tags {
  margin-top: 30px;
  color: var(--muted);
  font-size: 14.5px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  max-width: 52ch;
}
.face {
  justify-self: center;
  width: min(78vw, 340px);
}
.face svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.face .oval {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 2.6s ease forwards;
}
.face .guide {
  stroke: var(--gold);
  stroke-width: 1;
  opacity: 0.75;
  stroke-dasharray: 6 6;
}
.face .dot {
  fill: var(--gold);
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@media (min-width: 860px) {
  .hero {
    padding: 84px 0 56px;
  }
  .hero .wrap {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 60px;
  }
}

/* about */
.about .wrap {
  display: grid;
  gap: 30px;
}
.about .txt p + p {
  margin-top: 16px;
}
.about .txt p {
  color: var(--muted);
}
.about blockquote {
  margin: 0;
  padding: 6px 22px 6px 0;
  border-right: 3px solid var(--gold);
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.6;
}
@media (min-width: 860px) {
  .about .wrap {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
  }
}

/* services */
.svc-list {
  margin-top: 34px;
  display: grid;
  gap: 0;
}
.svc {
  display: grid;
  gap: 22px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.svc:last-child {
  border-bottom: 1px solid var(--line);
}
.ph {
  aspect-ratio: 4/3;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--ph1), var(--ph2));
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
  position: relative;
  overflow: hidden;
}
.ph::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed color-mix(in srgb, var(--gold) 70%, transparent);
  border-radius: 12px;
}
.svc h3 {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 10px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 5px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14.5px;
  background: var(--surface);
}
@media (min-width: 860px) {
  .svc {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 44px 0;
  }
  .svc:nth-child(even) .ph {
    order: 2;
  }
}

/* why */
.why {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.why-grid {
  margin-top: 34px;
  display: grid;
  gap: 0;
}
.why-grid div {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.why-grid h3 {
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 6px;
}
.why-grid p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}
@media (min-width: 760px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 56px;
  }
}

/* closing */
.closing {
  background: var(--dark);
  color: var(--on-dark);
  text-align: center;
}
.closing h2 {
  font-size: clamp(32px, 5.4vw, 50px);
  max-width: 30ch;
  margin: 0 auto 22px;
}
.closing p {
  max-width: 90ch;
  margin: 0 auto;
  opacity: 0.82;
}
.closing p + p {
  margin-top: 14px;
}
.closing .btn {
  margin-top: 30px;
}

/* contact */
.contact .wrap {
  display: grid;
  gap: 34px;
}
.rows {
  display: grid;
  gap: 0;
  margin-top: 10px;
}
.rows div {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.rows div:last-child {
  border-bottom: 1px solid var(--line);
}
.rows dt,
.rows .k {
  flex: none;
  width: 84px;
  color: var(--gold);
  font-weight: 500;
  font-size: 15px;
}
.rows .v {
  flex: 1;
}
.num {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  font-size: 22px;
  letter-spacing: 1px;
  text-decoration: none;
  font-weight: 500;
}
.cta-col {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}
@media (min-width: 860px) {
  .contact .wrap {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 70px;
  }
}

footer {
  padding: 26px 0 calc(26px + 76px);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

/* mobile call bar */
.callbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 25;
  display: flex;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.callbar .btn {
  flex: 1;
}
@media (min-width: 860px) {
  .callbar {
    display: none;
  }
  footer {
    padding-bottom: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .face .oval {
    animation: none;
    stroke-dashoffset: 0;
  }
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}
