/**
 * JT Service Detail (/services/<slug>/) — bespoke styles
 *
 * Scoped to `.jt-service-detail-2026` body class. Used in conjunction with
 * includes/templates/jt-service-detail.php which renders all 10 individual
 * services pages from a slug-keyed content map.
 *
 * Visual rhythm intentionally mirrors the /services/ landing (jt-services.php):
 *   - Same eyebrow + section-title scale
 *   - Dark "Why It Matters" band echoes the Philosophy band on the parent
 *   - Soft-gray "What We Deliver" band echoes the "Our Services" band
 * so the suite reads as one continuous editorial system.
 */

/* =========================================================================
 *  Local tokens
 * ========================================================================= */
.jt-service-detail-2026 {
	--jtsd-radius: 28px;
	--jtsd-line:   #dddddd;
	--jtsd-ease:   cubic-bezier(.16, 1, .3, 1);
	--jtsd-ink:    #0d0d0d;
	--jtsd-text:   #171717;
	--jtsd-muted:  #666666;
	--jtsd-cream:  #ebebeb;
}

.jt-service-detail-2026 #what-we-deliver,
.jt-service-detail-2026 #why-it-matters,
.jt-service-detail-2026 #why-jt,
.jt-service-detail-2026 #related-services {
	scroll-margin-top: 120px;
}

/* =========================================================================
 *  Section primitives
 * ========================================================================= */
.jt-service-detail-2026 .jt-sd-eyebrow {
	margin: 0 0 18px;
	color: var(--color-jt-red, #d71920);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.15em;
	line-height: 1;
	text-transform: uppercase;
}

.jt-service-detail-2026 .jt-sd-section-title {
	margin: 0;
	color: var(--jtsd-ink);
	font-size: clamp(2.4rem, 5.5vw, 5.4rem);
	font-weight: 900;
	line-height: 0.9;
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

.jt-service-detail-2026 .jt-sd-section {
	padding-top: clamp(82px, 8vw, 124px);
	padding-bottom: clamp(82px, 8vw, 124px);
}

.jt-service-detail-2026 .jt-sd-editorial {
	display: grid;
	grid-template-columns: minmax(230px, 360px) minmax(0, 1fr);
	gap: clamp(48px, 8vw, 128px);
	align-items: start;
}
.jt-service-detail-2026 .jt-sd-editorial__label { min-width: 0; position: relative; z-index: 2; }
.jt-service-detail-2026 .jt-sd-editorial__content { min-width: 0; position: relative; z-index: 1; padding-top: 6px; }
.jt-service-detail-2026 .jt-sd-editorial__label .jt-sd-section-title { max-width: 360px; }

/* =========================================================================
 *  Buttons
 * ========================================================================= */
.jt-service-detail-2026 .jt-sd-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 16px 24px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	text-decoration: none;
	transition: transform 0.25s var(--jtsd-ease), background 0.25s var(--jtsd-ease), color 0.25s var(--jtsd-ease), border-color 0.25s var(--jtsd-ease);
}
.jt-service-detail-2026 .jt-sd-btn i,
.jt-service-detail-2026 .jt-sd-btn svg {
	width: 16px;
	height: 16px;
	stroke-width: 2.5;
}
.jt-service-detail-2026 .jt-sd-btn--primary {
	background: var(--color-jt-red, #d71920);
	color: #fff;
	border: 1px solid var(--color-jt-red, #d71920);
}
.jt-service-detail-2026 .jt-sd-btn--primary:hover {
	transform: translateY(-2px);
	background: var(--jtsd-ink);
	border-color: var(--jtsd-ink);
}
.jt-service-detail-2026 .jt-sd-btn--ghost {
	background: transparent;
	color: var(--jtsd-ink);
	border: 1px solid rgba(0,0,0,0.18);
}
.jt-service-detail-2026 .jt-sd-btn--ghost:hover {
	transform: translateY(-2px);
	background: var(--jtsd-ink);
	color: #fff;
	border-color: var(--jtsd-ink);
}

/* =========================================================================
 *  Hero
 * ========================================================================= */
.jt-service-detail-2026 .jt-sd-hero {
	padding-top: clamp(120px, 14vw, 180px);
	padding-bottom: clamp(56px, 6vw, 96px);
}

/* Per-page hero background. Logo & Visual Identity uses a white background
 * because its hero image (design-services-single-graphic.png) sits on white
 * and would otherwise show a visible seam against the body's --color-jt-light. */
.jt-service-detail-2026--hero-white .jt-sd-hero {
	background: #ffffff;
}
.jt-service-detail-2026--hero-white .jt-sd-hero__media {
	background: #ffffff;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.06);
}
.jt-service-detail-2026--hero-white .jt-sd-hero__media::after {
	display: none; /* drop the dark overlay on white-bg heroes */
}

.jt-service-detail-2026 .jt-sd-breadcrumb {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin-bottom: clamp(28px, 3vw, 44px);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--jtsd-muted);
}
.jt-service-detail-2026 .jt-sd-breadcrumb a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--jtsd-ink);
	text-decoration: none;
	transition: color 0.2s var(--jtsd-ease);
}
.jt-service-detail-2026 .jt-sd-breadcrumb a:hover { color: var(--color-jt-red, #d71920); }
.jt-service-detail-2026 .jt-sd-breadcrumb__back,
.jt-service-detail-2026 .jt-sd-breadcrumb__back svg {
	width: 14px;
	height: 14px;
	stroke-width: 2.5;
	display: inline-block;
}
.jt-service-detail-2026 .jt-sd-breadcrumb__sep { opacity: 0.4; }

.jt-service-detail-2026 .jt-sd-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
	gap: clamp(32px, 6vw, 88px);
	align-items: center;
}
/* When the page has no hero image (e.g. it uses the full-bleed slide section
 * below the hero instead), collapse the grid to a single column and let the
 * copy breathe wider. */
.jt-service-detail-2026 .jt-sd-hero__grid--single {
	grid-template-columns: 1fr;
}
.jt-service-detail-2026 .jt-sd-hero__grid--single .jt-sd-hero__copy {
	max-width: 980px;
}

.jt-service-detail-2026 .jt-sd-hero__copy { max-width: 760px; }

.jt-service-detail-2026 .jt-sd-hero__h1 {
	margin: 0;
	color: var(--jtsd-ink);
	font-size: clamp(2.5rem, 8vw, 7rem);
	font-weight: 900;
	line-height: 0.9;
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

.jt-service-detail-2026 .jt-sd-hero__tagline {
	margin: 28px 0 0;
	color: var(--jtsd-ink);
	font-size: clamp(1.5rem, 2.6vw, 2.5rem);
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.jt-service-detail-2026 .jt-sd-hero__lead {
	max-width: 640px;
	margin: 26px 0 0;
	color: #262626;
	font-size: clamp(1.125rem, 1.55vw, 1.4rem);
	line-height: 1.4;
	letter-spacing: -0.015em;
}

.jt-service-detail-2026 .jt-sd-hero__ctas {
	margin-top: clamp(32px, 3.5vw, 48px);
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.jt-service-detail-2026 .jt-sd-hero__media {
	border-radius: var(--jtsd-radius);
	overflow: hidden;
	background: #111;
	min-height: 540px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
	position: relative;
}
.jt-service-detail-2026 .jt-sd-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.18) 100%);
	pointer-events: none;
}
.jt-service-detail-2026 .jt-sd-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 540px;
	object-fit: cover;
	object-position: center;
}

/* =========================================================================
 *  Slide section — full-bleed parallax band
 *
 *  Used by services pages whose live counterpart had the Elementor
 *  "Motion FX > page range > translateX" effect (brand-messaging,
 *  logo-visual-identity). The section escapes the max-w-7xl wrapper and
 *  stretches edge-to-edge of the viewport. The inner image is sized
 *  120% of viewport width with -10vw left offset so the JS handler in
 *  jt-service-detail.php can translate it left-to-right without ever
 *  revealing the section edge. Direction: right-to-left as scroll-down,
 *  matching the live behavior.
 * ========================================================================= */
.jt-service-detail-2026 .jt-sd-slide-section {
	width: 100%;
	overflow: hidden;
	margin: 0;
	/* Padding bumped from 48–96px so the section still feels substantial
	 * even though the image inside is now smaller. */
	padding: clamp(80px, 8vw, 144px) 0;
}
.jt-service-detail-2026 .jt-sd-slide-section__rail {
	/* The rail is the visible "window" — narrower than the section so the
	 * image reads more clearly with breathing room on each side. The rail
	 * itself clips the wider image so the translation never exposes the
	 * section background outside the window. */
	width: min(80vw, 1100px);
	margin: 0 auto;
	display: block;
	overflow: hidden;
}
.jt-service-detail-2026 .jt-sd-slide-section__img {
	display: block;
	/* Image is ~220px wider than the rail with -110px left offset so a
	 * ±90px translation (RANGE = 180) always covers the rail edges. */
	width: calc(100% + 220px);
	margin-left: -110px;
	height: auto;
	max-width: none;
	will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
	.jt-service-detail-2026 .jt-sd-slide-section__img {
		transform: none !important;
	}
}
/* On narrow viewports the image already extends well beyond the screen,
 * so we don't need the extra rail offset — let it fit inside the section. */
@media (max-width: 760px) {
	.jt-service-detail-2026 .jt-sd-slide-section {
		padding: 48px 0;
	}
	.jt-service-detail-2026 .jt-sd-slide-section__rail {
		width: 94vw;
	}
}

/* =========================================================================
 *  What We Deliver — soft-gray band, numbered capability grid
 * ========================================================================= */
.jt-service-detail-2026 .jt-sd-deliver {
	background: var(--jtsd-cream);
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.jt-service-detail-2026 .jt-sd-section__head {
	margin-bottom: clamp(40px, 5vw, 64px);
	max-width: 760px;
}

.jt-service-detail-2026 .jt-sd-cap-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.jt-service-detail-2026 .jt-sd-cap {
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 22px;
	padding: clamp(24px, 2.4vw, 36px);
	display: flex;
	flex-direction: column;
	gap: 14px;
	transition:
		transform 0.25s var(--jtsd-ease),
		background 0.25s var(--jtsd-ease),
		border-color 0.25s var(--jtsd-ease),
		color 0.25s var(--jtsd-ease);
	min-height: 220px;
}
.jt-service-detail-2026 .jt-sd-cap:hover {
	transform: translateY(-3px);
	background: var(--jtsd-ink);
	border-color: var(--jtsd-ink);
	color: #fff;
}
.jt-service-detail-2026 .jt-sd-cap:hover .jt-sd-cap__num { color: var(--color-jt-red, #d71920); }
.jt-service-detail-2026 .jt-sd-cap:hover .jt-sd-cap__name,
.jt-service-detail-2026 .jt-sd-cap:hover .jt-sd-cap__desc { color: inherit; }

.jt-service-detail-2026 .jt-sd-cap__num {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.15em;
	color: var(--color-jt-red, #d71920);
	text-transform: uppercase;
}

.jt-service-detail-2026 .jt-sd-cap__name {
	margin: 0;
	color: var(--jtsd-ink);
	font-size: clamp(1.25rem, 1.6vw, 1.6rem);
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: -0.02em;
	text-transform: uppercase;
}
.jt-service-detail-2026 .jt-sd-cap__desc {
	margin: 0;
	color: #353535;
	font-size: 1rem;
	line-height: 1.5;
}

/* =========================================================================
 *  Why It Matters — dark band
 * ========================================================================= */
.jt-service-detail-2026 .jt-sd-why-matters {
	background: var(--jtsd-ink);
	color: #fff;
	min-height: clamp(440px, 44vw, 600px);
	display: flex;
	align-items: center;
}
.jt-service-detail-2026 .jt-sd-why-matters > .max-w-7xl { width: 100%; }
.jt-service-detail-2026 .jt-sd-why-matters .jt-sd-section-title {
	color: #fff;
}
/* Eyebrow stays red on the dark band — pops against the black so the
 * "WHY IT MATTERS" label reads as a section flag, not a quiet caption. */
.jt-service-detail-2026 .jt-sd-why-matters .jt-sd-eyebrow {
	color: var(--color-jt-red, #d71920);
}
.jt-service-detail-2026 .jt-sd-why-matters__head {
	max-width: 1100px;
	margin-bottom: clamp(28px, 3vw, 48px);
}
.jt-service-detail-2026 .jt-sd-why-matters__copy {
	max-width: 880px;
	margin: 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: clamp(1.125rem, 1.55vw, 1.5rem);
	line-height: 1.45;
	letter-spacing: -0.015em;
}

/* =========================================================================
 *  Why Jacob Tyler — vertical stack (mirrors Why It Matters rhythm)
 *
 *  Earlier version was an editorial label/content split with "Why Jacob Tyler"
 *  as a small eyebrow and "25+ years. One in-house team." as the giant H2.
 *  Tyler flagged that as awkward — too much text in the H2, weirdly stacked.
 *  Switched to vertical stack: small eyebrow, BIG H2 ("Why Jacob Tyler."),
 *  smaller display tagline ("25+ years. One in-house team."), body copy, CTA.
 * ========================================================================= */
.jt-service-detail-2026 .jt-sd-why-jt__head {
	max-width: 1100px;
	margin-bottom: clamp(28px, 3vw, 48px);
}
.jt-service-detail-2026 .jt-sd-why-jt__sub {
	max-width: 760px;
	margin: 18px 0 0;
	color: var(--jtsd-ink);
	font-size: clamp(1.25rem, 1.9vw, 1.875rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
}
.jt-service-detail-2026 .jt-sd-why-jt__copy {
	max-width: 880px;
	margin: 0 0 32px;
	color: #353535;
	font-size: clamp(1.125rem, 1.55vw, 1.5rem);
	line-height: 1.45;
	letter-spacing: -0.015em;
}
.jt-service-detail-2026 .jt-sd-why-jt__cta {
	margin: 0;
}

/* =========================================================================
 *  Related (sibling links)
 * ========================================================================= */
.jt-service-detail-2026 .jt-sd-related {
	background: var(--jtsd-cream);
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.jt-service-detail-2026 .jt-sd-related__head {
	margin-bottom: clamp(40px, 5vw, 64px);
	max-width: 760px;
}
.jt-service-detail-2026 .jt-sd-related__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}
.jt-service-detail-2026 .jt-sd-related__item {
	min-height: 96px;
	padding: 20px 22px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.85);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	color: var(--jtsd-ink);
	text-decoration: none;
	transition:
		transform 0.25s var(--jtsd-ease),
		background 0.25s var(--jtsd-ease),
		color 0.25s var(--jtsd-ease),
		border-color 0.25s var(--jtsd-ease);
}
.jt-service-detail-2026 .jt-sd-related__item:hover {
	transform: translateY(-2px);
	background: var(--jtsd-ink);
	color: #fff;
	border-color: var(--jtsd-ink);
}
.jt-service-detail-2026 .jt-sd-related__item--all {
	background: var(--jtsd-ink);
	color: #fff;
	border-color: var(--jtsd-ink);
}
.jt-service-detail-2026 .jt-sd-related__item--all:hover {
	background: var(--color-jt-red, #d71920);
	border-color: var(--color-jt-red, #d71920);
}
.jt-service-detail-2026 .jt-sd-related__name {
	max-width: 360px;
	font-size: clamp(1.125rem, 1.5vw, 1.4rem);
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: -0.02em;
}
.jt-service-detail-2026 .jt-sd-arrow-circle {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--color-jt-red, #d71920);
	color: #fff;
	transform-origin: center;
	transition: transform 0.3s var(--jtsd-ease), background 0.3s var(--jtsd-ease);
}
.jt-service-detail-2026 .jt-sd-arrow-circle i,
.jt-service-detail-2026 .jt-sd-arrow-circle svg {
	width: 18px;
	height: 18px;
	stroke-width: 2.75;
	display: block;
}
.jt-service-detail-2026 .jt-sd-related__item:hover .jt-sd-arrow-circle {
	transform: rotate(-45deg);
}
.jt-service-detail-2026 .jt-sd-related__item--all .jt-sd-arrow-circle {
	background: #fff;
	color: var(--jtsd-ink);
}

/* =========================================================================
 *  Responsive
 * ========================================================================= */
@media (max-width: 1120px) {
	.jt-service-detail-2026 .jt-sd-hero__grid,
	.jt-service-detail-2026 .jt-sd-editorial {
		grid-template-columns: 1fr;
	}
	.jt-service-detail-2026 .jt-sd-editorial__label .jt-sd-section-title { max-width: none; }

	.jt-service-detail-2026 .jt-sd-cap-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.jt-service-detail-2026 .jt-sd-section {
		padding-top: 64px;
		padding-bottom: 64px;
	}

	.jt-service-detail-2026 .jt-sd-cap-grid,
	.jt-service-detail-2026 .jt-sd-related__grid {
		grid-template-columns: 1fr;
	}

	.jt-service-detail-2026 .jt-sd-hero__media,
	.jt-service-detail-2026 .jt-sd-hero__media img {
		min-height: 360px;
	}

	.jt-service-detail-2026 .jt-sd-why-matters {
		min-height: auto;
	}
}
