/**
 * NBBM Hero Slider
 */

.nbbm-hero-slider {
	position: relative;
	overflow: hidden;
	padding: 60px 20px 80px;
	z-index: 1;
}

/* Decorative background — corner accents that frame the split layout */
.nbbm-hero-slider__decor {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
}

.nbbm-hero-slider__decor-item {
	position: absolute;
	display: block;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.nbbm-hero-slider__decor-item--hat {
	top: 18px;
	left: max(0px, calc(50% - 620px));
	width: min(220px, 28vw);
	height: min(220px, 28vw);
	opacity: 0.1;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23c9a227' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M24 6C14.6 6 7 12.8 6 21.5 4.5 22.2 3.2 23.4 2.3 25 1 27.4 1 30.2 2.2 32.5h43.6C47 30.2 47 27.4 45.7 25c-.9-1.6-2.2-2.8-3.8-3.5C41 12.8 33.4 6 24 6z'/%3E%3Cpath d='M6 36v4c0 2.2 1.8 4 4 4h28c2.2 0 4-1.8 4-4v-4H6z'/%3E%3C/svg%3E");
}

.nbbm-hero-slider__decor-item--wheat-left {
	left: max(8px, calc(50% - 640px));
	bottom: 72px;
	width: 72px;
	height: 140px;
	opacity: 0.16;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 120' fill='none' stroke='%23d4a020' stroke-width='1.1' stroke-linecap='round'%3E%3Cpath d='M24 112V18'/%3E%3Cpath d='M24 34c-9-5-16 1-16 10s7 14 16 9'/%3E%3Cpath d='M24 54c9-5 16 1 16 10s-7 14-16 9'/%3E%3Cpath d='M24 74c-9-5-16 1-16 10s7 14 16 9'/%3E%3Cpath d='M24 94c9-5 16 1 16 10s-7 14-16 9'/%3E%3C/svg%3E");
}

.nbbm-hero-slider__decor-item--wheat-right {
	right: max(8px, calc(50% - 640px));
	top: 36px;
	width: 88px;
	height: 168px;
	opacity: 0.14;
	transform: rotate(8deg);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 120' fill='none' stroke='%23d4a020' stroke-width='1.1' stroke-linecap='round'%3E%3Cpath d='M24 112V18'/%3E%3Cpath d='M24 34c-9-5-16 1-16 10s7 14 16 9'/%3E%3Cpath d='M24 54c9-5 16 1 16 10s-7 14-16 9'/%3E%3Cpath d='M24 74c-9-5-16 1-16 10s7 14 16 9'/%3E%3Cpath d='M24 94c9-5 16 1 16 10s-7 14-16 9'/%3E%3C/svg%3E");
}

.nbbm-hero-slider__decor-item--whisk {
	right: max(24px, calc(50% - 560px));
	bottom: 88px;
	width: 96px;
	height: 96px;
	opacity: 0.12;
	transform: rotate(-18deg);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96' fill='none' stroke='%23c9a227' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M28 78c10-2 18-10 20-20'/%3E%3Cpath d='M48 58c8-8 12-18 12-28'/%3E%3Cpath d='M60 30c6-6 10-14 10-22'/%3E%3Cpath d='M24 82l8 8'/%3E%3Ccircle cx='24' cy='82' r='4'/%3E%3Cpath d='M52 20c4 0 8 3 8 8s-4 8-8 8'/%3E%3C/svg%3E");
}

.nbbm-hero-slider.nbbm-hero-section::before {
	content: none;
	display: none;
}

.nbbm-hero-slider.nbbm-hero-section::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	top: auto;
	width: 100%;
	height: 44px;
	transform: none;
	opacity: 1;
	pointer-events: none;
	z-index: 2;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0 28c120 18 240 18 360 8s240-28 360-8 240 28 360 8 240-18 360-8v48H0V28z'/%3E%3C/svg%3E")
		bottom center / 100% 100% no-repeat;
}

.nbbm-hero-slider__track {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	min-height: 420px;
	z-index: 2;
}

.nbbm-hero-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateX(36px) scale(0.985);
	transition:
		opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
		transform 0.65s cubic-bezier(0.4, 0, 0.2, 1),
		visibility 0.65s;
	pointer-events: none;
}

.nbbm-hero-slide.is-active {
	opacity: 1;
	visibility: visible;
	transform: translateX(0) scale(1);
	pointer-events: auto;
	z-index: 1;
}

.nbbm-hero-slide.is-leaving {
	opacity: 0;
	transform: translateX(-36px) scale(0.985);
}

.nbbm-hero-slider[data-direction="prev"] .nbbm-hero-slide:not(.is-active):not(.is-leaving) {
	transform: translateX(-36px) scale(0.985);
}

.nbbm-hero-slider[data-direction="prev"] .nbbm-hero-slide.is-leaving {
	transform: translateX(36px) scale(0.985);
}

.nbbm-hero-slide__content > * {
	opacity: 0;
	transform: translateY(20px);
	transition:
		opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
		transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.nbbm-hero-slide.is-active .nbbm-hero-slide__script {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.08s;
}

.nbbm-hero-slide.is-active .nbbm-hero-slide__title {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.16s;
}

.nbbm-hero-slide.is-active .nbbm-hero-slide__text {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.24s;
}

.nbbm-hero-slide.is-active .nbbm-hero-slide__actions {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.32s;
}

.nbbm-hero-slide__media {
	opacity: 0;
	transform: translateX(24px) scale(0.96);
	transition:
		opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
		transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.nbbm-hero-slide.is-active .nbbm-hero-slide__media {
	opacity: 1;
	transform: translateX(0) scale(1);
	transition-delay: 0.12s;
}

.nbbm-hero-slide.is-leaving .nbbm-hero-slide__content > *,
.nbbm-hero-slide.is-leaving .nbbm-hero-slide__media {
	opacity: 0;
	transform: translateY(12px);
	transition-delay: 0s;
	transition-duration: 0.35s;
}

.nbbm-hero-slide__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 48px;
	height: 100%;
}

.nbbm-hero-slide__script {
	margin: 0 0 8px;
	font-size: 1.5rem;
}

.nbbm-hero-slide__title {
	margin: 0 0 16px;
	font-family: var(--nbbm-font-serif);
	font-size: clamp(1.75rem, 4vw, 3rem);
	line-height: 1.15;
	color: var(--nbbm-chocolate);
	font-weight: 700;
}

.nbbm-hero-slide__text {
	margin: 0 0 28px;
	color: var(--nbbm-text);
	font-size: 1rem;
	max-width: 480px;
}

.nbbm-hero-slide__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.nbbm-hero-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: 50px;
	font-family: var(--nbbm-font-sans);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	transition: all 0.25s ease;
}

.nbbm-hero-btn--primary {
	background: var(--nbbm-honey);
	color: var(--nbbm-chocolate);
	border: 2px solid var(--nbbm-honey);
}

.nbbm-hero-btn--primary:hover {
	background: var(--nbbm-honey-dark);
	border-color: var(--nbbm-honey-dark);
	transform: translateY(-2px);
	box-shadow: var(--nbbm-shadow-hover);
	color: var(--nbbm-chocolate);
}

.nbbm-hero-btn--outline {
	background: transparent;
	color: var(--nbbm-chocolate);
	border: 2px solid var(--nbbm-chocolate);
}

.nbbm-hero-btn--outline:hover {
	background: var(--nbbm-chocolate);
	color: var(--nbbm-white);
}

.nbbm-hero-slide__media img {
	width: 100%;
	height: auto;
	max-height: 420px;
	object-fit: cover;
	border-radius: var(--nbbm-radius-lg);
	box-shadow: var(--nbbm-shadow);
	transform: scale(1.03);
	transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}

.nbbm-hero-slide.is-active .nbbm-hero-slide__media img {
	transform: scale(1);
}

/* Arrows */
.nbbm-hero-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: var(--nbbm-white);
	color: var(--nbbm-chocolate);
	box-shadow: var(--nbbm-shadow);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, transform 0.2s ease;
}

.nbbm-hero-slider__arrow:hover {
	background: var(--nbbm-honey);
	transform: translateY(-50%) scale(1.05);
}

.nbbm-hero-slider__arrow--prev {
	left: 12px;
}

.nbbm-hero-slider__arrow--next {
	right: 12px;
}

/* Dots */
.nbbm-hero-slider__dots {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	display: flex;
	gap: 10px;
}

.nbbm-hero-slider__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(61, 35, 20, 0.25);
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.nbbm-hero-slider__dot.is-active {
	background: var(--nbbm-honey);
	transform: scale(1.2);
}

.nbbm-hero-slider__dot:hover {
	background: var(--nbbm-honey-dark);
}

/* Responsive */
@media (max-width: 991px) {
	.nbbm-hero-slider {
		padding: 48px 16px 64px;
	}

	.nbbm-hero-slider__decor-item--hat {
		left: -12px;
		top: 8px;
		width: 140px;
		height: 140px;
		opacity: 0.08;
	}

	.nbbm-hero-slider__decor-item--wheat-left {
		left: 6px;
		bottom: 108px;
		width: 56px;
		height: 108px;
		opacity: 0.12;
	}

	.nbbm-hero-slider__decor-item--wheat-right,
	.nbbm-hero-slider__decor-item--whisk {
		display: none;
	}

	.nbbm-hero-slider__track {
		min-height: 560px;
	}

	.nbbm-hero-slide__inner {
		grid-template-columns: 1fr;
		gap: 28px;
		text-align: center;
	}

	.nbbm-hero-slide__text {
		margin-left: auto;
		margin-right: auto;
	}

	.nbbm-hero-slide__actions {
		justify-content: center;
	}

	.nbbm-hero-slide__media {
		order: -1;
	}

	.nbbm-hero-slide__media img {
		max-height: 280px;
	}

	.nbbm-hero-slider__arrow {
		width: 38px;
		height: 38px;
		top: auto;
		bottom: 18px;
		transform: none;
	}

	.nbbm-hero-slider__arrow--prev {
		left: calc(50% - 52px);
	}

	.nbbm-hero-slider__arrow--next {
		right: calc(50% - 52px);
	}

	.nbbm-hero-slider__dots {
		bottom: 28px;
	}
}

@media (max-width: 575px) {
	.nbbm-hero-slide__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.nbbm-hero-btn {
		justify-content: center;
	}
}

.elementor-widget-shortcode .nbbm-hero-slider {
	width: 100%;
	margin: 0;
}

.nbbm-hero-wrapper > .elementor-container {
	max-width: 100% !important;
	padding: 0 !important;
}

.nbbm-hero-wrapper .elementor-widget-shortcode {
	margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
	.nbbm-hero-slide,
	.nbbm-hero-slide__content > *,
	.nbbm-hero-slide__media,
	.nbbm-hero-slide__media img {
		transition: opacity 0.2s ease, visibility 0.2s;
		transform: none !important;
	}
}
