/* Melaaura Home — FAQ accordion. Scoped under .mh-faq. Base (.mh) provides DM Sans,
   .mh-serif (Cormorant), tokens (--mh-ink/--mh-gold/--mh-ivory/--mh-stone/--mh-mute/--mh-dark)
   and data-reveal scroll animation. */

.mh-faq {
  --mh-accent: var(--mh-gold, #B28C3F);
  --mh-faq-bg: #F7F5F1;
  background: var(--mh-faq-bg);
  padding: clamp(76px, 12vh, 160px) clamp(20px, 5vw, 100px);
  color: var(--mh-ink, #16130F);
}

.mh-faq__wrap {
  max-width: 1040px;
  margin: 0 auto;
}

/* ---- Header ---- */
.mh-faq__head {
  margin-bottom: clamp(40px, 6vh, 64px);
}

.mh-faq__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mh-mute, #8B8174);
}

.mh-faq__rule {
  width: 36px;
  height: 1px;
  background: var(--mh-accent);
  display: block;
  flex-shrink: 0;
}

.mh-faq__heading {
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--mh-ink, #16130F);
  margin: 0;
  max-width: 24ch;
}

.mh-faq__intro {
  font-weight: 300;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.7;
  color: var(--mh-stone, #6B655B);
  margin: 22px 0 0;
  max-width: 60ch;
}

/* ---- List ---- */
.mh-faq__item {
  border-top: 1px solid rgba(22, 19, 15, 0.16);
}
.mh-faq__item:last-child {
  border-bottom: 1px solid rgba(22, 19, 15, 0.16);
}

.mh-faq__q {
  margin: 0;
  font: inherit;
  font-weight: 400;
}

/* !important throughout: the Rey theme styles <button> as centered inline-flex with
   its own padding/bg/border/radius, which otherwise breaks this accordion row. */
.mh-faq__btn {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px;
  padding: 26px 2px !important;
  margin: 0 !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  text-align: left !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-family: inherit;
  font-weight: 400;
  color: inherit;
  min-height: 0 !important;
}
.mh-faq__btn:hover { background: none !important; }

.mh-faq__q-text {
  font-size: clamp(16px, 1.3vw, 19px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--mh-ink, #16130F);
  text-align: left !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  transition: color 0.3s ease;
}

.mh-faq__btn:hover .mh-faq__q-text {
  color: var(--mh-accent);
}

.mh-faq__icon {
  flex-shrink: 0;
  font-family: var(--mh-serif-font, 'Cormorant Garamond', serif);
  font-size: 30px;
  line-height: 1;
  color: var(--mh-accent);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
  will-change: transform;
}

.mh-faq__item[data-open] .mh-faq__icon {
  /* plus → x */
  transform: rotate(135deg);
}

/* ---- Answer reveal (grid-rows trick) ---- */
.mh-faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mh-faq__item[data-open] .mh-faq__a {
  grid-template-rows: 1fr;
}

.mh-faq__a-inner {
  overflow: hidden;
  min-height: 0;
}

.mh-faq__a-text {
  font-weight: 300;
  font-size: 16px;
  line-height: 1.78;
  color: #4B463F;
  margin: 0;
  padding: 0 60px 28px 2px;
  opacity: 0;
  transition: opacity 0.4s ease 0.1s;
}

.mh-faq__item[data-open] .mh-faq__a-text {
  opacity: 1;
}

@media (max-width: 600px) {
  .mh-faq { padding: clamp(54px,9vh,80px) 20px; }
  .mh-faq__q-text { font-size: 15.5px; line-height: 1.34; }
  .mh-faq__icon { font-size: 26px; }
  .mh-faq__btn { gap: 16px; padding: 20px 2px !important; }
  .mh-faq__a-text { padding: 0 4px 22px 2px; font-size: 15px; }
}
