/* =============================================================
   PAGE-SPECIFIC STYLES (.faq- prefix = "FAQ Page")
   ============================================================= */

/* FAQ HERO ------------------------------------------------ */
.faq-hero {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(100px, 12vw, 160px) clamp(20px, 4vw, 64px) clamp(40px, 6vw, 80px);
  color: var(--cream);
  overflow: hidden;
  background: var(--ink);
  text-align: center;
}

.faq-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.92);
}

.faq-hero > *:not(.faq-hero-bg) {
  position: relative;
  z-index: 1;
}

.faq-breadcrumbs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 240, 232, 0.7);
  margin-bottom: 28px;
}

.faq-breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: rgba(242, 240, 232, 0.4);
}

.faq-breadcrumbs a {
  color: rgba(242, 240, 232, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.faq-breadcrumbs a:hover {
  color: var(--cream);
}

.faq-breadcrumbs li:last-child {
  color: var(--cream);
}

.faq-hero-headline {
  font-size: clamp(56px, 9vw, 140px);
  color: var(--cream);
  max-width: 1100px;
  position: relative;
  padding-bottom: 28px;
}

.faq-hero-headline::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  background: var(--clay);
}

.faq-hero-subhead {
  margin-top: 32px;
  max-width: 580px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(242, 240, 232, 0.85);
}

/* FAQ SECTION PAIR (Two-column grid) ----------------------- */
.faq-section-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.faq-section-pair > section {
  display: flex;
  align-items: flex-start;
}

/* FAQ SECTION LAYOUT ----------------------------------------- */
.faq-section {
  width: 100%;
  padding: clamp(60px, 8vw, 120px) clamp(20px, 4vw, 64px);
}

#gear .faq-section {
  padding-bottom: clamp(20px, 3vw, 40px);
}

.faq-section-head {
  margin-bottom: clamp(32px, 5vw, 48px);
}

.faq-section-head .plus-heading {
  margin-bottom: 10px;
}

.faq-section-head .display {
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.1;
  margin-bottom: 16px;
}

/* FAQ ACCORDION ----------------------------------------- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
}

.bg-charcoal .faq-accordion {
  border-color: var(--line-cream);
}

.faq-accordion-item {
  border-bottom: 1px solid var(--line);
}

.bg-charcoal .faq-accordion-item {
  border-bottom-color: var(--line-cream);
}

.faq-accordion-item:last-child {
  border-bottom: none;
}

.faq-accordion-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: clamp(20px, 3vw, 28px) clamp(20px, 4vw, 32px);
  background: transparent;
  border: 0;
  font-family: 'Archivo Narrow', sans-serif;
  font-weight: 600;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.3;
  text-align: left;
  color: var(--charcoal);
  cursor: pointer;
  transition: background 0.2s ease;
}

.bg-charcoal .faq-accordion-btn {
  color: var(--cream);
}

.faq-accordion-btn:hover {
  background: rgba(36, 36, 33, 0.04);
}

.bg-charcoal .faq-accordion-btn:hover {
  background: rgba(242, 240, 232, 0.06);
}

.faq-accordion-btn .icon {
  font-size: 20px;
  font-weight: 300;
  min-width: 20px;
  text-align: center;
  flex-shrink: 0;
  margin-left: 20px;
  transition: transform 0.25s ease;
}

.faq-accordion-item.open .faq-accordion-btn .icon {
  transform: rotate(45deg);
}

.faq-accordion-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-accordion-item.open .faq-accordion-body {
  max-height: 2000px;
  padding: 0 clamp(20px, 4vw, 32px) clamp(20px, 3vw, 28px);
}

.faq-accordion-body p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(36, 36, 33, 0.85);
}

.bg-charcoal .faq-accordion-body p {
  color: rgba(242, 240, 232, 0.85);
}

.faq-accordion-body p:last-child {
  margin-bottom: 0;
}

.faq-accordion-body ul {
  margin: 0 0 16px;
  padding-left: 24px;
  list-style: disc;
}

.faq-accordion-body li {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(36, 36, 33, 0.85);
}

.bg-charcoal .faq-accordion-body li {
  color: rgba(242, 240, 232, 0.85);
}

.faq-accordion-body li:last-child {
  margin-bottom: 0;
}

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

.bg-charcoal .faq-accordion-body strong {
  color: var(--cream);
}

/* GEAR IMAGE COLUMN ---------------------------------------- */
.faq-gear-image {
  background-size: cover;
  background-position: center;
  min-height: 350px;
}

/* STICKY BOTTOM NAV ---------------------------------------- */
.faq-sticky-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--river-slate-light);
  border-top: 1px solid rgba(138, 149, 163, 0.2);
  box-shadow: 0 -8px 24px rgba(36, 36, 33, 0.18);
  padding: 16px clamp(20px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.faq-sticky-nav-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.faq-sticky-nav-info strong {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--charcoal);
}

.faq-sticky-nav-info span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(36, 36, 33, 0.85);
}

.faq-sticky-nav-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* Add padding to main for sticky nav */
.site-main {
  padding-bottom: clamp(80px, 10vw, 120px);
}

/* RESPONSIVE ---------------------------------------- */
@media (max-width: 1024px) {
  /* Break out of pair structure and reorder sections to maintain checkerboard */
  .site-main {
    display: flex;
    flex-direction: column;
  }

  .faq-section-pair {
    display: contents;
  }

  .faq-hero {
    order: 1;
  }

  /* Pair 1: Capabilities (cream) + Behavior (charcoal) */
  .faq-section-pair:nth-of-type(1) > section:nth-child(1) {
    order: 2;
  }

  .faq-section-pair:nth-of-type(1) > section:nth-child(2) {
    order: 3;
  }

  /* Pair 2: Care (charcoal) + Specialized (cream) - swap to maintain alternation */
  .faq-section-pair:nth-of-type(2) > section:nth-child(2) {
    order: 4;
  }

  .faq-section-pair:nth-of-type(2) > section:nth-child(1) {
    order: 5;
  }

  /* Pair 3: Gear (cream) + Image */
  .faq-section-pair:nth-of-type(3) > section {
    order: 6;
  }

  .faq-gear-image {
    display: none;
  }

  .faq-sticky-nav {
    order: 7;
  }
}

@media (max-width: 768px) {
  .faq-hero {
    min-height: auto;
    padding: clamp(80px, 10vw, 120px) clamp(20px, 4vw, 64px) clamp(40px, 6vw, 80px);
  }

  .faq-section {
    padding: clamp(40px, 6vw, 80px) clamp(16px, 3vw, 24px);
  }

  .faq-sticky-nav {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px clamp(16px, 3vw, 20px);
  }

  .faq-sticky-nav-actions {
    width: 100%;
  }

  .faq-sticky-nav-actions .btn {
    width: 100%;
  }

  .faq-accordion-btn {
    padding: 18px 16px;
  }

  .faq-accordion-item.open .faq-accordion-body {
    padding: 0 16px 18px;
  }
}

@media (max-width: 480px) {
  .faq-section {
    padding: clamp(40px, 6vw, 80px) 0;
  }

  .faq-accordion-btn {
    font-size: 15px;
  }

  .faq-accordion-btn .icon {
    margin-left: 12px;
  }
}
