/* ==========================================================
   Little Appetites Banner – scoped styles (f2022016)
   All visual values are controlled from Elementor; the values
   below are only safe fallbacks.
   ========================================================== */

.la-banner {
	--la-align: flex-start;
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	width: 100%;
	max-width: 1240px;
	min-height: 340px;
	margin-left: auto;
	margin-right: auto;
	padding: 10px 0 10px 10px;
	border-radius: 40px;
	background-color: #eef6e5;
	overflow: hidden;
	isolation: isolate;
	box-sizing: border-box;
}

.la-banner *,
.la-banner *::before,
.la-banner *::after {
	box-sizing: border-box;
}

/* ---------- Image column ---------- */
.la-banner__media {
	--la-obj-x: 50%;
	--la-obj-y: 40%;
	position: relative;
	flex: 0 0 auto;
	width: 55%;
	min-height: 220px;
	border-radius: 32px 0 0 32px;
	overflow: hidden;
	background-color: rgba(255, 255, 255, 0.4);
	z-index: 1;
	/* Safari: keep radius clipping with animated children */
	-webkit-mask-image: -webkit-radial-gradient(white, black);
	transform: translateZ(0);
}

.la-banner__media > img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0;
	border-radius: 0;
	object-fit: cover;
	object-position: var(--la-obj-x) var(--la-obj-y);
	z-index: 0;
}

/* ---------- Shine (image only) ---------- */
.la-banner__shine {
	--la-shine-dur: 6s;
	--la-shine-delay: 1s;
	--la-shine-opacity: 0.4;
	--la-shine-w: 18%;
	--la-shine-color: #ffffff;
	--la-shine-angle: 105deg;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	pointer-events: none;
	opacity: var(--la-shine-opacity);
	background: linear-gradient(
		var(--la-shine-angle),
		transparent 0%,
		transparent calc(50% - var(--la-shine-w) / 2),
		var(--la-shine-color) 50%,
		transparent calc(50% + var(--la-shine-w) / 2),
		transparent 100%
	);
	transform: translate3d(-100%, 0, 0);
	will-change: transform;
	animation: la-shine-pause var(--la-shine-dur) ease-in-out var(--la-shine-delay) infinite;
}

.la-banner__shine--continuous {
	animation-name: la-shine-continuous;
	animation-timing-function: linear;
}

@keyframes la-shine-pause {
	0%   { transform: translate3d(-100%, 0, 0); }
	65%  { transform: translate3d(100%, 0, 0); }
	100% { transform: translate3d(100%, 0, 0); }
}

@keyframes la-shine-continuous {
	0%   { transform: translate3d(-100%, 0, 0); }
	100% { transform: translate3d(100%, 0, 0); }
}

/* ---------- Content column ---------- */
.la-banner__content {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: var(--la-align);
	padding: 36px 40px 36px 44px;
	text-align: left;
	z-index: 2;
}

.la-banner__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: var(--la-align);
	width: 100%;
	max-width: 100%;
}

.la-banner__title-wrap {
	display: inline-flex;
	flex-direction: column;
	align-items: var(--la-align);
	max-width: 100%;
	margin-bottom: 22px;
}

.la-banner .la-banner__title {
	margin: 0;
	padding: 0;
	font-family: 'Fredoka', 'Baloo 2', 'Nunito', system-ui, sans-serif;
	font-size: 48px;
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.5px;
	color: #0e4a33;
	overflow-wrap: break-word;
}

.la-banner .la-banner__desc {
	margin: 0;
	padding: 0;
	font-family: 'Nunito', system-ui, sans-serif;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.6;
	color: #1f4a3a;
	max-width: 100%;
}

/* ---------- Yellow underline (pure CSS border) ---------- */
.la-banner__underline {
	--la-ul-rot: -0.6deg;
	display: block;
	width: 96%;
	height: 5px;
	margin-top: 8px;
	background-color: #f6c21c;
	transform: rotate(var(--la-ul-rot));
	transform-origin: left center;
	flex-shrink: 0;
}

.la-banner__underline--organic {
	/* thick middle, tapered brush-like ends */
	border-radius: 50%;
	-webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.55) 0%, #000 12%, #000 85%, rgba(0,0,0,.6) 100%);
	        mask-image: linear-gradient(90deg, rgba(0,0,0,.55) 0%, #000 12%, #000 85%, rgba(0,0,0,.6) 100%);
}

.la-banner__underline--rounded {
	border-radius: 999px;
}

.la-banner__underline--solid {
	border-radius: 0;
}

/* ---------- Decorative icons ---------- */
.la-icon {
	--la-rot: 0deg;
	--la-icon-dur: 4s;
	--la-icon-delay: 0s;
	position: absolute;
	display: block;
	width: 40px;
	height: auto;
	line-height: 0;
	z-index: 3;
	pointer-events: none;
	/* --la-px / --la-py are set by script.js (mouse parallax) */
	transform: translate3d(var(--la-px, 0px), var(--la-py, 0px), 0) rotate(var(--la-rot));
	transform-origin: center;
}

/* script.js: pause every animation while the banner is off-screen or the tab is hidden */
.la-banner.la-is-offscreen .la-banner__shine,
.la-banner.la-is-offscreen .la-icon__inner,
.la-banner.la-is-tab-hidden .la-banner__shine,
.la-banner.la-is-tab-hidden .la-icon__inner {
	animation-play-state: paused;
}

.la-icon__inner {
	display: block;
	width: 100%;
	height: 100%;
}

.la-icon .la-icon__img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: contain;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

/* Editor-only placeholder for icons without a PNG */
.la-icon__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 24px;
	aspect-ratio: 1 / 1;
	padding: 2px;
	border: 1.5px dashed rgba(14, 74, 51, 0.55);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.55);
	font: 600 9px/1.1 system-ui, sans-serif;
	color: #0e4a33;
	text-align: center;
	overflow: hidden;
	word-break: break-word;
}

/* Icon animations (applied to inner wrapper so rotation is preserved) */
.la-icon--anim-float  .la-icon__inner { animation: la-float  var(--la-icon-dur) ease-in-out var(--la-icon-delay) infinite; }
.la-icon--anim-pulse  .la-icon__inner { animation: la-pulse  var(--la-icon-dur) ease-in-out var(--la-icon-delay) infinite; }
.la-icon--anim-wiggle .la-icon__inner { animation: la-wiggle var(--la-icon-dur) ease-in-out var(--la-icon-delay) infinite; transform-origin: 50% 100%; }
.la-icon--anim-swing  .la-icon__inner { animation: la-swing  var(--la-icon-dur) ease-in-out var(--la-icon-delay) infinite; transform-origin: 50% 80%; }

@keyframes la-float {
	0%, 100% { transform: translate3d(0, 0, 0); }
	50%      { transform: translate3d(0, -7px, 0); }
}

@keyframes la-pulse {
	0%, 100% { transform: scale(1); }
	50%      { transform: scale(1.12); }
}

@keyframes la-wiggle {
	0%, 100% { transform: rotate(0deg); }
	25%      { transform: rotate(2.5deg); }
	75%      { transform: rotate(-2.5deg); }
}

@keyframes la-swing {
	0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
	30%      { transform: translate3d(0, -5px, 0) rotate(-4deg); }
	60%      { transform: translate3d(0, 0, 0) rotate(3deg); }
}

/* ---------- Mobile safety (layout itself is driven by Elementor responsive controls) ---------- */
@media (max-width: 767px) {
	.la-banner {
		flex-direction: column;
		min-height: 0;
	}
	.la-banner__media {
		width: 100%;
		height: 290px;
	}
	.la-banner .la-banner__title {
		font-size: 34px;
	}
	.la-banner .la-banner__desc {
		font-size: 16px;
	}
}

/* ---------- Accessibility: reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.la-banner__shine {
		display: none !important;
		animation: none !important;
	}
	.la-icon__inner {
		animation: none !important;
	}
}