/* ============================================================
   FAQ ACCORDION & ADDITIONAL STYLES — additional_styles.css
   Matches Flux Finance dark/light design aesthetic
   ============================================================ */

/* ── Section wrapper ── */
.faq-section {
  max-width: 100%;
  overflow-x: hidden;
  margin-top: 96px;
  margin-bottom: 48px;
  padding: 0 15px;
  box-sizing: border-box;
}

/* ── SEO h1 heading ── */
.faq-seo-h1 {
  font-family: Alliance, Helvetica Neue, Helvetica, Sans-serif;
  font-weight: normal;
  font-size: 40px;
  line-height: 46px;
  color: #ffffff;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}

@media (max-width: 619px) {
  .faq-seo-h1 {
    font-size: 28px;
    line-height: 34px;
  }
}

/* ── Section subtitle ── */
.faq-section-subtitle {
  font-family: Alliance, Helvetica Neue, Helvetica, Sans-serif;
  font-size: 18px;
  line-height: 24px;
  font-weight: normal;
  color: #ffffff;
  opacity: 0.7;
  margin: 0 0 40px 0;
  max-width: 36em;
}

/* ── FAQ list container ── */
.faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 100%;
}

/* ── Individual accordion item ── */
.faq-item {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: none;
  transition: box-shadow 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 619px) {
  .faq-item {
    border-radius: 16px;
  }
}

.faq-item:hover {
  box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.08);
}

/* ── Accordion question button ── */
.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 30px;
  text-align: left;
  box-sizing: border-box;
}

@media (max-width: 619px) {
  .faq-question {
    padding: 18px 20px;
  }
}

/* ── h2 inside question button ── */
.faq-question h2 {
  font-family: Alliance, Helvetica Neue, Helvetica, Sans-serif;
  font-size: 18px;
  line-height: 24px;
  font-weight: normal;
  color: #000000;
  margin: 0;
  flex: 1;
}

@media (max-width: 619px) {
  .faq-question h2 {
    font-size: 16px;
    line-height: 22px;
  }
}

/* ── Toggle icon ── */
.faq-toggle-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f2f3f6;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.3s ease;
  position: relative;
}

.faq-toggle-icon::before,
.faq-toggle-icon::after {
  content: '';
  position: absolute;
  background: #000000;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq-toggle-icon::before {
  width: 12px;
  height: 2px;
}

.faq-toggle-icon::after {
  width: 2px;
  height: 12px;
}

/* ── Open state icon ── */
.faq-item.faq-open .faq-toggle-icon {
  background: #16171a;
}

.faq-item.faq-open .faq-toggle-icon::before,
.faq-item.faq-open .faq-toggle-icon::after {
  background: #ffffff;
}

.faq-item.faq-open .faq-toggle-icon::after {
  opacity: 0;
  transform: rotate(90deg);
}

/* ── Answer panel wrapper (controls animation) ── */
.faq-answer-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.faq-open .faq-answer-wrapper {
  max-height: 600px;
}

/* ── Answer inner padding ── */
.faq-answer-inner {
  padding: 0 30px 24px 30px;
  box-sizing: border-box;
}

@media (max-width: 619px) {
  .faq-answer-inner {
    padding: 0 20px 18px 20px;
  }
}

/* ── h3 inside answer ── */
.faq-answer-inner h3 {
  font-family: Alliance, Helvetica Neue, Helvetica, Sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: normal;
  color: #000000;
  opacity: 0.75;
  margin: 0;
}

/* ── Divider between question and answer ── */
.faq-question + .faq-answer-wrapper .faq-answer-inner {
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  padding-top: 20px;
  margin-top: 0;
}

/* ── Section footer links ── */
.faq-section-footer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
  align-items: center;
}

.faq-footer-link {
  font-family: Alliance, Helvetica Neue, Helvetica, Sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  transition: opacity 0.3s ease, text-decoration-color 0.3s ease;
  opacity: 0.85;
}

.faq-footer-link:hover {
  opacity: 1;
  text-decoration-color: #ffffff;
}

/* ============================================================
   SUBPAGE SHARED STYLES (faq/index.html, about/index.html)
   ============================================================ */

/* ── Subpage body background ── */
.subpage-body {
  margin: 0;
  background: #f2f3f6;
  font-family: Alliance, Helvetica Neue, Helvetica, Sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #000000;
  min-height: 100vh;
}

/* ── Subpage outer wrapper ── */
.subpage-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  box-sizing: border-box;
  overflow-x: hidden;
}

@media (max-width: 619px) {
  .subpage-wrapper {
    padding: 32px 16px 60px;
  }
}

/* ── Subpage logo bar ── */
.subpage-logo-bar {
  display: flex;
  align-items: center;
  margin-bottom: 48px;
}

.subpage-logo-bar a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.subpage-logo-bar img {
  height: 36px;
  width: auto;
}

/* ── Subpage h1 ── */
.subpage-h1 {
  font-family: Alliance, Helvetica Neue, Helvetica, Sans-serif;
  font-size: 40px;
  line-height: 46px;
  font-weight: normal;
  color: #000000;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}

@media (max-width: 619px) {
  .subpage-h1 {
    font-size: 28px;
    line-height: 34px;
  }
}

/* ── Subpage lead paragraph ── */
.subpage-lead {
  font-size: 18px;
  line-height: 28px;
  color: #000000;
  opacity: 0.7;
  margin: 0 0 40px 0;
  max-width: 42em;
}

/* ── Subpage section heading ── */
.subpage-section-title {
  font-family: Alliance, Helvetica Neue, Helvetica, Sans-serif;
  font-size: 24px;
  line-height: 30px;
  font-weight: normal;
  color: #000000;
  margin: 48px 0 16px 0;
}

/* ── Subpage body text ── */
.subpage-text {
  font-size: 16px;
  line-height: 26px;
  color: #000000;
  opacity: 0.8;
  margin: 0 0 20px 0;
  max-width: 100%;
}

/* ── Subpage card ── */
.subpage-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 30px 35px;
  margin-bottom: 16px;
  box-sizing: border-box;
  max-width: 100%;
}

@media (max-width: 619px) {
  .subpage-card {
    border-radius: 16px;
    padding: 22px 20px;
  }
}

.subpage-card-dark {
  background: #16171a;
  color: #ffffff;
}

.subpage-card-accent {
  background: #4f38f7;
  color: #ffffff;
}

/* ── Subpage card heading ── */
.subpage-card-title {
  font-family: Alliance, Helvetica Neue, Helvetica, Sans-serif;
  font-size: 20px;
  line-height: 26px;
  font-weight: normal;
  margin: 0 0 10px 0;
  color: inherit;
}

/* ── Subpage card body ── */
.subpage-card-text {
  font-size: 16px;
  line-height: 24px;
  margin: 0;
  opacity: 0.75;
  color: inherit;
}

/* ── Subpage FAQ accordion (inherits base styles, overrides colors) ── */
.subpage-faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 100%;
}

.subpage-faq-item {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-sizing: border-box;
  max-width: 100%;
  transition: box-shadow 0.2s ease;
}

@media (max-width: 619px) {
  .subpage-faq-item {
    border-radius: 16px;
  }
}

.subpage-faq-item:hover {
  box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.08);
}

.subpage-faq-question {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  text-align: left;
  box-sizing: border-box;
}

@media (max-width: 619px) {
  .subpage-faq-question {
    padding: 16px 18px;
  }
}

.subpage-faq-question h2 {
  font-family: Alliance, Helvetica Neue, Helvetica, Sans-serif;
  font-size: 17px;
  line-height: 24px;
  font-weight: normal;
  color: #000000;
  margin: 0;
  flex: 1;
}

@media (max-width: 619px) {
  .subpage-faq-question h2 {
    font-size: 15px;
    line-height: 21px;
  }
}

.subpage-faq-toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f2f3f6;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  position: relative;
}

.subpage-faq-toggle::before,
.subpage-faq-toggle::after {
  content: '';
  position: absolute;
  background: #000000;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.subpage-faq-toggle::before {
  width: 12px;
  height: 2px;
}

.subpage-faq-toggle::after {
  width: 2px;
  height: 12px;
}

.subpage-faq-item.faq-open .subpage-faq-toggle {
  background: #16171a;
}

.subpage-faq-item.faq-open .subpage-faq-toggle::before,
.subpage-faq-item.faq-open .subpage-faq-toggle::after {
  background: #ffffff;
}

.subpage-faq-item.faq-open .subpage-faq-toggle::after {
  opacity: 0;
  transform: rotate(90deg);
}

.subpage-faq-answer-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.subpage-faq-item.faq-open .subpage-faq-answer-wrapper {
  max-height: 600px;
}

.subpage-faq-answer-inner {
  padding: 0 28px 22px 28px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  padding-top: 18px;
  box-sizing: border-box;
}

@media (max-width: 619px) {
  .subpage-faq-answer-inner {
    padding: 16px 18px 18px;
  }
}

.subpage-faq-answer-inner h3 {
  font-family: Alliance, Helvetica Neue, Helvetica, Sans-serif;
  font-size: 15px;
  line-height: 23px;
  font-weight: normal;
  color: #000000;
  opacity: 0.75;
  margin: 0;
}

/* ── Subpage CTA / nav links ── */
.subpage-nav-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 48px;
  align-items: center;
}

.subpage-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
  border-radius: 24px;
  padding: 8px 24px;
  font-family: Alliance, Helvetica Neue, Helvetica, Sans-serif;
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.25s ease;
  box-sizing: border-box;
}

.subpage-btn-primary:hover {
  opacity: 0.8;
}

.subpage-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #000000;
  border: 1px solid #000000;
  border-radius: 24px;
  padding: 8px 24px;
  font-family: Alliance, Helvetica Neue, Helvetica, Sans-serif;
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.25s ease;
  box-sizing: border-box;
}

.subpage-btn-outline:hover {
  opacity: 0.65;
}

/* ── Subpage divider ── */
.subpage-divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 40px 0;
}

/* ── Grid for about cards ── */
.subpage-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 619px) {
  .subpage-card-grid {
    grid-template-columns: 1fr;
  }
}

/* ── No horizontal overflow guarantee ── */
.faq-section,
.subpage-wrapper,
.faq-list,
.faq-item,
.subpage-faq-list,
.subpage-faq-item,
.subpage-card-grid {
  overflow-x: hidden;
  max-width: 100%;
}