/* ==========================================================================
   AAS FAQ - "Frequently Asked Questions" section: badge + heading +
   description + 3 trust highlights + faint house sketch on the left,
   an accordion of questions on the right (first item open by default).
   ========================================================================== */

.aas-faq {
	--aas-accent: var(--e-global-color-accent, #FE212A);
	--aas-dark: var(--e-global-color-primary, #0D0D0D);
	--aas-text: var(--e-global-color-text, #666666);
	--aas-white: var(--e-global-color-white, #FFFFFF);
	--aas-light: var(--e-global-color-secondary, #F5F5F5);
	--aas-font-heading: var(--e-global-typography-primary-font-family, "Space Grotesk", sans-serif);
	--aas-font-text: var(--e-global-typography-text-font-family, "DM Sans", sans-serif);

	position: relative;
	background: var(--aas-white);
	padding: 70px 20px;
	overflow: hidden;
}

.aas-faq-grid {
	max-width: 1320px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(280px, 460px) 1fr;
	gap: 60px;
	align-items: start;
}

/* ---- Left column -------------------------------------------------------- */
.aas-faq-left {
	position: relative;
}
.aas-faq-left .aas-badge-dash {
	display: inline-block;
	width: 32px;
	height: 3px;
	background: var(--aas-accent);
	margin-right: 10px;
	vertical-align: middle;
}

.aas-faq-heading.aas-heading {
	font-family: var(--aas-font-heading);
	color: var(--aas-dark);
	font-weight: 700;
	font-size: clamp(30px, 3.4vw, 44px);
	line-height: 1.15;
	margin: 14px 0 16px;
}
.aas-faq-accent {
	color: var(--aas-accent);
}

.aas-faq-description {
	font-family: var(--aas-font-text);
	color: var(--aas-text);
	line-height: 1.7;
	margin-bottom: 30px;
	max-width: 420px;
}

.aas-faq-highlights {
	display: flex;
	align-items: flex-start;
	gap: 0;
	margin-bottom: 50px;
}
.aas-faq-highlight {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
	padding: 0 22px;
	border-right: 1px solid rgba(13,13,13,0.1);
}
.aas-faq-highlight:first-child {
	padding-left: 0;
}
.aas-faq-highlight:last-child {
	border-right: none;
}
.aas-faq-highlight-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 10px;
	background: rgba(254,33,42,0.08);
	color: var(--aas-accent);
	font-size: 22px;
	transition: transform 0.3s ease, background 0.3s ease;
}
.aas-faq-highlight:hover .aas-faq-highlight-icon {
	transform: translateY(-4px);
	background: var(--aas-accent);
	color: var(--aas-white);
}
.aas-faq-highlight-icon svg {
	width: 22px;
	height: 22px;
}
.aas-faq-highlight-label {
	font-family: var(--aas-font-heading);
	font-weight: 700;
	font-size: 14px;
	color: var(--aas-dark);
	line-height: 1.3;
}

.aas-faq-sketch {
	display: block;
	width: 100%;
	max-width: 340px;
	height: 150px;
	opacity: 0.5;
	background:
		linear-gradient(currentColor, currentColor) 0 90% / 100% 2px no-repeat,
		linear-gradient(currentColor, currentColor) 10% 20% / 2px 72% no-repeat,
		linear-gradient(currentColor, currentColor) 85% 20% / 2px 72% no-repeat,
		linear-gradient(currentColor, currentColor) 10% 20% / 80% 2px no-repeat;
	color: rgba(13,13,13,0.15);
	pointer-events: none;
}

/* ---- Right column: accordion --------------------------------------------- */
.aas-faq-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.aas-faq-item {
	border-radius: 12px;
	background: var(--aas-white);
	border: 1px solid rgba(13,13,13,0.08);
	box-shadow: 0 4px 18px rgba(13,13,13,0.05);
	transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
/* Visual feedback on hover for a CLOSED item, so it's clear it's
   clickable even before the cursor change is noticed. */
.aas-faq-item:not(.aas-faq-item-open):hover {
	border-color: rgba(254,33,42,0.35);
	box-shadow: 0 10px 24px rgba(13,13,13,0.08);
	transform: translateY(-2px);
}
.aas-faq-item-open {
	border-color: var(--aas-accent);
	background: rgba(254,33,42,0.04);
	box-shadow: 0 10px 28px rgba(254,33,42,0.1);
}

/* Hardened against the parent theme's/Elementor's generic button reset
   (which paints every <button> with the solid accent background) -
   this accordion header must always stay a plain white row with a
   small circular "?" icon, never a solid red bar. */
.aas-faq-question,
.aas-faq-question:hover,
.aas-faq-question:focus {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 16px;
	background: transparent !important;
	background-color: transparent !important;
	color: var(--aas-dark) !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	cursor: pointer;
	text-align: left;
	padding: 20px 22px;
	font-family: var(--aas-font-heading);
	-webkit-appearance: none;
	appearance: none;
}

.aas-faq-q-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 2px solid var(--aas-accent);
	color: var(--aas-accent);
	font-size: 13px;
	flex-shrink: 0;
}

.aas-faq-q-text {
	flex: 1;
	font-weight: 700;
	font-size: 17px;
	color: var(--aas-dark);
	line-height: 1.4;
}

.aas-faq-chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--aas-dark);
	font-size: 14px;
	flex-shrink: 0;
	transition: transform 0.3s ease, color 0.3s ease;
}
.aas-faq-item-open .aas-faq-chevron {
	transform: rotate(180deg);
	color: var(--aas-accent);
}

.aas-faq-answer {
	padding: 0 22px;
}
.aas-faq-answer-inner {
	padding: 0 0 22px 48px;
	font-family: var(--aas-font-text);
	font-size: 14.5px;
	line-height: 1.7;
	color: var(--aas-text);
}
.aas-faq-answer-inner p:last-child {
	margin-bottom: 0;
}

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 1000px) {
	.aas-faq-grid {
		grid-template-columns: 1fr;
	}
	.aas-faq-sketch {
		display: none;
	}
}
@media (max-width: 560px) {
	.aas-faq {
		padding: 50px 16px;
	}
	.aas-faq-highlights {
		flex-wrap: wrap;
		gap: 14px 0;
	}
	.aas-faq-highlight {
		flex: 1 1 33%;
		padding: 0 10px;
		border-right: none;
	}
	.aas-faq-answer-inner {
		padding-left: 0;
	}
}
