/* ============================================================
   FAQ page — Make Art
   ============================================================ */

/* Hide WP's auto entry-title on FAQ page (137 = faqs). */
body.page-id-137 .entry-header,
body.page-id-137 .entry-title,
body.page-id-137 .wp-block-post-title { display: none !important; }
body.page-id-137 article.page { padding-top: 0 !important; }

/* ===== Hero ===== */
.faq-hero {
	background:
		linear-gradient(135deg, var(--bg-soft) 0%, var(--orange-light) 100%);
	padding: 64px 0 48px;
	border-bottom: 1px solid var(--line-soft);
	text-align: center;
}
.faq-hero__inner { max-width: 720px; margin: 0 auto; }
.faq-hero__eyebrow {
	font-size: 13px; color: var(--orange);
	font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	margin: 0 0 8px;
}
.faq-hero__title {
	font-family: var(--serif);
	font-size: clamp(32px, 5vw, 48px);
	font-weight: 700;
	letter-spacing: -.02em;
	color: var(--ink);
	line-height: 1.1;
	margin: 0 0 16px;
}
.faq-hero__lead {
	font-size: 17px; line-height: 1.7;
	color: var(--ink-soft);
	margin: 0 0 28px;
}
.faq-hero__search {
	display: flex; align-items: center; gap: 8px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-full);
	padding: 6px 6px 6px 18px;
	max-width: 540px; margin: 0 auto;
	box-shadow: var(--shadow-sm);
	color: var(--ink-muted);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.faq-hero__search:focus-within {
	border-color: var(--orange);
	box-shadow: 0 0 0 4px rgba(237, 106, 38, .12);
}
.faq-hero__search input {
	flex: 1; border: 0; background: transparent;
	font-family: var(--sans); font-size: 16px;
	padding: 12px 8px; color: var(--ink);
	min-width: 0;
}
.faq-hero__search input:focus { outline: none; }
.faq-hero__search button {
	padding: 12px 22px;
	background: var(--orange); color: #fff;
	border: 0;
	border-radius: var(--radius-full);
	font-family: var(--sans); font-weight: 700; font-size: 14px;
	cursor: pointer;
	transition: background-color .15s ease;
}
.faq-hero__search button:hover { background: #d65a16; }
.faq-hero__badge {
	font-size: 13px;
	color: var(--ink-soft);
	margin: 16px 0 0;
}

/* ===== Category pills (sticky nav) ===== */
.faq-cats {
	background: #fff;
	border-bottom: 1px solid var(--line-soft);
	position: sticky;
	top: 0;
	z-index: 10;
}
.faq-cats__inner {
	display: flex;
	gap: 8px;
	padding: 16px 24px;
	overflow-x: auto;
	scrollbar-width: thin;
}
.faq-cat {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 16px;
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: var(--radius-full);
	font-family: var(--sans);
	font-size: 14px; font-weight: 600;
	color: var(--ink-soft);
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
	flex-shrink: 0;
	min-height: 38px;
}
.faq-cat:hover {
	background: #fff; color: var(--ink);
	border-color: var(--ink-muted);
}
.faq-cat:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.faq-cat.is-active {
	background: var(--orange); color: #fff;
	border-color: var(--orange);
	box-shadow: 0 4px 12px -4px rgba(237, 106, 38, .4);
}
.faq-cat__count {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 22px; height: 20px; padding: 0 6px;
	background: rgba(0, 0, 0, .06);
	border-radius: var(--radius-full);
	font-size: 11px; font-weight: 700;
}
.faq-cat.is-active .faq-cat__count {
	background: rgba(255, 255, 255, .25);
	color: #fff;
}

/* ===== Body / accordion ===== */
.faq-body {
	background: var(--bg);
	padding: 48px 0 64px;
}
.faq-group { margin-bottom: 56px; scroll-margin-top: 110px; }
.faq-group:last-child { margin-bottom: 0; }
.faq-group__title {
	font-family: var(--serif);
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--ink);
	margin: 0 0 20px;
	padding-bottom: 14px;
	border-bottom: 2px solid var(--orange-light);
}
.faq-list {
	list-style: none; padding: 0; margin: 0;
	display: flex; flex-direction: column; gap: 12px;
}
.faq-item {
	background: #fff;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.faq-item:has(.faq-item__q[aria-expanded="true"]),
.faq-item.is-open {
	border-color: var(--orange);
	box-shadow: 0 4px 16px -8px rgba(237, 106, 38, .25);
}

.faq-item__q {
	width: 100%;
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	background: transparent;
	border: 0;
	font-family: var(--sans);
	font-size: 16px;
	font-weight: 700;
	color: var(--ink);
	text-align: start;
	cursor: pointer;
	transition: background-color .15s ease;
}
.faq-item__q:hover { background: var(--bg-soft); }
.faq-item__q:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.faq-item__q-text { flex: 1; line-height: 1.45; }
.faq-item__chev {
	display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px;
	background: var(--bg-soft);
	border-radius: var(--radius-full);
	color: var(--ink-soft);
	flex-shrink: 0;
	transition: transform .25s var(--ease-out, ease-out), background-color .15s ease, color .15s ease;
}
.faq-item__q[aria-expanded="true"] .faq-item__chev {
	transform: rotate(180deg);
	background: var(--orange);
	color: #fff;
}

.faq-item__a {
	border-top: 1px solid var(--line-soft);
	background: var(--bg-soft);
}
.faq-item__a-inner {
	padding: 18px 22px 22px;
	font-size: 15px;
	line-height: 1.75;
	color: var(--ink-soft);
}
.faq-item__a-inner p { margin: 0 0 12px; }
.faq-item__a-inner p:last-child { margin: 0; }
.faq-item__a-inner a { color: var(--orange); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.faq-item__a-inner a:hover { text-decoration: none; }
.faq-item__a-inner ul, .faq-item__a-inner ol { padding-inline-start: 22px; margin: 8px 0; }

/* ===== Help CTA ===== */
.faq-help {
	background: linear-gradient(135deg, var(--ink) 0%, #2c2722 100%);
	color: #fff;
	padding: 56px 0;
}
.faq-help__inner {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 32px;
	align-items: center;
}
.faq-help h2 {
	font-family: var(--serif);
	font-size: 28px; font-weight: 700;
	color: #fff; margin: 0 0 6px;
}
.faq-help p { color: rgba(255, 255, 255, .75); margin: 0; font-size: 15px; }
.faq-help__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.faq-help .btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 14px 22px;
	border-radius: var(--radius-full);
	font-family: var(--sans);
	font-weight: 700; font-size: 15px;
	text-decoration: none;
	transition: background-color .15s ease, transform .15s ease, color .15s ease;
	min-height: 48px;
}
.faq-help .btn-primary {
	background: var(--orange); color: #fff;
	box-shadow: 0 6px 16px -6px rgba(237, 106, 38, .55);
}
.faq-help .btn-primary:hover { background: #d65a16; transform: translateY(-1px); }
.faq-help .btn-ghost {
	background: transparent; color: #fff;
	border: 1px solid rgba(255, 255, 255, .25);
}
.faq-help .btn-ghost:hover {
	background: rgba(255, 255, 255, .1);
	border-color: rgba(255, 255, 255, .5);
}

/* Fallback when content has no h2/h3 structure — show raw page content. */
.faq-fallback {
	max-width: 760px; margin: 0 auto;
	font-size: 16px; line-height: 1.75; color: var(--ink-soft);
}
.faq-fallback h2 { font-family: var(--serif); font-size: 24px; color: var(--ink); margin: 24px 0 8px; }
.faq-fallback h3 { font-family: var(--serif); font-size: 18px; color: var(--ink); margin: 18px 0 6px; }

/* ===== Responsive ===== */
@media (max-width: 720px) {
	.faq-hero { padding: 48px 0 32px; }
	.faq-hero__search { flex-wrap: wrap; padding: 8px; border-radius: var(--radius-lg); }
	.faq-hero__search input { width: 100%; padding: 10px; }
	.faq-hero__search button { width: 100%; padding: 12px; }
	.faq-help__inner { grid-template-columns: 1fr; }
	.faq-item__q { padding: 16px 18px; font-size: 15px; }
	.faq-item__a-inner { padding: 14px 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
	.faq-item, .faq-item__chev, .faq-cat { transition: none !important; }
}
