/*
 * Pitru Theme v2 — pages/faqs.css
 *
 * Page-specific styles for /faqs/. The shared `.eyebrow`, `.btn`,
 * `.btn-primary`, `.btn-ghost` and `.wrap` come from core; everything
 * below is page-scoped under `pps-page-faqs-*` so it can never bleed.
 *
 * Sections (mirror composer order):
 *   1. Hero + search (ORG faq.html lines 56-71)
 *   2. Body grid (220px sidebar + 1fr main) (ORG line 74)
 *   3. Sidebar pills (ORG lines 75-88)
 *   4. Accordion list (ORG lines 89-101)
 *   5. "Still not answered?" CTA (ORG lines 103-110)
 *   6. Responsive (≤900 stacks sidebar; ≤640 tightens hero)
 *
 * Port source: ORG `Pitrupaksha ORG/faq.html` — inline React styles
 * converted to BEM-ish classes with the same values.
 */

/* ============================================================
 * 1. HERO + SEARCH
 * ============================================================ */
.pps-page-faqs-hero {
	padding: 60px 0 40px;
}

.pps-page-faqs-hero__inner {
	max-width: 780px;
	text-align: center;
}

.pps-page-faqs-hero__title {
	font-size: clamp(52px, 6vw, 84px);
	letter-spacing: -0.03em;
	line-height: 1;
	margin-top: 14px;
}

.pps-page-faqs-hero__title-em {
	font-style: italic;
	color: var(--gold-deep);
}

/* Search — pill-shaped input with leading icon */
.pps-page-faqs-search {
	position: relative;
	max-width: 520px;
	margin: 36px auto 0;
}

.pps-page-faqs-search__icon {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--stone);
	font-size: 18px;
	pointer-events: none;
	z-index: 1;
}

.pps-page-faqs-search__input {
	width: 100%;
	padding: 16px 20px 16px 48px;
	border-radius: var(--r-pill);
	border: 1px solid var(--line);
	background: var(--paper);
	font-family: var(--font-body);
	font-size: 15px;
	color: var(--ink);
	outline: none;
	transition: border-color 0.18s var(--ease-ios), box-shadow 0.18s var(--ease-ios);
}
.pps-page-faqs-search__input::placeholder {
	color: var(--stone);
}
.pps-page-faqs-search__input:focus {
	border-color: var(--ink-soft);
	box-shadow: 0 0 0 3px rgba(26, 22, 19, 0.06);
}

/* Hide the native clear button on type=search across browsers — keeps
 * the pill silhouette uniform regardless of vendor UI. */
.pps-page-faqs-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.pps-page-faqs-search__input::-webkit-search-decoration { -webkit-appearance: none; }

/* ============================================================
 * 2. BODY GRID
 * ============================================================ */
.pps-page-faqs-body {
	padding: 40px 0 100px;
}

.pps-page-faqs-body__wrap {
	max-width: 1000px;
}

.pps-page-faqs-body__grid {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 56px;
}

/* ============================================================
 * 3. SIDEBAR
 * ============================================================ */
.pps-page-faqs-sidebar__eyebrow {
	margin-bottom: 12px;
	display: block;
}

.pps-page-faqs-sidebar__list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.pps-page-faqs-sidebar__item {
	display: flex;
	align-items: baseline;
	gap: 6px;
	padding: 10px 14px;
	border-radius: var(--r-sm);
	border: none;
	text-align: left;
	background: transparent;
	color: var(--ink-soft);
	font-size: 14px;
	font-family: inherit;
	text-decoration: none;
	transition: background 0.18s var(--ease-ios), color 0.18s var(--ease-ios);
}

.pps-page-faqs-sidebar__item:hover {
	background: rgba(26, 22, 19, 0.04);
	color: var(--ink);
}

.pps-page-faqs-sidebar__item--active,
.pps-page-faqs-sidebar__item--active:hover {
	background: var(--ink);
	color: var(--paper);
}

.pps-page-faqs-sidebar__name {
	flex: 1;
}

.pps-page-faqs-sidebar__count {
	opacity: 0.5;
	font-size: 12px;
}

/* ============================================================
 * 4. ACCORDION LIST
 * ============================================================ */
.pps-page-faqs-list__empty {
	padding: 40px;
	text-align: center;
	color: var(--stone);
}

.pps-page-faqs-list__item {
	border-bottom: 1px solid var(--line);
}

/* Strip the native disclosure marker — we draw our own circular toggle. */
.pps-page-faqs-list__item > summary {
	list-style: none;
}
.pps-page-faqs-list__item > summary::-webkit-details-marker {
	display: none;
}

.pps-page-faqs-list__summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	padding: 24px 0;
	gap: 16px;
}

.pps-page-faqs-list__question {
	font-size: 20px;
	font-weight: 500;
	letter-spacing: -0.01em;
	color: var(--ink-2);
	margin: 0;
	transition: color 0.22s var(--ease-ios);
}
.pps-page-faqs-list__item[open] > .pps-page-faqs-list__summary .pps-page-faqs-list__question {
	color: var(--ink);
}

.pps-page-faqs-list__toggle {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(26, 22, 19, 0.05);
	color: var(--ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	line-height: 1;
	flex-shrink: 0;
	transition: background 0.22s var(--ease-ios), color 0.22s var(--ease-ios);
}

/* CSS-only `+` → `−` swap on open. The literal sign lives in `content`
 * so we never need JS or a markup change — open-state just swaps the
 * pseudo-content. */
.pps-page-faqs-list__toggle::before { content: "+"; }
.pps-page-faqs-list__item[open] > .pps-page-faqs-list__summary .pps-page-faqs-list__toggle {
	background: var(--ink);
	color: var(--paper);
}
.pps-page-faqs-list__item[open] > .pps-page-faqs-list__summary .pps-page-faqs-list__toggle::before {
	content: "\2212"; /* U+2212 MINUS SIGN — visually balanced with `+` */
}

.pps-page-faqs-list__answer {
	margin: 0;
	padding: 0 0 24px 0;
	font-size: 15px;
	color: var(--ink-soft);
	line-height: 1.7;
	max-width: 640px;
}

/* ============================================================
 * 5. "Still not answered?" CTA
 * ============================================================ */
.pps-page-faqs-cta {
	margin-top: 48px;
	padding: 28px;
	background: var(--ivory-2);
	border-radius: var(--r-lg);
	border: 1px solid var(--line-2);
}

.pps-page-faqs-cta__title {
	font-size: 22px;
	letter-spacing: -0.01em;
	margin: 0;
}

.pps-page-faqs-cta__body {
	margin-top: 8px;
	font-size: 14px;
	color: var(--ink-soft);
}

.pps-page-faqs-cta__buttons {
	margin-top: 16px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.pps-page-faqs-cta__btn {
	padding: 10px 18px;
	font-size: 13px;
}

/* ============================================================
 * 6. RESPONSIVE
 * ============================================================ */

/* Tablet / small-desktop — sidebar drops above the list */
@media (max-width: 900px) {
	.pps-page-faqs-body__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.pps-page-faqs-sidebar__list {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 6px;
	}

	.pps-page-faqs-sidebar__item {
		flex: 0 0 auto;
	}
}

/* Mobile — tighten hero padding + section spacing.
 * H1 is already responsive via clamp(52px, 6vw, 84px); tokens.css
 * mobile rule will override h1 globally below 720px. */
@media (max-width: 640px) {
	.pps-page-faqs-hero {
		padding: 40px 0 24px;
	}

	.pps-page-faqs-search {
		margin-top: 28px;
	}

	.pps-page-faqs-body {
		padding: 24px 0 72px;
	}

	.pps-page-faqs-list__question {
		font-size: 17px;
	}

	.pps-page-faqs-cta {
		padding: 22px;
		margin-top: 36px;
	}

	.pps-page-faqs-cta__buttons {
		flex-direction: column;
		align-items: stretch;
	}

	.pps-page-faqs-cta__btn {
		justify-content: center;
	}
}
