/**
 * Industry Page (New) — templates/industry-page-new.php
 *
 * Styles for the sections the template adds (Why Compunnel, Roles We Fill) and
 * scoped adjustments to the shared sections it reuses (Who We Staff cards,
 * Talent Solutions tiles). Enqueued from includes/industry-page.php on this
 * template only, so the shared sections look unchanged everywhere else.
 */

/* ── Why Compunnel ─────────────────────────────────────────────────────────── */

.page-section.ind-why-section {
	padding: 0;
}

.ind-stats-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

.ind-stat {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 26px 40px 26px 0;
}

.ind-stat:not(:nth-child(4n + 1)) {
	padding-left: 40px;
	border-left: 1px solid var(--borderColor);
}

.ind-stat-value {
	font-size: 2.5rem;
	line-height: 1.1;
	color: var(--normalFontColor);
}

.ind-stat-label {
	font-size: 1.0625rem;
	line-height: 1.4;
	max-width: 230px;
}

/* The line under the stats belongs to the band, so it stays when the optional
   footnote is left empty. */
.ind-stats {
	border-bottom: 1px solid var(--borderColor);
}

.ind-stats-note {
	border-top: 1px solid var(--borderColor);
	padding: 12px 0;
	font-size: 0.875rem;
}

.ind-why-body {
	padding: 80px 0 20px;
	background: url(../img/colored-shaddow-left-bg.svg) left top no-repeat;
	background-size: 330px;
}

.ind-why-image {
	margin: 0;
}

.ind-why-image img {
	width: 100%;
	height: auto;
	aspect-ratio: 520 / 310;
}

.ind-why-body .heading-2 {
	margin-bottom: 20px;
}

.ind-checklist {
	list-style: none;
	margin: 20px 0 0;
	padding: 0;
}

.ind-checklist li {
	position: relative;
	padding-left: 36px;
	margin-bottom: 12px;
	line-height: 1.5;
}

.ind-checklist li::before {
	content: "\e834"; /* check_box */
	font-family: "Material Icons";
	position: absolute;
	left: 0;
	top: -1px;
	font-size: 22px;
	line-height: 1;
	color: var(--primaryColor);
}

@media (max-width: 991.98px) {
	.ind-stats-row {
		grid-template-columns: repeat(2, 1fr);
	}

	.ind-stat,
	.ind-stat:not(:nth-child(4n + 1)) {
		padding: 20px 16px;
		border-left: 0;
	}

	.ind-stat:nth-child(2n) {
		border-left: 1px solid var(--borderColor);
	}

	.ind-why-body {
		padding: 50px 0;
	}

	.ind-why-image {
		margin-bottom: 30px;
	}
}

/* ── Who We Staff (what-we-offer-section-include) ──────────────────────────── */

#who-we-staff .blue-text {
	font-weight: 700;
	font-size: 2.5rem !important;
	line-height: 1.2 !important;
	padding-bottom: 0;
}

#who-we-staff .wwo-description {
	margin-top: 10px;
}

#who-we-staff .what-we-offer-container .row.pt-4 {
	padding-top: 40px !important;
}

#who-we-staff .what-we-offer-container .box {
	padding: 30px 25px;
}

/* ── Roles We Fill ─────────────────────────────────────────────────────────── */

.ind-roles-section {
	--ind-role-ease: cubic-bezier(0.65, 0, 0.35, 1);
	--ind-role-move: 0.6s;
	/* Short at the bottom: Testimonials opens with its own padding and the
	   faded heading, which already read as the gap. */
	padding: 100px 0 20px;
}

.ind-roles-section .heading-2 {
	margin-bottom: 20px;
}

.ind-roles {
	/* Fixed sizes for browsers without container queries: 100px tabs and a
	   panel sized for the widest desktop column. */
	--ind-role-collapsed: 100px;
	--ind-role-open: 460px;
	display: flex;
	/* 400px as designed, taller when the longest list or sideways label needs
	   it. industry-page.js measures them and sets --ind-role-height. */
	height: max(400px, var(--ind-role-height, 0px));
	border-radius: 16px;
	overflow: hidden;
}

/* Collapsed tabs are 100px as designed, narrowing to 56px when the accordion
   is too tight to leave the open column about 420px. Declared beside the
   inline --ind-role-last and measured in the accordion's own width (cqw)
   wherever they are used. */
@supports (container-type: inline-size) {
	.ind-roles {
		--ind-role-collapsed: clamp(56px, calc((100cqw - 420px) / var(--ind-role-last, 5)), 100px);
		--ind-role-open: calc(100cqw - var(--ind-role-last, 5) * var(--ind-role-collapsed));
		container-type: inline-size;
	}
}

.ind-role {
	position: relative;
	flex: 0 0 var(--ind-role-collapsed);
	overflow: hidden;
	color: #fff;
	/* Shade follows the column's position, lightest on the left to darkest on
	   the right, and stays put when the column opens. --ind-role-last is the
	   last column's index, set on the accordion. */
	background-color: #173bac;
	background-color: color-mix(
		in srgb,
		#0c2470 calc(var(--ind-role-i) / var(--ind-role-last, 5) * 100%),
		#2253e8
	);
	transition: flex-grow var(--ind-role-move) var(--ind-role-ease);
}

.ind-role.is-active {
	flex-grow: 1;
}

.ind-role-tab {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	text-align: left;
	cursor: pointer;
}

.ind-role.is-active .ind-role-tab {
	cursor: default;
}

.ind-role:not(.is-active) .ind-role-tab:hover,
.ind-role-tab:focus-visible {
	background-color: rgba(255, 255, 255, 0.06);
}

.ind-role-tab:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -4px;
}

.ind-role-icon {
	position: absolute;
	top: 30px;
	left: calc((var(--ind-role-collapsed) - 50px) / 2);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.2);
}

.ind-role-icon img {
	width: 30px;
	height: 30px;
	object-fit: contain;
}

/* Stands in until an icon is uploaded: the theme's default service icon
   turned white and dimmed so it reads as a placeholder. */
.ind-role-icon img.ind-role-icon-placeholder {
	filter: brightness(0) invert(1);
	opacity: 0.55;
}

.ind-role-label {
	position: absolute;
	top: 120px;
	left: 50%;
	translate: -50% 0;
	writing-mode: vertical-rl;
	font-size: 1.375rem;
	font-weight: 400;
	line-height: 1;
	white-space: nowrap;
	transition: opacity 0.25s ease 0.3s;
}

.ind-role.is-active .ind-role-label {
	opacity: 0;
	transition-delay: 0s;
}

/* The panel is sized to the open column's final width and keeps it while the
   column opens and closes, so the text never reflows mid-transition and is
   never cropped once open; the closing column's overflow crops it. The
   accordion grows to fit the longest list; scrolling is only the fallback
   when the script has not run. */
.ind-role-panel {
	position: absolute;
	top: 112px;
	bottom: 24px;
	overflow-x: hidden;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
	left: calc(var(--ind-role-collapsed) + 5px);
	width: calc(var(--ind-role-open) - var(--ind-role-collapsed) - 5px - 24px);
	z-index: 1;
	pointer-events: none;
}

.ind-role.is-active .ind-role-panel {
	pointer-events: auto;
}

.ind-role-panel-inner {
	opacity: 0;
	translate: 24px 0;
	transition:
		opacity 0.2s ease,
		translate 0.2s ease;
}

.ind-role.is-active .ind-role-panel-inner {
	opacity: 1;
	translate: 0 0;
	transition:
		opacity 0.45s ease 0.3s,
		translate 0.45s var(--ind-role-ease) 0.3s;
}

.ind-roles .ind-role-title {
	/* style.css sets every h3's margins with !important. */
	margin: 0 0 30px !important;
	font-size: 1.875rem;
	line-height: 1.2;
	font-weight: 600;
	color: #fff;
}

.ind-role-panel ul {
	margin: 0;
	padding-left: 24px;
}

.ind-role-panel li {
	margin-bottom: 12px;
	padding-left: 4px;
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.4;
}

/* The last item's margin would otherwise count as content to scroll past. */
@media (min-width: 992px) {
	.ind-role-panel li:last-child {
		margin-bottom: 0;
	}
}

@media (max-width: 991.98px) {
	.ind-roles-section {
		padding: 60px 0 10px;
	}

	.ind-roles {
		flex-direction: column;
		height: auto;
		margin-top: 20px;
	}

	.ind-role,
	.ind-role.is-active {
		flex: none;
	}

	.ind-role-tab {
		position: relative;
		display: flex;
		align-items: center;
		gap: 16px;
		padding: 14px 20px;
	}

	.ind-role-icon,
	.ind-role-label {
		position: static;
		translate: none;
	}

	.ind-role-icon {
		flex: 0 0 44px;
		width: 44px;
		height: 44px;
	}

	.ind-role-label,
	.ind-role.is-active .ind-role-label {
		writing-mode: horizontal-tb;
		white-space: normal;
		opacity: 1;
	}

	.ind-role-panel {
		position: static;
		width: auto;
		overflow: visible;
		display: grid;
		grid-template-rows: 0fr;
		transition: grid-template-rows var(--ind-role-move) var(--ind-role-ease);
	}

	.ind-role.is-active .ind-role-panel {
		grid-template-rows: 1fr;
	}

	.ind-role-panel-inner {
		overflow: hidden;
		padding: 0 20px 0 80px;
	}

	.ind-role.is-active .ind-role-panel-inner {
		padding-bottom: 20px;
	}

	.ind-roles .ind-role-title {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ind-role,
	.ind-role-label,
	.ind-role-panel,
	.ind-role-panel-inner,
	.ind-role.is-active .ind-role-panel-inner {
		transition: none;
	}
}

/* ── Talent Solutions (static-service-overview-section-include) ────────────── */

.service-overview-section.ind-solutions-section {
	margin-top: 0;
	padding: 100px 0;
}

.ind-solutions-section .intro2 {
	padding-bottom: 50px !important;
}

.ind-solutions-section .intro2 .sub-heading {
	margin-top: 15px;
}

.ind-solutions-section .service-overview-list {
	width: min(1296px, calc(100% - 24px));
	margin: 0 auto;
	border: 1px solid var(--borderColor);
	border-bottom: 0;
	border-right: 0;
}

.ind-solutions-section .box {
	min-height: 360px;
}

/* Contain the tile's -1 z-index background image so it paints above the
   tile's own hover fill rather than behind it. */
.ind-solutions-section .box.service-list-box {
	isolation: isolate;
	display: flex;
	flex-direction: column;
	transition: background-color 0.3s ease;
}

.ind-solutions-section .box.service-list-box .bg-hover-image {
	transition: opacity 0.35s ease;
}

.ind-solutions-section .service-post-list-content {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.ind-solutions-section .box.service-list-box h3 {
	/* .heading-2 sets its size with !important. */
	font-size: 1.75rem !important;
	line-height: 2.125rem !important;
	min-height: 0;
	padding-top: 40px;
	margin-bottom: 15px;
}

.ind-solutions-section .box.service-list-box h3::before {
	top: 20px;
	height: 3px;
}

.ind-solutions-section .service-overview-description {
	max-width: 300px;
	margin-bottom: 20px;
	transition: color 0.3s ease;
}

.ind-solutions-section .learn-more-container {
	margin-top: auto;
}

.ind-solutions-section .learn-more-container a.learn-more-btn {
	color: var(--primaryColor) !important;
	font-size: 0.9375rem;
	font-weight: 600;
	text-transform: none;
}

.ind-solutions-section .box.service-list-box:hover .service-overview-description {
	color: #fff;
}

@media (max-width: 767.98px) {
	.service-overview-section.ind-solutions-section {
		padding: 60px 0;
	}

	.ind-solutions-section .box {
		min-height: 0;
		padding: 30px 24px;
	}
}

/* ── Resources (resource-section-include) ──────────────────────────────────── */

/* Grey band with the brand chevron in the bottom-right corner. The include
   prints its own padding rule with !important from inside the page, so the
   id is what lets this one win. */
#resources.page-section.resources-section {
	padding: 90px 30px 80px !important;
	background: var(--bgColor2, #f4f4f4) url(../img/resources-bg.svg) right bottom / auto 83% no-repeat;
}

@media (max-width: 767.98px) {
	#resources.page-section.resources-section {
		padding: 50px 16px !important;
		background-size: auto 45%;
	}
}
