/* Aceternity-inspired FAQ accordion */

.catalog-home-shell {
  width: min(1520px, 97.5vw);
  margin: 0 auto;
  padding: 0 clamp(0.5rem, 1.5vw, 1rem);
}

.section--home-faq {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section--home-faq .faq-accordion {
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
}

.faq-accordion {
  width: 100%;
  max-width: 56rem;
}

.faq-accordion--stack {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3vw, 2.5rem);
}

.faq-accordion--columns {
  max-width: none;
}

.faq-accordion__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.faq-accordion__column {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  min-width: 0;
}

.faq-accordion__group {
  min-width: 0;
}

.faq-accordion__category {
  margin: 0 0 1.1rem;
  font-size: clamp(1.05rem, 1.8vw, 1.18rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.faq-accordion__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  position: relative;
  border: 0;
  padding: 0;
}

.faq-item__shell {
  position: relative;
  border: 1px dashed color-mix(in srgb, var(--glass-border) 78%, transparent);
  border-radius: 0.7rem;
  background: color-mix(in srgb, var(--text) 3%, transparent);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:not(.is-open) .faq-item__shell:hover {
  border-color: color-mix(in srgb, var(--accent-2) 36%, var(--glass-border));
  background: color-mix(in srgb, var(--text) 5%, transparent);
}

[data-theme="light"] .faq-item:not(.is-open) .faq-item__shell:hover {
  background: color-mix(in srgb, var(--text) 3%, #fff);
}

.faq-item.is-open .faq-item__shell {
  border-color: color-mix(in srgb, var(--accent-2) 44%, var(--glass-border));
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  box-shadow: 0 2px 12px color-mix(in srgb, var(--accent) 14%, transparent);
}

[data-theme="light"] .faq-item.is-open .faq-item__shell {
  background: color-mix(in srgb, var(--accent) 5%, #fff);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.faq-item__heading {
  margin: 0;
}

.faq-item__trigger {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.faq-item.is-open .faq-item__trigger {
  border-bottom: 1px dashed color-mix(in srgb, var(--accent-2) 32%, var(--glass-border));
}

.faq-item__question {
  font-size: clamp(0.92rem, 1.45vw, 1rem);
  font-weight: 600;
  line-height: 1.45;
  color: color-mix(in srgb, var(--text) 92%, var(--muted));
}

.faq-item__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--muted);
  transition: transform 0.22s ease, color 0.22s ease;
}

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

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
  color: var(--text);
}

.faq-item__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.26s ease;
}

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

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

.faq-item__answer {
  max-width: 100%;
  padding: 0.75rem 1rem 1rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--muted);
}

.faq-item.is-open .faq-item__answer {
  animation: faqAnswerIn 0.24s ease;
}

@keyframes faqAnswerIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dedicated FAQ page */

.page-faq {
  --nav-offset: 7.5rem;
}

.page-faq .site-main {
  padding-top: 0;
}

.page-faq .site-backdrop__photo,
.page-faq .site-backdrop__video {
  object-position: center center;
}

.page-faq .site-backdrop__mesh {
  opacity: 0.34;
}

.page-faq .site-backdrop__overlay {
  background:
    linear-gradient(
      180deg,
      rgba(5, 5, 8, 0.48) 0%,
      rgba(5, 5, 8, 0.82) 42%,
      rgba(5, 5, 8, 0.94) 100%
    ),
    radial-gradient(ellipse 90% 75% at 50% 40%, transparent 0%, rgba(5, 5, 8, 0.5) 100%);
}

[data-theme="light"] .page-faq .site-backdrop__overlay {
  background:
    linear-gradient(
      180deg,
      rgba(238, 242, 249, 0.88) 0%,
      rgba(238, 242, 249, 0.95) 45%,
      rgba(238, 242, 249, 0.98) 100%
    ),
    radial-gradient(ellipse 90% 75% at 50% 40%, transparent 0%, rgba(238, 242, 249, 0.62) 100%);
}

.faq-page {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: calc(var(--nav-offset) + 1.5rem) 0 clamp(3rem, 6vw, 5rem);
}

.faq-page__shell {
  width: min(980px, calc(100vw - 2rem));
  margin-inline: auto;
  padding-inline: clamp(0.75rem, 2vw, 1.25rem);
}

.faq-page__hero {
  position: relative;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  text-align: center;
}

.faq-page__kicker {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.faq-page__title {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.faq-page__subtitle {
  margin: 0 auto;
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 36rem;
}

.section--faq {
  padding: 0;
}

.faq-page .faq-accordion {
  width: 100%;
  max-width: none;
  margin-inline: auto;
}

.faq-page .faq-accordion--stack {
  gap: clamp(1.75rem, 3vw, 2.5rem);
}

.faq-page .faq-accordion__columns {
  gap: clamp(1.25rem, 3vw, 2rem);
}

@media (max-width: 900px) {
  .faq-accordion__columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .faq-item__trigger {
    padding: 0.9rem 0.85rem;
  }

  .faq-item__answer {
    padding-inline: 0.85rem;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item__panel,
  .faq-item__icon,
  .faq-item__answer {
    transition: none;
    animation: none;
  }
}
