/* ══════════════════════════════════════════════
   ROOT VARIABLES
══════════════════════════════════════════════ */
:root {
  --primary: #d62828;
  --primary-dark: #c1271f;
  --bg-light: #f7f7f7;
  --white: #ffffff;
  --black: #000000;
  --dark: #1a1a1a;
  --dark-2: #292929;
  --text: #333333;
  --gray: #888888;
  --gray-light: #bbbbbb;
  --border: #e8e8e8;
}

[data-theme="dark"] {
  --primary: #ff4d4d;
  --primary-dark: #ff1f1f;
  --bg-light: #0f0f0f;
  --white: #1a1a1a;
  --black: #f0f0f0;
  --dark: #e8e8e8;
  --dark-2: #cccccc;
  --text: #e0e0e0;
  --gray: #999999;
  --gray-light: #666666;
  --border: #2a2a2a;
}

/* ══════════════════════════════════════════════
   BASE
══════════════════════════════════════════════ */
@font-face {
  font-family: pinar;
  src: url(./font/Pinar-DS1-FD-Regular.ttf);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  list-style-type: none;
  text-decoration: none;
}

body {
  font-family: pinar, sans-serif;
  background: var(--bg-light);
  direction: rtl;
  transition: background 0.4s ease, color 0.4s ease;
}

/* ══════════════════════════════════════════════
   THEME TOGGLE
══════════════════════════════════════════════ */
.top-header {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: row;
  gap: 10px;
}
 a {
  text-decoration: none;
  color: var(--dark);
}
a:hover{
  color: red;
}
.bc-sep {
  color: var(--dark);
  font-size: 1rem;
}

.bc-current {
  color: var(--dark);
}
.about-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  padding: 2vh 4vh;
}

.about-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.about-header__logo img {
  height: 5.5vh;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1); /* لوگو روی تصویر تیره سفید بشه */
}

/* hero باید position: relative داشته باشه */
.hero-section {
  position: relative;
}

.theme-toggle {
  position: relative;
  width: 5.2vh;
  height: 5.2vh;
  border-radius: 50%;
  border: 0.2vh solid var(--border);
  background: var(--white);
  color: var(--text);
  cursor: pointer !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s ease,
              border-color 0.35s ease,
              transform 0.3s ease,
              box-shadow 0.3s ease;
  overflow: hidden;
}

.theme-toggle:hover {
  background: var(--bg-light);
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 0.5vh 2vh rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .theme-toggle:hover {
  box-shadow: 0 0.5vh 2vh rgba(0, 0, 0, 0.4);
}

/* ─── آیکون‌ها ────────────────────────────────── */
.theme-toggle__icon {
  position: relative;
  width: 2.4vh;
  height: 2.4vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle svg {
  position: absolute;
  width: 2.4vh;
  height: 2.4vh;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  transition: opacity 0.35s ease,
              transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* حالت روشن: خورشید نشان بده، ماه پنهان */
.icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  color: var(--accent, #ffb400);
}

.icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
  fill: none;
}

/* حالت دارک: ماه نشان بده، خورشید پنهان */
[data-theme="dark"] .icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  color: var(--accent, #ffc933);
}

/* ─── اگه داخل ناوبار هست ───────────────────── */
.nav-actions .theme-toggle,
.header-icons .theme-toggle {
  margin-inline-start: 1vh;
}

/* ─── نسخه فیکس گوشه صفحه (اختیاری) ─────────── */
.theme-toggle--fixed {
  position: fixed;
  bottom: 4vh;
  left: 2.6vh;
  z-index: 9999;
  width: 5.85vh;
  height: 5.85vh;
  box-shadow: 0 0.65vh 3vh rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .theme-toggle--fixed {
  box-shadow: 0 0.65vh 3vh rgba(0, 0, 0, 0.5);
}

/* ══════════════════════════════════════════════
   FAQ SECTION
══════════════════════════════════════════════ */
.faq {
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 24px 100px;
}

/* ══════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════ */
.faq-header {
  text-align: center;
  margin-bottom: 56px;
}

.faq-tag {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.faq-title {
  font-size: clamp(24px, 4vw, 34px);
  color: var(--dark);
  font-family: pinar, sans-serif;
  margin-bottom: 12px;
}

.faq-subtitle {
  font-size: 14px;
  color: var(--gray);
  line-height: 2;
}

/* ══════════════════════════════════════════════
   CATEGORY GROUPS
══════════════════════════════════════════════ */
.faq-group {
  margin-bottom: 40px;
}

.faq-group-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 16px;
  padding-right: 4px;
}

.faq-group-label::before {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
  order: 1;
}

.faq-group-label span {
  white-space: nowrap;
}

/* ══════════════════════════════════════════════
   FAQ ITEMS
══════════════════════════════════════════════ */
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;

  /* reveal animation */
  opacity: 0;
  transform: translateY(20px);
}

.faq-item.show {
  opacity: 1;
  transform: translateY(0);
}

.faq-item:hover {
  border-color: rgba(214, 40, 40, 0.25);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.faq-item.active {
  border-color: rgba(214, 40, 40, 0.4);
  box-shadow: 0 6px 24px rgba(214, 40, 40, 0.08);
}

/* ── Question Button ── */
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: right;
  background: none;
  border: none;
  padding: 20px 24px;
  font-size: 14.5px;
  color: var(--text);
  cursor: pointer;
  font-family: pinar, sans-serif;
  gap: 16px;
  transition: color 0.3s ease;
}

.faq-item.active .faq-question {
  color: var(--dark);
}

/* ── Icon ── */
.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.35s ease;
  color: var(--gray);
}

.faq-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  transition: transform 0.35s ease;
}

.faq-item.active .faq-icon {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.faq-item.active .faq-icon svg {
  transform: rotate(45deg);
}

/* ── Answer ── */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
  padding: 0 24px 20px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.faq-answer-inner p {
  font-size: 13.5px;
  color: var(--gray);
  line-height: 2.1;
  font-family: pinar, sans-serif;
}

/* ── active border-top ── */
.faq-item.active .faq-answer-inner {
  border-top-color: var(--border);
}

/* ══════════════════════════════════════════════
   EMPTY STATE / SEARCH (optional future)
══════════════════════════════════════════════ */
.faq-count {
  text-align: center;
  font-size: 12px;
  color: var(--gray-light);
  margin-top: 40px;
}

footer {
  background: var(--bg-white);
  color: var(--text-dark);
  padding: 50px 24px 20px;
  margin-top: 60px;
  border-top: 1px solid var(--border-light);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--accent);
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-section p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-gray);
  margin-bottom: 15px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: var(--dark);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-section ul li a::before {
  content: '◀';
  font-size: 10px;
  transition: transform 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--accent);
  padding-right: 10px;
}

.footer-section ul li a:hover::before {
  transform: translateX(-5px);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.social-links a {
  width: 45px;
  height: 45px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-5px);
}

.social-links a svg {
  width: 22px;
  height: 22px;
  stroke: var(--text-dark);
  transition: stroke 0.3s ease;
}

.social-links a:hover svg {
  stroke: #fff;
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  font-size: 14px;
  color: var(--text-gray);
  margin: 0;
}

.footer-bottom a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.payment-methods {
  display: flex;
  gap: 15px;
  align-items: center;
}

.payment-methods img {
  height: 30px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  filter: grayscale(100%);
}

.payment-methods img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* ==================== Scroll to Top Button ==================== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  left: 112px;
  width: 50px;
  height: 50px;
  background: var(--bg-light);
  color: var(--dark);
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 600px) {
  .faq {
    padding: 60px 16px 80px;
  }

  .faq-question {
    padding: 18px 18px;
    font-size: 14px;
  }

  .faq-answer-inner {
    padding: 14px 18px 18px;
  }

  #theme-toggle {
    top: 14px;
    left: 14px;
  }
}
