/* ============================================
   FAQ ACCORDION 2 — Premium Redesign
   Two-column layout with glass cards
   ============================================ */

.faq2 {
  position: relative;
  overflow: hidden;
}

.faq2__inner {
  position: relative;
}


/* ============================================
   TWO-COLUMN LAYOUT
   ============================================ */

.faq2__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 1024px) {
  .faq2__layout {
    grid-template-columns: 340px 1fr;
    gap: 80px;
    align-items: start;
  }
}

@media (min-width: 1280px) {
  .faq2__layout {
    grid-template-columns: 400px 1fr;
    gap: 100px;
  }
}


/* ============================================
   LEFT COLUMN — Sticky Header
   ============================================ */

.faq2__header {
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .faq2__header {
    position: sticky;
    top: 120px;
  }
}

/* Eyebrow */
.faq2__eyebrow {
  margin: 0 0 24px 0;
  font-family: var(--font-primary), sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.3;
}

@media (min-width: 768px) {
  .faq2__eyebrow { margin-bottom: 32px; }
}

@media (min-width: 1200px) {
  .faq2__eyebrow { margin-bottom: 40px; }
}

/* Heading */
.faq2__heading {
  margin: 0;
  font-family: var(--font-primary), sans-serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .faq2__heading {
    font-size: 32px;
  }
}

@media (min-width: 1200px) {
  .faq2__heading {
    font-size: 36px;
  }
}

/* Question count */
.faq2__count {
  margin: 28px 0 0 0;
  font-family: var(--font-primary), sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  opacity: 0.3;
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .faq2__count { margin-top: 36px; }
}

@media (min-width: 1200px) {
  .faq2__count { margin-top: 40px; }
}


/* ============================================
   RIGHT COLUMN — FAQ Items
   ============================================ */

.faq2__items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}


/* ============================================
   INDIVIDUAL FAQ ITEM
   Glass card style
   ============================================ */

.faq2__item {
  position: relative;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Scroll reveal */
  opacity: 0;
  transform: translateY(16px);
}

.faq2__item--visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--item-index, 0) * 0.06s),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--item-index, 0) * 0.06s);
}

.faq2__item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.faq2__item.is-open {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}


/* ============================================
   QUESTION BUTTON
   ============================================ */

.faq2__question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: opacity 0.2s ease;
}

@media (min-width: 768px) {
  .faq2__question {
    padding: 24px 28px;
    gap: 20px;
  }
}

.faq2__question:hover {
  opacity: 0.8;
}

/* Number */
.faq2__question-number {
  font-family: var(--font-primary), sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  min-width: 20px;
  transition: color 0.3s ease;
}

.faq2__item.is-open .faq2__question-number {
  color: rgba(255, 255, 255, 0.5);
}

/* Question text */
.faq2__question-text {
  flex: 1;
  line-height: 1.4;
  font-family: var(--font-primary), sans-serif;
  font-weight: 500;
}

/* Chevron icon */
.faq2__chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.4);
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.3s ease,
    color 0.3s ease;
}

.faq2__item.is-open .faq2__chevron {
  transform: rotate(180deg);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
}

.faq2__chevron svg {
  display: block;
}


/* ============================================
   ANSWER PANEL
   ============================================ */

.faq2__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq2__answer-inner {
  padding: 0 28px 24px 58px;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
  .faq2__answer-inner {
    padding: 0 32px 28px 68px;
  }
}

.faq2__item.is-open .faq2__answer-inner {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.faq2__answer-inner p {
  margin: 0;
  line-height: 1.75;
  font-family: var(--font-primary), sans-serif;
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
}

@media (min-width: 768px) {
  .faq2__answer-inner p {
    font-size: 16px;
  }
}


/* ============================================
   FOCUS STATES — Accessibility
   ============================================ */

.faq2__question:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.3);
  outline-offset: -2px;
  border-radius: 14px;
}

.faq2__question:focus:not(:focus-visible) {
  outline: none;
}


/* ============================================
   MOBILE REFINEMENTS
   ============================================ */

@media (max-width: 767px) {
  .faq2__items {
    gap: 6px;
  }

  .faq2__item {
    border-radius: 12px;
  }

  .faq2__question {
    padding: 18px 18px;
    gap: 14px;
  }

  .faq2__answer-inner {
    padding: 0 18px 20px 52px;
  }

  .faq2__chevron {
    width: 26px;
    height: 26px;
  }
}
