/**
 * Industries hub + detail pages
 */

.site-main.site-main--industries,
.site-main.site-main--industry {
	padding-top: 0;
	background: #fff;
}

/* Odd/even alternating section bands on industry detail pages */
.site-main--industry > section:nth-of-type(odd) {
	background-color: #fff;
}

.site-main--industry > section:nth-of-type(even) {
	background-color: var(--wimira-surface-soft, rgba(18, 21, 38, 0.03));
}

.site-main--industry > section.ind-stats {
	background: var(--wimira-night);
	color: #fff;
}

.site-main--industry > section.sol-detail-cta,
.site-main--industry > section.ind-cta {
	background:
		radial-gradient(ellipse 80% 60% at 50% 100%, rgba(226, 44, 40, 0.22) 0%, transparent 70%),
		var(--wimira-night);
	color: #fff;
}

/* ── Hub hero ── */
.ind-hub-hero {
	padding:
		calc(var(--header-height) + var(--admin-bar-offset) + var(--admin-bar-gap) + 12px)
		0
		24px;
	color: #fff;
	background-color: var(--wimira-hero-surface);
	background-image: var(--wimira-inner-hero-bg);
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}

.ind-hub-hero__inner {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	justify-content: center;
	gap: 12px;
	max-width: var(--wimira-content);
	min-height: 0;
	width: 100%;
}

.ind-hub-hero__title {
	margin: 0;
	max-width: 18ch;
	font-family: var(--wimira-font-heading);
	font-size: clamp(30px, 3.8vw, 50px);
	font-weight: var(--wimira-weight-heading);
	line-height: 1.08;
}

.ind-hub-hero__accent { color: var(--wimira-red); }

.ind-hub-hero__lead {
	margin: 0;
	max-width: 58ch;
	color: rgba(255, 255, 255, 0.82);
	font-size: 15px;
	line-height: 1.55;
}

/* ── Hub stats ── */
.ind-hub-stats {
	padding: 24px 0;
	background: #f4f5f8;
	border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.ind-hub-stats ul,
.ind-stats ul {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ind-hub-stats li,
.ind-stats li {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
	text-align: center;
}

.ind-hub-stats strong,
.ind-stats strong {
	font-family: var(--wimira-font-heading);
	font-size: clamp(22px, 3vw, 28px);
	font-weight: var(--wimira-weight-heading);
	color: var(--wimira-red);
}

.ind-hub-stats span,
.ind-stats span {
	font-size: 12px;
	color: #64748b;
}

/* ── Hub grid ── */
.ind-hub-grid__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
}

.ind-hub-grid__head p {
	margin: 8px 0 0;
	color: #64748b;
}

.ind-hub-grid__head a {
	color: var(--wimira-red);
	font-weight: 700;
	text-decoration: none;
}

.ind-hub-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.ind-hub-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 14px;
	background: #fff;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s var(--wimira-ease), box-shadow 0.2s var(--wimira-ease);
}

.ind-hub-card:hover,
.ind-hub-card:focus-visible {
	border-color: rgba(226, 44, 40, 0.35);
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.ind-hub-card h3 {
	margin: 0;
	font-size: 17px;
	font-weight: var(--wimira-weight-heading);
}

.ind-hub-card p {
	margin: 0;
	flex: 1;
	font-size: 14px;
	line-height: 1.55;
	color: #64748b;
}

.ind-hub-card__link {
	font-size: 13px;
	font-weight: 700;
	color: var(--wimira-red);
}

/* ── Hub CTA band ── */
.ind-hub-cta-band {
	padding: 32px 0;
	background: linear-gradient(135deg, #fdf2f2 0%, #f7f7f9 100%);
}

.ind-hub-cta-band__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.ind-hub-cta-band p {
	margin: 0;
	max-width: 48ch;
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
}

/* ── Why section ── */
.ind-hub-why {
	padding: clamp(48px, 6vw, 72px) 0;
	background: var(--wimira-night);
	color: #fff;
}

.ind-hub-why__title {
	margin: 0 0 28px;
	font-family: var(--wimira-font-heading);
	font-size: clamp(24px, 3vw, 34px);
	font-weight: var(--wimira-weight-heading);
	text-align: center;
}

.ind-hub-why__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.ind-hub-why__grid article {
	padding: 20px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.ind-hub-why__grid h3 {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: var(--wimira-weight-heading);
}

.ind-hub-why__grid p {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.72);
}

/* ── Hub stories ── */
.ind-hub-stories {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.ind-hub-story {
	overflow: hidden;
	border-radius: 14px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	background: #fff;
	text-decoration: none;
	color: inherit;
}

.ind-hub-story img {
	display: block;
	width: 100%;
	height: 140px;
	object-fit: cover;
}

.ind-hub-story div {
	padding: 16px;
}

.ind-hub-story span {
	font-size: 11px;
	font-weight: var(--wimira-weight-heading);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wimira-red);
}

.ind-hub-story h3 {
	margin: 8px 0;
	font-size: 14px;
	font-weight: var(--wimira-weight-heading);
	line-height: 1.35;
	color: #0f172a;
}

.ind-hub-story em {
	font-style: normal;
	font-size: 12px;
	font-weight: 700;
	color: var(--wimira-red);
}

/* ── Detail hero ── */
.ind-hero {
	background-repeat: no-repeat;
	background-position: right center;
	background-size: cover;
}

.ind-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.65fr);
	gap: clamp(24px, 3.5vw, 48px);
	flex: 0 1 auto;
	align-items: center;
	width: 100%;
}

.ind-hero .capd-hero__copy {
	max-width: min(720px, 100%);
}

.ind-hero .capd-hero__title {
	max-width: 22ch;
	font-size: clamp(30px, 3.6vw, 48px);
}

.ind-hero__tags {
	align-self: center;
	justify-self: end;
	max-width: 280px;
	width: 100%;
}

.ind-hero .sol-detail-features {
	margin-top: 12px;
	padding-top: 12px;
}

@media (max-width: 1100px) {
	.ind-hero__grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.ind-hero__tags {
		display: none;
	}
}

/* ── Technology ecosystem (detail) ── */
.ind-ecosystem__head .sol-section-title {
	margin: 0;
}

.ind-ecosystem__lead {
	margin: 0;
	max-width: 52ch;
	font-size: 15px;
	line-height: 1.6;
	color: #64748b;
}

.ind-ecosystem {
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(240px, 0.85fr);
	gap: clamp(20px, 3vw, 28px);
	align-items: stretch;
}

.ind-ecosystem__stack,
.ind-ecosystem__segments {
	border: 1px solid rgba(15, 23, 42, 0.1);
	border-radius: 12px;
	background: #fff;
}

.ind-ecosystem__stack {
	padding: 8px 28px;
}

.ind-ecosystem__row {
	display: grid;
	grid-template-columns: minmax(160px, 0.9fr) minmax(0, 1.1fr);
	gap: 20px 28px;
	align-items: center;
	padding: 22px 0;
	border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.ind-ecosystem__row:last-child {
	border-bottom: 0;
}

.ind-ecosystem__cat {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ind-ecosystem__cat strong {
	font-family: var(--wimira-font-heading);
	font-size: 16px;
	font-weight: var(--wimira-weight-heading);
	color: #0f172a;
	letter-spacing: -0.01em;
}

.ind-ecosystem__cat span {
	font-size: 13px;
	line-height: 1.45;
	color: #64748b;
}

.ind-ecosystem__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ind-ecosystem__tools li {
	display: inline-flex;
	align-items: center;
	font-family: var(--wimira-font-heading);
	font-size: 14px;
	font-weight: var(--wimira-weight-heading);
	color: #0f172a;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.ind-ecosystem__tools li:not(:last-child)::after {
	content: "";
	display: inline-block;
	width: 1px;
	height: 14px;
	margin: 0 14px;
	background: rgba(15, 23, 42, 0.18);
	vertical-align: middle;
}

.ind-ecosystem__segments {
	padding: 28px 28px 20px;
}

.ind-ecosystem__segments-title {
	margin: 0 0 18px;
	padding-bottom: 12px;
	border-bottom: 3px solid var(--wimira-red);
	width: fit-content;
	font-family: var(--wimira-font-heading);
	font-size: 18px;
	font-weight: var(--wimira-weight-heading);
	letter-spacing: -0.02em;
	line-height: 1.25;
	color: #0f172a;
	text-transform: capitalize;
}

.ind-ecosystem__segments-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ind-ecosystem__segments-list li {
	padding: 14px 0;
	border-bottom: 1px solid rgba(15, 23, 42, 0.08);
	font-size: 14px;
	line-height: 1.4;
	color: #334155;
}

.ind-ecosystem__segments-list li:last-child {
	border-bottom: 0;
}

/* ── Stats ribbon (detail) ── */
.ind-stats {
	padding: 78px 0;
	background: var(--wimira-night);
	color: #fff;
}

.ind-stats ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ind-stats li {
	flex: 0 1 180px;
	min-width: 140px;
	text-align: center;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: none;
}

.ind-stats strong { color: #fff; }
.ind-stats span { color: rgba(255, 255, 255, 0.65); }

/* ── Responsive ── */
@media (max-width: 1100px) {
	.ind-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ind-hub-stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ind-ecosystem { grid-template-columns: 1fr; }
	.ind-ecosystem__stack { padding: 8px 22px; }
	.ind-hub-stats ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tablet: stack category + tools for readable rows */
@media (max-width: 900px) {
	.ind-ecosystem__row {
		grid-template-columns: 1fr;
		gap: 12px;
		padding: 20px 0;
	}

	.ind-ecosystem__segments {
		padding: 24px 22px 16px;
	}

	.ind-stats {
		padding: 56px 0;
	}
}

@media (max-width: 767px) {
	.ind-hub-grid,
	.ind-hub-why__grid,
	.ind-hub-stories,
	.ind-hub-stats ul {
		grid-template-columns: 1fr;
	}

	.ind-ecosystem__head {
		padding-inline: 0;
	}

	.ind-ecosystem__lead {
		font-size: 14px;
		max-width: 40ch;
	}

	.ind-ecosystem__stack {
		padding: 4px 16px;
	}

	.ind-ecosystem__row {
		padding: 16px 0;
	}

	.ind-ecosystem__cat strong {
		font-size: 15px;
	}

	.ind-ecosystem__tools li {
		font-size: 13px;
	}

	.ind-ecosystem__tools li:not(:last-child)::after {
		margin: 0 10px;
	}

	.ind-ecosystem__segments {
		padding: 20px 16px 12px;
	}

	.ind-ecosystem__segments-title {
		font-size: 16px;
		margin-bottom: 12px;
	}

	.ind-stats {
		padding: 48px 16px;
	}

	.ind-stats li {
		flex: 1 1 calc(50% - 16px);
		min-width: 0;
		padding: 14px 10px;
	}

	.ind-hub-cta-band__inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 480px) {
	.ind-stats li {
		flex: 1 1 100%;
	}

	.ind-ecosystem__tools {
		gap: 6px 0;
	}
}
