/* Lane B4: FAQ + Contact.
   Tokens are the COPY-DECK.md section 1 names, with deck hex values as
   fallbacks, so this sheet also renders before the foundation sheet lands.
   Mobile-first: base rules are the 390px layout.
   Tightening 2026-11-12: the footer rules moved to 00-tokens-base.css §12
   (R-1, so the 404 page — which loads only the base sheet — gets them);
   the withheld contact-form CSS and the duplicate .mobile-bar system were
   removed as dead code (see BUILD-A). */

/* ---------- Shared bits for this lane ---------- */

.hf-eyebrow {
  margin: 0 0 14px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hf-eyebrow--dark {
  color: var(--accent, #C9A45C);
}

/* ---------- FAQ (immediately before contact) ---------- */

.hf-faq {
  background: var(--surface, #0B1526);
  color: var(--text, #F5F5F7);
  padding: 56px 24px;
}

.hf-faq__inner {
  max-width: var(--width-content, 980px);
  margin: 0 auto;
}

.hf-faq__header {
  max-width: var(--width-narrow, 680px);
  margin: 0 0 40px;
}

.hf-faq__title {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 2.05rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--text, #F5F5F7);
}

.hf-faq__list {
  max-width: var(--width-narrow, 680px);
}

.hf-faq__item {
  background: var(--ground, #060D18);
  border: 1px solid var(--inset, #122239);
  border-radius: var(--radius, 10px);
  margin: 0 0 12px;
}

.hf-faq__item:last-child {
  margin-bottom: 0;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 14px 18px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text, #F5F5F7);
  cursor: pointer;
  list-style: none;
}

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

.faq-q::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent, #C9A45C);
}

.hf-faq__item[open] .faq-q::after {
  content: "−";
}

.faq-q:focus-visible {
  outline: 2px solid var(--accent, #C9A45C);
  outline-offset: 3px;
  border-radius: var(--radius, 10px);
}

.faq-a {
  padding: 0 18px 20px;
  max-width: 62ch; /* migrated from 00-tokens-base.css §11 in the R-2 cleanup —
                      the one live declaration the removed button-accordion
                      block carried, kept so FAQ rendering is pixel-identical */
}

.faq-a p {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted, #A8B3C7);
}

/* ---------- Contact (deck section 2.7, ground band) ---------- */

.hf-contact {
  background: var(--ground, #060D18);
  color: var(--text, #F5F5F7);
  padding: 56px 24px;
}

.hf-contact__inner {
  max-width: var(--width-narrow, 680px);
  margin: 0 auto;
}

.hf-contact__header {
  margin: 0 0 40px;
}

.hf-contact__title {
  margin: 0 0 16px;
  font-family: Fraunces, Georgia, serif;
  font-size: 2.05rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--text, #F5F5F7);
}

.hf-contact__body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted, #A8B3C7);
}

.hf-contact__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hf-contact__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.hf-contact__button--primary {
  background: var(--cta, #E8C476);
  color: var(--cta-text, #241B06);
}

.hf-contact__button--primary:hover,
.hf-contact__button--primary:focus-visible {
  background: var(--cta-hover, #DCC084);
}

.hf-contact__button {
  max-width: 100%;
  transform: none;
}

.hf-contact__button--primary:active {
  background: var(--accent, #C9A45C);
}

.hf-contact__button--secondary:active {
  background: rgba(201, 164, 92, 0.10);
}

.hf-contact__button--secondary {
  background: transparent;
  border: 1px solid var(--accent, #C9A45C);
  color: var(--text, #F5F5F7);
  min-height: 52px;
}

.hf-contact__button:focus-visible,
.hf-contact__inline-link:focus-visible {
  outline: 2px solid var(--accent, #C9A45C);
  outline-offset: 3px;
}

.hf-contact__inline-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hf-contact__write-line,
.hf-contact__concerns {
  margin: 16px 0 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted, #A8B3C7);
}

.hf-contact__inline-link {
  color: var(--cta-hover, #DCC084);
  text-decoration: none;
  overflow-wrap: anywhere;
}

/* Contact-form CSS removed 2026-11-12 (tightening cleanup): the form itself
   stays withheld until a delivery route is verified (see the note in
   index.html); its scaffolding rules (.hf-contact__form / __field / __label /
   __input / __submit and the unused __text-line / __text-link) were referenced
   by neither page and return together with the form. */

.hf-contact__closing {
  margin: 48px 0 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.26rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text, #F5F5F7);
}

.hf-contact__concerns {
  font-size: 0.92rem;
}

/* ---------- Footer (deck section 2.8) ----------
   Moved to 00-tokens-base.css §12 (tightening R-1, 2026-11-12) so the 404
   page — which loads only the base sheet — gets the shared footer. The one
   contact rule that shared a group with the footer rules stays here: */

.hf-contact__actions {
  font-variant-numeric: tabular-nums;
}

/* ---------- Sticky mobile bar ----------
   The duplicate .mobile-bar system that stood here was removed 2026-11-12:
   no page references it — shipped markup uses .sticky-bar, styled in
   00-tokens-base.css §13. */

/* ---------- Wider viewports ---------- */

@media (min-width: 561px) {
  .hf-faq,
  .hf-contact {
    padding: 72px 24px;
  }

  .faq-q {
    padding: 16px 20px;
  }

  .faq-a {
    padding: 0 20px 22px;
  }

  .hf-contact__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* The min-width:821px block that stood here held only footer rules (moved
   to 00-tokens-base.css §12 with the rest of the footer, R-1) and the
   .mobile-bar hide rule (removed with that system). */

/* Refresh polish 2026-11-11 (DESIGN 2.6): section titles step down on small screens. */
@media (max-width: 560px) {
  .hf-faq__title, .hf-contact__title { font-size: 1.75rem; }
}
