/* XCO Bento Slider Widget */
.xco-bento-slider,
.xco-bento-slider * {
	box-sizing: border-box;
}

.xco-bento-slider {
	--accent: #b79e7c;
	--accent-2: #886c5a;
	--dark: #24201c;
	--glow: rgba(183, 164, 130, 0.6);
	--card-gradient: linear-gradient(40deg, rgba(51, 47, 43, 0.72) 0%, rgba(87, 75, 65, 0.55) 100%);
	--highlight-gradient: linear-gradient(90deg, rgba(136, 108, 90, 0.88) 0%, rgba(183, 158, 124, 0.95) 100%);

	position: relative;
	isolation: isolate;
	overflow: hidden;
	width: 100%;
	min-height: 100vh;
	min-height: 100svh;
	background: #0c0c0c;
	color: #fff;
	padding: clamp(14px, 2vw, 38px);
	font-family: inherit;
	display: flex;
	align-items: center;
	justify-content: center;
	outline: none;
}

.xco-bento-slider::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -3;
	background:
		radial-gradient(circle at 30% 35%, rgba(255, 255, 255, 0.06), transparent 26%),
		linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 40%),
		#0c0c0c;
}

.xco-bento-glow {
	position: absolute;
	z-index: -2;
	width: min(1500px, 140vw);
	height: min(1500px, 140vw);
	pointer-events: none;
	left: var(--glow-x, 65%);
	top: var(--glow-y, 20%);
	transform: translate(-50%, -50%);
	background: radial-gradient(circle, var(--glow) 0%, rgba(84, 74, 60, 0) 61%, rgba(20, 17, 15, 0) 100%);
	opacity: 0.95;
	transition: background 420ms ease, opacity 420ms ease;
}

.xco-bento-stage {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(14px, 1.9vw, 36px);
	width: 100%;
	max-width: 1905px;
	height: min(900px, calc(100vh - clamp(28px, 4vw, 76px)));
	height: min(900px, calc(100svh - clamp(28px, 4vw, 76px)));
	min-height: 650px;
	margin: 0 auto;
}

.xco-bento-left,
.xco-bento-right,
.xco-bento-right-column {
	display: grid;
	gap: clamp(14px, 1vw, 20px);
	min-width: 0;
	min-height: 0;
}

.xco-bento-left {
	grid-template-rows: 46fr 36fr 10fr;
}

.xco-bento-right {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.xco-bento-right-column:first-child {
	grid-template-rows: 20fr 52fr 20fr;
}

.xco-bento-right-column:last-child {
	grid-template-rows: 47fr 47fr;
}

.xco-bento-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(14px, 1vw, 20px);
	min-height: 0;
}

.xco-bento-tile,
.xco-bento-actions .xco-bento-btn {
	will-change: transform, opacity, clip-path, filter;
	transform: translate3d(0, 0, 0);
}

.xco-bento-tile {
	position: relative;
	overflow: hidden;
	min-width: 0;
	min-height: 0;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.06);
	transform-origin: center;
}

.xco-bento-tile::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 36%),
		linear-gradient(0deg, rgba(0, 0, 0, 0.36), transparent 52%);
	opacity: 0.9;
}

.xco-bento-image {
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.xco-bento-image::before,
.xco-bento-food::before {
	content: "";
	position: absolute;
	inset: -2px;
	background: inherit;
	transform: scale(1.02);
	transition: transform 800ms cubic-bezier(.2, .8, .2, 1);
}

.xco-bento-tile:hover.xco-bento-image::before,
.xco-bento-tile:hover.xco-bento-food::before {
	transform: scale(1.08);
}

.xco-bento-card {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding: clamp(22px, 2.4vw, 50px);
	background: var(--card-gradient);
}

.xco-bento-card.is-highlight {
	background: var(--highlight-gradient);
}

.xco-bento-card::after {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 52%);
	opacity: 0.6;
}

.xco-bento-food {
	background-position: 50% 100%, center;
	background-size: cover, cover;
	background-repeat: no-repeat;
	background-color: var(--accent);
}

.xco-bento-hero-copy {
	position: absolute;
	z-index: 2;
	left: clamp(24px, 2.7vw, 50px);
	bottom: clamp(26px, 4vw, 68px);
	max-width: calc(100% - 52px);
	text-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
	will-change: transform, opacity;
}

.xco-bento-kicker {
	margin: 0 0 4px;
	color: inherit;
	font-size: clamp(13px, 1vw, 16px);
	font-weight: 400;
	letter-spacing: 1px;
	line-height: 1.8;
}

.xco-bento-title {
	margin: 0;
	color: inherit;
	font-size: clamp(46px, 5.3vw, 76px);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 0.95;
}

.xco-bento-card-title {
	position: relative;
	z-index: 2;
	margin: 0 0 10px;
	color: inherit;
	font-size: clamp(24px, 2.3vw, 36px);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.16;
}

.xco-bento-copy {
	position: relative;
	z-index: 2;
	margin: 0;
	max-width: 620px;
	color: rgba(255, 255, 255, 0.74);
	font-size: clamp(14px, 1.05vw, 16px);
	font-weight: 400;
	letter-spacing: 1px;
	line-height: 1.62;
}

.xco-bento-card.is-highlight .xco-bento-copy {
	color: rgba(255, 255, 255, 0.95);
}

.xco-bento-actions {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: clamp(14px, 1vw, 20px);
	min-height: 0;
}


.xco-bento-slider.is-single-slide .xco-bento-actions {
	grid-template-columns: minmax(0, 1fr);
}

.xco-bento-slider.is-single-slide [data-prev],
.xco-bento-slider.is-single-slide [data-next],
.xco-bento-slider.is-single-slide .xco-bento-dots {
	display: none !important;
}

.xco-bento-slider.is-single-slide .xco-bento-actions .is-primary {
	grid-column: auto;
}

.xco-bento-btn {
	appearance: none;
	border: 0;
	border-radius: 8px;
	background: var(--dark);
	color: rgba(255, 255, 255, 0.82);
	cursor: pointer;
	font-family: inherit;
	font-size: clamp(12px, 1vw, 15px);
	font-weight: 700;
	letter-spacing: 1px;
	line-height: 1;
	text-transform: uppercase;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	width: 100%;
	height: 100%;
	min-height: 68px;
	padding: 16px 18px;
	transition: transform 280ms ease, color 280ms ease, background 280ms ease, opacity 280ms ease;
}

.xco-bento-btn:hover,
.xco-bento-btn:focus-visible {
	transform: translateY(-2px);
	color: #fff;
	outline: none;
	opacity: 0.96;
}

.xco-bento-btn:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

.xco-bento-btn.is-primary {
	background: var(--highlight-gradient);
	color: #fff;
	text-decoration: none;
}

.xco-bento-btn span {
	display: inline-block;
	transform: translateY(1px);
}

.xco-bento-stage.is-changing .xco-bento-tile,
.xco-bento-stage.is-changing .xco-bento-btn {
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	.xco-bento-tile,
	.xco-bento-btn,
	.xco-bento-glow,
	.xco-bento-image::before,
	.xco-bento-food::before {
		transition: none !important;
		animation: none !important;
	}
}

/* Laptop */
@media (max-width: 1440px) and (min-width: 1181px) {
	.xco-bento-slider {
		padding: clamp(14px, 1.6vw, 28px);
	}

	.xco-bento-stage {
		gap: clamp(14px, 1.3vw, 24px);
		min-height: 600px;
		height: min(820px, calc(100vh - 48px));
		height: min(820px, calc(100svh - 48px));
	}

	.xco-bento-card {
		padding: clamp(20px, 2vw, 34px);
	}

	.xco-bento-title {
		font-size: clamp(44px, 4.8vw, 64px);
	}

	.xco-bento-card-title {
		font-size: clamp(22px, 2vw, 30px);
	}

	.xco-bento-copy {
		font-size: clamp(13px, 0.95vw, 15px);
		line-height: 1.52;
	}

	.xco-bento-btn {
		min-height: 62px;
		padding: 14px 16px;
	}
}

/* Tablet */
@media (max-width: 1180px) {
	.xco-bento-slider {
		height: auto;
		min-height: 100vh;
		min-height: 100svh;
		overflow: visible;
		align-items: flex-start;
	}

	.xco-bento-stage {
		grid-template-columns: 1fr;
		width: min(100%, 920px);
		height: auto;
		min-height: 0;
	}

	.xco-bento-left {
		grid-template-rows: minmax(420px, 48vw) auto auto;
		min-height: 0;
	}

	.xco-bento-right {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		min-height: 720px;
	}

	.xco-bento-card {
		min-height: 190px;
	}

	.xco-bento-actions {
		grid-template-columns: 2fr 1fr 1fr;
	}
}

/* Small tablet */
@media (max-width: 900px) {
	.xco-bento-stage {
		width: 100%;
	}

	.xco-bento-left {
		grid-template-rows: minmax(380px, 56vw) auto auto;
	}

	.xco-bento-right {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.xco-bento-right-column:first-child {
		grid-template-rows: auto minmax(340px, 52vw) auto;
	}

	.xco-bento-right-column:last-child {
		grid-template-rows: minmax(300px, 46vw) minmax(300px, 46vw);
	}

	.xco-bento-row {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

/* Mobile */
@media (max-width: 760px) {
	.xco-bento-slider {
		padding: 12px;
	}

	.xco-bento-glow {
		width: 900px;
		height: 900px;
		opacity: 0.75;
	}

	.xco-bento-stage {
		gap: 12px;
	}

	.xco-bento-left,
	.xco-bento-right,
	.xco-bento-row {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.xco-bento-left {
		grid-template-rows: minmax(360px, 62vh) auto auto;
		min-height: 0;
	}

	.xco-bento-row {
		grid-template-rows: auto minmax(240px, 58vw);
	}

	.xco-bento-right-column,
	.xco-bento-right-column:first-child,
	.xco-bento-right-column:last-child {
		grid-template-rows: auto;
		gap: 12px;
	}

	.xco-bento-card {
		min-height: auto;
		padding: 22px;
	}

	.xco-bento-right .xco-bento-image,
	.xco-bento-food,
	.xco-bento-row .xco-bento-image {
		min-height: 260px;
	}

	.xco-bento-actions {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
		width: 100%;
	}

	.xco-bento-actions .is-primary {
		grid-column: 1 / -1;
	}

	.xco-bento-btn {
		min-height: 58px;
		padding: 14px 16px;
		font-size: 12px;
	}

	.xco-bento-hero-copy {
		left: 20px;
		bottom: 24px;
		max-width: calc(100% - 40px);
	}

	.xco-bento-title {
		font-size: clamp(40px, 13vw, 62px);
	}

	.xco-bento-card-title {
		font-size: clamp(24px, 7vw, 32px);
	}

	.xco-bento-copy {
		font-size: 14px;
		line-height: 1.55;
	}
}

/* Very small mobile */
@media (max-width: 420px) {
	.xco-bento-slider {
		padding: 10px;
	}

	.xco-bento-left {
		grid-template-rows: minmax(330px, 58vh) auto auto;
	}

	.xco-bento-actions {
		grid-template-columns: 1fr;
	}

	.xco-bento-actions .is-primary {
		grid-column: auto;
	}

	.xco-bento-right .xco-bento-image,
	.xco-bento-food,
	.xco-bento-row .xco-bento-image {
		min-height: 230px;
	}

	.xco-bento-card {
		padding: 20px;
	}
}

/* v1.1 professional controls: dots, active layout variants, swipe and image cropping */
.xco-bento-slider {
	flex-direction: column;
}

.xco-bento-image[data-grid-item="hero"] {
	background-position: var(--xco-hero-position, center center);
	background-size: var(--xco-image-size, cover);
}

.xco-bento-image[data-grid-item="support"] {
	background-position: var(--xco-support-position, center center);
	background-size: var(--xco-image-size, cover);
}

.xco-bento-image[data-grid-item="tall"] {
	background-position: var(--xco-tall-position, center center);
	background-size: var(--xco-image-size, cover);
}

.xco-bento-image[data-grid-item="top"] {
	background-position: var(--xco-top-position, center center);
	background-size: var(--xco-image-size, cover);
}

.xco-bento-food {
	background-position: var(--xco-food-position, 50% 100%), center;
	background-size: var(--xco-image-size, cover), cover;
}

.xco-bento-slider[data-active-layout="hero-focus"] .xco-bento-stage {
	grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
}

.xco-bento-slider[data-active-layout="right-focus"] .xco-bento-stage {
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.xco-bento-slider[data-active-layout="compact-cards"] .xco-bento-left {
	grid-template-rows: 52fr 28fr 10fr;
}

.xco-bento-slider[data-active-layout="compact-cards"] .xco-bento-card {
	justify-content: center;
}

.xco-bento-slider[data-active-layout="image-heavy"] .xco-bento-left {
	grid-template-rows: 56fr 30fr 10fr;
}

.xco-bento-slider[data-active-layout="image-heavy"] .xco-bento-right-column:first-child {
	grid-template-rows: 14fr 62fr 16fr;
}

.xco-bento-slider[data-swipe="yes"] .xco-bento-stage {
	touch-action: pan-y;
}

.xco-bento-dots {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	max-width: 1905px;
	margin: 18px auto 0;
	padding: 0;
}

.xco-bento-dot {
	appearance: none;
	width: 10px;
	height: 10px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.34);
	cursor: pointer;
	padding: 0;
	transition: width 260ms ease, background 260ms ease, opacity 260ms ease, transform 260ms ease;
}

.xco-bento-dot:hover,
.xco-bento-dot:focus-visible {
	background: rgba(255, 255, 255, 0.72);
	outline: none;
	transform: translateY(-1px);
}

.xco-bento-dot.is-active {
	width: 32px;
	background: var(--accent);
	opacity: 1;
}

@media (max-width: 1180px) {
	.xco-bento-slider[data-active-layout="hero-focus"] .xco-bento-stage,
	.xco-bento-slider[data-active-layout="right-focus"] .xco-bento-stage {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 760px) {
	.xco-bento-dots {
		margin-top: 14px;
		gap: 8px;
	}

	.xco-bento-dot {
		width: 9px;
		height: 9px;
	}

	.xco-bento-dot.is-active {
		width: 28px;
	}
}
