/**
 * Location-SEO templates: scoped styles for single-location, archive-location,
 * single-project. Pro's container/section structural classes (x-section,
 * x-container max width) handle outer width + spacing; everything below
 * styles only the content we render.
 */

:root {
	--jk-brand: #537da0;
	--jk-brand-dark: #24546f;
	--jk-brand-soft: #afcae1;
	--jk-accent: #a71000;
	--jk-accent-dark: #7a0c00;
	--jk-text: #272727;
	--jk-muted: #999999;
	--jk-bg-soft: #f5f5f5;
	--jk-border: #e5e5e5;
	--jk-radius: 4px;
	--jk-gap: 1.5rem;
	--jk-section-y: clamp(2.5rem, 5vw, 4.5rem);
	--jk-font: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Smooth in-page anchor scrolling for location/project views.
   Scoped to html.location-page-active by Pro's body classes if available;
   otherwise enabled globally on these pages since the stylesheet only loads here. */
html { scroll-behavior: smooth; }

#contact { scroll-margin-top: 80px; }

.location-page,
.location-archive,
.project-page {
	font-family: var(--jk-font);
}

/* ---------- layout primitives (replace borrowed Cornerstone classes) ---------- */

.jk-section {
	padding-top: clamp(3rem, 6vw, 5.5rem);
	padding-bottom: clamp(3rem, 6vw, 5.5rem);
	box-sizing: border-box;
}

.jk-section + .jk-section { border-top: 0; }

.jk-container {
	max-width: 1180px;
	margin: 0 auto;
	padding-left: clamp(1rem, 4vw, 2.5rem);
	padding-right: clamp(1rem, 4vw, 2.5rem);
	box-sizing: border-box;
}

.location-page h1, .location-page h2, .location-page h3,
.location-archive h1, .location-archive h2, .location-archive h3,
.project-page h1, .project-page h2, .project-page h3 {
	font-family: var(--jk-font);
	font-weight: 600;
	letter-spacing: -0.01em;
}

/* ---------- generic location-page wrapper ---------- */

.location-page,
.location-archive,
.project-page {
	color: var(--jk-text);
}


.location-page h1,
.location-page h2,
.location-archive h1,
.location-archive h2,
.project-page h1,
.project-page h2 {
	color: var(--jk-brand-dark);
	line-height: 1.2;
	margin: 0 0 1rem;
}

.location-page h1,
.location-archive h1,
.project-page h1 {
	font-size: clamp(2.4rem, 5.4vw, 3.6rem);
	line-height: 1.15;
}

.location-page h2,
.location-archive h2,
.project-page h2 {
	font-size: clamp(1.8rem, 3.4vw, 2.5rem);
	margin-top: 0;
	margin-bottom: 1.5rem;
	line-height: 1.2;
}

.location-page p,
.location-archive p,
.project-page p {
	font-size: 1.1rem;
	line-height: 1.65;
}

.location-page section > .jk-container > p:not([class]),
.project-page section > .jk-container > p:not([class]) {
	max-width: 65ch;
	font-size: 1.1rem;
	line-height: 1.7;
	color: var(--jk-text);
	margin: 0 auto 2.25rem;
	text-align: center;
}

.location-page p,
.project-page p {
	font-size: 1.05rem;
	line-height: 1.65;
}

.location-page a,
.location-archive a,
.project-page a {
	color: var(--jk-brand);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.location-page a:hover,
.location-archive a:hover,
.project-page a:hover {
	color: var(--jk-accent);
}

/* ---------- buttons (matches Pro button rhythm without depending on x- classes) ---------- */

/* Buttons — match Pro homepage button style.
   Asymmetric padding (heavy top, light bottom), solid 4px drop shadow, hover-to-black. */
.jk-btn {
	display: inline-block;
	padding: 20px 40px 10px;
	background: var(--jk-brand);
	color: #fff !important;
	text-decoration: none !important;
	border: 0;
	border-radius: 0;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-transform: none;
	box-shadow: 0 4px 0 0 rgba(0, 0, 0, 0.2);
	transition: background 150ms ease, transform 100ms ease;
	cursor: pointer;
}

.jk-btn:hover,
.jk-btn:focus { background: #000; color: #fff !important; }

.jk-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 0 rgba(0,0,0,0.2); }

/* Ghost variant: same solid blue style as primary. Per design language, every
   button is the same blue (matches Pro homepage / About page). The class still
   exists for templating, just renders identically. */
.jk-btn--ghost { /* identical to primary */ }

.jk-btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 1.75rem;
	justify-content: center;
}

/* ---------- hero ---------- */

.location-hero {
	background-color: var(--jk-brand-dark);
	background-size: cover;
	background-position: center 40%;
	background-repeat: no-repeat;
	color: #fff;
	position: relative;
	min-height: 70vh;
	display: flex;
	align-items: center;
	padding-top: clamp(4rem, 9vw, 7rem) !important;
	padding-bottom: clamp(4rem, 9vw, 7rem) !important;
	overflow: hidden;
}

.location-hero:not(.has-image) {
	background-image: linear-gradient(135deg, var(--jk-brand) 0%, var(--jk-brand-dark) 100%);
}

.location-hero__overlay {
	position: absolute; inset: 0;
	background: linear-gradient(105deg, rgba(15, 35, 55, 0.92) 0%, rgba(15, 35, 55, 0.78) 50%, rgba(15, 35, 55, 0.55) 100%);
	z-index: 0;
}

.location-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 780px;
	margin: 0 auto;
	text-align: center;
}

.location-hero h1 {
	color: #fff;
	font-weight: 700;
	margin-bottom: 1.25rem;
	text-shadow: 0 2px 30px rgba(0,0,0,0.25);
}

.location-hero__lead {
	display: inline-block;
	font-size: 0.78rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #fff;
	margin: 0 0 1.5rem;
	font-weight: 700;
	padding: 0.45rem 0.9rem;
	background: var(--jk-accent);
	border-radius: 3px;
}

.location-hero__intro {
	font-size: 1.1rem;
	line-height: 1.7;
	max-width: 60ch;
	margin: 1.25rem auto 0;
	color: rgba(255,255,255,0.94);
}

.location-hero__intro p:first-child { margin-top: 0; }
.location-hero__intro a { color: #fff; text-decoration: underline; }


.location-hero__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 2rem;
	margin: 1.75rem auto 0;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255,255,255,0.18);
	font-size: 0.92rem;
	color: rgba(255,255,255,0.8);
}

.location-hero__meta strong { color: #fff; font-weight: 600; }

/* ---------- trust strip ---------- */

.jk-trust-strip {
	background: var(--jk-brand-dark);
	color: #fff;
	padding: 1.25rem 0;
	border-top: 4px solid var(--jk-accent);
}

.jk-trust-strip__list {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	margin: 0;
	padding: 0;
}

@media (max-width: 760px) {
	.jk-trust-strip__list { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

.jk-trust-strip__list li {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.25rem;
	border-left: 1px solid rgba(255,255,255,0.18);
	padding: 0 1rem;
}

.jk-trust-strip__list li:first-child { border-left: 0; }

@media (max-width: 760px) {
	.jk-trust-strip__list li:nth-child(odd) { border-left: 0; }
}

.jk-trust-strip__num {
	font-size: 1.4rem;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.02em;
}

.jk-trust-strip__label {
	font-size: 0.78rem;
	color: rgba(255,255,255,0.78);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

/* ---------- centered section content (matches About page design language) ---------- */

.location-page section .jk-container,
.location-archive .jk-container,
.project-page section .jk-container {
	text-align: center;
}

.jk-eyebrow {
	display: inline-block;
	font-size: 0.78rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--jk-accent);
	font-weight: 700;
	margin: 0 auto 0.85rem;
	position: relative;
	padding: 0 2.5rem;
}

.jk-eyebrow::before,
.jk-eyebrow::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 1.75rem;
	height: 2px;
	background: var(--jk-accent);
	transform: translateY(-50%);
}
.jk-eyebrow::before { left: 0; }
.jk-eyebrow::after { right: 0; }

.location-page section h2,
.location-archive h2,
.project-page h2 {
	margin-bottom: 0.5rem;
	text-align: center;
}

.jk-section-intro,
.location-page section > .jk-container > p:not([class]):first-of-type {
	max-width: 65ch;
	font-size: 1.08rem;
	line-height: 1.65;
	color: var(--jk-muted);
	margin: 0 auto 2.5rem;
}

/* ---------- service grid ---------- */

.location-services__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--jk-gap);
	margin-top: 2rem;
}

@media (min-width: 900px) {
	.location-services__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 899px) and (min-width: 600px) {
	.location-services__grid { grid-template-columns: repeat(2, 1fr); }
}

.service-card {
	background: #fff;
	border: 1px solid var(--jk-border);
	border-radius: var(--jk-radius);
	padding: 3rem 1.75rem 2.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	position: relative;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
	overflow: hidden;
	min-height: 340px;
}

.service-card::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: var(--jk-accent);
	opacity: 0.85;
}

.service-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 36px rgba(15, 35, 55, 0.10);
	border-color: var(--jk-brand-soft);
}

.service-card__icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--jk-accent);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 0 1.25rem;
}

.service-card__icon svg { width: 30px; height: 30px; }

.service-card h3 {
	margin: 0 0 0.85rem;
	font-size: 1.15rem;
	color: var(--jk-brand-dark);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.service-card p {
	margin: 0 0 1.75rem;
	font-size: 1.02rem;
	color: var(--jk-text);
	line-height: 1.6;
	flex: 1;
}

.service-card a {
	display: inline-block;
	padding: 14px 28px 8px;
	background: var(--jk-brand);
	color: #fff !important;
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	box-shadow: 0 4px 0 0 rgba(0, 0, 0, 0.2);
	transition: background 150ms ease;
}

.service-card a:hover { background: #000; }

/* ---------- climate / context section (dark band — matches About-page "Full-Service Roofing Expertise" feature section) ---------- */

.location-climate {
	background: var(--jk-brand-dark);
	color: #fff;
	border-top: 4px solid var(--jk-accent);
}

.location-climate h2 { color: #fff !important; }
.location-climate .jk-eyebrow { color: #fff; }
.location-climate .jk-eyebrow::before,
.location-climate .jk-eyebrow::after { background: var(--jk-accent); }

.location-climate__body {
	max-width: 70ch;
	margin: 1.5rem auto 0;
	text-align: left;
	color: rgba(255,255,255,0.92);
}

.location-climate__body p {
	font-size: 1.15rem;
	line-height: 1.75;
	margin-bottom: 1.25rem;
	color: rgba(255,255,255,0.92);
}

.location-climate__body p:last-child { margin-bottom: 0; }

.location-climate__body strong { color: #fff; }

.location-climate__body ul {
	line-height: 1.75;
	padding-left: 1.5rem;
	text-align: left;
	margin: 1.25rem 0;
}

.location-climate__body li {
	margin-bottom: 0.75rem;
	font-size: 1.1rem;
}

/* ---------- projects grid ---------- */

.location-projects { background: var(--jk-bg-soft); }

.location-projects__grid,
.project-archive__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: var(--jk-gap);
	margin-top: 2rem;
}

@media (min-width: 900px) {
	.location-projects__grid,
	.project-archive__grid { grid-template-columns: repeat(3, 1fr); }
}

/* When only one project exists, don't stretch it to full container width */
.location-projects__grid.is-single {
	grid-template-columns: 1fr !important;
	max-width: 380px;
}

.project-card {
	background: #fff;
	border: 1px solid var(--jk-border);
	border-radius: var(--jk-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.project-card__image {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: var(--jk-bg-soft);
}

.project-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; text-align: center; align-items: center; }

.project-card h3 {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
	color: var(--jk-brand-dark);
}

.project-card__meta {
	font-size: 0.8rem;
	color: var(--jk-muted);
	margin: 0 0 0.75rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.project-card__excerpt { font-size: 0.95rem; line-height: 1.5; margin: 0 0 0.75rem; flex: 1; }

.project-card__link {
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
}

/* ---------- nearby ---------- */

.location-nearby {
	background: var(--jk-brand-dark);
	color: #fff;
}
.location-nearby h2 { color: #fff !important; }
.location-nearby .jk-eyebrow { color: #fff; }
.location-nearby .jk-eyebrow::before,
.location-nearby .jk-eyebrow::after { background: var(--jk-accent); }
.location-nearby > .jk-container > p:not([class]),
.location-nearby p { color: rgba(255,255,255,0.94) !important; }

.location-nearby__list {
	list-style: none;
	padding: 0;
	margin: 1.5rem auto 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.85rem;
}

.location-nearby__list li a {
	display: inline-block;
	padding: 14px 28px 8px;
	background: var(--jk-brand);
	border: 0;
	border-radius: 3px;
	text-decoration: none;
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
	box-shadow: 0 4px 0 0 rgba(0, 0, 0, 0.2);
	transition: background 150ms ease;
}

.location-nearby__list li a:hover {
	background: #000;
	color: #fff;
}

/* ---------- FAQ ---------- */

.location-faq__list { max-width: 72ch; margin: 1.5rem auto 0; text-align: left; }

.location-faq__item {
	border: 1px solid var(--jk-border);
	border-radius: var(--jk-radius);
	background: #fff;
	margin-bottom: 0.85rem;
	overflow: hidden;
	transition: border-color 150ms ease, box-shadow 150ms ease;
}

.location-faq__item[open] {
	border-color: var(--jk-brand-soft);
	box-shadow: 0 6px 18px rgba(15,35,55,0.05);
}

.location-faq__item summary {
	cursor: pointer;
	padding: 1.15rem 3rem 1.15rem 1.4rem;
	font-weight: 600;
	font-size: 1.1rem;
	color: var(--jk-brand-dark);
	list-style: none;
	position: relative;
	transition: color 150ms ease;
}

.location-faq__item summary:hover { color: var(--jk-brand); }
.location-faq__item summary::-webkit-details-marker { display: none; }

.location-faq__item summary::after {
	content: "";
	position: absolute;
	right: 1.4rem;
	top: 50%;
	width: 14px;
	height: 14px;
	margin-top: -7px;
	border-right: 2px solid var(--jk-brand);
	border-bottom: 2px solid var(--jk-brand);
	transform: rotate(45deg);
	transform-origin: center;
	transition: transform 300ms ease;
}

.location-faq__item[open] summary::after {
	transform: rotate(225deg);
	margin-top: -4px;
}

.location-faq__item-body {
	overflow: hidden;
	transition: height 280ms ease;
}

.location-faq__item-body-inner {
	padding: 0 1.4rem 1.4rem;
	font-size: 1.02rem;
	line-height: 1.65;
	color: var(--jk-text);
}

.location-faq__item-body-inner p:first-child { margin-top: 0; }
.location-faq__item-body-inner p:last-child { margin-bottom: 0; }

/* ---------- CTA ---------- */

.location-cta {
	background: var(--jk-brand-dark);
	color: #fff;
	text-align: center;
}

.location-cta h2 {
	color: #fff !important;
	font-size: clamp(2rem, 3.8vw, 2.75rem);
	margin-bottom: 1.25rem;
}

.location-cta p,
.location-cta .jk-section-intro,
.location-cta .jk-container > p {
	color: #fff !important;
	font-size: 1.25rem !important;
	line-height: 1.55;
	max-width: 62ch;
	margin: 0.75rem auto 1.5rem;
	font-weight: 400;
}

.location-cta strong { color: #fff; font-weight: 700; }

.location-cta .jk-btn-row { justify-content: center; margin-top: 1.75rem; }

.location-cta .jk-btn {
	font-size: 17px;
	padding: 22px 44px 12px;
}

/* ---------- Gravity Form embedded in the CTA section ---------- */

.location-cta__form {
	max-width: 960px;
	margin: 2rem auto 1rem;
	text-align: left;
	background: #fff;
	border-radius: var(--jk-radius);
	padding: 2.25rem 2.5rem;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.location-cta__form .gform_wrapper { margin: 0 !important; }
.location-cta__form .gform_heading { display: none; }

/* Grid layout: 2 columns. Most fields span both; email + phone sit side-by-side. */
.location-cta__form .gform_fields {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 1rem 1.25rem;
}

.location-cta__form .gfield { grid-column: span 2; }

.location-cta__form .gfield--type-email,
.location-cta__form .gfield--type-phone { grid-column: span 1; }

@media (max-width: 640px) {
	.location-cta__form { padding: 1.75rem 1.25rem; }
	.location-cta__form .gform_fields { grid-template-columns: 1fr; }
	.location-cta__form .gfield--type-email,
	.location-cta__form .gfield--type-phone { grid-column: span 1; }
}
.location-cta__form .gfield_label,
.location-cta__form .gform_wrapper label {
	color: var(--jk-text) !important;
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0;
	text-transform: none;
}

.location-cta__form input[type="text"],
.location-cta__form input[type="email"],
.location-cta__form input[type="tel"],
.location-cta__form input[type="url"],
.location-cta__form input[type="number"],
.location-cta__form textarea,
.location-cta__form select {
	background: #fff !important;
	color: var(--jk-text) !important;
	border: 1px solid var(--jk-border) !important;
	border-radius: 3px !important;
	padding: 0.7rem 0.85rem !important;
	font-size: 1rem !important;
	font-family: var(--jk-font) !important;
	width: 100% !important;
	box-sizing: border-box;
}

.location-cta__form input:focus,
.location-cta__form textarea:focus,
.location-cta__form select:focus {
	border-color: var(--jk-brand) !important;
	outline: 2px solid rgba(83, 125, 160, 0.25);
	outline-offset: 2px;
}

/* Restore the submit button to match the page button system. Override against
   GF's defaults; honors the global #gform_submit_button_1 styles set in
   the customizer custom-CSS panel. */
.location-cta__form .gform_footer { text-align: center; padding: 0 !important; margin: 1rem 0 0 !important; }
.location-cta__form input[type="submit"] {
	cursor: pointer;
	transition: background 150ms ease;
}

.location-cta__form .validation_message,
.location-cta__form .gfield_validation_message {
	color: var(--jk-accent);
	font-size: 0.9rem;
	margin-top: 0.25rem;
}

.location-cta__alt-call {
	color: rgba(255,255,255,0.85) !important;
	font-size: 1rem !important;
	margin-top: 1.5rem !important;
	margin-bottom: 0 !important;
}
.location-cta__alt-call a {
	color: #fff;
	text-decoration: underline;
	font-weight: 600;
}
.location-cta__alt-call a:hover { color: var(--jk-brand-soft); }

.location-cta__hours {
	display: block;
	font-size: 0.9rem;
	color: rgba(255,255,255,0.7) !important;
	margin-top: 0.4rem;
	letter-spacing: 0.02em;
}

/* ---------- archive (locations index) ---------- */

.location-archive__intro { max-width: 60ch; margin-bottom: 2rem; }

.location-archive__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--jk-gap);
}

.location-card {
	display: block;
	text-decoration: none !important;
	color: inherit;
	background: #fff;
	border: 1px solid var(--jk-border);
	border-radius: var(--jk-radius);
	padding: 2rem 1.5rem;
	text-align: center;
	transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
	position: relative;
	overflow: hidden;
}

.location-card::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: var(--jk-accent);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 250ms ease;
}

.location-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(15, 35, 55, 0.12);
	border-color: var(--jk-brand-soft);
}

.location-card:hover::before { transform: scaleX(1); }

.location-card h3 {
	margin: 0 0 0.45rem;
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--jk-brand-dark);
}

.location-card:hover h3 { color: var(--jk-brand); }

.location-card__county {
	font-size: 0.95rem;
	color: var(--jk-accent);
	margin: 0;
	font-weight: 600;
	letter-spacing: 0.02em;
}

/* ---------- [jandk_areas_we_serve] shortcode (homepage block) ---------- */

.jk-areas-we-serve {
	font-family: var(--jk-font);
	text-align: center;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 1rem;
	color: var(--jk-text);
}

.jk-areas-we-serve__head { margin-bottom: 2rem; }

.jk-areas-we-serve__head h2 {
	color: var(--jk-brand-dark);
	font-size: clamp(1.8rem, 3.4vw, 2.5rem);
	font-weight: 700;
	margin: 0.5rem 0 0;
	line-height: 1.2;
}

.jk-areas-we-serve__sub {
	max-width: 60ch;
	margin: 1.25rem auto 0;
	font-size: 1.3rem;
	line-height: 1.55;
	color: var(--jk-text);
	font-weight: 500;
}

.jk-areas-we-serve__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
	text-align: left;
}

@media (min-width: 900px) {
	.jk-areas-we-serve__grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 899px) and (min-width: 600px) {
	.jk-areas-we-serve__grid { grid-template-columns: repeat(3, 1fr); }
}

.jk-areas-we-serve__cta {
	margin-top: 2.25rem;
}

/* Dark variant — for use inside a dark Cornerstone section. */
.jk-areas-we-serve--dark .jk-areas-we-serve__head h2 { color: #fff; }
.jk-areas-we-serve--dark .jk-areas-we-serve__sub { color: rgba(255,255,255,0.85); }
.jk-areas-we-serve--dark .jk-eyebrow { color: #fff; }
.jk-areas-we-serve--dark .jk-eyebrow::before,
.jk-areas-we-serve--dark .jk-eyebrow::after { background: var(--jk-accent); }

/* ---------- single project: blog-style case study ---------- */

.project-hero {
	background-color: var(--jk-brand-dark);
	background-size: cover;
	background-position: center 40%;
	background-repeat: no-repeat;
	color: #fff;
	position: relative;
	min-height: 50vh;
	display: flex;
	align-items: center;
	padding-top: clamp(4rem, 7vw, 6rem) !important;
	padding-bottom: clamp(4rem, 7vw, 6rem) !important;
	overflow: hidden;
}

.project-hero:not(.has-image) {
	background-image: linear-gradient(135deg, var(--jk-brand) 0%, var(--jk-brand-dark) 100%);
}

.project-hero__overlay {
	position: absolute; inset: 0;
	background: linear-gradient(105deg, rgba(15, 35, 55, 0.92) 0%, rgba(15, 35, 55, 0.78) 50%, rgba(15, 35, 55, 0.55) 100%);
	z-index: 0;
}

.project-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 820px;
	margin: 0 auto;
	text-align: center;
}

.project-hero h1 {
	color: #fff;
	font-weight: 700;
	margin: 0;
	text-shadow: 0 2px 30px rgba(0,0,0,0.25);
}

.project-hero__meta {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 0.75rem;
	font-size: 0.85rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.9);
	margin: 0 auto 1.25rem;
	font-weight: 600;
}

.project-hero__meta a { color: #fff; text-decoration: underline; transition: color 150ms ease; }
.project-hero__meta a:hover { color: var(--jk-brand-soft) !important; }
.project-hero__sep { color: rgba(255,255,255,0.45); }

/* Body: light bg, narrow readable column, tighter padding than default jk-section */
.project-body {
	background: #fff;
	padding-top: clamp(3rem, 5vw, 4rem) !important;
	padding-bottom: clamp(3rem, 5vw, 4rem) !important;
}

.project-body__inner {
	max-width: 860px !important;
	text-align: left !important;
}

.project-body__inner h2 {
	text-align: left !important;
	font-size: clamp(1.8rem, 3vw, 2.3rem);
	color: var(--jk-brand-dark);
	margin-top: 2.75rem;
	margin-bottom: 1.1rem;
	line-height: 1.2;
}

.project-body__inner h2:first-child { margin-top: 0; }

.project-body__inner p {
	font-size: 1.2rem;
	line-height: 1.7;
	color: var(--jk-text);
	margin: 0 0 1.4rem;
	text-align: left;
}

.project-body__figure {
	margin: 2rem 0;
	text-align: center;
}

.project-body__figure img {
	max-width: 100%;
	height: auto;
	border-radius: var(--jk-radius);
	box-shadow: 0 10px 28px rgba(15, 35, 55, 0.08);
}

.project-body__figure figcaption {
	font-size: 0.85rem;
	color: var(--jk-muted);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-top: 0.75rem;
	font-weight: 600;
}

.project-body__rule {
	border: 0;
	border-top: 1px solid var(--jk-border);
	margin: 3rem 0;
}

/* Meta block at the end of the article — small definition list */
.project-body__meta {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.4rem 1.5rem;
	margin: 2.5rem 0 0;
	padding: 1.5rem 0 0;
	border-top: 1px solid var(--jk-border);
	font-size: 0.95rem;
}

.project-body__meta dt {
	font-weight: 700;
	color: var(--jk-muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.78rem;
	align-self: center;
}

.project-body__meta dd {
	margin: 0;
	color: var(--jk-text);
}

/* ---------- project page: Related block (before CTA) ---------- */

.project-related {
	background: var(--jk-bg-soft);
	padding-top: clamp(3rem, 5vw, 4.5rem) !important;
	padding-bottom: clamp(3rem, 5vw, 4.5rem) !important;
}

.project-related__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.5rem;
	text-align: left;
}

.project-related__block {
	background: #fff;
	border: 1px solid var(--jk-border);
	border-radius: var(--jk-radius);
	padding: 1.75rem 1.75rem 2rem;
	display: flex;
	flex-direction: column;
}

.project-related__block .jk-eyebrow {
	margin: 0 0 0.6rem;
	padding-left: 0;
	color: var(--jk-accent);
}

.project-related__block .jk-eyebrow::before,
.project-related__block .jk-eyebrow::after { display: none; }

.project-related__block h3 {
	margin: 0 0 0.85rem;
	font-size: 1.3rem;
	color: var(--jk-brand-dark);
	line-height: 1.25;
}

.project-related__block p {
	margin: 0 0 1.25rem;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--jk-text);
	flex: 1;
}

.project-related__list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.project-related__list li {
	border-top: 1px solid var(--jk-border);
	padding: 0.7rem 0;
	font-size: 1rem;
}

.project-related__list li:last-child { border-bottom: 1px solid var(--jk-border); }

.project-related__list a {
	text-decoration: none;
	color: var(--jk-brand-dark);
	font-weight: 500;
	transition: color 150ms ease;
}

.project-related__list a:hover { color: var(--jk-accent); }
