/* =====================================================================
   Little Ayub – Contact Us widget
   All base rules use :where() so every Elementor control (and Global
   Fonts / Global Colors) always overrides them without !important.
   ===================================================================== */

:where(.lacu) {
	--lacu-green: #0B4A33;
	--lacu-yellow: #F6B80B;
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	width: 100%;
	min-height: 420px;
	overflow: hidden;
	background-color: #FFFDF8;
	color: var(--lacu-green);
}

:where(.lacu) *,
:where(.lacu) *::before,
:where(.lacu) *::after {
	box-sizing: border-box;
}

/* ---------- Two-column grid ---------- */
:where(.lacu__inner) {
	position: relative;
	flex: 1 1 auto;
	display: grid;
	grid-template-columns: minmax(0, var(--lacu-col, 52%)) minmax(0, 1fr);
	align-items: stretch;
	width: 100%;
}

:where(.lacu__content) {
	position: relative;
	z-index: 2;
	order: 1;
	align-self: center;
	min-width: 0;
	padding: 3vw 2vw 3vw 9vw;
}

:where(.lacu__media) {
	position: relative;
	z-index: 1;
	order: 2;
	display: flex;
	justify-content: flex-end;
	align-items: stretch;
	min-width: 0;
}

/* ---------- Heading + hand-drawn underline ---------- */
:where(.lacu__heading-row) {
	text-align: left;
}

:where(.lacu__title-wrap) {
	position: relative;
	display: inline-block;
	max-width: 100%;
}

:where(.lacu__heading) {
	margin: 0;
	padding: 0;
	font-family: "Fredoka", "Baloo 2", "Nunito", system-ui, sans-serif;
	font-size: var(--lacu-heading-size, 88px);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.01em;
	color: var(--lacu-green);
	text-align: inherit;
	overflow-wrap: break-word;
}

:where(.lacu__underline) {
	display: block;
	width: 100%;
	height: 12px;
	margin-top: 2px;
	color: var(--lacu-yellow);
	line-height: 0;
	transform: rotate(-0.6deg);
	transform-origin: left center;
	pointer-events: none;
}

:where(.lacu__underline) svg,
:where(.lacu__underline) img {
	display: block;
	width: 100%;
	height: 100%;
}

:where(.lacu__underline) img {
	object-fit: fill;
}

:where(.lacu__subtitle) {
	margin: 18px 0 0;
	padding: 0;
	font-family: "Mali", "Fredoka", "Nunito", system-ui, sans-serif;
	font-size: var(--lacu-subtitle-size, 32px);
	font-weight: 700;
	line-height: 1.25;
	color: var(--lacu-green);
	overflow-wrap: break-word;
}

:where(.lacu__desc) {
	margin: 12px auto 0 0;
	padding: 0;
	max-width: 470px;
	font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: var(--lacu-desc-size, 24px);
	font-weight: 500;
	line-height: 1.42;
	color: var(--lacu-green);
	overflow-wrap: break-word;
}

:where(.lacu__desc) p {
	margin: 0 0 0.6em;
}

:where(.lacu__desc) p:last-child {
	margin-bottom: 0;
}

/* ---------- Baby image ---------- */
:where(.lacu__frame) {
	--lacu-fl: 0%;
	--lacu-fr: 0%;
	--lacu-ft: 0%;
	--lacu-fb: 0%;
	position: relative;
	width: 100%;
	min-height: 100%;
	overflow: hidden;
	transform: translate(var(--lacu-img-x, 0), var(--lacu-img-y, 0));
}

:where(.lacu__frame) img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: cover;
	object-position: var(--lacu-opx, 50%) var(--lacu-opy, 25%);
}

/* Soft feathered edges so the photo melts into the background (like the reference) */
.lacu__frame--fade {
	-webkit-mask-image:
		linear-gradient(to right, transparent 0, #000 var(--lacu-fl), #000 calc(100% - var(--lacu-fr)), transparent 100%),
		linear-gradient(to bottom, transparent 0, #000 var(--lacu-ft), #000 calc(100% - var(--lacu-fb)), transparent 100%);
	-webkit-mask-composite: source-in;
	mask-image:
		linear-gradient(to right, transparent 0, #000 var(--lacu-fl), #000 calc(100% - var(--lacu-fr)), transparent 100%),
		linear-gradient(to bottom, transparent 0, #000 var(--lacu-ft), #000 calc(100% - var(--lacu-fb)), transparent 100%);
	mask-composite: intersect;
}

/* ---------- Shine (clipped to the image frame) ---------- */
:where(.lacu__shine) {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: block;
	overflow: hidden;
	pointer-events: none;
	border-radius: inherit;
}

.lacu__beam {
	position: absolute;
	top: -30%;
	bottom: -30%;
	left: 0;
	width: 100%;
	background: linear-gradient(
		var(--lacu-shine-angle, 115deg),
		transparent calc(50% - var(--lacu-shine-w, 24%) / 2),
		var(--lacu-shine-color, rgba(255, 255, 255, 0.75)) 50%,
		transparent calc(50% + var(--lacu-shine-w, 24%) / 2)
	);
	opacity: var(--lacu-shine-op, 0.55);
	filter: blur(var(--lacu-shine-blur, 8px));
	transform: translate3d(-110%, 0, 0);
	will-change: transform;
	animation-name: lacu-shine;
	animation-duration: var(--lacu-shine-dur, 6s);
	animation-timing-function: cubic-bezier(.45, .05, .35, 1);
	animation-delay: var(--lacu-shine-delay, 1s);
	animation-iteration-count: var(--lacu-shine-iter, infinite);
	animation-direction: var(--lacu-shine-dir, normal);
	animation-fill-mode: both;
}

@keyframes lacu-shine {
	0%        { transform: translate3d(-110%, 0, 0); }
	55%, 100% { transform: translate3d(110%, 0, 0); }
}

/* ---------- Decorative icons ---------- */
:where(.lacu__icons) {
	position: absolute;
	inset: 0;
	pointer-events: none;
	/* no z-index → each icon's own z-index competes with text (2) and image (1) */
}

:where(.lacu-icon) {
	position: absolute;
	left: var(--lacu-l, auto);
	right: var(--lacu-r, auto);
	top: var(--lacu-t, auto);
	bottom: var(--lacu-b, auto);
	z-index: 3;
	display: block;
	width: 5%;
	line-height: 0;
	pointer-events: none;
}

.lacu-icon__anim {
	width: 100%;
	height: 100%;
	transform-origin: center center;
	will-change: transform;
	backface-visibility: hidden;
	animation-name: lacu-zoom;
	animation-duration: calc(var(--lacu-dur, 3s) * var(--lacu-speed, 1));
	animation-delay: calc(var(--lacu-delay, 0s) + var(--lacu-delay-offset, 0s));
	animation-timing-function: var(--lacu-ease, ease-in-out);
	animation-iteration-count: infinite;
	animation-direction: var(--lacu-dir, normal);
	animation-fill-mode: both;
}

:where(.lacu-icon__media) {
	width: 100%;
	line-height: 0;
}

:where(.lacu-icon__media) > svg,
:where(.lacu-icon__media) > img {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
	margin: 0;
	border: 0;
	box-shadow: none;
	object-fit: contain;
	overflow: visible;
}

/* Grow → shrink (plus optional float). Transform only = GPU friendly, no layout shift. */
@keyframes lacu-zoom {
	0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
	50%      { transform: translate3d(0, calc(var(--lacu-float, 0px) * -1), 0) scale(var(--lacu-scale, 1.1)); }
}

.lacu-icon--hoverpause {
	pointer-events: auto;
}

.lacu .lacu-icon--hoverpause:hover .lacu-icon__anim {
	animation-play-state: paused;
}

/* Master switch / off-screen pause / reduced motion */
.lacu.lacu--no-anim .lacu-icon__anim {
	animation: none !important;
}

.lacu.lacu--paused .lacu-icon__anim,
.lacu.lacu--paused .lacu__beam {
	animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
	.lacu.lacu--rm .lacu-icon__anim,
	.lacu.lacu--rm .lacu__beam {
		animation: none !important;
	}
	.lacu.lacu--rm .lacu__beam {
		opacity: 0 !important;
	}
}

/* =====================================================================
   Responsive fallbacks (Elementor's responsive controls override these)
   ===================================================================== */
@media (max-width: 1024px) {
	:where(.lacu) {
		min-height: 380px;
	}
	:where(.lacu__heading) {
		font-size: var(--lacu-heading-size, 64px);
	}
	:where(.lacu__subtitle) {
		font-size: var(--lacu-subtitle-size, 26px);
	}
	:where(.lacu__desc) {
		font-size: var(--lacu-desc-size, 19px);
		max-width: 420px;
	}
}

@media (max-width: 767px) {
	:where(.lacu) {
		min-height: 0;
	}
	:where(.lacu__inner) {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 4px;
	}
	:where(.lacu__media) {
		order: 0;
		justify-content: center;
	}
	:where(.lacu__frame) {
		aspect-ratio: 20 / 19;
		min-height: 0;
		height: auto;
	}
	:where(.lacu__content) {
		padding: 0 7vw 11vw;
		text-align: center;
	}
	:where(.lacu__heading-row),
	:where(.lacu__subtitle) {
		text-align: center;
	}
	:where(.lacu__heading) {
		font-size: var(--lacu-heading-size, 52px);
	}
	:where(.lacu__subtitle) {
		font-size: var(--lacu-subtitle-size, 21px);
	}
	:where(.lacu__desc) {
		font-size: var(--lacu-desc-size, 17px);
		max-width: 100%;
		margin-left: auto;
		margin-right: auto;
		text-align: left;
	}
}

/* Elementor editor: keep empty image frame visible */
.elementor-editor-active :where(.lacu__frame):empty {
	min-height: 240px;
	background: rgba(11, 74, 51, 0.06);
}