/* ========================================
   FAQ PAGE — Deck&Co
   Scoped under .deckco-faq
   ======================================== */

/* ---- PAGE HERO (Compact, with optional bg image) ---- */

.deckco-faq .page-hero--compact {
  position: relative;
  padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 6vw, 80px);
  background: var(--forest-dark);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.deckco-faq .page-hero__bg-solid {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    var(--forest-dark) 0%,
    var(--forest) 50%,
    rgba(58,78,57,0.95) 100%
  );
}

.deckco-faq .page-hero--compact[style*="background-image"] .page-hero__bg-solid {
  opacity: 0.82;
}

.deckco-faq .page-hero__bg-solid::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.3) 40px,
    rgba(255,255,255,0.3) 41px
  );
}

.deckco-faq .page-hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.deckco-faq .page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.deckco-faq .page-hero__breadcrumb a {
  color: rgba(255,255,255,0.5);
  transition: color 0.3s var(--ease);
}

.deckco-faq .page-hero__breadcrumb a:hover {
  color: rgba(255,255,255,0.8);
}

.deckco-faq .page-hero__breadcrumb svg {
  width: 12px;
  height: 12px;
  opacity: 0.4;
}

.deckco-faq .page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.deckco-faq .page-hero__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--sand-light);
}

.deckco-faq .page-hero__subtitle {
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
}

/* ---- FAQ NAV (Quick jump) ---- */

.deckco-faq .faq__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 32px 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 56px;
}

/* JS-powered sticky clone */
.faq__nav--fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px max(24px, calc((100% - 1280px) / 2 + 24px));
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transform: translateY(-100%);
  transition: transform 0.3s var(--ease);
}

.faq__nav--fixed.visible {
  transform: translateY(0);
}

.deckco-faq .faq__nav-link,
.faq__nav--fixed .faq__nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--charcoal-soft);
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.25s var(--ease);
  text-decoration: none;
}

.deckco-faq .faq__nav-link:hover,
.deckco-faq .faq__nav-link.active,
.faq__nav--fixed .faq__nav-link:hover,
.faq__nav--fixed .faq__nav-link.active {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}

/* ---- FAQ MAIN SECTION ---- */

.deckco-faq .faq {
  padding: var(--section-pad) 0;
  background: var(--warm-white);
}

/* ---- FAQ GROUP ---- */

.deckco-faq .faq__group {
  margin-bottom: 56px;
  scroll-margin-top: 200px;
}

.deckco-faq .faq__group:last-child {
  margin-bottom: 0;
}

.deckco-faq .faq__group-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.deckco-faq .faq__group-icon {
  width: 26px;
  height: 26px;
  color: var(--forest);
  flex-shrink: 0;
  position: relative;
  top: 5px;
}

/* ---- FAQ ITEM (Accordion) ---- */

.deckco-faq .faq__item {
  border-bottom: 1px solid var(--border);
}

.deckco-faq .faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--charcoal);
  cursor: pointer;
  list-style: none;
  transition: color 0.25s var(--ease);
}

.deckco-faq .faq__question::-webkit-details-marker {
  display: none;
}

.deckco-faq .faq__question:hover {
  color: var(--forest);
}

/* ---- SVG Toggle Icon ---- */

.deckco-faq .faq__toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: all 0.3s var(--ease);
}

.deckco-faq .faq__toggle-icon {
  width: 14px;
  height: 14px;
  color: var(--forest);
  transition: color 0.3s var(--ease);
}

.deckco-faq .faq__toggle-minus {
  display: none;
}

.deckco-faq .faq__item[open] .faq__toggle {
  background: var(--forest);
  border-color: var(--forest);
  transform: rotate(180deg);
}

.deckco-faq .faq__item[open] .faq__toggle-icon {
  color: #fff;
}

.deckco-faq .faq__item[open] .faq__toggle-plus {
  display: none;
}

.deckco-faq .faq__item[open] .faq__toggle-minus {
  display: block;
}

.deckco-faq .faq__question:hover .faq__toggle {
  border-color: var(--forest);
}

/* ---- FAQ Answer ---- */

.deckco-faq .faq__answer {
  padding: 0 0 24px;
  max-width: 720px;
}

.deckco-faq .faq__answer p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--charcoal-soft);
  margin-bottom: 12px;
}

.deckco-faq .faq__answer p:last-child {
  margin-bottom: 0;
}

.deckco-faq .faq__answer a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.25s var(--ease);
}

.deckco-faq .faq__answer a:hover {
  color: var(--forest-dark);
}

.deckco-faq .faq__answer strong {
  color: var(--charcoal);
  font-weight: 600;
}

.deckco-faq .faq__answer ul {
  list-style: none;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.deckco-faq .faq__answer ul li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--charcoal-soft);
  padding-left: 26px;
  position: relative;
}

.deckco-faq .faq__answer ul li::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--forest);
  position: absolute;
  left: 0;
  top: 12px;
}

/* ---- FAQ CTA ---- */

.deckco-faq .faq-cta {
  padding: var(--section-pad-sm) 0;
  background: var(--sand-pale);
}

.deckco-faq .faq-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 6vw, 80px);
}

.deckco-faq .faq-cta__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 300;
  color: var(--charcoal);
  margin: 8px 0 12px;
}

.deckco-faq .faq-cta__body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 460px;
}

.deckco-faq .faq-cta__actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .deckco-faq .page-hero--compact {
    padding: clamp(48px, 8vw, 80px) 0 clamp(32px, 5vw, 48px);
  }

  .deckco-faq .page-hero__title {
    font-size: clamp(28px, 7vw, 40px);
  }

  .deckco-faq .faq__nav {
    gap: 8px;
    padding: 24px 0 32px;
    margin-bottom: 40px;
  }

  .deckco-faq .faq__nav-link,
  .faq__nav--fixed .faq__nav-link {
    font-size: 12px;
    padding: 6px 14px;
  }

  .faq__nav--fixed {
    gap: 8px;
    padding: 12px 16px;
  }

  .deckco-faq .faq__group {
    margin-bottom: 40px;
  }

  .deckco-faq .faq__group-title {
    font-size: clamp(18px, 5vw, 24px);
    gap: 10px;
  }

  .deckco-faq .faq__group-icon {
    width: 20px;
    height: 20px;
    top: 4px;
  }

  .deckco-faq .faq__question {
    font-size: 14px;
    padding: 18px 0;
    gap: 16px;
  }

  .deckco-faq .faq__toggle {
    width: 24px;
    height: 24px;
  }

  .deckco-faq .faq__toggle-icon {
    width: 12px;
    height: 12px;
  }

  .deckco-faq .faq__answer p,
  .deckco-faq .faq__answer ul li {
    font-size: 14px;
    line-height: 1.7;
  }

  .deckco-faq .faq__answer ul li::before {
    top: 10px;
  }

  .deckco-faq .faq-cta__inner {
    flex-direction: column;
    text-align: center;
  }

  .deckco-faq .faq-cta__body {
    max-width: none;
  }

  .deckco-faq .faq-cta__actions {
    flex-direction: column;
    width: 100%;
  }

  .deckco-faq .faq-cta__actions .btn {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .deckco-faq .faq__nav {
    gap: 6px;
  }

  .deckco-faq .faq__nav-link {
    font-size: 11px;
    padding: 5px 12px;
  }
}
