/* ═══════════════════════════════════════════════════════════════
   OPERATION HEADLESS — Help Center FAQ Accordion
   BEM: nfs-faq__*
   Native <details>/<summary> · glassmorphism · zero JS
   ═══════════════════════════════════════════════════════════════ */

:root {
  --nfs-faq-max-width:        960px;
  --nfs-faq-text-bright:      #ffffff;
  --nfs-faq-text-body:        rgba(220, 210, 255, 0.72);
  --nfs-faq-text-muted:       rgba(255, 255, 255, 0.52);
  --nfs-faq-accent:           #8c50ff;
  --nfs-faq-accent-soft:      rgba(140, 80, 255, 0.14);
}

/* ── Section wrapper ─────────────────────────────────────────── */

.nfs-faq {
  position: relative;
  isolation: isolate;
  width: min(var(--nfs-faq-max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(72px, 10vh, 112px) 0 clamp(80px, 12vh, 128px);
  color: var(--nfs-faq-text-bright);
}

.nfs-faq::before {
  content: '';
  position: absolute;
  inset: -8% 0 auto;
  height: 50%;
  background: radial-gradient(ellipse 65% 55% at 50% 0%, var(--nfs-faq-accent-soft) 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

/* ── Massive title ───────────────────────────────────────────── */

.nfs-faq__title {
  position: relative;
  z-index: 1;
  margin: 0 0 clamp(40px, 6vw, 64px);
  font-size: clamp(32px, 6.5vw, 72px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  text-wrap: balance;
  color: var(--nfs-faq-text-bright);
}

/* ── Glass card container ────────────────────────────────────── */

.nfs-faq__container {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 24px 32px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 64px rgba(0, 0, 0, 0.28);
}

/* ── Disclosure rows ─────────────────────────────────────────── */

.nfs-faq__row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nfs-faq__row:last-child {
  border-bottom: none;
}

/* ── Summary trigger ───────────────────────────────────────────── */

.nfs-faq__trigger {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 4px;
  list-style: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  transition: opacity 0.25s ease;
}

.nfs-faq__trigger::-webkit-details-marker {
  display: none;
}

.nfs-faq__trigger::marker {
  content: '';
  display: none;
}

.nfs-faq__trigger:hover {
  opacity: 0.92;
}

.nfs-faq__trigger:focus-visible {
  outline: 2px solid rgba(140, 80, 255, 0.55);
  outline-offset: 4px;
  border-radius: 8px;
}

/* Help / question icon */

.nfs-faq__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--nfs-faq-text-bright);
}

.nfs-faq__icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Question text */

.nfs-faq__question {
  flex: 1;
  min-width: 0;
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--nfs-faq-text-bright);
  text-align: left;
}

/* Rotating caret / plus */

.nfs-faq__caret {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: rgba(255, 255, 255, 0.55);
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.25s ease;
}

.nfs-faq__caret svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nfs-faq__row[open] .nfs-faq__caret {
  transform: rotate(45deg);
  color: var(--nfs-faq-text-bright);
}

/* ── Answer content panel ────────────────────────────────────── */

.nfs-faq__row[open] .nfs-faq__content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  margin-top: 12px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.nfs-faq__content {
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 400;
  color: var(--nfs-faq-text-body);
}

.nfs-faq__content p {
  margin: 0 0 14px;
}

.nfs-faq__content p:last-child {
  margin-bottom: 0;
}

.nfs-faq__content a {
  color: var(--nfs-faq-accent);
  text-decoration: underline;
  text-decoration-color: rgba(140, 80, 255, 0.45);
  text-underline-offset: 3px;
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

.nfs-faq__content a:hover,
.nfs-faq__content a:focus-visible {
  color: var(--nfs-faq-text-bright);
  text-decoration-color: var(--nfs-faq-text-bright);
  outline: none;
}

.nfs-faq__content ul,
.nfs-faq__content ol {
  margin: 0 0 14px;
  padding-left: 1.25em;
}

.nfs-faq__content li + li {
  margin-top: 6px;
}

.nfs-faq__content strong,
.nfs-faq__content b {
  font-weight: 700;
  color: var(--nfs-faq-text-bright);
}

/* ── Responsive ────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .nfs-faq {
    width: min(var(--nfs-faq-max-width), calc(100% - 32px));
    padding-top: clamp(56px, 8vh, 88px);
  }

  .nfs-faq__title {
    letter-spacing: 0.04em;
    margin-bottom: clamp(32px, 5vw, 48px);
  }

  .nfs-faq__container {
    padding: 16px 20px;
    border-radius: 14px;
  }

  .nfs-faq__trigger {
    gap: 12px;
    padding: 16px 2px;
  }

  .nfs-faq__icon {
    width: 32px;
    height: 32px;
  }

  .nfs-faq__icon svg {
    width: 16px;
    height: 16px;
  }

  .nfs-faq__caret {
    width: 24px;
    height: 24px;
  }

  .nfs-faq__row[open] .nfs-faq__content {
    padding: 16px;
    margin-top: 12px;
    margin-bottom: 16px;
  }
}

@media (max-width: 480px) {
  .nfs-faq__container {
    padding: 12px 16px;
  }

  .nfs-faq__question {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nfs-faq__caret,
  .nfs-faq__trigger {
    transition: none;
  }
}

/* NAFOS HELP CENTER: Hero Title Single-Line Lock */
.nafos-faq-hero__title,
.nfs-faq__title,
.nfs-help-center__heading {
  font-family: var(--nfs-font-fit) !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  font-size: clamp(18px, 4vw, 74px) !important;
  letter-spacing: -0.02em !important;
  line-height: 1.1 !important;
  text-align: center !important;
  width: 100% !important;
  margin: 0 auto 32px auto !important;
  text-wrap: unset !important;
}

.nafos-faq-hero__container,
.nfs-faq,
.nfs-help-center__container {
  max-width: 1200px !important;
  width: 95% !important;
  margin: 0 auto !important;
}

/* NAFOS HELP CENTER: Top spacing & mobile font refinement */
.nafos-faq-hero__container,
.nfs-faq,
.nfs-help-center__container {
  padding-top: 40px !important;
}

.nafos-faq-hero__title,
.nfs-faq__title,
.nfs-help-center__heading {
  margin-top: 100PX !important;
}

@media (max-width: 768px) {
  .nafos-faq-hero__container,
  .nfs-faq,
  .nfs-help-center__container {
    padding-top: 24px !important;
  }

  .nafos-faq-hero__title,
  .nfs-faq__title,
  .nfs-help-center__heading {
    font-size: 48px !important;
    margin-bottom: 24px !important;
    white-space: normal !important;
  }
}
