/*
 * Theme sparklepink — "Sparkle Pink"
 * Pop celebration: Banner 1–3 photography with falling confetti, bold Bebas
 * names, a "Just married" script badge, pink brush strokes and wave dividers.
 * Every rule is scoped to .theme-sparklepink (cover is teleported, so it carries the class too).
 */

.theme-sparklepink {
	--th-ink: #2b1f2a;
	--th-ink-deep: #1f1520;
	--th-paper: #ffffff;
	--th-blush: #fff1f3;
	--th-muted: #7a6b74;
	--th-pink: #e8576e;
	--th-pink-strong: #c93d55;
	--th-pink-light: #ffc2cc;
	--th-line: rgba(232, 87, 110, 0.22);

	--inv-accent: #e8576e;
	--inv-accent-hover: #ffffff;
	--inv-border: #fbd5db;
	--inv-border-strong: #f5aab6;
	--inv-tint: #fff1f3;
	--inv-surface: #ffffff;
	--inv-shadow: #2b1f2a;

	width: 100%;
	color: var(--th-ink);
	font-family: 'DM Sans', system-ui, sans-serif;
	font-size: 0.94rem;
	font-weight: 400;
	line-height: 1.75;
	background: var(--th-paper);
	-webkit-font-smoothing: antialiased;
}

/* ---------- Typography ---------- */

.theme-sparklepink h1,
.theme-sparklepink h2,
.theme-sparklepink h3,
.theme-sparklepink .caption,
.theme-sparklepink .sp-display {
	font-family: 'Bebas Neue', Impact, sans-serif;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.02em;
}

.theme-sparklepink .sp-script,
.theme-sparklepink .sp-names__amp,
.theme-sparklepink .sp-couple-amp {
	font-family: 'Allura', cursive;
	font-weight: 400;
}

.theme-sparklepink .sp-eyebrow {
	font-family: 'DM Sans', system-ui, sans-serif;
	font-size: 0.64rem;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	color: var(--th-pink);
}

.theme-sparklepink .sp-muted {
	color: var(--th-muted);
}

.theme-sparklepink .container {
	max-width: 30rem !important;
	margin-inline: auto;
	padding-inline: 1.5rem;
	text-align: center;
}

.theme-sparklepink .sp-section {
	position: relative;
	overflow: hidden;
	padding-block: 5rem;
}

.theme-sparklepink .sp-section--tight {
	padding: 2.5rem 1.5rem;
}

.theme-sparklepink .sp-blush {
	overflow: visible;
	background: var(--th-blush);
}

.theme-sparklepink .sp-blush::before {
	content: '';
	position: absolute;
	top: -1.4rem;
	left: 0;
	width: 100%;
	height: 1.5rem;
	background: var(--th-blush);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 48V24C240 0 480 0 720 24s480 24 720 0v24z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 48V24C240 0 480 0 720 24s480 24 720 0v24z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.theme-sparklepink .sp-pop {
	background:
		radial-gradient(90% 60% at 15% 0%, rgb(255 209 102 / 0.35), transparent 60%),
		linear-gradient(160deg, #f27a8d 0%, #e8576e 50%, #c93d55 100%);
	color: #fff;
}

/* ---------- Section heading ---------- */

.theme-sparklepink .sp-heading {
	margin-bottom: 2.75rem;
	text-align: center;
}

.theme-sparklepink .sp-heading__title {
	margin-top: 0.4rem;
	font-size: 3.1rem;
	color: var(--th-ink);
}

.theme-sparklepink .sp-heading__brush {
	width: 7.5rem;
	margin: 0.15rem auto 0;
}

.theme-sparklepink .sp-heading--dark .sp-eyebrow {
	color: #ffe3a3;
}

.theme-sparklepink .sp-heading--dark .sp-heading__title {
	color: #fff;
}

.theme-sparklepink .sp-heading--dark .sp-heading__brush {
	filter: brightness(0) invert(1);
	opacity: 0.85;
}

/* ---------- Hero / cover ---------- */

.theme-sparklepink .sp-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	min-height: 100dvh;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
	background: var(--th-ink);
	color: #fff;
}

.theme-sparklepink .sp-hero__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(180deg, rgb(43 31 42 / 0.45) 0%, rgb(43 31 42 / 0.1) 30%, rgb(43 31 42 / 0.25) 60%, rgb(201 61 85 / 0.7) 100%);
}

.theme-sparklepink .sp-hero__body {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 4rem 1.75rem 9rem;
	text-align: center;
}

.theme-sparklepink .sp-hero--cover .sp-hero__body {
	padding-bottom: 5rem;
}

.theme-sparklepink .sp-hero__body > * {
	animation: sp-rise 1.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.theme-sparklepink .sp-hero__body > :nth-child(1) {
	animation-delay: calc(var(--sp-delay, 0.4s) + 0.1s);
}
.theme-sparklepink .sp-hero__body > :nth-child(2) {
	animation-delay: calc(var(--sp-delay, 0.4s) + 0.3s);
}
.theme-sparklepink .sp-hero__body > :nth-child(3) {
	animation-delay: calc(var(--sp-delay, 0.4s) + 0.5s);
}
.theme-sparklepink .sp-hero__body > :nth-child(4) {
	animation-delay: calc(var(--sp-delay, 0.4s) + 0.65s);
}
.theme-sparklepink .sp-hero__body > :nth-child(5) {
	animation-delay: calc(var(--sp-delay, 0.4s) + 0.8s);
}

@keyframes sp-rise {
	from {
		opacity: 0;
		translate: 0 1.25rem;
		filter: blur(6px);
	}
	to {
		opacity: 1;
		translate: 0 0;
		filter: blur(0);
	}
}

.theme-sparklepink .sp-hero__logo {
	width: 8.5rem;
	padding: 0.6rem 0.9rem;
	border-radius: 1.25rem;
	background: rgb(255 255 255 / 0.92);
	box-shadow: 0 16px 34px -18px rgb(43 31 42 / 0.7);
	rotate: -4deg;
	animation-name: sp-rise, sp-wiggle !important;
	animation-duration: 1.3s, 4.5s !important;
	animation-iteration-count: 1, infinite !important;
	animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1), ease-in-out !important;
}

@keyframes sp-wiggle {
	0%,
	100% {
		rotate: -4deg;
	}
	50% {
		rotate: 3deg;
	}
}

.theme-sparklepink .sp-names {
	margin-top: 1.1rem;
	font-size: clamp(3.4rem, 17vw, 4.6rem);
	line-height: 0.92;
	color: #fff;
	text-shadow: 0 3px 24px rgb(43 31 42 / 0.4);
}

.theme-sparklepink .sp-names__amp {
	display: block;
	margin: 0.1rem 0;
	font-size: 0.75em;
	line-height: 0.9;
	color: var(--th-pink-light);
	text-shadow: none;
}

.theme-sparklepink .sp-hero__date {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: 1rem;
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: rgb(255 255 255 / 0.9);
}

.theme-sparklepink .sp-hero__date {
	padding: 0.35rem 0.9rem;
	border-radius: 999px;
	background: rgb(232 87 110 / 0.85);
}

.theme-sparklepink .sp-guest {
	margin-top: 1.75rem;
	min-width: 15rem;
	max-width: 18rem;
	padding: 0.9rem 1.25rem 1rem;
	border: 1px solid rgb(255 255 255 / 0.35);
	border-radius: 1.25rem;
	background: rgb(43 31 42 / 0.3);
	backdrop-filter: blur(10px);
	color: rgb(255 255 255 / 0.75);
}

.theme-sparklepink .sp-guest .sp-eyebrow {
	color: var(--th-pink-light);
}

.theme-sparklepink .sp-guest__name {
	margin-top: 0.2rem;
	font-family: 'Bebas Neue', Impact, sans-serif;
	font-size: 1.7rem;
	line-height: 1.1;
	color: #fff;
}

.theme-sparklepink .sp-guest__address {
	margin-top: 0.15rem;
	font-size: 0.78rem;
}

.theme-sparklepink .sp-hero__wave {
	position: absolute;
	bottom: -1px;
	left: 0;
	z-index: 3;
	width: 100%;
	height: 3.5rem;
	fill: var(--th-paper);
}

.theme-sparklepink .sp-hero__wave-back {
	fill: rgb(255 255 255 / 0.45);
	animation: sp-wave 7s ease-in-out infinite alternate;
}

@keyframes sp-wave {
	from {
		translate: -2% 0;
	}
	to {
		translate: 2% 4px;
	}
}

.theme-sparklepink .sp-scroll-cue {
	position: absolute;
	bottom: 7rem;
	left: 50%;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.15rem;
	translate: -50% 0;
	font-size: 0.58rem;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: rgb(255 255 255 / 0.75);
}

.theme-sparklepink .sp-scroll-cue svg {
	animation: sp-bob 2.2s ease-in-out infinite;
}

@keyframes sp-bob {
	0%,
	100% {
		translate: 0 0;
	}
	50% {
		translate: 0 5px;
	}
}

/* ---------- Buttons ---------- */

.theme-sparklepink .sp-btn {
	position: relative;
	display: inline-flex;
	min-height: 3rem;
	align-items: center;
	gap: 0.6rem;
	margin-top: 1.75rem;
	overflow: hidden;
	padding: 0 1.6rem;
	border-radius: 999px;
	background: linear-gradient(135deg, #ff8fa3 0%, #e8576e 55%, #c93d55 100%);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	box-shadow:
		inset 0 1px 0 rgb(255 255 255 / 0.35),
		0 18px 40px -16px rgb(0 0 0 / 0.65);
	transition: translate 0.3s ease;
}

.theme-sparklepink .sp-btn::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 0.4) 50%, transparent 70%);
	translate: -100% 0;
	animation: sp-shine 3.6s ease-in-out 2s infinite;
}

.theme-sparklepink .sp-btn:hover {
	translate: 0 -2px;
}

@keyframes sp-shine {
	0%,
	60% {
		translate: -100% 0;
	}
	100% {
		translate: 100% 0;
	}
}

.theme-sparklepink .sp-btn-outline,
.theme-sparklepink .sp-btn-ghost {
	display: inline-flex;
	min-height: 2.6rem;
	align-items: center;
	gap: 0.4rem;
	padding: 0 1.15rem;
	border: 1px solid var(--th-pink);
	border-radius: 999px;
	font-size: 0.66rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--th-pink-strong);
	transition:
		background 0.25s ease,
		color 0.25s ease;
}

.theme-sparklepink .sp-btn-outline:hover {
	background: var(--th-pink);
	color: #fff;
}

.theme-sparklepink .sp-btn-ghost {
	border-color: rgb(255 194 204 / 0.5);
	background: rgb(43 31 42 / 0.3);
	backdrop-filter: blur(6px);
	color: #fff;
	letter-spacing: 0.08em;
	text-transform: none;
	font-size: 0.75rem;
}

.theme-sparklepink .sp-btn-ghost:hover {
	background: var(--th-paper);
	color: var(--th-ink);
}

/* ---------- Intro / information ---------- */

.theme-sparklepink .sp-intro {
	padding-inline: 1.75rem;
	text-align: center;
}

.theme-sparklepink .sp-intro .caption {
	font-size: 2rem;
}

/* ---------- Couple — offset pop frames ---------- */

.theme-sparklepink .sp-portrait {
	position: relative;
	isolation: isolate;
	width: 14rem;
	margin: 0 auto 1.75rem;
	aspect-ratio: 4 / 5;
}

.theme-sparklepink .sp-portrait::before,
.theme-sparklepink .sp-portrait::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 1.5rem;
	transition: translate 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-sparklepink .sp-portrait::before {
	border: 2px solid var(--th-pink);
	translate: 0.9rem 0.9rem;
}

.theme-sparklepink .sp-portrait::after {
	background: repeating-linear-gradient(135deg, rgb(232 87 110 / 0.35) 0 1.5px, transparent 1.5px 9px);
	translate: -0.9rem -0.9rem;
	z-index: -1;
}

.theme-sparklepink .sp-portrait.is-right::before {
	translate: -0.9rem 0.9rem;
}

.theme-sparklepink .sp-portrait.is-right::after {
	translate: 0.9rem -0.9rem;
}

.theme-sparklepink .sp-portrait:hover::before,
.theme-sparklepink .sp-portrait:hover::after {
	translate: 0 0;
}

.theme-sparklepink .sp-portrait__photo {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 1.5rem;
	box-shadow: 0 22px 40px -24px rgb(43 31 42 / 0.6);
}



.theme-sparklepink .sp-couple-amp {
	font-family: 'Allura', cursive;
	font-size: 4rem;
	line-height: 1;
	color: var(--th-pink);
}

/* ---------- Photo breaks ---------- */

.theme-sparklepink .sp-break {
	--photo-break-height: 82dvh;
	--photo-break-shade: linear-gradient(180deg, rgb(43 31 42 / 0.5) 0%, rgb(43 31 42 / 0.72) 100%);
}

.theme-sparklepink .sp-break .photo-break__content {
	z-index: 3;
}

.theme-sparklepink .sp-break--agenda {
	--photo-break-height: auto;
	--photo-break-shade: linear-gradient(180deg, rgb(43 31 42 / 0.72) 0%, rgb(43 31 42 / 0.55) 50%, rgb(43 31 42 / 0.8) 100%);
}

.theme-sparklepink .sp-break--agenda .photo-break__content {
	max-width: 30rem;
	padding-block: 5rem;
}

.theme-sparklepink .sp-quote-mark {
	display: block;
	height: 3.25rem;
	font-family: 'Bebas Neue', Impact, sans-serif;
	font-size: 6rem;
	line-height: 1;
	color: var(--th-pink-light);
}

.theme-sparklepink .sp-closing {
	--photo-break-height: 100dvh;
	--photo-break-shade: linear-gradient(180deg, rgb(43 31 42 / 0.3) 0%, rgb(43 31 42 / 0.82) 100%);
}

/* ---------- Agenda — white cards on photo ---------- */

.theme-sparklepink .sp-event {
	display: grid;
	grid-template-columns: 4.75rem 1fr;
	overflow: hidden;
	border-radius: 1.5rem;
	background: #fff;
	color: var(--th-ink);
	text-align: left;
	box-shadow: 0 30px 50px -30px rgb(0 0 0 / 0.85);
}

.theme-sparklepink .sp-event__date {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	padding: 1.5rem 0.5rem;
	background: linear-gradient(180deg, #ff8fa3 0%, #e8576e 100%);
}

.theme-sparklepink .sp-event__day {
	font-family: 'Bebas Neue', Impact, sans-serif;
	font-size: 2.9rem;
	line-height: 1;
	color: #fff;
}

.theme-sparklepink .sp-event__month {
	writing-mode: vertical-rl;
	rotate: 180deg;
	font-size: 0.6rem;
	font-weight: 600;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: rgb(255 255 255 / 0.85);
}

.theme-sparklepink .sp-event__body {
	padding: 1.5rem 1.4rem 1.6rem;
}

.theme-sparklepink .sp-event__body h3 {
	font-style: normal !important;
	font-size: 2.1rem !important;
}

/* ---------- Countdown — pink pop tiles ---------- */

.theme-sparklepink .sp-countbar {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.6rem;
}

.theme-sparklepink .sp-countbar > div {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 1rem 0 0.85rem;
	border-radius: 1.1rem;
	background: #fff;
	box-shadow: 0 16px 30px -18px rgb(43 31 42 / 0.55);
}

.theme-sparklepink .sp-count__value {
	font-family: 'Bebas Neue', Impact, sans-serif;
	font-size: 2.7rem;
	font-variant-numeric: tabular-nums lining-nums;
	line-height: 1;
	color: var(--th-pink);
}

.theme-sparklepink .sp-count__label {
	margin-top: 0.5rem;
	font-size: 0.56rem;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--th-muted);
}

/* ---------- Gallery, story, panels ---------- */

.theme-sparklepink .sp-photo {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 1rem;
	background: var(--th-blush);
}

.theme-sparklepink .sp-photo::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px rgb(232 87 110 / 0.18);
	pointer-events: none;
}

.theme-sparklepink .sp-panel {
	border: 1px solid var(--inv-border);
	border-radius: 1rem;
	background: var(--inv-surface);
	box-shadow: 0 22px 40px -32px rgb(43 31 42 / 0.5);
}

.theme-sparklepink .videoWrapper {
	position: relative;
	height: 0;
	margin-bottom: 1.25rem;
	overflow: hidden;
	padding-bottom: 56.25%;
	border-radius: 0.75rem;
	background: var(--th-ink);
}

.theme-sparklepink .videoWrapper iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.theme-sparklepink footer {
	background: var(--th-ink-deep);
	color: rgb(255 255 255 / 0.6);
}

/* ---------- Cover overlay — fixed, teleported to <body> ---------- */

.theme-sparklepink.theme-sparklepink-cover {
	--sp-delay: 0.15s;
	position: fixed;
	top: 0;
	left: 50%;
	z-index: 99999;
	width: 100%;
	max-width: 430px;
	height: 100dvh;
	overflow: hidden;
	background: var(--th-ink);
	transform: translateX(-50%) translateY(0);
	transition:
		transform 1.1s cubic-bezier(0.77, 0, 0.18, 1),
		visibility 0s linear 0s;
}

.theme-sparklepink.theme-sparklepink-cover .sp-hero {
	height: 100dvh;
}

.theme-sparklepink.theme-sparklepink-cover.is-open {
	visibility: hidden;
	pointer-events: none;
	transform: translateX(-50%) translateY(-100%);
	transition:
		transform 1.1s cubic-bezier(0.77, 0, 0.18, 1),
		visibility 0s linear 1.1s;
}

/* ---------- Scroll reveal ---------- */

.theme-sparklepink .aos-init {
	opacity: 0 !important;
	pointer-events: none;
}

.theme-sparklepink .aos-init[data-aos='fade-up'] {
	transform: translate3d(0, 2rem, 0);
}

.theme-sparklepink .aos-init[data-aos='zoom-in'] {
	transform: scale3d(0.92, 0.92, 0.92);
}

@media (prefers-reduced-motion: reduce) {
	.theme-sparklepink .aos-init {
		opacity: 1 !important;
		pointer-events: auto;
		transform: none !important;
	}

	.theme-sparklepink .sp-hero__body > *,
	.theme-sparklepink .sp-btn::before,
	.theme-sparklepink .sp-scroll-cue svg,
	.theme-sparklepink .sp-hero__wave-back {
		animation: none !important;
	}

	.theme-sparklepink.theme-sparklepink-cover,
	.theme-sparklepink.theme-sparklepink-cover.is-open {
		transition: none;
	}
}
