/* ============================================================================
   thg-faq — shared FAQ accordion styles
   ----------------------------------------------------------------------------
   Drop into your global stylesheet. Uses the existing site's Cormorant +
   Manrope and warm-cream palette. Switches cleanly to the new mist/granite
   palette when you adopt the redesign — every value is a CSS custom property
   with a sensible fallback.
   ============================================================================ */

.thg-faq {
  --thg-faq-text: #1a140d;
  --thg-faq-slate: #5f534a;
  --thg-faq-soft: #8a7a6c;
  --thg-faq-hairline: #e5dccf;
  --thg-faq-accent: #b85a00;          /* saffron — kicker + open state */
  --thg-faq-accent-soft: #c79a6a;
  --thg-faq-surface: #ffffff;
  --thg-faq-shadow: 0 24px 60px -28px rgba(26, 20, 13, 0.18);
  --thg-faq-radius: 18px;
  --thg-faq-ease: cubic-bezier(0.4, 0, 0.2, 1);

  --thg-faq-serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --thg-faq-sans: 'Manrope', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  font-family: var(--thg-faq-sans);
  color: var(--thg-faq-text);
  padding: 64px 24px;
  max-width: 920px;
  margin: 0 auto;
}

@media (min-width: 720px) {
  .thg-faq { padding: 96px 48px; }
}

/* Section header */
.thg-faq__head {
  margin-bottom: 40px;
  max-width: 32ch;
}
.thg-faq__kicker {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--thg-faq-accent);
  margin: 0 0 16px;
}
.thg-faq__title {
  font-family: var(--thg-faq-serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0 0 12px;
}
.thg-faq__dek {
  color: var(--thg-faq-slate);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  max-width: 50ch;
}

/* List */
.thg-faq__list {
  display: grid;
  gap: 12px;
}

.thg-faq__item {
  background: var(--thg-faq-surface);
  border: 1px solid var(--thg-faq-hairline);
  border-radius: var(--thg-faq-radius);
  overflow: hidden;
  transition:
    border-color 280ms var(--thg-faq-ease),
    box-shadow 280ms var(--thg-faq-ease);
}
.thg-faq__item:hover {
  border-color: color-mix(in srgb, var(--thg-faq-text) 22%, var(--thg-faq-hairline));
}
.thg-faq__item[open] {
  border-color: var(--thg-faq-text);
  box-shadow: var(--thg-faq-shadow);
}

/* Question (summary) */
.thg-faq__q {
  list-style: none;
  cursor: pointer;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 24px;
  font-family: var(--thg-faq-serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--thg-faq-text);
}
.thg-faq__q::-webkit-details-marker { display: none; }
.thg-faq__q::marker { content: ''; }
@media (min-width: 720px) {
  .thg-faq__q { padding: 28px 32px; font-size: 24px; }
}

/* Chev */
.thg-faq__chev {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--thg-faq-hairline);
  border-radius: 50%;
  color: var(--thg-faq-slate);
  flex-shrink: 0;
  margin-top: 4px;
  transition:
    transform 280ms var(--thg-faq-ease),
    background 280ms var(--thg-faq-ease),
    border-color 280ms var(--thg-faq-ease),
    color 280ms var(--thg-faq-ease);
}
.thg-faq__chev::before {
  content: '';
  width: 12px;
  height: 12px;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transition: background-size 280ms var(--thg-faq-ease);
}
.thg-faq__item[open] .thg-faq__chev {
  background: var(--thg-faq-text);
  border-color: var(--thg-faq-text);
  color: #ffffff;
}
.thg-faq__item[open] .thg-faq__chev::before {
  background-size: 12px 1.5px, 0 12px;
}

/* Answer panel — smooth height via grid-rows trick (no max-height brittleness) */
.thg-faq__a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 480ms var(--thg-faq-ease);
}
.thg-faq__item[open] .thg-faq__a-wrap { grid-template-rows: 1fr; }
.thg-faq__a-inner { overflow: hidden; min-height: 0; }
.thg-faq__a {
  padding: 0 28px 28px;
  border-top: 1px solid var(--thg-faq-hairline);
  margin-top: 4px;
  padding-top: 20px;
}
@media (min-width: 720px) {
  .thg-faq__a { padding: 20px 32px 32px; }
}
.thg-faq__a p {
  margin: 0 0 12px;
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--thg-faq-text);
}
.thg-faq__a p:last-child { margin-bottom: 0; }
.thg-faq__a a {
  color: var(--thg-faq-accent);
  border-bottom: 1px solid currentColor;
  transition: opacity 180ms var(--thg-faq-ease);
}
.thg-faq__a a:hover { opacity: 0.7; }

/* Accessibility */
.thg-faq__q:focus-visible {
  outline: 2px solid var(--thg-faq-accent);
  outline-offset: -2px;
  border-radius: var(--thg-faq-radius);
}

@media (prefers-reduced-motion: reduce) {
  .thg-faq__item,
  .thg-faq__chev,
  .thg-faq__chev::before,
  .thg-faq__a-wrap { transition-duration: 0.001ms !important; }
}
