/* =========================================================
   ParPhonix — Shared Inner-Page Styles
   Used by every page under /pages (services, contact, intro,
   about-parphonix, infrastructure, cloud, solutions, secretariat)
   ========================================================= */

.page-wrap {
  width: 100%;
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 16px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  font-family: 'Rajdhani', 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  transition: transform 0.2s ease;
}
.back-btn:hover { transform: translateX(-4px); }

.page-header { margin-bottom: 48px; }

.page-title {
  font-family: 'Orbitron', 'Poppins', sans-serif;
  font-size: clamp(22px, 4vw, 34px);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.page-subtitle {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.05em;
  max-width: 640px;
  line-height: 1.7;
}

/* گرید کارت‌های اطلاعاتی عمومی */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
  margin-bottom: 50px;
}

.info-card {
  background: rgba(11, 14, 17, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.info-card:hover {
  border-color: var(--accent);
  box-shadow: 0 15px 40px rgba(197, 161, 91, 0.12);
  transform: translateY(-4px);
}

.info-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.info-card:hover::after { transform: scaleX(1); }

/* برچسب «به‌زودی» برای کارت‌هایی که هنوز آدرس‌دهی نشده‌اند */
.pending-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.03);
}

/* برچسب «فعال» برای نرم‌افزارهایی که واقعاً لینک دارند */
.live-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #06080a;
  background: var(--accent);
  border-radius: 999px;
  padding: 3px 9px;
  box-shadow: 0 0 10px rgba(197, 161, 91, 0.4);
}

/* زیرعنوان بخش‌ها داخل یک صفحه (مثلاً «نرم‌افزارهای اختصاصی» زیر سرویس‌ها) */
.section-header { margin: 56px 0 26px; }

.section-title {
  font-family: 'Orbitron', 'Poppins', sans-serif;
  font-size: clamp(18px, 2.6vw, 24px);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  max-width: 620px;
  line-height: 1.7;
}

.section-note {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 8px;
}

.section-note a {
  color: var(--accent);
}

a.info-card {
  text-decoration: none;
  display: block;
}

.badge {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
  background: rgba(197, 161, 91, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(197, 161, 91, 0.15);
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  text-align: justify;
  hyphens: auto;               /* بدون این، justify رودخانه‌ی فضای خالی می‌سازد */
}

/* روی صفحه‌ی باریک، هر خط آن‌قدر کوتاه است که justify فاصله‌های زشت بین
   کلمات ایجاد می‌کند — مخصوصاً در انگلیسی و روسی که کلمات بلندند. زیر این
   عرض، متن از لبه‌ی شروع چیده می‌شود. */
@media (max-width: 700px) {
  .card-desc { text-align: start; }
}

/* پنل مشخصات فنی / آمار */
.stat-panel {
  background: rgba(9, 12, 14, 0.8);
  border: 1px solid rgba(197, 161, 91, 0.3);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 50px;
  box-shadow: inset 0 0 20px rgba(197, 161, 91, 0.05);
}

.stat-panel__title {
  font-size: 16px;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  gap: 16px;
  list-style: none;
}

.stat-item {
  font-size: 13px;
  color: var(--muted);
  border-inline-start: 2px solid var(--accent);
  padding-inline-start: 10px;
}

.stat-item strong {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 2px;
}

/* ستون‌بندی دو تکه (مثلاً تماس: ترمینال + فرم) */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

@media (max-width: 800px) {
  .split-grid { grid-template-columns: 1fr; gap: 24px; }
}

.terminal-info {
  background: rgba(9, 12, 14, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.term-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.term-dot {
  width: 8px;
  height: 8px;
  background: #00ff66;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ff66;
  flex: none;
}

.term-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.term-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 30px;
}

.info-item { margin-bottom: 20px; }
.info-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.info-value { font-size: 15px; color: #ffffff; font-weight: 600; }

.contact-form {
  background: rgba(11, 14, 17, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 11px; letter-spacing: 0.05em; color: var(--muted); }

.form-input {
  background: rgba(6, 8, 10, 0.7);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  color: #ffffff;
  font-family: inherit;
  font-size: 16px; /* >=16px prevents iOS Safari auto-zoom on focus */
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(197, 161, 91, 0.2);
  background: rgba(11, 14, 17, 0.9);
}

textarea.form-input { resize: none; min-height: 120px; }

.submit-btn {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.submit-btn:hover {
  background: var(--accent);
  color: #06080a;
  box-shadow: 0 0 20px rgba(197, 161, 91, 0.4);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* فیلد تله ضد اسپم — از دید انسان کاملاً مخفی است */
.hp-field {
  /* clipped to a 1x1 box in place rather than pushed off-screen with a
     large negative offset — that offset became reachable scrollable
     overflow in RTL (Persian), where the scroll origin extends leftward */
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.form-status {
  font-size: 13px;
  min-height: 18px;
  margin: -6px 0 0;
}

.form-status--ok { color: #4ade80; }
.form-status--error { color: #f87171; }

/* لیست ساده امکانات با نشانگر طلایی */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0 40px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.feature-list li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.feature-list li strong { color: #ffffff; }

@media (max-width: 600px) {
  .page-wrap { margin: 24px auto; }
  .page-header { margin-bottom: 32px; }
  .info-card, .terminal-info, .contact-form, .stat-panel { padding: 22px; }
}


/* ── کارت خدمات با دکمه‌ی اقدام ─────────────────────────────────────── */
/* کارت به ستون تبدیل می‌شود تا دکمه همیشه ته کارت بچسبد و ردیف کارت‌ها
   با وجود متن‌های نابرابر (چهار زبان، طول‌های متفاوت) هم‌تراز بماند. */
.info-card--action {
  display: flex;
  flex-direction: column;
}

.info-card--action .card-desc {
  flex: 1 1 auto;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding: 12px 18px;
  width: 100%;
  min-height: 44px;             /* هدف لمسی قابل قبول روی موبایل */
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(197, 161, 91, 0.08);
  border: 1px solid rgba(197, 161, 91, 0.35);
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}

.card-cta:hover,
.card-cta:focus-visible {
  background: rgba(197, 161, 91, 0.16);
  border-color: var(--accent);
}

.card-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.card-cta:active { transform: translateY(1px); }

/* فلش باید به سمت خواندن اشاره کند، نه همیشه راست */
[dir="rtl"] .card-cta > span[aria-hidden="true"] {
  transform: scaleX(-1);
  display: inline-block;
}

/* اعداد و شناسه‌ها در هر چهار زبان لاتین می‌مانند و باید چپ‌چین بخوانند */
.mono {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  direction: ltr;
  unicode-bidi: isolate;
}

.stat-list--facts .stat-item strong {
  font-size: 15px;
  font-family: inherit;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}

.stat-list--facts .stat-item {
  color: #ffffff;
  font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
  .card-cta { transition: none; }
}

/* ── فهرست مرحله‌ای ──────────────────────────────────────────────────── */
/* برای توضیح یک فرایند. شماره‌ها اینجا واقعاً معنا دارند — ترتیب مراحل
   اطلاعات است، نه تزئین. */
.step-list {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 18px;
  margin-bottom: 50px;
}

.step {
  counter-increment: step;
  position: relative;
  padding: 20px 20px 20px 58px;
  background: rgba(11, 14, 17, 0.45);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

[dir="rtl"] .step { padding: 20px 58px 20px 20px; }

.step::before {
  content: counter(step);
  position: absolute;
  top: 18px;
  inset-inline-start: 18px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: 'Share Tech Mono', 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  background: rgba(197, 161, 91, 0.1);
  border: 1px solid rgba(197, 161, 91, 0.3);
}

.step__title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.5;
}

.step__desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
}

/* ── نوار فراخوان انتهای صفحه ───────────────────────────────────────── */
.page-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 28px;
  margin-bottom: 40px;
  background: rgba(9, 12, 14, 0.8);
  border: 1px solid rgba(197, 161, 91, 0.3);
  border-radius: var(--radius);
}

.page-cta__text { flex: 1 1 260px; min-width: 0; }

.page-cta__title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.page-cta__desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.page-cta .card-cta {
  flex: 0 0 auto;
  width: auto;
  margin-top: 0;
  min-width: 200px;
}

@media (max-width: 600px) {
  .page-cta { padding: 20px; }
  .page-cta .card-cta { width: 100%; min-width: 0; }
  .step { padding: 18px 18px 18px 52px; }
  [dir="rtl"] .step { padding: 18px 52px 18px 18px; }
}
