/* ─────────────────────────────────────────────────────────────────────────────
   ATHERIA — FAQ WIDGET
   Globals-First: every colour/font resolves to an --ath-* token by default and
   is overridable from the widget Style tab (which reads the Redux panel).
   ───────────────────────────────────────────────────────────────────────────── */

.ath-faq {
  --ath-faq-item-bg: var(--ath-focus-tint, #DCE8E9);
  --ath-faq-item-bg-open: var(--ath-focus-tint, #DCE8E9);
  --ath-faq-q-color: var(--ath-arctic-navy, #243C4C);
  --ath-faq-a-color: var(--ath-reflection, #698696);
  --ath-faq-icon-color: var(--ath-arctic-navy, #243C4C);
}

.ath-faq__inner {
  display: block;
}

.ath-faq--split .ath-faq__inner {
  display: flex;
  align-items: flex-start;
  gap: 5rem;
}

.ath-faq--split .ath-faq__head {
  flex: 0 0 40%;
  max-width: 40%;
}

.ath-faq--split .ath-faq__head--sticky {
  position: sticky;
  top: 6rem;
}

.ath-faq--split .ath-faq__list {
  flex: 1 1 auto;
  min-width: 0;
}

.ath-faq--stacked .ath-faq__head {
  margin-bottom: 3rem;
}

.ath-faq__eyebrow {
  display: inline-block;
  font-family: var(--ath-font-eyebrow, sans-serif);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ath-arctic-blue);
  margin-bottom: 1rem;
}

.ath-faq__title {
  font-family: var(--ath-font-heading, serif);
  color: var(--ath-arctic-navy);
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem);
  line-height: 1.05;
  margin: 0;
  overflow-wrap: break-word;
}

.ath-faq__intro {
  font-family: var(--ath-font-body, sans-serif);
  color: var(--ath-reflection);
  font-size: 1rem;
  line-height: 1.65;
  margin: 1.5rem 0 0;
}

.ath-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ath-faq__item {
  background: var(--ath-faq-item-bg, #DCE8E9);
  border-radius: 1rem;
  overflow: hidden;
  transition: background-color 0.3s var(--ath-ease-out, ease-out);
}

.ath-faq__item.is-open {
  background: var(--ath-faq-item-bg-open);
}

.ath-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.25rem 1.75rem;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  cursor: pointer;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
}

.ath-faq__q-text {
  font-family: var(--ath-font-eyebrow, sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--ath-faq-q-color);
  transition: color 0.25s ease;
}

.ath-faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--ath-faq-icon-color);
}

.ath-faq__icon-bar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ath-ease-out, ease-out), opacity 0.3s var(--ath-ease-out, ease-out);
}

.ath-faq__icon-bar--v {
  transform: translate(-50%, -50%) rotate(90deg);
}

.ath-faq__item.is-open .ath-faq__icon-bar--h {
  transform: translate(-50%, -50%) rotate(45deg);
}

.ath-faq__item.is-open .ath-faq__icon-bar--v {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.ath-faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ath-ease-out, ease-out);
}

.ath-faq__a-inner {
  font-family: var(--ath-font-body, sans-serif);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ath-faq-a-color);
  padding: 0 1.75rem 1.5rem;
}

.ath-faq__a-inner > :first-child {
  margin-top: 0;
}

.ath-faq__a-inner > :last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .ath-faq--split .ath-faq__inner {
    flex-direction: column;
    gap: 2.5rem;
  }
  .ath-faq--split .ath-faq__head {
    flex: 1 1 auto;
    max-width: 100%;
    position: static;
  }
}

.elementor-editor-active .ath-faq__a {
  max-height: none;
}