/**
 * Interactive Folder Hero — styles.
 * Only transform / opacity / box-shadow animate. Layout values come from
 * Elementor (selectors) or CSS variables; no behaviour lives here.
 */

.ifh-hero{
	position: relative;
	width: 100%;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	min-height: 720px;
}

.ifh-folders{
	position: relative;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	height: 86%;
	min-height: inherit;
}

/* ---- folder layers ---- */
.ifh-folder{
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	will-change: transform;
	transform: translateZ(0);
}
.ifh-back  { height: 80%; z-index: 1; }
.ifh-mid   { height: 75%; z-index: 2; }
.ifh-front { height: 70%; z-index: 3; }

.ifh-body{
	position: absolute;
	inset: 0;
	border-radius: 16px;
	overflow: visible;
	box-shadow: 0 10px 26px -16px rgba(10, 25, 15, .45);
	transition: box-shadow .5s ease;
}
.ifh-front .ifh-body{ overflow: hidden; }

/* the coloured / textured paper fill sits behind content */
.ifh-paper{
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background-color: #13351f;
	z-index: 0;
}

/* folder tab */
.ifh-tab{
	position: absolute;
	top: -48px;
	left: 6%;
	width: 26%;
	height: 48px;
	background-color: #13351f;
	border-radius: 16px 16px 0 0;
	z-index: 0;
}

/* deepened shadow while opening */
.ifh-hero.is-open .ifh-body{
	box-shadow: 0 30px 70px -22px rgba(10, 25, 15, .6);
}

/* ---- content (inside front folder) ---- */
.ifh-content{
	position: relative;
	z-index: 5;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 70px 56px;
	box-sizing: border-box;
}
.ifh-heading{
	margin: 0;
	color: #C5DD6E;
	font-weight: 900;
	line-height: .9;
	letter-spacing: -.01em;
	font-size: clamp(40px, 7vw, 104px);
	text-transform: uppercase;
}
.ifh-sub{ margin: 14px 0 0; font-weight: 600; }
.ifh-desc{ margin: 12px 0 0; max-width: 520px; line-height: 1.6; color: rgba(255,255,255,.85); }

.ifh-actions{
	margin-top: 34px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.ifh-logo{
	font-family: 'Grand Hotel', cursive;
	font-size: 40px;
	line-height: 1;
	color: #ECB099;
}
.ifh-btn{
	display: inline-block;
	padding: 12px 24px;
	border-radius: 999px;
	background: #ECB099;
	color: #13351f;
	font-weight: 600;
	text-decoration: none;
	transition: transform .25s ease, background-color .25s ease, color .25s ease;
}
.ifh-btn:hover{ transform: translateY(-2px); }

/* ---- floating images & decorations ---- */
.ifh-float,
.ifh-decor{
	position: absolute;
	display: block;
	max-width: none;
	will-change: transform;
	pointer-events: none;
	transform: rotate(var(--rot, 0deg)) scale(var(--scale, 1));
}
.ifh-float{ pointer-events: auto; }
.ifh-decor--wiggle{ pointer-events: auto; }

/* hover micro-interactions when GSAP is absent (graceful fallback) */
.no-gsap .ifh-float:hover{ transform: rotate(var(--rot,0deg)) scale(1.06); }

/* ---- reveal helpers (GSAP sets the real animation; these are no-JS safe) ---- */
.ifh-hero[data-ready] .ifh-heading,
.ifh-hero[data-ready] .ifh-actions{ opacity: 1; }

/* ---- responsive ---- */
@media (max-width: 1024px){
	.ifh-content{ padding: 48px; }
	.ifh-heading{ font-size: clamp(34px, 8vw, 72px); }
}
@media (max-width: 767px){
	.ifh-hero{ min-height: 560px; }
	.ifh-folders{ height: 90%; }
	.ifh-back  { height: 82%; }
	.ifh-mid   { height: 78%; }
	.ifh-front { height: 74%; }
	.ifh-content{ padding: 32px 22px; }
	.ifh-actions{ justify-content: center; }
	/* On small screens floating images can crowd the text — soften them. */
	.ifh-float{ opacity: .9; }
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce){
	.ifh-folder,
	.ifh-float,
	.ifh-decor,
	.ifh-body{ transition: none !important; animation: none !important; }
}
