/* Visual Nikko: layout, typography, colors and controls over the Core baseline.
 * Retains standalone layout/state rules for the theme's existing Core-off fallback.
 */

.nikko-promotions {
	--nikko-promotion-copy-width: 620px;
	position: relative;
	isolation: isolate;
	left: 50%;
	margin-left: -50vw;
	overflow: hidden;
	cursor: grab;
	touch-action: pan-y;
	color: #fff;
	font-family: var(--nikko-font-sans, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif);
	width: 100vw;
	max-width: 100vw;
}

.nikko-promotions,
.nikko-promotions * {
	box-sizing: border-box;
}

.nikko-promotions.is-dragging {
	cursor: grabbing;
	user-select: none;
	-webkit-user-select: none;
}

.nikko-promotions__intro {
	position: absolute;
	top: 28px;
	left: clamp(16px, 3vw, 44px);
	z-index: 3;
	width: 400px;
	max-width: calc(50% - 64px);
	padding: 9px 15px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 18px;
	background: rgba(9, 19, 16, .76);
	pointer-events: none;
}

.nikko-promotions .nikko-promotions__identity {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: #fff;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: .5px;
	text-shadow: none;
	text-wrap: balance;
}

.nikko-promotions .nikko-promotions__introduction {
	margin: 8px 0 0;
	color: rgba(255, 255, 255, .9);
	font-size: 12px;
	line-height: 1.55;
	overflow-wrap: anywhere;
}

.nikko-promotions__identity::before {
	flex: 0 0 7px;
	height: 7px;
	border-radius: 50%;
	background: #e8edc6;
	content: '';
}

.nikko-promotions__slides {
	display: grid;
	grid-template-rows: minmax(0, 1fr);
	height: clamp(470px, 56vw, 520px);
	max-height: 520px;
}

.nikko-promotions__slide {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr);
	grid-area: 1 / 1;
	height: 100%;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transition: opacity 450ms ease, visibility 450ms ease;
}

.nikko-promotions__slide[hidden] {
	display: none !important;
}

.nikko-promotions__slide.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
}

.nikko-promotions__image {
	/* Explicit end lines keep the absolute image inside the visible photo cell. */
	position: absolute;
	inset: 0;
	grid-column: 1 / 2;
	grid-row: 1 / 2;
	min-height: 0;
	height: 100% !important;
	display: block;
	object-fit: cover;
	object-position: center;
	user-select: none;
	-webkit-user-drag: none;
	width: 100%;
}

.nikko-promotions__inner {
	position: relative;
	display: flex;
	align-items: center;
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: clamp(24px, 2vw, 32px) clamp(24px, 3vw, 48px) 86px;
	background: var(--nikko-brand-ink);
	width: 100%;
}

.nikko-promotions__inner::before {
	position: absolute;
	inset: 0 100% 0 auto;
	width: clamp(48px, 5vw, 120px);
	content: '';
	background: linear-gradient(to right, transparent, var(--nikko-brand-ink));
	pointer-events: none;
}

.nikko-promotions__copy {
	width: 100%;
	min-width: 0;
	margin-inline: auto;
	overflow-wrap: anywhere;
}

.nikko-promotions__copy h2 {
	text-shadow: none;
}

.nikko-promotions__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	line-height: 1.4;
	text-transform: uppercase;
}

.nikko-promotions__eyebrow::before {
	height: 1px;
	content: '';
	background: currentColor;
	width: 28px;
}

.nikko-promotions__title {
	margin: 0;
	color: #fff;
	text-wrap: balance;
}

.nikko-promotions__message {
	margin-top: 14px;
	color: rgba(255, 255, 255, 0.9);
	font-size: clamp(1rem, 1.15vw, 1.125rem);
	line-height: 1.55;
	max-width: 590px;
}

.nikko-promotions__message > :first-child {
	margin-top: 0;
}

.nikko-promotions__message > :last-child {
	margin-bottom: 0;
}

.nikko-promotions__cta {
	margin-top: 18px;
}

.nikko-promotions__cta:focus-visible,
.nikko-promotions__arrow:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.nikko-promotions__controls {
	position: absolute;
	z-index: 3;
	right: max(clamp(24px, 3vw, 48px), calc((50vw - var(--nikko-promotion-copy-width)) / 2));
	bottom: 28px;
	display: flex;
	align-items: center;
	gap: 22px;
}

.nikko-promotions__navigation {
	display: flex;
	align-items: center;
	gap: 12px;
}

.nikko-promotions__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	color: #fff;
	font: inherit;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.nikko-promotions__arrow:hover {
	border-color: #fff;
	background: var(--nikko-brand-wine);
}

@media (min-width: 901px) {
	.nikko-promotions {
		/* Fit the shared display heading to this fixed-height, half-width panel. */
		--nikko-heading-display: clamp(2rem, 3vw, 2.625rem);
	}
}

@media (max-width: 900px) {
	.nikko-promotions__intro {
		max-width: calc(100% - 32px);
		left: 16px;
	}

	.nikko-promotions__slides,
	.nikko-promotions__slide {
		height: auto;
		min-height: 720px;
		max-height: none;
	}

	.nikko-promotions__slide {
		grid-template-columns: 1fr;
		grid-template-rows: clamp(260px, 48vw, 380px) minmax(420px, auto);
	}

	.nikko-promotions__inner {
		align-items: center;
		grid-column: 1;
		grid-row: 2;
		padding: 38px 24px 104px;
		width: 100%;
	}

	.nikko-promotions__inner::before {
		inset: auto 0 100%;
		width: 100%;
		height: 48px;
		background: linear-gradient(to bottom, transparent, var(--nikko-brand-ink));
	}

	.nikko-promotions__copy {
		width: min(100%, 560px);
	}

	.nikko-promotions__eyebrow {
		margin-bottom: 13px;
		color: var(--nikko-brand-wine-soft);
	}

	.nikko-promotions__message {
		margin-top: 14px;
		font-size: var(--nikko-text-lead);
		line-height: var(--nikko-copy-leading);
	}

	.nikko-promotions__cta {
		margin-top: 19px;
	}

	.nikko-promotions__controls {
		right: 24px;
		bottom: 24px;
		left: auto;
		gap: 10px;
	}

	.nikko-promotions__navigation {
		gap: 10px;
	}
}

@media (max-width: 380px) {
	.nikko-promotions__slides,
	.nikko-promotions__slide {
		min-height: 760px;
	}

	.nikko-promotions__controls {
		flex-wrap: nowrap;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nikko-promotions__slide,
	.nikko-promotions__cta,
	.nikko-promotions__arrow {
		transition-duration: 0.01ms;
		scroll-behavior: auto;
	}
}

/* Component geometry and responsive presentation. */

.nikko-promotions {
	background: var(--nikko-brand-ink);
}

.nikko-promotions__copy {
	max-width: var(--nikko-promotion-copy-width);
}

.nikko-promotions__eyebrow {
	font-family: var(--nikko-font-sans);
	font-size: var(--nikko-text-small);
	font-weight: 700;
	letter-spacing: .12em;
	color: var(--nikko-brand-wine-soft);
}

.nikko-promotions__title {
	text-shadow: none;
	max-width: 620px;
}

.nikko-promotions__arrow {
	border: 2px solid rgba(255, 255, 255, 0.9);
	background: rgba(118, 36, 36, 0.78);
	font-size: 1.45rem;
	backdrop-filter: blur(10px);
}

@media (max-width: 800px) {
	.nikko-promotions__arrow {
		font-size: 1.2rem;
	}
}
