/* =============================================================================
   JL App Store Widget
   Full-bleed dark-gradient CTA: heading + body + store badges, divider,
   contact paragraph. Mobile-first — stacks vertically, then splits side-by-side
   at ≥1024px.
   ========================================================================== */

/* ── Zero out parent Elementor container padding & gap (full-bleed) ──────── */
.e-con:has(> .elementor-widget-jl-appstore),
.e-con:has(> .e-con-inner > .elementor-widget-jl-appstore) {
	--padding-top: 0 !important;
	--padding-bottom: 0 !important;
	--padding-block-start: 0 !important;
	--padding-block-end: 0 !important;
	--padding-inline-start: 0 !important;
	--padding-inline-end: 0 !important;
	padding: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	gap: 0 !important;
}

.e-con:has(> .e-con-inner > .elementor-widget-jl-appstore) > .e-con-inner {
	padding: 0 !important;
	gap: 0 !important;
	--padding-top: 0 !important;
	--padding-bottom: 0 !important;
}

/* ── Section wrapper (mobile base) ───────────────────────────────────────── */
.jl-appstore {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	padding: var(--jl-appstore-padding-y, 80px) 1.5rem;
	box-sizing: border-box;
	background-color: #4b667c; /* fallback before inline gradient applies */
}

/* ── Inner content wrapper ───────────────────────────────────────────────── */
.jl-appstore__inner {
	max-width: 1352px;
	margin-inline: auto;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2.5rem; /* 40px — Figma root gap */
}

/* ── Row (heading/body + badges) ─────────────────────────────────────────── */
.jl-appstore__row {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 2.5rem;
	width: 100%;
}

/* Text column */
.jl-appstore__text {
	display: flex;
	flex-direction: column;
	gap: 1rem; /* 16px — Figma */
	width: 100%;
	min-width: 0;
}

.jl-appstore__heading {
	font-family: 'Gotham Office', sans-serif;
	font-size: clamp(1.625rem, 4.5vw, 3rem); /* 26px mobile → 48px desktop */
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: 0;
	text-transform: uppercase;
	color: #ffffff;
	margin: 0;
}

.jl-appstore__body {
	font-family: 'Gotham Office', sans-serif;
	font-size: clamp(1rem, 1.38vw, 1.25rem); /* 16px → 20px */
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0.5px;
	color: #dddddd;
	margin: 0;
}

/* ── Badges ──────────────────────────────────────────────────────────────── */
.jl-appstore__badges {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1.25rem; /* 20px mobile; 40px at desktop */
	width: 100%;
}

.jl-appstore__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.8125rem; /* 13px — Figma */
	padding: 0.8125rem 0.625rem; /* 13px 10px — Figma */
	background: #ffffff;
	border: 1.625px solid #000000;
	border-radius: 9.75px;
	color: #000000;
	text-decoration: none;
	min-width: 186px; /* badge width constant across both */
	box-sizing: border-box;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jl-appstore__badge:hover,
.jl-appstore__badge:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
	text-decoration: none;
}

.jl-appstore__badge:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 3px;
}

.jl-appstore__badge-icon {
	flex: 0 0 auto;
	width: 32px;
	height: 39px;
}

.jl-appstore__badge-text {
	display: flex;
	flex-direction: column;
	line-height: 1;
	min-width: 0;
}

.jl-appstore__badge-top {
	font-family: 'Inter', 'Gotham Office', sans-serif;
	font-size: 12px;
	font-weight: 400;
	white-space: nowrap;
	color: inherit;
}

.jl-appstore__badge-bottom {
	font-family: 'Inter', 'Gotham Office', sans-serif;
	font-size: 20px;
	font-weight: 700;
	white-space: nowrap;
	color: inherit;
	margin-top: 2px;
}

/* ── Divider (shared schema) ─────────────────────────────────────────────── */
.jl-appstore__divider {
	width: var(--jl-appstore-divider-width, 128px);
	height: var(--jl-appstore-divider-thickness, 1px);
	border: none;
	margin: 0;
	background: linear-gradient(
		to right,
		transparent 0%,
		var(--jl-appstore-divider-color, #ffffff) 50%,
		transparent 100%
	);
}

.jl-appstore__divider--wide {
	background: linear-gradient(
		to right,
		transparent 0%,
		var(--jl-appstore-divider-color, #ffffff) 25%,
		var(--jl-appstore-divider-color, #ffffff) 75%,
		transparent 100%
	);
}

.jl-appstore__divider--left {
	background: linear-gradient(
		to right,
		var(--jl-appstore-divider-color, #ffffff) 0%,
		var(--jl-appstore-divider-color, #ffffff) 60%,
		transparent 100%
	);
}

/* ── Contact paragraph ───────────────────────────────────────────────────── */
.jl-appstore__contact {
	font-family: 'Gotham Office', sans-serif;
	font-size: clamp(1rem, 1.38vw, 1.25rem);
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0.5px;
	color: #dddddd;
	text-align: center;
	max-width: 858px;
	margin: 0;
}

.jl-appstore__contact a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.jl-appstore__contact a:hover,
.jl-appstore__contact a:focus-visible {
	text-decoration: none;
}

/* ── Tablet (≥768px) ─────────────────────────────────────────────────────── */
@media (min-width: 768px) {
	.jl-appstore {
		padding-left: 3rem;
		padding-right: 3rem;
	}

	.jl-appstore__badges {
		flex-direction: row;
		gap: 1.5rem;
	}
}

/* ── Desktop (≥1024px) — side-by-side text + badges ──────────────────────── */
@media (min-width: 1024px) {
	.jl-appstore__row {
		flex-direction: row;
		align-items: center;
	}

	.jl-appstore__text {
		flex: 1 1 auto;
	}

	.jl-appstore__badges {
		flex: 0 0 auto;
		width: auto;
		gap: 2.5rem; /* 40px — Figma desktop */
	}
}

@media (min-width: 1280px) {
	.jl-appstore {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
}
