/* =====================================================
   STATIC PAGES — صفحات استاتیک
===================================================== */

:root {
  --sp-brand: #b32a65;
  --sp-brand-2: #9a2457;
  --sp-text: #1f1a1e;
  --sp-muted: #7a7080;
  --sp-bg: #ffffff;
  --sp-soft: #faf5f8;
  --sp-border: #eee7ec;
  --sp-radius: 12px;
  --sp-radius-lg: 20px;
}

[data-theme="dark"] {
  --sp-bg: #16131a;
  --sp-text: #f8f4f7;
  --sp-muted: #a89ea8;
  --sp-soft: #1e1b22;
  --sp-border: #2a242f;
}

/* ═══════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════ */
.sp-hero {
  background: linear-gradient(135deg, #2a1a24 0%, #1c1c21 100%);
  color: #fff;
  padding: 60px 0 70px;
  position: relative;
  overflow: hidden;
}

.sp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(179,42,101,.35) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(232,121,168,.2) 0%, transparent 50%);
  pointer-events: none;
}

.sp-hero-inner {
  width: min(1220px, 94%);
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
  text-align: center;
}

.sp-hero-tag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 16px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
}

.sp-hero h1 {
  margin: 0 0 14px;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -.5px;
}

.sp-hero p {
  margin: 0 auto;
  max-width: 620px;
  font-size: 1rem;
  line-height: 1.9;
  opacity: .85;
}

/* ═══════════════════════════════════════════════════════
   PAGE
═══════════════════════════════════════════════════════ */
.sp-page {
  background: var(--sp-bg);
  padding: 50px 0 70px;
  min-height: 60vh;
}

.sp-inner {
  width: min(1220px, 94%);
  margin: 0 auto;
  padding: 0 15px;
}

.sp-inner-narrow {
  width: min(860px, 94%);
  margin: 0 auto;
  padding: 0 15px;
}

/* Breadcrumb */
.sp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--sp-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.sp-breadcrumb a {
  color: var(--sp-muted);
  text-decoration: none;
}

.sp-breadcrumb a:hover { color: var(--sp-brand); }

.sp-breadcrumb .current {
  color: var(--sp-text);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   RICH CONTENT
═══════════════════════════════════════════════════════ */
.sp-content {
  font-size: 1rem;
  line-height: 2;
  color: var(--sp-text);
  max-width: 100%;
}

.sp-content h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 32px 0 14px;
  padding-right: 12px;
  border-right: 4px solid var(--sp-brand);
  padding-bottom: 6px;
}

.sp-content h2:first-child { margin-top: 0; }

.sp-content h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 24px 0 10px;
}

.sp-content p { margin: 0 0 16px; }

.sp-content ul,
.sp-content ol {
  padding-right: 24px;
  margin: 0 0 16px;
}

.sp-content li { margin-bottom: 8px; }

.sp-content a {
  color: var(--sp-brand);
  text-decoration: none;
  font-weight: 700;
}

.sp-content a:hover { text-decoration: underline; }

.sp-content strong { font-weight: 800; }

/* ═══════════════════════════════════════════════════════
   ABOUT — Feature Cards
═══════════════════════════════════════════════════════ */
.sp-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.sp-feature {
  padding: 28px 22px;
  background: var(--sp-soft);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  text-align: center;
  transition: 0.28s ease;
}

.sp-feature:hover {
  transform: translateY(-4px);
  border-color: var(--sp-brand);
  box-shadow: 0 16px 30px -14px rgba(179,42,101,.2);
}

.sp-feature-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
  display: block;
}

.sp-feature h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--sp-text);
}

.sp-feature p {
  margin: 0;
  font-size: .85rem;
  line-height: 1.8;
  color: var(--sp-muted);
}

/* Stats */
.sp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 40px 0;
  padding: 32px 24px;
  background: linear-gradient(135deg, #b32a65 0%, #7a1a44 100%);
  border-radius: var(--sp-radius-lg);
  color: #fff;
}

.sp-stat {
  text-align: center;
}

.sp-stat-value {
  font-size: 2rem;
  font-weight: 900;
  font-feature-settings: "ss02";
  line-height: 1;
  margin-bottom: 6px;
}

.sp-stat-label {
  font-size: .82rem;
  opacity: .85;
}

/* ═══════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════ */
.sp-contact-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 30px;
  align-items: start;
}

.sp-contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sp-info-card {
  display: flex;
  gap: 14px;
  padding: 22px;
  background: var(--sp-soft);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  align-items: flex-start;
}

.sp-info-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--sp-bg);
  border-radius: 12px;
  font-size: 1.3rem;
  color: var(--sp-brand);
  flex-shrink: 0;
}

[data-theme="dark"] .sp-info-icon { background: #191620; }

.sp-info-content { min-width: 0; flex: 1; }

.sp-info-label {
  font-size: .76rem;
  color: var(--sp-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.sp-info-value {
  font-size: .95rem;
  font-weight: 700;
  color: var(--sp-text);
  text-decoration: none;
  display: block;
  word-break: break-word;
}

a.sp-info-value:hover { color: var(--sp-brand); }

.sp-info-sub {
  font-size: .78rem;
  color: var(--sp-muted);
  margin-top: 4px;
  line-height: 1.7;
}

/* form */
.sp-form-card {
  padding: 28px;
  background: var(--sp-soft);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  position: sticky;
  top: 100px;
}

.sp-form-card h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--sp-text);
  padding: 0;
  border: 0;
}

.sp-form-card .sub {
  margin: 0 0 22px;
  font-size: .84rem;
  color: var(--sp-muted);
}

.sp-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.sp-form-group label {
  font-size: .84rem;
  font-weight: 700;
  color: var(--sp-text);
}

.sp-form-group input,
.sp-form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--sp-border);
  background: var(--sp-bg);
  border-radius: 10px;
  font-family: inherit;
  font-size: .9rem;
  color: var(--sp-text);
  outline: none;
  transition: 0.2s ease;
  resize: vertical;
}

.sp-form-group input:focus,
.sp-form-group textarea:focus {
  border-color: var(--sp-brand);
  box-shadow: 0 0 0 3px rgba(179,42,101,.1);
}

.sp-form-group input::placeholder,
.sp-form-group textarea::placeholder {
  color: #b8afb7;
}

.sp-form-submit {
  width: 100%;
  height: 48px;
  background: var(--sp-brand);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-family: inherit;
  font-size: .92rem;
  font-weight: 800;
  cursor: pointer;
  transition: 0.25s ease;
  margin-top: 6px;
}

.sp-form-submit:hover {
  background: var(--sp-brand-2);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -8px rgba(179,42,101,.4);
}

/* ═══════════════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════════════ */
.sp-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-faq-item {
  background: var(--sp-soft);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  overflow: hidden;
  transition: 0.25s ease;
}

.sp-faq-item.is-open {
  border-color: var(--sp-brand);
  box-shadow: 0 8px 20px -10px rgba(179,42,101,.2);
}

.sp-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  cursor: pointer;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: right;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  color: var(--sp-text);
  transition: 0.2s;
}

.sp-faq-q:hover { color: var(--sp-brand); }

.sp-faq-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--sp-bg);
  border-radius: 8px;
  font-size: 1.1rem;
  color: var(--sp-brand);
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.3s;
}

[data-theme="dark"] .sp-faq-icon { background: #191620; }

.sp-faq-item.is-open .sp-faq-icon { transform: rotate(45deg); }

.sp-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 22px;
}

.sp-faq-item.is-open .sp-faq-a {
  max-height: 600px;
  padding: 0 22px 20px;
}

.sp-faq-a p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.95;
  color: var(--sp-muted);
  padding-top: 4px;
  border-top: 1px solid var(--sp-border);
  padding-top: 14px;
}

/* ═══════════════════════════════════════════════════════
   TRACK ORDER
═══════════════════════════════════════════════════════ */
.sp-track-form {
  max-width: 520px;
  margin: 0 auto 40px;
  padding: 32px;
  background: var(--sp-soft);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
}

.sp-track-form h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 800;
  text-align: center;
  color: var(--sp-text);
}

.sp-track-form .sub {
  margin: 0 0 22px;
  font-size: .86rem;
  color: var(--sp-muted);
  text-align: center;
}

.sp-track-input {
  display: flex;
  gap: 8px;
}

.sp-track-input input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid var(--sp-border);
  border-radius: 10px;
  background: var(--sp-bg);
  font-family: inherit;
  font-size: .92rem;
  color: var(--sp-text);
  outline: none;
  direction: ltr;
  letter-spacing: 1px;
}

.sp-track-input input:focus { border-color: var(--sp-brand); }

.sp-track-input button {
  padding: 0 24px;
  height: 48px;
  background: var(--sp-brand);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s;
}

.sp-track-input button:hover { background: var(--sp-brand-2); }

.sp-alert {
  padding: 14px 18px;
  border-radius: var(--sp-radius);
  font-size: .88rem;
  font-weight: 600;
  margin-top: 16px;
  display: none;
}

.sp-alert.is-visible { display: block; }

.sp-alert.error {
  background: #fff1f4;
  color: #a01638;
  border: 1px solid #ffd4dd;
}

.sp-alert.success {
  background: #e8f8ee;
  color: #1a7a3f;
  border: 1px solid #b8e6c7;
}

[data-theme="dark"] .sp-alert.error { background: #2a1a1f; color: #ff8ea4; border-color: #4a1a28; }
[data-theme="dark"] .sp-alert.success { background: #1a2a1f; color: #7fd69f; border-color: #1a4a28; }

/* Order result */
.sp-order-result {
  max-width: 720px;
  margin: 30px auto 0;
  padding: 28px;
  background: var(--sp-soft);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  display: none;
}

.sp-order-result.is-visible { display: block; }

.sp-order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--sp-border);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.sp-order-code {
  font-family: ui-monospace, monospace;
  font-size: .92rem;
  direction: ltr;
  color: var(--sp-brand);
  font-weight: 700;
  background: var(--sp-bg);
  padding: 6px 14px;
  border-radius: 8px;
  letter-spacing: 1px;
}

[data-theme="dark"] .sp-order-code { background: #191620; }

.sp-order-status {
  padding: 6px 14px 7px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
}

.sp-order-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.sp-order-info-item {
  padding: 14px;
  background: var(--sp-bg);
  border-radius: 10px;
  border: 1px solid var(--sp-border);
}

[data-theme="dark"] .sp-order-info-item { background: #191620; }

.sp-order-info-label {
  font-size: .72rem;
  color: var(--sp-muted);
  margin-bottom: 6px;
}

.sp-order-info-value {
  font-size: .92rem;
  font-weight: 700;
  color: var(--sp-text);
  font-feature-settings: "ss02";
}

/* ═══════════════════════════════════════════════════════
   CTA BLOCK
═══════════════════════════════════════════════════════ */
.sp-cta {
  margin-top: 40px;
  padding: 36px 28px;
  background: linear-gradient(135deg, #b32a65 0%, #7a1a44 100%);
  border-radius: var(--sp-radius-lg);
  color: #fff;
  text-align: center;
}

.sp-cta h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 900;
}

.sp-cta p {
  margin: 0 0 20px;
  font-size: .9rem;
  opacity: .9;
  max-width: 520px;
  margin-inline: auto;
}

.sp-cta-btn {
  display: inline-block;
  padding: 12px 28px;
  background: #fff;
  color: #b32a65;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 800;
  font-size: .9rem;
  transition: 0.2s;
}

.sp-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(0,0,0,.3); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  .sp-contact-layout { grid-template-columns: 1fr; }
  .sp-form-card { position: static; }
  .sp-features { grid-template-columns: 1fr 1fr; }
  .sp-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .sp-hero { padding: 44px 0 54px; }
  .sp-hero h1 { font-size: 1.5rem; }
  .sp-hero p { font-size: .88rem; }

  .sp-page { padding: 30px 0 50px; }
  .sp-content { font-size: .92rem; line-height: 1.9; }
  .sp-content h2 { font-size: 1.15rem; }
  .sp-content h3 { font-size: 1rem; }

  .sp-features { grid-template-columns: 1fr; gap: 12px; }
  .sp-feature { padding: 20px 16px; }
  .sp-feature-icon { font-size: 2rem; }

  .sp-stats { padding: 22px 16px; gap: 12px; }
  .sp-stat-value { font-size: 1.5rem; }

  .sp-info-card { padding: 16px; }
  .sp-info-icon { width: 40px; height: 40px; font-size: 1.1rem; }

  .sp-form-card { padding: 20px; }
  .sp-form-submit { height: 44px; }

  .sp-faq-q { padding: 14px 16px; font-size: .88rem; }
  .sp-faq-a { padding: 0 16px; }
  .sp-faq-item.is-open .sp-faq-a { padding: 0 16px 16px; }

  .sp-track-form { padding: 22px 18px; }
  .sp-track-input { flex-direction: column; }
  .sp-track-input input,
  .sp-track-input button { height: 46px; width: 100%; }

  .sp-order-info { grid-template-columns: 1fr; }
  .sp-order-result { padding: 20px; }
  .sp-order-head { flex-direction: column; align-items: stretch; }
  .sp-order-code { text-align: center; }

  .sp-cta { padding: 28px 20px; }
  .sp-cta h3 { font-size: 1.05rem; }
}