/* Package steps — "The Five Steps" on the Packages page (Claude Design handoff,
   design-reference/packages/). A 520px photo beside five numbered steps on the
   artboard's 1400px row, then a cream note and the PDF button. Gaps and sizes
   are the artboard's; body copy, rules and buttons follow design.md. */
.bsw-package-steps.wp-block-group.alignfull {
	background: #fff;
	padding: 75px 20px 74px !important;
	margin-block: 0 !important;
}

/* Italic Cormorant heading with the standard gold rule below */
h2.bsw-package-steps__heading {
	font-family: var(--wp--preset--font-family--cormorant, 'Cormorant', serif) !important;
	font-style: italic !important;
	font-weight: 400 !important;
	font-size: 42px !important;
	line-height: 1 !important;
	color: var(--wp--preset--color--taupe, #8c857b) !important;
	margin-block: 0 !important;
}

h2.bsw-package-steps__heading::after {
	content: "";
	display: block;
	width: 43px;
	height: 1.5px;
	background: #baaa7c;
	margin: 22px auto 0;
}

/* Core ships columns with a 1.75em bottom margin — set both ends (system.md §7). */
.bsw-package-steps__row.wp-block-columns {
	gap: 80px;
	align-items: stretch;
	margin-block: 52px 0 !important;
}

/* ── Photo ───────────────────────────────────────────────────────────── */

.bsw-package-steps__photo-col.wp-block-column {
	flex: 0 0 520px !important;
	display: flex;
}

/* The photo stretches to the height of the step list (760px at least). */
.bsw-package-steps__photo.wp-block-image {
	position: relative;
	flex: 1 1 auto;
	min-height: 760px;
	margin: 0 !important;
}

.bsw-package-steps__photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 45%;
}

/* Credit — the caption, set over the photo's bottom-right corner */
.bsw-package-steps__photo figcaption.wp-element-caption {
	position: absolute;
	right: 12px;
	bottom: 12px;
	margin: 0 !important;
	font-family: var(--wp--preset--font-family--cardo, 'Cardo', serif) !important;
	font-size: 14px !important;
	font-style: italic !important;
	line-height: 1 !important;
	color: #fff !important;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* ── Steps ───────────────────────────────────────────────────────────── */

.bsw-package-steps__list.wp-block-column {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.bsw-package-steps__step.wp-block-group {
	display: flex;
	align-items: flex-start;
	gap: 34px;
	padding-block: 30px;
	margin-block: 0 !important;
	border-bottom: 1px solid #baaa7c;
}

.bsw-package-steps__step.wp-block-group:last-child {
	border-bottom: 0;
}

p.bsw-package-steps__number {
	flex: 0 0 44px;
	font-family: var(--wp--preset--font-family--cormorant, 'Cormorant', serif) !important;
	font-style: italic !important;
	font-weight: 400 !important;
	font-size: 60px !important;
	line-height: 52px !important;
	font-variant-numeric: lining-nums;
	text-align: center;
	color: var(--wp--preset--color--mauve, #ba878f) !important;
	margin: 0 !important;
}

.bsw-package-steps__text.wp-block-group {
	flex: 1 1 auto;
	margin: 0 !important;
}

/* A step down from the 42px heading — the artboard's third level, kept as drawn
   (the same call as Dining's Ironstone name). */
h3.bsw-package-steps__title {
	font-family: var(--wp--preset--font-family--cormorant, 'Cormorant', serif) !important;
	font-style: italic !important;
	font-weight: 400 !important;
	font-size: 30px !important;
	line-height: 34px !important;
	color: var(--wp--preset--color--taupe, #8c857b) !important;
	margin: 0 !important;
}

p.bsw-package-steps__body {
	font-family: var(--wp--preset--font-family--cardo, 'Cardo', serif);
	font-size: 16px;
	line-height: 28px;
	color: var(--wp--preset--color--charcoal, #373737);
	margin: 10px 0 0 !important;
}

/* Menu link — link colour with a standing 1px underline that regrows from the
   centre on hover (the artboard's "step-link"). It opens an overlay rather than
   leaving the page, so the rule stays visible at rest. */
p.bsw-package-steps__link {
	margin: 12px 0 0 !important;
	line-height: 1;
}

p.bsw-package-steps__link a {
	position: relative;
	display: inline-flex;
	padding-bottom: 4px;
	font-family: var(--wp--preset--font-family--cardo, 'Cardo', serif);
	font-size: 16px;
	line-height: 1;
	color: #8e4e58;
	text-decoration: none;
	transition: color 0.2s ease;
}

p.bsw-package-steps__link a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: currentColor;
	transform-origin: center;
}

p.bsw-package-steps__link a:hover,
p.bsw-package-steps__link a:focus-visible {
	color: var(--wp--preset--color--mauve, #ba878f);
}

p.bsw-package-steps__link a:hover::after {
	animation: bsw-package-steps-line 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes bsw-package-steps-line {
	from { transform: scaleX(0); }
	to   { transform: scaleX(1); }
}

/* ── Note + PDF button ───────────────────────────────────────────────── */

p.bsw-package-steps__note {
	max-width: 860px !important;
	margin: 52px auto 0 !important;
	padding: 28px 50px;
	background: #f8f7f4;
	font-family: var(--wp--preset--font-family--cardo, 'Cardo', serif);
	font-size: 16px;
	line-height: 28px;
	color: var(--wp--preset--color--stone, #867b70);
}

.bsw-package-steps .wp-block-buttons {
	margin-block: 36px 0 !important;
}

.bsw-package-steps__cta .wp-block-button__link {
	font-family: var(--wp--preset--font-family--cardo, 'Cardo', serif) !important;
	font-size: 18px !important;
	font-weight: 400 !important;
	color: var(--wp--preset--color--taupe, #8c857b) !important;
	background: transparent !important;
	border: 1.5px solid var(--wp--preset--color--blush, #d7a3ac) !important;
	border-radius: 0 !important;
	min-height: 61px;
	min-width: 301px;
	padding-inline: 34px !important;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-decoration: none !important;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.bsw-package-steps__cta .wp-block-button__link:hover {
	background: var(--wp--preset--color--blush, #d7a3ac) !important;
	color: #fff !important;
}

@media (prefers-reduced-motion: reduce) {
	p.bsw-package-steps__link a:hover::after {
		animation: none;
	}
}

@media (max-width: 767px) {
	/* The intro's 60px owns the gap above; 56px to the photo bar below. */
	.bsw-package-steps.wp-block-group.alignfull {
		padding: 0 20px 56px !important;
	}

	h2.bsw-package-steps__heading {
		font-size: 38px !important;
	}

	h2.bsw-package-steps__heading::after {
		margin-top: 20px;
	}

	/* Photo over the steps */
	.bsw-package-steps__row.wp-block-columns {
		flex-direction: column;
		gap: 8px;
		margin-block-start: 28px !important;
	}

	.bsw-package-steps__photo-col.wp-block-column,
	.bsw-package-steps__list.wp-block-column {
		flex: 1 1 100% !important;
		flex-basis: 100% !important;
	}

	.bsw-package-steps__photo.wp-block-image {
		min-height: 420px;
	}

	.bsw-package-steps__photo figcaption.wp-element-caption {
		right: 10px;
		bottom: 10px;
		font-size: 12px !important;
	}

	.bsw-package-steps__step.wp-block-group {
		gap: 18px;
		padding-block: 24px;
	}

	p.bsw-package-steps__number {
		flex-basis: 32px;
		font-size: 46px !important;
		line-height: 40px !important;
	}

	h3.bsw-package-steps__title {
		font-size: 24px !important;
		line-height: 28px !important;
	}

	p.bsw-package-steps__body {
		margin-block-start: 8px !important;
	}

	p.bsw-package-steps__link {
		margin-block-start: 10px !important;
	}

	p.bsw-package-steps__note {
		margin-block-start: 28px !important;
		padding: 22px 20px;
	}

	/* Full-width capped button — centre the link itself (system.md §7). */
	.bsw-package-steps .wp-block-buttons {
		width: 100% !important;
		margin-block-start: 28px !important;
	}

	.bsw-package-steps__cta.wp-block-button {
		width: 100% !important;
	}

	.bsw-package-steps__cta .wp-block-button__link {
		width: 100% !important;
		min-width: 0 !important;
		max-width: 301px;
		min-height: 56px;
		margin-inline: auto;
		padding-inline: 26px !important;
	}
}
