/* ==========================================================================
   Axiora – Frequently Asked Questions (FAQ) Section
   Architecture matching Untitled UI Reference:
   - Top Dark Hero Card:
     - Left: Support eyebrow, bold white heading, subtext, live search bar.
     - Right: Dark dashboard UI mockup ($184,626 revenue, glowing charts, order stats).
   - Bottom Accordion Block:
     - Left: "General FAQs" heading, subtitle, "Chat to our team" link.
     - Right: Clean border-separated accordion list with circular plus/minus icons (Item 1 open by default).
   ========================================================================== */

.faq-section {
	position: relative;
	background-color: #ffffff;
	color: #111111;
	padding-top: clamp(48px, 6vw, 84px);
	padding-bottom: clamp(64px, 8vw, 112px);
	font-family: "DM Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	box-sizing: border-box;
}

.faq-container {
	width: 100%;
	max-width: 1340px;
	margin-inline: auto;
	padding-inline: clamp(20px, 3.5vw, 44px);
	box-sizing: border-box;
}

/* ==========================================================================
   1. TOP DARK HERO CARD
   ========================================================================== */

.faq-dark-hero {
	background-color: #0f1013;
	border-radius: clamp(22px, 3vw, 32px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.45);
	padding: clamp(38px, 4.5vw, 64px) clamp(28px, 4vw, 56px);
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: clamp(32px, 4vw, 60px);
	align-items: center;
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
}

/* Ambient Radial Glow */
.faq-hero-glow {
	position: absolute;
	top: -30%;
	left: -10%;
	width: 60%;
	height: 120%;
	background: radial-gradient(circle, rgba(163, 230, 53, 0.08) 0%, rgba(0, 212, 198, 0.04) 40%, transparent 70%);
	pointer-events: none;
	z-index: 1;
}

.faq-hero-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
}

.faq-support-badge {
	color: rgba(255, 255, 255, 0.7);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	margin-bottom: 12px;
	display: inline-block;
}

.faq-hero-title {
	font-family: "DM Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	font-size: clamp(32px, 3.8vw, 48px) !important;
	font-weight: 700 !important;
	line-height: 1.15;
	letter-spacing: -0.035em;
	color: #ffffff;
	margin: 0 0 16px;
	text-transform: none;
}

.faq-hero-lead {
	font-family: "DM Sans", "Inter", sans-serif;
	font-size: clamp(14.5px, 1.1vw, 16px);
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.65);
	margin: 0 0 28px;
	max-width: 440px;
}

/* Search Input */
.faq-search-wrapper {
	position: relative;
	max-width: 380px;
	width: 100%;
}

.faq-search-icon {
	position: absolute;
	top: 50%;
	left: 14px;
	transform: translateY(-50%);
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

.faq-search-input {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 12px;
	padding: 12px 16px 12px 42px;
	color: #ffffff;
	font-family: "DM Sans", "Inter", sans-serif;
	font-size: 14.5px;
	width: 100%;
	box-sizing: border-box;
	transition: all 0.25s ease;
	outline: none;
}

.faq-search-input::placeholder {
	color: rgba(255, 255, 255, 0.45);
}

.faq-search-input:focus {
	border-color: rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.09);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

/* Right Mockup Graphic */
.faq-hero-mockup {
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: center;
	align-items: center;
}

.faq-mockup-frame {
	width: 100%;
	max-width: 460px;
	background: #17181d;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 24px 48px -10px rgba(0, 0, 0, 0.6);
	transform: perspective(1000px) rotateY(-3deg) rotateX(1deg);
	transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.faq-mockup-frame:hover {
	transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
	box-shadow: 0 32px 64px -10px rgba(0, 0, 0, 0.7);
}

/* Mockup Header Bar */
.faq-mockup-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	background: rgba(255, 255, 255, 0.03);
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mockup-header-left {
	display: flex;
	align-items: center;
	gap: 10px;
}

.mockup-brand-mark {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 700;
	color: #ffffff;
}

.mockup-tag {
	font-size: 10px;
	color: rgba(255, 255, 255, 0.45);
	background: rgba(255, 255, 255, 0.06);
	padding: 2px 7px;
	border-radius: 4px;
}

.mockup-dots {
	display: flex;
	gap: 5px;
}

.mockup-dots span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
}

/* Metrics Row */
.mockup-metrics-grid {
	display: grid;
	grid-template-columns: 1.2fr 0.9fr 1.1fr;
	gap: 8px;
	padding: 14px 14px 10px;
}

.mockup-metric-card {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 10px;
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
}

.metric-label {
	font-size: 9.5px;
	color: rgba(255, 255, 255, 0.45);
	white-space: nowrap;
}

.metric-value {
	font-size: 17px;
	font-weight: 700;
	color: #ffffff;
	margin-top: 4px;
}

.mockup-metric-card--green .metric-value {
	color: #a3e635;
}

.metric-mini-chart {
	margin-top: 4px;
	height: 18px;
}

/* Chart Canvas Area */
.mockup-chart-box {
	padding: 6px 14px 10px;
	position: relative;
	height: 75px;
}

.mockup-chart-grid {
	position: absolute;
	inset: 6px 14px 10px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	pointer-events: none;
}

.chart-line {
	width: 100%;
	height: 1px;
	background: rgba(255, 255, 255, 0.05);
}

.mockup-wave-svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* Table Rows */
.mockup-table-preview {
	padding: 4px 14px 14px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mockup-table-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px 8px;
	background: rgba(255, 255, 255, 0.02);
	border-radius: 6px;
	font-size: 11px;
}

.table-user-cell {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #ffffff;
	font-weight: 500;
}

.table-user-avatar {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.25);
}

.table-date {
	color: rgba(255, 255, 255, 0.4);
	font-size: 10px;
}

.table-badge {
	font-size: 9.5px;
	color: #a3e635;
	background: rgba(163, 230, 53, 0.12);
	padding: 2px 6px;
	border-radius: 4px;
	font-weight: 600;
}

/* ==========================================================================
   2. BOTTOM FAQ ACCORDION SECTION (General FAQs + Accordion List)
   ========================================================================== */

.faq-content-grid {
	display: grid;
	grid-template-columns: 340px 1fr;
	gap: clamp(36px, 5vw, 72px);
	align-items: start;
	margin-top: 0;
}

/* Left Column: General FAQs */
.faq-sidebar-col {
	display: flex;
	flex-direction: column;
}

.faq-sidebar-title {
	font-family: "DM Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	font-size: clamp(26px, 2.6vw, 32px) !important;
	font-weight: 700 !important;
	color: #111111;
	margin: 0 0 14px;
	line-height: 1.2;
	text-transform: none;
}

.faq-sidebar-desc {
	font-family: "DM Sans", "Inter", sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: #6b7280;
	margin: 0;
	max-width: 320px;
}

.faq-chat-link {
	color: #111111;
	font-weight: 600;
	text-decoration: underline;
	transition: color 0.2s ease;
}

.faq-chat-link:hover {
	color: var(--color-accent-dark, #00b9ad);
}

/* Right Column: Accordion Items */
.faq-accordion-col {
	display: flex;
	flex-direction: column;
}

.faq-item {
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	transition: border-color 0.2s ease;
}

.faq-item:first-child {
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-question-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 22px 0;
	background: transparent;
	border: none;
	cursor: pointer;
	text-align: left;
	gap: 16px;
	transition: color 0.2s ease;
}

.faq-question-text {
	font-family: "DM Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	font-size: clamp(16px, 1.3vw, 18px);
	font-weight: 600;
	color: #111111;
	transition: color 0.2s ease;
	line-height: 1.4;
}

.faq-question-btn:hover .faq-question-text {
	color: #000000;
}

/* Plus/Minus Circular Icon */
.faq-icon-circle {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #9ca3af;
	transition: color 0.2s ease, transform 0.2s ease;
	flex-shrink: 0;
}

.faq-icon-minus {
	display: none;
}

.faq-icon-plus {
	display: block;
}

.faq-item.is-open .faq-icon-minus {
	display: block;
	color: #111111;
}

.faq-item.is-open .faq-icon-plus {
	display: none;
}

.faq-question-btn:hover .faq-icon-circle {
	color: #111111;
}

/* Expandable Answer Pane */
.faq-answer-pane {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
	opacity: 0;
}

.faq-item.is-open .faq-answer-pane {
	max-height: 400px;
	opacity: 1;
}

.faq-answer-inner {
	padding-bottom: 24px;
}

.faq-answer-inner p {
	font-family: "DM Sans", "Inter", sans-serif;
	font-size: 15px;
	line-height: 1.68;
	color: #4b5563;
	margin: 0;
}

/* Highlight matching searched text */
.faq-item.is-hidden {
	display: none !important;
}

/* ==========================================================================
   3. RESPONSIVE ADAPTATIONS
   ========================================================================== */

@media (max-width: 1024px) {
	.faq-dark-hero {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.faq-hero-mockup {
		order: 2;
	}

	.faq-content-grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.faq-sidebar-desc {
		max-width: 100%;
	}
}

@media (max-width: 640px) {
	.faq-dark-hero {
		padding: 32px 20px;
		border-radius: 20px;
	}

	.mockup-metrics-grid {
		grid-template-columns: 1fr;
	}

	.faq-question-btn {
		padding: 18px 0;
	}

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