/* ==========================================================================
   بلند چینه دژ — وب‌سایت عمومی
   ========================================================================== */

body.site { background: var(--paper); }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--s-6);
}

/* ================================================================ سربرگ */
.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 242, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.hdr__in {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: var(--s-3) var(--s-6);
  display: flex;
  align-items: center;
  gap: var(--s-6);
}

.logo { display: flex; align-items: center; gap: var(--s-3); flex-shrink: 0; }
.logo__mark { width: 32px; height: 32px; }
.logo__txt  { line-height: 1.2; }
.logo__name { font-weight: 900; font-size: var(--t-base); letter-spacing: -.015em; }
.logo__sub  {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .55;
}

.hdr .logo__mark { color: var(--ink); }
.hdr .logo__name { color: var(--ink); }
.hdr .logo__sub  { color: var(--ink-faint); }

.hdr__nav {
  display: flex;
  gap: var(--s-6);
  margin-inline-start: auto;
  font-size: var(--t-sm);
  font-weight: 500;
}
.hdr__nav a {
  position: relative;
  padding-block: 4px;
  transition: color .16s ease;
}
.hdr__nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 0;
  height: 1.5px;
  background: var(--oxide);
  transition: width .22s ease;
}
.hdr__nav a:hover::after { width: 100%; }

.hdr__right {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.hdr__burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.hdr__burger span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform .22s ease, opacity .22s ease;
}
.hdr__burger.is-on span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hdr__burger.is-on span:nth-child(2) { opacity: 0; }
.hdr__burger.is-on span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* سوییچ زبان */
.langsw {
  display: flex;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
}
.langsw a {
  padding: 4px 9px;
  font-size: var(--t-2xs);
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: .05em;
  border-inline-end: 1px solid var(--line-strong);
  transition: background .16s ease, color .16s ease;
}
.langsw a:last-child { border-inline-end: 0; }
.langsw a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.langsw a:not([aria-current="true"]):hover { background: var(--concrete-dk); }

/* ============================================================== قهرمان */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  min-height: 76vh;
  display: flex;
  align-items: center;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(248,246,242,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248,246,242,.055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 45%, #000 20%, transparent 100%);
}

.hero__art {
  position: absolute;
  inset-inline-end: -6%;
  top: 6%;
  width: 58%;
  max-width: 640px;
  opacity: .3;
  pointer-events: none;
}
.hero__art path {
  fill: none;
  stroke: rgba(248,246,242,.55);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.hero__art circle { fill: var(--oxide); }

.hero__in {
  position: relative;
  z-index: 2;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: var(--s-9) var(--s-6);
  width: 100%;
}

.hero .eyebrow { color: var(--oxide-lt); }
.hero .eyebrow::before { background: var(--oxide-lt); }

.hero__t {
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.03em;
  margin-block: var(--s-5) var(--s-5);
  max-width: 16ch;
}
.hero__t span { display: block; }
.hero__t span:nth-child(2) { color: var(--oxide-lt); }

.hero__lede {
  font-size: var(--t-md);
  line-height: 1.9;
  color: rgba(248,246,242,.72);
  max-width: 56ch;
  margin-bottom: var(--s-7);
}

.hero__cta { display: flex; gap: var(--s-4); flex-wrap: wrap; }
.hero__cta .btn { padding: 12px var(--s-6); font-size: var(--t-base); }
.hero__cta .btn:not(.btn--ghost) {
  background: var(--oxide);
  border-color: var(--oxide);
  color: #fff;
}
.hero__cta .btn:not(.btn--ghost):hover { background: var(--oxide-lt); border-color: var(--oxide-lt); }
.hero__cta .btn--ghost {
  color: var(--paper);
  border-color: rgba(248,246,242,.35);
}
.hero__cta .btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ================================================================ آمار */
.statbar {
  background: var(--concrete);
  border-bottom: 1px solid var(--line);
}
.statbar__in {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: var(--s-6) var(--s-5);
  border-inline-end: 1px solid var(--line);
  text-align: center;
}
.stat:last-child { border-inline-end: 0; }
.stat__v {
  font-family: var(--font-mono);
  font-size: var(--t-2xl);
  font-weight: 700;
  color: var(--oxide);
  line-height: 1;
  letter-spacing: -.02em;
}
.stat__k {
  font-size: var(--t-xs);
  color: var(--ink-faint);
  margin-top: var(--s-3);
  line-height: 1.6;
}

/* ================================================================ بخش */
.sec { padding-block: var(--s-9); }
.sec--alt  { background: var(--concrete); }
.sec--dark { background: var(--ink); color: var(--paper); }

.sec__head {
  max-width: 62ch;
  margin-bottom: var(--s-8);
}
.sec__head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.3;
  margin-block: var(--s-2) var(--s-4);
}
.sec__lede {
  font-size: var(--t-md);
  color: var(--ink-faint);
  line-height: 1.9;
}
.sec--dark .sec__lede { color: rgba(248,246,242,.68); }

/* ============================================================== خدمات */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-mid);
  border: 1px solid var(--line-mid);
  border-radius: var(--radius);
  overflow: hidden;
}

.svc {
  background: var(--paper);
  padding: var(--s-6);
  transition: background .2s ease;
}
.sec--alt .svc { background: var(--white); }
.svc:hover { background: var(--oxide-pale); }

.svc__code {
  font-size: var(--t-2xs);
  letter-spacing: .14em;
  color: var(--oxide);
  margin-bottom: var(--s-4);
}
.svc h3 {
  font-size: var(--t-md);
  font-weight: 700;
  margin-bottom: var(--s-3);
  letter-spacing: -.01em;
}
.svc p {
  font-size: var(--t-sm);
  color: var(--ink-faint);
  line-height: 1.9;
}

/* ============================================================ پروژه‌ها */
.prj-list { display: flex; flex-direction: column; }

.prj {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: var(--s-6);
  padding-block: var(--s-6);
  border-top: 1px solid var(--line-mid);
  transition: background .2s ease;
}
.prj:last-child { border-bottom: 1px solid var(--line-mid); }
.prj:hover { background: rgba(248,246,242,.6); }

.prj__y {
  font-size: var(--t-lg);
  font-weight: 700;
  color: var(--oxide);
  padding-top: 2px;
}

.prj__body h3 {
  font-size: var(--t-md);
  font-weight: 700;
  margin-bottom: var(--s-1);
  letter-spacing: -.01em;
}
.prj__loc {
  font-size: var(--t-xs);
  color: var(--ink-faint);
  font-family: var(--font-mono);
  margin-bottom: var(--s-3);
}
.prj__body p {
  font-size: var(--t-sm);
  color: var(--ink-soft);
  line-height: 1.9;
  max-width: 76ch;
}

/* =========================================================== نقشه راه */
.rm { list-style: none; display: flex; flex-direction: column; gap: var(--s-4); }

.rm__i {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--s-5);
  padding: var(--s-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.rm__i::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 3px;
  height: 100%;
}
.rm__i--done::before    { background: var(--ok); }
.rm__i--active::before  { background: var(--oxide); }
.rm__i--next::before    { background: var(--warn); }
.rm__i--planned::before { background: var(--line-strong); }

.rm__n {
  font-size: var(--t-xl);
  font-weight: 700;
  color: var(--concrete-dk);
  line-height: 1;
}
.rm__i--active .rm__n { color: var(--oxide); }
.rm__i--done   .rm__n { color: var(--ok); }

.rm__head {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-bottom: var(--s-2);
}
.rm__head h3 { font-size: var(--t-base); font-weight: 700; }

.rm__st {
  font-size: var(--t-2xs);
  font-family: var(--font-mono);
  padding: 2px 9px;
  border-radius: 20px;
  background: var(--concrete);
  color: var(--ink-faint);
}
.rm__i--done .rm__st   { background: var(--ok-pale);    color: var(--ok); }
.rm__i--active .rm__st { background: var(--oxide-pale); color: var(--oxide); }
.rm__i--next .rm__st   { background: var(--warn-pale);  color: var(--warn); }

.rm__body p {
  font-size: var(--t-sm);
  color: var(--ink-faint);
  line-height: 1.9;
  max-width: 76ch;
}

/* ============================================================ درباره ما */
.about {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-8);
  align-items: start;
}

.about__txt h2 { margin-block: var(--s-2) var(--s-5); }
.about__txt p {
  font-size: var(--t-base);
  line-height: 2;
  color: rgba(248,246,242,.75);
  margin-bottom: var(--s-4);
  max-width: 68ch;
}

.about__pts { list-style: none; display: flex; flex-direction: column; gap: var(--s-3); }
.about__pts li {
  display: flex;
  gap: var(--s-3);
  font-size: var(--t-sm);
  line-height: 1.8;
  color: rgba(248,246,242,.8);
  padding: var(--s-4);
  background: rgba(248,246,242,.05);
  border-inline-start: 2px solid var(--oxide);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.about__pts li::before {
  content: '—';
  color: var(--oxide-lt);
  flex-shrink: 0;
}

.sec--dark .eyebrow { color: var(--oxide-lt); }
.sec--dark .eyebrow::before { background: var(--oxide-lt); }

/* =============================================================== تماس */
.contact {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--s-7);
  align-items: start;
}

.contact__form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-6);
}

.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-5); }
.f-grid .full { grid-column: 1 / -1; }

.opt {
  font-size: var(--t-2xs);
  color: var(--ink-faint);
  font-weight: 400;
  opacity: .8;
}

/* تله ربات */
.hp {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact__info {
  background: var(--concrete);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-6);
}
.contact__info dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-1);
}
.contact__info dt {
  font-size: var(--t-2xs);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-faint);
  margin-top: var(--s-4);
}
.contact__info dt:first-child { margin-top: 0; }
.contact__info dd {
  font-size: var(--t-sm);
  line-height: 1.8;
  font-weight: 500;
}
.contact__info .btn { width: 100%; justify-content: center; }

/* ================================================================ پابرگ */
.ftr {
  background: var(--ink);
  color: rgba(248,246,242,.6);
  padding-block: var(--s-7);
}
.ftr__in {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--s-6);
  display: flex;
  align-items: center;
  gap: var(--s-6);
  flex-wrap: wrap;
}

.ftr__brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.ftr__brand .logo__mark { width: 30px; height: 30px; color: var(--paper); }
.ftr__brand .logo__name { color: var(--paper); font-weight: 900; font-size: var(--t-sm); }
.ftr__tag { font-size: var(--t-2xs); opacity: .6; margin-top: 2px; }

.ftr__nav {
  display: flex;
  gap: var(--s-5);
  margin-inline-start: auto;
  font-size: var(--t-xs);
}
.ftr__nav a:hover { color: var(--oxide-lt); }

.ftr__meta {
  font-size: var(--t-2xs);
  width: 100%;
  padding-top: var(--s-5);
  border-top: 1px solid rgba(248,246,242,.1);
  opacity: .7;
}

/* ========================================================== بازگشت بالا */
.totop {
  position: fixed;
  inset-block-end: var(--s-5);
  inset-inline-end: var(--s-5);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease, background .18s ease;
  z-index: 90;
}
.totop.is-on { opacity: .9; pointer-events: auto; }
.totop:hover { background: var(--oxide); color: #fff; }

/* ================================================================= فرم */
.field { margin-bottom: var(--s-4); }
.field label {
  display: block;
  font-size: var(--t-xs);
  font-weight: 600;
  margin-bottom: var(--s-2);
  color: var(--ink-soft);
}
.field input,
.field textarea {
  width: 100%;
  padding: 9px var(--s-4);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: var(--t-sm);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--oxide);
  box-shadow: 0 0 0 3px rgba(194,90,43,.12);
}
.field textarea { resize: vertical; line-height: 1.8; }

.req { color: var(--danger); font-weight: 700; }

.flash {
  padding: var(--s-4) var(--s-5);
  border-radius: var(--radius);
  font-size: var(--t-sm);
  margin-bottom: var(--s-5);
  border: 1px solid;
  line-height: 1.7;
}
.flash--ok  { background: var(--ok-pale);     border-color: var(--ok);     color: var(--ok); }
.flash--err { background: var(--danger-pale); border-color: var(--danger); color: var(--danger); }

.contact__form .btn { width: 100%; justify-content: center; padding-block: 11px; }

/* ============================================================== موبایل */
@media (max-width: 1000px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .about    { grid-template-columns: 1fr; gap: var(--s-6); }
  .contact  { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .hdr__nav {
    display: none;
    position: fixed;
    inset: 58px 0 auto 0;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    padding: var(--s-4) var(--s-6);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
  }
  .hdr__nav.is-open { display: flex; }
  .hdr__nav a {
    padding-block: var(--s-4);
    border-bottom: 1px solid var(--line);
    font-size: var(--t-base);
  }
  .hdr__nav a:last-child { border-bottom: 0; }
  .hdr__burger { display: flex; }

  .statbar__in { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-inline-end: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .hero { min-height: auto; }
  .hero__art { opacity: .16; width: 88%; inset-inline-end: -20%; }
  .hero__in { padding-block: var(--s-8); }

  .sec { padding-block: var(--s-8); }
  .svc-grid { grid-template-columns: 1fr; }
  .prj { grid-template-columns: 1fr; gap: var(--s-2); }
  .f-grid { grid-template-columns: 1fr; }
  .ftr__nav { margin-inline-start: 0; width: 100%; flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .wrap, .hdr__in, .ftr__in, .hero__in { padding-inline: var(--s-4); }
  .hdr__right .btn { display: none; }
  .rm__i { grid-template-columns: 40px 1fr; gap: var(--s-3); padding: var(--s-4); }
}

/* ================================================================= چاپ */
@media print {
  .hdr, .ftr, .totop, .hero__art, .hero__grid, .contact__form { display: none !important; }
  .hero { background: #fff; color: #000; min-height: auto; }
  .sec--dark { background: #fff; color: #000; }
  .sec { padding-block: 10mm; break-inside: avoid; }
}
