/* =========================================================
   Installation Showcase — frontend styles
   Written to inherit the host theme's font-family & base
   colors by default; every color/typography value below is
   also exposed as an Elementor control, so site owners can
   fully restyle without touching this file.
   ========================================================= */

.is-showcase {
	--is-scroll-vh: 100vh;
	position: relative;
	box-sizing: border-box;
	padding: 90px 6vw;
	overflow: hidden;
}
.is-showcase *,
.is-showcase *::before,
.is-showcase *::after {
	box-sizing: border-box;
}

/* ---------- Intro ---------- */
.is-intro {
	max-width: 720px;
	margin: 0 0 64px;
}
.is-eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-bottom: 14px;
}
.is-heading {
	margin: 0 0 16px;
	font-size: clamp(28px, 3.4vw, 44px);
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -0.01em;
}
.is-subheading {
	margin: 0;
	font-size: 17px;
	line-height: 1.6;
	max-width: 60ch;
}

/* ---------- Outer scroller: the rows column + the dot rail ----------
   Each install is its own independent row (own image panel + own
   card, side by side). There is no shared image element and no
   crossfade between installs — every row's photo lives, sticks and
   fades entirely within that row. */
.is-scroller {
	display: flex;
	align-items: stretch;
	gap: 20px;
}

.is-rows {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

/* ---------- One row = one install ---------- */
.is-row {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 5%;
}
.is-media-right .is-row {
	flex-direction: row-reverse;
}

/* ---------- Media panel — belongs to THIS row only ----------
   Sticks while its own row is being scrolled through, then
   unsticks naturally (plain CSS position:sticky) the moment the
   row ends, so the next row's own panel takes over. Nothing here
   is shared with, or aware of, any other install's panel. */
.is-row-media {
	position: relative;
	width: 46%;
	height: 74vh;
	flex: 0 0 auto;
	border-radius: 22px;
	overflow: hidden;
	background: #0e1e27;
	box-shadow: 0 24px 60px -20px rgba(15, 30, 40, 0.35);
}
.is-sticky-on .is-row-media {
	position: sticky;
	top: 8vh;
}

.is-media-frame {
	position: relative;
	width: 100%;
	height: 100%;
}

/* Modern fade, not a blackout: the image itself just sits dimmed
   and slightly desaturated when its row isn't the active one, and
   eases up to fully visible as you scroll to it — no black panel
   flashing in, nothing covering the caption. */
.is-media-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: 0.3;
	filter: saturate(0.6);
	transition: opacity 0.6s ease, filter 0.6s ease, transform 0.6s ease;
}
.is-row.is-active .is-media-img {
	opacity: 1;
	filter: saturate(1);
}

.is-transition-slide .is-media-img {
	transform: translateY(-14px) scale(1.02);
}
.is-transition-slide .is-row.is-active .is-media-img {
	transform: translateY(0) scale(1);
}
.is-transition-zoom .is-media-img {
	transform: scale(1.08);
}
.is-transition-zoom .is-row.is-active .is-media-img {
	transform: scale(1);
}

/* Caption: one fixed, uniform anchor point for every install — the
   exact centre (the "50% line") of the image panel. It never moves
   or resizes based on how long a site name or location string is;
   only --is-cap-x / --is-cap-y (the Caption Position controls) nudge
   it away from dead-centre, and every row uses the same values. A
   plain opacity fade brings it in with the photo — no gradient bar,
   no dependence on the old blackout layer. */
.is-media-caption {
	--is-cap-x: 0px;
	--is-cap-y: 0px;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(calc(-50% + var(--is-cap-x)), calc(-50% + var(--is-cap-y)));
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 4px;
	min-width: 200px;
	max-width: 80%;
	padding: 16px 24px;
	color: #fff;
	background: rgba(10, 20, 26, 0.55);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-radius: 14px;
	z-index: 1;
	opacity: 0;
	transition: opacity 0.6s ease;
	pointer-events: none;
}
.is-row.is-active .is-media-caption {
	opacity: 1;
}
.is-media-caption-name {
	font-weight: 700;
	font-size: 16px;
	line-height: 1.3;
}
.is-media-caption-loc {
	font-size: 13px;
	opacity: 0.85;
	line-height: 1.3;
}

/* ---------- Progress dots ----------
   A separate column, entirely outside the rows/media markup, so it
   can't cross-link the image panels together. It stretches to the
   full height of .is-rows and pins itself mid-viewport (the classic
   "tall stretched parent + sticky child" trick) so it stays visible
   for the whole scroll, independent of any one row. */
.is-progress-wrap {
	flex: 0 0 auto;
	width: 24px;
	align-self: stretch;
	position: relative;
}
.is-progress {
	position: sticky;
	top: 50vh;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	gap: 10px;
	z-index: 3;
}
.is-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.4);
	cursor: pointer;
	transition: background 0.3s ease, transform 0.3s ease;
}
.is-dot.is-active {
	background: #c89b3c;
	transform: scale(1.35);
}

/* ---------- Card ---------- */
.is-card {
	position: relative;
	width: 49%;
	flex: 0 0 auto;
	min-height: var(--is-scroll-vh, 100vh);
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 40px;
	opacity: 0.35;
	transition: opacity 0.5s ease;
}
.is-card.is-active {
	opacity: 1;
}

/* Per-card photo — hidden on desktop (each row already carries its
   own image panel beside it), shown below the responsive breakpoint
   where rows collapse to a single column. */
.is-card-image {
	display: none;
	width: 100%;
	aspect-ratio: 16 / 10;
	border-radius: 14px;
	overflow: hidden;
	margin-bottom: 20px;
	background: #0e1e27;
}
.is-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.is-badge {
	position: absolute;
	top: 0;
	left: 40px;
	transform: translateY(-50%);
	background: #152c3a;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 6px 14px;
	border-radius: 999px;
}

.is-card-top {
	margin-bottom: 14px;
}
.is-phase {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #c89b3c;
	border: 1px solid currentColor;
	border-radius: 999px;
	padding: 5px 12px;
}

.is-site-name {
	margin: 0 0 8px;
	font-size: clamp(22px, 2.2vw, 30px);
	font-weight: 700;
	line-height: 1.25;
}

.is-meta {
	font-size: 14px;
	color: #6c8a97;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.is-meta-sep {
	opacity: 0.5;
}

.is-description {
	margin: 18px 0 0;
	font-size: 16px;
	line-height: 1.7;
	max-width: 52ch;
}

.is-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid rgba(21, 44, 58, 0.1);
}
.is-stat {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.is-stat-value {
	font-size: 20px;
	font-weight: 700;
	color: #c89b3c;
}
.is-stat-label {
	font-size: 12px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #8494a0;
}

.is-card-link {
	margin-top: 26px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	color: inherit;
	transition: gap 0.2s ease;
}
.is-card-link:hover {
	gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.is-scroller {
		gap: 0;
	}
	.is-row,
	.is-media-right .is-row {
		flex-direction: column;
	}
	.is-row-media {
		display: none;
	}
	.is-card-image {
		display: block;
	}
	.is-card {
		width: 100%;
		min-height: auto;
		padding: 28px 4px 48px;
		opacity: 1;
	}
	.is-progress-wrap {
		display: none;
	}
}

@media (max-width: 600px) {
	.is-showcase {
		padding: 56px 22px;
	}
	.is-card-image {
		aspect-ratio: 4 / 3;
		border-radius: 16px;
	}
}
