/* استایل‌های پایه تاریشا (فاز ۱) — مکمل Tailwind و توکن‌ها */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-body); /* پایه ۱۶px در همه دستگاه‌ها */
  background-color: var(--color-bg-body);
  color: var(--color-text-main);
  line-height: var(--line-height-body);
  overflow-x: hidden;
}

/* فیلدهای فرم حداقل ۱۶px — جلوگیری از زوم خودکار iOS Safari هنگام فوکوس */
input, select, textarea {
  font-size: 1rem;
}

/* ارقام فارسی در متن‌های نمایشی */
.fa-digits {
  font-feature-settings: "ss01";
}

/* فوکوس واضح و دسترس‌پذیر در کل سایت */
:focus-visible {
  outline: 3px solid var(--color-brand-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* تایپوگرافی سند */
h1, .h1 { font-size: var(--font-size-h1-mobile); font-weight: 800; line-height: 1.4; }
h2, .h2 { font-size: var(--font-size-h2-mobile); font-weight: 700; line-height: 1.45; }
h3, .h3 { font-size: var(--font-size-h3); font-weight: 700; line-height: 1.5; }

@media (min-width: 768px) {
  h1, .h1 { font-size: var(--font-size-h1); }
  h2, .h2 { font-size: var(--font-size-h2); }
}

/* متن مقاله و محتوای Markdown (پیش‌نمایش فاز ۱) */
.prose-fa p { margin-bottom: 1rem; }
.prose-fa h2 { margin: 1.75rem 0 0.75rem; }
.prose-fa h3 { margin: 1.5rem 0 0.5rem; }
.prose-fa ul { list-style: disc; padding-inline-start: 1.5rem; margin-bottom: 1rem; }
.prose-fa pre {
  direction: ltr;
  text-align: left;
  background: var(--color-brand-primary);
  color: var(--color-on-dark);
  padding: 1rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.7;
}
.prose-fa code { font-family: ui-monospace, Menlo, Consolas, monospace; }

/* تیتر Hero صفحه اصلی — مقیاس درشت و روان (۳۴px موبایل تا ۶۴px دسکتاپ) — وزن Black 900 */
.hero-title {
  font-size: clamp(2.125rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.35;
}

/* آکاردئون FAQ — بومی با details/summary، بدون جاوااسکریپت */
.faq-details summary { list-style: none; }
.faq-details summary::-webkit-details-marker { display: none; }
.faq-details .faq-chevron { transition: transform 0.25s ease; }
.faq-details[open ] summary .faq-chevron { transform: rotate(180deg); }
.faq-details summary:hover { color: var(--color-brand-primary); }

/* نوار متحرک برند (Marquee) زیر Hero صفحه اصلی */
.marquee { overflow: hidden; }
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* دکمه‌های آیکون شبکه‌های اجتماعی در فوتر */
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(230, 242, 239, 0.25);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-on-dark);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.social-btn:hover {
  color: var(--color-brand-accent);
  border-color: var(--color-brand-accent);
}

/* اسلایدر Hero صفحه اصلی */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.hero-overlay {
  background: linear-gradient(100deg, rgba(23, 59, 67, 0.94) 15%, rgba(23, 59, 67, 0.72) 55%, rgba(23, 59, 67, 0.45) 100%);
}
.hero-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(230, 242, 239, 0.35);
  background: rgba(23, 59, 67, 0.45);
  color: var(--color-on-dark);
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, color 0.2s ease;
}
.hero-nav:hover {
  background: var(--color-brand-accent);
  color: var(--color-brand-primary);
}
.hero-dot {
  position: relative;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: rgba(230, 242, 239, 0.45);
  transition: all 0.3s ease;
  padding: 0;
}
/* ناحیه لمس بزرگ‌تر برای نقطه‌های اسلایدر، بدون تغییر ظاهر */
.hero-dot::after {
  content: "";
  position: absolute;
  inset: -0.65rem;
}
.hero-dot:hover { background: rgba(230, 242, 239, 0.8); }
.hero-dot.is-active {
  width: 1.75rem;
  background: var(--color-brand-accent);
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

/* زوم آرام کِن برنز روی تصویر اسلاید فعال Hero */
.hero-slide.is-active img {
  animation: hero-kenburns 8s ease-out forwards;
}
@keyframes hero-kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active img { animation: none; }
}

/* واترمارک انگلیسی محو پشت تیتر بخش‌های صفحه اصلی — زمزمه طراحی، نه تیتر دوم */
.has-watermark {
  position: relative;
  isolation: isolate;
}
.section-watermark {
  position: absolute;
  inset-inline: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: -1;
  text-align: center;
  font-weight: 800;
  font-size: clamp(2.75rem, 6.5vw, 6.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: #E9E1CF;
  opacity: 0.38;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
}

/* قاب طاقی — امضای «دروازه تاریشا» روی تصاویر کلیدی */
.arch-frame {
  border-radius: 11rem 11rem 1.25rem 1.25rem;
}

/* بافت بسیار محو طاق روی بخش‌های روشن — SVG تکرارشونده سبک */
.pattern-arch {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cpath d='M26 70V44a16 16 0 0 1 32 0v26' fill='none' stroke='%23173B43' stroke-opacity='0.04' stroke-width='2.5'/%3E%3Ccircle cx='42' cy='14' r='2' fill='%23173B43' fill-opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ری‌اکشن کارت‌ها: لیفت ملایم + سایه عمیق‌تر + زوم ظریف کاور خدمت */
.card-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(23, 59, 67, 0.16);
}
.service-cover img {
  transition: transform 0.35s ease;
}
.card-lift:hover .service-cover img {
  transform: scale(1.05);
}
.tile-accent {
  transition: background-color 0.2s ease, color 0.2s ease;
}
.card-lift:hover .tile-accent {
  background-color: var(--color-brand-copper);
  color: var(--color-bg-body);
}
@media (prefers-reduced-motion: reduce) {
  .card-lift { transition: none; }
  .card-lift:hover { transform: none; }
  .service-cover img { transition: none; }
  .card-lift:hover .service-cover img { transform: none; }
}

/* بج نسخه نمایشی فاز ۱ */
.demo-badge {
  position: fixed;
  bottom: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 60;
  background: var(--color-brand-primary);
  color: var(--color-on-dark);
  border: 1px solid var(--color-brand-copper);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  opacity: 0.92;
  pointer-events: none;
}

/* برچسب داده نمونه داخل صفحات */
.mock-tag {
  display: inline-block;
  background: #fdf3e3;
  color: #92600a;
  border: 1px dashed var(--color-warning);
  border-radius: 999px;
  padding: 0 0.5rem;
  font-size: 0.75rem; /* ۱۲px — کف اندازه متن در سایت */
  line-height: 1.6;
}
