/* ============================================================================
   App Store / Google Play badges — the home "Get the app" band and the footer.
   Markup: inc/laymoun-app-badges.php (app repo docs/plans/66). RTL mirrors by
   itself (flex follows the document direction); the badge images never flip.

   Store rules: official artwork only, at least 40px tall on screen, clear
   space of a quarter of the badge height around each one (Apple), and both
   badges the same visual height.
   ========================================================================== */

.lm-app-badges {
	--lm-badge-h: 44px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px; /* ≥ ¼ of the badge height */
}
.lm-app-badges--footer {
	--lm-badge-h: 40px;
	gap: 10px;
}

.lm-app-badge {
	display: inline-flex;
	line-height: 0;
}
.lm-app-badge img {
	display: block;
	width: auto;
	max-width: none;
	height: var(--lm-badge-h);
	border-radius: 0 !important; /* the theme rounds widget images (24px), which clipped the corners */
}
a.lm-app-badge {
	transition: transform 0.2s ease;
}
a.lm-app-badge:hover,
a.lm-app-badge:focus-visible {
	transform: translateY(-2px);
}

/* Google's PNG (646×250) has 41px of transparent padding on every side of a
   168px-tall badge. Size the file so the badge itself is --lm-badge-h tall,
   then pull the padding back in; overflow keeps its click area to the badge. */
.lm-app-badge--google {
	overflow: hidden;
}
.lm-app-badge--google img {
	height: calc(var(--lm-badge-h) * 250 / 168);
	margin: calc(var(--lm-badge-h) * -41 / 168);
}

/* ── Home: "Get the app" band ([laymoun_app_promo]) ───────────────────────── */
.lm-app-promo {
	display: flex;
	align-items: center;
	gap: 24px;
	margin: 40px 0;
	padding: 28px 32px;
	background: #eef5ea;
	border-radius: 16px;
}
.lm-app-promo-icon {
	flex: none;
	width: 72px;
	height: 72px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(24, 96, 52, 0.15);
}
.lm-app-promo-body {
	flex: 1 1 auto;
	min-width: 0;
}
/* Title Case like every other heading on the site (style.css, "Typography"). */
.lm-app-promo .lm-app-promo-title {
	margin: 0 0 6px;
	color: #186034;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
}
.lm-app-promo .lm-app-promo-text {
	margin: 0 0 16px;
	color: #4b5563;
	font-size: 15px;
	line-height: 1.6;
}

@media (max-width: 767px) {
	.lm-app-promo {
		flex-direction: column;
		gap: 16px;
		margin: 24px 0;
		padding: 24px 16px;
		text-align: center;
	}
	.lm-app-promo .lm-app-promo-title {
		font-size: 20px;
	}
	.lm-app-promo .lm-app-badges {
		justify-content: center;
	}
}

/* On the home page the band is the last section before the footer (app repo
   docs/plans/77), so it is a full-width strip of its own colour sitting on the
   footer, not a card on the white page: as a card it read as part of "Happy
   Laymouners" above it (owner, 2026-10-16). The content keeps the container's
   width; the row's colour is painted out to both screen edges by a box-shadow
   spread clipped to the row's height, so nothing is wider than the screen. */
.vc_row.lm-app-promo-row {
	margin-bottom: 0;
	background: #eef5ea;
	box-shadow: 0 0 0 100vmax #eef5ea;
	clip-path: inset(0 -100vmax);
}
.lm-app-promo-row .lm-app-promo {
	margin: 0;
	padding: 44px 0;
	background: transparent;
	border-radius: 0;
}
@media (max-width: 767px) {
	.lm-app-promo-row .lm-app-promo {
		padding: 32px 0;
	}
}

/* ── Footer: brand column, under the social icons ─────────────────────────── */
.lm-foot-app {
	margin-top: 22px;
}
.lm-foot-app .lm-foot-app-title {
	display: block;
	margin: 0 0 12px;
}

@media (max-width: 767px) {
	.lm-foot-app .lm-app-badges {
		justify-content: center; /* the brand column is centred on phones */
	}
}
