/* ================================================================
   FAQ PAGE — Herboristerie Ambre
   ================================================================ */

.faq-page {
  background: var(--beige-light, #f5f5f0);
  padding: 48px 0 80px;
}

/* ── Breadcrumb ──────────────────────────────────────────────── */
.faq-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.faq-breadcrumb a {
  color: var(--green-primary);
  text-decoration: none;
  font-weight: 500;
}
.faq-breadcrumb a:hover { text-decoration: underline; }
.faq-breadcrumb span:last-child { color: var(--green-dark); font-weight: 600; }

/* ── Hero ────────────────────────────────────────────────────── */
.faq-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  margin-bottom: 32px;
}
.faq-hero-icon {
  width: 64px;
  height: 64px;
  background: #eef5ed;
  color: var(--green-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.faq-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--green-dark);
  margin: 0 0 6px;
  line-height: 1.2;
}
.faq-hero-sub {
  font-size: .95rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ── Body ────────────────────────────────────────────────────── */
.faq-body {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ── Category ────────────────────────────────────────────────── */
.faq-category {}
.faq-cat-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--green-dark);
  margin: 0 0 12px;
}
.faq-cat-icon { font-size: 1.1rem; line-height: 1; }

/* ── Accordion list ──────────────────────────────────────────── */
.faq-list {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ── Single item ─────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  font-size: .95rem;
  font-weight: 600;
  color: var(--green-dark);
  transition: background .15s, color .15s;
  user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover {
  background: var(--beige-light, #f5f5f0);
  color: var(--green-primary);
}

.faq-arrow {
  flex-shrink: 0;
  color: var(--green-primary);
  transition: transform .25s ease;
  display: flex;
}
.faq-item[open] .faq-arrow { transform: rotate(180deg); }
.faq-item[open] > .faq-question {
  color: var(--green-primary);
  background: var(--beige-light, #f5f5f0);
}

.faq-answer {
  padding: 0 24px 20px 24px;
  animation: faqOpen .2s ease;
}
.faq-answer p {
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin: 0;
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* ── CTA block ───────────────────────────────────────────────── */
.faq-cta-block {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--green-dark);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  flex-wrap: wrap;
}
.faq-cta-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.faq-cta-text { flex: 1; min-width: 180px; }
.faq-cta-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.faq-cta-text p {
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  margin: 0;
}
.faq-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #fff;
  color: var(--green-dark);
  border-radius: var(--radius-md);
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, color .2s;
  flex-shrink: 0;
}
.faq-cta-btn:hover {
  background: var(--beige-light, #f5f5f0);
  color: var(--green-dark);
}

/* ── Contact channels ────────────────────────────────────────── */
.faq-contact-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.faq-channel {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s, transform .15s;
  white-space: nowrap;
}
.faq-channel:hover { opacity: .85; transform: translateY(-1px); }

.faq-channel--whatsapp {
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
}
.faq-channel--tiktok {
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
}
.faq-channel--instagram {
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
}

/* ── RTL ─────────────────────────────────────────────────────── */
.faq-page.rtl,
.faq-page.rtl .faq-breadcrumb,
.faq-page.rtl .faq-hero,
.faq-page.rtl .faq-question {
  direction: rtl;
  text-align: right;
}
.faq-page.rtl .faq-breadcrumb { flex-direction: row-reverse; }
.faq-page.rtl .faq-hero { flex-direction: row-reverse; }
.faq-page.rtl .faq-cat-title { flex-direction: row-reverse; justify-content: flex-end; }
.faq-page.rtl .faq-cta-block { flex-direction: row-reverse; }
.faq-page.rtl .faq-cta-text { text-align: right; }
.faq-page.rtl .faq-contact-channels { flex-direction: row-reverse; }
.faq-page.rtl .faq-answer { text-align: right; direction: rtl; }
.faq-page.rtl .faq-hero h1 {
  font-family: 'Noto Serif Arabic', serif;
}
.faq-page.rtl .faq-cat-title {
  font-family: 'Noto Serif Arabic', serif;
}
/* Arabic font size bump */
.faq-page.rtl .faq-question { font-size: 1rem; }
.faq-page.rtl .faq-answer p { font-size: .97rem; line-height: 2; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .faq-page { padding: 28px 0 60px; }

  .faq-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 24px 20px;
  }
  .faq-page.rtl .faq-hero { align-items: flex-end; }

  .faq-question { padding: 16px 18px; font-size: .9rem; }
  .faq-answer   { padding: 0 18px 16px; }

  .faq-cta-block {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    gap: 16px;
  }
  .faq-page.rtl .faq-cta-block { align-items: flex-end; }
  .faq-cta-btn { width: 100%; justify-content: center; }
}
