/* ============================================================
   Beyond Beauty Academy × Glowtech — FAQ section
   Section 10. Accordion. Cream bg, burgundy accents.
   .faq is the query container → reflows per artboard width.
   ============================================================ */

.faq {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  container-type: inline-size;
  font-family: var(--font-sans);
  direction: rtl;
  text-align: right;
  background: var(--gt-cream);
  color: var(--gt-ink);
}
.faq *, .faq *::before, .faq *::after { box-sizing: border-box; }

.faq .inner {
  position: relative; z-index: 1;
  padding: 60px 72px 64px;
  max-width: 920px; margin: 0 auto;
}

/* ---- header ---- */
.faq .head { text-align: center; margin-bottom: 40px; }
.faq .faq-kicker {
  display: inline-block;
  font-size: 14px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gt-burgundy);
  margin-bottom: 10px;
}
.faq h2 {
  font-size: 40px; font-weight: 800; line-height: 1.12;
  letter-spacing: -0.02em; margin: 0; text-wrap: balance;
}

/* ---- list ---- */
.faq .faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--gt-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-warm), box-shadow var(--dur-base) var(--ease-warm);
}
.faq-item.open {
  border-color: var(--gt-pink);
  box-shadow: 0 14px 34px rgba(184,51,106,.14);
}
.faq-q {
  width: 100%; border: 0; background: transparent; cursor: pointer;
  font: inherit; text-align: right;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 24px 28px;
}
.faq-qt {
  font-size: 20px; font-weight: 700; line-height: 1.35; color: var(--gt-ink);
}
.faq-item.open .faq-qt { color: var(--gt-burgundy); }
.faq-ico {
  flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gt-pink-soft); color: var(--gt-burgundy);
  transition: transform var(--dur-base) var(--ease-warm), background var(--dur-base) var(--ease-warm);
}
.faq-ico svg { width: 18px; height: 18px; }
.faq-item.open .faq-ico { transform: rotate(45deg); background: var(--gt-burgundy); color: #fff; }

.faq-a-wrap {
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-warm);
}
.faq-a {
  padding: 0 28px 26px;
  font-size: 17px; line-height: 1.62; color: var(--gt-body);
}
.faq-a b { font-weight: 800; color: var(--gt-burgundy-ink); }

/* ============================================================
   MOBILE — ≤ 560px artboard width
   ============================================================ */
@container (max-width: 560px) {
  .faq .inner { padding: 38px 20px 44px; }
  .faq .head { margin-bottom: 28px; }
  .faq h2 { font-size: 26px; line-height: 1.16; }
  .faq-q { padding: 19px 18px; gap: 12px; }
  .faq-qt { font-size: 16.5px; }
  .faq-ico { width: 30px; height: 30px; }
  .faq-a { padding: 0 18px 22px; font-size: 15.5px; }
}
