/* -------------------- family page : FAQ --------------------------------------*/

:root {
	--violet: rgb(166, 83, 169);
	--violet-light: rgba(166, 83, 169, 0.10);
	--violet-border: rgba(166, 83, 169, 0.28);
	--violet-hover: rgb(138, 63, 141);
	--grey: rgb(149, 149, 149);
	--grey-line: #e0e0e0;
	--grey-arrow-bg: #efefef;
	--text-dark: #1a1a2e;
	--text-body: #444;
	--white: #ffffff;
	--transition: 0.36s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

h2.faq-title {
	margin: 0;
	padding: 0;
	font-size: inherit;
	font-weight: inherit;
}

body {
	background: var(--white);
	font-family: 'Quicksand', sans-serif;
	color: var(--text-body);
	padding: 60px 20px 80px;
}

.faq-section {
	max-width: 820px;
	margin: 0 auto;
}

/* ── Header ── */
.faq-header {
	text-align: center;
	margin-bottom: 44px;
}

.faq-header .faq-title-main,
.faq-header .faq-title-sub {
	font-family: 'Barlow Condensed', sans-serif;
	font-size: clamp(1.6rem, 4vw, 2.4rem);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	line-height: 1.2;
	display: block;
}

.faq-header .faq-title-main {
	color: var(--text-dark);
	margin-bottom: 6px;
}

.faq-header .faq-title-sub {
	color: var(--text-dark);
}

.faq-title-violet {
	color: var(--violet);
}

/* ── Accordion ── */
.faq-list {
	display: flex;
	flex-direction: column;
}

.faq-item {
	border-top: 1px solid var(--grey-line);
}

.faq-item:last-of-type {
	border-bottom: 1px solid var(--grey-line);
}

.faq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 4px;
	cursor: pointer;
	gap: 16px;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

h3.faq-q-text {
	font-family: 'Quicksand', sans-serif;
	font-size: 0.97rem;
	font-weight: 600;
	color: var(--text-dark);
	flex: 1;
	transition: color var(--transition);
}

.faq-item.open h3.faq-q-text,
.faq-question:hover h3.faq-q-text {
	color: var(--violet);
}

/* Arrow button */
.faq-arrow {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--grey-arrow-bg);
	border-radius: 50%;
	transition: transform var(--transition);
}

.faq-item.open .faq-arrow {
	transform: rotate(180deg);
}

.faq-arrow svg {
	width: 13px;
	height: 13px;
	stroke: var(--violet);
	stroke-width: 2.5;
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Answer panel */
.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height var(--transition);
}

.faq-item.open .faq-answer {
	max-height: 700px;
}

.faq-answer-inner {
	padding: 0 40px 24px 0;
	font-size: 0.92rem;
	font-weight: 400;
	color: var(--text-body);
	line-height: 1.8;
}

.faq-answer-inner p+p {
	margin-top: 10px;
}

.faq-answer-inner strong {
	color: var(--text-dark);
	font-weight: 600;
}

/* Tags */
.faq-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

strong.faq-tag {
	display: inline-block;
	padding: 4px 12px;
	background: var(--violet-light);
	border: 1px solid var(--violet-border);
	color: var(--violet);
	font-family: 'Quicksand', sans-serif;
	font-size: 10px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	border-radius: 2px;
	font-weight: 700;
}

/* Duration bars */
.faq-durations {
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.faq-duration-row {
	display: flex;
	align-items: center;
	gap: 14px;
}

.faq-duration-label {
	font-size: 12px;
	color: var(--grey);
	min-width: 170px;
}

.faq-duration-bar-wrap {
	flex: 1;
	background: #efefef;
	height: 3px;
	border-radius: 2px;
	overflow: hidden;
}

.faq-duration-bar {
	height: 100%;
	background: var(--violet);
	border-radius: 2px;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

.faq-item.open .faq-duration-bar {
	transform: scaleX(1);
}

.faq-duration-days {
	font-size: 12px;
	font-weight: 700;
	color: var(--violet);
	min-width: 50px;
	text-align: right;
}

/* CTA */
.faq-cta {
	text-align: center;
	margin-top: 44px;
}

.faq-cta a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--violet);
	color: #fff;
	text-decoration: none;
	font-family: 'Quicksand', sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	padding: 14px 32px;
	transition: background 0.2s, transform 0.2s;
}

.faq-cta a:hover {
	background: var(--violet-hover);
	transform: translateY(-2px);
}

.faq-cta a svg {
	width: 14px;
	height: 14px;
	stroke: currentColor;
	stroke-width: 2;
	fill: none;
}

@media (max-width: 600px) {
	.faq-answer-inner {
		padding-right: 0;
	}

	.faq-duration-label {
		min-width: 110px;
	}
}