/* ============================================
   FAQ — shared by the event pages
   Aura on the Rivers · Brisbane
   ============================================ */

.faq-section {
  --faq-num-w: clamp(2.1rem, 3.4vw, 3.1rem);
  --faq-gap: clamp(14px, 2.4vw, 28px);
  --faq-accent: #c6a067;
  --faq-accent-soft: rgba(198, 160, 103, 0.4);

  position: relative;
  padding: clamp(76px, 9vw, 140px) 0;
  background: var(--bg-darker);
  color: var(--text);
  overflow: hidden;
  isolation: isolate;
}

/* Soft light bloom so the dark block never reads flat. */
.faq-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 720px;
  height: 720px;
  left: 50%;
  top: -260px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(198, 160, 103, 0.12),
    transparent 68%
  );
  filter: blur(12px);
  pointer-events: none;
}

.faq-wrap {
  position: relative;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 90px);
}

/* Oversized ghost word behind the whole section. */
.faq-wm {
  position: absolute;
  left: 50%;
  top: clamp(20px, 5vw, 70px);
  transform: translateX(-50%);
  font-family: var(--font-main);
  font-size: clamp(7rem, 21vw, 20rem);
  line-height: 0.8;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.022);
  pointer-events: none;
  user-select: none;
  z-index: -1;
}

/* ---------- Head ---------- */
.faq-head {
  max-width: 820px;
  margin: 0 auto clamp(40px, 5.5vw, 72px);
  text-align: center;
}
.faq-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 26px;
}
.faq-ornament span {
  display: block;
  width: clamp(38px, 8vw, 88px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--faq-accent-soft));
}
.faq-ornament span:last-child {
  background: linear-gradient(90deg, var(--faq-accent-soft), transparent);
}
.faq-ornament i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--faq-accent);
}
.faq-eyebrow {
  display: block;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: #b58c67;
  margin-bottom: 18px;
}
.faq-title {
  margin: 0;
  font-family: var(--font-main);
  font-weight: 400;
  font-size: clamp(2.3rem, 5.2vw, 4.5rem);
  line-height: 1.04;
  color: var(--white);
}
.faq-lede {
  max-width: 640px;
  margin: 22px auto 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.92rem, 1.05vw, 1.04rem);
  line-height: 1.85;
  color: var(--text);
}

/* ---------- Toggle all ---------- */
.faq-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(22px, 3vw, 34px);
}
.faq-toggle-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    background 0.35s var(--ease);
}
.faq-toggle-all::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--faq-accent);
  transition: transform 0.35s var(--ease);
}
.faq-toggle-all:hover {
  color: var(--white);
  border-color: var(--faq-accent-soft);
  background: rgba(198, 160, 103, 0.08);
}
.faq-toggle-all:hover::before {
  transform: scale(1.6);
}

/* ---------- Accordion ---------- */
.faq-list {
  max-width: 1000px;
  margin: 0 auto;
}
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  position: relative;
  border: 1px solid var(--border);
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.012)
  );
  transition:
    border-color 0.45s var(--ease),
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}
/* Gold hairline that sweeps across the top edge on open/hover. */
.faq-item::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--faq-accent), rgba(198, 160, 103, 0));
  transition: width 0.65s var(--ease);
}
.faq-item:hover,
.faq-item.is-open {
  border-color: var(--faq-accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.35);
}
.faq-item:hover::before,
.faq-item.is-open::before {
  width: calc(100% + 2px);
}

.faq-q {
  width: 100%;
  display: grid;
  grid-template-columns: var(--faq-num-w) minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--faq-gap);
  padding: clamp(20px, 2.6vw, 32px) clamp(18px, 2.6vw, 32px);
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  -webkit-appearance: none;
  appearance: none;
}
.faq-num {
  font-family: var(--font-main);
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  letter-spacing: 0.06em;
  color: rgba(198, 160, 103, 0.75);
  transition: color 0.35s var(--ease);
}
.faq-item.is-open .faq-num {
  color: #fff;
}
.faq-q-text {
  font-family: var(--font-main);
  font-size: clamp(1.12rem, 2.05vw, 1.7rem);
  line-height: 1.3;
  color: var(--text-light);
  transition: color 0.35s var(--ease);
}
.faq-item:hover .faq-q-text,
.faq-item.is-open .faq-q-text {
  color: var(--white);
}

/* Rotating plus/minus ring */
.faq-icon {
  position: relative;
  flex: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition:
    border-color 0.4s var(--ease),
    background 0.4s var(--ease),
    transform 0.55s var(--ease);
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--text);
  transform: translate(-50%, -50%);
  transition:
    transform 0.45s var(--ease),
    background 0.35s var(--ease);
}
.faq-icon::before {
  width: 13px;
  height: 1px;
}
.faq-icon::after {
  width: 1px;
  height: 13px;
}
.faq-item:hover .faq-icon {
  border-color: var(--faq-accent-soft);
}
.faq-item.is-open .faq-icon {
  border-color: var(--faq-accent-soft);
  background: rgba(198, 160, 103, 0.12);
  transform: rotate(90deg);
}
.faq-item.is-open .faq-icon::before {
  background: #e9c98e;
}
.faq-item.is-open .faq-icon::after {
  transform: translate(-50%, -50%) scaleY(0);
}

/* ---------- Answer (grid-rows collapse = smooth height) ---------- */
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease);
}
.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
}
.faq-a-inner {
  overflow: hidden;
  min-height: 0;
}
.faq-a-text {
  margin: 0;
  margin-left: calc(var(--faq-num-w) + var(--faq-gap));
  padding: 0 clamp(18px, 2.6vw, 32px) clamp(22px, 2.8vw, 32px)
    clamp(16px, 2vw, 26px);
  border-left: 1px solid var(--faq-accent-soft);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.9rem, 1.02vw, 1rem);
  line-height: 1.9;
  color: var(--text);
  max-width: 72ch;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.5s var(--ease) 0.12s,
    transform 0.5s var(--ease) 0.12s;
}
.faq-item.is-open .faq-a-text {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Closing CTA ---------- */
.faq-cta {
  max-width: 1000px;
  margin: clamp(40px, 5vw, 64px) auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.6vw, 36px);
  padding: clamp(26px, 3.4vw, 42px) clamp(22px, 3vw, 46px);
  border: 1px solid var(--border);
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.045),
    transparent 70%
  );
  text-align: center;
}
.faq-cta-label {
  flex: 0 0 100%;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #b58c67;
  margin-bottom: 4px;
}
.faq-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 0.92rem;
  color: var(--text-light);
  transition: color 0.3s var(--ease);
}
.faq-cta-link i {
  color: var(--faq-accent);
  font-size: 0.85rem;
}
.faq-cta-link:hover {
  color: var(--white);
}
.faq-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 28px;
  border: 1px solid var(--faq-accent-soft);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  transition:
    color 0.35s var(--ease),
    background 0.35s var(--ease),
    border-color 0.35s var(--ease),
    gap 0.35s var(--ease);
}
.faq-cta-btn i {
  font-size: 0.7rem;
  transition: transform 0.35s var(--ease);
}
.faq-cta-btn:hover {
  color: var(--ink, #200d09);
  background: var(--faq-accent);
  border-color: var(--faq-accent);
}
.faq-cta-btn:hover i {
  transform: translateX(4px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .faq-section {
    --faq-num-w: 2rem;
    --faq-gap: 12px;
  }
  .faq-wm {
    font-size: clamp(6rem, 20vw, 12rem);
  }
  .faq-a-text {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .faq-section {
    --faq-num-w: 1.9rem;
    padding: 64px 0;
  }
  .faq-head {
    margin-bottom: 34px;
  }
  .faq-lede {
    margin-top: 16px;
    line-height: 1.75;
  }
  .faq-icon {
    width: 36px;
    height: 36px;
  }
  .faq-icon::before {
    width: 11px;
  }
  .faq-icon::after {
    height: 11px;
  }
  .faq-q {
    gap: 10px;
    padding: 18px 16px;
  }
  .faq-a-text {
    margin-left: calc(var(--faq-num-w) + var(--faq-gap));
    padding: 0 16px 22px 14px;
    line-height: 1.8;
  }
  .faq-cta {
    flex-direction: column;
    gap: 16px;
    padding: 26px 18px;
  }
  .faq-cta-link span {
    word-break: break-word;
  }
  .faq-cta-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .faq-title {
    font-size: 2rem;
  }
  .faq-wm {
    display: none;
  }
  .faq-toggle-all {
    padding: 11px 20px;
    letter-spacing: 0.16em;
  }
}

/* Landscape phones: the stacked accordion needs the vertical room. */
@media (max-height: 520px) and (orientation: landscape) {
  .faq-section {
    padding: 56px 0;
  }
  .faq-q {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-item::before,
  .faq-icon,
  .faq-icon::before,
  .faq-icon::after,
  .faq-a,
  .faq-a-text,
  .faq-cta-btn,
  .faq-cta-btn i {
    transition: none;
  }
  .faq-item:hover,
  .faq-item.is-open {
    transform: none;
  }
}
