/*
 * faq.css - Nottworks Child Theme
 *
 * Classic Vertical Accordion FAQ Section
 *
 * 1. Dark Ink Navy Background (#111827)
 * 2. Centered Content Layout: Eyebrow + Heading + Description
 * 3. Classic Full-Width Vertical Accordion Rows:
 *    - Six full-width questions stacked vertically
 *    - Smooth expand / collapse directly underneath each question
 *    - Single active item (siblings collapse smoothly on selection)
 *    - Subtle separators between items
 *    - Hardware-accelerated minimal plus/minus indicators
 * 4. Subtle Cyan & Blue Centered Halo Orbital Rings in Background
 * 5. Compact Centered Contact Prompt at Bottom
 * 6. Full Responsive & Accessibility (prefers-reduced-motion) Support
 */

.nw-faq {
  background-color: var(--color-ink-navy, #111827);
  color: #ffffff;
  min-height: 100vh;
  min-height: 100svh;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-overlay-height, 80px) + clamp(24px, 4vh, 48px));
  padding-bottom: clamp(36px, 5vh, 64px);
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  scroll-margin-top: 0 !important;
}

#sss,
#sss:target {
  scroll-margin-top: 0 !important;
}

.nw-faq .nw-container {
  margin-top: auto;
  margin-bottom: auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* =============================================================================
   1. DECORATIVE BACKGROUND ILLUSTRATION: CENTERED HALO ORBIT
   ============================================================================= */

.nw-faq__bg-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1440px;
  max-width: 100vw;
  height: 900px;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nw-faq__bg-halo svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* =============================================================================
   2. CENTERED CONTENT WRAPPER
   ============================================================================= */

.nw-faq__wrapper {
  max-width: clamp(820px, 68vw, 880px);
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

/* Eyebrow Label */
.nw-faq__wrapper .nw-label--light {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 163, 224, 0.12);
  border: 1px solid rgba(0, 163, 224, 0.28);
  color: #38BDF8;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Remove introductory eyebrow label completely on desktop & mobile; zero empty gap */
.nw-faq__wrapper .nw-label--light,
.nw-faq__wrapper .nw-label,
.nw-faq .nw-label {
  display: none !important;
}

.nw-faq__wrapper .nw-faq__title,
.nw-faq__title {
  margin-top: 0 !important;
}

/* Main Heading (Manrope ExtraBold 800) */
.nw-faq__title {
  font-family: var(--font-heading), 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #ffffff;
  font-size: clamp(1.75rem, 2.3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin: 0 0 8px 0;
  word-break: break-word;
  -webkit-font-smoothing: antialiased;
}

/* Supporting Description */
.nw-faq__desc {
  font-family: var(--font-body), 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #94A3B8;
  font-size: clamp(0.85rem, 0.95vw, 0.9375rem);
  line-height: 1.5;
  max-width: 580px;
  margin: 0 0 clamp(16px, 2.5vh, 26px) 0;
}

/* =============================================================================
   3. CLASSIC VERTICAL ACCORDION ROWS
   ============================================================================= */

.nw-faq__accordion {
  width: 100%;
  margin: 0 0 clamp(20px, 3vh, 32px) 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.nw-faq__item {
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.nw-faq__item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nw-faq__item:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.nw-faq__item[open] {
  border-bottom-color: rgba(0, 163, 224, 0.28);
}

/* Question Row (Summary) */
.nw-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2vw, 24px);
  padding: clamp(16px, 2.2vh, 22px) clamp(4px, 0.8vw, 10px);
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-user-select: none;
  box-sizing: border-box;
  outline: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nw-faq__question::-webkit-details-marker,
.nw-faq__question::marker {
  display: none;
  content: "";
}

.nw-faq__question:focus-visible {
  outline: 2px solid #00A3E0;
  outline-offset: 3px;
  border-radius: 6px;
}

.nw-faq__question-text {
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: clamp(0.95rem, 1.15vw, 1.125rem);
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.45;
  text-align: left;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.nw-faq__item:hover .nw-faq__question-text {
  color: #E2E8F0;
}

.nw-faq__item[open] .nw-faq__question-text,
.nw-faq__item.is-opening .nw-faq__question-text {
  color: #38BDF8;
}

/* Plus / Minus Indicator Icon */
.nw-faq__icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #94A3B8;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}

.nw-faq__item:hover .nw-faq__icon {
  border-color: rgba(56, 189, 248, 0.35);
  color: #FFFFFF;
  background: rgba(0, 163, 224, 0.08);
}

.nw-faq__item[open] .nw-faq__icon,
.nw-faq__item.is-opening .nw-faq__icon {
  background: rgba(0, 163, 224, 0.16);
  border-color: #00A3E0;
  color: #38BDF8;
}

.nw-faq__icon-vert {
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.nw-faq__item[open] .nw-faq__icon-vert,
.nw-faq__item.is-opening .nw-faq__icon-vert {
  transform: rotate(90deg) scaleY(0);
  opacity: 0;
}

.nw-faq__item.is-closing .nw-faq__icon-vert {
  transform: rotate(0deg) scaleY(1);
  opacity: 1;
}

/* Answer Container Directly Underneath Question */
.nw-faq__answer {
  padding: 0 clamp(4px, 0.8vw, 10px) clamp(16px, 2.2vh, 22px) clamp(4px, 0.8vw, 10px);
  box-sizing: border-box;
}

.nw-faq__answer-text {
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: clamp(0.875rem, 1vw, 0.95rem);
  line-height: 1.68;
  color: #94A3B8;
  margin: 0;
  text-align: left;
  max-width: 760px;
}

/* =============================================================================
   4. COMPACT CENTERED CONTACT PROMPT
   ============================================================================= */

.nw-faq__contact-prompt {
  margin-top: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 680px;
  box-sizing: border-box;
}

.nw-faq__contact-text {
  text-align: left;
}

.nw-faq__contact-title {
  display: block;
  font-family: var(--font-heading), 'Manrope', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.nw-faq__contact-desc {
  font-family: var(--font-body), 'Manrope', -apple-system, sans-serif;
  font-size: 11.5px;
  color: #94A3B8;
  line-height: 1.35;
}

.nw-faq__contact-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 7px 18px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.nw-faq__contact-btn:hover {
  background: #ffffff;
  color: #111827;
  border-color: #ffffff;
}

/* =============================================================================
   5. TABLET RESPONSIVE (1080px down to 768px)
   ============================================================================= */

@media (max-width: 1080px) and (min-width: 768px) {
  .nw-faq {
    padding-top: calc(var(--header-overlay-height, 70px) + clamp(20px, 3.5vh, 36px));
    padding-bottom: clamp(28px, 4.5vh, 48px);
    scroll-margin-top: 0 !important;
  }

  #sss,
  #sss:target {
    scroll-margin-top: 0 !important;
  }

  .nw-faq__wrapper {
    max-width: 100%;
    padding: 0 16px;
  }

  .nw-faq__bg-halo {
    width: 1000px;
    height: 700px;
  }
}

/* =============================================================================
   6. MOBILE RESPONSIVE (max-width: 767px)
   ============================================================================= */

@media (max-width: 768px) {
  .nw-faq {
    display: block !important;
    min-height: auto !important;
    height: auto !important;
    box-sizing: border-box !important;
    padding-top: var(--nw-mobile-header-clearance, 86px) !important;
    padding-bottom: clamp(32px, 5vw, 44px) !important;
    scroll-margin-top: 0 !important;
  }

  .nw-faq .nw-container {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  #sss,
  #sss:target,
  #faq,
  #faq:target {
    scroll-margin-top: 0 !important;
  }

  .nw-faq__wrapper {
    padding: 0;
  }

  .nw-faq__title,
  .nw-faq__wrapper .nw-faq__title {
    font-size: var(--nw-section-title-mobile, clamp(1.75rem, 7.2vw, 2.15rem)) !important;
    line-height: var(--nw-section-title-mobile-lh, 1.18) !important;
    letter-spacing: var(--nw-section-title-mobile-ls, -0.025em) !important;
    font-weight: var(--nw-section-title-mobile-weight, 800) !important;
    margin-bottom: 6px !important;
  }

  .nw-faq__desc {
    font-size: 0.8125rem;
    margin-bottom: 18px;
  }

  .nw-faq__question {
    padding: 14px 4px;
    gap: 12px;
  }

  .nw-faq__question-text {
    font-size: 0.9375rem;
    line-height: 1.4;
  }

  .nw-faq__icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
  }

  .nw-faq__answer {
    padding: 0 4px 16px 4px;
  }

  .nw-faq__answer-text {
    font-size: 0.875rem;
    line-height: 1.6;
  }

  .nw-faq__contact-prompt {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 12px 16px;
  }

  .nw-faq__contact-text {
    text-align: center;
  }

  .nw-faq__bg-halo {
    width: 600px;
    height: 600px;
  }
}

/* =============================================================================
   7. ACCESSIBILITY & PREFERS-REDUCED-MOTION
   ============================================================================= */

@media (prefers-reduced-motion: reduce) {
  .nw-faq__item,
  .nw-faq__question,
  .nw-faq__question-text,
  .nw-faq__icon,
  .nw-faq__icon-vert,
  .nw-faq__contact-btn {
    transition: none !important;
    animation: none !important;
  }
}
