/* ============================================================
   FAQ — page CSS
   Scope: .hcg-faq (page-faq.php). Conditionally enqueued in
   hcg_assets() based on the page slug. Token-based only — no
   hardcoded surface/text colours.

   Reused from theme.css (NOT redefined here):
   .hcg-eyebrow, .hcg-grad

   Pattern: hero (eyebrow + gradient h1 + subtitle) + auto-converted
   accordion (H3 questions become <details>/<summary> pairs at render
   time via inc/faq.php; H2 stays as a section label above clusters).
   ============================================================ */

.hcg-faq {
	max-width: 880px;
	margin: 0 auto;
	padding: 96px 28px;
}

/* ---------- Hero ---------- */
.hcg-faq__head {
	text-align: center;
	margin-bottom: 64px;
}

.hcg-faq__head .hcg-eyebrow {
	margin-bottom: 18px;
	color: var(--hcg-c1);
}

.hcg-faq__title {
	font-family: var(--hcg-font-heading);
	font-weight: 800;
	font-size: clamp(2.4rem, 5vw, 3.6rem);
	line-height: 1.05;
	letter-spacing: -.025em;
	margin: 0;
	color: var(--hcg-text);
}

.hcg-faq__sub {
	font-family: var(--hcg-font-heading);
	font-weight: 400;
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
	line-height: 1.45;
	color: var(--hcg-text-2);
	max-width: 56ch;
	margin: 22px auto 0;
}

/* ---------- Body ---------- */
.hcg-faq__body {
	margin-top: 16px;
}

/* H2 — section label above each cluster of questions */
.hcg-faq__body h2 {
	font-family: var(--hcg-font-heading);
	font-weight: 800;
	font-size: clamp(1.4rem, 2.2vw, 1.9rem);
	letter-spacing: -.015em;
	line-height: 1.15;
	color: var(--hcg-text);
	margin: 56px 0 20px;
}

.hcg-faq__body h2:first-child {
	margin-top: 0;
}

/* Plain H1 lingering from old content gets toned down so it doesn't
   compete with the page title above. */
.hcg-faq__body h1 {
	display: none;
}

/* ---------- Accordion item ---------- */
.hcg-faq__item {
	border-top: 1px solid var(--hcg-border);
	padding: 22px 0;
}

.hcg-faq__item:last-of-type {
	border-bottom: 1px solid var(--hcg-border);
}

/* Question (the clickable summary). Reset native chevrons so we can
   draw our own with a CSS pseudo-element. */
.hcg-faq__q {
	font-family: var(--hcg-font-heading);
	font-weight: 700;
	font-size: clamp(1.05rem, 1.6vw, 1.2rem);
	line-height: 1.3;
	color: var(--hcg-text);
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	transition: color .15s ease;
}

.hcg-faq__q::-webkit-details-marker { display: none; }
.hcg-faq__q::marker { content: ""; }

/* +/− indicator that flips with the open state. */
.hcg-faq__q::after {
	content: "+";
	flex: 0 0 auto;
	font-family: var(--hcg-font-mono);
	font-size: 1.5rem;
	line-height: 1;
	color: var(--hcg-muted);
	transform: translateY(2px);
	transition: transform .2s ease, color .2s ease;
}

.hcg-faq__item[open] .hcg-faq__q::after {
	content: "−";
	color: var(--hcg-c1);
}

.hcg-faq__q:hover {
	color: var(--hcg-c1);
}

.hcg-faq__q:focus-visible {
	outline: 2px solid var(--hcg-c1);
	outline-offset: 4px;
	border-radius: 4px;
}

/* Answer body */
.hcg-faq__a {
	margin-top: 14px;
	color: var(--hcg-text-2);
	font-size: 1rem;
	line-height: 1.7;
}

.hcg-faq__a p {
	margin: 0 0 12px;
}

.hcg-faq__a p:last-child {
	margin-bottom: 0;
}

.hcg-faq__a ul,
.hcg-faq__a ol {
	margin: 10px 0 12px;
	padding-left: 24px;
}

.hcg-faq__a li {
	margin: 6px 0;
}

.hcg-faq__a a {
	color: var(--hcg-c1);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.hcg-faq__a a:hover {
	text-decoration: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
	.hcg-faq {
		padding: 64px 20px;
	}
	.hcg-faq__head {
		margin-bottom: 40px;
	}
	.hcg-faq__body h2 {
		margin-top: 40px;
	}
}
