.amf-how {
	position: relative;
	overflow: hidden;
	width: 100%;
	min-height: 850px;
	padding: 70px 0;
	background-color: #fffcf6;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	isolation: isolate;
	font-family: 'Inter', Arial, Helvetica, sans-serif;
}


.amf-how,
.amf-how * {
	box-sizing: border-box;
}

.amf-how__overlay {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: rgba(255, 252, 246, 0.7);
	pointer-events: none;
}

.amf-how__container {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1400px;
	margin-right: auto;
	margin-left: auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}

.amf-how__top {
	display: grid;
	grid-template-columns: minmax(0, 45%) minmax(0, 55%);
	align-items: center;
	gap: 58px;
}

.amf-how__media,
.amf-how__content {
	position: relative;
	z-index: 2;
}

.amf-how__image-wrap {
	width: 100%;
	max-width: 583px;
}

.amf-how__image {
	display: block;
	width: 100%;
	height: 635px;
	object-fit: cover;
	border: 2px solid #c58f24;
	border-radius: 36px;
	box-shadow: 0 16px 40px rgba(64, 48, 22, 0.08);
}

.amf-how__label-wrap {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 13px;
	margin: 0 0 14px;
}

.amf-how__label {
	margin: 0;
	font-family: 'Inter', Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	color: #b97712;
}

.amf-how__label-line,
.amf-how__heading-line,
.amf-how__card-divider {
	display: block;
	background-color: #c89532;
}

.amf-how__label-line {
	width: 38px;
	height: 2px;
}

.amf-how__heading {
	max-width: 640px;
	margin: 0 0 20px;
	font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
	font-size: clamp(44px, 5.1vw, 60px);
	font-weight: 700;
	line-height: 1.17;
	letter-spacing: -1px;
	color: #063e2e;
}

.amf-how__heading-line {
	width: 75px;
	height: 2px;
	margin: 0 0 28px;
}

.amf-how__desc {
	max-width: 640px;
	margin: 0 0 30px;
	font-family: 'Inter', Arial, Helvetica, sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.62;
	color: #20312f;
}

.amf-how__desc p {
	margin: 0;
	font: inherit;
	color: inherit;
}

.amf-how__desc--two {
	margin-bottom: 0;
}

.amf-how__cards-wrap {
	position: relative;
	z-index: 3;
	width: 100%;
	margin: 42px 0 0;
}

.amf-how__cards-viewport {
	width: 100%;
	overflow: visible;
}

.amf-how__cards {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 28px;
	margin: 0;
}

.amf-how__cards-wrap--carousel .amf-how__cards-viewport {
	overflow: hidden;
}

.amf-how__cards--carousel {
	display: flex !important;
	grid-template-columns: none !important;
	will-change: transform;
}

.amf-how__cards--carousel .amf-how__card {
	flex: 0 0 auto;
}

.amf-how__card {
	display: flex;
	min-width: 0;
	min-height: 250px;
	padding: 34px 18px 20px;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	text-align: center;
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid rgba(218, 183, 125, 0.38);
	border-radius: 12px;
	box-shadow: 0 15px 38px rgba(53, 36, 8, 0.08);
	backdrop-filter: blur(2px);
	transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background-color 0.28s ease;
	will-change: transform;
}

.amf-how__card:hover,
.amf-how__card:focus-within {
	transform: translateY(-6px);
	box-shadow: 0 20px 45px rgba(53, 36, 8, 0.13);
}

.amf-how__card-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1em;
	height: 1em;
	margin: 0 0 22px;
	font-size: 66px;
	line-height: 1;
	color: #053f31;
}

.amf-how__card-icon svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.amf-how__card-icon::after {
	content: '';
	position: absolute;
	right: -4px;
	bottom: 0;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background-color: #c89532;
	opacity: 0.9;
}

.amf-how__card-text {
	max-width: 150px;
	margin: 0 auto 24px;
	font-family: 'Inter', Arial, Helvetica, sans-serif;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.55;
	color: #0f1d1b;
}

.amf-how__card-divider {
	width: 66px;
	height: 3px;
	margin-top: auto;
}

.amf-how__carousel-arrow {
	position: absolute;
	z-index: 5;
	top: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(218, 183, 125, 0.55);
	border-radius: 50%;
	font-family: 'Inter', Arial, Helvetica, sans-serif;
	font-size: 34px;
	font-weight: 500;
	line-height: 1;
	color: #063e2e;
	background-color: #ffffff;
	box-shadow: 0 12px 30px rgba(53, 36, 8, 0.12);
	cursor: pointer;
	transform: translateY(-50%);
	transition: color 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, opacity 0.22s ease;
}

.amf-how__carousel-arrow:hover,
.amf-how__carousel-arrow:focus {
	color: #ffffff;
	background-color: #063e2e;
	border-color: #063e2e;
	outline: none;
}

.amf-how__carousel-arrow:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

.amf-how__carousel-arrow--prev {
	left: -24px;
}

.amf-how__carousel-arrow--next {
	right: -24px;
}

.amf-how__carousel-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	margin-top: 24px;
}

.amf-how__carousel-dot {
	display: inline-flex;
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background-color: rgba(6, 62, 46, 0.25);
	cursor: pointer;
	transition: width 0.22s ease, background-color 0.22s ease, opacity 0.22s ease;
}

.amf-how__carousel-dot.is-active {
	width: 26px;
	background-color: #c89532;
}

.amf-how__leaf {
	position: absolute;
	z-index: 1;
	display: block;
	width: 180px;
	height: 270px;
	color: #eed4a1;
	opacity: 0.8;
	background-color: currentColor;
	pointer-events: none;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg width='210' height='320' viewBox='0 0 210 320' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M105 310C102 245 101 190 119 134C133 91 157 52 196 9' stroke='black' stroke-width='2'/%3E%3Cpath d='M112 268C83 250 58 231 35 204' stroke='black' stroke-width='2'/%3E%3Cpath d='M113 236C138 220 161 199 181 171' stroke='black' stroke-width='2'/%3E%3Cpath d='M115 199C82 181 54 157 28 125' stroke='black' stroke-width='2'/%3E%3Cpath d='M127 161C150 145 171 126 190 100' stroke='black' stroke-width='2'/%3E%3Cpath d='M139 124C112 106 91 84 72 55' stroke='black' stroke-width='2'/%3E%3Cpath d='M35 204C60 200 83 210 112 268C83 255 54 235 35 204Z' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M181 171C156 174 135 187 113 236C143 222 165 199 181 171Z' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M28 125C57 124 86 142 115 199C82 182 54 154 28 125Z' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M190 100C165 104 144 119 127 161C156 146 177 125 190 100Z' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M72 55C98 61 120 81 139 124C111 107 91 85 72 55Z' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E");
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	-webkit-mask-size: contain;
	mask-image: url("data:image/svg+xml,%3Csvg width='210' height='320' viewBox='0 0 210 320' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M105 310C102 245 101 190 119 134C133 91 157 52 196 9' stroke='black' stroke-width='2'/%3E%3Cpath d='M112 268C83 250 58 231 35 204' stroke='black' stroke-width='2'/%3E%3Cpath d='M113 236C138 220 161 199 181 171' stroke='black' stroke-width='2'/%3E%3Cpath d='M115 199C82 181 54 157 28 125' stroke='black' stroke-width='2'/%3E%3Cpath d='M127 161C150 145 171 126 190 100' stroke='black' stroke-width='2'/%3E%3Cpath d='M139 124C112 106 91 84 72 55' stroke='black' stroke-width='2'/%3E%3Cpath d='M35 204C60 200 83 210 112 268C83 255 54 235 35 204Z' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M181 171C156 174 135 187 113 236C143 222 165 199 181 171Z' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M28 125C57 124 86 142 115 199C82 182 54 154 28 125Z' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M190 100C165 104 144 119 127 161C156 146 177 125 190 100Z' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M72 55C98 61 120 81 139 124C111 107 91 85 72 55Z' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E");
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: contain;
}

.amf-how__leaf--top {
	top: 30px;
	right: -15px;
	transform: rotate(9deg);
}

.amf-how__leaf--bottom {
	bottom: -10px;
	left: 40px;
	transform: rotate(-20deg) scale(1.05);
}

@media (max-width: 1200px) {
	.amf-how__heading {
		font-size: clamp(40px, 4.8vw, 54px);
	}

	.amf-how__cards {
		gap: 22px;
	}
}

@media (max-width: 1024px) {
	.amf-how {
		padding-top: 82px;
		min-height: auto;
	}

	.amf-how__top {
		grid-template-columns: 1fr;
		gap: 44px;
	}

	.amf-how__image-wrap {
		max-width: 620px;
		margin-right: auto;
		margin-left: auto;
	}

	.amf-how__content {
		max-width: 720px;
		margin-right: auto;
		margin-left: auto;
	}

	.amf-how__heading,
	.amf-how__desc {
		max-width: 100%;
	}

	.amf-how__cards-wrap {
		margin: 35px 0 0;
	}

	.amf-how__cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.amf-how {
		padding-top: 48px;
		padding-bottom: 48px;
	}

	.amf-how__top {
		gap: 32px;
	}

	.amf-how-mobile-image-above-yes .amf-how__media {
		order: 1;
	}

	.amf-how-mobile-image-above-yes .amf-how__content {
		order: 2;
	}

	.amf-how__image {
		height: 420px;
		border-radius: 26px;
	}

	.amf-how__label-wrap {
		align-items: flex-start;
	}

	.amf-how__heading {
		font-size: clamp(34px, 10vw, 46px);
		line-height: 1.12;
	}

	.amf-how__desc {
		font-size: 16px;
		line-height: 1.7;
	}

	.amf-how__cards-wrap {
		margin: 30px 0 0;
	}

	.amf-how__cards {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.amf-how__carousel-arrow {
		width: 40px;
		height: 40px;
		font-size: 28px;
	}

	.amf-how__carousel-arrow--prev {
		left: 4px;
	}

	.amf-how__carousel-arrow--next {
		right: 4px;
	}

	.amf-how__card {
		min-height: 0;
		padding: 28px 18px 22px;
	}

	.amf-how__card-text {
		max-width: 100%;
	}


.amf-how__leaf {
		width: 120px;
		height: 180px;
	}

	.amf-how__leaf--top {
		top: 12px;
		right: -45px;
	}

	.amf-how__leaf--bottom {
		left: -30px;
	}
}


/* AM Food consistent container spacing */

@media (max-width: 1024px) {
	.amf-how__container {
		padding-left: 20px;
		padding-right: 20px;
	}
}

@media (max-width: 767px) {
	.amf-how__container {
		padding-left: 16px;
		padding-right: 16px;
	}
}

/* Mobile-only correction: keep text above image on phones without affecting desktop layout. */
@media (max-width: 767px) {
	.amf-how__top {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.amf-how__content {
		order: 1 !important;
	}

	.amf-how__media {
		order: 2 !important;
	}
}
