/*
Theme Name: INDEX Consultants
Theme URI: https://indexconsultants.com.au
Author: INDEX Consultants
Author URI: https://indexconsultants.com.au
Description: A bespoke Full Site Editing (block) theme for INDEX Consultants. Design tokens and global styles live in theme.json; templates live in /templates and /parts.
Version: 0.2.1
Requires at least: 6.5
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: index
Tags: full-site-editing, block-styles, custom-colors, custom-logo, blog, business
*/

/*
 * Most styling is driven by theme.json. Keep this file for the few rules
 * that are awkward to express there. Loaded on the front end via functions.php
 * and as an editor style.
 */

/*
 * === DERIVED & SEMANTIC TOKENS ===
 * The brand palette lives in theme.json (exposed as --wp--preset--color--*).
 * These --idx-* tokens cover the recurring translucent/derived values that
 * should NOT appear as selectable brand swatches in the editor colour picker:
 * on-dark text/lines, shadows, accent veils, and semantic status colours.
 * Defined once here so they can be re-themed globally and stay consistent.
 */
:root {
	/* On dark (ink / ink-dark) sections */
	--idx-on-dark: rgba(237, 232, 255, 0.6);
	--idx-on-dark-accent: #9c8fd4;
	--idx-on-dark-line: rgba(237, 232, 255, 0.08);

	/* Elevation */
	--idx-shadow: rgba(26, 0, 102, 0.1);
	--idx-shadow-strong: rgba(26, 0, 102, 0.2);

	/* Translucent accent veil (hover overlays) */
	--idx-accent-hover: rgba(67, 22, 149, 0.3);

	/* Semantic status colours (not part of the brand palette).
	   Each has a text/border colour, a soft background, and a light border tint. */
	--idx-success: #1f7a4d;
	--idx-success-bg: #e6f5ec;
	--idx-success-border: #b7dfc4;
	--idx-warning: #9a5b00;
	--idx-warning-bg: #fdf2e0;
	--idx-warning-border: #f0d9a8;
	--idx-error: #c0392b;
	--idx-error-bg: #fff0f0;
	--idx-error-border: #ffc9c9;
	--idx-error-light: #ffb3b3; /* light error text on dark forms */
}

/* === GLOBAL RESET === */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	overflow-x: hidden;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

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

.wp-block-heading {
	text-wrap: balance;
}

/* === ANIMATIONS === */
@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeDown {
	from {
		opacity: 0;
		transform: translateY(-18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes imgReveal {
	from {
		opacity: 0;
		transform: scale(1.04);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes marquee {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

@keyframes faqReveal {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
	html {
		scroll-behavior: auto;
	}
}

/* === UTILITY CLASSES === */

/* Link hover effects */
.idx-link-soft {
	transition: color 0.2s;
}

.idx-link-soft:hover {
	color: var(--wp--preset--color--accent);
}

/* Animated underline on arrow text-links */
a:has(> i[data-lucide]) {
	position: relative;
}

a:has(> i[data-lucide])::after {
	content: "";
	position: absolute;
	left: 0;
	right: 1.6rem;
	bottom: -4px;
	height: 2px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

a:has(> i[data-lucide]):hover::after {
	transform: scaleX(1);
}

a:has(> i[data-lucide]) i {
	transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}

a:has(> i[data-lucide]):hover i {
	transform: translateX(4px);
}

/* Card image zoom on hover */
a img {
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.4s ease;
}

a:hover img {
	transform: scale(1.06);
}

/* Card arrow circle fill on parent anchor hover */
a:has(div[data-card-arrow]) div[data-card-arrow] {
	transition: background 0.25s, color 0.25s, border-color 0.25s,
		transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

a:hover div[data-card-arrow] {
	background: var(--wp--preset--color--accent) !important;
	color: var(--wp--preset--color--base) !important;
	border-color: var(--wp--preset--color--accent) !important;
	transform: rotate(-45deg);
}

/* === FAQ ACCORDION === */
details.idx-faq {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

details.idx-faq summary {
	list-style: none;
	cursor: pointer;
	padding: 1.5rem 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 1.125rem;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--ink);
	transition: color 0.2s;
}

details.idx-faq summary::-webkit-details-marker {
	display: none;
}

details.idx-faq summary::marker {
	display: none;
}

details.idx-faq summary:hover {
	color: var(--wp--preset--color--accent);
}

.idx-chev {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1.5px solid var(--wp--preset--color--line);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--accent);
	flex-shrink: 0;
	transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.25s,
		color 0.25s, border-color 0.25s;
}

details.idx-faq[open] .idx-chev {
	transform: rotate(180deg);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--accent);
}

details.idx-faq .idx-ans {
	padding: 0 0 1.75rem;
	max-width: 780px;
	font-size: 1rem;
	line-height: 1.75;
	color: var(--wp--preset--color--slate);
	font-weight: 300;
	animation: faqReveal 0.35s ease;
}

/* === SERVICE ROW HOVER SWEEP === */
.idx-service-row {
	transition: border-color 0.4s ease;
	position: relative;
	overflow: hidden;
}

.idx-service-row::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--wp--preset--color--surface-purple);
	transform: translateX(-101%);
	transition: transform 0.65s cubic-bezier(0.7, 0, 0.2, 1);
	z-index: 0;
}

.idx-service-row:hover {
	border-bottom-color: var(--idx-accent-hover) !important;
}

.idx-service-row:hover::before {
	transform: translateX(0);
}

.idx-service-row .idx-svc-icon,
.idx-service-row .idx-svc-name,
.idx-service-row .idx-svc-desc,
.idx-service-row [data-card-arrow] {
	transition: background 0.45s cubic-bezier(0.4, 0, 0.2, 1),
		color 0.45s cubic-bezier(0.4, 0, 0.2, 1),
		border-color 0.45s cubic-bezier(0.4, 0, 0.2, 1),
		transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.idx-service-row:hover .idx-svc-icon {
	background: var(--wp--preset--color--accent) !important;
	color: var(--wp--preset--color--base) !important;
}

.idx-service-row:hover .idx-svc-name {
	color: var(--wp--preset--color--ink) !important;
}

.idx-service-row:hover .idx-svc-desc {
	color: var(--wp--preset--color--slate) !important;
}

.idx-service-row:hover [data-card-arrow] {
	background: var(--wp--preset--color--accent) !important;
	border-color: var(--wp--preset--color--accent) !important;
	color: var(--wp--preset--color--base) !important;
}

/* === CERTIFICATION CARD === */
.cert-card {
	transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.cert-card:hover {
	transform: translateY(-4px);
	border-color: var(--wp--preset--color--accent) !important;
	box-shadow: 0 18px 40px var(--idx-shadow);
}

.cert-card:hover .cert-badge {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
}

/* === INSIGHTS / CASE STUDY CARDS === */
.idx-card-link:hover {
	transform: translateY(-4px);
	border-color: var(--wp--preset--color--accent) !important;
	box-shadow: 0 18px 40px var(--idx-shadow);
}

/* Subtle zoom on the card's cover-image panel (first child div). */
.idx-card-link > div:first-child {
	transition: transform 0.35s ease;
}

.idx-card-link:hover > div:first-child {
	transform: scale(1.04);
}

.cert-badge {
	transition: background 0.25s, color 0.25s;
}

/* === MARQUEE === */
.idx-marquee {
	animation: marquee 24s linear infinite;
}

/* === ABOUT PAGE — team cards === */
/* The team card uses a fixed 220px photo column that the generic ≤900px
   attribute-selector collapse (which matches "1fr 220px", not "220px 1fr")
   doesn't cover, so it's handled explicitly here. */
@media (max-width: 900px) {
	.idx-team-card { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
	.idx-team-photo { max-width: 240px; }
}

/* Team headshot LinkedIn button — half-overlaps the bottom edge of the photo,
   solid accent (purple) pill with white text. The photo container is
   position:relative and no longer clips (overflow removed) so the button
   can spill below the image. */
.idx-team-li {
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translate(-50%, 50%);
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	white-space: nowrap;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.4rem 1rem;
	border-radius: 8px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	text-decoration: none;
	box-shadow: 0 6px 18px var(--idx-shadow-strong);
	z-index: 2;
}
.idx-team-li:hover {
	background: var(--wp--preset--color--ink-dark);
	transform: translate(-50%, 50%) translateY(-2px);
}
.idx-team-li svg { width: 14px; height: 14px; }

/* ============================================================
   ACF-BLOCK SECTION HEIGHTS (heroes + media split)
   Classes added to the render callbacks so viewport-height tweaks
   live here rather than inline. Scoped to ≥901px because at ≤900px
   the generic grid-collapse stacks these into a single column.
   ============================================================ */
@media (min-width: 901px) {
	/* Left/right split heroes fill the viewport; the image cell stretches to
	   the row height and object-fit:cover keeps its ratio (crops, no distort). */
	.idx-hero-split { min-height: 98vh; }

	/* "How we help" media split: cap the IMAGE column at 100vh so a tall image
	   never dominates, while the text column sets the section height (no clip). */
	.idx-media-split .idx-ms-media { max-height: 100vh; }
}

/* === GRID PATTERN BACKGROUND === */
.idx-grid-bg {
	background-image: linear-gradient(
			var(--idx-on-dark-line) 1px,
			transparent 1px
		),
		linear-gradient(90deg, var(--idx-on-dark-line) 1px, transparent 1px);
	background-size: 60px 60px;
}

/* === FOOTER LINK CONTRAST FIX === */
/* Ensure <a> tags inside footer lists inherit the li text-color
   rather than defaulting to the global accent link colour. */
footer .is-style-plain a,
.wp-block-group footer .is-style-plain a {
	color: inherit;
	text-decoration: none;
	transition: opacity 0.2s;
}

footer .is-style-plain a:hover {
	opacity: 0.75;
}

/* === NAV DROPDOWNS (mega-menus) === */
.idx-nav-item--has-dropdown {
	position: relative;
}

/* Resting (hidden) state — fades in + slides down from the top on hover/focus. */
.idx-dropdown {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translate(-50%, -10px);
	padding-top: 0.85rem; /* transparent bridge so the hover gap doesn't close the panel */
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
	z-index: 210;
}

.idx-nav-item--has-dropdown:hover .idx-dropdown,
.idx-nav-item--has-dropdown:focus-within .idx-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.idx-dropdown__card {
	min-width: 720px;
	max-width: calc(100vw - 4rem);
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 18px;
	box-shadow: 0 24px 60px -20px var(--idx-shadow-strong);
	padding: 1.25rem;
}

.idx-dropdown__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0; /* no gaps — spacing comes from item padding so hit areas stay contiguous */
}

.idx-dropdown__item {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	padding: 0.85rem 1rem;
	border-radius: 10px;
	text-decoration: none;
	transition: background 0.15s;
}

.idx-dropdown__item:hover {
	background: var(--wp--preset--color--surface);
}

.idx-dropdown__ic {
	width: 3rem;
	height: 3rem;
	flex-shrink: 0;
	border-radius: 8px;
	background: var(--wp--preset--color--surface-purple);
	color: var(--wp--preset--color--accent);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s, color 0.15s;
}

.idx-dropdown__ic i {
	width: 1.35rem;
	height: 1.35rem;
}

.idx-dropdown__item:hover .idx-dropdown__ic {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
}

.idx-dropdown__text {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding-top: 0.15rem;
}

.idx-dropdown__title {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--wp--preset--color--ink);
	line-height: 1.2;
	white-space: nowrap; /* keep the title on its own single row, above the subtitle */
}

.idx-dropdown__desc {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.82rem;
	color: var(--wp--preset--color--slate);
	line-height: 1.45;
}

.idx-dropdown__foot {
	margin-top: 1.25rem;
	padding-top: 1.1rem;
	border-top: 1px solid var(--wp--preset--color--line);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.idx-dropdown__footlabel {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.68rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.idx-dropdown__footcta {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
	text-decoration: none;
	white-space: nowrap;
}

.idx-dropdown__footcta i {
	width: 0.9rem;
	height: 0.9rem;
}

/* Chevron on parent (dropdown) nav links — wrapped in a span so it doesn't
   trigger the global a:has(> i[data-lucide]) underline/nudge treatment. */
.idx-nav-item--has-dropdown > .idx-navlink {
	display: inline-flex;
	align-items: center;
	gap: 0.32rem;
}

.idx-navlink__chev {
	display: inline-flex;
}

.idx-navlink__chev i {
	width: 0.85rem;
	height: 0.85rem;
	transition: transform 0.22s ease;
}

.idx-nav-item--has-dropdown:hover .idx-navlink__chev i,
.idx-nav-item--has-dropdown:focus-within .idx-navlink__chev i {
	transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
	.idx-navlink__chev i {
		transition: none;
	}
	.idx-dropdown,
	.idx-nav-item--has-dropdown:hover .idx-dropdown,
	.idx-nav-item--has-dropdown:focus-within .idx-dropdown {
		transform: translate(-50%, 0);
		transition: opacity 0.15s ease, visibility 0.15s;
	}
}

/* === OPPORTUNITIES ARCHIVE === */
.idx-filter-sidebar {
	position: sticky;
	top: 88px;
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
}

.idx-filter-group {
	display: flex;
	flex-direction: column;
}

.idx-filter-label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.66rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	margin-bottom: 0.75rem;
}

.idx-filter-items {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.idx-filter-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.5rem 0.85rem;
	border-radius: 6px;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
	text-align: left;
}

.idx-filter-btn:hover {
	background: var(--wp--preset--color--surface-purple);
	border-color: var(--idx-accent-hover);
	color: var(--wp--preset--color--accent);
}

.idx-filter-btn--active {
	background: var(--wp--preset--color--accent) !important;
	border-color: var(--wp--preset--color--accent) !important;
	color: var(--wp--preset--color--base) !important;
	font-weight: 700;
}

.idx-filter-btn--active:hover {
	background: var(--wp--preset--color--accent) !important;
	color: var(--wp--preset--color--base) !important;
}

.idx-filter-search {
	width: 100%;
	padding: 0.7rem 1rem 0.7rem 2.4rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 6px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.875rem;
	outline: none;
	transition: border-color 0.2s;
}

.idx-filter-search:focus {
	border-color: var(--wp--preset--color--accent);
}

/* === JOB CARD === */
.idx-job-card {
	position: relative;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.idx-job-card:hover {
	border-color: var(--wp--preset--color--accent) !important;
	box-shadow: 0 12px 32px var(--idx-shadow);
	transform: translateY(-2px);
}

/* Stretch link trick — makes entire card clickable via the title anchor */
.idx-job-card .wp-block-post-title a {
	text-decoration: none;
	color: inherit;
}

.idx-job-card .wp-block-post-title a::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
}

.idx-job-card .wp-block-post-terms,
.idx-job-card .wp-block-post-excerpt {
	position: relative;
	z-index: 1;
}

/* Taxonomy term badge styling */
.idx-job-discipline .wp-block-post-terms__content a,
.idx-job-discipline .wp-block-post-terms__content span {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.64rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
	background: var(--wp--preset--color--surface-purple);
	padding: 0.3rem 0.65rem;
	border-radius: 4px;
	text-decoration: none;
}

.idx-job-location .wp-block-post-terms__content,
.idx-job-location .wp-block-post-terms__content a {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.7rem;
	color: var(--wp--preset--color--muted);
	letter-spacing: 0.04em;
	text-decoration: none;
}

/* Query pagination */
.wp-block-query-pagination {
	margin-top: 2rem;
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.wp-block-query-pagination-numbers .page-numbers,
.wp-block-query-pagination-previous-page,
.wp-block-query-pagination-next-page {
	padding: 0.5rem 1rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 6px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	transition: background 0.2s, border-color 0.2s;
}

.wp-block-query-pagination-numbers .page-numbers:hover,
.wp-block-query-pagination-previous-page:hover,
.wp-block-query-pagination-next-page:hover {
	background: var(--wp--preset--color--surface-purple);
	border-color: var(--idx-accent-hover);
}

.wp-block-query-pagination-numbers .page-numbers.current {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
}

/* === ISSUE #2: Remove WP layout-flow automatic block-gap from html/section blocks ===
   :root :where(.is-layout-flow) > * adds margin-block-start to all flow children.
   Our HTML blocks manage their own top spacing, so zero it out. */
:root :where(.is-layout-flow) > .wp-block-html {
	margin-block-start: 0;
}

/* === ISSUE #7: Engagement type badge (Permanent / Contract) === */
.idx-job-type .wp-block-post-terms__content a {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.64rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 0.3rem 0.65rem;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
	display: inline-block;
}

.idx-job-type .wp-block-post-terms__content a[href*="/permanent/"] {
	color: var(--idx-success);
	background: var(--idx-success-bg);
}

.idx-job-type .wp-block-post-terms__content a[href*="/contract/"] {
	color: var(--idx-warning);
	background: var(--idx-warning-bg);
}

/* ============================================================
   HOME PAGE — block-pattern section styles (idxh-* namespace)
   These classes back the editable core-block markup on the
   front page. Kept on a dedicated prefix so converting the
   home page can't affect the other idx-* pages.
   ============================================================ */

/* Section shells & helpers */
.idxh-sec { padding: 6rem 3rem; }
.idxh-sec.idxh-tight { padding: 3.5rem 3rem; }
.idxh-sec.idxh-band { padding: 4.5rem 3rem; }
.idxh-bt { border-top: 1px solid var(--wp--preset--color--line); }
.idxh-bb { border-bottom: 1px solid var(--wp--preset--color--line); }
.idxh-white { background: var(--wp--preset--color--base); }
.idxh-surface { background: var(--wp--preset--color--surface); }
.idxh-lilac { background: var(--wp--preset--color--surface-purple); }
.idxh-dark { background: var(--wp--preset--color--ink-dark); }
.idxh-wrap { max-width: var(--wp--style--global--wide-size); margin-inline: auto; }
.idxh-wrap-narrow { max-width: 980px; margin-inline: auto; }

.idxh-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.7rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
	margin: 0 0 0.75rem;
}
.idxh-dark .idxh-eyebrow { color: var(--idx-on-dark-accent); }

/* Headings/paragraphs flipped white inside dark sections */
.idxh-dark h1, .idxh-dark h2, .idxh-dark h3 { color: var(--wp--preset--color--base); }
.idxh-dark p { color: var(--idx-on-dark); }

.idxh-lead { font-size: 1.0625rem; line-height: 1.75; color: var(--wp--preset--color--slate); font-weight: 300; max-width: 460px; }
.idxh-muted { font-size: 0.9375rem; line-height: 1.7; color: var(--wp--preset--color--slate); font-weight: 300; }

/* Section header: heading left, intro paragraph right */
.idxh-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.idxh-head > * { margin: 0; }
.idxh-head .idxh-muted { max-width: 500px; }

/* ---- HERO ---- */
.idxh-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; position: relative; }
.idxh-hero-left {
	display: flex; flex-direction: column; justify-content: flex-end;
	padding: 4rem 3rem 5rem; border-right: 1px solid var(--wp--preset--color--line);
	position: relative; overflow: hidden;
}
.idxh-hero-left > * { position: relative; z-index: 1; }
.idxh-hero-bg {
	position: absolute; top: 50%; left: -0.5rem; z-index: 0;
	transform: translateY(-50%) rotate(-90deg); transform-origin: center center;
	font-family: var(--wp--preset--font-family--heading); font-weight: 700;
	font-size: clamp(4rem, 8vw, 7rem); letter-spacing: -0.04em;
	color: var(--wp--preset--color--surface-purple); white-space: nowrap; user-select: none; pointer-events: none; line-height: 1;
}
.idxh-hero-left h1 { font-size: clamp(2.75rem, 5vw, 4.5rem); line-height: 0.95; margin: 0; }
.idxh-hero-left h1 .idxh-accent { color: var(--wp--preset--color--accent); }
.idxh-rule { width: 40px; height: 3px; background: var(--wp--preset--color--accent); margin: 2rem 0; }
.idxh-hero-right { position: relative; overflow: hidden; background: var(--wp--preset--color--surface-purple); }
.idxh-hero-right img { width: 100%; height: 100%; object-fit: cover; filter: hue-rotate(10deg) saturate(0.85) brightness(0.6); }
.idxh-hero-right::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--wp--preset--color--accent); z-index: 2; }
.idxh-chip { position: absolute; z-index: 3; background: var(--wp--preset--color--base); backdrop-filter: blur(8px); border-radius: 6px; padding: 0.9rem 1.25rem; box-shadow: 0 4px 24px var(--idx-shadow-strong); }
.idxh-chip-num { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.75rem; color: var(--wp--preset--color--accent); line-height: 1; }
.idxh-chip-lbl { font-family: var(--wp--preset--font-family--mono); font-size: 0.72rem; color: var(--wp--preset--color--muted); margin-top: 0.2rem; text-transform: uppercase; letter-spacing: 0.1em; }

/* ---- Logo / platform strip ---- */
.idxh-logos { display: flex; align-items: center; justify-content: center; gap: 3.5rem; flex-wrap: wrap; }
.idxh-logos p { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; color: var(--wp--preset--color--muted); opacity: 0.75; margin: 0; }

/* ---- Icon box (decorative lucide holder) ---- */
.idxh-icon { width: 3rem; height: 3rem; border-radius: 8px; background: var(--wp--preset--color--surface-purple); color: var(--wp--preset--color--accent); display: inline-flex; align-items: center; justify-content: center; }

/* ---- Services list (full-row hover sweep + stretched link) ---- */
.idxh-srv-row {
	display: grid; grid-template-columns: 3.5rem 1fr 2.5fr auto; align-items: center; gap: 2rem;
	padding: 2.25rem 3rem; border-bottom: 1px solid var(--wp--preset--color--line);
	position: relative; overflow: hidden; transition: border-color 0.4s ease;
}
.idxh-srv-row::before { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--wp--preset--color--surface-purple); transform: translateX(-101%); transition: transform 0.65s cubic-bezier(0.7, 0, 0.2, 1); }
.idxh-srv-row:hover::before { transform: translateX(0); }
.idxh-srv-row > * { position: relative; z-index: 1; }
.idxh-srv-row .idxh-row-link { position: absolute; inset: 0; z-index: 3; }
.idxh-srv-row h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); margin: 0; }
.idxh-srv-row p { font-size: 0.9rem; line-height: 1.65; color: var(--wp--preset--color--slate); font-weight: 300; margin: 0; }
.idxh-arrow { width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1.5px solid var(--wp--preset--color--line); display: inline-flex; align-items: center; justify-content: center; color: var(--wp--preset--color--muted); flex-shrink: 0; transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.idxh-srv-row:hover .idxh-icon, .idxh-srv-row:hover .idxh-arrow { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--base); border-color: var(--wp--preset--color--accent); }
.idxh-srv-row:hover .idxh-arrow { transform: rotate(-45deg); }

/* ---- Stat band (1px gridline grid) ---- */
.idxh-statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--wp--preset--color--line); border: 1px solid var(--wp--preset--color--line); border-radius: 10px; overflow: hidden; }
.idxh-statgrid .idxh-cell { background: var(--wp--preset--color--base); padding: 2.5rem 1.5rem; text-align: center; }
.idxh-statgrid .idxh-cell .idxh-num { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: clamp(2.25rem, 4vw, 3.25rem); color: var(--wp--preset--color--accent); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin: 0; }
.idxh-statgrid .idxh-cell .idxh-lbl { font-family: var(--wp--preset--font-family--mono); font-size: 0.72rem; color: var(--wp--preset--color--muted); letter-spacing: 0.12em; text-transform: uppercase; margin: 0.75rem 0 0; }

/* ---- Card grids (industries / testimonials / insights) ---- */
.idxh-cards { display: grid; gap: 1.25rem; }
.idxh-cards.idxh-c4 { grid-template-columns: repeat(4, 1fr); }
.idxh-cards.idxh-c3 { grid-template-columns: repeat(3, 1fr); }
.idxh-card { border: 1px solid var(--wp--preset--color--line); border-radius: 10px; padding: 2rem; background: var(--wp--preset--color--base); transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.idxh-card h3 { font-size: 1.2rem; margin: 0 0 0.75rem; }
.idxh-card p { font-size: 0.875rem; line-height: 1.65; color: var(--wp--preset--color--slate); font-weight: 300; margin: 0; }
.idxh-card .idxh-icon { margin-bottom: 1.5rem; }
.idxh-card:hover { border-color: var(--wp--preset--color--accent); transform: translateY(-3px); box-shadow: 0 14px 34px var(--idx-shadow); }

/* ---- Method (dark numbered grid) ---- */
.idxh-method { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--idx-on-dark-line); border: 1px solid var(--idx-on-dark-line); border-radius: 10px; overflow: hidden; }
.idxh-method .idxh-step { background: var(--wp--preset--color--ink-dark); padding: 2.5rem 1.75rem; }
.idxh-method .idxh-step .idxh-step-n { font-family: var(--wp--preset--font-family--mono); font-size: 0.8rem; color: var(--idx-on-dark-accent); letter-spacing: 0.1em; margin: 0 0 1.5rem; }
.idxh-method .idxh-step h3 { font-size: 1.35rem; margin: 0 0 0.85rem; }
.idxh-method .idxh-step p { font-size: 0.875rem; line-height: 1.7; margin: 0; }

/* ---- Split sections (text + media) ---- */
.idxh-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 70vh; }
.idxh-split.idxh-split-wide { grid-template-columns: 1.1fr 1fr; }
.idxh-split-text { padding: 5rem 3.5rem; display: flex; flex-direction: column; justify-content: center; }
.idxh-split-media { position: relative; overflow: hidden; background: var(--wp--preset--color--surface-purple); min-height: 420px; }
.idxh-split-media img { width: 100%; height: 100%; object-fit: cover; filter: hue-rotate(10deg) saturate(0.85) brightness(0.68); }
.idxh-split-media.idxh-bar-l::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 6px; background: var(--wp--preset--color--accent); }
.idxh-split-media.idxh-bar-r::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 6px; background: var(--wp--preset--color--accent); }

/* Inline stat row (case study) */
.idxh-statrow { display: flex; gap: 2.5rem; flex-wrap: wrap; margin: 0 0 2rem; }
.idxh-statrow .idxh-num { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 2rem; color: var(--wp--preset--color--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.idxh-statrow .idxh-lbl { font-family: var(--wp--preset--font-family--mono); font-size: 0.7rem; color: var(--wp--preset--color--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.4rem; }

/* Quote (about) */
.idxh-quote { margin: 2rem 0; padding: 1.5rem 1.75rem; background: var(--wp--preset--color--base); border-left: 3px solid var(--wp--preset--color--accent); border-radius: 0 6px 6px 0; font-family: var(--wp--preset--font-family--heading); font-size: 1rem; font-weight: 700; line-height: 1.5; color: var(--wp--preset--color--ink); letter-spacing: -0.01em; }

/* Testimonial card */
.idxh-quote-card { display: flex; flex-direction: column; }
.idxh-quote-card .idxh-mark { color: var(--wp--preset--color--accent); font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 3rem; line-height: 0.6; height: 1.5rem; }
.idxh-quote-card p { color: var(--wp--preset--color--ink); font-weight: 400; font-size: 1rem; margin: 0 0 2rem; flex: 1; }
.idxh-quote-card .idxh-attr { border-top: 1px solid var(--wp--preset--color--line); padding-top: 1.25rem; }
.idxh-quote-card .idxh-attr-name { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 0.95rem; color: var(--wp--preset--color--ink); margin: 0; }
.idxh-quote-card .idxh-attr-org { font-family: var(--wp--preset--font-family--mono); font-size: 0.72rem; color: var(--wp--preset--color--muted); text-transform: uppercase; letter-spacing: 0.08em; margin: 0.3rem 0 0; }

/* Insight card (image + stretched title link) */
.idxh-insight { position: relative; border: 1px solid var(--wp--preset--color--line); border-radius: 10px; overflow: hidden; background: var(--wp--preset--color--base); display: flex; flex-direction: column; padding: 0; transition: transform 0.2s, box-shadow 0.2s; }
.idxh-insight:hover { transform: translateY(-3px); box-shadow: 0 14px 34px var(--idx-shadow); }
.idxh-insight .idxh-insight-media { height: 180px; overflow: hidden; background: var(--wp--preset--color--surface-purple); }
.idxh-insight .idxh-insight-media img { width: 100%; height: 100%; object-fit: cover; filter: hue-rotate(10deg) saturate(0.85) brightness(0.8); }
.idxh-insight .idxh-insight-body { padding: 1.75rem; display: flex; flex-direction: column; flex: 1; }
.idxh-insight h3 { font-size: 1.15rem; line-height: 1.25; margin: 0 0 1.25rem; flex: 1; }
.idxh-insight h3 a { color: var(--wp--preset--color--ink); text-decoration: none; }
.idxh-insight h3 a::after { content: ""; position: absolute; inset: 0; }
.idxh-insight .idxh-meta { font-family: var(--wp--preset--font-family--mono); font-size: 0.7rem; color: var(--wp--preset--color--muted); letter-spacing: 0.05em; margin: 0; }

/* Text→link with arrow (case study / insights header / opportunities) */
.idxh-textlink { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--wp--preset--font-family--heading); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wp--preset--color--accent); text-decoration: none; }
.idxh-textlink i { width: 1rem; height: 1rem; }

/* Centered contact CTA (dark, grid backdrop) */
.idxh-cta { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; }
.idxh-cta .idxh-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(var(--idx-on-dark-line) 1px, transparent 1px), linear-gradient(90deg, var(--idx-on-dark-line) 1px, transparent 1px); background-size: 60px 60px; }
.idxh-cta .idxh-wrap-narrow { position: relative; z-index: 1; max-width: 680px; }
.idxh-cta h2 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 0.95; margin: 0 0 1.5rem; }

/* Cancel WP flow block-gap on grid/flex item children (CSS gap handles it) */
.idxh-hero > *, .idxh-split > *, .idxh-statgrid > *, .idxh-cards > *,
.idxh-method > *, .idxh-srv-row > *, .idxh-logos > *, .idxh-statrow > *,
.idxh-head > * { margin-block: 0; }

/* Section feature header (eyebrow + heading), used above grids */
.idxh-secfhead { margin-bottom: 3rem; }
.idxh-secfhead .idxh-eyebrow { margin-bottom: 0.75rem; }
.idxh-secfhead h2 { margin: 0; }
.idxh-head.idxh-mb { margin-bottom: 3rem; }

/* Explicit rhythm inside text stacks (groups carry blockGap:0) */
.idxh-hero-left .idxh-eyebrow { margin-bottom: 2rem; }
.idxh-hero-left .idxh-lead { margin: 0; }
.idxh-split-text .idxh-eyebrow { margin-bottom: 1.25rem; }
.idxh-split-text h2 { margin: 0 0 1.5rem; }
.idxh-split-text .idxh-subhead { margin: 0 0 1.5rem; color: var(--wp--preset--color--slate); font-size: 1.35rem; }
.idxh-split-text p { margin: 0 0 1.25rem; font-size: 1rem; line-height: 1.8; color: var(--wp--preset--color--slate); font-weight: 300; }
.idxh-split-text p:last-child { margin-bottom: 0; }

.idxh-mw { max-width: 640px; }
.idxh-eyebrow-mut { color: var(--wp--preset--color--muted); }
.idxh-srv-sec { padding: 6rem 0; background: var(--wp--preset--color--base); }
.idxh-srv-head { padding: 0 3rem 3.5rem; border-bottom: 1px solid var(--wp--preset--color--line); }

/* Mobile: collapse splits & grids */
@media (max-width: 900px) {
	.idxh-hero, .idxh-split, .idxh-split.idxh-split-wide { grid-template-columns: 1fr; }
	.idxh-statgrid, .idxh-method, .idxh-cards.idxh-c4 { grid-template-columns: repeat(2, 1fr); }
	.idxh-cards.idxh-c3 { grid-template-columns: 1fr; }
	.idxh-hero-right, .idxh-split-media { min-height: 280px; }
	.idxh-srv-row { grid-template-columns: 3rem 1fr auto; gap: 1rem; padding: 1.75rem 1.5rem; }
	.idxh-srv-row p { display: none; }
	.idxh-sec { padding: 4rem 1.5rem; }
	.idxh-split-text { padding: 3rem 1.5rem; }
	.idxh-faqsec { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* FAQ section: two-column intro + accordion */
.idxh-faqsec { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }

/* Contact CTA button: white on dark */
.idxh-cta .wp-block-button__link { background: var(--wp--preset--color--base); color: var(--wp--preset--color--accent); }
.idxh-cta .wp-block-button__link:hover { background: var(--wp--preset--color--surface-purple); }

/* === Article (single post) prose === */
.idx-prose p { font-size: 1.125rem; line-height: 1.85; color: var(--wp--preset--color--slate); font-weight: 300; margin: 0 0 1.6rem; }
.idx-prose h2 { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.7rem; letter-spacing: -0.02em; color: var(--wp--preset--color--ink); line-height: 1.15; margin: 3rem 0 1.2rem; }
.idx-prose h3 { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; color: var(--wp--preset--color--ink); margin: 2.25rem 0 0.9rem; }
.idx-prose ul, .idx-prose ol { margin: 0 0 1.6rem; padding-left: 1.2rem; }
.idx-prose li { font-size: 1.125rem; line-height: 1.8; color: var(--wp--preset--color--slate); font-weight: 300; margin-bottom: 0.6rem; }
.idx-prose strong { color: var(--wp--preset--color--ink); font-weight: 500; }
.idx-prose a { color: var(--wp--preset--color--accent); text-decoration: underline; text-underline-offset: 2px; }
.idx-prose img { border-radius: 10px; margin: 1.5rem 0; }
.idx-prose blockquote { margin: 2.5rem 0; padding: 1.75rem 2rem; background: var(--wp--preset--color--surface); border-left: 3px solid var(--wp--preset--color--accent); border-radius: 0 8px 8px 0; font-family: var(--wp--preset--font-family--heading); font-size: 1.25rem; font-weight: 700; line-height: 1.4; color: var(--wp--preset--color--ink); letter-spacing: -0.01em; }
.idx-prose blockquote p { font-size: inherit; color: inherit; font-weight: inherit; margin: 0; }
.idx-readbar { position: fixed; top: 64px; left: 0; height: 3px; width: 0; background: var(--wp--preset--color--accent); z-index: 150; transition: width 0.05s linear; }

/* === Icon card (linkable, with fancy hover) === */
.idxh-iconcard { border: 1px solid var(--wp--preset--color--line); border-radius: 10px; padding: 2rem; background: var(--wp--preset--color--base); display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; transition: border-color 0.25s, transform 0.35s cubic-bezier(0.2,0.7,0.2,1), box-shadow 0.25s; }
a.idxh-iconcard:hover { border-color: var(--wp--preset--color--accent); transform: translateY(-4px); box-shadow: 0 16px 40px var(--idx-shadow); }
a.idxh-iconcard .idxh-iconcard-ic { transition: background 0.25s, color 0.25s; }
a.idxh-iconcard:hover .idxh-iconcard-ic { background: var(--wp--preset--color--accent) !important; color: var(--wp--preset--color--base) !important; }
.idxh-iconcard-foot { margin-top: auto; padding-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.idxh-iconcard-foot span { font-family: var(--wp--preset--font-family--heading); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wp--preset--color--accent); }
.idxh-iconcard-arrow { width: 2rem; height: 2rem; border-radius: 50%; border: 1.5px solid var(--wp--preset--color--line); display: inline-flex; align-items: center; justify-content: center; color: var(--wp--preset--color--muted); flex-shrink: 0; }

/* ============================================================
   SITE-WIDE INTERACTION LAYER — transitions, hovers, focus, reveal
   (Restores the design files' style-hover / focus / fade behaviour.)
   ============================================================ */

/* Smooth transitions on all interactive elements */
a, button, input, textarea, select, summary, .cert-card, .idx-job-card { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.2s ease, transform 0.25s cubic-bezier(0.2,0.7,0.2,1), box-shadow 0.25s ease, opacity 0.2s ease; }

/* Header nav links */
.idx-navlink:hover { color: var(--wp--preset--color--accent) !important; }

/* Footer text links: underline on hover (column lists, office email/phone, privacy) */
.idx-footer-grid ul a:hover,
.idx-footer-offices a:hover,
.idx-footer-bottom a[href="/privacy-policy/"]:hover { text-decoration: underline !important; text-underline-offset: 0.2em; }

/* Solid purple buttons (anchors + submit buttons) */
a[style*="background:var(--wp--preset--color--accent)"]:hover,
button[style*="background:var(--wp--preset--color--accent)"]:hover { background: var(--wp--preset--color--ink-dark) !important; transform: translateY(-2px); box-shadow: 0 8px 22px var(--idx-shadow-strong); }

/* White buttons on dark / lilac backgrounds */
a[style*="background:var(--wp--preset--color--base)"][style*="color:var(--wp--preset--color--accent)"]:hover { background: var(--wp--preset--color--surface-purple) !important; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.18); }

/* Outline buttons */
a[style*="border:1.5px solid var(--wp--preset--color--line)"]:hover { border-color: var(--wp--preset--color--accent) !important; color: var(--wp--preset--color--accent) !important; transform: translateY(-2px); }

/* Footer links brighten on hover */
footer a:hover { color: var(--wp--preset--color--base) !important; }

/* Form field focus */
input:focus, textarea:focus, select:focus { border-color: var(--wp--preset--color--accent) !important; box-shadow: 0 0 0 3px var(--wp--preset--color--surface-purple); }

/* Text-link with arrow: nudge gap on hover (complements the underline rule) */
.idxh-textlink:hover, .idxh-go:hover { gap: 1rem; }

/* === Full-bleed block sections butt together (cancel post-content block-gap) ===
   Scoped to .alignfull children so normal constrained content pages keep spacing. */
.wp-block-post-content > .alignfull { margin-block: 0 !important; }

/* === Job-board card badges (core/post-terms, no __content wrapper in modern WP) === */
.idx-job-discipline a, .idx-job-discipline span:not(.wp-block-post-terms__separator) {
	font-family: var(--wp--preset--font-family--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase;
	color: var(--wp--preset--color--accent); background: var(--wp--preset--color--surface-purple); padding: 0.3rem 0.65rem; border-radius: 4px; text-decoration: none; display: inline-block;
}
.idx-job-type a, .idx-job-type span:not(.wp-block-post-terms__separator) {
	font-family: var(--wp--preset--font-family--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
	padding: 0.3rem 0.65rem; border-radius: 4px; text-decoration: none; font-weight: 600; display: inline-block;
	color: var(--wp--preset--color--slate); background: var(--wp--preset--color--surface);
}
.idx-job-type a[href*="/permanent"] { color: var(--idx-success); background: var(--idx-success-bg); }
.idx-job-type a[href*="/contract"] { color: var(--idx-warning); background: var(--idx-warning-bg); }
.idx-job-location, .idx-job-location a {
	font-family: var(--wp--preset--font-family--mono); font-size: 0.72rem; color: var(--wp--preset--color--muted); letter-spacing: 0.04em; text-decoration: none;
}
.idx-job-location a { display: inline-flex; align-items: center; gap: 0.4rem; }

/* Scroll-reveal fade-up (applied by JS; never hides content without JS) */
@media (prefers-reduced-motion: no-preference) {
	.idx-reveal { opacity: 0; transform: translateY(22px); will-change: opacity, transform; }
	.idx-reveal.idx-vis { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2,0.7,0.2,1); }
}

/* Core wraps images in a <figure>; make it fill its media cell */
.idxh-hero-right .wp-block-image,
.idxh-split-media .wp-block-image,
.idxh-insight-media .wp-block-image { margin: 0; height: 100%; width: 100%; }
.idxh-hero-right .wp-block-image img,
.idxh-split-media .wp-block-image img,
.idxh-insight-media .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   INDUSTRY PAGES (idxh-* shared namespace)
   ============================================================ */

/* Breadcrumb */
.idxh-crumb { font-family: var(--wp--preset--font-family--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp--preset--color--muted); margin: 0 0 1.75rem; }
.idxh-crumb a { color: var(--wp--preset--color--muted); text-decoration: none; }
.idxh-crumb .idxh-crumb-here { color: var(--wp--preset--color--accent); }

/* Industry hero: copy left, 2x2 stat grid right */
.idxh-dhero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: end; }
.idxh-dhero > * { margin-block: 0; }
.idxh-dhero-main .idxh-eyebrow { margin-bottom: 1.5rem; }
.idxh-dhero-main h1 { font-size: clamp(2.5rem, 4.5vw, 4rem); line-height: 0.97; margin: 0 0 1.5rem; }
.idxh-dhero-main .idxh-lead { margin: 0 0 2.5rem; max-width: 520px; }
.idxh-statgrid.idxh-2x2 { grid-template-columns: repeat(2, 1fr); }

/* Challenge split: dark right panel with checklist */
.idxh-split-dark { background: var(--wp--preset--color--ink-dark); padding: 5rem 3.5rem; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.idxh-split-dark > * { position: relative; z-index: 1; margin-block: 0; }
.idxh-split-dark .idxh-grid-bg { position: absolute; inset: 0; z-index: 0; background-image: linear-gradient(var(--idx-on-dark-line) 1px, transparent 1px), linear-gradient(90deg, var(--idx-on-dark-line) 1px, transparent 1px); background-size: 60px 60px; }
.idxh-split-dark .idxh-eyebrow { color: var(--idx-on-dark-accent); margin-bottom: 1.25rem; }
.idxh-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.idxh-checklist li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 1rem; line-height: 1.6; color: var(--idx-on-dark); font-weight: 300; }
.idxh-checklist li i { color: var(--wp--preset--color--accent); flex-shrink: 0; width: 1rem; height: 1rem; margin-top: 0.2rem; }

/* Capability chips */
.idxh-chips { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.idxh-chip-link { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--wp--preset--font-family--heading); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.65rem 1.25rem; border-radius: 6px; border: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--accent); text-decoration: none; transition: background 0.2s, border-color 0.2s; }
.idxh-chip-link:hover { background: var(--wp--preset--color--surface-purple); border-color: var(--idx-accent-hover); }
.idxh-chip-link i { width: 0.85rem; height: 0.85rem; }

/* Industry hub: 2x2 cards */
.idxh-dcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.idxh-dcards > * { margin-block: 0; }
.idxh-dcard { position: relative; border: 1px solid var(--wp--preset--color--line); border-radius: 10px; overflow: hidden; background: var(--wp--preset--color--base); display: flex; flex-direction: column; padding: 0; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.idxh-dcard:hover { transform: translateY(-3px); border-color: var(--wp--preset--color--accent); box-shadow: 0 14px 34px var(--idx-shadow); }
.idxh-dcard-head { background: var(--wp--preset--color--surface-purple); padding: 2.5rem 2rem; border-bottom: 1px solid var(--wp--preset--color--line); position: relative; }
.idxh-dcard-head::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 6px; background: var(--wp--preset--color--accent); }
.idxh-dcard-head .idxh-eyebrow { margin: 0 0 0.5rem; font-size: 0.66rem; }
.idxh-dcard-head h2 { font-size: 2rem; margin: 0; }
.idxh-dcard-body { padding: 2rem; flex: 1; display: flex; flex-direction: column; }
.idxh-dcard-body p { font-size: 0.9375rem; line-height: 1.7; color: var(--wp--preset--color--slate); font-weight: 300; margin: 0 0 1.5rem; flex: 1; }
.idxh-dcard-body .idxh-explore { font-family: var(--wp--preset--font-family--heading); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wp--preset--color--accent); display: inline-flex; align-items: center; gap: 0.4rem; }
.idxh-dcard-body .idxh-explore i { width: 0.9rem; height: 0.9rem; }
.idxh-dcard .idxh-row-link { position: absolute; inset: 0; z-index: 3; }

/* How-we-help heading wants a wider max + bottom gap */
.idxh-secfhead h2.idxh-mw-wide { max-width: 680px; }

@media (max-width: 900px) {
	.idxh-dhero, .idxh-dcards { grid-template-columns: 1fr; gap: 2.5rem; }
	.idxh-split-dark { padding: 3rem 1.5rem; }
}

/* ============================================================
   SERVICE-DETAIL PAGES (idxh-* shared namespace)
   ============================================================ */

/* Capability grid (auto-fill cards, plain accent icon) */
.idxh-capgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.idxh-capgrid > * { margin-block: 0; }
.idxh-capcard { background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--line); border-radius: 10px; padding: 1.5rem; }
.idxh-capicon { display: block; margin-bottom: 0.85rem; color: var(--wp--preset--color--accent); }
.idxh-capicon i { width: 1.3rem; height: 1.3rem; }
.idxh-capcard h3 { font-size: 1rem; margin: 0 0 0.5rem; }
.idxh-capcard p { font-size: 0.9rem; color: var(--wp--preset--color--slate); line-height: 1.6; margin: 0; }

/* Approach (numbered steps) */
.idxh-approach { display: flex; flex-direction: column; gap: 1.5rem; }
.idxh-approach > * { margin-block: 0; }
.idxh-astep { display: grid; grid-template-columns: 2rem 1fr; gap: 1.25rem; align-items: start; }
.idxh-astep > * { margin-block: 0; }
.idxh-astep .idxh-anum { font-family: var(--wp--preset--font-family--mono); font-size: 0.7rem; color: var(--wp--preset--color--accent); font-weight: 500; padding-top: 0.2rem; margin: 0; }
.idxh-astep h3 { font-size: 1rem; margin: 0 0 0.35rem; }
.idxh-astep p { font-size: 0.9rem; color: var(--wp--preset--color--slate); line-height: 1.6; margin: 0; }

/* FAQ accordion wrapper used on inner pages */
.idxh-faq-acc { border-top: 1px solid var(--wp--preset--color--line); }

/* Service hero intro a touch wider */
.idxh-shero-intro { max-width: 520px; }

/* ============================================================
   UNIQUE PAGES — About / Services / Insights / NextGen / Contact
   ============================================================ */

/* Generic two-column blocks */
.idxh-2col { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.idxh-2col > * { margin-block: 0; }
.idxh-2col-even { grid-template-columns: 1fr 1fr; }
.idxh-stacktext > * { margin-block: 0; }
.idxh-stacktext h2 { margin: 0 0 1.25rem; }
.idxh-stacktext p { margin: 0 0 1.25rem; font-size: 1rem; line-height: 1.75; color: var(--wp--preset--color--slate); font-weight: 300; }
.idxh-stacktext p:last-child { margin: 0; }

/* Small accent icon (no fill box variant uses idxh-iconsm) */
.idxh-iconsm { width: 2.5rem; height: 2.5rem; border-radius: 8px; background: var(--wp--preset--color--surface-purple); display: inline-flex; align-items: center; justify-content: center; color: var(--wp--preset--color--accent); margin-bottom: 1rem; }
.idxh-iconsm i { width: 1.2rem; height: 1.2rem; }

/* Feature grids (about "why", nextgen "problem") */
.idxh-feat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.idxh-feat2x2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.idxh-feat3 > *, .idxh-feat2x2 > * { margin-block: 0; }
.idxh-feat > * { margin-block: 0; }
.idxh-feat h3 { font-size: 1rem; margin: 0 0 0.5rem; }
.idxh-feat p { font-size: 0.9rem; color: var(--wp--preset--color--slate); line-height: 1.6; margin: 0; }

/* About: practices grid (gridline links) */
.idxh-practices { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1px; background: var(--wp--preset--color--line); border: 1px solid var(--wp--preset--color--line); border-radius: 10px; overflow: hidden; }
.idxh-practice { background: var(--wp--preset--color--base); padding: 1.5rem 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; text-decoration: none; transition: background 0.2s; }
.idxh-practice:hover { background: var(--wp--preset--color--surface-purple); }
.idxh-practice i { width: 1.3rem; height: 1.3rem; color: var(--wp--preset--color--accent); }
.idxh-practice span { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 0.875rem; color: var(--wp--preset--color--ink); line-height: 1.3; }

/* Services: hero stat flex row */
.idxh-statflex { display: flex; gap: 1px; background: var(--wp--preset--color--line); border: 1px solid var(--wp--preset--color--line); border-radius: 10px; overflow: hidden; }
.idxh-statflex > * { margin-block: 0; }
.idxh-statflex .idxh-cell { background: var(--wp--preset--color--base); padding: 1.5rem 1.25rem; text-align: center; flex: 1; }
.idxh-statflex .idxh-num { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.9rem; color: var(--wp--preset--color--accent); line-height: 1; margin: 0; }
.idxh-statflex .idxh-lbl { font-family: var(--wp--preset--font-family--mono); font-size: 0.66rem; color: var(--wp--preset--color--muted); text-transform: uppercase; letter-spacing: 0.1em; margin: 0.4rem 0 0; }

/* Services: practice rows (bordered cards) */
.idxh-srows { display: flex; flex-direction: column; gap: 1.5rem; }
.idxh-srows > * { margin-block: 0; }
.idxh-srow { display: grid; grid-template-columns: 2.5rem 1fr auto; gap: 1.25rem 1.5rem; align-items: center; background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--line); border-radius: 10px; padding: 1.5rem 2rem; position: relative; transition: border-color 0.2s, box-shadow 0.2s; }
.idxh-srow > * { margin-block: 0; }
.idxh-srow:hover { border-color: var(--wp--preset--color--accent); box-shadow: 0 10px 28px var(--idx-shadow); }
.idxh-srow .idxh-iconsm { margin: 0; }
.idxh-srow h3 { font-size: 1.1rem; margin: 0 0 0.3rem; }
.idxh-srow p { font-size: 0.9rem; color: var(--wp--preset--color--slate); line-height: 1.5; margin: 0; }
.idxh-srow .idxh-go { font-family: var(--wp--preset--font-family--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wp--preset--color--accent); text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.4rem; }
.idxh-srow .idxh-go i { width: 0.85rem; height: 0.85rem; }
.idxh-srow .idxh-row-link { position: absolute; inset: 0; z-index: 2; }

/* Services: dark industries split */
.idxh-ddark { position: relative; overflow: hidden; }
.idxh-ddark .idxh-grid-bg { position: absolute; inset: 0; z-index: 0; background-image: linear-gradient(var(--idx-on-dark-line) 1px, transparent 1px), linear-gradient(90deg, var(--idx-on-dark-line) 1px, transparent 1px); background-size: 60px 60px; }
.idxh-ddark .idxh-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; max-width: 980px; }
.idxh-ddark .idxh-wrap > * { margin-block: 0; }
.idxh-minigrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--idx-on-dark-line); border: 1px solid var(--idx-on-dark-line); border-radius: 10px; overflow: hidden; }
.idxh-minilink { background: var(--idx-on-dark-line); padding: 1.5rem 1.25rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; text-decoration: none; transition: background 0.2s; }
.idxh-minilink:hover { background: var(--idx-on-dark-line); }
.idxh-minilink i { width: 1.3rem; height: 1.3rem; color: var(--idx-on-dark-accent); }
.idxh-minilink span { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 0.9rem; color: var(--wp--preset--color--base); line-height: 1.2; }
.idxh-btn-ghost .wp-block-button__link { background: transparent; color: var(--wp--preset--color--base); border: 1.5px solid rgba(255,255,255,0.25); }
.idxh-btn-ghost .wp-block-button__link:hover { background: var(--idx-on-dark-line); }

/* NextGen: objectives numbered list */
.idxh-objs { display: flex; flex-direction: column; gap: 1.25rem; }
.idxh-objs > * { margin-block: 0; }
.idxh-obj { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1.25rem; align-items: start; }
.idxh-obj > * { margin-block: 0; }
.idxh-obj .idxh-onum { font-family: var(--wp--preset--font-family--mono); font-size: 0.75rem; color: var(--wp--preset--color--accent); font-weight: 600; padding-top: 0.2rem; margin: 0; }
.idxh-obj p { font-size: 0.9875rem; color: var(--wp--preset--color--slate); line-height: 1.65; margin: 0; }

/* NextGen: program streams */
.idxh-streams { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.idxh-streams > * { margin-block: 0; }
.idxh-stream { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 12px; padding: 2rem; }
.idxh-stream > * { margin-block: 0; }
.idxh-badge { font-family: var(--wp--preset--font-family--mono); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.3rem 0.65rem; border-radius: 4px; background: var(--wp--preset--color--surface-purple); color: var(--wp--preset--color--accent); display: inline-block; margin-bottom: 1.25rem; }
.idxh-stream h3 { font-size: 1.2rem; margin: 0 0 1rem; }
.idxh-stream p { font-size: 0.9rem; color: var(--wp--preset--color--slate); line-height: 1.65; margin: 0 0 1.25rem; }

/* NextGen: who-it's-for pills + tick lists (contained islands) */
.idxh-ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.idxh-ticks li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.875rem; color: var(--wp--preset--color--slate); }
.idxh-ticks li i { width: 0.85rem; height: 0.85rem; color: var(--wp--preset--color--accent); margin-top: 0.15rem; flex-shrink: 0; }
.idxh-pills { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.idxh-pills li { display: flex; align-items: flex-start; gap: 0.85rem; padding: 0.85rem 1rem; background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--line); border-radius: 8px; font-size: 0.9rem; color: var(--wp--preset--color--slate); line-height: 1.5; }
.idxh-pills li i { width: 1.1rem; height: 1.1rem; color: var(--wp--preset--color--accent); margin-top: 0.1rem; flex-shrink: 0; }

/* NextGen: apply band */
.idxh-applyband { text-align: center; }
.idxh-applyband .idxh-wrap-narrow { max-width: 680px; }
.idxh-applyband h2 { font-size: 1.75rem; margin: 0 0 0.75rem; }
.idxh-applyband p { font-size: 0.95rem; color: var(--wp--preset--color--slate); margin: 0 0 2rem; }

/* Contact: form + details split */
.idxh-cgrid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 5rem; align-items: start; }
.idxh-cgrid > * { margin-block: 0; }
.idxh-cdetails > * { margin-block: 0; }
.idxh-cdetails h2 { font-size: 1.2rem; margin: 0 0 1.5rem; }
.idxh-cdetail { margin-bottom: 1.5rem; }
.idxh-cdetail .idxh-clabel { font-family: var(--wp--preset--font-family--mono); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wp--preset--color--muted); margin: 0 0 0.35rem; }
.idxh-cdetail a { color: var(--wp--preset--color--accent); text-decoration: none; }

@media (max-width: 900px) {
	.idxh-2col, .idxh-2col-even, .idxh-feat3, .idxh-feat2x2, .idxh-streams,
	.idxh-cgrid, .idxh-ddark .idxh-wrap, .idxh-minigrid { grid-template-columns: 1fr; gap: 2rem; }
	.idxh-statflex { flex-wrap: wrap; }
	.idxh-statflex .idxh-cell { flex: 1 1 40%; }
	.idxh-srow { grid-template-columns: 2.5rem 1fr; }
	.idxh-srow .idxh-go { grid-column: 2; }
	.idxh-insights-grid { grid-template-columns: 1fr !important; }
}

/* ============================================================
   CONTACT FORM 7 — restyle CF7's markup to match the design.
   Forms use html_class="idx-cf7 ..."; the surrounding white panel
   is .idx-cf7-card (set by the template that embeds the form).
   autop is disabled (functions.php) so this markup renders verbatim.
   ============================================================ */

/* White form panel that wraps the CF7 form */
.idx-cf7-card { background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--line); border-radius: 12px; padding: 2.5rem; }

/* The form itself: vertical stack of fields */
.idx-cf7 .wpcf7-form,
form.idx-cf7 { display: flex; flex-direction: column; gap: 1.1rem; }
.idx-cf7 p { margin: 0; }

/* Two-up rows (first/last name, email/phone) */
.idx-cf7 .idx-cf7-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

/* Each field: label stacked above its control */
.idx-cf7 .idx-cf7-field { display: flex; flex-direction: column; gap: 0.4rem; }
.idx-cf7 .idx-cf7-field > label { font-family: var(--wp--preset--font-family--mono); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.idx-cf7 .idx-cf7-optional { text-transform: none; letter-spacing: 0; color: var(--wp--preset--color--muted); }

/* CF7 wraps every control in a span — make it fill the column */
.idx-cf7 .wpcf7-form-control-wrap { display: block; width: 100%; }

/* Inputs, selects, textareas */
.idx-cf7 input[type="text"],
.idx-cf7 input[type="email"],
.idx-cf7 input[type="tel"],
.idx-cf7 select,
.idx-cf7 textarea {
	width: 100%; box-sizing: border-box;
	font-family: 'Inter', sans-serif; font-size: 0.9375rem;
	padding: 0.85rem 1rem; border: 1px solid var(--wp--preset--color--line); border-radius: 6px;
	background: var(--wp--preset--color--surface); color: var(--wp--preset--color--ink); outline: none;
}
.idx-cf7 textarea { resize: vertical; min-height: 7rem; }
.idx-cf7 select { appearance: none; -webkit-appearance: none; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239490b0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.idx-cf7 input:focus, .idx-cf7 select:focus, .idx-cf7 textarea:focus {
	border-color: var(--wp--preset--color--accent); box-shadow: 0 0 0 3px var(--wp--preset--color--surface-purple);
}
.idx-cf7 ::placeholder { color: var(--wp--preset--color--muted); opacity: 1; }

/* File upload — styled dropzone label */
.idx-cf7 .idx-cf7-upload {
	display: flex; flex-direction: column; align-items: center; gap: 0.3rem; text-align: center;
	border: 1.5px dashed var(--wp--preset--color--line); border-radius: 8px; padding: 1.5rem; background: var(--wp--preset--color--surface); cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
}
.idx-cf7 .idx-cf7-upload:hover { border-color: var(--wp--preset--color--accent); background: var(--wp--preset--color--surface-purple); }
.idx-cf7 .idx-cf7-upload-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.9rem; color: var(--wp--preset--color--ink); }
.idx-cf7 .idx-cf7-upload-hint { font-size: 0.8rem; color: var(--wp--preset--color--muted); font-weight: 300; }
.idx-cf7 .idx-cf7-upload input[type="file"] { margin-top: 0.6rem; font-size: 0.82rem; color: var(--wp--preset--color--slate); max-width: 100%; }
.idx-cf7 .idx-cf7-upload input[type="file"]::file-selector-button {
	font-family: 'Space Grotesk', sans-serif; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
	padding: 0.5rem 1rem; margin-right: 0.75rem; border: 1px solid var(--wp--preset--color--line); border-radius: 6px;
	background: var(--wp--preset--color--base); color: var(--wp--preset--color--accent); cursor: pointer; transition: background 0.2s, border-color 0.2s;
}
.idx-cf7 .idx-cf7-upload input[type="file"]::file-selector-button:hover { background: var(--wp--preset--color--surface-purple); border-color: var(--idx-accent-hover); }

/* Submit button */
.idx-cf7 .idx-cf7-submit { margin-top: 0.25rem; }
.idx-cf7 .wpcf7-submit {
	font-family: 'Space Grotesk', sans-serif; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
	padding: 0.95rem 2rem; border-radius: 6px; background: var(--wp--preset--color--accent); color: var(--wp--preset--color--base); border: none; cursor: pointer;
	transition: background 0.2s, transform 0.25s cubic-bezier(0.2,0.7,0.2,1), box-shadow 0.25s;
}
.idx-cf7 .wpcf7-submit:hover { background: var(--wp--preset--color--ink-dark); transform: translateY(-2px); box-shadow: 0 8px 22px var(--idx-shadow-strong); }
.idx-cf7 .wpcf7-submit:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }

/* Inline validation tips under invalid fields */
.idx-cf7 .wpcf7-not-valid { border-color: var(--idx-error) !important; }
.idx-cf7 .wpcf7-not-valid-tip { font-family: 'Inter', sans-serif; font-size: 0.78rem; color: var(--idx-error); margin-top: 0.35rem; }

/* CF7 response banner (success / errors) — match the old status boxes */
.idx-cf7 .wpcf7-response-output {
	margin: 1.25rem 0 0 !important; padding: 0.9rem 1.1rem !important; border-radius: 6px;
	font-size: 0.9rem; line-height: 1.5; border: 1px solid;
}
.idx-cf7 .wpcf7-mail-sent-ok { background: var(--idx-success-bg); border-color: var(--idx-success-border) !important; color: var(--idx-success); }
.idx-cf7 .wpcf7-validation-errors,
.idx-cf7 .wpcf7-mail-sent-ng,
.idx-cf7 .wpcf7-aborted { background: var(--idx-error-bg); border-color: var(--idx-error-border) !important; color: var(--idx-error); }
.idx-cf7 .wpcf7-spam-blocked { background: var(--idx-warning-bg); border-color: var(--idx-warning-border) !important; color: var(--idx-warning); }

/* Ajax spinner sits beside the button */
.idx-cf7 .wpcf7-spinner { margin: 0 0 0 0.75rem; }

/* Dark variant — NextGen "register your interest" form on the var(--wp--preset--color--ink-dark) panel */
.idx-cf7-card-dark { background: var(--idx-on-dark-line); border-color: var(--idx-on-dark-line); backdrop-filter: blur(8px); }
.idx-cf7-dark .idx-cf7-field > label { color: var(--idx-on-dark); }
.idx-cf7-dark .idx-cf7-optional { color: var(--idx-on-dark); }
.idx-cf7-dark input[type="text"],
.idx-cf7-dark input[type="email"],
.idx-cf7-dark input[type="tel"],
.idx-cf7-dark textarea {
	background: var(--idx-on-dark-line); border-color: var(--idx-on-dark); color: var(--wp--preset--color--base);
}
.idx-cf7-dark ::placeholder { color: var(--idx-on-dark); }
.idx-cf7-dark input:focus, .idx-cf7-dark textarea:focus {
	border-color: var(--idx-on-dark-accent); box-shadow: 0 0 0 3px rgba(156,143,212,0.15);
}
.idx-cf7-dark .wpcf7-submit { background: var(--wp--preset--color--base); color: var(--wp--preset--color--accent); }
.idx-cf7-dark .wpcf7-submit:hover { background: var(--wp--preset--color--surface-purple); }
.idx-cf7-dark .wpcf7-not-valid-tip { color: var(--idx-error-light); }

@media (max-width: 640px) {
	.idx-cf7 .idx-cf7-row { grid-template-columns: 1fr; }
	.idx-cf7-card { padding: 1.75rem; }
}

/* ============================================================
   RESPONSIVE LAYER  ·  tablet + mobile
   Site-wide responsive audit. Breakpoints:
     ≤1024px  small laptop / tablet landscape — thin out dense grids
     ≤900px   tablet portrait & down — mobile nav, single-column layouts
     ≤600px   phones — tighter gutters, stacked chrome
     ≤480px   small phones — final tightening
   Much page content is hand-authored inline-styled markup (theme PHP,
   ACF block render callbacks, and DB content from migration scripts), so
   layout grids and section gutters are reached with attribute selectors +
   !important. Selectors are anchored to `grid-template-columns:` /
   `padding:` so they only match a property's leading value, never a
   substring mid-value (e.g. the icon column in `2.5rem 1fr auto`).
   ============================================================ */

/* ---- Media safety: never let embeds force horizontal scroll ---- */
iframe, video, embed, object { max-width: 100%; }
.idx-prose table, .wp-block-table table { display: block; width: 100%; overflow-x: auto; }
.idx-prose pre, .wp-block-code { overflow-x: auto; }

/* ============================================================
   MOBILE NAVIGATION  (hamburger + slide-down panel)
   ============================================================ */
.idx-navtoggle {
	display: none;
	appearance: none;
	-webkit-appearance: none;
	background: transparent;
	border: none;
	padding: 0;
	margin: 0;
	width: 44px;
	height: 44px;
	cursor: pointer;
	color: var(--wp--preset--color--ink);
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.idx-navtoggle__open,
.idx-navtoggle__close { display: inline-flex; align-items: center; justify-content: center; }
.idx-navtoggle__close { display: none; }
.idx-navtoggle i { width: 26px; height: 26px; }
body.idx-menu-open .idx-navtoggle__open { display: none; }
body.idx-menu-open .idx-navtoggle__close { display: inline-flex; }

.idx-mobile-menu {
	display: none;
	position: absolute;
	top: 64px;
	left: 0;
	right: 0;
	background: var(--wp--preset--color--base);
	border-bottom: 1px solid var(--wp--preset--color--line);
	box-shadow: 0 26px 50px -22px var(--idx-shadow-strong);
	padding: 0.75rem 1.5rem 1.75rem;
	max-height: calc(100vh - 64px);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-12px);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
body.idx-menu-open .idx-mobile-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.idx-mobile-nav { list-style: none; margin: 0; padding: 0; }
.idx-m-item { border-bottom: 1px solid var(--wp--preset--color--line); }
.idx-m-link,
.idx-m-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 0.25rem;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	cursor: pointer;
	list-style: none;
}
.idx-m-summary::-webkit-details-marker { display: none; }
.idx-m-summary::marker { content: ""; }
.idx-m-summary i { width: 1.15rem; height: 1.15rem; color: var(--wp--preset--color--accent); transition: transform 0.25s ease; flex-shrink: 0; }
.idx-m-group[open] > .idx-m-summary i { transform: rotate(180deg); }
.idx-m-sub { display: flex; flex-direction: column; padding: 0 0 0.85rem; }
.idx-m-suball {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.66rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
	text-decoration: none;
	padding: 0.35rem 0.25rem 0.85rem;
}
.idx-m-sublink { display: flex; align-items: center; gap: 0.85rem; padding: 0.6rem 0.25rem; text-decoration: none; }
.idx-m-subic {
	width: 2.1rem; height: 2.1rem; flex-shrink: 0; border-radius: 6px;
	background: var(--wp--preset--color--surface-purple); color: var(--wp--preset--color--accent);
	display: inline-flex; align-items: center; justify-content: center;
}
.idx-m-subic i { width: 1.05rem; height: 1.05rem; }
.idx-m-subtxt { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 0.875rem; color: var(--wp--preset--color--ink); line-height: 1.2; }
.idx-m-cta {
	display: block;
	text-align: center;
	margin-top: 1.4rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.95rem 1.5rem;
	border-radius: 6px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	text-decoration: none;
}

/* ============================================================
   ≤1024px — thin out the densest grids for tablet/landscape
   ============================================================ */
@media (max-width: 1024px) {
	[style*="grid-template-columns:repeat(4,1fr)"],
	[style*="grid-template-columns:repeat(5,1fr)"],
	[style*="grid-template-columns:repeat(6,1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ============================================================
   ≤900px — tablet portrait & down
   ============================================================ */
@media (max-width: 900px) {

	/* --- swap desktop nav for hamburger --- */
	body.idx-menu-open { overflow: hidden; }
	.idx-nav { padding: 0 1.25rem !important; }
	.idx-nav-desktop { display: none !important; }
	.idx-navtoggle { display: inline-flex; }
	.idx-mobile-menu { display: block; }

	/* --- collapse every inline content grid to a single column --- */
	[style*="grid-template-columns:1fr 1fr"],
	[style*="grid-template-columns:1fr 1.1fr"],
	[style*="grid-template-columns:1.1fr 1fr"],
	[style*="grid-template-columns:1fr 1.2fr"],
	[style*="grid-template-columns:1.2fr 1fr"],
	[style*="grid-template-columns:1fr 1.3fr"],
	[style*="grid-template-columns:1.3fr 1fr"],
	[style*="grid-template-columns:1fr 1.4fr"],
	[style*="grid-template-columns:1.4fr 1fr"],
	[style*="grid-template-columns:1fr 1.5fr"],
	[style*="grid-template-columns:1.5fr 1fr"],
	[style*="grid-template-columns:1.05fr 1fr"],
	[style*="grid-template-columns:1fr 320px"],
	[style*="grid-template-columns:1fr 280px"],
	[style*="grid-template-columns:1fr 220px"],
	[style*="grid-template-columns:1fr auto"],
	[style*="grid-template-columns:repeat(2,1fr)"],
	[style*="grid-template-columns:repeat(3,1fr)"],
	[style*="grid-template-columns:repeat(4,1fr)"],
	[style*="grid-template-columns:repeat(5,1fr)"],
	[style*="grid-template-columns:repeat(6,1fr)"] { grid-template-columns: 1fr !important; }

	/* sticky side rails (filters, TOC, apply box) sit inline once stacked */
	[style*="position:sticky"] { position: static !important; top: auto !important; }
	.idx-filter-sidebar { position: static; top: auto; }

	/* nowrap flex rows (e.g. the opportunities job board: 260px filter rail
	   + flex:1 results) must wrap so the results column isn't crushed */
	[style*="flex-wrap:nowrap"] { flex-wrap: wrap !important; }
	.idx-filter-sidebar { width: 100% !important; }

	/* --- tighten inline section gutters (keep vertical padding so the
	       first section still clears the 64px fixed nav) --- */
	[style*="padding:9rem 3rem"],
	[style*="padding:7rem 3rem"],
	[style*="padding:6.5rem 3rem"],
	[style*="padding:6rem 3rem"],
	[style*="padding:5rem 3rem"],
	[style*="padding:4.5rem 3rem"],
	[style*="padding:4rem 3rem"],
	[style*="padding:3.5rem 3rem"],
	[style*="padding:3rem 3rem"],
	[style*="padding:2.5rem 3rem"],
	[style*="padding:2.25rem 3rem"],
	[style*="padding:2rem 3rem"],
	[style*="padding:1.75rem 3rem"],
	[style*="padding:1.5rem 3rem"],
	[style*="padding:1rem 3rem"],
	[style*="padding:5rem 3.5rem"],
	[style*="padding:4rem 3.5rem"] { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }

	/* --- home/shared idxh refinements layered on the existing 900 query --- */
	.idxh-hero { min-height: auto !important; }
	.idxh-hero-left { padding: 5.5rem 1.5rem 3rem !important; border-right: none !important; }
	.idxh-hero-bg { display: none; }
	.idxh-srv-head { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }

	/* section headers (heading left / intro right) stack vertically */
	.idxh-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
	.idxh-head .idxh-muted { max-width: none; }

	/* services-landing rows: drop the description column, keep icon + name + arrow
	   (mirrors the home services-row treatment) */
	.idx-service-row { grid-template-columns: 2.75rem 1fr auto !important; gap: 1rem 1.25rem !important; }
	.idx-service-row .idx-svc-desc { display: none !important; }

	/* certifications listing: keep a 2-up grid (it has 40+ short cards, so a
	   single column would be needlessly long) — id beats the generic collapse */
	#cert-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem !important; }

	/* --- footer collapses to two columns --- */
	.idx-footer-grid { grid-template-columns: 1fr 1fr !important; padding: 3rem 1.5rem 2.5rem !important; gap: 2.5rem !important; }
	.idx-footer-offices { grid-template-columns: 1fr 1fr !important; padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
	.idx-footer-ack { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
	.idx-footer-bottom { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
}

/* ============================================================
   ≤600px — phones
   ============================================================ */
@media (max-width: 600px) {
	/* tighter section gutters */
	[style*="padding:9rem 3rem"],
	[style*="padding:7rem 3rem"],
	[style*="padding:6.5rem 3rem"],
	[style*="padding:6rem 3rem"],
	[style*="padding:5rem 3rem"],
	[style*="padding:4.5rem 3rem"],
	[style*="padding:4rem 3rem"],
	[style*="padding:3.5rem 3rem"],
	[style*="padding:3rem 3rem"],
	[style*="padding:5rem 3.5rem"],
	[style*="padding:4rem 3.5rem"] { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }

	/* trim the most generous vertical section padding (never below the
	   nav-clearing minimum for top-of-page sections: stays ≥5rem) */
	[style*="padding:9rem 3rem"] { padding-top: 5rem !important; padding-bottom: 5rem !important; }

	/* dense card/method grids → one column on phones */
	.idxh-method,
	.idxh-cards.idxh-c4,
	.idxh-feat3,
	.idxh-feat2x2 { grid-template-columns: 1fr !important; }

	/* footer to a single column */
	.idx-footer-grid { grid-template-columns: 1fr !important; gap: 2.25rem !important; }
	.idx-footer-offices { grid-template-columns: 1fr 1fr !important; padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
	.idx-footer-bottom { flex-direction: column; align-items: flex-start !important; }

	/* prose a touch smaller */
	.idx-prose p, .idx-prose li { font-size: 1.0625rem; }
	.idx-prose h2 { font-size: 1.5rem; }
	.idx-prose blockquote { padding: 1.25rem 1.4rem; font-size: 1.1rem; }

	/* FAQ summary: smaller gap so the chevron never crowds the label */
	details.idx-faq summary { gap: 1rem; font-size: 1.05rem; }
}

/* ============================================================
   ≤480px — small phones
   ============================================================ */
@media (max-width: 480px) {
	.idxh-statgrid,
	.idxh-statgrid.idxh-2x2 { grid-template-columns: 1fr !important; }
	#cert-grid { grid-template-columns: 1fr !important; }
	.idx-footer-offices { grid-template-columns: 1fr !important; }
	.idxh-statgrid .idxh-cell { padding: 2rem 1.25rem; }
	.idxh-cta h2 { font-size: clamp(2rem, 9vw, 2.6rem); }
}

/* ---- Root padding-aware core-block templates (page/archive/search/404) ---- */
@media (max-width: 781px) {
	body {
		--wp--style--root--padding-left: 1.5rem !important;
		--wp--style--root--padding-right: 1.5rem !important;
	}
}
@media (max-width: 480px) {
	body {
		--wp--style--root--padding-left: 1.25rem !important;
		--wp--style--root--padding-right: 1.25rem !important;
	}
}

/* ============================================================
   WP ADMIN BAR OFFSET (logged-in only)
   The admin bar (#wpadminbar) is fixed at viewport top:0 (32px tall, 46px
   at ≤782px) and shifts the document down via html{margin-top}. Our header
   nav is position:fixed;top:0, so it stays glued to the viewport top — hidden
   behind the bar — while page content (pushed by the html margin plus its own
   64px nav-clearance) leaves a 32px gap below the nav. Push the fixed nav, and
   the fixed reading-progress bar, below the admin bar to realign both.
   ============================================================ */
/* !important is required: the nav carries an inline `top:0`, which beats a
   plain stylesheet selector. */
.admin-bar .idx-nav { top: 32px !important; }
.admin-bar .idx-readbar { top: 96px !important; } /* 32px admin bar + 64px nav */

@media screen and (max-width: 782px) {
	.admin-bar .idx-nav { top: 46px !important; }
	.admin-bar .idx-readbar { top: 110px !important; } /* 46px admin bar + 64px nav */
}

/* ============================================================
   POP-UP FALLBACK PAGES
   .index-button — used by the "Refresh Page" control on the survey /
   email-preferences / ATR-consent fallback pages. Tokenised accent button.
   ============================================================ */
.index-button {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	border: 0;
	border-radius: 10px;
	padding: 0.95rem 2rem;
	font-size: 1.05rem;
	letter-spacing: -0.01em;
	cursor: pointer;
	box-shadow: 0 6px 18px var(--idx-shadow);
	transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.index-button::before {
	content: "\21BB"; /* ↻ refresh glyph */
	font-size: 1.15em;
	line-height: 1;
}
.index-button:hover {
	background: var(--wp--preset--color--surface-purple);
	transform: translateY(-2px);
	box-shadow: 0 10px 26px var(--idx-shadow-strong);
}
.index-button:active { transform: translateY(0); }
