/* ==========================================================================
   FAQ Page — Lanyard Palembang
   Theme: Modern Warm Editorial & 2-Column Balanced Grid
   ========================================================================== */

:root {
  --faq-ink: #151515;
  --faq-ink-soft: #1A1510;
  --faq-muted: #5C4F3E;
  --faq-subtle: #8A837A;
  
  --faq-gold: #C3944B;
  --faq-gold-dark: #A07A2B;
  --faq-gold-strong: #8C6D1D;
  --faq-gold-light: #F5D98A;
  --faq-gold-hover: #E4C469;
  --faq-gold-soft: #FAF3E0;
  --faq-gold-border: #E5D2A8;

  --faq-bg: #ffffff;
  --faq-surface: #FAF7F2;
  --faq-surface-warm: #F7F3E8;
  --faq-border: #EDE4D1;
  --faq-border-subtle: #F0E4D5;
  --faq-line: #F2ECE1;
}

.faq-page,
.faq-page *,
.faq-page *::before,
.faq-page *::after {
  box-sizing: border-box;
}

.faq-page {
  background: var(--faq-bg);
  color: var(--faq-ink);
  font-family: inherit;
}

/* --------------------------------------------------------------------------
   1. Centered Hero Section
   -------------------------------------------------------------------------- */
.faq-hero {
  padding: clamp(56px, 7vw, 88px) 0 clamp(44px, 5vw, 64px);
  background: #ffffff;
  border-bottom: 1px solid var(--faq-line);
}

.faq-hero__header {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq-hero__eyebrow-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 14px 6px 10px;
  border-radius: 9999px;
  background: var(--faq-gold-soft);
  border: 1px solid var(--faq-gold-border);
}

.faq-hero__sparkle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: var(--faq-gold-dark);
}

.faq-hero__sparkle svg {
  width: 100%;
  height: 100%;
}

.faq-hero__eyebrow {
  color: var(--faq-gold-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.faq-hero__title {
  margin: 0 0 16px;
  color: var(--faq-ink);
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.faq-hero__title-accent {
  color: var(--faq-gold);
  background: linear-gradient(135deg, var(--faq-gold-dark) 0%, var(--faq-gold) 60%, var(--faq-gold-strong) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.faq-hero__desc {
  margin: 0 0 28px;
  color: var(--faq-muted);
  font-size: 16px;
  line-height: 1.68;
  max-width: 700px;
}

/* Centered Live Search Box */
.faq-search-box {
  width: 100%;
  max-width: 640px;
}

.faq-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.faq-search-icon {
  position: absolute;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--faq-subtle);
  pointer-events: none;
}

.faq-search-icon svg {
  width: 18px;
  height: 18px;
}

.faq-search-input {
  width: 100%;
  min-height: 54px;
  padding: 0 24px 0 54px;
  border: 1.5px solid var(--faq-border);
  border-radius: 9999px;
  background: var(--faq-surface);
  color: var(--faq-ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 4px 18px rgba(26, 21, 16, 0.03);
}

.faq-search-input:focus {
  background: #ffffff;
  border-color: var(--faq-gold);
  box-shadow: 0 0 0 3.5px rgba(195, 148, 75, 0.18);
}

.faq-search-input::placeholder {
  color: var(--faq-subtle);
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   2. Sticky Filter Tabs Bar
   -------------------------------------------------------------------------- */
.faq-tabs-bar {
  position: sticky;
  top: 72px;
  z-index: 45;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--faq-line);
  padding: 14px 0;
  box-shadow: 0 4px 16px rgba(26, 21, 16, 0.04);
}

.faq-tabs-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.faq-tabs-nav::-webkit-scrollbar {
  display: none;
}

.faq-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 9999px;
  border: 1.5px solid var(--faq-border);
  background: #ffffff;
  color: var(--faq-muted);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 750;
  cursor: pointer;
  outline: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 180ms ease;
  user-select: none;
}

.faq-tab-btn:hover {
  border-color: var(--faq-gold);
  color: var(--faq-ink);
  background: var(--faq-surface);
}

.faq-tab-btn.is-active {
  background: var(--faq-gold-light);
  border-color: var(--faq-gold);
  color: var(--faq-ink-soft);
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(245, 217, 138, 0.4);
}

.faq-tab-btn__count {
  font-size: 12px;
  opacity: 0.85;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   3. 2-Column Balanced Accordion Grid
   -------------------------------------------------------------------------- */
.faq-content-section {
  padding: clamp(56px, 7vw, 92px) 0;
  background: var(--faq-surface);
  border-bottom: 1px solid var(--faq-line);
}

.faq-accordion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.faq-card-item {
  border: 1px solid var(--faq-border);
  border-radius: 20px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(26, 21, 16, 0.03);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.faq-card-item:hover {
  transform: translateY(-2px);
  border-color: var(--faq-gold);
  box-shadow: 0 8px 24px rgba(26, 21, 16, 0.06);
}

.faq-card-item[open] {
  border-color: var(--faq-gold);
  box-shadow: 0 10px 28px rgba(26, 21, 16, 0.07);
}

.faq-card-item__summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-card-item__summary::-webkit-details-marker {
  display: none;
}

.faq-card-item__heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.faq-card-item__badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--faq-gold-soft);
  border: 1px solid var(--faq-gold-border);
  color: var(--faq-gold-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.faq-card-item__question {
  margin: 0;
  color: var(--faq-ink);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  transition: color 160ms ease;
}

.faq-card-item:hover .faq-card-item__question {
  color: var(--faq-gold-dark);
}

.faq-card-item[open] .faq-card-item__question {
  color: var(--faq-gold-dark);
}

.faq-card-item__chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--faq-subtle);
  flex-shrink: 0;
  margin-top: 2px;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), color 200ms ease;
}

.faq-card-item__chevron svg {
  width: 18px;
  height: 18px;
}

.faq-card-item[open] .faq-card-item__chevron {
  transform: rotate(180deg);
  color: var(--faq-gold-dark);
}

.faq-card-item__answer {
  padding: 0 24px 22px;
  color: var(--faq-muted);
  font-size: 14.5px;
  line-height: 1.68;
}

.faq-card-item__answer p {
  margin: 0;
}

/* Empty State */
.faq-empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 24px;
  border: 1px dashed var(--faq-border);
  border-radius: 24px;
  background: #ffffff;
}

.faq-empty-state__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--faq-gold-soft);
  border: 1px solid var(--faq-gold-border);
  color: var(--faq-gold-dark);
  margin-bottom: 16px;
}

.faq-empty-state__icon svg {
  width: 28px;
  height: 28px;
}

.faq-empty-state h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 850;
  color: var(--faq-ink);
}

.faq-empty-state p {
  margin: 0 0 22px;
  color: var(--faq-muted);
  font-size: 14.5px;
  max-width: 440px;
  line-height: 1.6;
}

.faq-empty-state__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 9999px;
  background: var(--faq-gold-light);
  border: 1px solid var(--faq-gold);
  color: var(--faq-ink-soft);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: all 180ms ease;
}

.faq-empty-state__btn:hover {
  background: var(--faq-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 217, 138, 0.45);
}

/* --------------------------------------------------------------------------
   4. Quick Help Strip
   -------------------------------------------------------------------------- */
.faq-help-strip {
  margin-top: clamp(40px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #ffffff;
  border: 1px solid var(--faq-border);
  border-radius: 20px;
  padding: 22px 28px;
  box-shadow: 0 4px 18px rgba(26, 21, 16, 0.03);
}

.faq-help-strip__text strong {
  display: block;
  color: var(--faq-ink);
  font-size: 15px;
  font-weight: 850;
}

.faq-help-strip__text span {
  display: block;
  color: var(--faq-muted);
  font-size: 13.5px;
  margin-top: 2px;
}

.faq-help-strip__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 9999px;
  background: var(--faq-gold-light);
  border: 1px solid var(--faq-gold);
  color: var(--faq-ink-soft);
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: all 180ms ease;
  flex-shrink: 0;
}

.faq-help-strip__btn:hover {
  background: var(--faq-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(245, 217, 138, 0.4);
}

/* --------------------------------------------------------------------------
   5. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .faq-accordion-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .faq-help-strip {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 16px;
  }
  .faq-help-strip__btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .faq-hero {
    padding: 36px 0 32px;
  }
  .faq-hero__title {
    font-size: clamp(1.85rem, 7vw, 2.4rem);
  }
  .faq-hero__desc {
    font-size: 14.5px;
    margin-bottom: 22px;
  }
  .faq-search-input {
    min-height: 48px;
    font-size: 14px;
    padding-left: 48px;
  }
  .faq-tabs-bar {
    top: 68px;
    padding: 10px 0;
  }
  .faq-tabs-nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    width: 100%;
    padding-bottom: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .faq-tabs-nav::-webkit-scrollbar {
    display: none;
  }
  .faq-tab-btn {
    flex-shrink: 0;
    min-height: 38px;
    padding: 0 16px;
    font-size: 13px;
  }
  .faq-content-section {
    padding: 36px 0 52px;
  }
  .faq-card-item__summary {
    padding: 18px 20px;
    gap: 12px;
  }
  .faq-card-item__question {
    font-size: 15px;
  }
  .faq-card-item__answer {
    padding: 0 20px 20px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-tab-btn,
  .faq-card-item,
  .faq-card-item__chevron,
  .faq-help-strip__btn,
  .faq-empty-state__btn {
    transition: none !important;
  }
}
