/* =========================================
   IRONEDGE FAQ — COMPACT KNOWLEDGE SYSTEM
========================================= */

.faq-page {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 166, 86, 0.09), transparent 36%),
    #050505;
}

/* HERO */

.faq-hero {
  position: relative;
  z-index: 2;
  width: min(1180px, 88%);
  margin: 0 auto;
  padding: 175px 0 54px;
  text-align: left;
  border-bottom: 1px solid rgba(212, 166, 86, 0.12);
}

.faq-hero > span {
  color: #d4a656;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.faq-hero h1 {
  max-width: 1040px;
  margin: 18px 0 20px;
  font-size: clamp(46px, 5.5vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.faq-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 16px;
  line-height: 1.75;
}

/* VAULT + CONTROLS */

.faq-vault {
  position: relative;
  z-index: 2;
  width: min(1180px, 88%);
  margin: 0 auto;
  padding: 44px 0 130px;
}

.faq-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
}

.faq-categories button {
  min-height: 38px;
  padding: 9px 16px;
  border: 1px solid rgba(212, 166, 86, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.012);
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.faq-categories button:hover,
.faq-categories button.active {
  color: #d4a656;
  border-color: rgba(212, 166, 86, 0.46);
  background: rgba(212, 166, 86, 0.06);
}

.faq-search {
  max-width: none;
  margin: 0 0 46px;
}

.faq-search input {
  width: 100%;
  min-height: 54px;
  padding: 14px 20px;
  border: 1px solid rgba(212, 166, 86, 0.13);
  border-radius: 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.018);
  color: #fff;
  font-size: 14px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.faq-search input:focus {
  border-color: rgba(212, 166, 86, 0.42);
  background: rgba(212, 166, 86, 0.025);
}

.faq-search input::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

/* TWO-COLUMN KNOWLEDGE GRID */

.faq-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  max-width: none;
  margin: 0;
}

.faq-section-label {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 38px 0 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(212, 166, 86, 0.12);
}

.faq-section-label:first-of-type {
  margin-top: 0;
}

.faq-section-label span {
  color: #d4a656;
  font-size: 9px;
  letter-spacing: 0.22em;
}

.faq-section-label h2 {
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1;
  letter-spacing: -0.025em;
}

/* ACCORDION CARD */

.faq-item {
  border: 1px solid rgba(212, 166, 86, 0.12);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008));
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(212, 166, 86, 0.3);
  background: linear-gradient(150deg, rgba(212, 166, 86, 0.04), rgba(255, 255, 255, 0.01));
  transform: translateY(-2px);
}

.faq-item.active {
  grid-column: span 2;
  border-color: rgba(212, 166, 86, 0.34);
  background: linear-gradient(145deg, rgba(212, 166, 86, 0.055), rgba(255, 255, 255, 0.012));
}

.faq-question {
  width: 100%;
  min-height: 86px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.faq-question h3 {
  max-width: 500px;
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.018em;
}

.faq-question > span {
  flex: 0 0 auto;
  color: #d4a656;
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s ease;
}

.faq-answer-inner {
  max-width: 900px;
  padding: 0 22px 24px;
}

.faq-answer p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  line-height: 1.75;
}

.faq-item.active .faq-answer {
  max-height: 520px;
}

.faq-item.active .faq-question > span {
  transform: rotate(45deg);
}

.faq-empty {
  display: none;
  grid-column: 1 / -1;
  padding: 56px 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-align: center;
}

/* TABLET */

@media (max-width: 1050px) {
  .faq-hero {
    padding-top: 150px;
  }

  .faq-stack {
    grid-template-columns: 1fr;
  }

  .faq-item.active,
  .faq-section-label,
  .faq-empty {
    grid-column: 1;
  }
}

/* MOBILE */

@media (max-width: 640px) {
  .faq-hero,
  .faq-vault {
    width: calc(100% - 40px);
  }

  .faq-hero {
    padding: 120px 0 42px;
  }

  .faq-hero h1 {
    margin-top: 18px;
    font-size: 46px;
  }

  .faq-hero p {
    font-size: 14px;
  }

  .faq-vault {
    padding-top: 30px;
    padding-bottom: 90px;
  }

  .faq-categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .faq-categories::-webkit-scrollbar {
    display: none;
  }

  .faq-categories button {
    flex: 0 0 auto;
  }

  .faq-search {
    margin-bottom: 34px;
  }

  .faq-section-label {
    margin-top: 30px;
  }

  .faq-question {
    min-height: 78px;
    padding: 17px 18px;
  }

  .faq-question h3 {
    font-size: 17px;
  }

  .faq-answer-inner {
    padding: 0 18px 21px;
  }
}

/* FAQ SECTION HEADING COLOUR */

.faq-section-label h2 {
  color: rgba(212, 166, 86, 0.92);
  font-weight: 600;
}

.faq-section-label {
  border-bottom-color: rgba(212, 166, 86, 0.2);
}