/* =========================================================
   Services showcase — modelled on the "Have a look / Portfolio" reveal.
   Markup: index.php (#servicesShowcase) · Motion: assets/js/services-showcase.js
   Default styles = static fallback (no JS / reduced motion).
   .is-pinned (added by JS) = full-screen pinned scroll experience.
   ========================================================= */

.svc-show {
	--show-dark: #0C100C;
	--show-ink: #1B1F17;
	--show-olive: #71784B;
	--show-deep: #384321;
	--show-cream: #EFECD9;
	--show-sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--show-serif: 'DM Serif Display', Georgia, serif;
	--slot-w: 640px;
	--card-w: 400px;
	position: relative;
	background: #fff;
	color: var(--show-ink);
	font-family: var(--show-sans);
}

/* ---------- Static fallback ---------- */
.svc-show__half {
	display: none;
}

.svc-show__content {
	padding: clamp(64px, 8vw, 120px) 20px;
}

.svc-show__title {
	margin: 0 0 clamp(32px, 4vw, 56px);
	text-align: center;
	/* same outlined DM Serif Display style as the "WHY US?" / section headings */
	font-family: var(--show-serif);
	font-weight: 400;
	font-size: clamp(3.5rem, 15vw, 15rem);
	line-height: .9;
	letter-spacing: 0;
	text-transform: uppercase;
	color: #fff;
	-webkit-text-stroke: 1.5px var(--show-olive);
}

@supports not (-webkit-text-stroke: 1px) {
	.svc-show__title {
		color: var(--show-olive);
	}
}

.svc-show__track {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: 24px;
	max-width: 1320px;
	margin: 0 auto;
}

/* ---------- Cards ---------- */
.svc-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 32px;
	border-radius: 18px;
	box-shadow: 0 24px 60px rgb(0 0 0 / .18);
}

.svc-card--1 { background: var(--show-deep);  color: #fff; }
.svc-card--2 { background: var(--show-cream); color: var(--show-ink); }
.svc-card--3 { background: var(--show-olive); color: #fff; }
.svc-card--4 { background: var(--show-ink);   color: #fff; }

.svc-card__num {
	display: block;
	margin-bottom: 14px;
	font: 400 2rem/1 var(--show-serif);
	color: #C2C40B;
}

.svc-card--2 .svc-card__num {
	color: var(--show-deep);
}

.svc-card__title {
	margin: 0 0 12px;
	font-family: var(--show-serif) !important;
	font-weight: 400 !important;
	font-size: clamp(1.7rem, 2.2vw, 2.1rem) !important;   /* beats legacy responsive h3 !important */
	line-height: 1.05;
	color: inherit;
}

.svc-card__lead {
	margin: 0 0 16px;
	font: 400 1rem/1.5 var(--show-sans) !important;          /* beats legacy p 12px !important on phones */
	opacity: .85;
}

.svc-card__list {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	display: grid;
	gap: 6px;
}

.svc-card__list li {
	position: relative;
	padding-left: 22px;
	font: 600 .92rem/1.35 var(--show-sans);
}

.svc-card__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .62em;
	width: 12px;
	height: 2px;
	background: #C2C40B;
}

.svc-card .svc-shapes {
	width: 150px;
	margin: 4px 0 20px;
}

.svc-card__link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
	align-self: flex-start;
	font: 600 15px/1 var(--show-sans);
	color: inherit;
	text-decoration: none;
}

.svc-card__arrow {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid currentColor;
	transition: transform .3s ease, background-color .3s ease, color .3s ease;
}

.svc-card__arrow .ox-arrow {
	display: block;
	width: 18px;
	height: auto;
}

.svc-card__link:hover,
.svc-card__link:focus-visible {
	color: inherit;
}

.svc-card__link:hover .svc-card__arrow,
.svc-card__link:focus-visible .svc-card__arrow {
	transform: translateX(4px);
	background: #fff;
	color: var(--show-ink);
}

.svc-card--2 .svc-card__link:hover .svc-card__arrow,
.svc-card--2 .svc-card__link:focus-visible .svc-card__arrow {
	background: var(--show-deep);
	color: #fff;
}

.svc-card__link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
	border-radius: 4px;
}

/* =========================================================
   Pinned experience (JS adds .is-pinned)
   ========================================================= */
.svc-show.is-pinned {
	height: 100vh;
	height: 100svh;
	overflow: hidden;
}

/* Two black halves, each showing half of the same "HAVE A LOOK" line */
.svc-show.is-pinned .svc-show__half {
	position: absolute;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 50%;
	z-index: 9;
	overflow: hidden;
	background: var(--show-dark);
}

.svc-show.is-pinned .svc-show__half--top {
	top: 0;
}

.svc-show.is-pinned .svc-show__half--bottom {
	bottom: 0;
}

.svc-show.is-pinned .svc-show__half span {
	position: relative;
	font: 700 12vw/1 var(--show-sans);
	letter-spacing: 6px;
	text-transform: uppercase;
	white-space: nowrap;
	color: #fff;
}

.svc-show.is-pinned .svc-show__half--top span {
	top: 50%;
}

.svc-show.is-pinned .svc-show__half--bottom span {
	bottom: 50%;
}

.svc-show.is-pinned .svc-show__center {
	height: 100%;
	overflow: hidden;
}

.svc-show.is-pinned .svc-show__content {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	margin-top: 100vh;          /* starts below; slides up into view */
	padding: 0;
}

.svc-show.is-pinned .svc-show__title {
	margin: 0;
	font-size: 15vw;
	white-space: nowrap;
}

/* Cards travel horizontally across the big word, alternating top / bottom */
.svc-show.is-pinned .svc-show__track {
	position: absolute;
	inset: 24px;
	display: flex;
	justify-content: flex-start;
	gap: 0;
	max-width: none;
	margin: 0;
}

.svc-show.is-pinned .svc-show__slot {
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	width: var(--slot-w);
}

.svc-show.is-pinned .svc-show__slot:nth-child(2n) .svc-card {
	margin-top: auto;
}

.svc-show.is-pinned .svc-card {
	width: var(--card-w);
	max-height: calc(100svh - 48px);
	overflow: hidden;
}

@media (max-width: 991.98px) {
	.svc-show {
		--slot-w: 86vw;
		--card-w: 78vw;
	}

	.svc-show.is-pinned .svc-card {
		padding: 24px;
	}

	.svc-show.is-pinned .svc-card__list li {
		font-size: .85rem;
	}

	.svc-show.is-pinned .svc-show__half span {
		font-size: 10.5vw;
		letter-spacing: 2px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.svc-card__arrow {
		transition: none;
	}
}
