/* What We Deliver — full-width horizontal expand panels */
.divine-deliver {
	display: flex;
	align-items: stretch;
	gap: 12px;
	width: 100%;
	height: clamp(420px, 58vh, 560px);
	margin-top: 28px;
}

.divine-deliver__panel {
	position: relative;
	flex: 0 0 78px;
	min-width: 78px;
	border-radius: 20px;
	overflow: hidden;
	isolation: isolate;
	cursor: pointer;
	background: #05172f;
	border: 1px solid rgba(5, 23, 47, 0.12);
	transition:
		flex-basis 0.7s cubic-bezier(0.22, 1, 0.36, 1),
		flex-grow 0.7s cubic-bezier(0.22, 1, 0.36, 1),
		min-width 0.7s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.4s ease;
}

.divine-deliver__panel.is-active {
	flex: 1 1 auto;
	min-width: 0;
	box-shadow: 0 22px 50px rgba(5, 23, 47, 0.18);
	cursor: default;
}

.divine-deliver__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.divine-deliver__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transform: scale(1.08);
	opacity: 0.35;
	filter: saturate(0.85);
	transition:
		opacity 0.65s ease,
		transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
		filter 0.65s ease;
}

.divine-deliver__panel.is-active .divine-deliver__media img {
	opacity: 1;
	transform: scale(1);
	filter: saturate(1);
}

.divine-deliver__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(
			180deg,
			rgba(5, 21, 46, 0.15) 0%,
			rgba(5, 21, 46, 0.35) 42%,
			rgba(5, 21, 46, 0.88) 100%
		);
	transition: background 0.55s ease;
}

.divine-deliver__panel.is-active .divine-deliver__media::after {
	background:
		linear-gradient(
			180deg,
			rgba(5, 21, 46, 0.1) 0%,
			rgba(5, 21, 46, 0.28) 40%,
			rgba(5, 21, 46, 0.82) 100%
		);
}

.divine-deliver__panel:not(.is-active) .divine-deliver__media::after {
	background:
		linear-gradient(
			180deg,
			rgba(5, 21, 46, 0.55) 0%,
			rgba(5, 21, 46, 0.82) 100%
		);
}

.divine-deliver__body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 100%;
	padding: 22px 18px;
	color: #fff;
}

.divine-deliver__index {
	display: inline-block;
	font-family: "Manrope", system-ui, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #e0d07a !important;
	margin-bottom: 10px;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
	transition: opacity 0.35s ease, transform 0.45s ease;
}

.divine-deliver h3.divine-deliver__title,
.divine-deliver__title {
	margin: 0 !important;
	font-family: "Manrope", system-ui, sans-serif !important;
	font-size: clamp(22px, 2.4vw, 32px) !important;
	font-weight: 700 !important;
	line-height: 1.15 !important;
	letter-spacing: -0.02em !important;
	color: #ffffff !important;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.divine-deliver p.divine-deliver__text,
.divine-deliver__text {
	margin: 12px 0 0 !important;
	max-width: 42ch;
	font-family: "Source Sans 3", system-ui, sans-serif !important;
	font-size: clamp(15px, 1.2vw, 17px) !important;
	line-height: 1.55 !important;
	color: #ffffff !important;
	opacity: 0;
	visibility: hidden;
	transform: translateY(14px);
	max-height: 0;
	overflow: hidden;
	transition:
		opacity 0.45s ease 0.12s,
		transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s,
		max-height 0.55s ease,
		visibility 0.45s;
}

.divine-deliver__panel.is-active .divine-deliver__text {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	max-height: 160px;
}

/* Collapsed = slim vertical tab */
.divine-deliver__panel:not(.is-active) .divine-deliver__body {
	align-items: center;
	justify-content: center;
	padding: 18px 10px;
	text-align: center;
}

.divine-deliver__panel:not(.is-active) .divine-deliver__index {
	writing-mode: horizontal-tb;
	margin-bottom: 14px;
}

.divine-deliver__panel:not(.is-active) h3.divine-deliver__title,
.divine-deliver__panel:not(.is-active) .divine-deliver__title {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-size: 15px !important;
	letter-spacing: 0.04em !important;
	white-space: nowrap;
	max-height: 70%;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #ffffff !important;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.divine-deliver__panel:not(.is-active):hover {
	flex-basis: 92px;
	min-width: 92px;
}

.divine-deliver__panel:not(.is-active):hover .divine-deliver__media img {
	opacity: 0.5;
	transform: scale(1.04);
}

.divine-deliver__panel:focus-visible {
	outline: 2px solid var(--brand-gold, #c7b256);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.divine-deliver__panel,
	.divine-deliver__media img,
	.divine-deliver__text {
		transition: none !important;
	}
}

@media (max-width: 900px) {
	.divine-deliver {
		flex-direction: column;
		height: auto;
		gap: 10px;
	}

	.divine-deliver__panel {
		flex: 0 0 auto;
		min-height: 72px;
		min-width: 0;
		width: 100%;
	}

	.divine-deliver__panel.is-active {
		min-height: 320px;
	}

	.divine-deliver__panel:not(.is-active) .divine-deliver__body {
		flex-direction: row;
		justify-content: flex-start;
		align-items: center;
		gap: 14px;
		padding: 18px 20px;
		text-align: left;
	}

	.divine-deliver__panel:not(.is-active) .divine-deliver__index {
		margin-bottom: 0;
	}

	.divine-deliver__panel:not(.is-active) .divine-deliver__title {
		writing-mode: horizontal-tb;
		transform: none;
		font-size: 17px;
		max-height: none;
		white-space: normal;
	}

	.divine-deliver__panel:not(.is-active):hover {
		flex-basis: auto;
		min-width: 0;
	}
}
