/**
 * App Download CTA
 *
 * Design ref: design-preferences/css-exports/Home Page/app-download-cta.css
 * Frame 48: fixed 1376×218 cream container, centered with page gutters —
 * background must not go edge-to-edge.
 */

.app-download-cta {
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 32px;
	width: 100%;
	max-width: var(--app-download-max);
	margin: var(--home-section-gap) auto;
	padding: 0 var(--app-download-pad-right) 0 var(--app-download-pad-left);
	height: var(--app-download-height);
	box-sizing: border-box;
	background-color: var(--color-bg-cream-2);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-blend-mode: hard-light;
	overflow: hidden;
}

.app-download-cta__content {
	/* Icon at 21px; text starts at 121px → 90px icon + 10px gap */
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 620px;
	min-width: 0;
	z-index: 1;
}

.app-download-cta__icon {
	width: 90px;
	height: 90px;
	flex-shrink: 0;
	color: var(--color-accent);
}

/* Section-scoped to outweigh WooCommerce's `.woocommerce img { height: auto }`,
   which applies on shop/category/product/cart pages but not the front page. */
.app-download-cta .app-download-cta__icon-img,
.app-download-cta .app-download-cta__icon-svg {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.app-download-cta__text {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.app-download-cta__title {
	margin: 0;
	font-family: var(--font-heading);
	font-size: 40px;
	font-weight: 400;
	line-height: 56px;
	letter-spacing: -0.4px;
	color: var(--color-heading);
}

.app-download-cta__description {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 28px;
	color: var(--color-body-76);
}

.app-download-cta__stores {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 23px;
	flex-shrink: 0;
	z-index: 1;
	/* Figma: badge row ends at band-x1182.9, QR spans 1232..1350 (26px inset),
	   leaving a 49px channel between the Google Play badge and the QR.
	   The band already carries the 26px right padding, so only the QR width and
	   that channel belong here. */
	margin-right: calc(var(--app-download-qr-size) + 49px);
}

.app-download-cta__store-link {
	display: inline-block;
	line-height: 0;
	transition: opacity 0.2s ease;
}

.app-download-cta__store-link:hover,
.app-download-cta__store-link:focus {
	opacity: 0.85;
	outline: none;
}

.app-download-cta__store-link img,
.app-download-cta__store-badge {
	display: block;
	height: 51px;
	width: auto;
}

.app-download-cta__pattern {
	position: absolute;
	right: var(--app-download-pad-right);
	bottom: auto;
	width: var(--app-download-qr-size);
	height: var(--app-download-qr-size);
	z-index: 0;
	pointer-events: none;
}

/* Section-scoped for the same reason as the icon above. */
.app-download-cta .app-download-cta__pattern-img,
.app-download-cta .app-download-cta__pattern-svg {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

@media (max-width: 991px) {
	.app-download-cta {
		flex-direction: column;
		gap: 40px;
		height: auto;
		text-align: center;
		padding: 50px 30px;
	}

	.app-download-cta__content {
		flex-direction: column;
		max-width: 100%;
	}

	.app-download-cta__stores {
		justify-content: center;
		flex-wrap: wrap;
		margin-right: 0;
	}

	.app-download-cta__pattern {
		display: none;
	}
}

@media (max-width: 575px) {
	.app-download-cta {
		padding: 40px 20px;
		margin: 24px auto;
	}

	.app-download-cta__icon {
		width: 64px;
		height: 64px;
	}

	.app-download-cta__title {
		font-size: 30px;
		line-height: 40px;
	}

	.app-download-cta__store-link img,
	.app-download-cta__store-badge {
		height: 46px;
	}
}
