/* ==========================================================================
   Services Page — Stacked Cards Layout
   ==========================================================================
   
   Design language: Modern, minimal, negative space.
   Massive typography, dark stacked service cards on a light canvas.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Services Page Tokens
   -------------------------------------------------------------------------- */

.page-template-page-services {
	--services-bg: #FAFAF8;
	--services-text: #111111;
	--services-text-muted: #6B6B68;
	--services-hairline: #E5E5E0;

	--services-card-bg: #1A1A1A;
	--services-card-text: #FFFFFF;
	--services-card-text-muted: #A3A3A0;
	--services-card-hairline: #333333;

	--services-accent: #ffbe0a;
	/* A bit more yellow-gold based on reference */
	--services-accent-hover: #e0a800;
	--services-max-width: 1400px;
	/* slightly narrower for dense stacked cards */
	--services-side-padding: clamp(24px, 6vw, 100px);

	--font-heading: 'Inter', sans-serif;
	/* Fallback if variable missing */
	--font-body: 'Inter', sans-serif;

	background-color: var(--services-bg);
	color: var(--services-text);
}

.services-container {
	width: 100%;
	max-width: var(--services-max-width);
	margin: 0 auto;
	padding-left: var(--services-side-padding);
	padding-right: var(--services-side-padding);
}

/* Eyebrow modifier */
.eyebrow-dash::before {
	content: "— ";
	color: var(--services-accent);
}

/* --------------------------------------------------------------------------
   Section 1 — Hero
   -------------------------------------------------------------------------- */

.services-hero {
	padding-top: clamp(120px, 15vh, 200px);
	padding-bottom: clamp(100px, 10vh, 150px);
	text-align: center;
}

.services-hero__eyebrow {
	font-family: var(--font-body);
	font-size: clamp(11px, 1.1vw, 12px);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--services-text-muted);
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

/* Using SVG icon in PHP for the specific dash in reference */

.services-hero__headline {
	font-family: var(--font-heading);
	font-size: clamp(48px, 7vw, 84px);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--services-text);
	margin: 0 0 2rem;
}

.services-hero__headline-muted {
	display: block;
	color: #D3D3D0;
	/* The ghosted/muted second line */
}

.services-hero__intro {
	font-family: var(--font-body);
	font-size: clamp(16px, 1.5vw, 18px);
	font-weight: 400;
	line-height: 1.6;
	color: var(--services-text-muted);
	max-width: 650px;
	margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Section 2 — Services List
   -------------------------------------------------------------------------- */

.services-list {
	padding-bottom: clamp(100px, 15vh, 160px);
}

.services-list__wrapper {
	display: flex;
	flex-direction: column;
	gap: 0;
	/* No gap — sticky overlap handles spacing */
}

.service-card {
	position: sticky;
	top: 80px;
	/* base sticky position (below header) */
	background-color: var(--services-card-bg);
	border-radius: 12px;
	padding: clamp(40px, 5vw, 64px);
	display: grid;
	grid-template-columns: 55fr 45fr;
	gap: clamp(40px, 6vw, 80px);
	align-items: start;
	color: var(--services-card-text);
	box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.3);
	margin-bottom: 40px;
	/* scroll distance before the next card covers this one */
}

/* Each subsequent card sticks slightly lower so the previous card peeks out */
.service-card:nth-child(2) {
	top: 100px;
}

.service-card:nth-child(3) {
	top: 120px;
}

.service-card:nth-child(4) {
	top: 140px;
}

.service-card:nth-child(5) {
	top: 160px;
}

.service-card:nth-child(6) {
	top: 180px;
}

/* Last card doesn't need bottom margin */
.service-card:last-child {
	margin-bottom: 0;
}

/* Left Column */
.service-card__main {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.service-card__icon {
	color: var(--services-accent);
	width: 32px;
	height: 32px;
	margin-bottom: 2rem;
}

.service-card__icon svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.service-card__title {
	font-family: var(--font-heading);
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 600;
	letter-spacing: -0.01em;
	margin: 0 0 1rem;
	color: var(--services-card-text);
}

.service-card__desc {
	font-family: var(--font-body);
	font-size: clamp(15px, 1.4vw, 16px);
	font-weight: 400;
	line-height: 1.65;
	color: var(--services-card-text-muted);
	margin: 0 0 2.5rem;
	max-width: 90%;
}

.service-card__button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: linear-gradient(to right, #f9f295, #e0aa3e, #faf398, #b88a44, #f9f295);
	background-size: 200% auto;
	background-origin: border-box;
	color: #111111;
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 600;
	padding: 12px 24px;
	border-radius: 999px;
	text-decoration: none;
	transition: background-position 0.4s ease;
}

.service-card__button:hover {
	background-position: right center;
}

.service-card__button svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

/* Right Column (Insights/Deliverables) */
.service-card__details {
	width: 100%;
}

.service-card__details-eyebrow {
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.05em;
	color: var(--services-card-text-muted);
	margin-bottom: 1.5rem;
	display: block;
}

.service-card__list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.service-card__list-item {
	font-family: var(--font-body);
	font-size: clamp(14px, 1.3vw, 15px);
	font-weight: 500;
	color: var(--services-card-text);
	padding: 20px 0;
	border-top: 1px solid var(--services-card-hairline);
	display: flex;
	align-items: center;
}

.service-card__list-item::before {
	content: "•";
	color: var(--services-card-text);
	margin-right: 12px;
	font-size: 1.2em;
}

/* The reference doesn't have a bottom border on the last item, but maybe it does. Let's add it for consistency. */
.service-card__list-item:last-child {
	border-bottom: 1px solid var(--services-card-hairline);
}

@media (max-width: 900px) {
	.services-list__wrapper {
		gap: 24px;
	}

	.service-card {
		position: relative;
		top: auto !important;
		grid-template-columns: 1fr;
		gap: 40px;
		padding: clamp(32px, 5vw, 48px);
		box-shadow: none;
		margin-bottom: 0;
	}

	.service-card__desc {
		max-width: 100%;
	}
}

/* --------------------------------------------------------------------------
   Section 3 — Closing CTA
   -------------------------------------------------------------------------- */

.services-cta {
	position: relative;
	padding-top: 50px;
	padding-bottom: clamp(80px, 5vw, 64px);
	margin-bottom: 100px;
}

/* The dark card with rounded corners */
.services-cta__card {
	position: relative;
	z-index: 2;
	width: 100%;
	min-height: clamp(400px, 50vh, 550px);
	background-color: #111111;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.services-cta__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(10, 10, 10, 0.45);
	z-index: 1;
}

.services-cta__content {
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: 800px;
	margin: 0 auto;
	padding: clamp(48px, 6vw, 80px) var(--services-side-padding);
}

.services-cta__eyebrow {
	font-family: var(--font-body);
	font-size: clamp(11px, 1.1vw, 13px);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--services-accent);
	margin-bottom: 1.25rem;
	display: block;
}

.services-cta__heading {
	font-family: var(--font-heading);
	font-size: clamp(32px, 4.5vw, 52px);
	font-weight: 600;
	line-height: 1.1;
	color: #FFFFFF;
	margin: 0 0 1.5rem;
	letter-spacing: -0.01em;
}

.services-cta__paragraph {
	font-family: var(--font-body);
	font-size: clamp(14px, 1.3vw, 16px);
	font-weight: 400;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.7);
	margin: 0 0 2.5rem;
}

.services-cta__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 600;
	padding: 16px 44px;
	border-radius: 99px;
	background: linear-gradient(to right, #f9f295, #e0aa3e, #faf398, #b88a44, #f9f295);
	background-size: 200% auto;
	background-origin: border-box;
	color: #111111;
	border: 1px solid transparent;
	text-decoration: none;
	transition: background-position 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.services-cta__button:hover {
	background-position: right center;
	border-color: transparent;
}

/* Gold band behind the card — covers bottom 80% */
.services-cta__gold-bar {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	max-width: 1400px;
	width: 100%;
	height: 80%;
	background-color: var(--services-accent);
	z-index: 1;
	margin: 0 auto;
	border-radius: 16px;
}