/**
 * FAQs Block Styles
 *
 * @package made-to-thrive-2026-base
 * @since 1.0.0
 */

/* Screen reader text for accessibility */
.faqs .screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	word-wrap: normal !important;
}

/* FAQs Container */
.faqs {
	width: 100%;
	padding: 78px 0;
}

.faqs-container {
	max-width: 1160px;
	margin: 0 auto;
	width: 100%;
	display: flex;
	gap: 60px;
	align-items: start;
	justify-content: space-between;
}

/* Left Column */
.faqs-left {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	margin: 25px 0 0;
}

.faqs-title {
	font-size: 64px;
	font-weight: 100;
	line-height: 69px;
	margin: 0;
	color: inherit;
}

/* Button Wrapper */
.faqs-button-wrapper {
	margin-top: 0.5rem;
}

.faqs-button {
	border: none;
	cursor: pointer;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 31px;
	background-color: #013D36;
	color: #ffffff;
	text-decoration: none;
	border-radius: 50px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: background-color 0.3s ease, transform 0.2s ease;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.1rem;
	height: 57px;
}

.faqs-button:hover,
.faqs-button:focus {
	background-color: #6B7861;
}

.faqs-button:active {
	transform: translateY(0);
}

.faqs-button:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 3px;
}

/* Button Icon Wrapper */
.faqs-button-icon-wrapper {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* Button Icon */
.faqs-button-icon {
	width: 1.25rem;
	height: 1.25rem;
	object-fit: contain;
	display: inline-block;
}

.faqs-button-icon.fa-regular,
.faqs-button-icon.fa-solid {
	font-size: 1.25rem;
	line-height: 1;
	width: auto;
	height: auto;
}

/* Button Text */
.faqs-button-text {
	white-space: nowrap;
}

/* Right Column */
.faqs-right {
	width: 760px;
}

/* FAQs List */
.faqs-list {
	display: flex;
	flex-direction: column;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	max-width: 100%;
}

/* FAQ Item */
.faqs-item {
	border-bottom: 1px solid #013D36;
}

.faqs-item:last-child {
}

/* FAQ Question Button */
.faqs-question {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 35px 0;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	font-size: 1rem;
	font-weight: 500;
	color: inherit;
	transition: color 0.2s ease, outline 0.2s ease;
	gap: 1rem;
	font-family: 'Inter';
	font-size: 17px;
	line-height: 27px;
}

.faqs-question:hover {
	color: inherit;
	opacity: 0.8;
}

.faqs-question-text {
	flex: 1;
	line-height: 1.5;
}

.faqs-question-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 25.414px;
	height: 13.207px;
	transition: transform 0.3s ease;
}

.faqs-chevron-icon {
	width: 25.414px;
	height: 13.207px;
	display: block;
	transition: transform 0.3s ease;
}

/* FAQ Answer */
.faqs-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease, padding 0.3s ease;
	padding: 0;
}

.faqs-answer[aria-hidden="false"] {
	max-height: 2000px;
	padding: 0 0 1.25rem 0;
}

.faqs-answer-content {
	padding-top: 0.5rem;
	line-height: 1.6;
	color: inherit;
}

.faqs-answer-content p {
	margin: 0 0 0;
	font-size: 17px;
	line-height: 27px;
	padding-bottom: 20px;
}

.faqs-answer-content p:last-child {
	margin-bottom: 0;
}

/* Expanded State */
.faqs-question[aria-expanded="true"] .faqs-chevron-icon {
	transform: rotate(180deg);
}

/* Responsive Design */
@media (max-width: 1080px) {
	.faqs-container {
		max-width:90%;
	}
	.faqs-container {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	.faqs-title {
		font-size: 51px;
		line-height: 61px;
	}
}

@media (max-width: 768px) {
	.faqs {
    width: 100%;
    padding: 10px 0 80px;
	}
	.faqs-left {
		gap:10px;
		margin-bottom:30px;
	}
	.faqs-right {
	    width: 100%;
	}

	.faqs-container {
		gap: 0;
		display: block;
	}

	.faqs-question {
		padding: 1rem 0;
	}

	.faqs-answer[aria-hidden="false"] {
		padding: 0 0 1rem 0;
	}
}

@media (max-width: 500px) {
	.faqs-container {
        max-width: 100%;
		padding:0 30px;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
	.faqs-button,
	.faqs-question,
	.faqs-question-icon,
	.faqs-answer {
		transition: none;
	}
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
	.faqs-button {
		border: 2px solid currentColor;
	}

	.faqs-question {
		border-top: 1px solid currentColor;
	}

	.faqs-item {
		border-bottom: 2px solid currentColor;
	}
}

/* Print Styles */
@media print {
	.faqs {
		background-color: #f5f5f5;
		padding: 1rem;
	}

	.faqs-container {
		grid-template-columns: 1fr;
	}

	.faqs-button {
		display: none;
	}

	.faqs-question {
		cursor: default;
		padding: 0.5rem 0;
		font-weight: 600;
	}

	.faqs-question-icon {
		display: none;
	}

	.faqs-answer {
		max-height: none !important;
		padding: 0.5rem 0 !important;
		overflow: visible;
	}

	.faqs-answer[aria-hidden="true"] {
		display: block;
	}
}

