/* =============================================================
   لندینگ لوکیشن‌محور — «شیشه سکوریت در {محدوده}»
   -------------------------------------------------------------
   ادامه همان سیستم طراحی style.css است: هیچ رنگ، شعاع، سایه یا
   فونت تازه‌ای تعریف نمی‌شود و همه‌چیز از توکن‌های سرمه‌ای/طلایی
   می‌آید. فقط کامپوننت‌هایی اینجاست که مخصوص این خانواده صفحه‌اند.

   امضای بصری صفحه: «بارنامه» (.waybill). محله که انتخاب می‌شود،
   برگه بارنامه همان محله پر می‌شود و مهر کارگاه رویش می‌خورد.
   تنها انیمیشن ساخته‌شده در این فایل همین است؛ بقیه سکشن‌ها از
   reveal و timeline موجود استفاده می‌کنند تا صفحه شلوغ نشود.

   موبایل‌اول: هر بلاک اول برای عرض ۳۶۰ چیده شده و بعد در ۹۰۰
   پیکسل باز می‌شود.
   ============================================================= */

/* ---------- ۱. میز تماس هیرو ----------
   تماس مستقیم، مسیر اصلی است و فرم درخواست تماس در ردیف دوم همان
   پنل می‌آید تا شماره و اقدام هیچ‌کدام فشرده یا ناقص دیده نشوند. */
.herocall {
  display: grid;
  margin-block: 26px 24px;
  max-width: 640px;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 75, .42);
  border-radius: var(--r-md);
  background: rgba(4, 15, 32, .76);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
  backdrop-filter: blur(12px);
}

/* شماره شرکت — ردیف اول، کامل و با اولویت دیداری بالاتر. */
.callnum {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(201, 162, 75, .25);
  background: linear-gradient(105deg, rgba(201, 162, 75, .14), rgba(255, 255, 255, .035));
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}

.callnum:hover { background: rgba(201, 162, 75, .17); }
.callnum:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }

.callnum__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(201, 162, 75, .42);
  border-radius: 50%;
  color: var(--gold-light);
  background: rgba(201, 162, 75, .12);
}

.callnum__copy { display: grid; gap: 2px; min-width: 0; }
.callnum__copy small { font-size: 12px; color: rgba(255, 255, 255, .66); }
.callnum__copy strong {
  font-size: clamp(20px, 3vw, 25px);
  font-weight: 900;
  letter-spacing: .01em;
  color: var(--gold-light);
  direction: ltr;
  unicode-bidi: embed;
  text-align: start;
}

.callnum__meta {
  max-width: 145px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .62);
  text-align: end;
}

/* ---------- درخواست تماس — ردیف دوم پنل ---------- */
.quickcall { display: grid; gap: 10px; padding: 14px 18px 17px; }
.quickcall__head { display: grid; gap: 2px; }
.quickcall__head strong { font-size: 14px; color: var(--white); }
.quickcall__head span { font-size: 12.5px; line-height: 1.7; color: rgba(255, 255, 255, .62); }

.quickcall__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  padding: 5px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r-sm);
}

.section--light .quickcall__row,
.section--mist .quickcall__row {
  background: var(--white);
  border-color: var(--line);
  box-shadow: var(--shadow-card);
}

.quickcall input {
  min-width: 0;
  padding: 10px 14px;
  border: 1.5px solid transparent;
  border-radius: 11px;
  background: var(--white);
  color: var(--navy);
  font-size: 16px; /* زیر ۱۶ پیکسل، سافاری موبایل صفحه را زوم می‌کند */
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.quickcall .btn--sm { padding-inline: 18px; }

.quickcall input::placeholder { color: #93A0B4; }
.quickcall input:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 75, .22);
}
.quickcall input[aria-invalid="true"] { border-color: var(--stop); }

.quickcall .btn { white-space: nowrap; }

@media (max-width: 520px) {
  .callnum { grid-template-columns: auto minmax(0, 1fr); }
  .callnum__meta { grid-column: 2; max-width: none; text-align: start; }
  .quickcall__row { grid-template-columns: 1fr; }
  .quickcall .btn { width: 100%; }
}

/* چهار ریزنشان هیرو در گرید ۲×۲ — سیستم پایه سه‌ستونی است و
   با چهار آیتم، ردیف آخر تک‌آیتمی و نامرتب می‌شود. */
@media (min-width: 620px) {
  .hero__badges { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
}
.quickcall .err {
  font-size: 13px;
  color: #FFC9C9;
}
.section--light .quickcall .err,
.section--mist .quickcall .err { color: #B4232A; }

[data-location-callback] [data-err].is-success {
  display: block;
  color: #14734b;
  font-weight: 700;
  line-height: 1.9;
}
.section--dark [data-location-callback] [data-err].is-success,
.hero [data-location-callback] [data-err].is-success { color: #b9f6d4; }
[data-location-callback] button[disabled] { cursor: wait; opacity: .68; }
.location-subhead { font-size: 15px; margin-block-end: 12px; }
.location-nearby { margin-block-start: 28px; }
#coverage .seobox { margin-block-start: 36px; }
.location-prices__updated { display: inline-block; margin-inline-end: 10px; color: var(--gold-ink); }

/* ---------- ۲. نوار برنامه ارسال ---------- */
.dispatch {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
}

.dispatch__item { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.dispatch__item svg { color: var(--gold-ink); margin-block-start: 3px; }
.dispatch__item b { display: block; font-size: 15px; }
.dispatch__item span { font-size: 13.5px; color: var(--muted); line-height: 1.8; }

@media (min-width: 900px) {
  .dispatch { grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 24px 28px; }
}

/* ---------- ۳. انتخابگر محله + بارنامه (امضای صفحه) ---------- */
.geo { display: grid; gap: 18px; }

/* بدون این، متن بلند گزینه‌های کشویی عرض ستون گرید را از عرض
   ظرف بزرگ‌تر می‌کند و کارت از لبه بیرون می‌زند. */
.geo > * { min-width: 0; }

@media (min-width: 980px) {
  .geo { grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
}

/* فرم سه‌گامی — به‌جای ریختن ده‌ها گزینه روی صفحه، هر بار یک
   تصمیم از کاربر گرفته می‌شود. */
.wiz {
  padding: 22px 20px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

.wiz__rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-block-end: 22px;
}

.wiz__rail li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  padding-block-end: 10px;
  border-block-end: 2px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}

.wiz__rail li span {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--mist);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}

.wiz__rail li.is-on { color: var(--navy); border-block-end-color: var(--gold); font-weight: 700; }
.wiz__rail li.is-on span { background: var(--navy); border-color: var(--navy); color: var(--gold-light); }
.wiz__rail li.is-done { border-block-end-color: var(--gold); }
.wiz__rail li.is-done span { background: var(--gold-light); border-color: var(--gold); color: var(--navy); }

/* بدون جاوااسکریپت، هر سه گام پشت سر هم دیده می‌شوند */
.js .wiz__panel { display: none; }
.js .wiz__panel.is-on { display: block; animation: wizin .28s var(--ease); }
.wiz__panel + .wiz__panel { margin-block-start: 24px; }
.js .wiz__panel + .wiz__panel { margin-block-start: 0; }

@keyframes wizin {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js .wiz__panel.is-on { animation: none; }
}

.wiz__q {
  display: block;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.7;
  margin-block-end: 14px;
}

.wiz__sub {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  margin-block: 16px 8px;
}

.wiz select,
.wiz input[type="text"],
.wiz input[type="tel"] {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  font-size: 16px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.wiz select:focus-visible,
.wiz input:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 75, .18);
}

.wiz input[aria-invalid="true"] { border-color: var(--stop); }

.wiz__hint { font-size: 13px; color: var(--muted); margin-block-start: 10px; }
.wiz__hint b { color: var(--navy); }

.wiz .err { display: block; font-size: 13px; color: #B4232A; margin-block-start: 8px; }

.wiz__nav {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-block-start: 20px;
}

.wiz__nav .btn { flex: 1; }
.wiz__nav .btn--sm { flex: none; }

/* بارنامه — همان برگه‌ای که همراه بار به پروژه می‌رسد */
.waybill {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 22px 20px 20px;
  background:
    linear-gradient(160deg, #1A2E52 0%, #12233F 100%);
  border: 1px solid rgba(201, 162, 75, .22);
  border-radius: var(--r-lg);
  color: var(--white);
  box-shadow: var(--shadow-lift);
}

/* نوار پرفراژ بالای برگه */
.waybill::before {
  content: "";
  position: absolute;
  inset-block-start: 11px;
  inset-inline: 16px;
  border-block-start: 1.5px dashed rgba(201, 162, 75, .35);
}

.waybill__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-block-start: 6px;
}

.waybill__eyebrow {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--gold-light);
}

.waybill__area {
  font-size: 25px;
  font-weight: 900;
  line-height: 1.5;
  margin-block: 2px 0;
}

.waybill__rows {
  display: grid;
  gap: 2px;
  margin-block-start: 16px;
  border-block-start: 1px solid rgba(255, 255, 255, .1);
}

.waybill__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: baseline;
  padding-block: 11px;
  border-block-end: 1px solid rgba(255, 255, 255, .07);
  font-size: 14px;
}

.waybill__row dt { color: rgba(255, 255, 255, .62); white-space: nowrap; }
.waybill__row dd { margin: 0; font-weight: 700; text-align: end; }
.waybill__row dd small { display: block; font-weight: 400; font-size: 12.5px; color: rgba(255, 255, 255, .55); }

.waybill__actions {
  display: grid;
  gap: 10px;
  margin-block-start: 18px;
}

/* راه جایگزین برای کسی که نمی‌خواهد فرم پر کند */
.waybill__call {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid rgba(201, 162, 75, .35);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .05);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}

.waybill__call:hover { border-color: var(--gold); background: rgba(201, 162, 75, .1); }
.waybill__call svg { grid-row: 1 / 3; color: var(--gold-light); }
.waybill__call span { font-size: 12px; color: rgba(255, 255, 255, .6); }
.waybill__call strong {
  font-size: 19px;
  font-weight: 900;
  color: var(--gold-light);
  direction: ltr;
  unicode-bidi: embed;
  text-align: start;
}

/* دکمه صفحه اختصاصی محله — فقط وقتی آن صفحه ساخته شده باشد */
.waybill__page {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1.5px solid rgba(201, 162, 75, .45);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-light);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.waybill__page:hover { background: rgba(201, 162, 75, .12); border-color: var(--gold); }
.waybill__page[hidden] { display: none; }

/* مهر کارگاه — واترمارک وسط برگه، مثل مهری که روی بارنامه می‌خورد.
   پشت متن می‌نشیند تا با هیچ دکمه‌ای برخورد نکند. */
.waybill__stamp {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  z-index: -1;
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  border: 3px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.6;
  text-align: center;
  opacity: .16;
  transform: translate(50%, -50%) rotate(-13deg);
  pointer-events: none;
}

.waybill.is-stamping .waybill__stamp { animation: stamp .42s var(--ease); }

@keyframes stamp {
  0%   { opacity: 0;    transform: translate(50%, -50%) rotate(-26deg) scale(1.55); }
  55%  { opacity: .32;  transform: translate(50%, -50%) rotate(-11deg) scale(.96); }
  100% { opacity: .16;  transform: translate(50%, -50%) rotate(-13deg) scale(1); }
}

/* تعویض محتوای برگه: بیرون‌رفت کوتاه، ورود آرام */
.waybill__body { transition: opacity .22s var(--ease), transform .22s var(--ease); }
.waybill.is-swapping .waybill__body { opacity: 0; transform: translateY(6px); }

@media (prefers-reduced-motion: reduce) {
  .waybill.is-stamping .waybill__stamp { animation: none; }
  .waybill__body { transition: none; }
  .waybill.is-swapping .waybill__body { opacity: 1; transform: none; }
}

/* ---------- ۴. تایم‌لاین تحویل — افزوده روی .tl-item موجود ---------- */
.tl-item__t {
  display: inline-block;
  margin-block-end: 6px;
  padding: 3px 11px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold-ink);
}

.section--dark .tl-item__t {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .14);
  color: var(--gold-light);
}

/* ---------- ۵. بلوک شکست حین پروژه ---------- */
.rush {
  display: grid;
  gap: 18px;
  padding: 26px 22px;
  background: linear-gradient(160deg, #1A2E52 0%, #12233F 100%);
  border: 1px solid rgba(201, 162, 75, .22);
  border-radius: var(--r-lg);
  color: var(--white);
}

.rush h2 { font-size: 23px; line-height: 1.65; }
.rush p { color: rgba(255, 255, 255, .78); font-size: 15px; }

.rush__num {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(201, 162, 75, .3);
  border-radius: var(--r-md);
}

.rush__num strong {
  font-size: 27px;
  font-weight: 900;
  letter-spacing: .02em;
  color: var(--gold-light);
  direction: ltr;
  unicode-bidi: embed;
  text-align: end;
}

.rush__num span { font-size: 13px; color: rgba(255, 255, 255, .68); }

@media (min-width: 900px) {
  .rush { grid-template-columns: 1.35fr .85fr; gap: 40px; align-items: center; padding: 38px 40px; }
}

/* ---------- ۶. همه‌چیزی که از ما می‌گیرید ---------- */
.matrix { display: grid; gap: 26px; }

@media (min-width: 760px)  { .matrix { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .matrix { grid-template-columns: repeat(4, 1fr); } }

.matrix__group h3 {
  font-size: 15px;
  padding-block-end: 10px;
  margin-block-end: 12px;
  border-block-end: 2px solid var(--gold);
}

.matrix__list { display: grid; gap: 8px; }

.matrix__list a,
.matrix__list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}

.matrix__list a:hover { border-color: var(--gold); transform: translateX(-3px); }

/* فقط موردی که هنوز ارائه نمی‌شود خاموش دیده می‌شود؛ خدمتی که
   انجام می‌دهیم اما هنوز صفحه ندارد، مثل بقیه پررنگ می‌ماند. */
.matrix__list .is-soon { color: var(--muted); background: transparent; border-style: dashed; }

.soon {
  flex: none;
  padding: 2px 9px;
  border-radius: var(--r-pill);
  background: var(--mist);
  border: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
}

/* ---------- ۷. ثبت سفارش آنلاین ---------- */
.orderbar {
  display: grid;
  gap: 20px;
  padding: 26px 22px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

.orderbar h2 { font-size: 23px; line-height: 1.6; }
.orderbar p { color: var(--muted); font-size: 15px; }

.orderbar__steps {
  display: grid;
  gap: 10px;
  counter-reset: step;
}

.orderbar__steps li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: center;
  font-size: 14.5px;
}

.orderbar__steps li::before {
  counter-increment: step;
  content: counter(step, persian);
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--mist);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-ink);
}

.orderbar__foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

@media (min-width: 900px) {
  .orderbar { grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 38px 40px; }
}

/* ---------- ۸. کارگاه و آدرس ---------- */
.workshop { display: grid; gap: 18px; }
.workshop dl { display: grid; gap: 14px; }
.workshop dt { font-size: 13px; color: var(--muted); }
.workshop dd { margin: 0; font-size: 15.5px; font-weight: 700; }
.workshop__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (min-width: 900px) {
  .workshop { grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
}

/* ---------- ۹. محدوده‌های تحت پوشش ---------- */
.coverage { display: flex; flex-wrap: wrap; gap: 8px; }

.coverage a,
.coverage span {
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--white);
  font-size: 13.5px;
  transition: border-color .2s var(--ease);
}

.coverage a:hover { border-color: var(--gold); }
.coverage span { color: var(--muted); border-style: dashed; background: transparent; }

/* ---------- ۱۰. محموله‌های اخیر ---------- */
.shipments { display: grid; gap: 12px; }

@media (min-width: 760px) { .shipments { grid-template-columns: repeat(3, 1fr); } }

.shipment {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
}

.shipment b { font-size: 15.5px; }
.shipment span { font-size: 13px; color: var(--muted); }
