/* KATA FAQ — page-scoped. Heredada del design system (Bebas + Outfit + gold). */

.kata-faq {
	background: var(--c-white);
	color: var(--c-dark);
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.faq-hero {
	padding: var(--section-py) var(--gutter); /* audit #6 H4 */
	background: var(--c-dark);
	color: var(--c-white);
}
.faq-hero__inner {
	max-width: 980px;
	margin: 0 auto;
}
.faq-hero__breadcrumb {
	font-size: 0.875rem;
	opacity: 0.7;
	margin-bottom: 2rem;
}
.faq-hero__breadcrumb a { color: inherit; text-decoration: none; }
.faq-hero__breadcrumb a:hover { color: var(--c-gold); }

/* audit #6 H1 — eyebrow spacing per FAQ section (canonical .eyebrow added). */
.faq-hero__inner > .eyebrow { display: inline-flex; margin: 0 0 1.5rem; }
.faq-cat__header .eyebrow { display: inline-flex; margin: 0 0 0.75rem; }
.faq-cta__inner > .eyebrow { display: inline-flex; margin: 0 auto 1.25rem; }
.faq-hero__title {
	font-family: var(--ff-display);
	font-size: clamp(3rem, 8vw, 6rem);
	line-height: 0.95;
	letter-spacing: 0.01em;
	margin: 0 0 1.5rem;
	text-transform: uppercase;
}
.faq-hero__lede {
	font-size: 1.125rem;
	line-height: 1.6;
	opacity: 0.85;
	max-width: 60ch;
	margin: 0 0 2.5rem;
}
.faq-hero__search {
	position: relative;
	max-width: 640px;
}
.faq-hero__search-input {
	width: 100%;
	font-family: var(--ff-body);
	font-size: 1rem;
	padding: 1rem 7rem 1rem 1.25rem;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--radius-pill);
	color: var(--c-white);
	transition: border-color 200ms ease, background 200ms ease;
}
.faq-hero__search-input::placeholder { color: rgba(255, 255, 255, 0.5); }
.faq-hero__search-input:focus-visible {
	outline: none;
	border-color: var(--c-gold);
	background: rgba(255, 255, 255, 0.12);
}
/* Hide native clear (×) — overlaps with .faq-hero__search-count */
.faq-hero__search-input::-webkit-search-cancel-button,
.faq-hero__search-input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.faq-hero__search-count {
	position: absolute;
	right: 1.25rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 0.875rem;
	opacity: 0.6;
	pointer-events: none;
}

/* ── Content layout (desktop = 2-col) ──────────────────────────────────── */
.faq-content {
	padding: 4rem var(--gutter) 6rem;
	background: var(--c-white);
}
.faq-content__inner {
	max-width: var(--maxw);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
}
@media (min-width: 960px) {
	.faq-content__inner {
		grid-template-columns: 240px 1fr;
		gap: 4rem;
	}
}

/* ── TOC ──────────────────────────────────────────────────────────────── */
.faq-toc--mobile { display: block; margin-bottom: 1.5rem; }
.faq-toc--desktop { display: none; }
@media (min-width: 960px) {
	.faq-toc--mobile { display: none; }
	.faq-toc--desktop {
		display: block;
		position: sticky;
		top: calc(var(--nav-h) + 1.5rem);
		align-self: start;
		max-height: calc(100vh - var(--nav-h) - 3rem);
		overflow-y: auto;
	}
}
.faq-toc__nav {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.faq-toc__link {
	display: block;
	padding: 0.65rem 0.75rem;
	font-size: 0.95rem;
	color: var(--c-dark);
	text-decoration: none;
	border-left: 2px solid transparent;
	transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
	min-height: 44px;
	box-sizing: border-box;
}
.faq-toc__link:hover { background: rgba(0, 0, 0, 0.05); color: var(--c-dark); text-decoration: none; }
.faq-toc__link.is-active {
	border-left-color: var(--c-gold);
	color: var(--c-gold);
	font-weight: 600;
}
.faq-toc__link.is-active:hover { color: var(--c-gold); }
.faq-toc__mobile-summary {
	padding: 1rem;
	background: rgba(0, 0, 0, 0.04);
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	min-height: 44px;
	display: flex;
	align-items: center;
	list-style: none;
}
.faq-toc__mobile-summary::-webkit-details-marker { display: none; }
.faq-toc__rule {
	border: none;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	margin: 1.5rem 0;
}
.faq-toc__contact {
	display: block;
	font-size: 0.95rem;
	color: var(--c-gold);
	text-decoration: none;
	padding: 0.5rem 0.75rem;
	min-height: 44px;
}
.faq-toc__contact:hover { color: var(--c-dark); text-decoration: underline; }

/* ── Categories + accordions ──────────────────────────────────────────── */
.faq-categories { min-width: 0; } /* prevent grid overflow */
.faq-cat { margin-bottom: 4rem; scroll-margin-top: calc(var(--nav-h) + 1rem); }
.faq-cat__title {
	font-family: var(--ff-display);
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	margin: 0 0 1.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-item {
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.faq-item[hidden] { display: none; }
.faq-item__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem 0;
	cursor: pointer;
	list-style: none;
	min-height: 44px;
	transition: color 150ms ease;
}
.faq-item__summary::-webkit-details-marker { display: none; }
.faq-item__summary:hover { color: var(--c-gold); }
.faq-item__summary:focus-visible {
	outline: 2px solid var(--c-gold);
	outline-offset: 4px;
	border-radius: 4px;
}
.faq-item__question {
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.4;
}
.faq-item__chevron {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="6 9 12 15 18 9"/></svg>') center/contain no-repeat;
	transition: transform 200ms ease;
}
.faq-item[open] .faq-item__chevron { transform: rotate(180deg); }
.faq-item__answer {
	padding: 0 0 1.5rem;
	font-size: 1rem;
	line-height: 1.7;
	color: rgba(0, 0, 0, 0.78);
}
.faq-item__answer p { margin: 0 0 0.85rem; }
.faq-item__answer p:last-child { margin-bottom: 0; }
.faq-item__answer a { color: var(--c-gold); text-decoration: underline; }
.faq-item__answer mark {
	background: var(--c-gold);
	color: var(--c-dark);
	padding: 0 0.15em;
	border-radius: 2px;
}

/* ── Empty state ──────────────────────────────────────────────────────── */
.faq-empty { padding: 3rem 1rem; text-align: center; }
.faq-empty__title { font-size: 1.25rem; font-weight: 600; margin: 0 0 1rem; }
.faq-empty__cta { color: var(--c-gold); font-weight: 600; text-decoration: none; }
.faq-empty__cta:hover { text-decoration: underline; }

/* ── Hidden category (no matches under search) ────────────────────────── */
.faq-cat[hidden] { display: none; }

/* ── Contact CTA panel ────────────────────────────────────────────────── */
.faq-cta {
	padding: var(--section-py) var(--gutter); /* audit #6 H4 */
	background: var(--c-dark);
	color: var(--c-white);
	text-align: center;
}
.faq-cta__inner { max-width: 720px; margin: 0 auto; }
.faq-cta__title {
	font-family: var(--ff-display);
	font-size: clamp(2rem, 5vw, 3rem);
	margin: 0 0 1rem;
	text-transform: uppercase;
}
.faq-cta__lede { font-size: 1.05rem; opacity: 0.85; margin: 0 0 2rem; }
.faq-cta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
}
/* audit #6 H2 — .faq-cta__btn family retired. Template now uses canonical
 * .btn .btn--primary / .btn--ghost from main.css. */

/* ── Reduced motion ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	* { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}
