/**
 * Inhutani V Builder — gaya situs & kanvas editor. Semua kelas berawalan .i5b
 * agar tidak bentrok dengan tema, Elementor, atau plugin lain.
 */

/* ---------- Seksi Pro ---------- */
.i5b-section {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
	overflow: hidden;
	padding: var(--i5b-pt, 64px) var(--i5b-px, 20px) var(--i5b-pb, 64px);
	border-radius: var(--i5b-radius, 0);
	background-size: cover;
	background-repeat: no-repeat;
}
.i5b-section.valign-top { justify-content: flex-start; }
.i5b-section.valign-bottom { justify-content: flex-end; }
.i5b-section.is-parallax { background-attachment: fixed; }
@media (hover: none) { .i5b-section.is-parallax { background-attachment: scroll; } }
.i5b-section > .i5b-overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: var(--i5b-ov, #000);
	opacity: var(--i5b-ov-op, 0);
}
.i5b-section > .i5b-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.i5b-section > .i5b-inner { position: relative; width: 100%; max-width: var(--i5b-width, 1180px); margin-left: auto; margin-right: auto; }
.i5b-section.is-glass {
	background-color: rgb(255 255 255 / .55);
	-webkit-backdrop-filter: blur(16px) saturate(1.4);
	backdrop-filter: blur(16px) saturate(1.4);
	border: 1px solid rgb(255 255 255 / .45);
	box-shadow: 0 20px 50px -30px rgb(0 0 0 / .45);
}
.i5b-section .i5b-inner > * + * { margin-top: 1rem; }

/* Bentuk pemisah */
.i5b-shape { position: absolute; left: 0; right: 0; z-index: 0; height: var(--i5b-shape-h, 70px); line-height: 0; pointer-events: none; }
.i5b-shape svg { display: block; width: 100%; height: 100%; fill: var(--i5b-shape, #fff); }
.i5b-shape.is-top { top: -1px; }
.i5b-shape.is-bottom { bottom: -1px; transform: rotate(180deg); }

/* ---------- Kondisi tampil per perangkat ---------- */
@media (min-width: 1025px) { .i5b-hide-desktop { display: none !important; } }
@media (min-width: 768px) and (max-width: 1024px) { .i5b-hide-tablet { display: none !important; } }
@media (max-width: 767px) { .i5b-hide-mobile { display: none !important; } }
.block-editor-block-list__block.i5b-hide-desktop,
.block-editor-block-list__block.i5b-hide-tablet,
.block-editor-block-list__block.i5b-hide-mobile { display: revert !important; }

/* ---------- Efek hover ---------- */
.i5b-hover-lift, .i5b-hover-zoom, .i5b-hover-glow, .i5b-hover-tilt { transition: transform .4s cubic-bezier(.22, 1, .36, 1), box-shadow .4s; }
.i5b-hover-lift:hover { transform: translateY(-8px); box-shadow: 0 24px 40px -22px rgb(0 0 0 / .45); }
.i5b-hover-zoom:hover { transform: scale(1.04); }
.i5b-hover-glow:hover { box-shadow: 0 0 0 3px rgb(234 179 8 / .5), 0 20px 50px -20px rgb(234 179 8 / .6); }
.i5b-hover-tilt:hover { transform: perspective(900px) rotateX(4deg) rotateY(-5deg) translateY(-4px); }
.i5b-hover-shine { position: relative; overflow: hidden; }
.i5b-hover-shine::after {
	content: "";
	position: absolute;
	top: 0;
	left: -60%;
	width: 40%;
	height: 100%;
	background: linear-gradient(100deg, transparent, rgb(255 255 255 / .45), transparent);
	transform: skewX(-20deg);
	pointer-events: none;
	transition: left .7s ease;
}
.i5b-hover-shine:hover::after { left: 120%; }

/* ---------- Popup ---------- */
.i5b-popup { position: fixed; inset: 0; z-index: 99990; display: flex; align-items: center; justify-content: center; padding: 20px; }
.i5b-popup[hidden] { display: none; }
.i5b-popup-backdrop { position: absolute; inset: 0; background: rgb(5 20 14 / .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: i5bFade .3s ease; }
.i5b-popup-box {
	position: relative;
	width: 100%;
	max-height: calc(100vh - 40px);
	overflow: auto;
	padding: 28px;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 40px 80px -30px rgb(0 0 0 / .6);
	animation: i5bPop .45s cubic-bezier(.22, 1, .36, 1);
}
.i5b-popup-close { position: absolute; top: 10px; right: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f3f4f6; color: #111; font-size: 24px; line-height: 1; cursor: pointer; }
.i5b-popup-close:hover { background: #e5e7eb; }
@keyframes i5bFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes i5bPop { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	.i5b-section.is-parallax { background-attachment: scroll; }
	[class*="i5b-hover-"], .i5b-popup-box, .i5b-popup-backdrop { transition: none !important; animation: none !important; }
}
