/* ==========================================================================
   HINTO HERO GATE ELEMENTOR ADDON STYLES
   ========================================================================== */

.hinto-doors-wrapper {
	--sans: 'Jost', system-ui, -apple-system, sans-serif;
	--mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
	--ease: cubic-bezier(.22, 1, .36, 1);
	--pad: clamp(20px, 5.5vw, 90px);

	width: 100%;
	position: relative;
	box-sizing: border-box;
	height: 220vh; /* Default scroll travel height */
	height: 220dvh;
	z-index: 1;
}

/* ---------- #sticky-hero Dynamic Sticky Support ---------- */
#sticky-hero.sticky,
#sticky-hero.is-sticky,
.sticky-hero.sticky,
.sticky-hero.is-sticky {
	position: -webkit-sticky !important;
	position: sticky !important;
	top: 0 !important;
	z-index: 2 !important;
	overflow: visible !important;
}

#sticky-hero:not(.sticky):not(.is-sticky),
.sticky-hero:not(.sticky):not(.is-sticky) {
	position: relative;
	top: auto;
}

/* Ensure sticky hero and Elementor parent containers do not clip position:sticky */
#sticky-hero,
.sticky-hero {
	overflow: visible !important;
}

.hinto-doors-wrapper *,
.hinto-doors-wrapper *::before,
.hinto-doors-wrapper *::after {
	box-sizing: border-box;
}

.hinto-doors {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 1;
	height: 100vh;
	height: 100dvh;
	min-height: 540px;
	overflow: hidden;
	background: #FDF2DE;
	color: #FDF2DE;
	font-family: var(--sans);
}

/* ---------- Background Content ---------- */
.hinto-firstview {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: grid;
	place-items: center;
	padding: 0 var(--pad);
	text-align: center;
	overflow: hidden;
	-webkit-clip-path: inset(0);
	clip-path: inset(0); /* Create clipping container for fixed background video */
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
}

.hinto-firstview--text {
	background: radial-gradient(115% 74% at 50% 46%, rgba(103,77,51,.07), transparent 64%), #FDF2DE;
}

.hinto-firstview--video {
	background: #000000;
}

/* Full Width Video Background */
.hinto-firstview__video-wrap {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: 0;
	pointer-events: none;
}

/* Fixed Parallax Attachment Mode */
.hinto-firstview__video-wrap.is-fixed {
	position: fixed;
	inset: 0;
	width: 100vw;
	width: 100dvw;
	height: 100vh;
	height: 100dvh;
	-webkit-transform: translate3d(0, 0, 0);
	transform: translate3d(0, 0, 0);
	will-change: transform;
}

.hinto-firstview__video {
	position: absolute;
	top: 50%;
	left: 50%;
	min-width: 100%;
	min-height: 100%;
	width: auto;
	height: auto;
	transform: translate(-50%, -50%);
	object-fit: cover;
	pointer-events: none !important;
	-webkit-user-select: none;
	user-select: none;
}

/* Responsive Desktop vs Mobile Video Display */
@media (min-width: 769px) {
	.hinto-firstview__video--mobile,
	.hinto-firstview__iframe--mobile {
		display: none !important;
	}
}

@media (max-width: 768px) {
	.hinto-firstview__video--desktop,
	.hinto-firstview__iframe--desktop {
		display: none !important;
	}
}

/* Hide Apple WebKit native video controls & play button overlay */
.hinto-firstview__video::-webkit-media-controls,
.hinto-firstview__video::-webkit-media-controls-start-playback-button,
.hinto-firstview__video::-webkit-media-controls-play-button,
.hinto-firstview__video::-webkit-media-controls-enclosure,
.hinto-corner-media video::-webkit-media-controls,
.hinto-corner-media video::-webkit-media-controls-start-playback-button,
.hinto-flanking-media video::-webkit-media-controls,
.hinto-flanking-media video::-webkit-media-controls-start-playback-button,
.hinto-expand-media video::-webkit-media-controls,
.hinto-expand-media video::-webkit-media-controls-start-playback-button {
	display: none !important;
	-webkit-appearance: none !important;
	opacity: 0 !important;
}

.hinto-firstview__iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100vw;
	height: 56.25vw;
	min-height: 100vh;
	min-width: 177.77vh;
	transform: translate(-50%, -50%);
	pointer-events: none;
	border: 0;
}

.hinto-firstview__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background-color: rgba(0, 0, 0, 0.35);
}

/* Next Section Curtain Parallax Overlap */
.hinto-next-curtain-slide {
	position: relative !important;
	z-index: 5 !important;
	box-shadow: 0 -25px 60px rgba(0, 0, 0, 0.5);
}

.hinto-firstview__in {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(16px, 2.2vw, 26px);
	max-width: min(90vw, 660px);
	transform: scale(calc(.95 + var(--p, 0) * .05));
	transition: transform 0.1s linear;
}

.hinto-label {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: rgba(103, 77, 51, .60);
	margin: 0;
}

.hinto-bar {
	display: block;
	height: 5px;
	width: 56px;
	border-radius: 2.5px;
	background: #674D33;
	flex: 0 0 auto;
}

.hinto-firstview__line {
	margin: 0;
	font-weight: 200;
	font-size: clamp(30px, 5.4vw, 68px);
	line-height: 1.02;
	letter-spacing: -.035em;
	color: #674D33;
	text-wrap: balance;
}

.hinto-firstview__sub {
	margin: 0;
	font-size: clamp(14px, 1.6vw, 18px);
	line-height: 1.6;
	color: rgba(103, 77, 51, .60);
	max-width: 46ch;
	text-wrap: balance;
}

/* ---------- Door Leaves ---------- */
.hinto-door {
	position: absolute;
	top: 0;
	height: 100%;
	width: 50%;
	overflow: hidden;
	background: #000000;
	will-change: transform;
}

.hinto-door--l {
	left: 0;
	transform: translate3d(calc(var(--p, 0) * -102%), 0, 0);
	box-shadow: 1px 0 0 0 #000000;
}

.hinto-door--r {
	right: 0;
	transform: translate3d(calc(var(--p, 0) * 102%), 0, 0);
}

.hinto-door__art {
	position: absolute;
	top: 0;
	height: 100%;
	width: 200%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: clamp(16px, 2.4vw, 30px);
	transform: scale(calc(1 + var(--p, 0) * .14));
	will-change: transform;
}

.hinto-door--l .hinto-door__art { left: 0; }
.hinto-door--r .hinto-door__art { right: 0; }

.hinto-door--l::after,
.hinto-door--r::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 80px;
	pointer-events: none;
	opacity: var(--p, 0);
}

.hinto-door--l::after {
	right: 0;
	background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .85));
}

.hinto-door--r::after {
	left: 0;
	background: linear-gradient(270deg, transparent, rgba(0, 0, 0, .85));
}

/* ---------- Without Gate Opening Mode ---------- */
.hinto-doors-wrapper.hinto-doors-wrapper--no-gate {
	height: auto !important;
	min-height: 0 !important;
}

.hinto-doors.hinto-doors--no-gate {
	position: relative !important;
	top: auto !important;
	height: var(--hinto-no-gate-height, 100vh);
	min-height: 500px;
}

.hinto-doors--no-gate .hinto-door--l {
	transform: translate3d(0, 0, 0) !important;
}

.hinto-doors--no-gate .hinto-door--r {
	transform: translate3d(0, 0, 0) !important;
}

.hinto-doors--no-gate .hinto-firstview {
	display: none !important;
}

.hinto-doors--no-gate .hinto-doors__ui {
	opacity: 1 !important;
}

/* ---------- 4 Corner Media Elements (Images / Videos / GIFs) ---------- */
.hinto-corner-media {
	position: absolute;
	z-index: 2;
	width: clamp(200px, 25vw, 360px);
	height: clamp(140px, 18vw, 270px);
	border-radius: 4px;
	overflow: hidden;
	background: #0a0a0a;
	box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
	transition: transform 0.45s var(--ease, cubic-bezier(.22, 1, .36, 1)), box-shadow 0.45s var(--ease, cubic-bezier(.22, 1, .36, 1));
	pointer-events: auto;
}

/* Left side corner media (Top-Left & Bottom-Left) expand to the RIGHT on hover */
.hinto-corner-media--tl:hover,
.hinto-corner-media--bl:hover {
	transform: scale(var(--hinto-corner-scale, 1.16)) translateX(var(--hinto-corner-shift-l, 14%));
	z-index: 10;
	box-shadow: 0 22px 55px rgba(0, 0, 0, 0.9);
}

/* Right side corner media (Top-Right & Bottom-Right) expand to the LEFT on hover */
.hinto-corner-media--tr:hover,
.hinto-corner-media--br:hover {
	transform: scale(var(--hinto-corner-scale, 1.16)) translateX(var(--hinto-corner-shift-r, -14%));
	z-index: 10;
	box-shadow: 0 22px 55px rgba(0, 0, 0, 0.9);
}

.hinto-corner-media__item {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border: 0;
}

.hinto-corner-media--tl {
	top: clamp(20px, 4vw, 45px);
	left: clamp(20px, 4vw, 45px);
}

.hinto-corner-media--bl {
	bottom: clamp(20px, 4vw, 45px);
	left: clamp(20px, 4vw, 45px);
}

.hinto-corner-media--tr {
	top: clamp(20px, 4vw, 45px);
	right: clamp(20px, 4vw, 45px);
}

.hinto-corner-media--br {
	bottom: clamp(20px, 4vw, 45px);
	right: clamp(20px, 4vw, 45px);
}

@media (max-width: 960px) {
	.hinto-corner-media {
		width: clamp(140px, 24vw, 220px);
		height: clamp(105px, 18vw, 165px);
	}
	.hinto-corner-media--tl, .hinto-corner-media--tr {
		top: clamp(15px, 3vw, 25px);
	}
	.hinto-corner-media--bl, .hinto-corner-media--br {
		bottom: clamp(15px, 3vw, 25px);
	}
	.hinto-corner-media--tl, .hinto-corner-media--bl {
		left: clamp(15px, 3vw, 25px);
	}
	.hinto-corner-media--tr, .hinto-corner-media--br {
		right: clamp(15px, 3vw, 25px);
	}
}

@media (max-width: 600px) {
	.hinto-corner-media {
		width: clamp(95px, 28vw, 140px);
		height: clamp(70px, 21vw, 105px);
	}
}

/* ---------- Flanking Side-by-Side Layout (Desktop > 820px) ---------- */
@media (min-width: 821px) {
	.hinto-flanking-group {
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: clamp(10px, 1.4vw, 22px);
		z-index: 2;
	}

	.hinto-flanking-group--left {
		left: clamp(20px, 3.5vw, 60px);
	}

	.hinto-flanking-group--right {
		right: clamp(20px, 3.5vw, 60px);
	}

	.hinto-flanking-media {
		position: relative;
		width: clamp(130px, 14.5vw, 240px);
		height: clamp(200px, 24vw, 420px);
		border-radius: 4px;
		overflow: hidden;
		background: #0a0a0a;
		/*box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);*/
		transition: transform 0.45s var(--ease, cubic-bezier(.22, 1, .36, 1)), box-shadow 0.45s var(--ease, cubic-bezier(.22, 1, .36, 1));
		pointer-events: auto;
	}

	.hinto-flanking-media:hover {
		transform: scale(var(--hinto-flanking-hover-scale, 1.06)) translateY(-4px);
		z-index: 10;
		/*box-shadow: 0 22px 55px rgba(0, 0, 0, 0.9);*/
	}

	.hinto-door__slogan {
		position: absolute;
		bottom: clamp(24px, 4.5vh, 60px);
		left: 0;
		width: 100%;
		text-align: center;
		margin: 0;
		font-weight: 300;
		font-size: clamp(13px, 1.8vw, 22px);
		letter-spacing: .25em;
		text-transform: none;
		color: #FFFFFF;
		z-index: 4;
	}
}

.hinto-flanking-media__item {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border: 0;
}

/* ---------- Full-Height Expandable Strips Layout ---------- */
.hinto-expand-group {
	position: absolute;
	top: 0;
	bottom: 0;
	height: 100%;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: clamp(0px, 0.4vw, 8px);
	z-index: 2;
}

.hinto-expand-group--left {
	left: 0;
}

.hinto-expand-group--right {
	right: 0;
}

.hinto-expand-media {
	position: relative;
	height: 100%;
	width: clamp(90px, 9.5vw, 160px);
	overflow: hidden;
	background: #0a0a0a;
	box-shadow: 4px 0 25px rgba(0, 0, 0, 0.5);
	transition: width 0.5s cubic-bezier(.22, 1, .36, 1), box-shadow 0.45s cubic-bezier(.22, 1, .36, 1);
	pointer-events: auto;
	will-change: width;
}

.hinto-expand-media:hover {
	width: clamp(240px, 25vw, 420px);
	z-index: 10;
	box-shadow: 10px 0 40px rgba(0, 0, 0, 0.85);
}

.hinto-expand-media__item {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border: 0;
}

/* ---------- Mobile Portrait View (<= 820px) ---------- */
@media (max-width: 820px) {
	.hinto-doors {
		min-height: 0;
		height: 100vh;
		height: 100dvh;
	}

	/* Prevent parent Elementor section/container from disabling position:sticky */
	.elementor-section.sticky,
	.elementor-section.is-sticky,
	.e-con.sticky,
	.e-con.is-sticky,
	#sticky-hero,
	.sticky-hero {
		overflow: visible !important;
	}

	.hinto-flanking-group {
		position: absolute;
		inset: 0;
		pointer-events: none;
	}

	.hinto-flanking-media {
		position: absolute;
		width: clamp(105px, 38vw, 160px);
		height: clamp(135px, 48vw, 210px);
		border-radius: 4px;
		overflow: hidden;
		background: #0a0a0a;
		/*box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);*/
		pointer-events: auto;
	}

	/* Top Pair Side-by-Side (Card 1 & Card 3) */
	.hinto-flanking-media--l1 {
		top: clamp(20px, 3.5vh, 42px);
		right: 4px;
	}

	.hinto-flanking-media--r1 {
		top: clamp(20px, 3.5vh, 42px);
		left: 4px;
	}

	/* Lower Pair Side-by-Side (Card 2 & Card 4) */
	.hinto-flanking-media--l2 {
		bottom: clamp(55px, 7.5vh, 85px);
		right: 4px;
	}

	.hinto-flanking-media--r2 {
		bottom: clamp(55px, 7.5vh, 85px);
		left: 4px;
	}

	/* Center Logo */
	.pizza-logo-mark {
		width: clamp(170px, 46vw, 260px) !important;
	}

	/* Slogan Text at Very Bottom */
	.hinto-door__slogan {
		position: absolute;
		bottom: clamp(14px, 2.2vh, 28px);
		left: 0;
		width: 100%;
		text-align: center;
		margin: 0;
		font-weight: 300;
		font-size: clamp(12px, 3.2vw, 16px);
		letter-spacing: .22em;
		text-transform: none;
		color: #FFFFFF;
		z-index: 4;
		margin-bottom: 0px;
	}

	.hinto-expand-media {
		width: clamp(55px, 16vw, 95px);
	}

	.hinto-expand-media:hover {
		width: clamp(120px, 34vw, 190px);
	}
}

@media (max-width: 480px) {
	.hinto-doors {
		min-height: 0;
		height: 100vh;
		height: 100dvh;
	}
	.hinto-flanking-media {
		width: clamp(95px, 40vw, 145px);
		height: clamp(120px, 50vw, 185px);
	}

	.hinto-flanking-media--l1,
	.hinto-flanking-media--r1 {
		top: clamp(15px, 2.5vh, 30px);
	}

	.hinto-flanking-media--l2,
	.hinto-flanking-media--r2 {
		bottom: clamp(48px, 6.5vh, 70px);
	}

	.pizza-logo-mark {
		width: clamp(140px, 48vw, 210px) !important;
	}

	.hinto-expand-media {
		width: clamp(40px, 14vw, 70px);
	}

	.hinto-expand-media:hover {
		width: clamp(90px, 32vw, 140px);
	}
}

.hinto-mark {
	display: block;
	fill: currentColor;
}

.hinto-door__mark {
	width: min(46vw, 430px);
	color: #FFFFFF;
}

.pizza-logo-mark {
	width: clamp(260px, 38vw, 440px);
	height: auto;
	color: #FFFFFF;
	fill: currentColor;
}

.hinto-logo-img {
	max-width: min(46vw, 320px);
	height: auto;
	object-fit: contain;
}

.hinto-wordmark {
	font-weight: 400;
	line-height: 1;
	white-space: nowrap;
	letter-spacing: .4em;
	text-indent: .4em;
}

.hinto-door__word {
	font-size: clamp(15px, 2.4vw, 28px);
	color: #FFFFFF;
}

/* ---------- Overlay UI Badges & Scroll Cue ---------- */
.hinto-doors__ui {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	opacity: calc(1 - var(--p, 0) * 2.4);
}

.hinto-doors__uiIn {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: clamp(18px, 2.6vh, 30px) var(--pad) clamp(20px, 3vh, 32px);
}

.hinto-doors__ui a {
	pointer-events: auto;
}

.hinto-doors__row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
}

.hinto-doors__ui .hinto-label {
	color: rgba(253, 242, 222, .58);
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hinto-doors__when {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.hinto-doors__when b {
	font-family: var(--mono);
	font-weight: 400;
	font-size: 14px;
	letter-spacing: .02em;
	color: #FDF2DE;
}

.hinto-cue {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 9px;
	color: rgba(253, 242, 222, .58);
	text-decoration: none;
}

.hinto-cue span {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: .22em;
	text-transform: uppercase;
}

.hinto-cue i {
	display: block;
	width: 1px;
	height: 40px;
	background: rgba(253, 242, 222, .18);
	position: relative;
	overflow: hidden;
}

.hinto-cue i::after {
	content: "";
	position: absolute;
	inset: 0 auto auto 0;
	width: 1px;
	height: 16px;
	background: #FDF2DE;
	animation: hinto-cue-anim 2.4s var(--ease) infinite;
}

@keyframes hinto-cue-anim {
	0% { transform: translateY(-18px); }
	55%, 100% { transform: translateY(42px); }
}

/* SVG gate animation build-in */
.hinto-mark rect { transform-box: fill-box; }
.hinto-door .post { transform-origin: bottom center; animation: hinto-rise .9s var(--ease) both; }
.hinto-door .post--r { animation-delay: .1s; }
.hinto-door .lintel { transform-origin: center; animation: hinto-span .85s var(--ease) .48s both; }
.hinto-door .tie { transform-origin: center; animation: hinto-span .75s var(--ease) .76s both; }

@keyframes hinto-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes hinto-span { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hinto-door__word { animation: hinto-settle 1s var(--ease) 1.02s both; }
@keyframes hinto-settle { from { opacity: 0; letter-spacing: .85em; } to { opacity: 1; letter-spacing: .4em; } }

.hinto-door__slogan, .hinto-doors__uiIn { animation: hinto-lift .9s var(--ease) 1.3s both; }
@keyframes hinto-lift { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	.hinto-door--l, .hinto-door--r { transform: none; }
	.hinto-door__art { transform: none; }
	.hinto-cue i::after { animation: none; }
	.hinto-door .post, .hinto-door .lintel, .hinto-door .tie, .hinto-door__word, .hinto-door__slogan, .hinto-doors__uiIn { animation: none; }
}
