/* faq.css — تحسينات بسيطة ومتناسقة مع الهوية العامة */

/* ===== HERO بخلفية ممتدة وديكور ===== */
.faq-hero-full{
  position: relative;
  overflow: clip;
  background:
    radial-gradient(1100px 420px at 12% -10%, hsl(var(--brand-copper) / .10), transparent 60%),
    radial-gradient(900px 360px at 110% 120%, hsl(var(--brand-stone) / .10), transparent 60%),
    linear-gradient(180deg, hsl(var(--surface)), hsl(var(--surface-2)));
}
.faq-grid{
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    repeating-linear-gradient(to right, hsl(var(--border) / .35) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(to bottom, hsl(var(--border) / .35) 0 1px, transparent 1px 80px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  opacity: .18;
}
.faq-wave{
  position: absolute; inset-inline: 0; bottom: -1px;
  width: 100%; height: 80px; z-index: 0; pointer-events: none;
}
.faq-wave path{
  fill: hsl(var(--surface));
  stroke: hsl(var(--border));
  opacity: .55;
}

/* محتوى الهيرو */
.faq-hero__inner{
  position: relative; z-index: 1;
  display: grid; gap: .8rem; text-align: center;
  padding-top: clamp(22px, 3.8vw, 40px);
  padding-bottom: clamp(22px, 3.8vw, 40px);
}
.faq-hero__eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  margin-inline: auto;
  padding: 6px 10px; border-radius: 999px;
  background: hsl(var(--muted-bg));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--fg)); font-weight: 800; font-size: .9rem;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 6px 16px rgba(0,0,0,.10);
}
.faq-hero__title{
  font-weight: 900; letter-spacing: -.01em; text-wrap: balance;
  background: linear-gradient(90deg, hsl(var(--fg)), hsl(var(--brand-sand)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: clamp(1.9rem, 1.1rem + 2.2vw, 2.6rem);
}
.faq-hero__desc{
  color: hsl(var(--muted-fg));
  font-size: clamp(1rem, .9rem + .5vw, 1.125rem);
  margin-inline: auto; max-width: 70ch;
}
.faq-hero__actions{ justify-content: center; gap: .6rem; flex-wrap: wrap; }
.faq-hero__actions .btn{
  transition: transform .08s ease, filter .15s ease;
  will-change: transform, filter;
}
.faq-hero__actions .btn:hover{
  transform: translateY(-1px); filter: saturate(1.02);
}
@media (max-width: 420px){
  .faq-hero__actions .btn{ inline-size: 100%; }
}

/* ===== الأكورديون (Details) ===== */
.faq-item{
  border-radius: 14px;
}
.faq-summary{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .75rem;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none; /* أخفي marker الافتراضي */
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.faq-summary::-webkit-details-marker{ display: none; }

.faq-summary__left{
  display: inline-flex; align-items: center; gap: .55rem; min-width: 0;
}
.faq-ico{
  width: 18px; height: 18px;
  color: hsl(var(--primary));
  flex: 0 0 auto;
}
.faq-q{
  font-weight: 800;
  line-height: 1.4;
}
.faq-chevron{
  width: 18px; height: 18px;
  color: hsl(var(--muted-fg));
  transition: transform .18s ease;
}

/* حالة الفتح */
.faq-item[open] .faq-summary{
  background: hsl(var(--surface-2));
  border-bottom: 1px dashed hsl(var(--border));
}
.faq-item[open] .faq-chevron{
  transform: rotate(180deg);
}

/* جسم الإجابة */
.faq-content{
  animation: faq-fade .22s ease both;
}
.faq-answer{
  padding: 0 16px 14px 16px;
  color: hsl(var(--fg));
  font-size: .95rem;
  line-height: 1.9;
}
.faq-mini-links{
  display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem;
}

/* تبسيط الحركة لمن يفضّل تقليلها */
@media (prefers-reduced-motion: reduce){
  .faq-hero__actions .btn,
  .faq-chevron,
  .faq-content{ transition: none !important; animation: none !important; }
}

/* ===== حركات خفيفة ===== */
@keyframes faq-fade{
  from{ opacity: 0; transform: translateY(-2px); }
  to{ opacity: 1; transform: translateY(0); }
}

