/*
 * FAQ page — mirrors src/components/static-pages/FAQPage.tsx + src/components/FAQ.tsx.
 * Loaded only on the "faq" page (see functions.php: is_page('faq')).
 */

/* ── Hero (dark) ── */
.faq-hero {
	position: relative;
	overflow: hidden;
	background: var(--color-dark-950);
	padding: 8rem 0 5rem;
}
@media (min-width: 768px) {
	.faq-hero { padding: 10rem 0 7rem; }
}
.faq-hero__radial { position: absolute; border-radius: 999px; pointer-events: none; }
.faq-hero__radial--a { top: 0; left: 33%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(0,168,90,.15), transparent 70%); }
.faq-hero__radial--b { bottom: 0; right: 25%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(34,197,94,.1), transparent 70%); }
.faq-hero__grid {
	position: absolute; inset: 0;
	background-image: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
	background-size: 64px 64px;
}
.faq-hero__inner { position: relative; z-index: 2; text-align: center; }
.faq-hero__badge {
	display: inline-flex; align-items: center; gap: .5rem;
	padding: .5rem 1rem; margin-bottom: 1.5rem;
	border-radius: 999px; border: 1px solid rgba(255,255,255,.08);
	background: rgba(255,255,255,.06); backdrop-filter: blur(6px);
	color: rgba(255,255,255,.7); font-size: .875rem;
}
.faq-hero__badge svg { color: var(--color-primary); flex-shrink: 0; }
.faq-hero__title {
	max-width: 900px; margin: 0 auto 1.5rem;
	color: #fff; font-weight: 800; letter-spacing: -.02em;
	font-size: clamp(2rem, 5vw, 3.75rem); line-height: 1.15;
}
.faq-hero__subtitle {
	max-width: 760px; margin: 0 auto;
	color: rgba(255,255,255,.6); font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.65;
}

/* ── Body ── */
.faq-body {
	position: relative; overflow: hidden;
	padding: 2.5rem 0;
	background: #f8faf9;
}
@media (min-width: 768px) { .faq-body { padding: 4rem 0; } }
.faq-body__radial {
	position: absolute; top: 0; left: 33%; width: 500px; height: 300px;
	background: radial-gradient(circle, rgba(0,168,90,.015), transparent 70%);
	pointer-events: none;
}

.faq-section { margin-bottom: 3rem; position: relative; z-index: 1; }
.faq-section:last-child { margin-bottom: 0; }
.faq-section__title {
	display: flex; align-items: center; gap: .75rem;
	margin: 0 0 1rem;
	font-size: 1.125rem; font-weight: 700; color: var(--color-dark-900);
}
@media (min-width: 768px) { .faq-section__title { font-size: 1.25rem; } }
.faq-section__badge {
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
	width: 2rem; height: 2rem; border-radius: .5rem;
	background: rgba(0,168,90,.08); color: var(--color-primary);
	font-size: .875rem; font-weight: 900;
}

.faq-card {
	background: #fff; border-radius: var(--radius-3xl);
	border: 1px solid rgba(222,226,230,.6);
	box-shadow: var(--shadow-card);
	padding: .5rem;
}
@media (min-width: 768px) { .faq-card { padding: .75rem; } }

.faq-item + .faq-item { margin-top: 0; }
.faq-item__trigger {
	width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: 1.25rem; text-align: left;
	background: none; border: none; border-radius: var(--radius-2xl);
	cursor: pointer; transition: background-color .2s ease;
	font-family: var(--font-sans);
}
.faq-card .faq-item__trigger {
	appearance: none;
	-webkit-appearance: none;
	background: transparent !important;
	color: inherit !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 1.25rem !important;
	border-radius: var(--radius-2xl) !important;
	font-size: inherit;
	font-weight: inherit;
}
.faq-item__trigger:hover { background: rgba(248,249,250,.7); }
.faq-item.is-open > .faq-item__trigger { background: rgba(0,168,90,.04); }
.faq-item__question {
	font-size: .95rem; font-weight: 600; line-height: 1.4;
	color: var(--color-dark-800); transition: color .2s ease;
}
.faq-card .faq-item__question { color: var(--color-dark-800) !important; }
.faq-item.is-open .faq-item__question { color: var(--color-primary); }
.faq-item__icon {
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
	width: 2rem; height: 2rem; border-radius: .75rem;
	background: var(--color-dark-50); color: var(--color-dark-400);
	transition: all .3s ease;
}
.faq-item.is-open .faq-item__icon { background: rgba(0,168,90,.1); color: var(--color-primary); transform: rotate(180deg); }

.faq-item__panel {
	overflow: hidden; max-height: 0; opacity: 0;
	transition: max-height .3s cubic-bezier(.16,1,.3,1), opacity .3s ease;
}
.faq-item.is-open .faq-item__panel { max-height: 40em; opacity: 1; }
.faq-item__answer {
	padding: 0 1.25rem 1.25rem;
	color: var(--color-dark-500); font-size: .95rem; line-height: 1.7;
}
