/* ═══════════════════════════════════════════════════════════════
   Site pages — Contact, About, FAQ, Terms visual refinement
   ظاهر و UX — بدون تغییر فونت یا چیدمان سکشن‌ها
   ═══════════════════════════════════════════════════════════════ */

.site-home {
  --tc-site-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --tc-site-focus: 0 0 0 3px rgba(167, 139, 250, 0.42);
}

/* ── Hero صفحات داخلی ── */
.site-home .tc-page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(2rem, 4vw, 2.75rem);
  background: linear-gradient(180deg, #faf8ff 0%, #ffffff 85%);
  border-bottom: 1px solid rgba(240, 235, 250, 0.9);
}

.site-home .tc-page-hero::before {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(167, 139, 250, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 139, 250, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
}

.site-home .tc-page-hero .tc-container {
  position: relative;
  z-index: 1;
}

.site-home .tc-page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(243, 238, 255, 0.9) 100%);
  border: 1px solid rgba(216, 201, 255, 0.5);
  box-shadow: 0 4px 14px -6px rgba(124, 92, 230, 0.14);
  letter-spacing: 0.06em;
  text-transform: none;
}

.site-home .tc-page-hero__title {
  margin-top: 0.15rem;
  letter-spacing: -0.03em;
}

.site-home .tc-page-hero__title::after {
  content: '';
  display: block;
  width: 3.25rem;
  height: 4px;
  margin-top: 0.85rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #a78bfa, #48cae4);
  opacity: 0.88;
}

.site-home .tc-page-hero__lead {
  color: #5f5b75;
  line-height: 1.9;
}

/* ── بخش محتوا ── */
.site-home .tc-page-section {
  padding-block: clamp(2.75rem, 5vw, 4rem);
}

/* ═══ تماس با ما ═══ */
.site-home .tc-contact-page {
  position: relative;
  background: #ffffff;
}

.site-home .tc-contact-layout {
  gap: clamp(1.25rem, 3vw, 2rem);
}

.site-home .tc-contact-panel,
.site-home .tc-contact-form {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(216, 201, 255, 0.5);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 248, 255, 0.92) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 40px -16px rgba(124, 92, 230, 0.16);
  transition:
    box-shadow 0.35s var(--tc-site-ease),
    transform 0.35s var(--tc-site-ease);
}

.site-home .tc-contact-panel::before,
.site-home .tc-contact-form::before {
  content: '';
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #a78bfa, #48cae4, #a78bfa);
  opacity: 0.75;
}

.site-home .tc-contact-form:hover,
.site-home .tc-contact-panel:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 20px 48px -18px rgba(124, 92, 230, 0.22);
}

.site-home .tc-contact-panel__badge,
.site-home .tc-contact-form__badge {
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 6px 16px -8px rgba(124, 92, 230, 0.2);
}

.site-home .tc-contact-channel {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  transition:
    transform 0.28s var(--tc-site-ease),
    box-shadow 0.28s var(--tc-site-ease),
    border-color 0.28s,
    background 0.28s;
}

.site-home .tc-contact-channel:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 10px 24px -12px rgba(124, 92, 230, 0.2);
}

.site-home .tc-contact-channel__icon {
  border-radius: 12px;
  box-shadow: 0 4px 10px -6px rgba(46, 35, 77, 0.12);
}

.site-home .tc-contact-channel__icon--mail {
  background: linear-gradient(145deg, #ede9fe, #ddd6fe);
}

.site-home .tc-contact-channel__icon--phone {
  background: linear-gradient(145deg, #dbeafe, #bae6fd);
}

.site-home .tc-contact-channel__icon--pin {
  background: linear-gradient(145deg, #fce7f3, #fbcfe8);
}

.site-home .tc-contact-channel__icon--clock {
  background: linear-gradient(145deg, #d1fae5, #a7f3d0);
}

.site-home a.tc-contact-channel__value {
  transition: color 0.2s ease;
}

.site-home .tc-contact-social {
  border-top-style: solid;
  border-top-color: rgba(216, 201, 255, 0.4);
}

.site-home .tc-contact-social__links .tc-social-link {
  transition:
    transform 0.28s var(--tc-site-ease),
    box-shadow 0.28s var(--tc-site-ease);
}

.site-home .tc-contact-social__links .tc-social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -10px rgba(46, 35, 77, 0.15);
}

.site-home .tc-contact-form .tc-field--contact {
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.site-home .tc-contact-form .tc-field--contact:hover:not(:focus) {
  border-color: rgba(167, 139, 250, 0.45);
  background: #fff;
}

.site-home .tc-contact-form .tc-field--contact:focus {
  box-shadow: var(--tc-site-focus);
}

.site-home .tc-contact-field .tc-field-label {
  color: #4a4568;
}

.site-home .tc-contact-submit {
  background: linear-gradient(135deg, #c4a8ff 0%, #a78bfa 38%, #8b6cf6 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 14px 32px -12px rgba(124, 92, 230, 0.55);
  transition:
    transform 0.28s var(--tc-site-ease),
    box-shadow 0.28s var(--tc-site-ease);
}

.site-home .tc-contact-submit:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.32) inset,
    0 18px 40px -12px rgba(124, 92, 230, 0.62);
}

.site-home .tc-contact-submit:active {
  transform: translateY(0) scale(0.98);
}

.site-home .tc-contact-form__hint {
  padding: 0.4rem 0.65rem;
  border-radius: 10px;
  background: rgba(246, 240, 255, 0.65);
  border: 1px solid rgba(216, 201, 255, 0.35);
}

.site-home .tc-contact-alert {
  border-radius: 16px;
  padding: 1rem 1.15rem;
  box-shadow: 0 8px 24px -12px rgba(16, 185, 129, 0.2);
}

.site-home .tc-contact-alert.tc-alert--success {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: rgba(52, 211, 153, 0.35);
}

.site-home .tc-contact-alert.tc-alert--error {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border-color: rgba(251, 113, 133, 0.35);
}

.site-home .tc-contact-alert__icon {
  width: 1.65rem;
  height: 1.65rem;
  font-size: 0.85rem;
}

/* ═══ دربارهٔ ما ═══ */
.site-home .tc-about-page {
  position: relative;
  background: #ffffff;
}

.site-home .tc-page-narrow .tc-prose {
  position: relative;
  margin-bottom: 0;
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.35rem, 3vw, 1.75rem);
  border-radius: 28px;
  border: 1px solid rgba(216, 201, 255, 0.45);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 248, 255, 0.88) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 14px 40px -18px rgba(124, 92, 230, 0.12);
  color: #4a4568;
  line-height: 1.95;
}

.site-home .tc-page-narrow .tc-prose::before {
  content: '';
  display: block;
  width: 2.5rem;
  height: 4px;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #a78bfa, #48cae4);
  opacity: 0.85;
}

.site-home .tc-about-team {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding-top: clamp(1.75rem, 3vw, 2.25rem);
  position: relative;
  border-top: 1px solid rgba(216, 201, 255, 0.45);
}

.site-home .tc-about-team-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(216, 201, 255, 0.45);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 248, 255, 0.9) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 12px 36px -16px rgba(124, 92, 230, 0.14);
  transition:
    transform 0.38s var(--tc-site-ease),
    box-shadow 0.38s var(--tc-site-ease),
    border-color 0.38s;
}

.site-home .tc-about-team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #a78bfa, #48cae4);
  opacity: 0.7;
}

.site-home .tc-about-team-card:hover {
  transform: translateY(-5px);
  border-color: rgba(196, 181, 253, 0.65);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 22px 48px -18px rgba(124, 92, 230, 0.2);
}

.site-home .tc-about-team-card__media {
  border-width: 3px;
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 0 3px rgba(196, 181, 253, 0.35),
    0 10px 28px -10px rgba(124, 92, 230, 0.25);
  transition:
    transform 0.38s var(--tc-site-ease),
    box-shadow 0.38s var(--tc-site-ease);
}

.site-home .tc-about-team-card:hover .tc-about-team-card__media {
  transform: scale(1.03);
  box-shadow:
    0 0 0 3px rgba(167, 139, 250, 0.45),
    0 14px 32px -10px rgba(124, 92, 230, 0.3);
}

.site-home .tc-about-team-card__name {
  letter-spacing: -0.02em;
}

.site-home .tc-about-team-card__bio {
  max-width: 28ch;
  margin-inline: auto;
}

.site-home .tc-page-narrow .tc-actions {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding: 1.25rem 1.35rem;
  border-radius: 20px;
  border: 1px solid rgba(216, 201, 255, 0.4);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 32px -16px rgba(124, 92, 230, 0.12);
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

.site-home .tc-page-narrow .tc-actions .tc-btn-primary {
  background: linear-gradient(135deg, #c4a8ff 0%, #a78bfa 38%, #8b6cf6 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 12px 28px -10px rgba(124, 92, 230, 0.5);
}

.site-home .tc-page-narrow .tc-actions .tc-btn-outline {
  border-color: rgba(216, 201, 255, 0.65);
  background: rgba(255, 255, 255, 0.9);
}

.site-home .tc-page-narrow .tc-actions .tc-btn:hover {
  transform: translateY(-2px);
}

/* ═══ سوالات متداول ═══ */
.site-home .tc-faq-page {
  position: relative;
  background: #ffffff;
}

.site-home .tc-faq-list {
  gap: 1rem;
}

.site-home .tc-faq-item {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(216, 201, 255, 0.45);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 248, 255, 0.92) 100%);
  padding: 0;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 28px -14px rgba(124, 92, 230, 0.12);
  transition:
    border-color 0.3s var(--tc-site-ease),
    box-shadow 0.3s var(--tc-site-ease),
    transform 0.3s var(--tc-site-ease);
}

.site-home .tc-faq-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #a78bfa, #48cae4);
  opacity: 0;
  transition: opacity 0.3s var(--tc-site-ease);
}

.site-home .tc-faq-item:hover {
  border-color: rgba(196, 181, 253, 0.6);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 14px 36px -14px rgba(124, 92, 230, 0.16);
}

.site-home .tc-faq-item[open] {
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 0 0 3px rgba(167, 139, 250, 0.12),
    0 16px 40px -14px rgba(124, 92, 230, 0.2);
}

.site-home .tc-faq-item[open]::before {
  opacity: 1;
}

.site-home .tc-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  font-size: 0.98rem;
  line-height: 1.55;
  transition: color 0.22s ease;
}

.site-home .tc-faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1;
  color: var(--tc-primary-dark);
  background: linear-gradient(145deg, rgba(237, 233, 254, 0.95) 0%, rgba(224, 242, 254, 0.85) 100%);
  border: 1px solid rgba(216, 201, 255, 0.45);
  box-shadow: 0 4px 10px -6px rgba(124, 92, 230, 0.18);
  transition:
    transform 0.28s var(--tc-site-ease),
    background 0.28s,
    color 0.28s;
}

.site-home .tc-faq-item[open] summary {
  color: var(--tc-primary-dark);
  padding-bottom: 0.65rem;
}

.site-home .tc-faq-item[open] summary::after {
  content: '−';
  transform: scale(1.05);
  background: linear-gradient(145deg, #a78bfa 0%, #8b6cf6 100%);
  color: #fff;
  border-color: transparent;
}

.site-home .tc-faq-item p {
  margin: 0;
  padding: 0 1.35rem 1.25rem;
  font-size: 0.92rem;
  line-height: 1.9;
  color: #5f5b75;
  border-top: 1px solid rgba(240, 235, 250, 0.9);
  padding-top: 1rem;
}

.site-home .tc-faq-page .tc-faq-list + .tc-actions,
.site-home .tc-faq-page .tc-prose + .tc-actions,
.site-home .tc-faq-page .tc-actions {
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

.site-home .tc-faq-page .tc-prose {
  padding: 1.5rem 1.35rem;
  border-radius: 22px;
  border: 1px dashed rgba(216, 201, 255, 0.55);
  background: rgba(250, 248, 255, 0.65);
  text-align: center;
  color: var(--tc-text-muted);
}

/* ═══ قوانین و مقررات ═══ */
.site-home .tc-terms-page {
  position: relative;
  background: #ffffff;
}

.site-home .tc-terms-page .tc-prose {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.35rem, 3vw, 1.85rem);
  border-radius: 28px;
  border: 1px solid rgba(216, 201, 255, 0.45);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 251, 255, 0.9) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 14px 40px -18px rgba(124, 92, 230, 0.1);
  color: #4a4568;
  line-height: 2;
}

.site-home .tc-terms-page .tc-prose::before {
  content: '';
  display: block;
  width: 2.5rem;
  height: 4px;
  margin-bottom: 1.35rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #c4b5fd, #a78bfa);
  opacity: 0.9;
}

.site-home .tc-terms-page .tc-actions {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding: 1.25rem 1.35rem;
  border-radius: 20px;
  border: 1px solid rgba(216, 201, 255, 0.4);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 32px -16px rgba(124, 92, 230, 0.12);
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Focus & a11y ── */
.site-home a:focus-visible,
.site-home button:focus-visible,
.site-home .tc-field--contact:focus-visible,
.site-home .tc-faq-item summary:focus-visible {
  outline: none;
  box-shadow: var(--tc-site-focus);
}

.site-home .tc-faq-item summary:focus-visible {
  border-radius: 18px;
}

@media (prefers-reduced-motion: reduce) {
  .site-home .tc-contact-channel:hover,
  .site-home .tc-about-team-card:hover,
  .site-home .tc-contact-form:hover,
  .site-home .tc-contact-panel:hover,
  .site-home .tc-about-team-card:hover .tc-about-team-card__media,
  .site-home .tc-faq-item:hover {
    transform: none;
  }

  .site-home .tc-faq-item summary::after {
    transition: none;
  }
}

@media (max-width: 768px) {
  /* شِل سایت: حاشیهٔ چپ/راست یکسان + مرکز */
  .landing-home:not(.landing-dashboard) .tc-shell {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: var(--tc-shell-gutter) auto 0;
  }

  .landing-home .tc-site-main {
    box-sizing: border-box;
  }

  .landing-home .tc-container {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    padding-inline: clamp(0.35rem, 1.2vw, calc(var(--tc-container-pad) * 0.9));
  }

  .site-home .tc-page-hero__title::after {
    margin-inline: auto;
    margin-inline-end: 0;
  }

  .site-home .tc-page-narrow .tc-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .site-home .tc-page-narrow .tc-actions .tc-btn {
    width: 100%;
    justify-content: center;
  }
}
