/* ==========================================================================
   SCCWS Nepal — FAQ page styles
   Built on top of Bootstrap 5 (grid, breakpoints, utilities only) and the
   shared design tokens / components in style.css. Adds the FAQ-specific
   hero search card, category filter pills, accordion list, and the closing
   contact-prompt banner. Sourced from the Figma frame
   "SCCWS Nepal - Frequently Asked Questions".
   ========================================================================== */

/* ---- 1. FAQ Hero ---------------------------------------------------------- */
.faq-hero {
  position: relative;
  overflow: hidden;
}

.faq-hero__glow {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  pointer-events: none;
  background: radial-gradient(ellipse 42% 70% at 50% 50%, var(--color-brand-mint) 0%, rgba(158, 209, 189, 0) 70%);
}

.faq-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.faq-hero__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 672px;
}

.faq-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background-color: var(--color-brand-forest-light);
  color: #8abda9;
  width: fit-content;
}

.faq-hero__badge svg { width: 13.33px; height: 13.33px; }
.faq-hero__badge span { font-size: 12px; font-weight: 700; }

.faq-hero__text h1 {
  font-size: 48px;
  line-height: 56px;
  color: var(--color-white);
}

.faq-hero__lede {
  font-size: 18px;
  line-height: 28px;
  color: var(--color-brand-mint);
  max-width: 620px;
}

.faq-hero__search {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 370px;
  max-width: 100%;
  background-color: rgba(27, 77, 62, 0.8);
  border: 1px solid rgba(192, 201, 195, 0.2);
  border-radius: var(--radius-md);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.faq-hero__search-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-white);
}

.faq-hero__search-box { position: relative; }

.faq-hero__search-box input {
  width: 100%;
  background-color: var(--color-bg-page);
  border: none;
  border-radius: 8px;
  padding: 12px 16px 12px 40px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-heading);
}

.faq-hero__search-box input:focus-visible {
  outline: 2px solid var(--color-brand-amber);
  outline-offset: 2px;
}

.faq-hero__search-box input::placeholder { color: #9ca3af; }

.faq-hero__search-icon {
  position: absolute;
  left: 14.5px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: #9ca3af;
  pointer-events: none;
}

@media (max-width: 991.98px) {
  .faq-hero__inner { flex-direction: column; align-items: flex-start; }
  .faq-hero__search { width: 100%; }
}

@media (max-width: 767.98px) {
  .faq-hero__text h1 { font-size: 32px; line-height: 38px; }
  .faq-hero__lede { font-size: 16px; line-height: 25px; }
}

/* ---- 2. Category filter pills ---------------------------------------------- */
.faq-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-12);
}

.faq-pill {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background-color: var(--color-bg-strip);
  color: var(--color-text-heading);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.faq-pill:hover:not(.is-active) { background-color: var(--color-border-soft-2); }
.faq-pill.is-active { background-color: var(--color-brand-forest); color: var(--color-white); }

@media (max-width: 767.98px) {
  .faq-pills { margin-bottom: var(--space-8); }
}

/* ---- 3. Accordion list ------------------------------------------------------ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.faq-item {
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq-item[hidden] { display: none; }

.faq-item__header { margin: 0; font-size: inherit; font-weight: inherit; }

.faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-8);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
}

.faq-item__left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-width: 0;
}

.faq-item__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-item__icon svg { width: 18px; height: 18px; }
.faq-item__icon--mint { background-color: var(--color-brand-mint-pale); color: var(--color-brand-forest); }
.faq-item__icon--peach { background-color: #ffdcc3; color: var(--color-brand-amber); }

.faq-item__text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  text-align: left;
}

.faq-item__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.faq-item__eyebrow--mint { color: #376757; }
.faq-item__eyebrow--peach { color: var(--color-brand-amber); }

.faq-item__question {
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
  color: var(--color-text-heading);
}

.faq-item__chevron {
  width: 12px;
  height: 7.4px;
  color: var(--color-text-body);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item__trigger[aria-expanded="true"] .faq-item__chevron { transform: rotate(180deg); }

.faq-item__answer {
  padding: 0 var(--space-8) var(--space-8) 88px;
  font-size: 14px;
  line-height: 22.75px;
  color: var(--color-text-body);
}

@media (max-width: 767.98px) {
  .faq-item__trigger { padding: var(--space-5); gap: var(--space-3); }
  .faq-item__question { font-size: 16px; line-height: 24px; }
  .faq-item__answer { padding: 0 var(--space-5) var(--space-5); }
}

.faq-empty {
  margin-top: var(--space-8);
  text-align: center;
  font-size: 14px;
  color: var(--color-text-muted);
}

.faq-empty a { color: var(--color-brand-forest); font-weight: 700; text-decoration: underline; }

/* ---- 4. Contact prompt banner ------------------------------------------------ */
.faq-cta {
  position: relative;
  overflow: hidden;
  background-color: var(--color-brand-forest);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.faq-cta__glow {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  pointer-events: none;
  background: radial-gradient(ellipse 42% 70% at 50% 50%, var(--color-brand-mint) 0%, rgba(158, 209, 189, 0) 70%);
}

.faq-cta__text {
  position: relative;
  z-index: 1;
  max-width: 576px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-cta__text h2 { font-size: 36px; line-height: 44px; color: var(--color-white); }
.faq-cta__text p { font-size: 18px; line-height: 28px; color: var(--color-brand-mint); }

.faq-cta__actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.btn-light {
  background-color: var(--color-bg-page);
  color: var(--color-text-heading);
  box-shadow: var(--shadow-md);
}
.btn-light:hover { background-color: var(--color-white); color: var(--color-text-heading); }

@media (max-width: 767.98px) {
  .faq-cta { padding: var(--space-8) var(--space-5); }
  .faq-cta__text h2 { font-size: 28px; line-height: 34px; }
  .faq-cta__text p { font-size: 16px; line-height: 25px; }
}
