/* FAQ section: a quiet, pattern-free companion to the Blog section. */
section.faq-section {
  --faq-bg: #f7f4eb;
  --faq-card: #ffffff;
  --faq-ink: #1c1917;
  --faq-muted: #57534e;
  /* Slightly darker than the brand purple. As small text on the cream panel the
     brand value measured 4.24:1, under the 4.5:1 minimum, and it is used four
     times that way — the kicker, the index badge, the contact link and the answer
     link. Darkening the one token fixes all four, and the single place it is used
     as a background only gains contrast against its white text. */
  --faq-accent: #1c1917;
  --faq-border: rgba(28, 25, 23, 0.1);
  position: relative;
  display: block !important;
  min-height: 0 !important;
  padding: 6.5rem 0 !important;
  overflow: hidden;
  color: var(--faq-ink);
  background: var(--faq-bg) !important;
  scroll-margin-top: 100px;
}

section.faq-section::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 8% 12%, rgba(28, 25, 23, 0.09), transparent 26rem),
    radial-gradient(circle at 92% 88%, rgba(15, 159, 154, 0.07), transparent 24rem);
}

.faq-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1140px;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5.5rem);
}

.faq-intro {
  position: sticky;
  top: 112px;
  max-width: 430px;
}



.faq-intro h2 {
  max-width: 420px;
  margin: 1rem 0 0;
  color: var(--faq-ink);
  font-family: var(--font-outfit), "Outfit", sans-serif;
  font-size: clamp(2.35rem, 5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.98;
  /* Same cream letterpress as the other section titles. This heading predates
     the overhead--top-1 system, so it does not inherit it. */
  text-shadow: 3px 3px 0 var(--cream-shadow-near), 6px 6px 0 var(--cream-shadow-far);
}

.faq-intro p {
  max-width: 390px;
  margin: 1.25rem 0 0;
  color: var(--faq-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.faq-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.5rem;
  /* 23px tall as it stood, a shade under the 24px minimum target size. The
     padding lifts the box to about 29px without moving the text. */
  padding-block: 0.2rem;
  color: var(--faq-accent);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.faq-contact-link:hover,
.faq-contact-link:focus-visible {
  gap: 0.9rem;
  color: var(--accent-dark, #0c0a09);
}

.faq-contact-link i {
  font-size: 0.8rem;
}

.faq-list {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  min-height: var(--faq-reserved-height, 650px);
}

.faq-item {
  overflow: hidden;
  background: var(--faq-card);
  border: 1px solid var(--faq-border);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(28, 25, 23, 0.045);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.faq-item:hover,
.faq-item[open] {
  border-color: rgba(28, 25, 23, 0.28);
  box-shadow: 0 16px 36px rgba(28, 25, 23, 0.08);
}

.faq-item[open] {
  transform: translateY(-1px);
}

.faq-item summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:focus-visible {
  outline: 3px solid rgba(28, 25, 23, 0.35);
  outline-offset: -3px;
  border-radius: 18px;
}

.faq-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: var(--faq-accent);
  background: rgba(28, 25, 23, 0.08);
  border-radius: 50%;
  font-family: var(--font-outfit), "Outfit", sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.faq-question {
  color: var(--faq-ink);
  font-family: var(--font-outfit), "Outfit", sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 700;
  line-height: 1.35;
}

.faq-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  color: var(--faq-muted);
  background: rgba(28, 25, 23, 0.05);
  border-radius: 50%;
  font-size: 0.75rem;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.faq-item[open] .faq-toggle {
  color: #ffffff;
  background: var(--faq-accent);
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.35rem 1.4rem 4.1rem;
}

.faq-answer p {
  max-width: 680px;
  margin: 0;
  color: var(--faq-muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

.faq-answer a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  /* Same 23px shortfall as the contact link above. */
  padding-block: 0.2rem;
  color: var(--faq-accent);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.faq-answer a:hover,
.faq-answer a:focus-visible {
  color: var(--accent-dark, #0c0a09);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.faq-answer a i {
  font-size: 0.72rem;
}

@media (max-width: 991px) {
  section.faq-section {
    padding: 5rem 0 !important;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .faq-intro {
    position: static;
    max-width: 650px;
  }

  .faq-intro h2,
  .faq-intro p {
    max-width: 650px;
  }
}

@media (max-width: 575px) {
  section.faq-section {
    padding: 4rem 0 !important;
  }

  .faq-item summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    padding: 1rem;
  }

  .faq-index {
    width: 1.8rem;
    height: 1.8rem;
    flex-basis: 1.8rem;
    font-size: 0.6875rem;
  }

  .faq-toggle {
    width: 2.25rem;
    height: 2.25rem;
    flex-basis: 2.25rem;
  }

  .faq-question {
    font-size: 0.98rem;
  }

  .faq-answer {
    padding: 0 1rem 1.15rem;
  }

  .faq-answer p {
    font-size: 0.92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-toggle,
  .faq-contact-link {
    transition: none;
  }
}
