@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #0b241d;
  --ink-2: #103329;
  --ink-3: #174536;
  --leaf: #2e8b57;
  --tea: #8fd18f;
  --tea-soft: #d9f0d4;
  --amber: #f4b63f;
  --amber-deep: #d9951a;
  --paper: #fbf8f0;
  --paper-2: #f2eee2;
  --card: #ffffff;
  --text: #17211d;
  --muted: #5d6b64;
  --line: #e3ddcd;
  --on-ink: #eaf4ee;
  --on-ink-muted: #a9c3b6;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(11, 36, 29, .06), 0 12px 32px -12px rgba(11, 36, 29, .22);
  --shadow-lg: 0 30px 80px -30px rgba(11, 36, 29, .55);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-feature-settings: "ss01";
  background: var(--paper);
  color: var(--text);
  line-height: 1.9;
  font-size: 16.5px;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.muted { color: var(--muted); }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 16px; top: 16px; z-index: 100; background: var(--amber); padding: 8px 14px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

/* ── header ─────────────────────────────────────────────── */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--on-ink);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), color .35s;
}
.bar.solid, body:not(.page-home) .bar {
  background: rgba(11, 36, 29, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.bar-in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 900; font-size: clamp(1.3rem, 1rem + 1.2vw, 1.7rem); line-height: 1.25; white-space: nowrap; }
.brand small { display: block; font-weight: 400; font-size: .5em; opacity: .75; }
.brand-mark { width: 1.6em; height: 1.6em; color: var(--amber); flex: none; transition: transform .8s var(--ease); }
.brand:hover .brand-mark { transform: rotate(90deg); }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .95rem;
  opacity: .85; transition: background .2s, opacity .2s;
}
.nav a:hover { opacity: 1; background: rgba(255, 255, 255, .08); }
.nav a[aria-current="page"] { opacity: 1; background: rgba(255, 255, 255, .12); }
.nav a.nav-cta { background: var(--amber); color: var(--ink); opacity: 1; font-weight: 700; margin-inline-start: 8px; }
.nav a.nav-cta:hover { background: #ffc85a; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: rgba(255, 255, 255, .08); border-radius: 12px; cursor: pointer; padding: 12px 11px; }
.burger span { display: block; height: 2px; background: var(--on-ink); border-radius: 2px; margin: 4px 0; transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 72px 12px auto 12px; flex-direction: column; align-items: stretch;
    background: var(--ink-2); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow-lg);
    transform: translateY(-12px) scale(.98); opacity: 0; pointer-events: none;
    transition: transform .3s var(--ease), opacity .25s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 16px; font-size: 1.05rem; }
  .nav a.nav-cta { margin: 6px 0 0; text-align: center; }
}

/* ── buttons ────────────────────────────────────────────── */
.btn {
  --bg: var(--amber); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--fg); font: inherit; font-weight: 700; font-size: 1.02rem;
  text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s, background .2s;
  box-shadow: 0 10px 30px -10px rgba(244, 182, 63, .7);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 20px; height: 20px; }
.btn-ghost { --bg: rgba(255, 255, 255, .08); --fg: var(--on-ink); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22); }
.btn-ghost:hover { --bg: rgba(255, 255, 255, .14); }
.btn-dark { --bg: var(--ink); --fg: var(--on-ink); box-shadow: 0 10px 30px -12px rgba(11, 36, 29, .6); }
.btn-line { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-line:hover { --bg: var(--card); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .92rem; }

/* ── hero ───────────────────────────────────────────────── */
.hero {
  position: relative; min-height: min(100svh, 960px); display: grid; align-items: center;
  background: radial-gradient(120% 90% at 80% 10%, var(--ink-3) 0%, var(--ink) 60%);
  color: var(--on-ink); overflow: hidden; isolation: isolate;
  padding: 110px 0 70px;
}
.topo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 160px; z-index: -1;
  background: linear-gradient(to top, var(--ink), transparent);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 600;
  color: var(--tea); background: rgba(143, 209, 143, .1); border: 1px solid rgba(143, 209, 143, .22);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--tea); box-shadow: 0 0 0 0 rgba(143, 209, 143, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(143, 209, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(143, 209, 143, 0); } }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); font-weight: 900; line-height: 1.22; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--amber); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; inset: auto 0 .08em 0; height: .12em; border-radius: 4px;
  background: currentColor; opacity: .35; transform-origin: right; animation: underline 1.2s .6s var(--ease) both;
}
@keyframes underline { from { transform: scaleX(0); } }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--on-ink-muted); max-width: 34em; margin-bottom: 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 44px; color: var(--on-ink-muted); font-size: .92rem; }
.hero-meta b { display: block; color: var(--on-ink); font-size: 1.05rem; }

.readout {
  position: absolute; inset-inline-start: 24px; bottom: 22px; z-index: 2;
  font: 500 .78rem/1.5 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color: var(--tea); background: rgba(11, 36, 29, .6); backdrop-filter: blur(6px);
  border: 1px solid rgba(143, 209, 143, .2); padding: 8px 12px; border-radius: 10px; direction: ltr;
}
.reticle {
  position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; pointer-events: none; z-index: 1;
  border: 1.5px solid var(--amber); border-radius: 50%; opacity: 0; transition: opacity .3s;
}
.reticle::before, .reticle::after { content: ""; position: absolute; background: var(--amber); }
.reticle::before { left: 50%; top: -10px; bottom: -10px; width: 1.5px; transform: translateX(-50%); }
.reticle::after { top: 50%; left: -10px; right: -10px; height: 1.5px; transform: translateY(-50%); }
.hero:hover .reticle { opacity: .9; }

/* the survey plan card */
.plan {
  position: relative; background: rgba(251, 248, 240, .97); color: var(--ink); border-radius: 26px;
  padding: 22px; box-shadow: var(--shadow-lg); transform: rotate(-2.5deg);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 50% { transform: rotate(-1.5deg) translateY(-10px); } }
.plan-head { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.plan-head b { color: var(--ink); font-size: .95rem; }
.plan-stamp { font-size: .7rem; font-weight: 800; color: var(--leaf); border: 1.5px solid var(--leaf); border-radius: 8px; padding: 2px 8px; transform: rotate(4deg); }
.plan svg { width: 100%; height: auto; direction: ltr; }
.plan .dim { direction: rtl; }
.plan .parcel { fill: rgba(46, 139, 87, .12); stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2.6s .4s var(--ease) forwards; }
.plan .grid line { stroke: #e6dfcc; stroke-width: 1; }
.plan .cnt { fill: none; stroke: #b9d9b4; stroke-width: 1.2; }
.plan .pt { fill: var(--amber); stroke: var(--ink); stroke-width: 2; opacity: 0; animation: pop .5s var(--ease) forwards; }
.plan .lbl { font: 600 10px ui-monospace, Menlo, Consolas, monospace; fill: var(--ink); opacity: 0; animation: fade .6s forwards; }
.plan .dim { font: 700 12px "Vazirmatn"; fill: var(--leaf); opacity: 0; animation: fade .6s 2.8s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes fade { to { opacity: 1; } }
.plan .pt { transform-box: fill-box; transform-origin: center; }
.plan .road { fill: #ece5d2; }
.plan .road-edge { fill: none; stroke: #d9605a; stroke-width: 1.4; }
.plan .road-mid { fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: 12 9; }
.plan .road-lbl { font: 700 10px "Vazirmatn"; fill: var(--muted); text-anchor: middle; direction: rtl; }
.plan .nbr { fill: var(--tea-soft); stroke: var(--tea); stroke-width: 1.2; stroke-linejoin: round; }
.plan .num { font: 800 10px ui-monospace, Menlo, Consolas, monospace; fill: var(--ink); text-anchor: middle; opacity: 0; animation: fade .6s forwards; }
.plan .use { font: 800 12px "Vazirmatn"; fill: var(--ink-3); text-anchor: middle; direction: rtl; opacity: 0; animation: fade .6s 2.6s forwards; }
.plan .side { font: 600 9px "Vazirmatn"; fill: var(--muted); text-anchor: middle; direction: rtl; }
.plan .dim { text-anchor: middle; }
.plan .north circle { fill: #fff; stroke: var(--line); stroke-width: 1.2; }
.plan .north path { fill: var(--amber-deep); }
.plan .north text { font: 800 9px ui-monospace, Menlo, Consolas, monospace; fill: var(--ink); text-anchor: middle; }
.plan-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 6px; font-size: .85rem; }
.plan-foot .area { font-weight: 900; font-size: 1.25rem; color: var(--ink); }
.plan-qr { width: 56px; height: 56px; border-radius: 10px; background: #fff; padding: 5px; box-shadow: 0 0 0 1px var(--line); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .plan { max-width: 440px; margin: 10px auto 0; }
  .readout { display: none; }
}

/* ── strip (marquee) ───────────────────────────────────── */
.strip { background: var(--amber); color: var(--ink); overflow: hidden; padding: 14px 0; font-weight: 800; font-size: 1.05rem; }
.strip-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.strip-track span { display: inline-flex; align-items: center; gap: 48px; white-space: nowrap; }
.strip-track span::after { content: "✦"; font-size: .8em; opacity: .55; }
@keyframes marquee { to { transform: translateX(50%); } }

/* ── sections ──────────────────────────────────────────── */
.sec { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.sec-dark { background: var(--ink); color: var(--on-ink); }
.sec-dark .muted { color: var(--on-ink-muted); }
.sec-tint { background: var(--paper-2); }
.sec-head { max-width: 720px; margin-bottom: 52px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.kicker { display: inline-block; font-size: .85rem; font-weight: 800; color: var(--leaf); letter-spacing: .02em; margin-bottom: 10px; }
.sec-dark .kicker { color: var(--tea); }
.sec h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 900; }
.sec-head p { font-size: 1.1rem; color: var(--muted); }
.sec-dark .sec-head p { color: var(--on-ink-muted); }

/* page hero for inner pages */
.phero {
  background: radial-gradient(120% 120% at 90% 0%, var(--ink-3), var(--ink) 65%);
  color: var(--on-ink); padding: 150px 0 80px; position: relative; overflow: hidden; isolation: isolate;
}
.phero .topo { opacity: .7; }
.phero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 900; margin-bottom: 14px; }
.phero p { color: var(--on-ink-muted); font-size: 1.12rem; max-width: 40em; margin: 0; }
.crumbs { font-size: .88rem; color: var(--on-ink-muted); margin-bottom: 14px; }
.crumbs a { text-decoration: none; color: var(--tea); }

/* ── service cards ─────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.card {
  position: relative; background: var(--card); border-radius: var(--radius); padding: 30px 26px 26px;
  box-shadow: var(--shadow); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 1px 2px rgba(11, 36, 29, .06), 0 26px 50px -20px rgba(11, 36, 29, .35); }
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(143, 209, 143, .22), transparent 45%);
}
.card:hover::before { opacity: 1; }
.card h3 { font-size: 1.2rem; margin: 18px 0 8px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.icon {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
  background: var(--tea-soft); color: var(--ink);
}
.icon svg { width: 30px; height: 30px; }
.card .num { position: absolute; inset-inline-end: 22px; top: 18px; font-weight: 900; font-size: 2.6rem; color: var(--paper-2); line-height: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tags span { font-size: .78rem; font-weight: 600; background: var(--paper); border: 1px solid var(--line); padding: 2px 10px; border-radius: 999px; color: var(--muted); }

/* ── QR delivery ───────────────────────────────────────── */
.qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .qr-grid { grid-template-columns: 1fr; gap: 40px; } }
.phone {
  position: relative; width: min(300px, 80%); aspect-ratio: 9 / 18.5; margin-inline: auto;
  background: #0a1612; border-radius: 44px; padding: 12px; box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, .08);
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 80px; height: 22px; background: #0a1612; border-radius: 20px; transform: translateX(-50%); z-index: 3; }
.screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: linear-gradient(160deg, #1b4a3b, #0d2a22); }
.screen .cam-frame { position: absolute; inset: 22% 16% auto; aspect-ratio: 1; border-radius: 18px; }
.screen .cam-frame i { position: absolute; width: 26px; height: 26px; border: 3px solid var(--amber); }
.screen .cam-frame i:nth-child(1) { top: 0; left: 0; border-width: 3px 0 0 3px; border-radius: 10px 0 0 0; }
.screen .cam-frame i:nth-child(2) { top: 0; right: 0; border-width: 3px 3px 0 0; border-radius: 0 10px 0 0; }
.screen .cam-frame i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 3px 3px; border-radius: 0 0 0 10px; }
.screen .cam-frame i:nth-child(4) { bottom: 0; right: 0; border-width: 0 3px 3px 0; border-radius: 0 0 10px 0; }
.screen .cam-frame canvas { position: absolute; inset: 14%; width: 72%; height: 72%; background: #fff; border-radius: 8px; padding: 6px; }
.screen .scanline { position: absolute; left: 10%; right: 10%; height: 2px; top: 10%; background: var(--amber); box-shadow: 0 0 18px 4px rgba(244, 182, 63, .6); animation: scan 2.4s ease-in-out infinite; }
@keyframes scan { 50% { top: 88%; } }
.screen .toast {
  position: absolute; inset: auto 12px 18px; background: var(--paper); color: var(--ink); border-radius: 18px; padding: 12px 14px;
  display: flex; gap: 10px; align-items: center; font-size: .82rem; line-height: 1.5; box-shadow: var(--shadow);
  animation: toast 4.8s var(--ease) infinite;
}
.screen .toast b { display: block; font-size: .9rem; }
.screen .toast .ic { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--leaf); color: #fff; display: grid; place-items: center; }
@keyframes toast { 0%, 40% { transform: translateY(140%); opacity: 0; } 50%, 92% { transform: none; opacity: 1; } 100% { transform: translateY(140%); opacity: 0; } }
.steps { list-style: none; padding: 0; margin: 28px 0 34px; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: flex; gap: 16px; align-items: flex-start; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius-sm); padding: 16px 18px; }
.steps li::before {
  content: counter(s, persian); flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--amber); color: var(--ink); font-weight: 900;
}
.steps b { display: block; }
.steps span { color: var(--on-ink-muted); font-size: .95rem; }
.vs { display: flex; gap: 12px; flex-wrap: wrap; }
.vs div { flex: 1 1 200px; border-radius: var(--radius-sm); padding: 14px 16px; font-size: .92rem; }
.vs .old { background: rgba(255, 255, 255, .04); color: var(--on-ink-muted); text-decoration: line-through; text-decoration-color: rgba(244, 182, 63, .7); }
.vs .new { background: rgba(143, 209, 143, .12); color: var(--tea); font-weight: 700; }

/* ── process timeline ──────────────────────────────────── */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 33px; inset-inline: 12%; height: 2px; background: repeating-linear-gradient(to left, var(--leaf) 0 10px, transparent 10px 18px); opacity: .5; }
.tl { text-align: center; position: relative; }
.tl .dot { width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--card); box-shadow: var(--shadow), 0 0 0 8px var(--paper); color: var(--leaf); position: relative; z-index: 1; }
.sec-tint .tl .dot { box-shadow: var(--shadow), 0 0 0 8px var(--paper-2); }
.tl .dot svg { width: 28px; height: 28px; }
.tl h3 { font-size: 1.08rem; margin-bottom: 4px; }
.tl p { color: var(--muted); font-size: .94rem; margin: 0; }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: 26px; }
  .timeline::before { inset-inline: auto; inset-inline-start: 32px; top: 20px; bottom: 20px; width: 2px; height: auto; background: repeating-linear-gradient(to bottom, var(--leaf) 0 10px, transparent 10px 18px); }
  .tl { display: grid; grid-template-columns: 66px 1fr; gap: 18px; text-align: start; align-items: center; }
  .tl .dot { margin: 0; }
}

/* ── Lahijan block ─────────────────────────────────────── */
.lahijan { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .lahijan { grid-template-columns: 1fr; } }
.hills { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); background: #cfe8c5; }
.hills svg { width: 100%; height: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips span { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-weight: 600; font-size: .92rem; box-shadow: 0 1px 0 rgba(0, 0, 0, .02); }
.chips span:first-child { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

/* ── team ──────────────────────────────────────────────── */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .team { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.person { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); text-align: center; position: relative; overflow: hidden; }
.person::after { content: ""; position: absolute; inset: 0 0 auto; height: 86px; background: linear-gradient(135deg, var(--ink-3), var(--leaf)); z-index: 0; }
.avatar { position: relative; z-index: 1; width: 104px; height: 104px; border-radius: 50%; margin: 26px auto 14px; display: grid; place-items: center; font-size: 2.4rem; font-weight: 900; color: var(--ink); background: var(--amber); box-shadow: 0 0 0 6px var(--card); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: 1.15rem; margin-bottom: 2px; }
.person p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ── CTA band ──────────────────────────────────────────── */
.band {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 32px; padding: clamp(36px, 6vw, 64px);
  background: linear-gradient(120deg, var(--ink) 0%, var(--ink-3) 100%); color: var(--on-ink);
  display: grid; grid-template-columns: 1.4fr auto; gap: 30px; align-items: center;
}
.band .topo { opacity: .55; }
.band h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: 8px; }
.band p { color: var(--on-ink-muted); margin: 0; font-size: 1.08rem; }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; } }

/* ── features / FAQ ────────────────────────────────────── */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.sticky { position: sticky; top: 100px; }
@media (max-width: 900px) { .sticky { position: static; } }   /* one column on phones: the list must not ride over the services */
.faq details { background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; font-size: 1.3rem; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--amber); }
.faq details > div { padding: 0 22px 18px; color: var(--muted); }

.svc-list { display: grid; gap: 18px; }
.svc {
  display: grid; grid-template-columns: 72px 1fr; gap: 22px; background: var(--card); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); align-items: start; scroll-margin-top: 100px;
}
.svc .icon { width: 72px; height: 72px; border-radius: 22px; }
.svc .icon svg { width: 36px; height: 36px; }
.svc h2 { font-size: 1.35rem; margin-bottom: 6px; }
.svc p { color: var(--muted); }
.svc ul { margin: 0; padding-inline-start: 1.2em; color: var(--text); }
.svc li { margin-bottom: 4px; }
.svc li::marker { color: var(--leaf); }
@media (max-width: 560px) { .svc { grid-template-columns: 1fr; padding: 22px; } }

.toc { display: grid; gap: 6px; }
.toc a { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600; transition: background .2s; }
.toc a:hover { background: var(--card); }
.toc a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }
.value { padding: 28px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.value h3 { color: var(--amber); font-size: 1.2rem; }
.value p { color: var(--on-ink-muted); margin: 0; }

/* ── map lookup ────────────────────────────────────────── */
.lookup { max-width: 640px; margin-inline: auto; background: var(--card); border-radius: 28px; padding: clamp(24px, 5vw, 44px); box-shadow: var(--shadow-lg); margin-top: -70px; position: relative; z-index: 2; }
.field { display: flex; gap: 10px; }
.field input {
  flex: 1; min-width: 0; height: 60px; border-radius: 18px; border: 2px solid var(--line); background: var(--paper);
  font: 800 1.4rem/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .25em; text-align: center; text-transform: uppercase;
  direction: ltr; color: var(--ink); padding: 0 14px; transition: border-color .2s, box-shadow .2s;
}
.field input:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 5px rgba(46, 139, 87, .15); }
.field .btn { height: 60px; border-radius: 18px; }
@media (max-width: 520px) { .field { flex-direction: column; } }
.note { display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border-radius: var(--radius-sm); padding: 14px 16px; font-size: .94rem; color: var(--muted); margin-top: 18px; }
.note svg { flex: none; width: 22px; height: 22px; color: var(--leaf); margin-top: 3px; }
.alert { background: #fdecea; color: #8a1c12; border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 18px; font-weight: 600; }
.ok { background: var(--tea-soft); color: var(--ink); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 18px; font-weight: 600; }

.files { display: grid; gap: 12px; }
.file {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; background: var(--card);
  border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: var(--shadow); text-decoration: none;
  transition: transform .25s var(--ease);
}
.file:hover { transform: translateY(-3px); }
.file .ext { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font: 800 .8rem ui-monospace, Menlo, Consolas, monospace; background: var(--ink); color: var(--amber); }
.file .ext.pdf { background: #b3261e; color: #fff; }
.file .ext.img { background: var(--leaf); color: #fff; }
.file .ext.cad { background: #1d4f8f; color: #fff; }
.cad-box { background: #0f1a16; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.cad-frame { display: block; width: 100%; height: min(72vh, 680px); min-height: 360px; border: 0; background: #000; }
.cad-tabs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; background: #14231d; }
.cad-tabs button { flex: none; height: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: #22362d; color: #eaf4ee; font: 700 .85rem inherit; direction: ltr; cursor: pointer; }
.cad-tabs button.on { background: var(--amber); color: var(--ink); }
@media (max-width: 560px) { .file { grid-template-columns: 56px 1fr; } .file > .btn { grid-column: 1 / -1; justify-content: center; } }
.file b { display: block; word-break: break-word; }
.file small { color: var(--muted); }
.preview { margin-top: 24px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.preview img { width: 100%; height: auto; }
.owner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.owner .badge { background: var(--tea-soft); color: var(--ink); font-weight: 800; padding: 6px 14px; border-radius: 999px; font-size: .9rem; }

/* ── contact ───────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: -70px; position: relative; z-index: 2; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.ccard { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-lg); }
.ccard h2 { font-size: 1.15rem; margin: 14px 0 8px; }
.ccard a.big { display: block; font-size: 1.35rem; font-weight: 900; text-decoration: none; color: var(--ink); }
.ccard .soon { color: var(--muted); }
.locator { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--ink); position: relative; }
.locator svg { width: 100%; height: auto; direction: ltr; }
.pin { transform-box: fill-box; transform-origin: 50% 100%; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(.4); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }

/* ── footer ────────────────────────────────────────────── */
.foot { background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; padding-top: 72px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; position: relative; }
@media (max-width: 860px) { .foot-in { grid-template-columns: 1fr; gap: 28px; } }
.foot h3 { font-size: 1rem; color: var(--tea); }
.foot p { color: var(--on-ink-muted); margin-bottom: .4em; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--amber); }
.foot .muted { color: var(--on-ink-muted); }
.brand-foot { margin-bottom: 14px; font-size: 1.15rem; }
.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; color: var(--on-ink-muted); }
.foot-end { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 48px; padding: 20px 0 28px; color: var(--on-ink-muted); font-size: .88rem; position: relative; }
.coord { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--tea); }
.foot-topo { position: absolute; inset: 0; opacity: .25; background:
  repeating-radial-gradient(circle at 85% 120%, transparent 0 22px, rgba(143, 209, 143, .35) 22px 23px),
  repeating-radial-gradient(circle at 10% -20%, transparent 0 30px, rgba(143, 209, 143, .25) 30px 31px);
  mask-image: linear-gradient(to bottom, transparent, #000 40%); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%); }

/* ── reveal on scroll ──────────────────────────────────── */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }
.shot *, .shot *::before, .shot *::after { transition: none !important; animation-delay: 0s !important; animation-duration: .001s !important; animation-iteration-count: 1 !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}

/* ── admin ─────────────────────────────────────────────── */
.admin { padding: 120px 0 80px; min-height: 100vh; }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; margin-bottom: 20px; }
.panel h2 { font-size: 1.25rem; }
.form { display: grid; gap: 14px; }
.form label { font-weight: 700; font-size: .95rem; display: grid; gap: 6px; }
.form input[type=text], .form input[type=password], .form input[type=tel] {
  height: 52px; border-radius: 14px; border: 2px solid var(--line); background: var(--paper); font: inherit; padding: 0 14px;
}
.form input:focus { outline: none; border-color: var(--leaf); }
.drop { border: 2px dashed var(--line); border-radius: var(--radius-sm); padding: 26px; text-align: center; color: var(--muted); background: var(--paper); cursor: pointer; transition: border-color .2s, background .2s; }
.drop.over { border-color: var(--leaf); background: var(--tea-soft); }
.drop input { display: none; }
.rows { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: var(--paper); border-radius: var(--radius-sm); padding: 12px 14px; }
.row code { font: 800 1rem ui-monospace, Menlo, Consolas, monospace; background: var(--ink); color: var(--amber); padding: 4px 10px; border-radius: 8px; letter-spacing: .12em; }
.row .acts { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 620px) { .row { grid-template-columns: 1fr; } }
.qr-card { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: center; }
.qr-card canvas, .qr-card img { width: 180px; height: 180px; }
@media (max-width: 560px) { .qr-card { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

/* printed label */
.print-label { display: none; }
@media print {
  body * { visibility: hidden; }
  .print-label, .print-label * { visibility: visible; }
  .print-label { display: flex !important; position: absolute; inset: 0 auto auto 0; width: 90mm; border: 1px solid #000; border-radius: 4mm; padding: 5mm; gap: 5mm; align-items: center; font-family: "Vazirmatn", sans-serif; color: #000; direction: rtl; }
  .print-label img { width: 30mm; height: 30mm; }
  .print-label b { display: block; font-size: 12pt; }
  .print-label span { font-size: 9pt; }
}

/* team phones */
.person-tel { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--leaf); text-decoration: none; direction: ltr; }
.tel-person { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 6px 0; }
.tel-person + .tel-person { border-top: 1px solid var(--line); }
.tel-person span { font-weight: 600; }
.tel-person .big { font-size: 1.15rem; }

/* admin: the customer-visibility switch of a map */
.show-switch { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: #fdecea; }
.show-switch.on { background: var(--tea-soft); }
.show-switch button { flex: none; width: 62px; height: 36px; border-radius: 18px; border: 0; background: #c9c3b4; position: relative; cursor: pointer; transition: background .25s var(--ease); }
.show-switch.on button { background: #2e9b5b; }
.show-switch .knob { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: right .25s var(--ease); }
.show-switch.on .knob { right: 30px; }
.show-switch b { display: block; }
.show-switch small { color: var(--muted); }
.pill { font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: #fdecea; color: #8a1c12; white-space: nowrap; }
.pill.on { background: var(--tea-soft); color: var(--ink); }

/* Map list in folders (person → survey month) */
.fold { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; background: #fff; }
.fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-size: 1.05rem; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: ""; margin-inline-start: auto; width: 9px; height: 9px; border: solid var(--muted); border-width: 0 0 2px 2px; transform: rotate(45deg); transition: transform .2s; }
.fold[open] > summary::after { transform: rotate(-45deg); }
.fold-ic { width: 24px; height: 24px; fill: var(--amber); flex: none; }
.fold-y { padding: 0 12px 6px; }
.fold-m { font-weight: 800; font-size: .9rem; color: var(--muted); margin: 8px 4px; }
.fold .rows { margin-bottom: 8px; }
.fold-body { padding: 0 12px 8px; }
.fold.sub { background: var(--paper); margin: 0 0 8px; }
.fold.sub > summary { padding: 10px 12px; font-size: 1rem; }
.fold.sub .fold-ic { width: 20px; height: 20px; }
.fold.date { background: #fff; }
.fold.date .fold.date { background: var(--paper); }
.fold.date > summary .fold-ic { fill: var(--tea); }
.fold-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; }
.fold-tools form { margin: 0; }
.fold-add { display: flex; gap: 8px; flex: 1 1 200px; min-width: 0; }
.fold-add button { flex: none; white-space: nowrap; }
.fold.sub .fold-body { padding: 0 8px 6px; }
.fold-add input { flex: 1; min-width: 0; height: 40px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font: inherit; font-size: .92rem; padding: 0 12px; }
.row .move select { height: 36px; max-width: 150px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: .85rem; padding: 0 10px; color: var(--muted); cursor: pointer; }
.row .acts form { margin: 0; }
.btn-del { color: #b3261e; }
.place-row { display: flex; flex-wrap: wrap; gap: 12px; }
.place-row label { flex: 1 1 180px; }
.form select { width: 100%; height: 48px; border-radius: 14px; border: 2px solid var(--line); background: var(--paper); font: inherit; padding: 0 12px; }
