/**
 * Top-level hub landing pages — /capabilities, /materials, /industrials.
 * Design language: JCCNC redesign tokens (Montserrat, #0b0b0b ink, #f4f4f5 bands).
 */

.jcproto-hub {
	--hub-ink: #0b0b0b;
	--hub-body: #3f3f3a;
	--hub-muted: #737373;
	--hub-gray: #f4f4f5;
	--hub-border: #e5e7eb;
	--hub-radius: 10px;
	font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
	color: var(--hub-body);
	line-height: 1.7;
}

/* Quote-form band uses 100vw full-bleed; clip the scrollbar-width overflow. */
body.jcproto-hub-landing {
	overflow-x: clip;
}

.jcproto-hub img {
	max-width: 100%;
	height: auto;
	display: block;
}

.jcproto-hub-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 clamp(1rem, 3vw, 2rem);
}

/* ---------- Sections ---------- */

.jcproto-hub-section {
	padding: clamp(2.75rem, 5.5vw, 4.5rem) 0;
	background: #fff;
}

.jcproto-hub-section--gray {
	background: var(--hub-gray);
}

.jcproto-hub-header {
	text-align: center;
	max-width: 60rem;
	margin: 0 auto clamp(1.75rem, 3.5vw, 2.75rem);
}

.jcproto-hub-header h2,
.jcproto-hub-cta h2 {
	margin: 0;
	color: var(--hub-ink);
	font-size: clamp(1.6rem, 3vw, 2.25rem);
	font-weight: 700;
	line-height: 1.25;
}

.jcproto-hub-center {
	text-align: center;
	margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.jcproto-hub-eyebrow {
	display: inline-block;
	margin-bottom: 0.35rem;
	color: var(--hub-muted);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* ---------- Buttons ---------- */

.jcproto-hub-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.75rem 1.6rem;
	border-radius: 6px;
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none !important;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.jcproto-hub-btn--dark {
	background: #0b0b0b !important;
	color: #fff !important;
	border: 1px solid #0b0b0b;
}

.jcproto-hub-btn--dark:hover {
	background: #2c2c2c !important;
}

.jcproto-hub-btn--light {
	background: #fff !important;
	color: #0b0b0b !important;
	border: 1px solid #fff;
}

.jcproto-hub-btn--light:hover {
	background: #ececec !important;
}

.jcproto-hub-btn--ghost {
	background: transparent !important;
	color: #fff !important;
	border: 1px solid rgba(255, 255, 255, 0.7);
}

.jcproto-hub-btn--ghost:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.08) !important;
}

.jcproto-hub-btn--outline {
	background: #fff !important;
	color: #0b0b0b !important;
	border: 1px solid #0b0b0b;
}

.jcproto-hub-btn--outline:hover {
	background: #0b0b0b !important;
	color: #fff !important;
}

.jcproto-hub-link {
	display: inline-block;
	align-self: flex-start;
	margin-top: auto;
	color: var(--hub-ink) !important;
	font-weight: 700;
	font-size: 0.92rem;
	text-decoration: none !important;
	border-bottom: 2px solid var(--hub-ink);
	padding-bottom: 2px;
	transition: opacity 0.2s ease;
}

.jcproto-hub-link:hover {
	opacity: 0.7;
}

/* ---------- Heroes ---------- */

/* Split hero — light band matching site-wide inner banners (#f8f8f8) */
.jcproto-hub-hero-split {
	display: grid;
	grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
	gap: clamp(2rem, 5vw, 6rem);
	align-items: center;
	background: #f8f8f8;
	color: #555;
	/* Full-bleed band with content constrained to the 1400px site container */
	padding: clamp(2.5rem, 5vw, 3.5rem) max(16px, calc((100% - 1400px) / 2));
	box-sizing: border-box;
}

.jcproto-hub-hero-split__copy {
	display: flex;
	align-items: center;
}

.jcproto-hub-hero-split__inner h1 {
	margin: 0 0 1rem;
	color: #0a0a0a;
	font-size: clamp(1.85rem, 3.6vw, 2.9rem);
	font-weight: 800;
	line-height: 1.18;
}

.jcproto-hub-hero-split__inner p {
	margin: 0 0 1.75rem;
	max-width: 36rem;
	color: #555;
	font-size: 1.02rem;
}

.jcproto-hub-hero-split__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
}

.jcproto-hub-hero-split__media {
	position: relative;
	width: 100%;
	min-height: 400px;
	aspect-ratio: 3 / 2;
	align-self: center;
	border-radius: 8px;
	overflow: hidden;
	background: #e8e8e4;
}

.jcproto-hub-hero-split__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* ---------- Grids ---------- */

.jcproto-hub-grid {
	display: grid;
	gap: clamp(1rem, 2vw, 1.5rem);
}

.jcproto-hub-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jcproto-hub-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jcproto-hub-grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Industry irregular grid: first card spans 2 columns */
.jcproto-hub-indgrid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
}

.jcproto-hub-card--feature {
	grid-column: span 2;
}

/* ---------- Cards ---------- */

.jcproto-hub-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--hub-border);
	border-radius: var(--hub-radius);
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.jcproto-hub-card--lift:hover {
	transform: translateY(-8px);
	box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.jcproto-hub-card__media {
	display: block;
	overflow: hidden;
}

.jcproto-hub-card__media img {
	width: 100%;
	aspect-ratio: 8 / 5;
	object-fit: cover;
}

.jcproto-hub-card--feature .jcproto-hub-card__media img {
	aspect-ratio: auto;
	height: 100%;
	max-height: 320px;
}

.jcproto-hub-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.6rem;
	padding: clamp(1.1rem, 2vw, 1.5rem);
}

.jcproto-hub-card__body h3 {
	margin: 0;
	color: var(--hub-ink);
	font-size: 1.12rem;
	font-weight: 700;
	line-height: 1.35;
}

.jcproto-hub-card__body p {
	margin: 0 0 0.5rem;
	font-size: 0.94rem;
}

/* Material double cards */
.jcproto-hub-matcard {
	display: flex;
	gap: 1.25rem;
	background: #fff;
	border: 1px solid var(--hub-border);
	border-radius: var(--hub-radius);
	padding: clamp(1.4rem, 2.6vw, 2.1rem);
	transition: box-shadow 0.25s ease;
}

.jcproto-hub-matcard:hover {
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

.jcproto-hub-matcard__icon {
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	color: var(--hub-ink);
}

.jcproto-hub-matcard__icon svg {
	width: 100%;
	height: 100%;
}

.jcproto-hub-matcard__body h3 {
	margin: 0 0 0.65rem;
	color: var(--hub-ink);
	font-size: 1.3rem;
	font-weight: 700;
}

.jcproto-hub-matcard__body p {
	margin: 0 0 0.75rem;
	font-size: 0.95rem;
}

.jcproto-hub-matcard__meta {
	color: var(--hub-muted);
	font-size: 0.88rem !important;
}

.jcproto-hub-matcard__meta strong {
	color: var(--hub-ink);
}

.jcproto-hub-matcard .jcproto-hub-btn {
	margin-top: 0.5rem;
}

/* Advantage cards (grid-3) */
.jcproto-hub-advcard {
	background: #fff;
	border: 1px solid var(--hub-border);
	border-radius: var(--hub-radius);
	padding: clamp(1.4rem, 2.6vw, 2rem);
}

.jcproto-hub-advcard__icon {
	display: inline-block;
	width: 44px;
	height: 44px;
	margin-bottom: 0.9rem;
	color: var(--hub-ink);
}

.jcproto-hub-advcard__icon svg {
	width: 100%;
	height: 100%;
}

.jcproto-hub-advcard h3 {
	margin: 0 0 0.6rem;
	color: var(--hub-ink);
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.35;
}

.jcproto-hub-advcard p {
	margin: 0;
	font-size: 0.93rem;
}

/* Numbered advantage cards (2x2) */
.jcproto-hub-numcard {
	display: flex;
	gap: 1.15rem;
	background: #fff;
	border: 1px solid var(--hub-border);
	border-radius: var(--hub-radius);
	padding: clamp(1.4rem, 2.6vw, 2rem);
}

.jcproto-hub-numcard__num {
	flex: 0 0 auto;
	color: var(--hub-ink);
	font-size: clamp(1.9rem, 3vw, 2.6rem);
	font-weight: 800;
	line-height: 1;
	opacity: 0.18;
}

.jcproto-hub-numcard__body h3 {
	margin: 0 0 0.5rem;
	color: var(--hub-ink);
	font-size: 1.1rem;
	font-weight: 700;
}

.jcproto-hub-numcard__body p {
	margin: 0;
	font-size: 0.93rem;
}

/* Case study cards (image left, copy right) */
.jcproto-hub-casecard {
	display: grid;
	grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
	background: #fff;
	border: 1px solid var(--hub-border);
	border-radius: var(--hub-radius);
	overflow: hidden;
}

.jcproto-hub-casecard__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jcproto-hub-casecard__body {
	padding: clamp(1.2rem, 2.4vw, 1.8rem);
}

.jcproto-hub-casecard__body h3 {
	margin: 0 0 0.6rem;
	color: var(--hub-ink);
	font-size: 1.08rem;
	font-weight: 700;
	line-height: 1.35;
}

.jcproto-hub-casecard__body p {
	margin: 0;
	font-size: 0.92rem;
}

/* Article cards */
.jcproto-hub-artcard {
	background: #fff;
	border: 1px solid var(--hub-border);
	border-radius: var(--hub-radius);
	padding: clamp(1.3rem, 2.4vw, 1.8rem);
	transition: box-shadow 0.25s ease;
}

.jcproto-hub-artcard:hover {
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

.jcproto-hub-artcard h3 {
	margin: 0 0 0.6rem;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.4;
}

.jcproto-hub-artcard h3 a {
	color: var(--hub-ink) !important;
	text-decoration: none !important;
}

.jcproto-hub-artcard h3 a:hover {
	text-decoration: underline !important;
}

.jcproto-hub-artcard p {
	margin: 0;
	font-size: 0.92rem;
}

/* Testimonials */
.jcproto-hub-testimonials {
	background: var(--hub-gray);
}

.jcproto-hub-quote {
	margin: 0;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	background: #fff;
	border: 1px solid var(--hub-border);
	border-radius: var(--hub-radius);
}

.jcproto-hub-quote p {
	margin: 0 0 1rem;
	color: var(--hub-ink);
	font-size: clamp(1.02rem, 1.6vw, 1.2rem);
	font-style: italic;
	line-height: 1.6;
}

.jcproto-hub-quote footer {
	color: var(--hub-muted);
	font-size: 0.9rem;
	font-weight: 600;
}

/* ---------- Split layouts ---------- */

.jcproto-hub-split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.5rem, 3.5vw, 3rem);
	align-items: start;
}

.jcproto-hub-split__media {
	border-radius: var(--hub-radius);
	overflow: hidden;
	box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
	align-self: stretch;
}

.jcproto-hub-split__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jcproto-hub-proclist__group {
	padding-bottom: 1.1rem;
	margin-bottom: 1.1rem;
	border-bottom: 1px solid var(--hub-border);
}

.jcproto-hub-proclist__group h3 {
	margin: 0 0 0.4rem;
	color: var(--hub-ink);
	font-size: 1.15rem;
	font-weight: 700;
}

.jcproto-hub-proclist__group p {
	margin: 0;
	color: var(--hub-muted);
	font-size: 0.92rem;
}

.jcproto-hub-proclist .jcproto-hub-btn {
	margin-top: 0.4rem;
}

.jcproto-hub-why__copy p {
	margin: 0 0 1.5rem;
	font-size: 1rem;
}

.jcproto-hub-point {
	padding-bottom: 1.1rem;
	margin-bottom: 1.1rem;
	border-bottom: 1px solid var(--hub-border);
}

.jcproto-hub-point:last-child {
	border-bottom: 0;
	margin-bottom: 0;
	padding-bottom: 0;
}

.jcproto-hub-point h3 {
	margin: 0 0 0.4rem;
	color: var(--hub-ink);
	font-size: 1.08rem;
	font-weight: 700;
}

.jcproto-hub-point p {
	margin: 0;
	font-size: 0.93rem;
}

/* Consult band */
.jcproto-hub-consult h2 {
	margin: 0 0 0.9rem;
	color: var(--hub-ink);
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	font-weight: 700;
}

.jcproto-hub-consult p {
	max-width: 52rem;
	margin: 0 auto 1.5rem;
}

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

.jcproto-hub-cta {
	background: #000;
	color: rgba(255, 255, 255, 0.82);
	text-align: center;
	padding: clamp(3rem, 6vw, 4.75rem) 0;
}

.jcproto-hub-cta h2 {
	color: #fff;
	margin: 0 0 0.75rem;
}

.jcproto-hub-cta p {
	max-width: 44rem;
	margin: 0 auto 1.6rem;
	color: rgba(255, 255, 255, 0.78);
	font-size: 1.02rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.jcproto-hub-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jcproto-hub-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jcproto-hub-indgrid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.jcproto-hub-hero-split {
		grid-template-columns: 1fr;
	}

	.jcproto-hub-hero-split__media {
		min-height: 240px;
		order: -1;
		max-width: min(100%, 480px);
		margin: 0 auto;
	}

	.jcproto-hub-split {
		grid-template-columns: 1fr;
	}

	.jcproto-hub-grid--2 {
		grid-template-columns: 1fr;
	}

	.jcproto-hub-matcard {
		flex-direction: column;
	}

	.jcproto-hub-casecard {
		grid-template-columns: 1fr;
	}

	.jcproto-hub-casecard__media img {
		aspect-ratio: 16 / 9;
	}
}

@media (max-width: 640px) {
	.jcproto-hub-grid--3,
	.jcproto-hub-grid--4,
	.jcproto-hub-indgrid {
		grid-template-columns: 1fr;
	}

	.jcproto-hub-card--feature {
		grid-column: auto;
	}

	.jcproto-hub-numcard {
		flex-direction: column;
		gap: 0.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jcproto-hub-card,
	.jcproto-hub-btn,
	.jcproto-hub-link,
	.jcproto-hub-artcard,
	.jcproto-hub-matcard {
		transition: none !important;
	}

	.jcproto-hub-card--lift:hover {
		transform: none;
	}
}
