/* ==========================================================================
   Bandeja help center - extends styles.css.
   Same system: dark cinematic, lime accent, pill interactive / 24px cards.
   ========================================================================== */

/* ------------------------------------------------------------- page hero */

.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(56px, 10vh, 110px)) 0 clamp(36px, 6vh, 64px);
  overflow: hidden;
}

.page-hero__glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 130%;
  background:
    radial-gradient(46% 58% at 50% 0%, rgb(200 240 75 / 0.13), transparent 70%);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
}

.page-hero__title {
  margin-top: 14px;
  font-size: clamp(2.3rem, 5.6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

html[dir="rtl"] .page-hero__title {
  letter-spacing: 0;
  line-height: 1.2;
}

.page-hero__sub {
  margin-top: 16px;
  max-width: 52ch;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-muted);
}

@media (prefers-reduced-motion: no-preference) {
  .page-hero .eyebrow,
  .page-hero__title,
  .page-hero__sub,
  .faq-search {
    opacity: 0;
    transform: translateY(18px);
    animation: fade-up 0.8s var(--ease-out) forwards;
  }

  .page-hero__title { animation-delay: 0.08s; }
  .page-hero__sub   { animation-delay: 0.18s; }
  .faq-search       { animation-delay: 0.28s; }
}

/* ----------------------------------------------------------------- search */

.faq-search {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  padding: 6px 8px 6px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.04);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

html[dir="rtl"] .faq-search {
  padding: 6px 20px 6px 8px;
}

.faq-search:focus-within {
  border-color: rgb(200 240 75 / 0.5);
  background: rgb(255 255 255 / 0.06);
  box-shadow: 0 0 0 4px rgb(200 240 75 / 0.08);
}

.faq-search__icon {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--text-muted);
}

.faq-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 0;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

.faq-search input:focus {
  outline: none;
}

.faq-search input::placeholder {
  color: rgb(154 166 173 / 0.7);
}

.faq-search input::-webkit-search-cancel-button {
  display: none;
}

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

.faq-search__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: none;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.07);
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.faq-search__clear:hover {
  background: rgb(255 255 255 / 0.13);
  color: var(--text);
}

/* ------------------------------------------------------------------ chips */

.faq-body {
  padding-bottom: clamp(70px, 9vh, 110px);
}

.faq-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 26px;
}

.faq-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease,
              transform 0.25s var(--ease-out);
}

.faq-chip:hover {
  color: var(--text);
  border-color: rgb(255 255 255 / 0.25);
}

.faq-chip:active {
  transform: scale(0.96);
}

.faq-chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* ------------------------------------------------------------- accordion */

.faq-group {
  margin-top: 34px;
}

.faq-group:first-child {
  margin-top: 4px;
}

.faq-group__title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

html[dir="rtl"] .faq-group__title {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.88rem;
}

.faq-group__items {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--bg-raised);
  overflow: hidden;
  transition: border-color 0.35s ease, background-color 0.35s ease;
}

.faq-item:hover {
  border-color: rgb(255 255 255 / 0.18);
}

.faq-item.is-open {
  border-color: rgb(200 240 75 / 0.38);
  background: linear-gradient(180deg, rgb(200 240 75 / 0.045), transparent 45%), var(--bg-raised);
}

@media (prefers-reduced-motion: no-preference) {
  .faq-item {
    opacity: 0;
    transform: translateY(14px);
    animation: fade-up 0.55s var(--ease-out) forwards;
    animation-delay: var(--d, 0ms);
  }
}

.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 19px 24px;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
}

.faq-item__caret {
  width: 1rem;
  height: 1rem;
  color: var(--text-muted);
  transition: transform 0.45s var(--ease-out), color 0.3s ease;
}

.faq-item.is-open .faq-item__caret {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-item__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease-out);
}

.faq-item.is-open .faq-item__a {
  grid-template-rows: 1fr;
}

.faq-item__a-inner {
  overflow: hidden;
}

.faq-item__a-content {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.4s ease 0.08s, transform 0.4s var(--ease-out) 0.08s;
}

.faq-item.is-open .faq-item__a-content {
  opacity: 1;
  transform: translateY(0);
}

.faq-item__a-content p + p {
  margin-top: 10px;
}

.faq-item__a-content ul {
  margin: 10px 0 0;
  padding-inline-start: 20px;
}

.faq-item__a-content li + li {
  margin-top: 6px;
}

.faq-item__a-content strong {
  color: var(--text);
  font-weight: 600;
}

.faq-item__a-content a {
  color: var(--accent);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .faq-item__a {
    transition: none;
  }

  .faq-item__a-content {
    transition: none;
  }
}

/* ------------------------------------------------------------ empty state */

.faq-empty {
  padding: 70px 24px;
  text-align: center;
  border: 1px dashed rgb(255 255 255 / 0.14);
  border-radius: var(--radius-card);
}

.faq-empty__glyph {
  width: 30px;
  height: 30px;
  color: var(--text-muted);
  opacity: 0.6;
}

.faq-empty h2 {
  margin-top: 14px;
  font-size: 1.25rem;
  font-weight: 700;
}

.faq-empty p {
  margin-top: 8px;
  color: var(--text-muted);
}

/* ---------------------------------------------------------------- contact */

.faq-contact {
  padding-bottom: clamp(90px, 12vh, 150px);
}

.faq-contact__panel {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 30px;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 160% at 85% -20%, rgb(200 240 75 / 0.22), transparent 55%),
    linear-gradient(150deg, #131a0a 0%, var(--bg-raised) 60%);
}

html[dir="rtl"] .faq-contact__panel {
  background:
    radial-gradient(120% 160% at 15% -20%, rgb(200 240 75 / 0.22), transparent 55%),
    linear-gradient(210deg, #131a0a 0%, var(--bg-raised) 60%);
}

.faq-contact__glyph {
  width: 34px;
  height: 34px;
  color: var(--accent);
}

.faq-contact__body {
  flex: 1;
  min-width: 220px;
}

.faq-contact__body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

html[dir="rtl"] .faq-contact__body h2 {
  letter-spacing: 0;
}

.faq-contact__body p {
  margin-top: 6px;
  color: var(--text-muted);
  max-width: 46ch;
}

.faq-contact .btn {
  padding: 13px 24px;
}

/* ----------------------------------------------------------------- mobile */

@media (max-width: 720px) {
  .faq-item__q {
    padding: 17px 18px;
    font-size: 0.98rem;
  }

  .faq-item__a-content {
    padding: 0 18px 18px;
  }

  .faq-contact__panel {
    padding: 24px;
  }

  .faq-contact .btn {
    width: 100%;
    justify-content: center;
  }
}
