/* Adam Milo – "FAQ – Card" block
 * Values read from Figma (file "Global+israel sites") via the Figma API:
 *  Risk 2804:8056 (orange) / Fit 2816:8736 (teal) – same layout:
 *  card 1370 wide, r16, 16px gradient top border, padding 40/28/28 (+16 border),
 *  shadow 9 8 70 rgba(69,82,83,.14); title Poppins Bold 32/38.4; items gap 20;
 *  closed item #F0ECEC r20 p20/35, question Bold 16 black, arrow 32 #212529 @32%;
 *  open item white, shadow 0 4 25.5 rgba(0,0,0,.19), question = main color,
 *  answer Poppins Medium 16 black, gap 8, arrow = main color pointing up. */

.amfq-section {
	--amfq-color: #E96835;
	background-color: var(--amfq-section-bg, transparent);
	padding: 20px 0 100px;
	font-family: Poppins, sans-serif;
}

.amfq-section .amfq-card {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding: 56px 28px 28px;           /* 16 border + 40 */
	border-radius: 16px;
	background: rgba(255, 255, 255, .2);
	-webkit-backdrop-filter: blur(58px);
	backdrop-filter: blur(58px);
	box-shadow: 9px 8px 70px rgba(69, 82, 83, .14);
}
/* 16px top border: gradient from the main color to a lighter tint */
.amfq-section .amfq-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 16px;
	background: linear-gradient(90deg,
		var(--amfq-color) 0%,
		color-mix(in srgb, var(--amfq-color) 60%, #fff) 100%);
}

.amfq-section .amfq-title {
	margin: 0;
	color: #212529;
	font-family: Poppins, sans-serif;
	font-size: 32px;
	font-weight: 700;
	line-height: 38.4px;
}

.amfq-section .amfq-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* ---------- item ---------- */
.amfq-section .amfq-item {
	border-radius: 20px;
	background: #F0ECEC;
	transition: background-color .25s ease, box-shadow .25s ease;
}
.amfq-section .amfq-item.is-open {
	background: #fff;
	box-shadow: 0 4px 25.5px rgba(0, 0, 0, .19);
}

.amfq-section .amfq-q {
	display: flex;
	align-items: center;
	gap: 57px;
	width: 100%;
	margin: 0;
	padding: 20px 35px;
	border: 0;
	background: none;
	cursor: pointer;
	text-align: left;
	font: inherit;
	color: #000;
	border-radius: 20px;
}
.amfq-section .amfq-item.is-open .amfq-q {
	align-items: flex-start;
	padding-top: 20px;
	padding-bottom: 0;
}
/* no frame on mouse click (theme/browser add one to focused buttons) */
.amfq-section .amfq-q:focus,
.amfq-section .amfq-q:active {
	outline: none;
	border: 0;
	box-shadow: none;
}
/* keyboard users (Tab) still see where they are – in the main color */
.amfq-section .amfq-q:focus-visible {
	outline: 2px solid var(--amfq-color);
	outline-offset: -2px;
}
.amfq-section .amfq-q-text {
	flex: 1 1 0;
	min-width: 0;
	font-family: Poppins, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	color: #000;
	transition: color .25s ease;
}
.amfq-section .amfq-item.is-open .amfq-q-text {
	padding-top: 9px;                  /* Figma: pt 9 on the open text block */
	color: var(--amfq-color);
}

.amfq-section .amfq-arrow {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	color: rgba(33, 37, 41, .32);
	transition: transform .25s ease, color .25s ease;
}
.amfq-section .amfq-item.is-open .amfq-arrow {
	color: var(--amfq-color);
	transform: rotate(180deg);
}

/* answer – animated open/close */
.amfq-section .amfq-a {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows .3s ease;
}
.amfq-section .amfq-item.is-open .amfq-a {
	grid-template-rows: 1fr;
}
.amfq-section .amfq-a-inner {
	overflow: hidden;
	min-height: 0;
}
.amfq-section .amfq-a-text {
	padding: 8px 124px 20px 35px;      /* aligned with the question text column */
	color: #000;
	font-family: Poppins, sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
}
.amfq-section .amfq-a-text p {
	margin: 0 0 8px;
	color: #000;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
}
.amfq-section .amfq-a-text > :last-child {
	margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
	.amfq-section .amfq-a,
	.amfq-section .amfq-arrow,
	.amfq-section .amfq-item {
		transition: none;
	}
}

/* ---------- mobile ---------- */
@media (max-width: 990px) {
	.amfq-section {
		padding: 16px 0 48px;
	}
	.amfq-section .amfq-card {
		padding: 48px 16px 16px;
		gap: 24px;
	}
	.amfq-section .amfq-title {
		font-size: 26px;
		line-height: 1.3;
	}
	.amfq-section .amfq-list {
		gap: 12px;
	}
	.amfq-section .amfq-q {
		gap: 16px;
		padding: 16px 20px;
	}
	.amfq-section .amfq-item.is-open .amfq-q {
		padding-top: 16px;
	}
	.amfq-section .amfq-item.is-open .amfq-q-text {
		padding-top: 4px;
	}
	.amfq-section .amfq-a-text {
		padding: 8px 20px 16px;
	}
}
