/* =========================================================
   FAQ page styles — depends on styles.css being loaded first.
   ========================================================= */

/* =========================================================
   Page-scoped: FAQ page unscrolled nav styling.
   The homepage hero has split imagery so the default white nav reads;
   FAQ sits on cream, so before scrolling we need dark-brown text + a single dark-brown divider. */

.page-faq .site-header:not(.is-scrolled) .site-nav__list a,
.page-faq .site-header:not(.is-scrolled) .btn--outline {
  color: rgba(61, 47, 37, 1);
}
.page-faq .site-header:not(.is-scrolled) .btn--outline {
  border-color: rgba(61, 47, 37, 0.55);
}
.page-faq .site-header:not(.is-scrolled) .btn--outline:hover {
  background: rgba(61, 47, 37, 0.08);
}
.page-faq .site-header:not(.is-scrolled) .nav-toggle span {
  background: rgba(61, 47, 37, 1);
}

/* Divider: one continuous dark-brown line in the unscrolled state */
.page-faq .site-header:not(.is-scrolled)::after {
  background: rgba(61, 47, 37, 0.55);
}

/* Page intro */
.faq-intro {
  padding-top: clamp(120px, 16vw, 200px);  /* clears the fixed header */
  padding-bottom: clamp(40px, 5vw, 64px);
  text-align: center;
  background: var(--color-cream);
  color: var(--color-navy);
}
.faq-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: var(--letter-spacing-caps);
  text-transform: uppercase;
  color: rgba(29, 40, 54, 0.65);
  margin-bottom: 18px;
}
.faq-heading {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.15;
  margin-bottom: 18px;
}
.faq-lede {
  max-width: 60ch;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(29, 40, 54, 0.78);
}

/* Accordion list */
.faq-list {
  background: var(--color-cream);
  padding-bottom: clamp(56px, 7vw, 96px);
}
.faq-list__inner {
  max-width: 1080px;
  margin: 0 auto;
}

/* Subtle group heading between accordion blocks. Tracked-caps body face,
   quiet color, no underline or background — never competes with the .faq-question
   Optima text. First group's top margin is collapsed since it sits directly
   under the .faq-intro lede. */
.faq-group + .faq-group {
  margin-top: clamp(40px, 5vw, 56px);
}
.faq-group__heading {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-green);
  margin: 0 0 14px;
  padding-left: 4px;
}

.faq-item {
  border-top: 1px solid rgba(29, 40, 54, 0.14);
}
.faq-item:last-child {
  border-bottom: 1px solid rgba(29, 40, 54, 0.14);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4px;
  background: transparent;
  border: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.3;
  color: var(--color-navy);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}
.faq-question:hover {
  color: rgba(29, 40, 54, 0.7);
}
.faq-question:focus-visible {
  outline: 2px solid rgba(29, 40, 54, 0.35);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Plus / minus icon — rotates 45° to become an × when open */
.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
  transition: transform 0.3s ease;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--color-navy);
  transition: opacity 0.25s ease;
}
.faq-icon::before {
  width: 18px;
  height: 1px;
  transform: translate(-50%, -50%);
}
.faq-icon::after {
  width: 1px;
  height: 18px;
  transform: translate(-50%, -50%);
}
/* Open state: rotate the whole icon + hide the vertical bar so it becomes a minus */
.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

/* Answer panel */
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}
.faq-answer__inner {
  padding: 0 4px 28px;
  max-width: 64ch;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(29, 40, 54, 0.78);
}

/* Bottom CTA strip — quieter than the homepage CTA */
.faq-cta {
  background: var(--color-cream);
  padding-block: clamp(56px, 7vw, 96px);
  text-align: center;
  border-top: 1px solid rgba(29, 40, 54, 0.10);
}
.faq-cta__title {
  font-size: clamp(26px, 3vw, 38px);
  margin-bottom: 16px;
}
.faq-cta__text {
  max-width: 52ch;
  margin: 0 auto 28px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(29, 40, 54, 0.78);
}
