/**
 * FAQ Section Styles
 * 
 * @package Pachamama
 * @version 1.1.0
 */

/* ========================================
   FAQ SECTION
   ======================================== */

.faq-section {
	padding: 80px 80px;
	background: var(--bg-page);
}

.faq-section .section-header {
	text-align: center;
	margin-bottom: 3rem;
}

/* ========================================
   FAQ TABS
   ======================================== */

.faq-tabs {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-bottom: 3rem;
}

.faq-tab {
	font-family: var(--font-heading);
	font-size: 16px;
	font-weight: 600;
	padding: 14px 32px;
	border: 2px solid var(--border);
	border-radius: 50px;
	background: var(--white);
	color: var(--mid-text);
	cursor: pointer;
	transition: all var(--transition-base);
	white-space: nowrap;
}

.faq-tab:hover {
	border-color: var(--olive);
	color: var(--deep-forest);
	transform: translateY(-2px);
}

.faq-tab.active {
	background: var(--clay);
	border-color: var(--clay);
	color: var(--white);
}

.faq-tab.active:hover {
	background: #a16a38;
	border-color: #a16a38;
}

/* ========================================
   FAQ CONTENT
   ======================================== */

.faq-content {
	max-width: 900px;
	margin: 0 auto;
}

.faq-tab-content {
	display: none;
}

.faq-tab-content.active {
	display: block;
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ========================================
   FAQ ACCORDION
   ======================================== */

.faq-accordion {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.faq-item {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	overflow: hidden;
	transition: all var(--transition-base);
}

.faq-item:hover {
	border-color: var(--olive-light);
	box-shadow: 0 4px 12px rgba(30, 59, 52, 0.06);
}

.faq-item.active {
	border-color: var(--olive);
	box-shadow: 0 8px 20px rgba(30, 59, 52, 0.1);
}

.faq-item-highlight {
	background: linear-gradient(135deg, rgba(168, 184, 154, 0.08) 0%, rgba(217, 205, 186, 0.08) 100%);
	border-color: var(--olive);
}

.faq-item-highlight .faq-question {
	font-weight: 700;
	color: var(--deep-forest);
}

.faq-question {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px;
	background: transparent;
	border: none;
	font-family: var(--font-heading);
	font-size: 17px;
	font-weight: 600;
	color: var(--deep-forest);
	text-align: right;
	cursor: pointer;
	transition: all var(--transition-base);
}

.faq-question:hover {
	color: var(--clay);
}

.faq-question span {
	flex: 1;
	line-height: 1.4;
}

.faq-icon {
	flex-shrink: 0;
	color: var(--olive);
	transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
	transform: rotate(180deg);
	color: var(--clay);
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
	max-height: 500px;
	padding: 0 24px 24px;
}

.faq-answer p {
	font-size: 15px;
	line-height: 1.7;
	color: var(--mid-text);
	margin: 0;
}

.faq-answer a {
	color: var(--clay);
	font-weight: 600;
	text-decoration: none;
	transition: color var(--transition-base);
}

.faq-answer a:hover {
	color: var(--teal);
	text-decoration: underline;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 700px) {
	.faq-section {
		padding: 60px 20px;
	}

	.faq-tabs {
		flex-direction: column;
		gap: 8px;
	}

	.faq-tab {
		width: 100%;
		padding: 12px 24px;
	}

	.faq-question {
		padding: 16px 20px;
		font-size: 16px;
	}

	.faq-item.active .faq-answer {
		padding: 0 20px 20px;
	}

	.faq-answer p {
		font-size: 14px;
	}
}
