/**
 * Home page: the Wedding Invite Maker band (includes/class-invite-home.php).
 * Full width, in the site's own colours: a soft tint of the brand teal,
 * the theme's type, and its light and dark tokens. The sample invites keep
 * their own colours; they are the product. Logical properties only, so it
 * flips for Urdu.
 *
 * The brand colour is read as rgb(var(--msm-brand-rgb)) rather than
 * var(--msm-brand): the theme's dark mode changes only the RGB triplet,
 * and --msm-brand, worked out once on :root, would stay the light teal.
 */

.msm-wed-home {
	padding: 0;
	border-block: 1px solid rgba(var(--msm-brand-rgb, 13, 124, 109), 0.18);
	background: rgba(var(--msm-brand-rgb, 13, 124, 109), 0.08);
	color: var(--text-primary, #1c1917);
}

.msm-wed-band {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 540px;
	box-sizing: border-box;
	padding-block: 48px;
}

.msm-wed-copy {
	flex: 1 1 520px;
	max-width: 600px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.msm-wed-kicker {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: var(--msm-brand-hover, #0b6357);
	font-family: var(--msm-font-mono, ui-monospace, monospace);
	font-size: 0.75rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.msm-wed-new {
	padding: 2px 9px;
	border-radius: 10px;
	background: rgb(var(--msm-brand-rgb, 13, 124, 109));
	color: var(--msm-on-brand, #ffffff);
	font-family: var(--msm-font-body, system-ui, sans-serif);
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
}

.msm-wed-home h2 {
	margin: 0;
	color: var(--text-primary, #1c1917);
	font-family: var(--msm-font-display, system-ui, sans-serif);
	font-size: clamp(1.85rem, 3.4vw, 2.75rem);
	line-height: 1.08;
	letter-spacing: -0.02em;
}

.msm-wed-text {
	margin: 0;
	max-width: 52ch;
	color: var(--text-secondary, #44403c);
	font-size: 1.09rem;
	line-height: 1.6;
}

.msm-wed-points {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 22px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.95rem;
}

.msm-wed-points li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.msm-wed-ic {
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 16px;
	background: var(--bg-surface, #ffffff);
	color: rgb(var(--msm-brand-rgb, 13, 124, 109));
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.msm-wed-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 22px;
	margin: 10px 0 0;
}

.msm-wed-home .msm-wed-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	box-sizing: border-box;
	padding: 0 28px;
	border-radius: 27px;
	background: rgb(var(--msm-brand-rgb, 13, 124, 109));
	color: var(--msm-on-brand, #ffffff);
	font-family: var(--msm-font-display, system-ui, sans-serif);
	font-size: 1.06rem;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 10px 24px rgba(var(--msm-brand-rgb, 13, 124, 109), 0.25);
	transition: background 0.15s ease, transform 0.15s ease;
}

.msm-wed-home .msm-wed-btn:hover {
	background: var(--msm-brand-hover, #0b6357);
	color: var(--msm-on-brand, #ffffff);
	transform: translateY(-1px);
}

.msm-wed-home .msm-wed-btn:focus-visible {
	outline: 3px solid rgb(var(--msm-brand-rgb, 13, 124, 109));
	outline-offset: 3px;
}

[dir="rtl"] .msm-wed-arrow {
	display: inline-block;
	transform: scaleX(-1);
}

.msm-wed-note {
	color: var(--text-secondary, #44403c);
	font-size: 0.88rem;
}

.msm-wed-phones {
	position: relative;
	flex: 1 1 440px;
	min-width: 0;
	height: 470px;
}

.msm-wed-phone {
	position: absolute;
	display: block;
	border: 6px solid #1c1917;
	border-radius: 24px;
	overflow: hidden;
	background: #1c1917;
	box-shadow: 0 18px 40px rgba(28, 25, 23, 0.22);
}

.msm-wed-phone img {
	display: block;
	width: 100%;
	height: auto;
}

.msm-wed-phone-1 {
	top: 64px;
	inset-inline-start: 4%;
	width: 190px;
	transform: rotate(-9deg);
}

.msm-wed-phone-2 {
	top: 10px;
	inset-inline-start: calc(50% - 113px);
	z-index: 2;
	width: 214px;
	border-width: 7px;
	border-radius: 26px;
	box-shadow: 0 24px 50px rgba(28, 25, 23, 0.3);
}

.msm-wed-phone-3 {
	top: 64px;
	inset-inline-end: 4%;
	width: 190px;
	transform: rotate(9deg);
}

.msm-wed-chip {
	position: absolute;
	top: 6px;
	inset-inline-end: 2%;
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px;
	border-radius: 14px;
	background: var(--bg-surface, #ffffff);
	color: var(--text-secondary, #57534e);
	font-size: 0.72rem;
	box-shadow: 0 10px 24px rgba(28, 25, 23, 0.16);
	transform: rotate(4deg);
}

.msm-wed-chip strong {
	color: var(--msm-brand-hover, #0b6357);
	font-size: 0.74rem;
}

@media (max-width: 960px) {
	.msm-wed-band {
		flex-direction: column;
		align-items: stretch;
		min-height: 0;
		padding-block: 24px 36px;
	}

	.msm-wed-phones {
		order: -1;
		flex: none;
		height: 320px;
		width: 100%;
		max-width: 360px;
		margin: 0 auto;
	}

	.msm-wed-phone-1,
	.msm-wed-phone-3 {
		top: 48px;
		width: 112px;
		border-width: 4px;
		border-radius: 16px;
	}

	.msm-wed-phone-2 {
		top: 18px;
		inset-inline-start: calc(50% - 68px);
		width: 136px;
		border-width: 5px;
		border-radius: 18px;
	}

	.msm-wed-chip {
		display: none;
	}

	.msm-wed-copy {
		max-width: none;
	}

	.msm-wed-points {
		grid-template-columns: 1fr;
	}

	.msm-wed-home .msm-wed-btn {
		width: 100%;
	}

	.msm-wed-note {
		width: 100%;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.msm-wed-home .msm-wed-btn {
		transition: none;
	}
}
