/* ======================================================================
   Hustob Clothier · FAQ page
   Editorial split with TOC + native <details> accordion
   ====================================================================== */

.hc-faq {
  width: min(100% - 2rem, var(--hc-max-width));
  margin: clamp(1.5rem, 3vw, 2.5rem) auto clamp(4rem, 8vw, 6rem);
}

/* Page header */
.hc-faq__head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--hc-border-soft);
}
.hc-faq__eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  margin: 0 0 .8rem;
  color: var(--hc-muted);
  font-family: var(--hc-font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.hc-faq__eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--hc-accent);
}
.hc-faq__title {
  margin: 0 0 .85rem;
  color: var(--hc-ink);
  font-family: var(--hc-font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.5vw, 5.4rem);
  line-height: 1;
  letter-spacing: -.025em;
  font-variation-settings: "opsz" 144, "wght" 400, "SOFT" 30;
}
.hc-faq__title em {
  font-style: italic;
  color: var(--hc-accent-2);
  font-variation-settings: "opsz" 144, "wght" 360, "SOFT" 100;
}
.hc-faq__lede {
  margin: 0;
  max-width: 60ch;
  color: var(--hc-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Layout */
.hc-faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

/* TOC */
.hc-faq__toc {
  position: sticky;
  top: clamp(96px, 12vh, 140px);
  display: flex; flex-direction: column;
  gap: 0;
  counter-reset: toc;
}
.hc-faq__toc-title {
  margin: 0 0 .65rem;
  color: var(--hc-muted);
  font-family: var(--hc-font-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.hc-faq__toc a {
  display: flex; align-items: baseline; gap: .65rem;
  padding: .65rem 0;
  color: var(--hc-text);
  font-size: .94rem;
  line-height: 1.45;
  border-bottom: 1px solid var(--hc-border-soft);
  transition: color var(--hc-dur) var(--hc-ease);
}
.hc-faq__toc a::before {
  content: counter(toc, decimal-leading-zero);
  counter-increment: toc;
  flex-shrink: 0;
  color: var(--hc-faint);
  font-family: var(--hc-font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
}
.hc-faq__toc a:hover { color: var(--hc-accent-2); }

/* Sections */
.hc-faq__sections {
  display: flex; flex-direction: column;
  gap: .65rem;
}
.hc-faq__sections details {
  border: 1px solid var(--hc-border-soft);
  border-radius: 14px;
  background: var(--hc-cream);
  overflow: hidden;
  transition: border-color var(--hc-dur) var(--hc-ease), box-shadow var(--hc-dur) var(--hc-ease);
}
.hc-faq__sections details[open] {
  border-color: rgba(15,91,74,.32);
  box-shadow: var(--hc-shadow-sm);
}
.hc-faq__sections summary {
  cursor: pointer;
  padding: 1.2rem 3rem 1.2rem 1.5rem;
  list-style: none;
  position: relative;
  color: var(--hc-ink);
  font-family: var(--hc-font-display);
  font-weight: 400;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.3;
  letter-spacing: -.012em;
  font-variation-settings: "opsz" 36, "wght" 460;
  transition: color var(--hc-dur) var(--hc-ease);
}
.hc-faq__sections summary::-webkit-details-marker { display: none; }
.hc-faq__sections summary::after {
  content: "";
  position: absolute;
  right: 1.5rem; top: 50%;
  width: 12px; height: 12px;
  border-right: 1.5px solid var(--hc-ink);
  border-bottom: 1.5px solid var(--hc-ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--hc-dur) var(--hc-ease);
}
.hc-faq__sections details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.hc-faq__sections summary:hover { color: var(--hc-accent-2); }
.hc-faq__sections details > *:not(summary) {
  padding: 0 1.5rem 1.5rem;
  color: var(--hc-text);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}
.hc-faq__sections details > p:not(:first-of-type),
.hc-faq__sections details > ul:not(:first-of-type) {
  padding-top: 0;
}
.hc-faq__sections details ul {
  list-style: none;
  margin: 0;
  padding: 0 1.5rem 1.5rem 1.5rem;
}
.hc-faq__sections details ul li {
  position: relative;
  padding: .35rem 0 .35rem 1.4rem;
  line-height: 1.55;
}
.hc-faq__sections details ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--hc-accent);
}
.hc-faq__sections details a {
  color: var(--hc-accent-2);
  text-decoration: underline;
  text-underline-offset: .25em;
  text-decoration-thickness: 1px;
}
.hc-faq__sections details a:hover { color: var(--hc-ink); }

/* "Still have questions" CTA card */
.hc-faq__cta {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background:
    radial-gradient(ellipse at 90% 10%, rgba(200,155,60,.22), transparent 50%),
    var(--hc-ink);
  color: #fff;
  border-radius: 22px;
}
.hc-faq__cta h2 {
  margin: 0 0 1rem;
  color: #fff;
  font-family: var(--hc-font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -.018em;
  font-variation-settings: "opsz" 96, "wght" 420, "SOFT" 30;
}
.hc-faq__cta h2 em {
  font-style: italic;
  color: var(--hc-gold-soft);
  font-variation-settings: "opsz" 144, "wght" 360, "SOFT" 100;
}
.hc-faq__cta p { margin: 0 0 1.25rem; color: rgba(255,255,255,.78); max-width: 60ch; }
.hc-faq__cta-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.hc-faq__cta-list li {
  padding: .85rem 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hc-faq__cta-list li dt {
  margin: 0 0 .25rem;
  color: rgba(255,255,255,.62);
  font-family: var(--hc-font-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.hc-faq__cta-list li dd {
  margin: 0;
  color: var(--hc-gold-soft);
  font-family: var(--hc-font-display);
  font-weight: 400;
  font-size: 1.04rem;
  letter-spacing: -.01em;
  font-variation-settings: "opsz" 36, "wght" 460;
}
.hc-faq__cta-list a { color: inherit; transition: color var(--hc-dur) var(--hc-ease); }
.hc-faq__cta-list a:hover { color: #fff; }

/* Responsive */
@media (max-width: 880px) {
  .hc-faq__grid { grid-template-columns: 1fr; }
  .hc-faq__toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
    counter-reset: toc;
  }
  .hc-faq__toc-title { width: 100%; }
  .hc-faq__toc a {
    flex: 0 0 auto;
    padding: .5rem .9rem;
    border: 1px solid var(--hc-border-soft);
    border-radius: 999px;
    font-size: .82rem;
    background: var(--hc-cream);
  }
  .hc-faq__toc a::before { font-size: .6rem; }
}
